mirror of
https://gitlab.com/octtspacc/OcttKB
synced 2025-06-06 00:29:12 +02:00
OcttKB Cross-Repo Sync (HTML to Raw)
This commit is contained in:
@ -0,0 +1,11 @@
|
||||
title: $:/plugins/tobibeer/inc/buttons/open
|
||||
|
||||
<$button tooltip="Open this tiddler" class=<<tv-config-toolbar-class>>>
|
||||
<$action-navigate/>
|
||||
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
|
||||
{{$:/core/images/down-arrow}}
|
||||
</$list>
|
||||
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
|
||||
<span class="tc-btn-text">open</span>
|
||||
</$list>
|
||||
</$button>
|
23
Wiki-OcttKB/plugins/inc/$__plugins_tobibeer_inc_macro.tid
Normal file
23
Wiki-OcttKB/plugins/inc/$__plugins_tobibeer_inc_macro.tid
Normal file
@ -0,0 +1,23 @@
|
||||
tags: $:/tags/Macro
|
||||
title: $:/plugins/tobibeer/inc/macro
|
||||
|
||||
\define tb-inc(tiddler)
|
||||
<div class="tb-inc" title="""transcluded tiddler '$tiddler$'""">
|
||||
<$tiddler tiddler="""$tiddler$""">
|
||||
<div class="tb-inc-controls tc-tiddler-controls">
|
||||
<$list filter="[list[$:/plugins/tobibeer/inc/toolbar!!text]]" variable="listItem"><$transclude tiddler=<<listItem>>/></$list>
|
||||
</div>
|
||||
<div class="tb-inc-tiddler">
|
||||
<$transclude mode=block/>
|
||||
</div>
|
||||
</$tiddler>
|
||||
</div>
|
||||
\end
|
||||
\define {(tiddler)
|
||||
<$reveal type="match" text="""$tiddler$""" default="">
|
||||
<$macrocall $name="tb-inc" tiddler=<<currentTiddler>>/>
|
||||
</$reveal>
|
||||
<$reveal type="nomatch" text="""$tiddler$""" default="">
|
||||
<$macrocall $name="tb-inc" tiddler="""$tiddler$"""/>
|
||||
</$reveal>
|
||||
\end
|
@ -0,0 +1,6 @@
|
||||
title: $:/plugins/tobibeer/inc/readme
|
||||
|
||||
Provides the macro `<<{>>` that allows to transclude tiddlers with an on-hover toolbar for editing.
|
||||
|
||||
; documentation / examples / demos...
|
||||
: http://tobibeer.github.io/tw5-plugins#inc
|
20
Wiki-OcttKB/plugins/inc/$__plugins_tobibeer_inc_styles.css
Normal file
20
Wiki-OcttKB/plugins/inc/$__plugins_tobibeer_inc_styles.css
Normal file
@ -0,0 +1,20 @@
|
||||
.tb-inc-controls{
|
||||
margin-top:-2em;
|
||||
padding: 5px;
|
||||
display:none;
|
||||
}
|
||||
.tb-inc-tab-content .tb-inc{
|
||||
margin:0;
|
||||
padding:0;
|
||||
position:relative;
|
||||
}
|
||||
.tb-inc-tab-content .tb-inc-controls{
|
||||
position:absolute;
|
||||
margin-top:-5px;
|
||||
right:0;
|
||||
top:0;
|
||||
}
|
||||
.tb-inc:hover > .tb-inc-controls{
|
||||
display:block;
|
||||
float:right;
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
tags: $:/tags/Stylesheet
|
||||
title: $:/plugins/tobibeer/inc/styles
|
||||
type: text/css
|
@ -0,0 +1,5 @@
|
||||
title: $:/plugins/tobibeer/inc/templates/tabs
|
||||
|
||||
<div class="tb-inc-tab-content">
|
||||
<$macrocall $name="{" tiddler=<<currentTab>>/>
|
||||
</div>
|
@ -0,0 +1,7 @@
|
||||
title: $:/plugins/tobibeer/inc/toolbar
|
||||
|
||||
$:/plugins/tobibeer/inc/buttons/open
|
||||
|
||||
$:/core/ui/Buttons/edit
|
||||
|
||||
$:/core/ui/Buttons/delete
|
13
Wiki-OcttKB/plugins/inc/plugin.info
Normal file
13
Wiki-OcttKB/plugins/inc/plugin.info
Normal file
@ -0,0 +1,13 @@
|
||||
{
|
||||
"title": "$:/plugins/tobibeer/inc",
|
||||
"description": "Enhance transclusion by including tiddlers with an on-hover toolbar",
|
||||
"author": "Tobias Beer",
|
||||
"version": "0.5.2",
|
||||
"core-version": ">=5.1.9",
|
||||
"source": "https://github.com/tobibeer/tw5-inc",
|
||||
"documentation": "https://tobibeer.github.io/tw5-inc",
|
||||
"plugin-type": "plugin",
|
||||
"requires": "",
|
||||
"list": "readme",
|
||||
"dependents": ""
|
||||
}
|
Reference in New Issue
Block a user