1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-01-23 07:26:54 +00:00

Rejig the main save template to get rid of the separate system tiddler area

It dates from an ancient version of TW5, and is really redundant now.
It also meant that system tiddlers were not encrypted, which seems
confusing for end users.
This commit is contained in:
Jermolene 2013-11-24 20:40:10 +00:00
parent 802fe9beae
commit b33a3293fe
2 changed files with 5 additions and 6 deletions

View File

@ -1,13 +1,16 @@
title: $:/core/templates/store.area.template.html title: $:/core/templates/store.area.template.html
\define saveFilter()
[is[tiddler]] -[type[text/css]] -[type[application/javascript]has[module-type]] -[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]]
\end
<$reveal type="nomatch" state="$:/isEncrypted" text="yes"> <$reveal type="nomatch" state="$:/isEncrypted" text="yes">
`<div id="storeArea" style="display:none;">` `<div id="storeArea" style="display:none;">`
{{{ [!is[system]] ||$:/core/templates/html-div-tiddler}}} <$list filter=<<saveFilter>> template="$:/core/templates/html-div-tiddler"/>
`</div>` `</div>`
</$reveal> </$reveal>
<$reveal type="match" state="$:/isEncrypted" text="yes"> <$reveal type="match" state="$:/isEncrypted" text="yes">
`<!------------- Encrypted tiddlers --------->` `<!------------- Encrypted tiddlers --------->`
`<pre id="encryptedStoreArea" type="text/plain" style="display:none;">` `<pre id="encryptedStoreArea" type="text/plain" style="display:none;">`
<$encrypt filter="[!is[system]]"/> <$encrypt filter=<<saveFilter>>/>
`</pre>` `</pre>`
</$reveal> </$reveal>

View File

@ -30,10 +30,6 @@ title: $:/core/templates/tiddlywiki5.template.html
{{$:/core/templates/static.content||$:/core/templates/html-tiddler}} {{$:/core/templates/static.content||$:/core/templates/html-tiddler}}
</div> </div>
</noscript> </noscript>
<!----------- Miscellaneous system tiddlers ----------->
<div id="systemArea" style="display:none;">
{{{ [is[system]] -[type[text/css]] -[type[application/javascript]has[module-type]] -[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] ||$:/core/templates/html-div-tiddler}}}
</div>
<!----------- Ordinary tiddlers -----------> <!----------- Ordinary tiddlers ----------->
{{$:/core/templates/store.area.template.html}} {{$:/core/templates/store.area.template.html}}
<!----------- Library modules -----------> <!----------- Library modules ----------->