This commit is contained in:
Xuan Sang LE 2018-01-23 10:10:40 +01:00
parent 46e50b191f
commit 3fb336ed7c
4 changed files with 6 additions and 63 deletions

View File

@ -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, () ->

View File

@ -1,58 +0,0 @@
<afx-dummy>
<afx-overlay data-id = "notifyzone" width = "250">
<afx-button text = "Clear all" data-id = "btclear"></afx-button>
<afx-list-view data-id="notifylist"></afx-list-view>
<style>
afx-overlay[data-id = "notifyzone"]{
background-color: rgba(215,215,215,0.7);
overflow-y: auto;
overflow-x: hidden;
padding:3px;
margin: 0;
}
afx-overlay[data-id = "notifyzone"] afx-button button{
width: 250px;
background-color: rgba(215,215,215,0.9);
}
afx-overlay[data-id = "notifyzone"] afx-button button:active{
color:#414339;
}
afx-list-view[data-id = "notifylist"]
{
padding:0;
}
afx-list-view[data-id = "notifylist"] li{
border:1px solid #a6a6a6;
border-radius: 6px;
margin-bottom: 2px;
}
</style>
</afx-overlay>
<afx-overlay data-id = "feedzone" width = "250">
<afx-list-view data-id = "notifeed">
</afx-list-view>
<style>
afx-overlay[data-id = "feedzone"]{
overflow: hidden;
background-color:transparent;
right:5px;
margin: 0;
padding:0;
top:0;
}
afx-list-view[data-id = "notifeed"]
{
padding:0;
margin:0;
}
afx-list-view[data-id = "notifeed"] li{
box-shadow: 1px 1px 1px #9f9F9F;
border:1px solid #a6a6a6;
border-radius: 6px;
margin-bottom: 2px;
z-index: 99999;
}
</style>
</afx-overlay>
</afx-dummy>

View File

@ -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

View File

@ -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) ->