From 6f73dda91ee0a0702d0c0533d1ab49b4f564dae4 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sat, 17 Sep 2022 19:30:11 +0300 Subject: [PATCH] cleanup and notes... Signed-off-by: Alex A. Naanou --- pwiki/page.js | 9 +-------- pwiki/path.js | 8 ++++++-- pwiki2.js | 1 + 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/pwiki/page.js b/pwiki/page.js index 108964a..ca357b0 100755 --- a/pwiki/page.js +++ b/pwiki/page.js @@ -7,8 +7,6 @@ (function(require){ var module={} // make module AMD/node compatible... /*********************************************************************/ -// XXX -//var object = require('lib/object') var object = require('ig-object') var types = require('ig-types') @@ -46,7 +44,6 @@ function(name){ // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -// XXX FUNC need to handle functions in store... var BasePage = module.BasePage = object.Constructor('BasePage', { @@ -619,8 +616,6 @@ types.event.EventMixin(BasePage.prototype) //--------------------------------------------------------------------- -// XXX should these be something more generic like Object.assign(..) ??? - // XXX do we need anything else like .doc, attrs??? var Macro = module.Macro = @@ -637,9 +632,6 @@ function(spec, func){ // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -// XXX filters (and macros?) should be features for simpler plugin handlng (???) -// XXX STUB filters... -// XXX rename to pWikiPage??? var Page = module.Page = object.Constructor('Page', BasePage, { @@ -1518,6 +1510,7 @@ object.Constructor('Page', BasePage, { //--------------------------------------------------------------------- +// Cached .text page... var getCachedProp = function(obj, name){ diff --git a/pwiki/path.js b/pwiki/path.js index e58f7ce..468f57e 100755 --- a/pwiki/path.js +++ b/pwiki/path.js @@ -31,8 +31,6 @@ module = { 'NotFoundError', ], - //SYSTEM_PATH: '/System', - SYSTEM_PATH: '/.system', // Default alternate search locations... // // NOTE: if a path here is relative it is also searched relative to @@ -41,6 +39,12 @@ module = { //'./Theme/CLI', './Templates', ], + + // System path... + // + // This acts the same as elements in .SEARCH_PATHS but should contain + // all the default and fallback templates. + SYSTEM_PATH: '/.system', /*/ XXX NORMCACHE... __normalized_cache_threshold: 100, diff --git a/pwiki2.js b/pwiki2.js index acffe04..9c502df 100755 --- a/pwiki2.js +++ b/pwiki2.js @@ -4,6 +4,7 @@ * XXX ASAP start writing docs in pwiki * - WYSIWYG markdown editor/viewer (ASAP) * - fs store/export in browser or a simple way to export/import... +* XXX BUG: /delete is broken... * XXX BUG: * /System/info * and: