mirror of
https://github.com/flynx/pWiki.git
synced 2025-12-20 10:01:39 +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 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 = {
|
||||
+'</pre>'
|
||||
+'</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: {
|
||||
// XXX not sure if we should use .title or .name here...
|
||||
text: object.doc`
|
||||
@ -2147,7 +2149,8 @@ module.System = {
|
||||
@source(../path)
|
||||
</slot>
|
||||
<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>
|
||||
<macro src="./isAction">
|
||||
a
|
||||
@ -2156,9 +2159,9 @@ module.System = {
|
||||
</else>
|
||||
</macro>
|
||||
</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>` },
|
||||
// XXX this is really slow...
|
||||
tree: {
|
||||
@ -2166,8 +2169,7 @@ module.System = {
|
||||
<slot title/>
|
||||
|
||||
<macro tree src="../*:$ARGS">
|
||||
<var path "@source(s ./path)"/>
|
||||
|
||||
@var(path "@source(s ./path)")
|
||||
<div>
|
||||
<div class="item">
|
||||
<a class="tree-page-title" href="#@var(path)">@source(./title)</a>
|
||||
|
||||
@ -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('<macro src=../tags join=", ">@source(.)</macro>')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user