mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-02-09 23:50:01 +00:00
![Jermolene](/assets/img/avatar_default.png)
Now we display plugin icons, and an accordion containing information tabs exposed by the plugin.
86 lines
1.9 KiB
Plaintext
86 lines
1.9 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-table(type)
|
|
<$set name="qualified-state" value=<<qualify "$:/state/plugin-info">>>
|
|
<table>
|
|
<tbody>
|
|
<tr>
|
|
<th>
|
|
|
|
</th>
|
|
<th>
|
|
<<lingo Fields/Description>>
|
|
</th>
|
|
<th>
|
|
<<lingo Fields/Version>>
|
|
</th>
|
|
</tr>
|
|
<$list filter="[!has[draft.of]plugin-type[$type$]sort[description]]">
|
|
<$set name="popup-state" value=<<popup-state-macro>>>
|
|
<tr>
|
|
<td>
|
|
<$reveal type="nomatch" state=<<popup-state>> text="yes">
|
|
<$button class="btn-invisible btn-dropdown" set=<<popup-state>> setTo="yes">
|
|
{{$:/core/images/right-arrow}}
|
|
</$button>
|
|
</$reveal>
|
|
<$reveal type="match" state=<<popup-state>> text="yes">
|
|
<$button class="btn-invisible btn-dropdown" set=<<popup-state>> setTo="no">
|
|
{{$:/core/images/down-arrow}}
|
|
</$button>
|
|
</$reveal>
|
|
</td>
|
|
<td>
|
|
<$link to={{!!title}}>
|
|
<$transclude tiddler=<<currentTiddler>> subtiddler=<<plugin-icon-title>>/>
|
|
''<$view field="description"><$view field="title"/></$view>''<br>
|
|
<$view field="title"/>
|
|
</$link>
|
|
</td>
|
|
<td>
|
|
<$view field="version"/>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="3">
|
|
<$reveal type="match" text="yes" state=<<popup-state>>>
|
|
<$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">
|
|
<$transclude tiddler="$:/core/ui/TiddlerInfo/Advanced/PluginInfo"/>
|
|
</$reveal>
|
|
</$reveal>
|
|
</td>
|
|
</tr>
|
|
</$set>
|
|
</$list>
|
|
</tbody>
|
|
</table>
|
|
</$set>
|
|
\end
|
|
|
|
! <<lingo Plugin/Prompt>>
|
|
|
|
<<plugin-table plugin>>
|
|
|
|
! <<lingo Theme/Prompt>>
|
|
|
|
<<plugin-table theme>>
|
|
|
|
! <<lingo Language/Prompt>>
|
|
|
|
<<plugin-table language>>
|