From f6f6071edcd3122c2635574f1714a591753da001 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Tue, 1 Nov 2022 01:56:22 +0300 Subject: [PATCH] notes and tweaks... Signed-off-by: Alex A. Naanou --- pwiki/page.js | 18 ++++++++++-------- pwiki2.js | 4 ++++ 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/pwiki/page.js b/pwiki/page.js index e3f3827..61fb6c4 100755 --- a/pwiki/page.js +++ b/pwiki/page.js @@ -1883,7 +1883,7 @@ object.Constructor('CachedPage', Page, { //--------------------------------------------------------------------- var wikiword = require('./dom/wikiword') -var textarea = require('./dom/textarea') +//var textarea = require('./dom/textarea') var pWikiPageElement = module.pWikiPageElement = @@ -1898,7 +1898,7 @@ object.Constructor('pWikiPageElement', Page, { domFilters: { // XXX see Page.filters.wikiword for notes... wikiword: wikiword.wikiWordText, - textarea: textarea.setupTextarea, + //textarea: textarea.setupTextarea, }, // XXX CACHE @@ -2075,7 +2075,9 @@ module.System = { +'' +''}, //*/ - /* XXX textarea or contenteditable -- the later has annoying editor features... + //* XXX textarea or contenteditable -- the later has annoying editor features... + // ...while the former can't self-resize and forcing it to messes + // with scrolling... edit: { // XXX not sure if we should use .title or .name here... text: object.doc` @@ -2147,7 +2149,8 @@ module.System = { @source(../path) - @source(./name) + @var(path "@source(s ./path)") + @source(./name) a @@ -2156,9 +2159,9 @@ module.System = { - (@include(./*/length/!)) + (@include(./*/length/!))   - × + × ` }, // XXX this is really slow... tree: { @@ -2166,8 +2169,7 @@ module.System = { - - + @var(path "@source(s ./path)")
@source(./title) diff --git a/pwiki2.js b/pwiki2.js index eaabc66..fce6005 100755 --- a/pwiki2.js +++ b/pwiki2.js @@ -18,6 +18,10 @@ * - CLI - * * +* XXX FEATURE store: mirror (slave) -- a way to hold data in one store +* and to mirror everything (async) to a separate store... +* example: +* PouchDB (main) -- FileSore (export) * XXX BUG: parser: * This will break: * await pwiki.parse('@source(.)')