2016-10-18 08:23:19 +00:00
|
|
|
title: $:/core/ui/Components/plugin-info
|
|
|
|
|
|
|
|
\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,default-popup-state)
|
2021-07-26 20:59:02 +00:00
|
|
|
\whitespace trim
|
2019-09-20 13:30:52 +00:00
|
|
|
<div class="tc-plugin-info-chunk tc-plugin-info-toggle">
|
2021-07-26 20:59:02 +00:00
|
|
|
<$reveal type="nomatch" state=<<popup-state>> text="yes" default="""$default-popup-state$""">
|
|
|
|
<$button class="tc-btn-invisible tc-btn-dropdown" set=<<popup-state>> setTo="yes">
|
|
|
|
{{$:/core/images/chevron-right}}
|
|
|
|
</$button>
|
|
|
|
</$reveal>
|
|
|
|
<$reveal type="match" state=<<popup-state>> text="yes" default="""$default-popup-state$""">
|
|
|
|
<$button class="tc-btn-invisible tc-btn-dropdown" set=<<popup-state>> setTo="no">
|
|
|
|
{{$:/core/images/chevron-down}}
|
|
|
|
</$button>
|
|
|
|
</$reveal>
|
2016-10-18 08:23:19 +00:00
|
|
|
</div>
|
2019-09-20 13:30:52 +00:00
|
|
|
<div class="tc-plugin-info-chunk tc-plugin-info-icon">
|
2021-07-26 20:59:02 +00:00
|
|
|
<$transclude tiddler=<<currentTiddler>> subtiddler=<<plugin-icon-title>>>
|
|
|
|
<$transclude tiddler="$:/core/images/plugin-generic-$type$"/>
|
|
|
|
</$transclude>
|
2016-10-18 08:23:19 +00:00
|
|
|
</div>
|
2019-09-20 13:30:52 +00:00
|
|
|
<div class="tc-plugin-info-chunk tc-plugin-info-description">
|
2021-07-26 20:59:02 +00:00
|
|
|
<h1>
|
|
|
|
''<$text text={{{ [<currentTiddler>get[name]] ~[<currentTiddler>split[/]last[1]] }}}/>'': <$view field="description"><$view field="title"/></$view> $disabledMessage$
|
|
|
|
</h1>
|
|
|
|
<h2>
|
|
|
|
<$view field="title"/>
|
|
|
|
</h2>
|
|
|
|
<h2>
|
2024-05-21 10:22:39 +00:00
|
|
|
<div>
|
|
|
|
<%if [<currentTiddler>get[stability]match[STABILITY_0_DEPRECATED]] %>
|
|
|
|
<span class="tc-plugin-info-stability tc-plugin-info-stability-deprecated">DEPRECATED</span>
|
|
|
|
<%elseif [<currentTiddler>get[stability]match[STABILITY_1_EXPERIMENTAL]] %>
|
|
|
|
<span class="tc-plugin-info-stability tc-plugin-info-stability-experimental">EXPERIMENTAL</span>
|
|
|
|
<%elseif [<currentTiddler>get[stability]match[STABILITY_2_STABLE]] %>
|
|
|
|
<span class="tc-plugin-info-stability tc-plugin-info-stability-stable">STABLE</span>
|
|
|
|
<%elseif [<currentTiddler>get[stability]match[STABILITY_3_LEGACY]] %>
|
|
|
|
<span class="tc-plugin-info-stability tc-plugin-info-stability-legacy">LEGACY</span>
|
|
|
|
<%endif%>
|
|
|
|
<em><$view field="version"/></em></div>
|
2021-07-26 20:59:02 +00:00
|
|
|
</h2>
|
2016-10-18 08:23:19 +00:00
|
|
|
</div>
|
|
|
|
\end
|
|
|
|
|
|
|
|
\define plugin-info(type,default-popup-state)
|
2021-07-26 20:59:02 +00:00
|
|
|
\whitespace trim
|
2016-10-18 08:23:19 +00:00
|
|
|
<$set name="popup-state" value=<<popup-state-macro>>>
|
2021-07-26 20:59:02 +00:00
|
|
|
<$reveal type="nomatch" state=<<plugin-disable-title>> text="yes">
|
|
|
|
<$link to={{!!title}} class="tc-plugin-info">
|
|
|
|
<<plugin-table-body type:"$type$" default-popup-state:"""$default-popup-state$""">>
|
|
|
|
</$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$" default-popup-state:"""$default-popup-state$""" disabledMessage:"<$macrocall $name='lingo' title='Disabled/Status'/>">>
|
|
|
|
</$link>
|
|
|
|
</$reveal>
|
|
|
|
<$reveal type="match" text="yes" state=<<popup-state>> default="""$default-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>
|
|
|
|
<$set name="tabsList" filter="[<currentTiddler>list[]] contents">
|
|
|
|
<$macrocall $name="tabs" state=<<tabs-state-macro>> tabsList=<<tabsList>> default={{{ [enlist<tabsList>] }}} template="$:/core/ui/PluginInfo"/>
|
|
|
|
</$set>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</$reveal>
|
2016-10-18 08:23:19 +00:00
|
|
|
</$set>
|
|
|
|
\end
|
|
|
|
|
|
|
|
<$macrocall $name="plugin-info" type=<<plugin-type>> default-popup-state=<<default-popup-state>>/>
|