mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-30 05:19:57 +00:00
Add indentation to $:/core/ui/Components/plugin-info (#5777)
* Add indentation to plugin-info, to make the macros readable. * add missing indent
This commit is contained in:
parent
97ed2757f0
commit
82667d9d16
@ -19,71 +19,73 @@ $:/config/Plugins/Disabled/$(currentTiddler)$
|
|||||||
\end
|
\end
|
||||||
|
|
||||||
\define plugin-table-body(type,disabledMessage,default-popup-state)
|
\define plugin-table-body(type,disabledMessage,default-popup-state)
|
||||||
|
\whitespace trim
|
||||||
<div class="tc-plugin-info-chunk tc-plugin-info-toggle">
|
<div class="tc-plugin-info-chunk tc-plugin-info-toggle">
|
||||||
<$reveal type="nomatch" state=<<popup-state>> text="yes" default="""$default-popup-state$""">
|
<$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">
|
<$button class="tc-btn-invisible tc-btn-dropdown" set=<<popup-state>> setTo="yes">
|
||||||
{{$:/core/images/chevron-right}}
|
{{$:/core/images/chevron-right}}
|
||||||
</$button>
|
</$button>
|
||||||
</$reveal>
|
</$reveal>
|
||||||
<$reveal type="match" state=<<popup-state>> text="yes" default="""$default-popup-state$""">
|
<$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">
|
<$button class="tc-btn-invisible tc-btn-dropdown" set=<<popup-state>> setTo="no">
|
||||||
{{$:/core/images/chevron-down}}
|
{{$:/core/images/chevron-down}}
|
||||||
</$button>
|
</$button>
|
||||||
</$reveal>
|
</$reveal>
|
||||||
</div>
|
</div>
|
||||||
<div class="tc-plugin-info-chunk tc-plugin-info-icon">
|
<div class="tc-plugin-info-chunk tc-plugin-info-icon">
|
||||||
<$transclude tiddler=<<currentTiddler>> subtiddler=<<plugin-icon-title>>>
|
<$transclude tiddler=<<currentTiddler>> subtiddler=<<plugin-icon-title>>>
|
||||||
<$transclude tiddler="$:/core/images/plugin-generic-$type$"/>
|
<$transclude tiddler="$:/core/images/plugin-generic-$type$"/>
|
||||||
</$transclude>
|
</$transclude>
|
||||||
</div>
|
</div>
|
||||||
<div class="tc-plugin-info-chunk tc-plugin-info-description">
|
<div class="tc-plugin-info-chunk tc-plugin-info-description">
|
||||||
<h1>
|
<h1>
|
||||||
''<$text text={{{ [<currentTiddler>get[name]] ~[<currentTiddler>split[/]last[1]] }}}/>'': <$view field="description"><$view field="title"/></$view> $disabledMessage$
|
''<$text text={{{ [<currentTiddler>get[name]] ~[<currentTiddler>split[/]last[1]] }}}/>'': <$view field="description"><$view field="title"/></$view> $disabledMessage$
|
||||||
</h1>
|
</h1>
|
||||||
<h2>
|
<h2>
|
||||||
<$view field="title"/>
|
<$view field="title"/>
|
||||||
</h2>
|
</h2>
|
||||||
<h2>
|
<h2>
|
||||||
<div><em><$view field="version"/></em></div>
|
<div><em><$view field="version"/></em></div>
|
||||||
</h2>
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
\end
|
\end
|
||||||
|
|
||||||
\define plugin-info(type,default-popup-state)
|
\define plugin-info(type,default-popup-state)
|
||||||
|
\whitespace trim
|
||||||
<$set name="popup-state" value=<<popup-state-macro>>>
|
<$set name="popup-state" value=<<popup-state-macro>>>
|
||||||
<$reveal type="nomatch" state=<<plugin-disable-title>> text="yes">
|
<$reveal type="nomatch" state=<<plugin-disable-title>> text="yes">
|
||||||
<$link to={{!!title}} class="tc-plugin-info">
|
<$link to={{!!title}} class="tc-plugin-info">
|
||||||
<<plugin-table-body type:"$type$" default-popup-state:"""$default-popup-state$""">>
|
<<plugin-table-body type:"$type$" default-popup-state:"""$default-popup-state$""">>
|
||||||
</$link>
|
</$link>
|
||||||
</$reveal>
|
</$reveal>
|
||||||
<$reveal type="match" state=<<plugin-disable-title>> text="yes">
|
<$reveal type="match" state=<<plugin-disable-title>> text="yes">
|
||||||
<$link to={{!!title}} class="tc-plugin-info tc-plugin-info-disabled">
|
<$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'/>">>
|
<<plugin-table-body type:"$type$" default-popup-state:"""$default-popup-state$""" disabledMessage:"<$macrocall $name='lingo' title='Disabled/Status'/>">>
|
||||||
</$link>
|
</$link>
|
||||||
</$reveal>
|
</$reveal>
|
||||||
<$reveal type="match" text="yes" state=<<popup-state>> default="""$default-popup-state$""">
|
<$reveal type="match" text="yes" state=<<popup-state>> default="""$default-popup-state$""">
|
||||||
<div class="tc-plugin-info-dropdown">
|
<div class="tc-plugin-info-dropdown">
|
||||||
<div class="tc-plugin-info-dropdown-body">
|
<div class="tc-plugin-info-dropdown-body">
|
||||||
<$list filter="[all[current]] -[[$:/core]]">
|
<$list filter="[all[current]] -[[$:/core]]">
|
||||||
<div style="float:right;">
|
<div style="float:right;">
|
||||||
<$reveal type="nomatch" state=<<plugin-disable-title>> text="yes">
|
<$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}}>
|
<$button set=<<plugin-disable-title>> setTo="yes" tooltip={{$:/language/ControlPanel/Plugins/Disable/Hint}} aria-label={{$:/language/ControlPanel/Plugins/Disable/Caption}}>
|
||||||
<<lingo Disable/Caption>>
|
<<lingo Disable/Caption>>
|
||||||
</$button>
|
</$button>
|
||||||
</$reveal>
|
</$reveal>
|
||||||
<$reveal type="match" state=<<plugin-disable-title>> text="yes">
|
<$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}}>
|
<$button set=<<plugin-disable-title>> setTo="no" tooltip={{$:/language/ControlPanel/Plugins/Enable Hint}} aria-label={{$:/language/ControlPanel/Plugins/Enable/Caption}}>
|
||||||
<<lingo Enable/Caption>>
|
<<lingo Enable/Caption>>
|
||||||
</$button>
|
</$button>
|
||||||
</$reveal>
|
</$reveal>
|
||||||
</div>
|
</div>
|
||||||
</$list>
|
</$list>
|
||||||
<$set name="tabsList" filter="[<currentTiddler>list[]] contents">
|
<$set name="tabsList" filter="[<currentTiddler>list[]] contents">
|
||||||
<$macrocall $name="tabs" state=<<tabs-state-macro>> tabsList=<<tabsList>> default={{{ [enlist<tabsList>] }}} template="$:/core/ui/PluginInfo"/>
|
<$macrocall $name="tabs" state=<<tabs-state-macro>> tabsList=<<tabsList>> default={{{ [enlist<tabsList>] }}} template="$:/core/ui/PluginInfo"/>
|
||||||
</$set>
|
</$set>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</$reveal>
|
</$reveal>
|
||||||
</$set>
|
</$set>
|
||||||
\end
|
\end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user