mirror of
https://github.com/flynx/pWiki.git
synced 2025-12-17 16:41:39 +00:00
notes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
3044a0ecfa
commit
95b6083b24
@ -2130,6 +2130,11 @@ module.System = {
|
|||||||
target.delete()
|
target.delete()
|
||||||
: target.delete('**')
|
: target.delete('**')
|
||||||
|
|
||||||
|
// XXX
|
||||||
|
if(this.referrer == this.path){
|
||||||
|
this.renderer.path = '..'
|
||||||
|
return '' }
|
||||||
|
|
||||||
// redirect...
|
// redirect...
|
||||||
this.renderer
|
this.renderer
|
||||||
&& (this.renderer.location = this.referrer)
|
&& (this.renderer.location = this.referrer)
|
||||||
|
|||||||
@ -425,12 +425,7 @@ module.BaseStore = {
|
|||||||
return this.data[key] },
|
return this.data[key] },
|
||||||
get: async function(path, strict=false, energetic=false){
|
get: async function(path, strict=false, energetic=false){
|
||||||
var that = this
|
var that = this
|
||||||
/* XXX ENERGETIC...
|
|
||||||
path = await this.resolve(path, strict)
|
|
||||||
/*/
|
|
||||||
// XXX SANITIZE...
|
|
||||||
path = pwpath.sanitize(path, 'string')
|
path = pwpath.sanitize(path, 'string')
|
||||||
//*/
|
|
||||||
var path = pwpath.splitArgs(path).path
|
var path = pwpath.splitArgs(path).path
|
||||||
path = path.includes('*')
|
path = path.includes('*')
|
||||||
&& (energetic == true ?
|
&& (energetic == true ?
|
||||||
|
|||||||
@ -17,10 +17,15 @@
|
|||||||
* - CLI
|
* - CLI
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* XXX CachedStore seems to be broken (see: pwiki/store/base.js:837)
|
|
||||||
* XXX BUG: when editing the root page of a substore the page's .cache is
|
* XXX BUG: when editing the root page of a substore the page's .cache is
|
||||||
* not reset for some reason...
|
* not reset for some reason...
|
||||||
* ...can't dependably reproduce...
|
* ...the problem is in that .names() cache is not reset when a new
|
||||||
|
* page is created...
|
||||||
|
* ...this does not appear to affect normal pages...
|
||||||
|
* ...the root issue is that .__cache_add(..)/.__cache_remove(..)
|
||||||
|
* are called relative to the nested store and not the root...
|
||||||
|
* ...feels like we need to rethink the cache/index strategy globally...
|
||||||
|
* XXX CachedStore seems to be broken (see: pwiki/store/base.js:837)
|
||||||
* XXX might be a good idea to create memory store (sandbox) from the
|
* XXX might be a good idea to create memory store (sandbox) from the
|
||||||
* page API -- action??
|
* page API -- action??
|
||||||
* XXX Chrome started spamming CORS error:
|
* XXX Chrome started spamming CORS error:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user