From 3fb336ed7c8ed1196877876df253b55e8959d921 Mon Sep 17 00:00:00 2001 From: Xuan Sang LE Date: Tue, 23 Jan 2018 10:10:40 +0100 Subject: [PATCH] vfs --- src/core/handlers/RemoteHandler.coffee | 5 +- src/core/schemes/notifications.html | 58 ------------------- src/packages/CoreServices/Makefile | 4 +- .../CoreServices/PushNotification.coffee | 2 +- 4 files changed, 6 insertions(+), 63 deletions(-) delete mode 100644 src/core/schemes/notifications.html diff --git a/src/core/handlers/RemoteHandler.coffee b/src/core/handlers/RemoteHandler.coffee index 9404c83..635dc3a 100644 --- a/src/core/handlers/RemoteHandler.coffee +++ b/src/core/handlers/RemoteHandler.coffee @@ -2,8 +2,9 @@ self.OS.API.handler = scandir: (p, c ) -> path = "lua-api/fs/scandir" _API.post path, { path: p }, c, (e, s) -> - _courrier.osfail "Fail to make request: #{path}", e, s - + _courrier.osfail "Fail to scan directory: #{path}", e, s + scanapp: (p, c ) -> + path = "lua-api/system/application" auth: (c) -> p = "lua-api/system/auth" _API.post p, {}, c, () -> diff --git a/src/core/schemes/notifications.html b/src/core/schemes/notifications.html deleted file mode 100644 index e27ed3c..0000000 --- a/src/core/schemes/notifications.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/src/packages/CoreServices/Makefile b/src/packages/CoreServices/Makefile index ec6d4d7..83ea632 100644 --- a/src/packages/CoreServices/Makefile +++ b/src/packages/CoreServices/Makefile @@ -2,9 +2,9 @@ coffee_files = Calendar.coffee PushNotification.coffee Spotlight.coffee jsfiles = -cssfiles = +cssfiles = main.css -copyfiles = package.json +copyfiles = package.json notifications.html PKG_NAME=CoreServices diff --git a/src/packages/CoreServices/PushNotification.coffee b/src/packages/CoreServices/PushNotification.coffee index c45bf93..547b7bf 100644 --- a/src/packages/CoreServices/PushNotification.coffee +++ b/src/packages/CoreServices/PushNotification.coffee @@ -7,7 +7,7 @@ class PushNotification extends this.OS.GUI.BaseService @pending = [] init: -> @view = false - path = "resources/schemes/notifications.html" + path = path = "packages/CoreServices/notifications.html" @render path spin: (b) ->