mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-19 00:04:51 +00:00
8643278a45
Fixes #1450 Provides support for an integrated plugin library that can be used to install plugins from tiddlywiki.com directly to wikis hosted online or offline. See the Plugins tab of Control Panel. Todo: * Error checking(eg libraryserver.js HTTP GET) * Translatability * Documentation ** $:/tags/ServerConnection ** savelibrarytiddlers command
102 lines
3.2 KiB
Plaintext
102 lines
3.2 KiB
Plaintext
title: $:/core/ui/ControlPanel/Plugins/Installed
|
|
tags: $:/tags/ControlPanel/Plugins
|
|
caption: {{$:/language/ControlPanel/Plugins/Installed/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">
|
|
<$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">
|
|
<div>
|
|
''<$view field="description"><$view field="title"/></$view>'' $disabledMessage$
|
|
</div>
|
|
<div>
|
|
<$view field="title"/>
|
|
</div>
|
|
<div>
|
|
<$view field="version"/>
|
|
</div>
|
|
</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">
|
|
<$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>
|
|
</$reveal>
|
|
</$set>
|
|
</$list>
|
|
</$set>
|
|
\end
|
|
|
|
! <<lingo Plugin/Prompt>>
|
|
|
|
<<plugin-table plugin>>
|
|
|
|
! <<lingo Theme/Prompt>>
|
|
|
|
<<plugin-table theme>>
|
|
|
|
! <<lingo Language/Prompt>>
|
|
|
|
<<plugin-table language>>
|