core services

This commit is contained in:
Xuan Sang LE 2018-01-23 10:11:19 +01:00
parent 3fb336ed7c
commit c3e5b2749e
3 changed files with 70 additions and 0 deletions

15
src/core/vfs.coffee Normal file
View File

@ -0,0 +1,15 @@
self.OS.API.VFS =
readdir: (p, c, er) ->
h = _API.VFS.pathHandler p
h p,
(d ) -> c d
, (e, s) -> er e, s
pathHandler: (p) ->
list = p.split "///"
switch list[0]
when "app:"
return _API.handler.scanapp
else
return _API.handler.scandir

View File

@ -0,0 +1,45 @@
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;
}
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;
}

View File

@ -0,0 +1,10 @@
<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>
</afx-overlay>
<afx-overlay data-id = "feedzone" width = "250">
<afx-list-view data-id = "notifeed">
</afx-list-view>
</afx-overlay>
</afx-dummy>