Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2022-09-11 08:52:38 +03:00
parent b29248bf49
commit 4bf7d8f27a
3 changed files with 18 additions and 2 deletions

View File

@ -2021,6 +2021,10 @@ module.Test = {
// this is shown by most listers by adding an :all argument to the url...
'.hidden': {
text: 'Hidden page...' },
'.hidden/subpage': {
text: 'visible subpage...' },
'.hidden/.hidden': {
text: 'hidden subpage...' },
slots: {
text: object.doc`

View File

@ -358,6 +358,9 @@ module.BaseStore = {
// skip metadata paths...
if(p.includes('*')){
return res }
// XXX HIDE .hide_paths
if(pwpath.basename(p)[0] == '.'
/*/
if((pwpath.basename(p)[0] == '.'
// XXX CACHE this???
|| (that.hide_paths
@ -365,6 +368,7 @@ module.BaseStore = {
.reduce(function(res, h){
return res === true
|| p.startsWith(h) }, false)))
//*/
&& !all){
return res }
var m = p.match(pattern)

View File

@ -1,8 +1,16 @@
/**********************************************************************
*
*
* XXX changing the URL does not start the spinner...
* XXX HIDE revise .hide_paths...
* XXX BUG: .hide_paths:
* - hidden dir should hide all the children -- BROKEN
* (see /.hidden/suppage)
* - listing a hidden subtree should work regardless of :all -- BROKEN
* (see: /.hidden/tree)
* XXX BUG: changing the URL does not start the spinner...
* chech:
* - url (hashchange)
* - click link
* - history back/foreward
* XXX Q: can we access fs from a pwa???
* XXX start writing docs in pwiki
* - WYSIWYG markdown editor/viewer (ASAP)