mirror of
https://github.com/lxsang/antos-frontend.git
synced 2025-07-17 22:39:47 +02:00
add screenshot
This commit is contained in:
@ -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) ->
|
||||
|
@ -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
|
||||
|
@ -29,6 +29,8 @@
|
||||
self[k] = v
|
||||
if(k == 'view')
|
||||
switchView()
|
||||
if(k == "data")
|
||||
self.selectedFile = undefined
|
||||
self.update()
|
||||
}
|
||||
self.root.get = function(k)
|
||||
|
Reference in New Issue
Block a user