Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2022-10-19 01:09:41 +03:00
parent 3044a0ecfa
commit 95b6083b24
3 changed files with 12 additions and 7 deletions

View File

@ -2130,6 +2130,11 @@ module.System = {
target.delete()
: target.delete('**')
// XXX
if(this.referrer == this.path){
this.renderer.path = '..'
return '' }
// redirect...
this.renderer
&& (this.renderer.location = this.referrer)

View File

@ -425,12 +425,7 @@ module.BaseStore = {
return this.data[key] },
get: async function(path, strict=false, energetic=false){
var that = this
/* XXX ENERGETIC...
path = await this.resolve(path, strict)
/*/
// XXX SANITIZE...
path = pwpath.sanitize(path, 'string')
//*/
var path = pwpath.splitArgs(path).path
path = path.includes('*')
&& (energetic == true ?

View File

@ -17,10 +17,15 @@
* - 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
* 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
* page API -- action??
* XXX Chrome started spamming CORS error: