Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2022-05-03 12:45:00 +03:00
parent 94d65f6064
commit 988abb3cbf

View File

@ -290,9 +290,14 @@ var store =
module.store = {
__proto__: BaseStore,
// base actions (virtual pages)...
// metadata...
//
'System/path': function(page){
return this.get('..').path },
'System/location': function(page){
return this.get('..').path },
'System/resolved': function(page){
return this.get('..').match() },
'System/dir': function(page){
return this.get('..').dir },
'System/name': function(page){
@ -303,10 +308,14 @@ module.store = {
return p.title
?? p.name },
// XXX other things to do...
// - title
// actions...
//
// XXX System/subpaths
// XXX System/sort
// XXX System/reverse
// XXX System/delete
// XXX System/back
// XXX System/forward
}
@ -368,6 +377,8 @@ object.Constructor('BasePage', {
//set name(value){ },
get dir(){
return module.path.relative(this.location, '..') },
// XXX should writing to this move the page???
//set dir(value){ },
//* XXX HISTORY...
// NOTE: set this to false to disable history...