mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-18 07:44:51 +00:00
106 lines
3.6 KiB
Plaintext
106 lines
3.6 KiB
Plaintext
title: $:/core/ui/ControlPanel/Plugins
|
|
tags: $:/tags/ControlPanel
|
|
caption: {{$:/language/ControlPanel/Plugins/Caption}}
|
|
|
|
\define lingo-base() $:/language/ControlPanel/Plugins/
|
|
|
|
\define popup-state-macro()
|
|
$(qualified-state)$-$(currentTiddler)$
|
|
\end
|
|
|
|
\define tabs-state-macro()
|
|
$(popup-state)$-$(pluginInfoType)$
|
|
\end
|
|
|
|
\define plugin-icon-title()
|
|
$(currentTiddler)$/icon
|
|
\end
|
|
|
|
\define plugin-disable-title()
|
|
$:/config/Plugins/Disabled/$(currentTiddler)$
|
|
\end
|
|
|
|
\define plugin-table-body(type,disabledMessage)
|
|
<div class="tc-plugin-info-chunk tc-small-icon">
|
|
<$reveal type="nomatch" state=<<popup-state>> text="yes">
|
|
<$button class="tc-btn-invisible tc-btn-dropdown" set=<<popup-state>> setTo="yes">
|
|
{{$:/core/images/right-arrow}}
|
|
</$button>
|
|
</$reveal>
|
|
<$reveal type="match" state=<<popup-state>> text="yes">
|
|
<$button class="tc-btn-invisible tc-btn-dropdown" set=<<popup-state>> setTo="no">
|
|
{{$:/core/images/down-arrow}}
|
|
</$button>
|
|
</$reveal>
|
|
</div>
|
|
<div class="tc-plugin-info-chunk">
|
|
<$transclude tiddler=<<currentTiddler>> subtiddler=<<plugin-icon-title>>>
|
|
<$transclude tiddler="$:/core/images/plugin-generic-$type$"/>
|
|
</$transclude>
|
|
</div>
|
|
<div class="tc-plugin-info-chunk">
|
|
<h1>
|
|
''<$view field="description"><$view field="title"/></$view>'' $disabledMessage$
|
|
</h1>
|
|
<h2>
|
|
<$view field="title"/>
|
|
</h2>
|
|
<h2>
|
|
<div><em><$view field="version"/></em></div>
|
|
</h2>
|
|
</div>
|
|
\end
|
|
|
|
\define plugin-table(type)
|
|
<$set name="qualified-state" value=<<qualify "$:/state/plugin-info">>>
|
|
<$list filter="[!has[draft.of]plugin-type[$type$]sort[description]]" emptyMessage=<<lingo "Empty/Hint">>>
|
|
<$set name="popup-state" value=<<popup-state-macro>>>
|
|
<$reveal type="nomatch" state=<<plugin-disable-title>> text="yes">
|
|
<$link to={{!!title}} class="tc-plugin-info">
|
|
<<plugin-table-body type:"$type$">>
|
|
</$link>
|
|
</$reveal>
|
|
<$reveal type="match" state=<<plugin-disable-title>> text="yes">
|
|
<$link to={{!!title}} class="tc-plugin-info tc-plugin-info-disabled">
|
|
<<plugin-table-body type:"$type$" disabledMessage:"<$macrocall $name='lingo' title='Disabled/Status'/>">>
|
|
</$link>
|
|
</$reveal>
|
|
<$reveal type="match" text="yes" state=<<popup-state>>>
|
|
<div class="tc-plugin-info-dropdown">
|
|
<div class="tc-plugin-info-dropdown-body">
|
|
<$list filter="[all[current]] -[[$:/core]]">
|
|
<div style="float:right;">
|
|
<$reveal type="nomatch" state=<<plugin-disable-title>> text="yes">
|
|
<$button set=<<plugin-disable-title>> setTo="yes" tooltip={{$:/language/ControlPanel/Plugins/Disable/Hint}} aria-label={{$:/language/ControlPanel/Plugins/Disable/Caption}}>
|
|
<<lingo Disable/Caption>>
|
|
</$button>
|
|
</$reveal>
|
|
<$reveal type="match" state=<<plugin-disable-title>> text="yes">
|
|
<$button set=<<plugin-disable-title>> setTo="no" tooltip={{$:/language/ControlPanel/Plugins/Enable/Hint}} aria-label={{$:/language/ControlPanel/Plugins/Enable/Caption}}>
|
|
<<lingo Enable/Caption>>
|
|
</$button>
|
|
</$reveal>
|
|
</div>
|
|
</$list>
|
|
<$reveal type="nomatch" text="" state="!!list">
|
|
<$macrocall $name="tabs" state=<<tabs-state-macro>> tabsList={{!!list}} default="readme" template="$:/core/ui/PluginInfo"/>
|
|
</$reveal>
|
|
<$reveal type="match" text="" state="!!list">
|
|
No information provided
|
|
</$reveal>
|
|
</div>
|
|
</div>
|
|
</$reveal>
|
|
</$set>
|
|
</$list>
|
|
</$set>
|
|
\end
|
|
|
|
<$button message="tm-modal" param="$:/core/ui/ControlPanel/Modals/AddPlugins" tooltip={{$:/language/ControlPanel/Plugins/Add/Hint}} class="tc-btn-big-green" style="background:blue;">
|
|
{{$:/core/images/download-button}} <<lingo Add/Caption>>
|
|
</$button>
|
|
|
|
<<lingo Installed/Hint>>
|
|
|
|
<<tabs "[[$:/core/ui/ControlPanel/Plugins/Installed/Plugins]] [[$:/core/ui/ControlPanel/Plugins/Installed/Themes]] [[$:/core/ui/ControlPanel/Plugins/Installed/Languages]]" "$:/core/ui/ControlPanel/Plugins/Installed/Plugins">>
|