1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-27 18:40:28 +00:00

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
This commit is contained in:
Jeremy Ruston 2020-04-06 10:15:18 +01:00
parent 06639850ba
commit 59fd557067
7 changed files with 8 additions and 6 deletions

View File

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

View File

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

View File

@ -81,7 +81,7 @@ $:/state/add-plugin-info/$(connectionTiddler)$/$(assetInfo)$
<$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">
<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$">>
</$list>
</div>
@ -108,7 +108,7 @@ $:/state/add-plugin-info/$(connectionTiddler)$/$(assetInfo)$
</$button>
</$reveal>
<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 -->
<<display-plugin-info "$type$">>
</$list>

View File

@ -7,7 +7,7 @@ caption: {{$:/language/ControlPanel/Plugins/Caption}}
\define plugin-table(type)
<$set name="plugin-type" value="""$type$""">
<$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>
\end

View File

@ -31,7 +31,7 @@ Click the link to the plugin tiddler to open it. Assuming it doesn't currently e
|!Field |!Value |
|''dependents'' |Space separated list of dependent plugins (use square brackets for titles containing spaces) |
|''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 |
|''type'' |Set to "application/json" |
|''version'' |Set to the version number of the plugin (eg "0.0.1") |

View File

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

View File

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