mirror of
https://github.com/flynx/pWiki.git
synced 2025-12-20 18:11:41 +00:00
notes and tweaks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
cdb2fe63c0
commit
f6f6071edc
@ -1883,7 +1883,7 @@ object.Constructor('CachedPage', Page, {
|
|||||||
//---------------------------------------------------------------------
|
//---------------------------------------------------------------------
|
||||||
|
|
||||||
var wikiword = require('./dom/wikiword')
|
var wikiword = require('./dom/wikiword')
|
||||||
var textarea = require('./dom/textarea')
|
//var textarea = require('./dom/textarea')
|
||||||
|
|
||||||
var pWikiPageElement =
|
var pWikiPageElement =
|
||||||
module.pWikiPageElement =
|
module.pWikiPageElement =
|
||||||
@ -1898,7 +1898,7 @@ object.Constructor('pWikiPageElement', Page, {
|
|||||||
domFilters: {
|
domFilters: {
|
||||||
// XXX see Page.filters.wikiword for notes...
|
// XXX see Page.filters.wikiword for notes...
|
||||||
wikiword: wikiword.wikiWordText,
|
wikiword: wikiword.wikiWordText,
|
||||||
textarea: textarea.setupTextarea,
|
//textarea: textarea.setupTextarea,
|
||||||
},
|
},
|
||||||
|
|
||||||
// XXX CACHE
|
// XXX CACHE
|
||||||
@ -2075,7 +2075,9 @@ module.System = {
|
|||||||
+'</pre>'
|
+'</pre>'
|
||||||
+'</macro>'},
|
+'</macro>'},
|
||||||
//*/
|
//*/
|
||||||
/* 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: {
|
edit: {
|
||||||
// XXX not sure if we should use .title or .name here...
|
// XXX not sure if we should use .title or .name here...
|
||||||
text: object.doc`
|
text: object.doc`
|
||||||
@ -2147,7 +2149,8 @@ module.System = {
|
|||||||
@source(../path)
|
@source(../path)
|
||||||
</slot>
|
</slot>
|
||||||
<macro src="../*:$ARGS" join="@source(line-separator)">
|
<macro src="../*:$ARGS" join="@source(line-separator)">
|
||||||
<a href="#@source(s ./path)">@source(./name)</a>
|
@var(path "@source(s ./path)")
|
||||||
|
<a href="#@var(path)">@source(./name)</a>
|
||||||
<sup>
|
<sup>
|
||||||
<macro src="./isAction">
|
<macro src="./isAction">
|
||||||
a
|
a
|
||||||
@ -2156,9 +2159,9 @@ module.System = {
|
|||||||
</else>
|
</else>
|
||||||
</macro>
|
</macro>
|
||||||
</sup>
|
</sup>
|
||||||
(<a href="#@source(s ./path)/list">@include(./*/length/!)</a>)
|
(<a href="#@var(path)/list">@include(./*/length/!)</a>)
|
||||||
|
|
||||||
<a href="#@source(s ./path)/delete">×</a>
|
<a href="#@var(path)/delete">×</a>
|
||||||
</macro>` },
|
</macro>` },
|
||||||
// XXX this is really slow...
|
// XXX this is really slow...
|
||||||
tree: {
|
tree: {
|
||||||
@ -2166,8 +2169,7 @@ module.System = {
|
|||||||
<slot title/>
|
<slot title/>
|
||||||
|
|
||||||
<macro tree src="../*:$ARGS">
|
<macro tree src="../*:$ARGS">
|
||||||
<var path "@source(s ./path)"/>
|
@var(path "@source(s ./path)")
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<a class="tree-page-title" href="#@var(path)">@source(./title)</a>
|
<a class="tree-page-title" href="#@var(path)">@source(./title)</a>
|
||||||
|
|||||||
@ -18,6 +18,10 @@
|
|||||||
* - CLI -
|
* - 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:
|
* XXX BUG: parser:
|
||||||
* This will break:
|
* This will break:
|
||||||
* await pwiki.parse('<macro src=../tags join=", ">@source(.)</macro>')
|
* await pwiki.parse('<macro src=../tags join=", ">@source(.)</macro>')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user