Trim Saga: All snippets, language tiddlers, and typed (#6275)

* adding trim: link-dropdown, Fields, unfold

* adding trim: all remaining snippets

* Fix for reversion I accidentally applied
This commit is contained in:
Cameron Fischer
2022-04-01 12:10:29 +01:00
committed by GitHub
parent 6701683ddf
commit def8e6d354
15 changed files with 69 additions and 16 deletions
+8 -2
View File
@@ -3,5 +3,11 @@ title: $:/snippets/allfields
\define renderfield(title)
<tr class="tc-view-field"><td class="tc-view-field-name">''<$text text=<<__title__>>/>'':</td><td class="tc-view-field-value">//{{$:/language/Docs/Fields/$title$}}//</td></tr>
\end
<table class="tc-view-field-table"><tbody><$list filter="[fields[]sort[title]]" variable="listItem"><$macrocall $name="renderfield" title=<<listItem>>/></$list>
</tbody></table>
\whitespace trim
<table class="tc-view-field-table">
<tbody>
<$list filter="[fields[]sort[title]]" variable="listItem">
<$macrocall $name="renderfield" title=<<listItem>>/>
</$list>
</tbody>
</table>
+2 -1
View File
@@ -1,7 +1,8 @@
title: $:/snippets/download-wiki-button
\define lingo-base() $:/language/ControlPanel/Tools/Download/
\whitespace trim
<$button class="tc-btn-big-green">
<$action-sendmessage $message="tm-download-file" $param="$:/core/save/all" filename="index.html"/>
<<lingo Full/Caption>> {{$:/core/images/save-button}}
<<lingo Full/Caption>>&#32;{{$:/core/images/save-button}}
</$button>
+1
View File
@@ -1,5 +1,6 @@
title: $:/snippets/minifocusswitcher
\whitespace trim
<$select tiddler="$:/config/AutoFocus">
<$list filter="title tags text type fields">
<option value=<<currentTiddler>>><<currentTiddler>></option>
+1
View File
@@ -1,5 +1,6 @@
title: $:/snippets/minilanguageswitcher
\whitespace trim
<$select tiddler="$:/language">
<$list filter="[[$:/languages/en-GB]] [plugin-type[language]sort[title]]">
<option value=<<currentTiddler>>><$view field="description"><$view field="name"><$view field="title"/></$view></$view></option>
+2 -1
View File
@@ -1,7 +1,8 @@
title: $:/snippets/minithemeswitcher
\define lingo-base() $:/language/ControlPanel/Theme/
<<lingo Prompt>> <$select tiddler="$:/theme">
\whitespace trim
<<lingo Prompt>>&#32;<$select tiddler="$:/theme">
<$list filter="[plugin-type[theme]sort[title]]">
<option value=<<currentTiddler>>><$view field="name"><$view field="title"/></$view></option>
</$list>
+1
View File
@@ -3,6 +3,7 @@ title: $:/snippets/modules
\define describeModuleType(type)
{{$:/language/Docs/ModuleTypes/$type$}}
\end
\whitespace trim
<$list filter="[moduletypes[]]">
!! <$macrocall $name="currentTiddler" $type="text/plain" $output="text/plain"/>
+1
View File
@@ -1,5 +1,6 @@
title: $:/snippets/palettepreview
\whitespace trim
<$set name="currentTiddler" value={{$:/palette}}>
{{||$:/snippets/currpalettepreview}}
</$set>
+13 -2
View File
@@ -1,8 +1,19 @@
title: $:/snippets/paletteswitcher
\whitespace trim
<$linkcatcher to="$:/palette">
<div class="tc-chooser"><$list filter="[all[shadows+tiddlers]tag[$:/tags/Palette]sort[name]]"><$set name="cls" filter="[all[current]prefix{$:/palette}]" value="tc-chooser-item tc-chosen" emptyValue="tc-chooser-item"><div class=<<cls>>><$link to={{!!title}}>''<$view field="name" format="text"/>'' - <$view field="description" format="text"/>{{||$:/snippets/currpalettepreview}}</$link>
</div></$set>
<div class="tc-chooser">
<$list filter="[all[shadows+tiddlers]tag[$:/tags/Palette]sort[name]]">
<$set name="cls" filter="[all[current]prefix{$:/palette}]" value="tc-chooser-item tc-chosen" emptyValue="tc-chooser-item">
<div class=<<cls>>>
<$link to={{!!title}}>
''<$view field="name" format="text"/>''
&#32;-&#32;
<$view field="description" format="text"/>
{{||$:/snippets/currpalettepreview}}
</$link>
</div>
</$set>
</$list>
</div>
</$linkcatcher>
+10 -1
View File
@@ -1,7 +1,16 @@
title: $:/snippets/themeswitcher
\whitespace trim
<$linkcatcher to="$:/theme">
<div class="tc-chooser"><$list filter="[plugin-type[theme]sort[title]]"><$set name="cls" filter="[all[current]field:title{$:/theme}] [[$:/theme]!has[text]addsuffix[s/tiddlywiki/vanilla]field:title<currentTiddler>] +[limit[1]]" value="tc-chooser-item tc-chosen" emptyValue="tc-chooser-item"><div class=<<cls>>><$link to={{!!title}}>''<$view field="name" format="text"/>'' <$view field="description" format="text"/></$link></div>
<div class="tc-chooser">
<$list filter="[plugin-type[theme]sort[title]]">
<$set name="cls" filter="[all[current]field:title{$:/theme}] [[$:/theme]!has[text]addsuffix[s/tiddlywiki/vanilla]field:title<currentTiddler>] +[limit[1]]" value="tc-chooser-item tc-chosen" emptyValue="tc-chooser-item">
<div class=<<cls>>><$link to={{!!title}}>
''<$view field="name" format="text"/>''
&#32;
<$view field="description" format="text"/>
</$link>
</div>
</$set>
</$list>
</div>
+1
View File
@@ -3,6 +3,7 @@ title: $:/snippets/viewswitcher
\define icon()
$:/core/images/storyview-$(storyview)$
\end
\whitespace trim
<$linkcatcher to="$:/view">
<div class="tc-chooser tc-viewswitcher">
<$list filter="[storyviews[]]" variable="storyview">