mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-01 05:49:55 +00:00
Merge branch 'master' of https://github.com/Jermolene/TiddlyWiki5
This commit is contained in:
commit
2136d1de5a
@ -33,8 +33,8 @@ LinkWidget.prototype.render = function(parent,nextSibling) {
|
|||||||
this.computeAttributes();
|
this.computeAttributes();
|
||||||
// Execute our logic
|
// Execute our logic
|
||||||
this.execute();
|
this.execute();
|
||||||
// Get the value of the tw-wikilinks configuration macro
|
// Get the value of the tv-wikilinks configuration macro
|
||||||
var wikiLinksMacro = this.getVariable("tw-wikilinks"),
|
var wikiLinksMacro = this.getVariable("tv-wikilinks"),
|
||||||
useWikiLinks = wikiLinksMacro ? !(wikiLinksMacro.trim() === "no") : true;
|
useWikiLinks = wikiLinksMacro ? !(wikiLinksMacro.trim() === "no") : true;
|
||||||
// Render the link if required
|
// Render the link if required
|
||||||
if(useWikiLinks) {
|
if(useWikiLinks) {
|
||||||
@ -73,14 +73,14 @@ LinkWidget.prototype.renderLink = function(parent,nextSibling) {
|
|||||||
}
|
}
|
||||||
domNode.setAttribute("class",classes.join(" "));
|
domNode.setAttribute("class",classes.join(" "));
|
||||||
// Set an href
|
// Set an href
|
||||||
var wikiLinkTemplateMacro = this.getVariable("tw-wikilink-template"),
|
var wikiLinkTemplateMacro = this.getVariable("tv-wikilink-template"),
|
||||||
wikiLinkTemplate = wikiLinkTemplateMacro ? wikiLinkTemplateMacro.trim() : "#$uri_encoded$",
|
wikiLinkTemplate = wikiLinkTemplateMacro ? wikiLinkTemplateMacro.trim() : "#$uri_encoded$",
|
||||||
wikiLinkText = wikiLinkTemplate.replace("$uri_encoded$",encodeURIComponent(this.to));
|
wikiLinkText = wikiLinkTemplate.replace("$uri_encoded$",encodeURIComponent(this.to));
|
||||||
wikiLinkText = wikiLinkText.replace("$uri_doubleencoded$",encodeURIComponent(encodeURIComponent(this.to)));
|
wikiLinkText = wikiLinkText.replace("$uri_doubleencoded$",encodeURIComponent(encodeURIComponent(this.to)));
|
||||||
domNode.setAttribute("href",wikiLinkText);
|
domNode.setAttribute("href",wikiLinkText);
|
||||||
// Set the tooltip
|
// Set the tooltip
|
||||||
// HACK: Performance issues with re-parsing the tooltip prevent us defaulting the tooltip to "<$transclude field='tooltip'><$transclude field='title'/></$transclude>"
|
// HACK: Performance issues with re-parsing the tooltip prevent us defaulting the tooltip to "<$transclude field='tooltip'><$transclude field='title'/></$transclude>"
|
||||||
var tooltipWikiText = this.tooltip || this.getVariable("tw-wikilink-tooltip");
|
var tooltipWikiText = this.tooltip || this.getVariable("tv-wikilink-tooltip");
|
||||||
if(tooltipWikiText) {
|
if(tooltipWikiText) {
|
||||||
var tooltipText = this.wiki.renderText("text/plain","text/vnd.tiddlywiki",tooltipWikiText,{
|
var tooltipText = this.wiki.renderText("text/plain","text/vnd.tiddlywiki",tooltipWikiText,{
|
||||||
parseAsInline: true,
|
parseAsInline: true,
|
||||||
|
@ -439,7 +439,7 @@ NavigatorWidget.prototype.handleImportTiddlersEvent = function(event) {
|
|||||||
newFields.text = JSON.stringify(importData,null,$tw.config.preferences.jsonSpaces);
|
newFields.text = JSON.stringify(importData,null,$tw.config.preferences.jsonSpaces);
|
||||||
this.wiki.addTiddler(new $tw.Tiddler(importTiddler,newFields));
|
this.wiki.addTiddler(new $tw.Tiddler(importTiddler,newFields));
|
||||||
// Update the story and history details
|
// Update the story and history details
|
||||||
if(this.getVariable("tw-auto-open-on-import") !== "no") {
|
if(this.getVariable("tv-auto-open-on-import") !== "no") {
|
||||||
var storyList = this.getStoryList(),
|
var storyList = this.getStoryList(),
|
||||||
history = [];
|
history = [];
|
||||||
// Add it to the story
|
// Add it to the story
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
title: $:/core/templates/alltiddlers.template.html
|
title: $:/core/templates/alltiddlers.template.html
|
||||||
type: text/vnd.tiddlywiki-html
|
type: text/vnd.tiddlywiki-html
|
||||||
|
|
||||||
\define tw-wikilink-template() #$uri_encoded$
|
\define tv-wikilink-template() #$uri_encoded$
|
||||||
\define tw-config-toolbar-icons() no
|
\define tv-config-toolbar-icons() no
|
||||||
\define tw-config-toolbar-text() no
|
\define tv-config-toolbar-text() no
|
||||||
\define tw-config-toolbar-class() tc-btn-invisible
|
\define tv-config-toolbar-class() tc-btn-invisible
|
||||||
\rules only filteredtranscludeinline transcludeinline
|
\rules only filteredtranscludeinline transcludeinline
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html>
|
<html>
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
title: $:/core/templates/static.template.html
|
title: $:/core/templates/static.template.html
|
||||||
type: text/vnd.tiddlywiki-html
|
type: text/vnd.tiddlywiki-html
|
||||||
|
|
||||||
\define tw-wikilink-template() static/$uri_doubleencoded$.html
|
\define tv-wikilink-template() static/$uri_doubleencoded$.html
|
||||||
\define tw-config-toolbar-icons() no
|
\define tv-config-toolbar-icons() no
|
||||||
\define tw-config-toolbar-text() no
|
\define tv-config-toolbar-text() no
|
||||||
\define tw-config-toolbar-class() tc-btn-invisible
|
\define tv-config-toolbar-class() tc-btn-invisible
|
||||||
\rules only filteredtranscludeinline transcludeinline
|
\rules only filteredtranscludeinline transcludeinline
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html>
|
<html>
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
title: $:/core/templates/static.tiddler.html
|
title: $:/core/templates/static.tiddler.html
|
||||||
|
|
||||||
\define tw-wikilink-template() $uri_doubleencoded$.html
|
\define tv-wikilink-template() $uri_doubleencoded$.html
|
||||||
\define tw-config-toolbar-icons() no
|
\define tv-config-toolbar-icons() no
|
||||||
\define tw-config-toolbar-text() no
|
\define tv-config-toolbar-text() no
|
||||||
\define tw-config-toolbar-class() tc-btn-invisible
|
\define tv-config-toolbar-class() tc-btn-invisible
|
||||||
`<!doctype html>
|
`<!doctype html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
|
@ -9,9 +9,9 @@ $:/config/EditToolbarButtons/Visibility/$(listItem)$
|
|||||||
|
|
||||||
{{$:/language/ControlPanel/Appearance/Toolbars/EditToolbar/Hint}}
|
{{$:/language/ControlPanel/Appearance/Toolbars/EditToolbar/Hint}}
|
||||||
|
|
||||||
<$set name="tw-config-toolbar-icons" value="yes">
|
<$set name="tv-config-toolbar-icons" value="yes">
|
||||||
|
|
||||||
<$set name="tw-config-toolbar-text" value="yes">
|
<$set name="tv-config-toolbar-text" value="yes">
|
||||||
|
|
||||||
<$list filter="[all[shadows+tiddlers]tag[$:/tags/EditToolbar]!has[draft.of]]" variable="listItem">
|
<$list filter="[all[shadows+tiddlers]tag[$:/tags/EditToolbar]!has[draft.of]]" variable="listItem">
|
||||||
|
|
||||||
|
@ -9,9 +9,9 @@ $:/config/PageControlButtons/Visibility/$(listItem)$
|
|||||||
|
|
||||||
{{$:/language/ControlPanel/Appearance/Toolbars/PageControls/Hint}}
|
{{$:/language/ControlPanel/Appearance/Toolbars/PageControls/Hint}}
|
||||||
|
|
||||||
<$set name="tw-config-toolbar-icons" value="yes">
|
<$set name="tv-config-toolbar-icons" value="yes">
|
||||||
|
|
||||||
<$set name="tw-config-toolbar-text" value="yes">
|
<$set name="tv-config-toolbar-text" value="yes">
|
||||||
|
|
||||||
<$list filter="[all[shadows+tiddlers]tag[$:/tags/PageControls]!has[draft.of]]" variable="listItem">
|
<$list filter="[all[shadows+tiddlers]tag[$:/tags/PageControls]!has[draft.of]]" variable="listItem">
|
||||||
|
|
||||||
|
@ -9,9 +9,9 @@ $:/config/ViewToolbarButtons/Visibility/$(listItem)$
|
|||||||
|
|
||||||
{{$:/language/ControlPanel/Appearance/Toolbars/ViewToolbar/Hint}}
|
{{$:/language/ControlPanel/Appearance/Toolbars/ViewToolbar/Hint}}
|
||||||
|
|
||||||
<$set name="tw-config-toolbar-icons" value="yes">
|
<$set name="tv-config-toolbar-icons" value="yes">
|
||||||
|
|
||||||
<$set name="tw-config-toolbar-text" value="yes">
|
<$set name="tv-config-toolbar-text" value="yes">
|
||||||
|
|
||||||
<$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]]" variable="listItem">
|
<$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]]" variable="listItem">
|
||||||
|
|
||||||
|
@ -18,12 +18,12 @@ $:/config/Plugins/Disabled/$(currentTiddler)$
|
|||||||
\define plugin-table-body(type,disabledMessage)
|
\define plugin-table-body(type,disabledMessage)
|
||||||
<div class="tc-plugin-info-chunk">
|
<div class="tc-plugin-info-chunk">
|
||||||
<$reveal type="nomatch" state=<<popup-state>> text="yes">
|
<$reveal type="nomatch" state=<<popup-state>> text="yes">
|
||||||
<$button class="tc-btn-invisible btn-dropdown" set=<<popup-state>> setTo="yes">
|
<$button class="tc-btn-invisible tc-btn-dropdown" set=<<popup-state>> setTo="yes">
|
||||||
{{$:/core/images/right-arrow}}
|
{{$:/core/images/right-arrow}}
|
||||||
</$button>
|
</$button>
|
||||||
</$reveal>
|
</$reveal>
|
||||||
<$reveal type="match" state=<<popup-state>> text="yes">
|
<$reveal type="match" state=<<popup-state>> text="yes">
|
||||||
<$button class="tc-btn-invisible btn-dropdown" set=<<popup-state>> setTo="no">
|
<$button class="tc-btn-invisible tc-btn-dropdown" set=<<popup-state>> setTo="no">
|
||||||
{{$:/core/images/down-arrow}}
|
{{$:/core/images/down-arrow}}
|
||||||
</$button>
|
</$button>
|
||||||
</$reveal>
|
</$reveal>
|
||||||
|
@ -16,7 +16,7 @@ background-color:$(backgroundColor)$;
|
|||||||
<div class="tc-edit-add-tag">
|
<div class="tc-edit-add-tag">
|
||||||
<span class="tc-add-tag-name">
|
<span class="tc-add-tag-name">
|
||||||
<$edit-text tiddler="$:/temp/NewTagName" tag="input" default="" placeholder={{$:/language/EditTemplate/Tags/Add/Placeholder}} focusPopup=<<qualify "$:/state/popup/tags-auto-complete">> class="tc-edit-texteditor"/>
|
<$edit-text tiddler="$:/temp/NewTagName" tag="input" default="" placeholder={{$:/language/EditTemplate/Tags/Add/Placeholder}} focusPopup=<<qualify "$:/state/popup/tags-auto-complete">> class="tc-edit-texteditor"/>
|
||||||
</span> <$button popup=<<qualify "$:/state/popup/tags-auto-complete">> class="tc-btn-invisible btn-dropdown">{{$:/core/images/down-arrow}}</$button> <span class="tc-add-tag-button">
|
</span> <$button popup=<<qualify "$:/state/popup/tags-auto-complete">> class="tc-btn-invisible tc-btn-dropdown">{{$:/core/images/down-arrow}}</$button> <span class="tc-add-tag-button">
|
||||||
<$button message="tm-add-tag" param={{$:/temp/NewTagName}} set="$:/temp/NewTagName" setTo="" class="">
|
<$button message="tm-add-tag" param={{$:/temp/NewTagName}} set="$:/temp/NewTagName" setTo="" class="">
|
||||||
<<lingo Tags/Add/Button>>
|
<<lingo Tags/Add/Button>>
|
||||||
</$button>
|
</$button>
|
||||||
|
@ -2,7 +2,7 @@ title: $:/core/ui/EditTemplate/type
|
|||||||
tags: $:/tags/EditTemplate
|
tags: $:/tags/EditTemplate
|
||||||
|
|
||||||
\define lingo-base() $:/language/EditTemplate/
|
\define lingo-base() $:/language/EditTemplate/
|
||||||
<p><$fieldmangler><em class="tc-edit"><<lingo Type/Prompt>></em> <$edit-text field="type" tag="input" default="" placeholder={{$:/language/EditTemplate/Type/Placeholder}} focusPopup=<<qualify "$:/state/popup/type-dropdown">> class="tc-edit-typeeditor"/> <$button popup=<<qualify "$:/state/popup/type-dropdown">> class="tc-btn-invisible btn-dropdown">{{$:/core/images/down-arrow}}</$button> <$button message="tm-remove-field" param="type" class="tc-btn-invisible tc-btn-icon">{{$:/core/images/delete-button}}</$button></$fieldmangler></p>
|
<p><$fieldmangler><em class="tc-edit"><<lingo Type/Prompt>></em> <$edit-text field="type" tag="input" default="" placeholder={{$:/language/EditTemplate/Type/Placeholder}} focusPopup=<<qualify "$:/state/popup/type-dropdown">> class="tc-edit-typeeditor"/> <$button popup=<<qualify "$:/state/popup/type-dropdown">> class="tc-btn-invisible tc-btn-dropdown">{{$:/core/images/down-arrow}}</$button> <$button message="tm-remove-field" param="type" class="tc-btn-invisible tc-btn-icon">{{$:/core/images/delete-button}}</$button></$fieldmangler></p>
|
||||||
|
|
||||||
<div class="tc-block-dropdown-wrapper">
|
<div class="tc-block-dropdown-wrapper">
|
||||||
<$reveal state=<<qualify "$:/state/popup/type-dropdown">> type="nomatch" text="" default="">
|
<$reveal state=<<qualify "$:/state/popup/type-dropdown">> type="nomatch" text="" default="">
|
||||||
|
@ -3,11 +3,11 @@ tags: $:/tags/EditToolbar
|
|||||||
caption: {{$:/core/images/cancel-button}} {{$:/language/Buttons/Cancel/Caption}}
|
caption: {{$:/core/images/cancel-button}} {{$:/language/Buttons/Cancel/Caption}}
|
||||||
description: {{$:/language/Buttons/Cancel/Hint}}
|
description: {{$:/language/Buttons/Cancel/Hint}}
|
||||||
|
|
||||||
<$button message="tm-cancel-tiddler" title={{$:/language/Buttons/Cancel/Hint}} aria-label={{$:/language/Buttons/Cancel/Caption}} class=<<tw-config-toolbar-class>>>
|
<$button message="tm-cancel-tiddler" title={{$:/language/Buttons/Cancel/Hint}} aria-label={{$:/language/Buttons/Cancel/Caption}} class=<<tv-config-toolbar-class>>>
|
||||||
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
|
||||||
{{$:/core/images/cancel-button}}
|
{{$:/core/images/cancel-button}}
|
||||||
</$list>
|
</$list>
|
||||||
<$list filter="[<tw-config-toolbar-text>prefix[yes]]">
|
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
|
||||||
<$text text={{$:/language/Buttons/Cancel/Caption}}/>
|
<$text text={{$:/language/Buttons/Cancel/Caption}}/>
|
||||||
</$list>
|
</$list>
|
||||||
</$button>
|
</$button>
|
||||||
|
@ -3,11 +3,11 @@ tags: $:/tags/EditToolbar
|
|||||||
caption: {{$:/core/images/delete-button}} {{$:/language/Buttons/Delete/Caption}}
|
caption: {{$:/core/images/delete-button}} {{$:/language/Buttons/Delete/Caption}}
|
||||||
description: {{$:/language/Buttons/Delete/Hint}}
|
description: {{$:/language/Buttons/Delete/Hint}}
|
||||||
|
|
||||||
<$button message="tm-delete-tiddler" title={{$:/language/Buttons/Delete/Hint}} aria-label={{$:/language/Buttons/Delete/Caption}} class=<<tw-config-toolbar-class>>>
|
<$button message="tm-delete-tiddler" title={{$:/language/Buttons/Delete/Hint}} aria-label={{$:/language/Buttons/Delete/Caption}} class=<<tv-config-toolbar-class>>>
|
||||||
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
|
||||||
{{$:/core/images/delete-button}}
|
{{$:/core/images/delete-button}}
|
||||||
</$list>
|
</$list>
|
||||||
<$list filter="[<tw-config-toolbar-text>prefix[yes]]">
|
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
|
||||||
<$text text={{$:/language/Buttons/Delete/Caption}}/>
|
<$text text={{$:/language/Buttons/Delete/Caption}}/>
|
||||||
</$list>
|
</$list>
|
||||||
</$button>
|
</$button>
|
@ -3,11 +3,11 @@ tags: $:/tags/EditToolbar
|
|||||||
caption: {{$:/core/images/done-button}} {{$:/language/Buttons/Save/Caption}}
|
caption: {{$:/core/images/done-button}} {{$:/language/Buttons/Save/Caption}}
|
||||||
description: {{$:/language/Buttons/Save/Hint}}
|
description: {{$:/language/Buttons/Save/Hint}}
|
||||||
|
|
||||||
<$button message="tm-save-tiddler" title={{$:/language/Buttons/Save/Hint}} aria-label={{$:/language/Buttons/Save/Caption}} class=<<tw-config-toolbar-class>>>
|
<$button message="tm-save-tiddler" title={{$:/language/Buttons/Save/Hint}} aria-label={{$:/language/Buttons/Save/Caption}} class=<<tv-config-toolbar-class>>>
|
||||||
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
|
||||||
{{$:/core/images/done-button}}
|
{{$:/core/images/done-button}}
|
||||||
</$list>
|
</$list>
|
||||||
<$list filter="[<tw-config-toolbar-text>prefix[yes]]">
|
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
|
||||||
<$text text={{$:/language/Buttons/Save/Caption}}/>
|
<$text text={{$:/language/Buttons/Save/Caption}}/>
|
||||||
</$list>
|
</$list>
|
||||||
</$button>
|
</$button>
|
@ -30,12 +30,12 @@ selection-$(payloadTiddler)$
|
|||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<$reveal type="nomatch" state=<<previewPopupState>> text="yes">
|
<$reveal type="nomatch" state=<<previewPopupState>> text="yes">
|
||||||
<$button class="tc-btn-invisible btn-dropdown" set=<<previewPopupState>> setTo="yes">
|
<$button class="tc-btn-invisible tc-btn-dropdown" set=<<previewPopupState>> setTo="yes">
|
||||||
{{$:/core/images/right-arrow}} <$text text=<<payloadTiddler>>/>
|
{{$:/core/images/right-arrow}} <$text text=<<payloadTiddler>>/>
|
||||||
</$button>
|
</$button>
|
||||||
</$reveal>
|
</$reveal>
|
||||||
<$reveal type="match" state=<<previewPopupState>> text="yes">
|
<$reveal type="match" state=<<previewPopupState>> text="yes">
|
||||||
<$button class="tc-btn-invisible btn-dropdown" set=<<previewPopupState>> setTo="no">
|
<$button class="tc-btn-invisible tc-btn-dropdown" set=<<previewPopupState>> setTo="no">
|
||||||
{{$:/core/images/down-arrow}} <$text text=<<payloadTiddler>>/>
|
{{$:/core/images/down-arrow}} <$text text=<<payloadTiddler>>/>
|
||||||
</$button>
|
</$button>
|
||||||
</$reveal>
|
</$reveal>
|
||||||
|
@ -2,11 +2,11 @@ title: $:/core/ui/MoreSideBar/Tags
|
|||||||
tags: $:/tags/MoreSideBar
|
tags: $:/tags/MoreSideBar
|
||||||
caption: {{$:/language/SideBar/Tags/Caption}}
|
caption: {{$:/language/SideBar/Tags/Caption}}
|
||||||
|
|
||||||
<$set name="tw-config-toolbar-icons" value="yes">
|
<$set name="tv-config-toolbar-icons" value="yes">
|
||||||
|
|
||||||
<$set name="tw-config-toolbar-text" value="yes">
|
<$set name="tv-config-toolbar-text" value="yes">
|
||||||
|
|
||||||
<$set name="tw-config-toolbar-class" value="">
|
<$set name="tv-config-toolbar-class" value="">
|
||||||
|
|
||||||
{{$:/core/ui/Buttons/tag-manager}}
|
{{$:/core/ui/Buttons/tag-manager}}
|
||||||
|
|
||||||
|
@ -3,11 +3,11 @@ tags: $:/tags/PageControls
|
|||||||
caption: {{$:/core/images/close-all-button}} {{$:/language/Buttons/CloseAll/Caption}}
|
caption: {{$:/core/images/close-all-button}} {{$:/language/Buttons/CloseAll/Caption}}
|
||||||
description: {{$:/language/Buttons/CloseAll/Hint}}
|
description: {{$:/language/Buttons/CloseAll/Hint}}
|
||||||
|
|
||||||
<$button message="tm-close-all-tiddlers" title={{$:/language/Buttons/CloseAll/Hint}} aria-label={{$:/language/Buttons/CloseAll/Caption}} class=<<tw-config-toolbar-class>>>
|
<$button message="tm-close-all-tiddlers" title={{$:/language/Buttons/CloseAll/Hint}} aria-label={{$:/language/Buttons/CloseAll/Caption}} class=<<tv-config-toolbar-class>>>
|
||||||
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
|
||||||
{{$:/core/images/close-all-button}}
|
{{$:/core/images/close-all-button}}
|
||||||
</$list>
|
</$list>
|
||||||
<$list filter="[<tw-config-toolbar-text>prefix[yes]]">
|
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
|
||||||
<$text text={{$:/language/Buttons/CloseAll/Caption}}/>
|
<$text text={{$:/language/Buttons/CloseAll/Caption}}/>
|
||||||
</$list>
|
</$list>
|
||||||
</$button>
|
</$button>
|
||||||
|
@ -3,11 +3,11 @@ tags: $:/tags/PageControls
|
|||||||
caption: {{$:/core/images/options-button}} {{$:/language/Buttons/ControlPanel/Caption}}
|
caption: {{$:/core/images/options-button}} {{$:/language/Buttons/ControlPanel/Caption}}
|
||||||
description: {{$:/language/Buttons/ControlPanel/Hint}}
|
description: {{$:/language/Buttons/ControlPanel/Hint}}
|
||||||
|
|
||||||
<$button to="$:/ControlPanel" title={{$:/language/Buttons/ControlPanel/Hint}} aria-label={{$:/language/Buttons/ControlPanel/Caption}} class=<<tw-config-toolbar-class>>>
|
<$button to="$:/ControlPanel" title={{$:/language/Buttons/ControlPanel/Hint}} aria-label={{$:/language/Buttons/ControlPanel/Caption}} class=<<tv-config-toolbar-class>>>
|
||||||
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
|
||||||
{{$:/core/images/options-button}}
|
{{$:/core/images/options-button}}
|
||||||
</$list>
|
</$list>
|
||||||
<$list filter="[<tw-config-toolbar-text>prefix[yes]]">
|
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
|
||||||
<$text text={{$:/language/Buttons/ControlPanel/Caption}}/>
|
<$text text={{$:/language/Buttons/ControlPanel/Caption}}/>
|
||||||
</$list>
|
</$list>
|
||||||
</$button>
|
</$button>
|
||||||
|
@ -4,21 +4,21 @@ caption: {{$:/core/images/locked-padlock}} {{$:/language/Buttons/Encryption/Capt
|
|||||||
description: {{$:/language/Buttons/Encryption/Hint}}
|
description: {{$:/language/Buttons/Encryption/Hint}}
|
||||||
|
|
||||||
<$reveal type="match" state="$:/isEncrypted" text="yes">
|
<$reveal type="match" state="$:/isEncrypted" text="yes">
|
||||||
<$button message="tm-clear-password" title={{$:/language/Buttons/Encryption/ClearPassword/Hint}} aria-label={{$:/language/Buttons/Encryption/ClearPassword/Caption}} class=<<tw-config-toolbar-class>>>
|
<$button message="tm-clear-password" title={{$:/language/Buttons/Encryption/ClearPassword/Hint}} aria-label={{$:/language/Buttons/Encryption/ClearPassword/Caption}} class=<<tv-config-toolbar-class>>>
|
||||||
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
|
||||||
{{$:/core/images/locked-padlock}}
|
{{$:/core/images/locked-padlock}}
|
||||||
</$list>
|
</$list>
|
||||||
<$list filter="[<tw-config-toolbar-text>prefix[yes]]">
|
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
|
||||||
<$text text={{$:/language/Buttons/Encryption/ClearPassword/Caption}}/>
|
<$text text={{$:/language/Buttons/Encryption/ClearPassword/Caption}}/>
|
||||||
</$list>
|
</$list>
|
||||||
</$button>
|
</$button>
|
||||||
</$reveal>
|
</$reveal>
|
||||||
<$reveal type="nomatch" state="$:/isEncrypted" text="yes">
|
<$reveal type="nomatch" state="$:/isEncrypted" text="yes">
|
||||||
<$button message="tm-set-password" title={{$:/language/Buttons/Encryption/SetPassword/Hint}} aria-label={{$:/language/Buttons/Encryption/SetPassword/Caption}} class=<<tw-config-toolbar-class>>>
|
<$button message="tm-set-password" title={{$:/language/Buttons/Encryption/SetPassword/Hint}} aria-label={{$:/language/Buttons/Encryption/SetPassword/Caption}} class=<<tv-config-toolbar-class>>>
|
||||||
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
|
||||||
{{$:/core/images/unlocked-padlock}}
|
{{$:/core/images/unlocked-padlock}}
|
||||||
</$list>
|
</$list>
|
||||||
<$list filter="[<tw-config-toolbar-text>prefix[yes]]">
|
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
|
||||||
<$text text={{$:/language/Buttons/Encryption/SetPassword/Caption}}/>
|
<$text text={{$:/language/Buttons/Encryption/SetPassword/Caption}}/>
|
||||||
</$list>
|
</$list>
|
||||||
</$button>
|
</$button>
|
||||||
|
@ -3,11 +3,11 @@ tags: $:/tags/PageControls
|
|||||||
caption: {{$:/core/images/full-screen-button}} {{$:/language/Buttons/FullScreen/Caption}}
|
caption: {{$:/core/images/full-screen-button}} {{$:/language/Buttons/FullScreen/Caption}}
|
||||||
description: {{$:/language/Buttons/FullScreen/Hint}}
|
description: {{$:/language/Buttons/FullScreen/Hint}}
|
||||||
|
|
||||||
<$button message="tm-full-screen" title={{$:/language/Buttons/FullScreen/Hint}} aria-label={{$:/language/Buttons/FullScreen/Caption}} class=<<tw-config-toolbar-class>>>
|
<$button message="tm-full-screen" title={{$:/language/Buttons/FullScreen/Hint}} aria-label={{$:/language/Buttons/FullScreen/Caption}} class=<<tv-config-toolbar-class>>>
|
||||||
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
|
||||||
{{$:/core/images/full-screen-button}}
|
{{$:/core/images/full-screen-button}}
|
||||||
</$list>
|
</$list>
|
||||||
<$list filter="[<tw-config-toolbar-text>prefix[yes]]">
|
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
|
||||||
<$text text={{$:/language/Buttons/FullScreen/Caption}}/>
|
<$text text={{$:/language/Buttons/FullScreen/Caption}}/>
|
||||||
</$list>
|
</$list>
|
||||||
</$button>
|
</$button>
|
||||||
|
@ -3,11 +3,11 @@ tags: $:/tags/PageControls
|
|||||||
caption: {{$:/core/images/home-button}} {{$:/language/Buttons/Home/Caption}}
|
caption: {{$:/core/images/home-button}} {{$:/language/Buttons/Home/Caption}}
|
||||||
description: {{$:/language/Buttons/Home/Hint}}
|
description: {{$:/language/Buttons/Home/Hint}}
|
||||||
|
|
||||||
<$button message="tm-home" title={{$:/language/Buttons/Home/Hint}} aria-label={{$:/language/Buttons/Home/Caption}} class=<<tw-config-toolbar-class>>>
|
<$button message="tm-home" title={{$:/language/Buttons/Home/Hint}} aria-label={{$:/language/Buttons/Home/Caption}} class=<<tv-config-toolbar-class>>>
|
||||||
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
|
||||||
{{$:/core/images/home-button}}
|
{{$:/core/images/home-button}}
|
||||||
</$list>
|
</$list>
|
||||||
<$list filter="[<tw-config-toolbar-text>prefix[yes]]">
|
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
|
||||||
<$text text={{$:/language/Buttons/Home/Caption}}/>
|
<$text text={{$:/language/Buttons/Home/Caption}}/>
|
||||||
</$list>
|
</$list>
|
||||||
</$button>
|
</$button>
|
||||||
|
@ -4,11 +4,11 @@ caption: {{$:/core/images/import-button}} {{$:/language/Buttons/Import/Caption}}
|
|||||||
description: {{$:/language/Buttons/Import/Hint}}
|
description: {{$:/language/Buttons/Import/Hint}}
|
||||||
|
|
||||||
<div class="tc-file-input-wrapper">
|
<div class="tc-file-input-wrapper">
|
||||||
<$button title={{$:/language/Buttons/Import/Hint}} aria-label={{$:/language/Buttons/Import/Caption}} class=<<tw-config-toolbar-class>>>
|
<$button title={{$:/language/Buttons/Import/Hint}} aria-label={{$:/language/Buttons/Import/Caption}} class=<<tv-config-toolbar-class>>>
|
||||||
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
|
||||||
{{$:/core/images/import-button}}
|
{{$:/core/images/import-button}}
|
||||||
</$list>
|
</$list>
|
||||||
<$list filter="[<tw-config-toolbar-text>prefix[yes]]">
|
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
|
||||||
<$text text={{$:/language/Buttons/Import/Caption}}/>
|
<$text text={{$:/language/Buttons/Import/Caption}}/>
|
||||||
</$list>
|
</$list>
|
||||||
</$button>
|
</$button>
|
||||||
|
@ -6,15 +6,15 @@ description: {{$:/language/Buttons/Language/Hint}}
|
|||||||
\define flag-title()
|
\define flag-title()
|
||||||
$(languagePluginTitle)$/icon
|
$(languagePluginTitle)$/icon
|
||||||
\end
|
\end
|
||||||
<$button popup=<<qualify "$:/state/popup/language">> title={{$:/language/Buttons/Language/Hint}} aria-label={{$:/language/Buttons/Language/Caption}} class=<<tw-config-toolbar-class>> selectedClass="tc-selected">
|
<$button popup=<<qualify "$:/state/popup/language">> title={{$:/language/Buttons/Language/Hint}} aria-label={{$:/language/Buttons/Language/Caption}} class=<<tv-config-toolbar-class>> selectedClass="tc-selected">
|
||||||
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
|
||||||
<span class="tc-image-button">
|
<span class="tc-image-button">
|
||||||
<$set name="languagePluginTitle" value={{$:/language}}>
|
<$set name="languagePluginTitle" value={{$:/language}}>
|
||||||
<$image source=<<flag-title>>/>
|
<$image source=<<flag-title>>/>
|
||||||
</$set>
|
</$set>
|
||||||
</span>
|
</span>
|
||||||
</$list>
|
</$list>
|
||||||
<$list filter="[<tw-config-toolbar-text>prefix[yes]]">
|
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
|
||||||
<$text text={{$:/language/Buttons/Language/Caption}}/>
|
<$text text={{$:/language/Buttons/Language/Caption}}/>
|
||||||
</$list>
|
</$list>
|
||||||
</$button>
|
</$button>
|
||||||
|
@ -6,11 +6,11 @@ description: {{$:/language/Buttons/More/Hint}}
|
|||||||
\define config-title()
|
\define config-title()
|
||||||
$:/config/PageControlButtons/Visibility/$(listItem)$
|
$:/config/PageControlButtons/Visibility/$(listItem)$
|
||||||
\end
|
\end
|
||||||
<$button popup=<<qualify "$:/state/popup/more">> title={{$:/language/Buttons/More/Hint}} aria-label={{$:/language/Buttons/More/Caption}} class=<<tw-config-toolbar-class>> selectedClass="tc-selected">
|
<$button popup=<<qualify "$:/state/popup/more">> title={{$:/language/Buttons/More/Hint}} aria-label={{$:/language/Buttons/More/Caption}} class=<<tv-config-toolbar-class>> selectedClass="tc-selected">
|
||||||
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
|
||||||
{{$:/core/images/down-arrow}}
|
{{$:/core/images/down-arrow}}
|
||||||
</$list>
|
</$list>
|
||||||
<$list filter="[<tw-config-toolbar-text>prefix[yes]]">
|
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
|
||||||
<$text text={{$:/language/Buttons/More/Caption}}/>
|
<$text text={{$:/language/Buttons/More/Caption}}/>
|
||||||
</$list>
|
</$list>
|
||||||
</$button>
|
</$button>
|
||||||
@ -18,11 +18,11 @@ $:/config/PageControlButtons/Visibility/$(listItem)$
|
|||||||
|
|
||||||
<div class="tc-drop-down">
|
<div class="tc-drop-down">
|
||||||
|
|
||||||
<$set name="tw-config-toolbar-icons" value="yes">
|
<$set name="tv-config-toolbar-icons" value="yes">
|
||||||
|
|
||||||
<$set name="tw-config-toolbar-text" value="yes">
|
<$set name="tv-config-toolbar-text" value="yes">
|
||||||
|
|
||||||
<$set name="tw-config-toolbar-class" value="tc-btn-invisible">
|
<$set name="tv-config-toolbar-class" value="tc-btn-invisible">
|
||||||
|
|
||||||
<$list filter="[all[shadows+tiddlers]tag[$:/tags/PageControls]!has[draft.of]] -[[$:/core/ui/Buttons/more-page-actions]]" variable="listItem">
|
<$list filter="[all[shadows+tiddlers]tag[$:/tags/PageControls]!has[draft.of]] -[[$:/core/ui/Buttons/more-page-actions]]" variable="listItem">
|
||||||
|
|
||||||
|
@ -3,11 +3,11 @@ tags: $:/tags/PageControls
|
|||||||
caption: {{$:/core/images/new-button}} {{$:/language/Buttons/NewTiddler/Caption}}
|
caption: {{$:/core/images/new-button}} {{$:/language/Buttons/NewTiddler/Caption}}
|
||||||
description: {{$:/language/Buttons/NewTiddler/Hint}}
|
description: {{$:/language/Buttons/NewTiddler/Hint}}
|
||||||
|
|
||||||
<$button message="tm-new-tiddler" title={{$:/language/Buttons/NewTiddler/Hint}} aria-label={{$:/language/Buttons/NewTiddler/Caption}} class=<<tw-config-toolbar-class>>>
|
<$button message="tm-new-tiddler" title={{$:/language/Buttons/NewTiddler/Hint}} aria-label={{$:/language/Buttons/NewTiddler/Caption}} class=<<tv-config-toolbar-class>>>
|
||||||
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
|
||||||
{{$:/core/images/new-button}}
|
{{$:/core/images/new-button}}
|
||||||
</$list>
|
</$list>
|
||||||
<$list filter="[<tw-config-toolbar-text>prefix[yes]]">
|
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
|
||||||
<$text text={{$:/language/Buttons/NewTiddler/Caption}}/>
|
<$text text={{$:/language/Buttons/NewTiddler/Caption}}/>
|
||||||
</$list>
|
</$list>
|
||||||
</$button>
|
</$button>
|
||||||
|
@ -3,11 +3,11 @@ tags: $:/tags/PageControls
|
|||||||
caption: {{$:/core/images/refresh-button}} {{$:/language/Buttons/Refresh/Caption}}
|
caption: {{$:/core/images/refresh-button}} {{$:/language/Buttons/Refresh/Caption}}
|
||||||
description: {{$:/language/Buttons/Refresh/Hint}}
|
description: {{$:/language/Buttons/Refresh/Hint}}
|
||||||
|
|
||||||
<$button message="tm-browser-refresh" title={{$:/language/Buttons/Refresh/Hint}} aria-label={{$:/language/Buttons/Refresh/Caption}} class=<<tw-config-toolbar-class>>>
|
<$button message="tm-browser-refresh" title={{$:/language/Buttons/Refresh/Hint}} aria-label={{$:/language/Buttons/Refresh/Caption}} class=<<tv-config-toolbar-class>>>
|
||||||
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
|
||||||
{{$:/core/images/refresh-button}}
|
{{$:/core/images/refresh-button}}
|
||||||
</$list>
|
</$list>
|
||||||
<$list filter="[<tw-config-toolbar-text>prefix[yes]]">
|
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
|
||||||
<$text text={{$:/language/Buttons/Refresh/Caption}}/>
|
<$text text={{$:/language/Buttons/Refresh/Caption}}/>
|
||||||
</$list>
|
</$list>
|
||||||
</$button>
|
</$button>
|
||||||
|
@ -3,12 +3,12 @@ tags: $:/tags/PageControls
|
|||||||
caption: {{$:/core/images/save-button}} {{$:/language/Buttons/SaveWiki/Caption}}
|
caption: {{$:/core/images/save-button}} {{$:/language/Buttons/SaveWiki/Caption}}
|
||||||
description: {{$:/language/Buttons/SaveWiki/Hint}}
|
description: {{$:/language/Buttons/SaveWiki/Hint}}
|
||||||
|
|
||||||
<$button message="tm-save-wiki" param={{$:/config/SaveWikiButton/Template}} title={{$:/language/Buttons/SaveWiki/Hint}} aria-label={{$:/language/Buttons/SaveWiki/Caption}} class=<<tw-config-toolbar-class>>>
|
<$button message="tm-save-wiki" param={{$:/config/SaveWikiButton/Template}} title={{$:/language/Buttons/SaveWiki/Hint}} aria-label={{$:/language/Buttons/SaveWiki/Caption}} class=<<tv-config-toolbar-class>>>
|
||||||
<span class="tc-dirty-indicator">
|
<span class="tc-dirty-indicator">
|
||||||
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
|
||||||
{{$:/core/images/save-button}}
|
{{$:/core/images/save-button}}
|
||||||
</$list>
|
</$list>
|
||||||
<$list filter="[<tw-config-toolbar-text>prefix[yes]]">
|
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
|
||||||
<$text text={{$:/language/Buttons/SaveWiki/Caption}}/>
|
<$text text={{$:/language/Buttons/SaveWiki/Caption}}/>
|
||||||
</$list>
|
</$list>
|
||||||
</span>
|
</span>
|
||||||
|
@ -6,13 +6,13 @@ description: {{$:/language/Buttons/StoryView/Hint}}
|
|||||||
\define icon()
|
\define icon()
|
||||||
$:/core/images/storyview-$(storyview)$
|
$:/core/images/storyview-$(storyview)$
|
||||||
\end
|
\end
|
||||||
<$button popup=<<qualify "$:/state/popup/storyview">> title={{$:/language/Buttons/StoryView/Hint}} aria-label={{$:/language/Buttons/StoryView/Caption}} class=<<tw-config-toolbar-class>> selectedClass="tc-selected">
|
<$button popup=<<qualify "$:/state/popup/storyview">> title={{$:/language/Buttons/StoryView/Hint}} aria-label={{$:/language/Buttons/StoryView/Caption}} class=<<tv-config-toolbar-class>> selectedClass="tc-selected">
|
||||||
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
|
||||||
<$set name="storyview" value={{$:/view}}>
|
<$set name="storyview" value={{$:/view}}>
|
||||||
<$transclude tiddler=<<icon>>/>
|
<$transclude tiddler=<<icon>>/>
|
||||||
</$set>
|
</$set>
|
||||||
</$list>
|
</$list>
|
||||||
<$list filter="[<tw-config-toolbar-text>prefix[yes]]">
|
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
|
||||||
<$text text={{$:/language/Buttons/StoryView/Caption}}/>
|
<$text text={{$:/language/Buttons/StoryView/Caption}}/>
|
||||||
</$list>
|
</$list>
|
||||||
</$button>
|
</$button>
|
||||||
|
@ -3,11 +3,11 @@ tags: $:/tags/PageControls
|
|||||||
caption: {{$:/core/images/tag-button}} {{$:/language/Buttons/TagManager/Caption}}
|
caption: {{$:/core/images/tag-button}} {{$:/language/Buttons/TagManager/Caption}}
|
||||||
description: {{$:/language/Buttons/TagManager/Hint}}
|
description: {{$:/language/Buttons/TagManager/Hint}}
|
||||||
|
|
||||||
<$button to="$:/TagManager" title={{$:/language/Buttons/TagManager/Hint}} aria-label={{$:/language/Buttons/TagManager/Caption}} class=<<tw-config-toolbar-class>>>
|
<$button to="$:/TagManager" title={{$:/language/Buttons/TagManager/Hint}} aria-label={{$:/language/Buttons/TagManager/Caption}} class=<<tv-config-toolbar-class>>>
|
||||||
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
|
||||||
{{$:/core/images/tag-button}}
|
{{$:/core/images/tag-button}}
|
||||||
</$list>
|
</$list>
|
||||||
<$list filter="[<tw-config-toolbar-text>prefix[yes]]">
|
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
|
||||||
<$text text={{$:/language/Buttons/TagManager/Caption}}/>
|
<$text text={{$:/language/Buttons/TagManager/Caption}}/>
|
||||||
</$list>
|
</$list>
|
||||||
</$button>
|
</$button>
|
||||||
|
@ -3,11 +3,11 @@ tags: $:/tags/PageControls
|
|||||||
caption: {{$:/core/images/theme-button}} {{$:/language/Buttons/Theme/Caption}}
|
caption: {{$:/core/images/theme-button}} {{$:/language/Buttons/Theme/Caption}}
|
||||||
description: {{$:/language/Buttons/Theme/Hint}}
|
description: {{$:/language/Buttons/Theme/Hint}}
|
||||||
|
|
||||||
<$button popup=<<qualify "$:/state/popup/theme">> title={{$:/language/Buttons/Theme/Hint}} aria-label={{$:/language/Buttons/Theme/Caption}} class=<<tw-config-toolbar-class>> selectedClass="tc-selected">
|
<$button popup=<<qualify "$:/state/popup/theme">> title={{$:/language/Buttons/Theme/Hint}} aria-label={{$:/language/Buttons/Theme/Caption}} class=<<tv-config-toolbar-class>> selectedClass="tc-selected">
|
||||||
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
|
||||||
{{$:/core/images/theme-button}}
|
{{$:/core/images/theme-button}}
|
||||||
</$list>
|
</$list>
|
||||||
<$list filter="[<tw-config-toolbar-text>prefix[yes]]">
|
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
|
||||||
<$text text={{$:/language/Buttons/Theme/Caption}}/>
|
<$text text={{$:/language/Buttons/Theme/Caption}}/>
|
||||||
</$list>
|
</$list>
|
||||||
</$button>
|
</$button>
|
||||||
|
@ -6,11 +6,11 @@ tc-page-container tc-page-view-$(themeTitle)$ tc-language-$(languageTitle)$
|
|||||||
|
|
||||||
<$importvariables filter="[[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]">
|
<$importvariables filter="[[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]">
|
||||||
|
|
||||||
<$set name="tw-config-toolbar-icons" value={{$:/config/Toolbar/Icons}}>
|
<$set name="tv-config-toolbar-icons" value={{$:/config/Toolbar/Icons}}>
|
||||||
|
|
||||||
<$set name="tw-config-toolbar-text" value={{$:/config/Toolbar/Text}}>
|
<$set name="tv-config-toolbar-text" value={{$:/config/Toolbar/Text}}>
|
||||||
|
|
||||||
<$set name="tw-config-toolbar-class" value="tc-btn-invisible">
|
<$set name="tv-config-toolbar-class" value="tc-btn-invisible">
|
||||||
|
|
||||||
<$set name="themeTitle" value={{$:/view}}>
|
<$set name="themeTitle" value={{$:/view}}>
|
||||||
|
|
||||||
|
@ -9,11 +9,11 @@ $:/config/PageControlButtons/Visibility/$(listItem)$
|
|||||||
|
|
||||||
<<lingo Basics/Version/Prompt>> <<version>>
|
<<lingo Basics/Version/Prompt>> <<version>>
|
||||||
|
|
||||||
<$set name="tw-config-toolbar-icons" value="yes">
|
<$set name="tv-config-toolbar-icons" value="yes">
|
||||||
|
|
||||||
<$set name="tw-config-toolbar-text" value="yes">
|
<$set name="tv-config-toolbar-text" value="yes">
|
||||||
|
|
||||||
<$set name="tw-config-toolbar-class" value="">
|
<$set name="tv-config-toolbar-class" value="">
|
||||||
|
|
||||||
<$list filter="[all[shadows+tiddlers]tag[$:/tags/PageControls]!has[draft.of]]" variable="listItem">
|
<$list filter="[all[shadows+tiddlers]tag[$:/tags/PageControls]!has[draft.of]]" variable="listItem">
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ title: $:/TagManager
|
|||||||
\end
|
\end
|
||||||
\define iconEditor(title)
|
\define iconEditor(title)
|
||||||
<div class="tc-drop-down-wrapper">
|
<div class="tc-drop-down-wrapper">
|
||||||
<$edit-text field="icon" tag="input" size="20"/> <$button popup=<<qualify "$:/state/popup/icon/$title$">> class="tc-btn-invisible btn-dropdown">{{$:/core/images/down-arrow}}</$button>
|
<$edit-text field="icon" tag="input" size="20"/> <$button popup=<<qualify "$:/state/popup/icon/$title$">> class="tc-btn-invisible tc-btn-dropdown">{{$:/core/images/down-arrow}}</$button>
|
||||||
<$reveal state=<<qualify "$:/state/popup/icon/$title$">> type="popup" position="belowleft" text="" default="">
|
<$reveal state=<<qualify "$:/state/popup/icon/$title$">> type="popup" position="belowleft" text="" default="">
|
||||||
<div class="tc-drop-down">
|
<div class="tc-drop-down">
|
||||||
<$linkcatcher to="$title$!!icon">
|
<$linkcatcher to="$title$!!icon">
|
||||||
|
@ -6,11 +6,11 @@ caption: {{$:/language/TiddlerInfo/Tools/Caption}}
|
|||||||
\define config-title()
|
\define config-title()
|
||||||
$:/config/ViewToolbarButtons/Visibility/$(listItem)$
|
$:/config/ViewToolbarButtons/Visibility/$(listItem)$
|
||||||
\end
|
\end
|
||||||
<$set name="tw-config-toolbar-icons" value="yes">
|
<$set name="tv-config-toolbar-icons" value="yes">
|
||||||
|
|
||||||
<$set name="tw-config-toolbar-text" value="yes">
|
<$set name="tv-config-toolbar-text" value="yes">
|
||||||
|
|
||||||
<$set name="tw-config-toolbar-class" value="">
|
<$set name="tv-config-toolbar-class" value="">
|
||||||
|
|
||||||
<$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]]" variable="listItem">
|
<$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]]" variable="listItem">
|
||||||
|
|
||||||
|
@ -3,11 +3,11 @@ tags: $:/tags/ViewToolbar
|
|||||||
caption: {{$:/core/images/clone-button}} {{$:/language/Buttons/Clone/Caption}}
|
caption: {{$:/core/images/clone-button}} {{$:/language/Buttons/Clone/Caption}}
|
||||||
description: {{$:/language/Buttons/Clone/Hint}}
|
description: {{$:/language/Buttons/Clone/Hint}}
|
||||||
|
|
||||||
<$button message="tm-new-tiddler" param=<<currentTiddler>> title={{$:/language/Buttons/Clone/Hint}} aria-label={{$:/language/Buttons/Clone/Caption}} class=<<tw-config-toolbar-class>>>
|
<$button message="tm-new-tiddler" param=<<currentTiddler>> title={{$:/language/Buttons/Clone/Hint}} aria-label={{$:/language/Buttons/Clone/Caption}} class=<<tv-config-toolbar-class>>>
|
||||||
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
|
||||||
{{$:/core/images/clone-button}}
|
{{$:/core/images/clone-button}}
|
||||||
</$list>
|
</$list>
|
||||||
<$list filter="[<tw-config-toolbar-text>prefix[yes]]">
|
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
|
||||||
<$text text={{$:/language/Buttons/Clone/Caption}}/>
|
<$text text={{$:/language/Buttons/Clone/Caption}}/>
|
||||||
</$list>
|
</$list>
|
||||||
</$button>
|
</$button>
|
||||||
|
@ -3,11 +3,11 @@ tags: $:/tags/ViewToolbar
|
|||||||
caption: {{$:/core/images/close-others-button}} {{$:/language/Buttons/CloseOthers/Caption}}
|
caption: {{$:/core/images/close-others-button}} {{$:/language/Buttons/CloseOthers/Caption}}
|
||||||
description: {{$:/language/Buttons/CloseOthers/Hint}}
|
description: {{$:/language/Buttons/CloseOthers/Hint}}
|
||||||
|
|
||||||
<$button message="tm-close-other-tiddlers" param=<<currentTiddler>> title={{$:/language/Buttons/CloseOthers/Hint}} aria-label={{$:/language/Buttons/CloseOthers/Caption}} class=<<tw-config-toolbar-class>>>
|
<$button message="tm-close-other-tiddlers" param=<<currentTiddler>> title={{$:/language/Buttons/CloseOthers/Hint}} aria-label={{$:/language/Buttons/CloseOthers/Caption}} class=<<tv-config-toolbar-class>>>
|
||||||
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
|
||||||
{{$:/core/images/close-others-button}}
|
{{$:/core/images/close-others-button}}
|
||||||
</$list>
|
</$list>
|
||||||
<$list filter="[<tw-config-toolbar-text>prefix[yes]]">
|
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
|
||||||
<$text text={{$:/language/Buttons/CloseOthers/Caption}}/>
|
<$text text={{$:/language/Buttons/CloseOthers/Caption}}/>
|
||||||
</$list>
|
</$list>
|
||||||
</$button>
|
</$button>
|
||||||
|
@ -3,11 +3,11 @@ tags: $:/tags/ViewToolbar
|
|||||||
caption: {{$:/core/images/close-button}} {{$:/language/Buttons/Close/Caption}}
|
caption: {{$:/core/images/close-button}} {{$:/language/Buttons/Close/Caption}}
|
||||||
description: {{$:/language/Buttons/Close/Hint}}
|
description: {{$:/language/Buttons/Close/Hint}}
|
||||||
|
|
||||||
<$button message="tm-close-tiddler" title={{$:/language/Buttons/Close/Hint}} aria-label={{$:/language/Buttons/Close/Caption}} class=<<tw-config-toolbar-class>>>
|
<$button message="tm-close-tiddler" title={{$:/language/Buttons/Close/Hint}} aria-label={{$:/language/Buttons/Close/Caption}} class=<<tv-config-toolbar-class>>>
|
||||||
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
|
||||||
{{$:/core/images/close-button}}
|
{{$:/core/images/close-button}}
|
||||||
</$list>
|
</$list>
|
||||||
<$list filter="[<tw-config-toolbar-text>prefix[yes]]">
|
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
|
||||||
<$text text={{$:/language/Buttons/Close/Caption}}/>
|
<$text text={{$:/language/Buttons/Close/Caption}}/>
|
||||||
</$list>
|
</$list>
|
||||||
</$button>
|
</$button>
|
@ -3,11 +3,11 @@ tags: $:/tags/ViewToolbar
|
|||||||
caption: {{$:/core/images/edit-button}} {{$:/language/Buttons/Edit/Caption}}
|
caption: {{$:/core/images/edit-button}} {{$:/language/Buttons/Edit/Caption}}
|
||||||
description: {{$:/language/Buttons/Edit/Hint}}
|
description: {{$:/language/Buttons/Edit/Hint}}
|
||||||
|
|
||||||
<$button message="tm-edit-tiddler" title={{$:/language/Buttons/Edit/Hint}} aria-label={{$:/language/Buttons/Edit/Caption}} class=<<tw-config-toolbar-class>>>
|
<$button message="tm-edit-tiddler" title={{$:/language/Buttons/Edit/Hint}} aria-label={{$:/language/Buttons/Edit/Caption}} class=<<tv-config-toolbar-class>>>
|
||||||
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
|
||||||
{{$:/core/images/edit-button}}
|
{{$:/core/images/edit-button}}
|
||||||
</$list>
|
</$list>
|
||||||
<$list filter="[<tw-config-toolbar-text>prefix[yes]]">
|
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
|
||||||
<$text text={{$:/language/Buttons/Edit/Caption}}/>
|
<$text text={{$:/language/Buttons/Edit/Caption}}/>
|
||||||
</$list>
|
</$list>
|
||||||
</$button>
|
</$button>
|
||||||
|
@ -3,11 +3,11 @@ tags: $:/tags/ViewToolbar
|
|||||||
caption: {{$:/core/images/info-button}} {{$:/language/Buttons/Info/Caption}}
|
caption: {{$:/core/images/info-button}} {{$:/language/Buttons/Info/Caption}}
|
||||||
description: {{$:/language/Buttons/Info/Hint}}
|
description: {{$:/language/Buttons/Info/Hint}}
|
||||||
|
|
||||||
<$button popup=<<tiddlerInfoState>> title={{$:/language/Buttons/Info/Hint}} aria-label={{$:/language/Buttons/Info/Caption}} class=<<tw-config-toolbar-class>> selectedClass="tc-selected">
|
<$button popup=<<tiddlerInfoState>> title={{$:/language/Buttons/Info/Hint}} aria-label={{$:/language/Buttons/Info/Caption}} class=<<tv-config-toolbar-class>> selectedClass="tc-selected">
|
||||||
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
|
||||||
{{$:/core/images/info-button}}
|
{{$:/core/images/info-button}}
|
||||||
</$list>
|
</$list>
|
||||||
<$list filter="[<tw-config-toolbar-text>prefix[yes]]">
|
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
|
||||||
<$text text={{$:/language/Buttons/Info/Caption}}/>
|
<$text text={{$:/language/Buttons/Info/Caption}}/>
|
||||||
</$list>
|
</$list>
|
||||||
</$button>
|
</$button>
|
||||||
|
@ -6,18 +6,18 @@ description: {{$:/language/Buttons/More/Hint}}
|
|||||||
\define config-title()
|
\define config-title()
|
||||||
$:/config/ViewToolbarButtons/Visibility/$(listItem)$
|
$:/config/ViewToolbarButtons/Visibility/$(listItem)$
|
||||||
\end
|
\end
|
||||||
<$button popup=<<qualify "$:/state/popup/more">> title={{$:/language/Buttons/More/Hint}} aria-label={{$:/language/Buttons/More/Caption}} class=<<tw-config-toolbar-class>> selectedClass="tc-selected">
|
<$button popup=<<qualify "$:/state/popup/more">> title={{$:/language/Buttons/More/Hint}} aria-label={{$:/language/Buttons/More/Caption}} class=<<tv-config-toolbar-class>> selectedClass="tc-selected">
|
||||||
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
|
||||||
{{$:/core/images/down-arrow}}
|
{{$:/core/images/down-arrow}}
|
||||||
</$list>
|
</$list>
|
||||||
<$list filter="[<tw-config-toolbar-text>prefix[yes]]">
|
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
|
||||||
<$text text={{$:/language/Buttons/More/Caption}}/>
|
<$text text={{$:/language/Buttons/More/Caption}}/>
|
||||||
</$list>
|
</$list>
|
||||||
</$button>
|
</$button>
|
||||||
<$reveal state=<<qualify "$:/state/popup/more">> type="popup" position="below" animate="yes">
|
<$reveal state=<<qualify "$:/state/popup/more">> type="popup" position="below" animate="yes">
|
||||||
<div class="tc-drop-down">
|
<div class="tc-drop-down">
|
||||||
<$set name="tw-config-toolbar-icons" value="yes">
|
<$set name="tv-config-toolbar-icons" value="yes">
|
||||||
<$set name="tw-config-toolbar-text" value="yes">
|
<$set name="tv-config-toolbar-text" value="yes">
|
||||||
<$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]] -[[$:/core/ui/Buttons/more-tiddler-actions]]" variable="listItem">
|
<$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]] -[[$:/core/ui/Buttons/more-tiddler-actions]]" variable="listItem">
|
||||||
<$reveal type="match" state=<<config-title>> text="hide">
|
<$reveal type="match" state=<<config-title>> text="hide">
|
||||||
<$transclude tiddler=<<listItem>>/>
|
<$transclude tiddler=<<listItem>>/>
|
||||||
|
@ -3,11 +3,11 @@ tags: $:/tags/ViewToolbar
|
|||||||
caption: {{$:/core/images/permalink-button}} {{$:/language/Buttons/Permalink/Caption}}
|
caption: {{$:/core/images/permalink-button}} {{$:/language/Buttons/Permalink/Caption}}
|
||||||
description: {{$:/language/Buttons/Permalink/Hint}}
|
description: {{$:/language/Buttons/Permalink/Hint}}
|
||||||
|
|
||||||
<$button message="tm-permalink" title={{$:/language/Buttons/Permalink/Hint}} aria-label={{$:/language/Buttons/Permalink/Caption}} class=<<tw-config-toolbar-class>>>
|
<$button message="tm-permalink" title={{$:/language/Buttons/Permalink/Hint}} aria-label={{$:/language/Buttons/Permalink/Caption}} class=<<tv-config-toolbar-class>>>
|
||||||
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
|
||||||
{{$:/core/images/permalink-button}}
|
{{$:/core/images/permalink-button}}
|
||||||
</$list>
|
</$list>
|
||||||
<$list filter="[<tw-config-toolbar-text>prefix[yes]]">
|
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
|
||||||
<$text text={{$:/language/Buttons/Permalink/Caption}}/>
|
<$text text={{$:/language/Buttons/Permalink/Caption}}/>
|
||||||
</$list>
|
</$list>
|
||||||
</$button>
|
</$button>
|
||||||
|
@ -3,11 +3,11 @@ tags: $:/tags/ViewToolbar $:/tags/PageControls
|
|||||||
caption: {{$:/core/images/permaview-button}} {{$:/language/Buttons/Permaview/Caption}}
|
caption: {{$:/core/images/permaview-button}} {{$:/language/Buttons/Permaview/Caption}}
|
||||||
description: {{$:/language/Buttons/Permaview/Hint}}
|
description: {{$:/language/Buttons/Permaview/Hint}}
|
||||||
|
|
||||||
<$button message="tm-permaview" title={{$:/language/Buttons/Permaview/Hint}} aria-label={{$:/language/Buttons/Permaview/Caption}} class=<<tw-config-toolbar-class>>>
|
<$button message="tm-permaview" title={{$:/language/Buttons/Permaview/Hint}} aria-label={{$:/language/Buttons/Permaview/Caption}} class=<<tv-config-toolbar-class>>>
|
||||||
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
|
||||||
{{$:/core/images/permaview-button}}
|
{{$:/core/images/permaview-button}}
|
||||||
</$list>
|
</$list>
|
||||||
<$list filter="[<tw-config-toolbar-text>prefix[yes]]">
|
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
|
||||||
<$text text={{$:/language/Buttons/Permaview/Caption}}/>
|
<$text text={{$:/language/Buttons/Permaview/Caption}}/>
|
||||||
</$list>
|
</$list>
|
||||||
</$button>
|
</$button>
|
||||||
|
@ -171,12 +171,12 @@ describe("Widget module", function() {
|
|||||||
it("should deal with SVG elements", function() {
|
it("should deal with SVG elements", function() {
|
||||||
var wiki = new $tw.Wiki();
|
var wiki = new $tw.Wiki();
|
||||||
// Construct the widget node
|
// Construct the widget node
|
||||||
var text = "<svg class='tw-image-new-button' viewBox='83 81 50 50' width='22pt' height='22pt'><path d='M 101.25 112.5 L 101.25 127.5 C 101.25 127.5 101.25 127.5 101.25 127.5 L 101.25 127.5 C 101.25 129.156855 102.593146 130.5 104.25 130.5 L 111.75 130.5 C 113.406854 130.5 114.75 129.156854 114.75 127.5 L 114.75 112.5 L 129.75 112.5 C 131.406854 112.5 132.75 111.156854 132.75 109.5 L 132.75 102 C 132.75 100.343146 131.406854 99 129.75 99 L 114.75 99 L 114.75 84 C 114.75 82.343146 113.406854 81 111.75 81 L 104.25 81 C 104.25 81 104.25 81 104.25 81 C 102.593146 81 101.25 82.343146 101.25 84 L 101.25 99 L 86.25 99 C 86.25 99 86.25 99 86.25 99 C 84.593146 99 83.25 100.343146 83.25 102 L 83.25 109.5 C 83.25 109.5 83.25 109.5 83.25 109.5 L 83.25 109.5 C 83.25 111.156855 84.593146 112.5 86.25 112.5 Z'/></svg>\n";
|
var text = "<svg class='tv-image-new-button' viewBox='83 81 50 50' width='22pt' height='22pt'><path d='M 101.25 112.5 L 101.25 127.5 C 101.25 127.5 101.25 127.5 101.25 127.5 L 101.25 127.5 C 101.25 129.156855 102.593146 130.5 104.25 130.5 L 111.75 130.5 C 113.406854 130.5 114.75 129.156854 114.75 127.5 L 114.75 112.5 L 129.75 112.5 C 131.406854 112.5 132.75 111.156854 132.75 109.5 L 132.75 102 C 132.75 100.343146 131.406854 99 129.75 99 L 114.75 99 L 114.75 84 C 114.75 82.343146 113.406854 81 111.75 81 L 104.25 81 C 104.25 81 104.25 81 104.25 81 C 102.593146 81 101.25 82.343146 101.25 84 L 101.25 99 L 86.25 99 C 86.25 99 86.25 99 86.25 99 C 84.593146 99 83.25 100.343146 83.25 102 L 83.25 109.5 C 83.25 109.5 83.25 109.5 83.25 109.5 L 83.25 109.5 C 83.25 111.156855 84.593146 112.5 86.25 112.5 Z'/></svg>\n";
|
||||||
var widgetNode = createWidgetNode(parseText(text,wiki,{parseAsInline:true}),wiki);
|
var widgetNode = createWidgetNode(parseText(text,wiki,{parseAsInline:true}),wiki);
|
||||||
// Render the widget node to the DOM
|
// Render the widget node to the DOM
|
||||||
var wrapper = renderWidgetNode(widgetNode);
|
var wrapper = renderWidgetNode(widgetNode);
|
||||||
// Test the rendering
|
// Test the rendering
|
||||||
expect(wrapper.innerHTML).toBe("<svg class='tw-image-new-button' height='22pt' viewBox='83 81 50 50' width='22pt'><path d='M 101.25 112.5 L 101.25 127.5 C 101.25 127.5 101.25 127.5 101.25 127.5 L 101.25 127.5 C 101.25 129.156855 102.593146 130.5 104.25 130.5 L 111.75 130.5 C 113.406854 130.5 114.75 129.156854 114.75 127.5 L 114.75 112.5 L 129.75 112.5 C 131.406854 112.5 132.75 111.156854 132.75 109.5 L 132.75 102 C 132.75 100.343146 131.406854 99 129.75 99 L 114.75 99 L 114.75 84 C 114.75 82.343146 113.406854 81 111.75 81 L 104.25 81 C 104.25 81 104.25 81 104.25 81 C 102.593146 81 101.25 82.343146 101.25 84 L 101.25 99 L 86.25 99 C 86.25 99 86.25 99 86.25 99 C 84.593146 99 83.25 100.343146 83.25 102 L 83.25 109.5 C 83.25 109.5 83.25 109.5 83.25 109.5 L 83.25 109.5 C 83.25 111.156855 84.593146 112.5 86.25 112.5 Z'></path></svg>\n");
|
expect(wrapper.innerHTML).toBe("<svg class='tv-image-new-button' height='22pt' viewBox='83 81 50 50' width='22pt'><path d='M 101.25 112.5 L 101.25 127.5 C 101.25 127.5 101.25 127.5 101.25 127.5 L 101.25 127.5 C 101.25 129.156855 102.593146 130.5 104.25 130.5 L 111.75 130.5 C 113.406854 130.5 114.75 129.156854 114.75 127.5 L 114.75 112.5 L 129.75 112.5 C 131.406854 112.5 132.75 111.156854 132.75 109.5 L 132.75 102 C 132.75 100.343146 131.406854 99 129.75 99 L 114.75 99 L 114.75 84 C 114.75 82.343146 113.406854 81 111.75 81 L 104.25 81 C 104.25 81 104.25 81 104.25 81 C 102.593146 81 101.25 82.343146 101.25 84 L 101.25 99 L 86.25 99 C 86.25 99 86.25 99 86.25 99 C 84.593146 99 83.25 100.343146 83.25 102 L 83.25 109.5 C 83.25 109.5 83.25 109.5 83.25 109.5 L 83.25 109.5 C 83.25 111.156855 84.593146 112.5 86.25 112.5 Z'></path></svg>\n");
|
||||||
expect(wrapper.firstChild.namespaceURI).toBe("http://www.w3.org/2000/svg");
|
expect(wrapper.firstChild.namespaceURI).toBe("http://www.w3.org/2000/svg");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -17,10 +17,10 @@ This is done in `bld.sh` by this command:
|
|||||||
|
|
||||||
It saves the tiddler ReadMe to the file `./readme.md` in the `text/html` format.
|
It saves the tiddler ReadMe to the file `./readme.md` in the `text/html` format.
|
||||||
|
|
||||||
By default, tiddler links will be rendered as `<a>` links to a relative URI consisting of the title of the tiddler. This behaviour can be overridden by defining the macro `tw-wikilink-template`, as is done at the top of the tiddler ReadMe:
|
By default, tiddler links will be rendered as `<a>` links to a relative URI consisting of the title of the tiddler. This behaviour can be overridden by defining the macro `tv-wikilink-template`, as is done at the top of the tiddler ReadMe:
|
||||||
|
|
||||||
```
|
```
|
||||||
\define tw-wikilink-template() http://tiddlywiki.com/static/$uri_doubleencoded$.html
|
\define tv-wikilink-template() http://tiddlywiki.com/static/$uri_doubleencoded$.html
|
||||||
```
|
```
|
||||||
|
|
||||||
See the LinkWidget for more details.
|
See the LinkWidget for more details.
|
||||||
|
@ -13,7 +13,7 @@ The import tiddlers message is usually generated with the DropzoneWidget or the
|
|||||||
|
|
||||||
! Configuration Variables
|
! Configuration Variables
|
||||||
|
|
||||||
The variable `tw-auto-open-on-import` controls whether the `tm-import-tiddlers` message automatically triggers the display of the pending import tiddler [[$:/Import]]:
|
The variable `tv-auto-open-on-import` controls whether the `tm-import-tiddlers` message automatically triggers the display of the pending import tiddler [[$:/Import]]:
|
||||||
|
|
||||||
* ''no'': The pending import tiddler is not opened in the story
|
* ''no'': The pending import tiddler is not opened in the story
|
||||||
* ''yes'': The pending import tiddler is opened in th story. This is the default
|
* ''yes'': The pending import tiddler is opened in th story. This is the default
|
@ -2,7 +2,7 @@ created: 201308251449
|
|||||||
modified: 201308251449
|
modified: 201308251449
|
||||||
title: ContributingTemplate
|
title: ContributingTemplate
|
||||||
|
|
||||||
\define tw-wikilink-template() http://tiddlywiki.com/static/$uri_doubleencoded$.html
|
\define tv-wikilink-template() http://tiddlywiki.com/static/$uri_doubleencoded$.html
|
||||||
! Contributing to TiddlyWiki5
|
! Contributing to TiddlyWiki5
|
||||||
|
|
||||||
{{Contributing}}
|
{{Contributing}}
|
||||||
|
@ -3,7 +3,7 @@ modified: 20131222161808390
|
|||||||
title: ReadMe
|
title: ReadMe
|
||||||
type: text/vnd.tiddlywiki
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
\define tw-wikilink-template() http://tiddlywiki.com/static/$uri_doubleencoded$.html
|
\define tv-wikilink-template() http://tiddlywiki.com/static/$uri_doubleencoded$.html
|
||||||
! Welcome to TiddlyWiki
|
! Welcome to TiddlyWiki
|
||||||
|
|
||||||
{{HelloThere}}
|
{{HelloThere}}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
title: TiddlyWiki2ReadMe
|
title: TiddlyWiki2ReadMe
|
||||||
|
|
||||||
\define tw-wikilinks() no
|
\define tv-wikilinks() no
|
||||||
! Building TiddlyWikiClassic
|
! Building TiddlyWikiClassic
|
||||||
{{Building TiddlyWikiClassic}}
|
{{Building TiddlyWikiClassic}}
|
||||||
|
@ -14,14 +14,14 @@ The `link` widget generates links to tiddlers. (Use the HTML `<a>` element to ge
|
|||||||
|
|
||||||
The content of the link widget is rendered within the `<a>` tag.
|
The content of the link widget is rendered within the `<a>` tag.
|
||||||
|
|
||||||
The default value of the tooltip attribute is `<<tw-wikilink-tooltip>>`.
|
The default value of the tooltip attribute is `<<tv-wikilink-tooltip>>`.
|
||||||
|
|
||||||
This means that you can control the text of a link tooltip in several ways:
|
This means that you can control the text of a link tooltip in several ways:
|
||||||
|
|
||||||
```
|
```
|
||||||
<$link to="HelloThere" tooltip="Custom tooltip">Link 1</$link>
|
<$link to="HelloThere" tooltip="Custom tooltip">Link 1</$link>
|
||||||
|
|
||||||
<$set name="tw-wikilink-tooltip" value="I'm a link to {{!!title}}">
|
<$set name="tv-wikilink-tooltip" value="I'm a link to {{!!title}}">
|
||||||
<$link to="HelloThere">Link 2</$link>
|
<$link to="HelloThere">Link 2</$link>
|
||||||
</$set>
|
</$set>
|
||||||
|
|
||||||
@ -31,7 +31,7 @@ Renders as:
|
|||||||
|
|
||||||
<$link to="HelloThere" tooltip="Custom tooltip">Link 1</$link>
|
<$link to="HelloThere" tooltip="Custom tooltip">Link 1</$link>
|
||||||
|
|
||||||
<$set name="tw-wikilink-tooltip" value="I'm a link to {{!!title}}">
|
<$set name="tv-wikilink-tooltip" value="I'm a link to {{!!title}}">
|
||||||
<$link to="HelloThere">Link 2</$link>
|
<$link to="HelloThere">Link 2</$link>
|
||||||
</$set>
|
</$set>
|
||||||
|
|
||||||
@ -40,7 +40,7 @@ Note that the tooltip is rendered with the current tiddler set to the target of
|
|||||||
A useful convention is to set the tooltip like this:
|
A useful convention is to set the tooltip like this:
|
||||||
|
|
||||||
```
|
```
|
||||||
\define tw-wikilink-tooltip()
|
\define tv-wikilink-tooltip()
|
||||||
<$transclude field="tooltip"><$transclude field="title"/></$transclude>
|
<$transclude field="tooltip"><$transclude field="title"/></$transclude>
|
||||||
\end
|
\end
|
||||||
```
|
```
|
||||||
@ -60,32 +60,32 @@ This causes the tooltip to be the ''tooltip'' field of the target tiddler. If th
|
|||||||
|
|
||||||
Configuration macros can be used to modify the behaviour of the link widget.
|
Configuration macros can be used to modify the behaviour of the link widget.
|
||||||
|
|
||||||
!! tw-wikilinks
|
!! tv-wikilinks
|
||||||
|
|
||||||
Links are suppressed if the macro `tw-wikilinks` evaluates to the string `no`. For example:
|
Links are suppressed if the macro `tv-wikilinks` evaluates to the string `no`. For example:
|
||||||
|
|
||||||
```
|
```
|
||||||
\define tw-wikilinks() no
|
\define tv-wikilinks() no
|
||||||
```
|
```
|
||||||
|
|
||||||
!! tw-wikilink-template
|
!! tv-wikilink-template
|
||||||
|
|
||||||
The target of the link widget defaults to the URL encoded title of the tiddler. The `href` can be templated by defining the configuration macro `tw-wikilink-template`, and including within it the token `$uri_encoded$`. For example:
|
The target of the link widget defaults to the URL encoded title of the tiddler. The `href` can be templated by defining the configuration macro `tv-wikilink-template`, and including within it the token `$uri_encoded$`. For example:
|
||||||
|
|
||||||
```
|
```
|
||||||
\define tw-wikilink-template() http://tiddlywiki.com/#$uri_encoded$
|
\define tv-wikilink-template() http://tiddlywiki.com/#$uri_encoded$
|
||||||
```
|
```
|
||||||
|
|
||||||
The token `$uri_doubleencoded$` is replaced by the double encoded title of the tiddler.
|
The token `$uri_doubleencoded$` is replaced by the double encoded title of the tiddler.
|
||||||
|
|
||||||
Note that in the browser the `<a>` element generated by the link widget has a JavaScript event handler that navigates directly to the target tiddler, ignoring the `href` attribute.
|
Note that in the browser the `<a>` element generated by the link widget has a JavaScript event handler that navigates directly to the target tiddler, ignoring the `href` attribute.
|
||||||
|
|
||||||
!! tw-wikilink-tooltip
|
!! tv-wikilink-tooltip
|
||||||
|
|
||||||
Provides default text for the link tooltip:
|
Provides default text for the link tooltip:
|
||||||
|
|
||||||
```
|
```
|
||||||
\define tw-wikilink-tooltip() This is a link to {{!!title}}
|
\define tv-wikilink-tooltip() This is a link to {{!!title}}
|
||||||
<$link to="HelloThere"/>
|
<$link to="HelloThere"/>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
title: $:/language/Modals/Download
|
title: $:/language/Modals/Download
|
||||||
type: text/vnd.tiddlywiki
|
type: text/vnd.tiddlywiki
|
||||||
subtitle: Download changes
|
subtitle: Download changes
|
||||||
footer: <$button message="tm-close-tiddler" class="btn btn-primary">關閉</$button>
|
footer: <$button message="tm-close-tiddler">關閉</$button>
|
||||||
help: http://tiddlywiki.com/
|
help: http://tiddlywiki.com/
|
||||||
|
|
||||||
您的瀏覽器只支援手動儲存。
|
您的瀏覽器只支援手動儲存。
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
title: $:/plugins/tiddlywiki/upgrade/set-auto-open-on-import
|
title: $:/plugins/tiddlywiki/upgrade/set-auto-open-on-import
|
||||||
tags: $:/tags/Macro
|
tags: $:/tags/Macro
|
||||||
|
|
||||||
\define tw-auto-open-on-import()
|
\define tv-auto-open-on-import()
|
||||||
no
|
no
|
||||||
\end
|
\end
|
||||||
|
@ -836,11 +836,11 @@ canvas.tc-edit-bitmapeditor {
|
|||||||
** Dropdowns
|
** Dropdowns
|
||||||
*/
|
*/
|
||||||
|
|
||||||
.btn-dropdown {
|
.tc-btn-dropdown {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-dropdown svg, .btn-dropdown img {
|
.tc-btn-dropdown svg, .tc-btn-dropdown img {
|
||||||
height: 1em;
|
height: 1em;
|
||||||
width: 1em;
|
width: 1em;
|
||||||
fill: <<colour muted-foreground>>;
|
fill: <<colour muted-foreground>>;
|
||||||
|
Loading…
Reference in New Issue
Block a user