From 82667d9d166f148a6b48758d8ff73121bac37700 Mon Sep 17 00:00:00 2001 From: Mario Pietsch Date: Mon, 26 Jul 2021 22:59:02 +0200 Subject: [PATCH] Add indentation to $:/core/ui/Components/plugin-info (#5777) * Add indentation to plugin-info, to make the macros readable. * add missing indent --- core/ui/Components/plugin-info.tid | 112 +++++++++++++++-------------- 1 file changed, 57 insertions(+), 55 deletions(-) diff --git a/core/ui/Components/plugin-info.tid b/core/ui/Components/plugin-info.tid index 8c51404e3..35bb22855 100644 --- a/core/ui/Components/plugin-info.tid +++ b/core/ui/Components/plugin-info.tid @@ -19,71 +19,73 @@ $:/config/Plugins/Disabled/$(currentTiddler)$ \end \define plugin-table-body(type,disabledMessage,default-popup-state) +\whitespace trim
-<$reveal type="nomatch" state=<> text="yes" default="""$default-popup-state$"""> -<$button class="tc-btn-invisible tc-btn-dropdown" set=<> setTo="yes"> -{{$:/core/images/chevron-right}} - - -<$reveal type="match" state=<> text="yes" default="""$default-popup-state$"""> -<$button class="tc-btn-invisible tc-btn-dropdown" set=<> setTo="no"> -{{$:/core/images/chevron-down}} - - + <$reveal type="nomatch" state=<> text="yes" default="""$default-popup-state$"""> + <$button class="tc-btn-invisible tc-btn-dropdown" set=<> setTo="yes"> + {{$:/core/images/chevron-right}} + + + <$reveal type="match" state=<> text="yes" default="""$default-popup-state$"""> + <$button class="tc-btn-invisible tc-btn-dropdown" set=<> setTo="no"> + {{$:/core/images/chevron-down}} + +
-<$transclude tiddler=<> subtiddler=<>> -<$transclude tiddler="$:/core/images/plugin-generic-$type$"/> - + <$transclude tiddler=<> subtiddler=<>> + <$transclude tiddler="$:/core/images/plugin-generic-$type$"/> +
-

-''<$text text={{{ [get[name]] ~[split[/]last[1]] }}}/>'': <$view field="description"><$view field="title"/> $disabledMessage$ -

-

-<$view field="title"/> -

-

-
<$view field="version"/>
-

+

+ ''<$text text={{{ [get[name]] ~[split[/]last[1]] }}}/>'': <$view field="description"><$view field="title"/> $disabledMessage$ +

+

+ <$view field="title"/> +

+

+
<$view field="version"/>
+

\end \define plugin-info(type,default-popup-state) +\whitespace trim <$set name="popup-state" value=<>> -<$reveal type="nomatch" state=<> text="yes"> -<$link to={{!!title}} class="tc-plugin-info"> -<> - - -<$reveal type="match" state=<> text="yes"> -<$link to={{!!title}} class="tc-plugin-info tc-plugin-info-disabled"> -<">> - - -<$reveal type="match" text="yes" state=<> default="""$default-popup-state$"""> -
-
-<$list filter="[all[current]] -[[$:/core]]"> -
-<$reveal type="nomatch" state=<> text="yes"> -<$button set=<> setTo="yes" tooltip={{$:/language/ControlPanel/Plugins/Disable/Hint}} aria-label={{$:/language/ControlPanel/Plugins/Disable/Caption}}> -<> - - -<$reveal type="match" state=<> text="yes"> -<$button set=<> setTo="no" tooltip={{$:/language/ControlPanel/Plugins/Enable/Hint}} aria-label={{$:/language/ControlPanel/Plugins/Enable/Caption}}> -<> - - -
- -<$set name="tabsList" filter="[list[]] contents"> -<$macrocall $name="tabs" state=<> tabsList=<> default={{{ [enlist] }}} template="$:/core/ui/PluginInfo"/> - -
-
- + <$reveal type="nomatch" state=<> text="yes"> + <$link to={{!!title}} class="tc-plugin-info"> + <> + + + <$reveal type="match" state=<> text="yes"> + <$link to={{!!title}} class="tc-plugin-info tc-plugin-info-disabled"> + <">> + + + <$reveal type="match" text="yes" state=<> default="""$default-popup-state$"""> +
+
+ <$list filter="[all[current]] -[[$:/core]]"> +
+ <$reveal type="nomatch" state=<> text="yes"> + <$button set=<> setTo="yes" tooltip={{$:/language/ControlPanel/Plugins/Disable/Hint}} aria-label={{$:/language/ControlPanel/Plugins/Disable/Caption}}> + <> + + + <$reveal type="match" state=<> text="yes"> + <$button set=<> setTo="no" tooltip={{$:/language/ControlPanel/Plugins/Enable Hint}} aria-label={{$:/language/ControlPanel/Plugins/Enable/Caption}}> + <> + + +
+ + <$set name="tabsList" filter="[list[]] contents"> + <$macrocall $name="tabs" state=<> tabsList=<> default={{{ [enlist] }}} template="$:/core/ui/PluginInfo"/> + +
+
+ \end