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:
@@ -1,6 +1,6 @@
|
||||
created: 20230219153505142
|
||||
creator: Octt
|
||||
modified: 20230219191248808
|
||||
modified: 20230905223216334
|
||||
modifier: Octt
|
||||
tags: $:/tags/Stylesheet
|
||||
title: $:/Styles/LinkIcon
|
||||
@@ -16,14 +16,22 @@ title: $:/Styles/LinkIcon
|
||||
<$set name="uri" value=<<makedatauri """$(tid)$""" "text/plain">> >
|
||||
<$list variable="urititle" filter="""[<uri>removeprefix[data:text/plain,]]""">
|
||||
<style>
|
||||
a[href="#<<urititle>>"][class='tc-tiddlylink tc-tiddlylink-resolves']:after { content: ' <<icon>>'; }
|
||||
a[href="#<<urititle>>"][class='tc-tiddlylink tc-tiddlylink-resolves']:after,
|
||||
.tc-tag-list-item[data-tag-title="<<urititle>>"] > .tc-tag-label:after {
|
||||
content: ' <<icon>>';
|
||||
}
|
||||
</style>
|
||||
</$list>
|
||||
</$set>
|
||||
\end
|
||||
|
||||
\define linkbody()
|
||||
\whitespace trim
|
||||
<$list filter="""[has[linkstyle]] [has[linkstyle-before]] [has[linkstyle-after]] [has[icon]]""">
|
||||
<$vars tid={{!!title}} icon={{!!icon}}>
|
||||
<<linkstyle>>
|
||||
</$vars>
|
||||
</$list>
|
||||
</$list>
|
||||
\end
|
||||
|
||||
<<linkbody>>
|
||||
|
@@ -1,5 +1,5 @@
|
||||
created: 20230905212811971
|
||||
created: 20230905233707142
|
||||
current-tiddler: GettingStarted
|
||||
modified: 20230905212811971
|
||||
modified: 20230905233707142
|
||||
title: $:/HistoryList
|
||||
type: application/json
|
@@ -1,6 +1,6 @@
|
||||
created: 20230905203427882
|
||||
created: 20230905213139290
|
||||
creator: Octt
|
||||
list:
|
||||
modified: 20230905212506123
|
||||
modified: 20230905233634504
|
||||
modifier: Octt
|
||||
title: $:/StoryList
|
65
Wiki-OcttKB/tiddlers/System/core/macros/_tag.tid
Normal file
65
Wiki-OcttKB/tiddlers/System/core/macros/_tag.tid
Normal file
@@ -0,0 +1,65 @@
|
||||
created: 20230905221226493
|
||||
creator: Octt
|
||||
modified: 20230905221808284
|
||||
modifier: Octt
|
||||
tags: $:/tags/Macro
|
||||
title: $:/core/macros/tag
|
||||
|
||||
\define tag-pill-styles()
|
||||
background-color:$(backgroundColor)$;
|
||||
fill:$(foregroundColor)$;
|
||||
color:$(foregroundColor)$;
|
||||
\end
|
||||
|
||||
<!-- This has no whitespace trim to avoid modifying $actions$. Closing tags omitted for brevity. -->
|
||||
\define tag-pill-inner(tag,icon,colour,fallbackTarget,colourA,colourB,element-tag,element-attributes,actions)
|
||||
\whitespace trim
|
||||
<$vars
|
||||
foregroundColor=<<contrastcolour target:"""$colour$""" fallbackTarget:"""$fallbackTarget$""" colourA:"""$colourA$""" colourB:"""$colourB$""">>
|
||||
backgroundColor=<<__colour__>>
|
||||
>
|
||||
<$element-tag$
|
||||
$element-attributes$
|
||||
class="tc-tag-label tc-btn-invisible"
|
||||
style=<<tag-pill-styles>>
|
||||
>
|
||||
<<__actions__>>
|
||||
<$transclude tiddler=<<__icon__>>/>
|
||||
<$view tiddler=<<__tag__>> field="title" format="text" />
|
||||
</$element-tag$>
|
||||
\end
|
||||
|
||||
\define tag-pill-body(tag,icon,colour,palette,element-tag,element-attributes,actions)
|
||||
\whitespace trim
|
||||
<$macrocall $name="tag-pill-inner"
|
||||
tag=<<__tag__>>
|
||||
icon=<<__icon__>>
|
||||
colour=<<__colour__>>
|
||||
fallbackTarget={{$palette$##tag-background}}
|
||||
colourA={{$palette$##foreground}}
|
||||
colourB={{$palette$##background}}
|
||||
element-tag=<<__element-tag__>>
|
||||
element-attributes=<<__element-attributes__>>
|
||||
actions=<<__actions__>>
|
||||
/>
|
||||
\end
|
||||
|
||||
\define tag-pill(tag,element-tag:"span",element-attributes:"",actions:"")
|
||||
\whitespace trim
|
||||
<span class="tc-tag-list-item" data-tag-title=<<__tag__>>>
|
||||
<$let currentTiddler=<<__tag__>>>
|
||||
<$macrocall $name="tag-pill-body"
|
||||
tag=<<__tag__>>
|
||||
icon={{{ [<currentTiddler>] :cascade[all[shadows+tiddlers]tag[$:/tags/TiddlerIconFilter]!is[draft]get[text]] }}}
|
||||
colour={{{ [<currentTiddler>] :cascade[all[shadows+tiddlers]tag[$:/tags/TiddlerColourFilter]!is[draft]get[text]] }}}
|
||||
palette={{$:/palette}}
|
||||
element-tag=<<__element-tag__>>
|
||||
element-attributes=<<__element-attributes__>>
|
||||
actions=<<__actions__>>/>
|
||||
</$let>
|
||||
</span>
|
||||
\end
|
||||
|
||||
\define tag(tag)
|
||||
{{$tag$||$:/core/ui/TagTemplate}}
|
||||
\end
|
29
Wiki-OcttKB/tiddlers/System/core/ui/_TagTemplate.tid
Normal file
29
Wiki-OcttKB/tiddlers/System/core/ui/_TagTemplate.tid
Normal file
@@ -0,0 +1,29 @@
|
||||
created: 20230905221408185
|
||||
creator: Octt
|
||||
modified: 20230905221551457
|
||||
modifier: Octt
|
||||
title: $:/core/ui/TagTemplate
|
||||
|
||||
\whitespace trim
|
||||
<span class="tc-tag-list-item" data-tag-title=<<currentTiddler>>>
|
||||
<$set name="transclusion" value=<<currentTiddler>>>
|
||||
<$macrocall $name="tag-pill-body"
|
||||
tag=<<currentTiddler>>
|
||||
icon={{{ [<currentTiddler>] :cascade[all[shadows+tiddlers]tag[$:/tags/TiddlerIconFilter]!is[draft]get[text]] }}}
|
||||
colour={{{ [<currentTiddler>] :cascade[all[shadows+tiddlers]tag[$:/tags/TiddlerColourFilter]!is[draft]get[text]] }}}
|
||||
palette={{$:/palette}}
|
||||
element-tag="$button"
|
||||
element-attributes="""popup=<<qualify "$:/state/popup/tag">> dragFilter="[all[current]tagging[]]" tag='span'"""
|
||||
/>
|
||||
<$reveal state=<<qualify "$:/state/popup/tag">> type="popup" position="below" animate="yes" class="tc-drop-down">
|
||||
<$set name="tv-show-missing-links" value="yes">
|
||||
<$transclude tiddler="$:/core/ui/ListItemTemplate"/>
|
||||
</$set>
|
||||
<$list filter="[all[shadows+tiddlers]tag[$:/tags/TagDropdown]!has[draft.of]]" variable="listItem">
|
||||
<$transclude tiddler=<<listItem>>/>
|
||||
</$list>
|
||||
<hr>
|
||||
<$macrocall $name="list-tagged-draggable" tag=<<currentTiddler>>/>
|
||||
</$reveal>
|
||||
</$set>
|
||||
</span>
|
@@ -1,7 +1,7 @@
|
||||
created: 20220920140732083
|
||||
creator: Octt
|
||||
modified: 20230905203501688
|
||||
modified: 20230905232318203
|
||||
modifier: Octt
|
||||
title: $:/state/showeditpreview
|
||||
|
||||
no
|
||||
yes
|
@@ -1,7 +1,7 @@
|
||||
created: 20230109143853256
|
||||
creator: Octt
|
||||
modified: 20230605214245591
|
||||
modified: 20230905220032346
|
||||
modifier: Octt
|
||||
title: $:/state/tab--1498284803
|
||||
|
||||
$:/core/ui/AdvancedSearch/System
|
||||
$:/core/ui/AdvancedSearch/Shadows
|
@@ -1,7 +1,7 @@
|
||||
created: 20230109143853256
|
||||
creator: Octt
|
||||
modified: 20230605214245590
|
||||
modified: 20230905220032345
|
||||
modifier: Octt
|
||||
title: $:/state/advancedsearch/currentTab
|
||||
|
||||
$:/core/ui/AdvancedSearch/System
|
||||
$:/core/ui/AdvancedSearch/Shadows
|
@@ -1,6 +1,6 @@
|
||||
created: 20220920092307479
|
||||
creator: Octt
|
||||
modified: 20230905212736364
|
||||
modified: 20230905233630888
|
||||
modifier: Octt
|
||||
title: $:/state/tab/sidebar--595412856
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
created: 20230114162317662
|
||||
creator: Octt
|
||||
modified: 20230124213732005
|
||||
modified: 20230905221054195
|
||||
modifier: Octt
|
||||
title: $:/state/tree/$:/Styles/1337box/
|
||||
|
||||
hide
|
||||
show
|
@@ -1,7 +1,7 @@
|
||||
created: 20230108193801573
|
||||
creator: Octt
|
||||
modified: 20230905205234182
|
||||
modified: 20230905220515685
|
||||
modifier: Octt
|
||||
title: $:/state/tree/$:/Styles/
|
||||
|
||||
hide
|
||||
show
|
Reference in New Issue
Block a user