mirror of
https://github.com/flynx/pWiki.git
synced 2025-12-23 03:21:38 +00:00
cleanup...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
9c986b553f
commit
3e0281b920
27
pwiki2.js
27
pwiki2.js
@ -1648,7 +1648,16 @@ var WIKIWORD_PATTERN =
|
||||
|
||||
|
||||
//---------------------------------------------------------------------
|
||||
// XXX experiments and testing...
|
||||
// Basic setup...
|
||||
//
|
||||
//
|
||||
// Store popology:
|
||||
//
|
||||
// root (BaseStore) ---next--- main (MetaStore)
|
||||
// |
|
||||
// +-- System/... (BaseStore)
|
||||
//
|
||||
//
|
||||
|
||||
var store =
|
||||
module.store =
|
||||
@ -1705,19 +1714,15 @@ var System = {
|
||||
// XXX nested system store...
|
||||
store.update('System', Object.create(BaseStore).load(System))
|
||||
/*/ // XXX chained system store...
|
||||
// Create a new system action-set with paths starting with 'System/'
|
||||
var RootSystem =
|
||||
store.next.load(
|
||||
// Create a new system action-set with paths starting with 'System/'
|
||||
Object.entries(System)
|
||||
.reduce(function(res, [key, func]){
|
||||
res[module.path.join('System', key)] = func
|
||||
return res }, {})
|
||||
|
||||
store.next.load(RootSystem)
|
||||
return res }, {}))
|
||||
//*/
|
||||
|
||||
|
||||
store.load(require('./bootstrap'))
|
||||
|
||||
// NOTE: in general the root wiki api is simply a page instance.
|
||||
// XXX not yet sure how to organize the actual client -- UI, hooks, .. etc
|
||||
var pwiki =
|
||||
@ -1726,6 +1731,12 @@ Page('/', '/', store)
|
||||
|
||||
|
||||
|
||||
//---------------------------------------------------------------------
|
||||
// XXX experiments and testing...
|
||||
|
||||
store.load(require('./bootstrap'))
|
||||
|
||||
|
||||
// XXX TEST...
|
||||
// XXX add filter tests...
|
||||
console.log('loading test page...')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user