Minor tweaks to plugin library listings

* Adds a name to the core plugin
* Make plugin listings consistently show "name: description"
* Make plugin listings consistently sort by title (thus grouping publishers)
* Add a missing plugin name

See discussion here: https://github.com/Jermolene/TiddlyWiki5/pull/4508#issuecomment-609671970
bidi-improvements
Jeremy Ruston 2020-04-06 10:15:18 +01:00
rodzic 06639850ba
commit 59fd557067
7 zmienionych plików z 8 dodań i 6 usunięć

Wyświetl plik

@ -1,5 +1,6 @@
{ {
"title": "$:/core", "title": "$:/core",
"name": "Core",
"description": "TiddlyWiki5 core", "description": "TiddlyWiki5 core",
"author": "JeremyRuston", "author": "JeremyRuston",
"core-version": ">=5.0.0", "core-version": ">=5.0.0",

Wyświetl plik

@ -38,7 +38,7 @@ $:/config/Plugins/Disabled/$(currentTiddler)$
</div> </div>
<div class="tc-plugin-info-chunk tc-plugin-info-description"> <div class="tc-plugin-info-chunk tc-plugin-info-description">
<h1> <h1>
''<$view field="description"><$view field="title"/></$view>'' $disabledMessage$ ''<$view field="name"/>'': <$view field="description"><$view field="title"/></$view> $disabledMessage$
</h1> </h1>
<h2> <h2>
<$view field="title"/> <$view field="title"/>

Wyświetl plik

@ -81,7 +81,7 @@ $:/state/add-plugin-info/$(connectionTiddler)$/$(assetInfo)$
<$set name="original-title" value={{{ [<assetInfo>get[original-title]] }}}> <$set name="original-title" value={{{ [<assetInfo>get[original-title]] }}}>
<$list filter="[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[$type$]has[parent-plugin]parent-plugin<original-title>limit[1]]" variable="ignore"> <$list filter="[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[$type$]has[parent-plugin]parent-plugin<original-title>limit[1]]" variable="ignore">
<div class="tc-plugin-info-sub-plugins"> <div class="tc-plugin-info-sub-plugins">
<$list filter="[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[$type$]has[parent-plugin]parent-plugin<original-title>sort[title]sort[name]]" variable="assetInfo"> <$list filter="[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[$type$]has[parent-plugin]parent-plugin<original-title>sort[title]]" variable="assetInfo">
<<display-plugin-info "$type$">> <<display-plugin-info "$type$">>
</$list> </$list>
</div> </div>
@ -108,7 +108,7 @@ $:/state/add-plugin-info/$(connectionTiddler)$/$(assetInfo)$
</$button> </$button>
</$reveal> </$reveal>
<div class="tc-plugin-library-listing"> <div class="tc-plugin-library-listing">
<$list filter="[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[$type$]search:author,description,original-title,readme,title{$:/temp/RemoteAssetSearch/$(currentTiddler)$}sort[title]sort[name]]" variable="assetInfo"> <$list filter="[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[$type$]search:author,description,original-title,readme,title{$:/temp/RemoteAssetSearch/$(currentTiddler)$}sort[title]]" variable="assetInfo">
<$list filter="[[$:/temp/RemoteAssetSearch/$(currentTiddler)$]has[text]] ~[<assetInfo>!has[parent-plugin]]" variable="ignore"><!-- Hide sub-plugins if we're not searching --> <$list filter="[[$:/temp/RemoteAssetSearch/$(currentTiddler)$]has[text]] ~[<assetInfo>!has[parent-plugin]]" variable="ignore"><!-- Hide sub-plugins if we're not searching -->
<<display-plugin-info "$type$">> <<display-plugin-info "$type$">>
</$list> </$list>

Wyświetl plik

@ -7,7 +7,7 @@ caption: {{$:/language/ControlPanel/Plugins/Caption}}
\define plugin-table(type) \define plugin-table(type)
<$set name="plugin-type" value="""$type$"""> <$set name="plugin-type" value="""$type$""">
<$set name="qualified-state" value=<<qualify "$:/state/plugin-info">>> <$set name="qualified-state" value=<<qualify "$:/state/plugin-info">>>
<$list filter="[!has[draft.of]plugin-type[$type$]sort[description]]" emptyMessage=<<lingo "Empty/Hint">> template="$:/core/ui/Components/plugin-info"/> <$list filter="[!has[draft.of]plugin-type[$type$]sort[title]]" emptyMessage=<<lingo "Empty/Hint">> template="$:/core/ui/Components/plugin-info"/>
</$set> </$set>
</$set> </$set>
\end \end

Wyświetl plik

@ -31,7 +31,7 @@ Click the link to the plugin tiddler to open it. Assuming it doesn't currently e
|!Field |!Value | |!Field |!Value |
|''dependents'' |Space separated list of dependent plugins (use square brackets for titles containing spaces) | |''dependents'' |Space separated list of dependent plugins (use square brackets for titles containing spaces) |
|''description'' |Plugin description | |''description'' |Plugin description |
|''name'' |Plugin name (only needed for themes) | |''name'' |Plugin name |
|''plugin-type'' |Either "plugin" for a regular plugin, "theme" for a theme, or "language" for a language pack | |''plugin-type'' |Either "plugin" for a regular plugin, "theme" for a theme, or "language" for a language pack |
|''type'' |Set to "application/json" | |''type'' |Set to "application/json" |
|''version'' |Set to the version number of the plugin (eg "0.0.1") | |''version'' |Set to the version number of the plugin (eg "0.0.1") |

Wyświetl plik

@ -1,5 +1,6 @@
{ {
"title": "$:/plugins/tiddlywiki/dynannotate", "title": "$:/plugins/tiddlywiki/dynannotate",
"name": "Dynannotate",
"description": "Dynamic content annotation", "description": "Dynamic content annotation",
"author": "JeremyRuston", "author": "JeremyRuston",
"core-version": ">=5.0.0", "core-version": ">=5.0.0",

Wyświetl plik

@ -1,6 +1,6 @@
{ {
"title": "$:/plugins/tiddlywiki/dynaview", "title": "$:/plugins/tiddlywiki/dynaview",
"name": "DynaView", "name": "Dynaview",
"description": "Dynamic scrolling and zooming effects", "description": "Dynamic scrolling and zooming effects",
"list": "readme docs examples config" "list": "readme docs examples config"
} }