From 00ca03e93b5ae947d7d548ab099e0d6f09eadc81 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sun, 23 Oct 2022 13:41:57 +0300 Subject: [PATCH] notes... Signed-off-by: Alex A. Naanou --- pwiki/store/base.js | 1 + pwiki2.js | 6 +----- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/pwiki/store/base.js b/pwiki/store/base.js index 30a9800..23dd2a1 100755 --- a/pwiki/store/base.js +++ b/pwiki/store/base.js @@ -153,6 +153,7 @@ module.BaseStore = { set data(value){ this.__data = value }, + // XXX not sure if it is better to set these here or use index.IndexManagerMixin(..) get index_attrs(){ return [...index.iter(this)] }, index: async function(action='get', ...args){ diff --git a/pwiki2.js b/pwiki2.js index 7747b01..86af924 100755 --- a/pwiki2.js +++ b/pwiki2.js @@ -17,14 +17,10 @@ * - CLI * * -* XXX ASAP INDEX move index stuff to pwiki/index.js +* XXX INDEX move to the new index... * XXX INDEX DOC can index validation be async??? * ...likely no * XXX INDEX add option to set default action (get/lazy/cached) -* XXX INDEX might be a better idea to make the iterator (.index_attrs) -* and global method (.index(..)) out of the mixin and keep them -* as utility methods. -* ...the mixin can still live for convinience. * XXX BUG: when editing the root page of a substore the page's .cache is * not reset for some reason... * ...the problem is in that .names() cache is not reset when a new