From b4d66cc6e5d45fd3dd9e34db84cf2c520e3f3b86 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Mon, 25 Jul 2022 23:57:44 +0300 Subject: [PATCH 1/5] ... Signed-off-by: Alex A. Naanou --- pwiki2.js | 1 + 1 file changed, 1 insertion(+) diff --git a/pwiki2.js b/pwiki2.js index 3eee9d6..73eb19e 100755 --- a/pwiki2.js +++ b/pwiki2.js @@ -1439,6 +1439,7 @@ module.BaseParser = { : (res[order.shift()] = e) }) return res }, + // Strip comments... // stripComments: function(str){ From 225cac6f7068808192590ca42a7f99445389ccbd Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Mon, 25 Jul 2022 23:58:23 +0300 Subject: [PATCH 2/5] cleanup... Signed-off-by: Alex A. Naanou --- pwiki2.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/pwiki2.js b/pwiki2.js index 73eb19e..b0e1bf9 100755 --- a/pwiki2.js +++ b/pwiki2.js @@ -22,7 +22,7 @@ * - .load(..) / .json(..) -- for most stores... * might be a good idea to keep a unified format... * - .then() -- resolve when all pending write operations done ??? -* - an async REPL... +* - an async REPL??? * * * @@ -43,12 +43,6 @@ * a signature (a page =)) * * XXX split this into modules... -* pwiki.js -* pwiki/page.js -* pwiki/store.js -* plugin/markdown.js -* plugin/pouchdb.js -* ... * * XXX add action to reset overloaded (bootstrap) pages... * - per page From 174fb138bc3ddbd49f5c67404a40d427da57c054 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Tue, 26 Jul 2022 11:09:12 +0300 Subject: [PATCH 3/5] ... Signed-off-by: Alex A. Naanou --- pwiki2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pwiki2.js b/pwiki2.js index b0e1bf9..8468021 100755 --- a/pwiki2.js +++ b/pwiki2.js @@ -42,7 +42,7 @@ * - in this view a user in the system is simply a set of keys and * a signature (a page =)) * -* XXX split this into modules... +* XXX split this into modules (???) * * XXX add action to reset overloaded (bootstrap) pages... * - per page From a04ab2388d383aff8bad161e25d05d2756df42b3 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 27 Jul 2022 14:12:46 +0300 Subject: [PATCH 4/5] starting the move to ig-types' api... Signed-off-by: Alex A. Naanou --- pwiki2.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pwiki2.js b/pwiki2.js index 8468021..efe5786 100755 --- a/pwiki2.js +++ b/pwiki2.js @@ -1701,14 +1701,16 @@ module.BaseParser = { await this.expand(page, ast, state) : ast - //* XXX this is quite ugly... + /* XXX this is quite ugly... var blocks = [] for await (var a of ast){ blocks.push(a) } return blocks /*/ - return [...ast] + //return [...ast] + return await ast + .iter() //*/ // post handlers... .map(function(section){ From ad73d62e6327af61a0fa9f44993e4487c404d44c Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 27 Jul 2022 14:13:28 +0300 Subject: [PATCH 5/5] cleanup... Signed-off-by: Alex A. Naanou --- pwiki2.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/pwiki2.js b/pwiki2.js index efe5786..5766854 100755 --- a/pwiki2.js +++ b/pwiki2.js @@ -1701,17 +1701,9 @@ module.BaseParser = { await this.expand(page, ast, state) : ast - /* XXX this is quite ugly... - var blocks = [] - for await (var a of ast){ - blocks.push(a) } - - return blocks - /*/ //return [...ast] return await ast .iter() - //*/ // post handlers... .map(function(section){ return typeof(section) == 'function' ?