OcttKB Cross-Repo Sync (HTML to Raw)

This commit is contained in:
2023-03-24 11:58:33 +00:00
parent e0528394e6
commit dc21b3c71c
1537 changed files with 93 additions and 1028 deletions

View File

@ -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>

View 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

View File

@ -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

View 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;
}

View File

@ -0,0 +1,3 @@
tags: $:/tags/Stylesheet
title: $:/plugins/tobibeer/inc/styles
type: text/css

View File

@ -0,0 +1,5 @@
title: $:/plugins/tobibeer/inc/templates/tabs
<div class="tb-inc-tab-content">
<$macrocall $name="{" tiddler=<<currentTab>>/>
</div>

View File

@ -0,0 +1,7 @@
title: $:/plugins/tobibeer/inc/toolbar
$:/plugins/tobibeer/inc/buttons/open
$:/core/ui/Buttons/edit
$:/core/ui/Buttons/delete

View 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": ""
}