1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 03:57:21 +00:00

Text-slicer refactoring

This commit is contained in:
Jermolene 2015-08-31 20:32:32 +01:00
parent 0be82ea7fb
commit 17dc21b809
6 changed files with 21 additions and 16 deletions

View File

@ -1,3 +1,3 @@
title: $:/plugins/tiddlywiki/text-slicer/exporters/full-doc
<$list filter="[list<currentTiddler>!has[draft.of]]" template="$:/plugins/tiddlywiki/text-slicer/templates/static/tiddler" listItem="item"/>
{{||$:/plugins/tiddlywiki/text-slicer/templates/static/document}}

View File

@ -15,18 +15,7 @@ $:/config/plugins/tiddlywiki/text-slicer/heading-status/$(currentTiddler)$
<div class="tc-sliced-document">
<div class="tc-sliced-document-header">
''Document'': <$link><$view field="title"/></$link>
<$checkbox tiddler=<<config-show-toolbar>> field="text" checked="yes" unchecked="no" default="no"> Show toolbar</$checkbox>
<$button>
<$action-sendmessage $message="tm-open-window" $param=<<currentTiddler>> template="$:/plugins/tiddlywiki/text-slicer/exporters/full-doc"/>
View document
</$button>
</div>
{{||$:/plugins/tiddlywiki/text-slicer/ui/document/header}}
<div class='tc-sliced-document-body'>

View File

@ -1,7 +1,7 @@
title: $:/plugins/tiddlywiki/text-slicer/templates/interactive/tiddler
<$list filter="[<tv-show-toolbar>prefix[yes]]" variable="hasToolbar">
{{||$:/plugins/tiddlywiki/text-slicer/ui/toolbar/tiddler-toolbar}}
{{||$:/plugins/tiddlywiki/text-slicer/ui/tiddler/toolbar}}
</$list>
<$reveal type="match" state="!!toc-type" text="document">

View File

@ -0,0 +1,16 @@
title: $:/plugins/tiddlywiki/text-slicer/ui/document/header
<div class="tc-sliced-document-header">
''Document'': <$link><$view field="title"/></$link>
''Exclude tags'': <$edit-text field="toc-exclude-tags"/>
<$checkbox tiddler=<<config-show-toolbar>> field="text" checked="yes" unchecked="no" default="no"> Show toolbar</$checkbox>
<$button>
<$action-sendmessage $message="tm-open-window" $param=<<currentTiddler>> template="$:/plugins/tiddlywiki/text-slicer/exporters/full-doc"/>
View document
</$button>
</div>

View File

@ -1,4 +1,4 @@
title: $:/plugins/tiddlywiki/text-slicer/ui/toolbar/tiddler-toolbar
title: $:/plugins/tiddlywiki/text-slicer/ui/tiddler/toolbar
<div class="tc-slice-toolbar">
<$list filter="[all[shadows+tiddlers]tag[$:/tags/TextSlicerToolbar]!has[draft.of]]" variable="listItem"><$transclude tiddler=<<listItem>>/></$list>

View File

@ -1,4 +1,4 @@
title: $:/plugins/tiddlywiki/text-slicer/ui/toolbar/title
title: $:/plugins/tiddlywiki/text-slicer/ui/tiddler/toolbar/title
tags: $:/tags/TextSlicerToolbar
\define renameProxyTitle()