mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-25 01:20:30 +00:00
Plugin improvements
* Improve docs * Improve styling of subplugins
This commit is contained in:
parent
ded9d4074c
commit
55e3b8d66d
@ -78,13 +78,15 @@ $:/state/add-plugin-info/$(connectionTiddler)$/$(assetInfo)$
|
|||||||
<div class="tc-plugin-info-dropdown-body">
|
<div class="tc-plugin-info-dropdown-body">
|
||||||
<$transclude tiddler=<<assetInfo>> field="readme" mode="block"/>
|
<$transclude tiddler=<<assetInfo>> field="readme" mode="block"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="tc-plugin-info-sub-plugins">
|
|
||||||
<$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">
|
||||||
|
<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]sort[name]]" variable="assetInfo">
|
||||||
<<display-plugin-info "$type$">>
|
<<display-plugin-info "$type$">>
|
||||||
</$list>
|
</$list>
|
||||||
</$set>
|
|
||||||
</div>
|
</div>
|
||||||
|
</$list>
|
||||||
|
</$set>
|
||||||
</div>
|
</div>
|
||||||
</$reveal>
|
</$reveal>
|
||||||
</$set>
|
</$set>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
created: 20190928081810311
|
created: 20190928081810311
|
||||||
modified: 20190928081811355
|
modified: 20190928103750812
|
||||||
tags:
|
tags:
|
||||||
title: Plugin Types
|
title: Plugin Types
|
||||||
type: text/vnd.tiddlywiki
|
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
|
* `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]].
|
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.
|
||||||
|
@ -2168,6 +2168,7 @@ a.tc-tiddlylink.tc-plugin-info:hover .tc-plugin-info > .tc-plugin-info-chunk > s
|
|||||||
|
|
||||||
.tc-plugin-info-dropdown {
|
.tc-plugin-info-dropdown {
|
||||||
border: 1px solid <<colour muted-foreground>>;
|
border: 1px solid <<colour muted-foreground>>;
|
||||||
|
background: <<colour background>>;
|
||||||
margin-top: -8px;
|
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 {
|
.tc-plugin-info-dropdown-body {
|
||||||
padding: 1em 1em 0 1em;
|
padding: 1em 1em 0 1em;
|
||||||
|
background: <<colour background>>;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tc-plugin-info-sub-plugins {
|
.tc-plugin-info-sub-plugins {
|
||||||
|
Loading…
Reference in New Issue
Block a user