add screenshot

This commit is contained in:
Xuan Sang LE
2018-01-04 11:51:12 +01:00
parent 6f298fc52b
commit 041293ee93
4 changed files with 19 additions and 9 deletions

View File

@ -79,6 +79,14 @@ self.OS or=
tmp.push a for a in _PM.processes[app]
a.quit() for a in tmp
cleanup: ->
($ "#wrapper").empty()
_GUI.clearTheme()
_courrier.observable = riot.observable()
_OS.APP = {}
_PM.processes = {}
_PM.pidalloc = 0
boot: ->
#first login
_API.handler.auth (d) ->

View File

@ -141,8 +141,7 @@ self.OS.GUI =
alert "System fall: Cannot init desktop manager"
login: () ->
($ "#wrapper").empty()
_GUI.clearTheme()
_OS.cleanup()
_API.resource "schemes/login.html", (x) ->
return null unless x
scheme = $.parseHTML x
@ -158,12 +157,7 @@ self.OS.GUI =
alert "System fall: Cannot init login screen"
startAntOS: (conf) ->
($ "#wrapper").empty()
_GUI.clearTheme()
_courrier.observable = riot.observable()
_OS.APP = {}
_PM.processes = {}
_PM.pidalloc = 0
_OS.cleanup()
_OS.setting.applications = conf.applications if conf.applications
_OS.setting.appearance = conf.appearance if conf.appearance
_OS.setting.user = conf.user

View File

@ -29,6 +29,8 @@
self[k] = v
if(k == 'view')
switchView()
if(k == "data")
self.selectedFile = undefined
self.update()
}
self.root.get = function(k)