1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-24 17:10:29 +00:00

Plugin improvements

* Improve docs
* Improve styling of subplugins
This commit is contained in:
Jeremy Ruston 2019-09-28 11:49:09 +01:00
parent ded9d4074c
commit 55e3b8d66d
3 changed files with 10 additions and 4 deletions

View File

@ -78,13 +78,15 @@ $:/state/add-plugin-info/$(connectionTiddler)$/$(assetInfo)$
<div class="tc-plugin-info-dropdown-body">
<$transclude tiddler=<<assetInfo>> field="readme" mode="block"/>
</div>
<div class="tc-plugin-info-sub-plugins">
<$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">
<<display-plugin-info "$type$">>
</$list>
</$set>
</div>
</$list>
</$set>
</div>
</$reveal>
</$set>

View File

@ -1,5 +1,5 @@
created: 20190928081810311
modified: 20190928081811355
modified: 20190928103750812
tags:
title: Plugin Types
type: text/vnd.tiddlywiki
@ -16,3 +16,5 @@ The following plugin types are used internally by the core:
* `info` - for the special $:/temp/info-plugin tiddler created by the InfoMechanism
While not supported by the plugin library, it is also possible to use custom plugin types to build plugin-like behaviour with a custom user interface. Plugins with a custom type will automatically receive the same behaviour as plain plugins but can display a custom user interface using an appropriate [[view template segment|SystemTag: $:/tags/ViewTemplate]].
By default, tiddlers within plugins with custom plugin types will not be registered as shadow tiddlers (the constituent tiddlers can still be addressed as subtiddlers by the TranscludeWidget, ViewWidget or the [[plugintiddlers Operator]]). Setting a configuration tiddler `$:/config/RegisterPluginType/<plugin-type>` to `yes` will cause the tiddlers within the plugin to be registered as shadow tiddlers.

View File

@ -2168,6 +2168,7 @@ a.tc-tiddlylink.tc-plugin-info:hover .tc-plugin-info > .tc-plugin-info-chunk > s
.tc-plugin-info-dropdown {
border: 1px solid <<colour muted-foreground>>;
background: <<colour background>>;
margin-top: -8px;
}
@ -2180,6 +2181,7 @@ a.tc-tiddlylink.tc-plugin-info:hover .tc-plugin-info > .tc-plugin-info-chunk > s
.tc-plugin-info-dropdown-body {
padding: 1em 1em 0 1em;
background: <<colour background>>;
}
.tc-plugin-info-sub-plugins {