mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-02-09 23:50:01 +00:00
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
e5e503fe17
@ -18,8 +18,12 @@ Edit/Caption: edit
|
|||||||
Edit/Hint: Edit this tiddler
|
Edit/Hint: Edit this tiddler
|
||||||
Info/Caption: info
|
Info/Caption: info
|
||||||
Info/Hint: Show information for this tiddler
|
Info/Hint: Show information for this tiddler
|
||||||
|
Home/Caption: home
|
||||||
|
Home/Hint: Open home tiddlers
|
||||||
NewTiddler/Caption: new tiddler
|
NewTiddler/Caption: new tiddler
|
||||||
NewTiddler/Hint: Create a new tiddler
|
NewTiddler/Hint: Create a new tiddler
|
||||||
|
More/Caption: more
|
||||||
|
More/Hint: More actions
|
||||||
Permalink/Caption: permalink
|
Permalink/Caption: permalink
|
||||||
Permalink/Hint: Set browser address bar to a direct link to this tiddler
|
Permalink/Hint: Set browser address bar to a direct link to this tiddler
|
||||||
Permaview/Caption: permaview
|
Permaview/Caption: permaview
|
||||||
|
@ -40,6 +40,14 @@ Appearance/StoryView/Caption: Story View
|
|||||||
Appearance/StoryView/Prompt: Current view:
|
Appearance/StoryView/Prompt: Current view:
|
||||||
Appearance/Theme/Caption: Theme
|
Appearance/Theme/Caption: Theme
|
||||||
Appearance/Theme/Prompt: Current theme:
|
Appearance/Theme/Prompt: Current theme:
|
||||||
|
Appearance/Toolbars/Caption: Toolbars
|
||||||
|
Appearance/Toolbars/Hint: Select which toolbar buttons are displayed
|
||||||
|
Appearance/Toolbars/EditToolbar/Caption: Edit Toolbar
|
||||||
|
Appearance/Toolbars/EditToolbar/Hint: Choose which buttons are displayed for tiddlers in edit mode
|
||||||
|
Appearance/Toolbars/ViewToolbar/Caption: View Toolbar
|
||||||
|
Appearance/Toolbars/ViewToolbar/Hint: Choose which buttons are displayed for tiddlers in view mode
|
||||||
|
Appearance/Toolbars/PageControls/Caption: Page Toolbar
|
||||||
|
Appearance/Toolbars/PageControls/Hint: Choose which buttons are displayed on the main page toolbar
|
||||||
Basics/AnimDuration/Prompt: Animation duration:
|
Basics/AnimDuration/Prompt: Animation duration:
|
||||||
Basics/Caption: Basics
|
Basics/Caption: Basics
|
||||||
Basics/DefaultTiddlers/BottomHint: Use [[double square brackets]] for titles with spaces. Or you can choose to <$button set="$:/DefaultTiddlers" setTo="[list[$:/StoryList]]">retain story ordering</$button>
|
Basics/DefaultTiddlers/BottomHint: Use [[double square brackets]] for titles with spaces. Or you can choose to <$button set="$:/DefaultTiddlers" setTo="[list[$:/StoryList]]">retain story ordering</$button>
|
||||||
|
@ -18,3 +18,4 @@ References/Caption: References
|
|||||||
References/Empty: No tiddlers link to this one
|
References/Empty: No tiddlers link to this one
|
||||||
Tagging/Caption: Tagging
|
Tagging/Caption: Tagging
|
||||||
Tagging/Empty: No tiddlers are tagged with this one
|
Tagging/Empty: No tiddlers are tagged with this one
|
||||||
|
Tools/Caption: Tools
|
||||||
|
@ -198,7 +198,7 @@ exports.compileFilter = function(filterString) {
|
|||||||
operand = self.getTextReference(operator.operand,"",currTiddlerTitle);
|
operand = self.getTextReference(operator.operand,"",currTiddlerTitle);
|
||||||
}
|
}
|
||||||
if(operator.variable) {
|
if(operator.variable) {
|
||||||
operand = widget.getVariable(operator.operand,"");
|
operand = widget.getVariable(operator.operand,{defaultValue: ""});
|
||||||
}
|
}
|
||||||
results = operatorFunction(accumulator,{
|
results = operatorFunction(accumulator,{
|
||||||
operator: operator.operator,
|
operator: operator.operator,
|
||||||
|
@ -29,7 +29,7 @@ exports.removeChildren = function(node) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
exports.hasClass = function(el,className) {
|
exports.hasClass = function(el,className) {
|
||||||
return el && el.className && el.className.split(" ").indexOf(className) !== -1;
|
return el && el.className && el.className.toString().split(" ").indexOf(className) !== -1;
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.addClass = function(el,className) {
|
exports.addClass = function(el,className) {
|
||||||
|
@ -487,6 +487,8 @@ NavigatorWidget.prototype.handlePerformImportEvent = function(event) {
|
|||||||
}));
|
}));
|
||||||
// Navigate to the $:/Import tiddler
|
// Navigate to the $:/Import tiddler
|
||||||
this.addToHistory([IMPORT_TITLE]);
|
this.addToHistory([IMPORT_TITLE]);
|
||||||
|
// Send a notification event
|
||||||
|
this.dispatchEvent({type: "tw-auto-save-wiki"});
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.navigator = NavigatorWidget;
|
exports.navigator = NavigatorWidget;
|
||||||
|
9
core/ui/ControlPanel/Appearance/Toolbars.tid
Normal file
9
core/ui/ControlPanel/Appearance/Toolbars.tid
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
title: $:/core/ui/ControlPanel/Appearance/Toolbars
|
||||||
|
tags: $:/tags/ControlPanel/Appearance
|
||||||
|
caption: {{$:/language/ControlPanel/Appearance/Toolbars/Caption}}
|
||||||
|
|
||||||
|
{{$:/language/ControlPanel/Appearance/Toolbars/Hint}}
|
||||||
|
|
||||||
|
<div class="tw-control-panel">
|
||||||
|
<<tabs "[all[shadows+tiddlers]tag[$:/tags/ControlPanel/Appearance/Toolbars]!has[draft.of]]" "$:/core/ui/ControlPanel/Appearance/Toolbars/ViewToolbar" "$:/state/tabs/controlpanel/toolbars" "tw-vertical">>
|
||||||
|
</div>
|
24
core/ui/ControlPanel/Appearance/Toolbars/EditToolbar.tid
Normal file
24
core/ui/ControlPanel/Appearance/Toolbars/EditToolbar.tid
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
title: $:/core/ui/ControlPanel/Appearance/Toolbars/EditToolbar
|
||||||
|
tags: $:/tags/ControlPanel/Appearance/Toolbars
|
||||||
|
caption: {{$:/language/ControlPanel/Appearance/Toolbars/EditToolbar/Caption}}
|
||||||
|
|
||||||
|
\define lingo-base() $:/language/TiddlerInfo/
|
||||||
|
\define config-title()
|
||||||
|
$:/config/EditToolbarButtons/Visibility/$(listItem)$
|
||||||
|
\end
|
||||||
|
|
||||||
|
{{$:/language/ControlPanel/Appearance/Toolbars/EditToolbar/Hint}}
|
||||||
|
|
||||||
|
<$set name="tw-config-toolbar-icons" value="yes">
|
||||||
|
|
||||||
|
<$set name="tw-config-toolbar-text" value="yes">
|
||||||
|
|
||||||
|
<$list filter="[all[shadows+tiddlers]tag[$:/tags/EditToolbar]!has[draft.of]]" variable="listItem">
|
||||||
|
|
||||||
|
<$checkbox tiddler=<<config-title>> field="text" checked="show" unchecked="hide" default="show"> <$transclude tiddler=<<listItem>> field="caption"/></$checkbox>
|
||||||
|
|
||||||
|
</$list>
|
||||||
|
|
||||||
|
</$set>
|
||||||
|
|
||||||
|
</$set>
|
24
core/ui/ControlPanel/Appearance/Toolbars/PageControls.tid
Normal file
24
core/ui/ControlPanel/Appearance/Toolbars/PageControls.tid
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
title: $:/core/ui/ControlPanel/Appearance/Toolbars/PageControls
|
||||||
|
tags: $:/tags/ControlPanel/Appearance/Toolbars
|
||||||
|
caption: {{$:/language/ControlPanel/Appearance/Toolbars/PageControls/Caption}}
|
||||||
|
|
||||||
|
\define lingo-base() $:/language/TiddlerInfo/
|
||||||
|
\define config-title()
|
||||||
|
$:/config/PageControlButtons/Visibility/$(listItem)$
|
||||||
|
\end
|
||||||
|
|
||||||
|
{{$:/language/ControlPanel/Appearance/Toolbars/PageControls/Hint}}
|
||||||
|
|
||||||
|
<$set name="tw-config-toolbar-icons" value="yes">
|
||||||
|
|
||||||
|
<$set name="tw-config-toolbar-text" value="yes">
|
||||||
|
|
||||||
|
<$list filter="[all[shadows+tiddlers]tag[$:/tags/PageControls]!has[draft.of]]" variable="listItem">
|
||||||
|
|
||||||
|
<$checkbox tiddler=<<config-title>> field="text" checked="show" unchecked="hide" default="show"> <$transclude tiddler=<<listItem>> field="caption"/></$checkbox>
|
||||||
|
|
||||||
|
</$list>
|
||||||
|
|
||||||
|
</$set>
|
||||||
|
|
||||||
|
</$set>
|
24
core/ui/ControlPanel/Appearance/Toolbars/ViewToolbar.tid
Normal file
24
core/ui/ControlPanel/Appearance/Toolbars/ViewToolbar.tid
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
title: $:/core/ui/ControlPanel/Appearance/Toolbars/ViewToolbar
|
||||||
|
tags: $:/tags/ControlPanel/Appearance/Toolbars
|
||||||
|
caption: {{$:/language/ControlPanel/Appearance/Toolbars/ViewToolbar/Caption}}
|
||||||
|
|
||||||
|
\define lingo-base() $:/language/TiddlerInfo/
|
||||||
|
\define config-title()
|
||||||
|
$:/config/ViewToolbarButtons/Visibility/$(listItem)$
|
||||||
|
\end
|
||||||
|
|
||||||
|
{{$:/language/ControlPanel/Appearance/Toolbars/ViewToolbar/Hint}}
|
||||||
|
|
||||||
|
<$set name="tw-config-toolbar-icons" value="yes">
|
||||||
|
|
||||||
|
<$set name="tw-config-toolbar-text" value="yes">
|
||||||
|
|
||||||
|
<$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]]" variable="listItem">
|
||||||
|
|
||||||
|
<$checkbox tiddler=<<config-title>> field="text" checked="show" unchecked="hide" default="show"> <$transclude tiddler=<<listItem>> field="caption"/></$checkbox>
|
||||||
|
|
||||||
|
</$list>
|
||||||
|
|
||||||
|
</$set>
|
||||||
|
|
||||||
|
</$set>
|
@ -1,4 +1,7 @@
|
|||||||
title: $:/core/ui/EditTemplate/controls
|
title: $:/core/ui/EditTemplate/controls
|
||||||
tags: $:/tags/EditTemplate
|
tags: $:/tags/EditTemplate
|
||||||
|
|
||||||
<span class="tw-tiddler-controls titlebar"> <$list filter="[all[shadows+tiddlers]tag[$:/tags/EditToolbar]!has[draft.of]]" variable="listItem"><$transclude tiddler=<<listItem>>/></$list> </span>
|
\define config-title()
|
||||||
|
$:/config/EditToolbarButtons/Visibility/$(listItem)$
|
||||||
|
\end
|
||||||
|
<span class="tw-tiddler-controls titlebar"><$list filter="[all[shadows+tiddlers]tag[$:/tags/EditToolbar]!has[draft.of]]" variable="listItem"><$reveal type="nomatch" state=<<config-title>> text="hide"><$transclude tiddler=<<listItem>>/></$reveal></$list></span>
|
||||||
|
@ -1,4 +1,12 @@
|
|||||||
title: $:/core/ui/EditToolbar/cancel
|
title: $:/core/ui/Buttons/cancel
|
||||||
tags: $:/tags/EditToolbar
|
tags: $:/tags/EditToolbar
|
||||||
|
caption: {{$:/core/images/cancel-button}} {{$:/language/Buttons/Cancel/Caption}}
|
||||||
|
|
||||||
<$button message="tw-cancel-tiddler" title={{$:/language/Buttons/Cancel/Hint}} aria-label={{$:/language/Buttons/Cancel/Caption}} class="btn-invisible">{{$:/core/images/cancel-button}}</$button>
|
<$button message="tw-cancel-tiddler" title={{$:/language/Buttons/Cancel/Hint}} aria-label={{$:/language/Buttons/Cancel/Caption}} class=<<tw-config-toolbar-class>>>
|
||||||
|
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
||||||
|
{{$:/core/images/cancel-button}}
|
||||||
|
</$list>
|
||||||
|
<$list filter="[<tw-config-toolbar-text>prefix[yes]]">
|
||||||
|
<$text text={{$:/language/Buttons/Cancel/Caption}}/>
|
||||||
|
</$list>
|
||||||
|
</$button>
|
||||||
|
@ -1,4 +1,12 @@
|
|||||||
title: $:/core/ui/EditToolbar/delete
|
title: $:/core/ui/Buttons/delete
|
||||||
tags: $:/tags/EditToolbar
|
tags: $:/tags/EditToolbar
|
||||||
|
caption: {{$:/core/images/delete-button}} {{$:/language/Buttons/Delete/Caption}}
|
||||||
|
|
||||||
<$button message="tw-delete-tiddler" title={{$:/language/Buttons/Delete/Hint}} aria-label={{$:/language/Buttons/Delete/Caption}} class="btn-invisible">{{$:/core/images/delete-button}}</$button>
|
<$button message="tw-delete-tiddler" title={{$:/language/Buttons/Delete/Hint}} aria-label={{$:/language/Buttons/Delete/Caption}} class=<<tw-config-toolbar-class>>>
|
||||||
|
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
||||||
|
{{$:/core/images/delete-button}}
|
||||||
|
</$list>
|
||||||
|
<$list filter="[<tw-config-toolbar-text>prefix[yes]]">
|
||||||
|
<$text text={{$:/language/Buttons/Delete/Caption}}/>
|
||||||
|
</$list>
|
||||||
|
</$button>
|
@ -1,4 +1,12 @@
|
|||||||
title: $:/core/ui/EditToolbar/save
|
title: $:/core/ui/Buttons/save
|
||||||
tags: $:/tags/EditToolbar
|
tags: $:/tags/EditToolbar
|
||||||
|
caption: {{$:/core/images/done-button}} {{$:/language/Buttons/Save/Caption}}
|
||||||
|
|
||||||
<$button message="tw-save-tiddler" title={{$:/language/Buttons/Save/Hint}} aria-label={{$:/language/Buttons/Save/Caption}} class="btn-invisible">{{$:/core/images/done-button}}</$button>
|
<$button message="tw-save-tiddler" title={{$:/language/Buttons/Save/Hint}} aria-label={{$:/language/Buttons/Save/Caption}} class=<<tw-config-toolbar-class>>>
|
||||||
|
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
||||||
|
{{$:/core/images/done-button}}
|
||||||
|
</$list>
|
||||||
|
<$list filter="[<tw-config-toolbar-text>prefix[yes]]">
|
||||||
|
<$text text={{$:/language/Buttons/Save/Caption}}/>
|
||||||
|
</$list>
|
||||||
|
</$button>
|
@ -1,4 +1,12 @@
|
|||||||
title: $:/core/ui/PageControls/control-panel
|
title: $:/core/ui/Buttons/control-panel
|
||||||
tags: $:/tags/PageControls
|
tags: $:/tags/PageControls
|
||||||
|
caption: {{$:/core/images/options-button}} {{$:/language/Buttons/ControlPanel/Caption}}
|
||||||
|
|
||||||
<$button to="$:/ControlPanel" title={{$:/language/Buttons/ControlPanel/Hint}} aria-label={{$:/language/Buttons/ControlPanel/Caption}} class="btn-invisible">{{$:/core/images/options-button}}</$button>
|
<$button to="$:/ControlPanel" title={{$:/language/Buttons/ControlPanel/Hint}} aria-label={{$:/language/Buttons/ControlPanel/Caption}} class=<<tw-config-toolbar-class>>>
|
||||||
|
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
||||||
|
{{$:/core/images/options-button}}
|
||||||
|
</$list>
|
||||||
|
<$list filter="[<tw-config-toolbar-text>prefix[yes]]">
|
||||||
|
<$text text={{$:/language/Buttons/ControlPanel/Caption}}/>
|
||||||
|
</$list>
|
||||||
|
</$button>
|
||||||
|
12
core/ui/PageControls/home.tid
Normal file
12
core/ui/PageControls/home.tid
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
title: $:/core/ui/Buttons/home
|
||||||
|
tags: $:/tags/PageControls
|
||||||
|
caption: {{$:/core/images/home-button}} {{$:/language/Buttons/Home/Caption}}
|
||||||
|
|
||||||
|
<$button message="tw-home" title={{$:/language/Buttons/Home/Hint}} aria-label={{$:/language/Buttons/Home/Caption}} class=<<tw-config-toolbar-class>>>
|
||||||
|
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
||||||
|
{{$:/core/images/home-button}}
|
||||||
|
</$list>
|
||||||
|
<$list filter="[<tw-config-toolbar-text>prefix[yes]]">
|
||||||
|
<$text text={{$:/language/Buttons/Home/Caption}}/>
|
||||||
|
</$list>
|
||||||
|
</$button>
|
@ -1,4 +1,12 @@
|
|||||||
title: $:/core/ui/PageControls/new-tiddler
|
title: $:/core/ui/Buttons/new-tiddler
|
||||||
tags: $:/tags/PageControls
|
tags: $:/tags/PageControls
|
||||||
|
caption: {{$:/core/images/new-button}} {{$:/language/Buttons/NewTiddler/Caption}}
|
||||||
|
|
||||||
<$button message="tw-new-tiddler" title={{$:/language/Buttons/NewTiddler/Hint}} aria-label={{$:/language/Buttons/NewTiddler/Caption}} class="btn-invisible">{{$:/core/images/new-button}}</$button>
|
<$button message="tw-new-tiddler" title={{$:/language/Buttons/NewTiddler/Hint}} aria-label={{$:/language/Buttons/NewTiddler/Caption}} class=<<tw-config-toolbar-class>>>
|
||||||
|
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
||||||
|
{{$:/core/images/new-button}}
|
||||||
|
</$list>
|
||||||
|
<$list filter="[<tw-config-toolbar-text>prefix[yes]]">
|
||||||
|
<$text text={{$:/language/Buttons/NewTiddler/Caption}}/>
|
||||||
|
</$list>
|
||||||
|
</$button>
|
||||||
|
@ -1,4 +1,12 @@
|
|||||||
title: $:/core/ui/PageControls/save-wiki
|
title: $:/core/ui/Buttons/save-wiki
|
||||||
tags: $:/tags/PageControls
|
tags: $:/tags/PageControls
|
||||||
|
caption: {{$:/core/images/save-button}} {{$:/language/Buttons/SaveWiki/Caption}}
|
||||||
|
|
||||||
<$button message="tw-save-wiki" title={{$:/language/Buttons/SaveWiki/Hint}} aria-label={{$:/language/Buttons/SaveWiki/Caption}} class="btn-invisible">{{$:/core/images/save-button}}</$button>
|
<$button message="tw-save-wiki" title={{$:/language/Buttons/SaveWiki/Hint}} aria-label={{$:/language/Buttons/SaveWiki/Caption}} class=<<tw-config-toolbar-class>>>
|
||||||
|
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
||||||
|
{{$:/core/images/save-button}}
|
||||||
|
</$list>
|
||||||
|
<$list filter="[<tw-config-toolbar-text>prefix[yes]]">
|
||||||
|
<$text text={{$:/language/Buttons/SaveWiki/Caption}}/>
|
||||||
|
</$list>
|
||||||
|
</$button>
|
@ -10,6 +10,8 @@ tw-page-container tw-page-view-$(themeTitle)$ tw-language-$(languageTitle)$
|
|||||||
|
|
||||||
<$set name="tw-config-toolbar-text" value={{$:/config/Toolbar/Text}}>
|
<$set name="tw-config-toolbar-text" value={{$:/config/Toolbar/Text}}>
|
||||||
|
|
||||||
|
<$set name="tw-config-toolbar-class" value="btn-invisible">
|
||||||
|
|
||||||
<$set name="themeTitle" value={{$:/view}}>
|
<$set name="themeTitle" value={{$:/view}}>
|
||||||
|
|
||||||
<$set name="currentTiddler" value={{$:/language}}>
|
<$set name="currentTiddler" value={{$:/language}}>
|
||||||
@ -48,4 +50,6 @@ tw-page-container tw-page-view-$(themeTitle)$ tw-language-$(languageTitle)$
|
|||||||
|
|
||||||
</$set>
|
</$set>
|
||||||
|
|
||||||
|
</$set>
|
||||||
|
|
||||||
</$importvariables>
|
</$importvariables>
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
title: $:/core/ui/PageTemplate/sidebar
|
title: $:/core/ui/PageTemplate/sidebar
|
||||||
tags: $:/tags/PageTemplate
|
tags: $:/tags/PageTemplate
|
||||||
|
|
||||||
|
\define config-title()
|
||||||
|
$:/config/PageControlButtons/Visibility/$(listItem)$
|
||||||
|
\end
|
||||||
<$scrollable fallthrough="no" class="tw-sidebar-scrollable">
|
<$scrollable fallthrough="no" class="tw-sidebar-scrollable">
|
||||||
|
|
||||||
<div class="sidebar-header">
|
<div class="sidebar-header">
|
||||||
@ -20,13 +23,11 @@ tags: $:/tags/PageTemplate
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="tw-page-controls">
|
<div class="tw-page-controls">
|
||||||
|
|
||||||
<$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">
|
||||||
|
<$reveal type="nomatch" state=<<config-title>> text="hide">
|
||||||
<$transclude tiddler=<<listItem>> mode="inline"/>
|
<$transclude tiddler=<<listItem>> mode="inline"/>
|
||||||
|
</$reveal>
|
||||||
</$list>
|
</$list>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<$transclude tiddler="$:/core/ui/SideBarLists" mode="inline"/>
|
<$transclude tiddler="$:/core/ui/SideBarLists" mode="inline"/>
|
||||||
|
@ -1,21 +1,3 @@
|
|||||||
title: $:/core/ui/TiddlerInfo
|
title: $:/core/ui/TiddlerInfo
|
||||||
|
|
||||||
\define config-title()
|
<<tabs "[all[shadows+tiddlers]tag[$:/tags/TiddlerInfo]!has[draft.of]]" "$:/core/ui/TiddlerInfo/Tools">>
|
||||||
$:/config/Buttons/Hide/$(listItem)$
|
|
||||||
\end
|
|
||||||
|
|
||||||
<$set name="tw-config-toolbar-icons" value="yes">
|
|
||||||
|
|
||||||
<$set name="tw-config-toolbar-text" value="yes">
|
|
||||||
|
|
||||||
<$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]]" variable="listItem">
|
|
||||||
|
|
||||||
<$transclude tiddler=<<listItem>>/> (<$checkbox tiddler=<<config-title>> field="text" checked="no" unchecked="yes" default="no"> Show in toolbar</$checkbox>)
|
|
||||||
|
|
||||||
</$list>
|
|
||||||
|
|
||||||
</$set>
|
|
||||||
|
|
||||||
</$set>
|
|
||||||
|
|
||||||
<<tabs "[all[shadows+tiddlers]tag[$:/tags/TiddlerInfo]!has[draft.of]]" "$:/core/ui/TiddlerInfo/References">>
|
|
||||||
|
26
core/ui/TiddlerInfo/Tools.tid
Normal file
26
core/ui/TiddlerInfo/Tools.tid
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
title: $:/core/ui/TiddlerInfo/Tools
|
||||||
|
tags: $:/tags/TiddlerInfo
|
||||||
|
caption: {{$:/language/TiddlerInfo/Tools/Caption}}
|
||||||
|
|
||||||
|
\define lingo-base() $:/language/TiddlerInfo/
|
||||||
|
\define config-title()
|
||||||
|
$:/config/ViewToolbarButtons/Visibility/$(listItem)$
|
||||||
|
\end
|
||||||
|
|
||||||
|
<$set name="tw-config-toolbar-icons" value="yes">
|
||||||
|
|
||||||
|
<$set name="tw-config-toolbar-text" value="yes">
|
||||||
|
|
||||||
|
<$set name="tw-config-toolbar-class" value="">
|
||||||
|
|
||||||
|
<$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]]" variable="listItem">
|
||||||
|
|
||||||
|
<$checkbox tiddler=<<config-title>> field="text" checked="show" unchecked="hide" default="show"> <$transclude tiddler=<<listItem>>/> </$checkbox>
|
||||||
|
|
||||||
|
</$list>
|
||||||
|
|
||||||
|
</$set>
|
||||||
|
|
||||||
|
</$set>
|
||||||
|
|
||||||
|
</$set>
|
@ -5,12 +5,12 @@ tags: $:/tags/ViewTemplate
|
|||||||
fill:$(foregroundColor)$;
|
fill:$(foregroundColor)$;
|
||||||
\end
|
\end
|
||||||
\define config-title()
|
\define config-title()
|
||||||
$:/config/Buttons/Hide/$(listItem)$
|
$:/config/ViewToolbarButtons/Visibility/$(listItem)$
|
||||||
\end
|
\end
|
||||||
<div class="tw-tiddler-title">
|
<div class="tw-tiddler-title">
|
||||||
<h2 class="titlebar">
|
<h2 class="titlebar">
|
||||||
<span class="tw-tiddler-controls">
|
<span class="tw-tiddler-controls">
|
||||||
<$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]]" variable="listItem"><$reveal type="nomatch" state=<<config-title>> text="yes"><$transclude tiddler=<<listItem>>/></$reveal></$list>
|
<$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]]" variable="listItem"><$reveal type="nomatch" state=<<config-title>> text="hide"><$transclude tiddler=<<listItem>>/></$reveal></$list>
|
||||||
</span>
|
</span>
|
||||||
<$set name="foregroundColor" value={{!!color}}>
|
<$set name="foregroundColor" value={{!!color}}>
|
||||||
<span style=<<title-styles>>>
|
<span style=<<title-styles>>>
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
title: $:/core/ui/ViewToolbar/clone
|
title: $:/core/ui/Buttons/clone
|
||||||
tags: $:/tags/ViewToolbar
|
tags: $:/tags/ViewToolbar
|
||||||
|
caption: {{$:/core/images/clone-button}} {{$:/language/Buttons/Clone/Caption}}
|
||||||
|
|
||||||
<$button message="tw-new-tiddler" param=<<currentTiddler>> title={{$:/language/Buttons/Clone/Hint}} aria-label={{$:/language/Buttons/Clone/Caption}} class="btn-invisible">
|
<$button message="tw-new-tiddler" param=<<currentTiddler>> title={{$:/language/Buttons/Clone/Hint}} aria-label={{$:/language/Buttons/Clone/Caption}} class=<<tw-config-toolbar-class>>>
|
||||||
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
||||||
{{$:/core/images/clone-button}}
|
{{$:/core/images/clone-button}}
|
||||||
</$list>
|
</$list>
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
title: $:/core/ui/ViewToolbar/close-others
|
title: $:/core/ui/Buttons/close-others
|
||||||
tags: $:/tags/ViewToolbar
|
tags: $:/tags/ViewToolbar
|
||||||
|
caption: {{$:/core/images/close-others-button}} {{$:/language/Buttons/CloseOthers/Caption}}
|
||||||
|
|
||||||
<$button message="tw-close-other-tiddlers" param=<<currentTiddler>> title={{$:/language/Buttons/CloseOthers/Hint}} aria-label={{$:/language/Buttons/CloseOthers/Caption}} class="btn-invisible">
|
<$button message="tw-close-other-tiddlers" param=<<currentTiddler>> title={{$:/language/Buttons/CloseOthers/Hint}} aria-label={{$:/language/Buttons/CloseOthers/Caption}} class=<<tw-config-toolbar-class>>>
|
||||||
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
||||||
{{$:/core/images/close-others-button}}
|
{{$:/core/images/close-others-button}}
|
||||||
</$list>
|
</$list>
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
title: $:/core/ui/ViewToolbar/close
|
title: $:/core/ui/Buttons/close
|
||||||
tags: $:/tags/ViewToolbar
|
tags: $:/tags/ViewToolbar
|
||||||
|
caption: {{$:/core/images/close-button}} {{$:/language/Buttons/Close/Caption}}
|
||||||
|
|
||||||
<$button message="tw-close-tiddler" title={{$:/language/Buttons/Close/Hint}} aria-label={{$:/language/Buttons/Close/Caption}} class="btn-invisible">
|
<$button message="tw-close-tiddler" title={{$:/language/Buttons/Close/Hint}} aria-label={{$:/language/Buttons/Close/Caption}} class=<<tw-config-toolbar-class>>>
|
||||||
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
||||||
{{$:/core/images/close-button}}
|
{{$:/core/images/close-button}}
|
||||||
</$list>
|
</$list>
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
title: $:/core/ui/ViewToolbar/edit
|
title: $:/core/ui/Buttons/edit
|
||||||
tags: $:/tags/ViewToolbar
|
tags: $:/tags/ViewToolbar
|
||||||
|
caption: {{$:/core/images/edit-button}} {{$:/language/Buttons/Edit/Caption}}
|
||||||
|
|
||||||
<$button message="tw-edit-tiddler" title={{$:/language/Buttons/Edit/Hint}} aria-label={{$:/language/Buttons/Edit/Caption}} class="btn-invisible">
|
<$button message="tw-edit-tiddler" title={{$:/language/Buttons/Edit/Hint}} aria-label={{$:/language/Buttons/Edit/Caption}} class=<<tw-config-toolbar-class>>>
|
||||||
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
||||||
{{$:/core/images/edit-button}}
|
{{$:/core/images/edit-button}}
|
||||||
</$list>
|
</$list>
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
title: $:/core/ui/ViewToolbar/info
|
title: $:/core/ui/Buttons/info
|
||||||
tags: $:/tags/ViewToolbar
|
tags: $:/tags/ViewToolbar
|
||||||
|
caption: {{$:/core/images/info-button}} {{$:/language/Buttons/Info/Caption}}
|
||||||
|
|
||||||
<$button popup=<<tiddlerInfoState>> title={{$:/language/Buttons/Info/Hint}} aria-label={{$:/language/Buttons/Info/Caption}} class="btn-invisible" selectedClass="tw-selected">
|
<$button popup=<<tiddlerInfoState>> title={{$:/language/Buttons/Info/Hint}} aria-label={{$:/language/Buttons/Info/Caption}} class=<<tw-config-toolbar-class>> selectedClass="tw-selected">
|
||||||
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
||||||
{{$:/core/images/info-button}}
|
{{$:/core/images/info-button}}
|
||||||
</$list>
|
</$list>
|
||||||
|
29
core/ui/ViewToolbar/more.tid
Normal file
29
core/ui/ViewToolbar/more.tid
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
title: $:/core/ui/Buttons/more
|
||||||
|
tags: $:/tags/ViewToolbar
|
||||||
|
caption: {{$:/core/images/down-arrow}} {{$:/language/Buttons/More/Caption}}
|
||||||
|
|
||||||
|
\define config-title()
|
||||||
|
$:/config/ViewToolbarButtons/Visibility/$(listItem)$
|
||||||
|
\end
|
||||||
|
<$button popup=<<qualify "$:/state/popup/more">> title={{$:/language/Buttons/More/Hint}} aria-label={{$:/language/Buttons/More/Caption}} class=<<tw-config-toolbar-class>> selectedClass="tw-selected">
|
||||||
|
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
||||||
|
{{$:/core/images/down-arrow}}
|
||||||
|
</$list>
|
||||||
|
<$list filter="[<tw-config-toolbar-text>prefix[yes]]">
|
||||||
|
<$text text={{$:/language/Buttons/More/Caption}}/>
|
||||||
|
</$list>
|
||||||
|
</$button>
|
||||||
|
<$reveal state=<<qualify "$:/state/popup/more">> type="popup" position="below" animate="yes">
|
||||||
|
<div class="tw-drop-down">
|
||||||
|
<$set name="tw-config-toolbar-icons" value="yes">
|
||||||
|
<$set name="tw-config-toolbar-text" value="yes">
|
||||||
|
<$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewToolbar]!has[draft.of]] -[[$:/core/ui/Buttons/more]]" variable="listItem">
|
||||||
|
<$reveal type="match" state=<<config-title>> text="hide">
|
||||||
|
<$transclude tiddler=<<listItem>>/>
|
||||||
|
</$reveal>
|
||||||
|
</$list>
|
||||||
|
</$set>
|
||||||
|
</$set>
|
||||||
|
</div>
|
||||||
|
</$reveal>
|
||||||
|
|
@ -1,7 +1,8 @@
|
|||||||
title: $:/core/ui/ViewToolbar/permalink
|
title: $:/core/ui/Buttons/permalink
|
||||||
tags: $:/tags/ViewToolbar
|
tags: $:/tags/ViewToolbar
|
||||||
|
caption: {{$:/core/images/permalink-button}} {{$:/language/Buttons/Permalink/Caption}}
|
||||||
|
|
||||||
<$button message="tw-permalink" title={{$:/language/Buttons/Permalink/Hint}} aria-label={{$:/language/Buttons/Permalink/Caption}} class="btn-invisible">
|
<$button message="tw-permalink" title={{$:/language/Buttons/Permalink/Hint}} aria-label={{$:/language/Buttons/Permalink/Caption}} class=<<tw-config-toolbar-class>>>
|
||||||
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
||||||
{{$:/core/images/permalink-button}}
|
{{$:/core/images/permalink-button}}
|
||||||
</$list>
|
</$list>
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
title: $:/core/ui/ViewToolbar/permaview
|
title: $:/core/ui/Buttons/permaview
|
||||||
tags: $:/tags/ViewToolbar
|
tags: $:/tags/ViewToolbar $:/tags/PageControls
|
||||||
|
caption: {{$:/core/images/permaview-button}} {{$:/language/Buttons/Permaview/Caption}}
|
||||||
|
|
||||||
<$button message="tw-permaview" title={{$:/language/Buttons/Permaview/Hint}} aria-label={{$:/language/Buttons/Permaview/Caption}} class="btn-invisible">
|
<$button message="tw-permaview" title={{$:/language/Buttons/Permaview/Hint}} aria-label={{$:/language/Buttons/Permaview/Caption}} class=<<tw-config-toolbar-class>>>
|
||||||
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
<$list filter="[<tw-config-toolbar-icons>prefix[yes]]">
|
||||||
{{$:/core/images/permaview-button}}
|
{{$:/core/images/permaview-button}}
|
||||||
</$list>
|
</$list>
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
title: $:/config/Buttons/Hide/$:/
|
|
||||||
|
|
||||||
core/ui/ViewToolbar/permalink: yes
|
|
||||||
core/ui/ViewToolbar/permaview: yes
|
|
||||||
core/ui/ViewToolbar/close-others: yes
|
|
||||||
core/ui/ViewToolbar/clone: yes
|
|
4
core/wiki/config/PageControlButtons.multids
Normal file
4
core/wiki/config/PageControlButtons.multids
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
title: $:/config/PageControlButtons/Visibility/$:/
|
||||||
|
|
||||||
|
core/ui/Buttons/home: hide
|
||||||
|
core/ui/Buttons/permaview: hide
|
7
core/wiki/config/ViewToolbarButtons.multids
Normal file
7
core/wiki/config/ViewToolbarButtons.multids
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
title: $:/config/ViewToolbarButtons/Visibility/$:/
|
||||||
|
|
||||||
|
core/ui/Buttons/clone: hide
|
||||||
|
core/ui/Buttons/close-others: hide
|
||||||
|
core/ui/Buttons/more: hide
|
||||||
|
core/ui/Buttons/permalink: hide
|
||||||
|
core/ui/Buttons/permaview: hide
|
@ -1,2 +1,2 @@
|
|||||||
title: $:/tags/EditToolbar
|
title: $:/tags/EditToolbar
|
||||||
list: [[$:/core/ui/EditToolbar/delete]] [[$:/core/ui/EditToolbar/cancel]] [[$:/core/ui/EditToolbar/save]]
|
list: [[$:/core/ui/Buttons/delete]] [[$:/core/ui/Buttons/cancel]] [[$:/core/ui/Buttons/save]]
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
title: $:/tags/PageControls
|
title: $:/tags/PageControls
|
||||||
list: [[$:/core/ui/PageControls/new-tiddler]] [[$:/core/ui/PageControls/control-panel]] [[$:/core/ui/PageControls/save-wiki]]
|
list: [[$:/core/ui/Buttons/home]] [[$:/core/ui/Buttons/permaview]] [[$:/core/ui/Buttons/new-tiddler]] [[$:/core/ui/Buttons/control-panel]] [[$:/core/ui/Buttons/save-wiki]]
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
title: $:/tags/TiddlerInfo
|
title: $:/tags/TiddlerInfo
|
||||||
list: [[$:/core/ui/TiddlerInfo/References]] [[$:/core/ui/TiddlerInfo/Tagging]] [[$:/core/ui/TiddlerInfo/List]] [[$:/core/ui/TiddlerInfo/Listed]] [[$:/core/ui/TiddlerInfo/Fields]]
|
list: [[$:/core/ui/TiddlerInfo/Tools]] [[$:/core/ui/TiddlerInfo/References]] [[$:/core/ui/TiddlerInfo/Tagging]] [[$:/core/ui/TiddlerInfo/List]] [[$:/core/ui/TiddlerInfo/Listed]] [[$:/core/ui/TiddlerInfo/Fields]]
|
||||||
|
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
title: $:/tags/ViewToolbar
|
title: $:/tags/ViewToolbar
|
||||||
list: [[$:/core/ui/ViewToolbar/info]] [[$:/core/ui/ViewToolbar/edit]] [[$:/core/ui/ViewToolbar/close]]
|
list: [[$:/core/ui/Buttons/more]] [[$:/core/ui/Buttons/info]] [[$:/core/ui/Buttons/clone]] [[$:/core/ui/Buttons/edit]] [[$:/core/ui/Buttons/permalink]] [[$:/core/ui/Buttons/permaview]] [[$:/core/ui/Buttons/close-others]] [[$:/core/ui/Buttons/close]]
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
title: $:/editions/tw5.com/github-fork-ribbon
|
title: $:/editions/tw5.com/github-fork-ribbon
|
||||||
tags: $:/tags/PageTemplate
|
tags: $:/tags/PageControls
|
||||||
|
caption: ~GitHub ribbon
|
||||||
|
|
||||||
<div class="github-fork-ribbon-wrapper right"><div class="github-fork-ribbon"><a href="https://github.com/Jermolene/TiddlyWiki5" target="_blank">Find me on ~GitHub</a></div>
|
<div class="github-fork-ribbon-wrapper right"><div class="github-fork-ribbon"><a href="https://github.com/Jermolene/TiddlyWiki5" target="_blank">Find me on ~GitHub</a></div>
|
||||||
</div>
|
</div>
|
@ -234,6 +234,10 @@ a.tw-tiddlylink-external:hover {
|
|||||||
** Buttons
|
** Buttons
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
button svg {
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
.btn-invisible {
|
.btn-invisible {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
@ -276,6 +280,7 @@ a.tw-tiddlylink-external:hover {
|
|||||||
|
|
||||||
.tw-image-button {
|
.tw-image-button {
|
||||||
height: 1em;
|
height: 1em;
|
||||||
|
width: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -378,10 +383,6 @@ a.tw-tiddlylink-external:hover {
|
|||||||
width: 60%;
|
width: 60%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tw-search {
|
|
||||||
padding-top: 14px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.tw-search a svg {
|
.tw-search a svg {
|
||||||
height: 0.75em;
|
height: 0.75em;
|
||||||
}
|
}
|
||||||
@ -392,6 +393,11 @@ a.tw-tiddlylink-external:hover {
|
|||||||
|
|
||||||
.tw-page-controls {
|
.tw-page-controls {
|
||||||
margin-top: 14px;
|
margin-top: 14px;
|
||||||
|
font-size: 1.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tw-page-controls button {
|
||||||
|
margin-right: 0.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tw-page-controls a.tw-tiddlylink:hover {
|
.tw-page-controls a.tw-tiddlylink:hover {
|
||||||
@ -399,9 +405,6 @@ a.tw-tiddlylink-external:hover {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.tw-page-controls svg {
|
.tw-page-controls svg {
|
||||||
height: 1.75em;
|
|
||||||
min-width: 1px;
|
|
||||||
padding-right: 0.5em;
|
|
||||||
fill: <<colour sidebar-controls-foreground>>;
|
fill: <<colour sidebar-controls-foreground>>;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -603,8 +606,11 @@ a.tw-tiddlylink-external:hover {
|
|||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tw-tiddler-controls .tw-drop-down {
|
||||||
|
font-size: 0.6em;
|
||||||
|
}
|
||||||
|
|
||||||
.tw-tiddler-controls button {
|
.tw-tiddler-controls button {
|
||||||
margin: 0 0 0 5px;
|
|
||||||
vertical-align: baseline;
|
vertical-align: baseline;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -844,16 +850,26 @@ canvas.tw-edit-bitmapeditor {
|
|||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tw-drop-down button svg {
|
||||||
|
fill: <<colour foreground>>;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tw-drop-down button.btn-invisible:hover svg {
|
||||||
|
fill: <<colour foreground>>;
|
||||||
|
}
|
||||||
|
|
||||||
.tw-drop-down p {
|
.tw-drop-down p {
|
||||||
padding: 0 14px 0 14px;
|
padding: 0 14px 0 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tw-drop-down a {
|
.tw-drop-down a, .tw-drop-down button {
|
||||||
display: block;
|
display: block;
|
||||||
padding: 0 14px 0 14px;
|
padding: 0 14px 0 14px;
|
||||||
|
width: 100%;
|
||||||
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tw-drop-down a:hover {
|
.tw-drop-down a:hover, .tw-drop-down button:hover {
|
||||||
color: <<colour tiddler-link-background>>;
|
color: <<colour tiddler-link-background>>;
|
||||||
background-color: <<colour tiddler-link-foreground>>;
|
background-color: <<colour tiddler-link-foreground>>;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user