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,13 +0,0 @@
|
||||
created: 20240129160009781
|
||||
creator: Octt
|
||||
list-before: $:/core/ui/Buttons/more-page-actions
|
||||
modified: 20240129165212023
|
||||
modifier: Octt
|
||||
tags: $:/tags/PageControls
|
||||
title: $:/Apps/MagicBox/Buttons/Open-MagicBox
|
||||
|
||||
<$button tooltip="Open MagicBox" class="tc-btn-invisible">
|
||||
🪟️
|
||||
<!--<$action-navigate $to="$:/Apps/MagicBox/Overlay"/>-->
|
||||
{{$:/Apps/MagicBox/Shortcuts/Open-MagicBox}}
|
||||
</$button>
|
@@ -0,0 +1,21 @@
|
||||
created: 20240129160009781
|
||||
creator: Octt
|
||||
list-before: $:/core/ui/Buttons/more-page-actions
|
||||
modified: 20240129223619782
|
||||
modifier: Octt
|
||||
tags: $:/tags/PageControls
|
||||
title: $:/Apps/MagicBox/Buttons/Toggle-MagicBox
|
||||
|
||||
\define label() Toggle MagicBox
|
||||
\whitespace trim
|
||||
<$button tooltip=<<label>> class=<<tv-config-toolbar-class>>>
|
||||
<$if value=<<tv-config-toolbar-icons>> match="yes">
|
||||
🪟️
|
||||
</$if>
|
||||
<$if value=<<tv-config-toolbar-text>> match="yes">
|
||||
<span class="tc-btn-text">
|
||||
<$text text=<<label>>/>
|
||||
</span>
|
||||
</$if>
|
||||
{{$:/Apps/MagicBox/Shortcuts/Toggle-MagicBox}}
|
||||
</$button>
|
@@ -1,13 +0,0 @@
|
||||
created: 20240129163942191
|
||||
creator: Octt
|
||||
key: ((Open-MagicBox))
|
||||
modified: 20240129170319526
|
||||
modifier: Octt
|
||||
tags: $:/tags/KeyboardShortcut
|
||||
title: $:/Apps/MagicBox/Shortcuts/Open-MagicBox
|
||||
|
||||
\whitespace trim
|
||||
<$navigator story="$:/StoryList" history="$:/HistoryList">
|
||||
<$action-navigate $to="$:/Apps/MagicBox/Overlay" $scroll="yes"/>
|
||||
<!--<$action-sendmessage $message="tm-focus-selector" $param="""[data-tiddler-title="$:/Apps/MagicBox/Overlay"] ._input""" preventScroll="true"/>-->
|
||||
</$navigator>
|
@@ -0,0 +1,18 @@
|
||||
created: 20240129163942191
|
||||
creator: Octt
|
||||
key: ((Toggle-MagicBox))
|
||||
modified: 20240129232038489
|
||||
modifier: Octt
|
||||
tags: $:/tags/KeyboardShortcut
|
||||
title: $:/Apps/MagicBox/Shortcuts/Toggle-MagicBox
|
||||
|
||||
\define appTiddler() $:/Apps/MagicBox/Overlay
|
||||
\whitespace trim
|
||||
<$navigator story="$:/StoryList" history="$:/HistoryList">
|
||||
<$if not value={{{[[$:/StoryList]contains<appTiddler>]}}}>
|
||||
<$action-navigate $to=<<appTiddler>> $scroll="yes"/>
|
||||
</$if><$else>
|
||||
<$action-sendmessage $message="tm-close-tiddler" $param=<<appTiddler>>/>
|
||||
</$else>
|
||||
<!--<$action-sendmessage $message="tm-focus-selector" $param="""[data-tiddler-title="$:/Apps/MagicBox/Overlay"] ._input""" preventScroll="true"/>-->
|
||||
</$navigator>
|
24
Wiki-OcttKB/tiddlers/System/Apps/MagicBox/_readme.tid
Normal file
24
Wiki-OcttKB/tiddlers/System/Apps/MagicBox/_readme.tid
Normal file
@@ -0,0 +1,24 @@
|
||||
created: 20240129220613684
|
||||
creator: Octt
|
||||
modified: 20240129225200513
|
||||
modifier: Octt
|
||||
tags:
|
||||
title: $:/Apps/MagicBox/readme
|
||||
|
||||
This currently work-in-progress, experimental applet provides a "magic box", allowing for wiki content to be searched in a visually effective way: a full-screen interface complete with previews and covers.
|
||||
|
||||
* Thread: [[https://talk.tiddlywiki.org/t/wiki-search-grid-with-covers-and-content-preview-prototype/9003]]
|
||||
|
||||
Install in other wiki by drag-and-drop:
|
||||
|
||||
# <$draggable tag="button" filter="[[$:/Apps/MagicBox]] [prefix[$:/Apps/MagicBox/]] [tag[$:/Apps/MagicBox]] [tag[$:/Apps/MagicBox/Attached]]">
|
||||
All applet files
|
||||
</$draggable>
|
||||
|
||||
# (Required dependency) <$draggable tag="button" filter="[[$:/plugins/ebalster/condition]]">
|
||||
`ebalster/condition` plugin
|
||||
</$draggable>
|
||||
|
||||
# (Optional dependency, required to show content) <$draggable tag="button" filter="[[$:/plugins/danielo515/ContextPlugin/Stylesheet/results]] [[$:/plugins/danielo515/ContextPlugin/widgets/context.js]]">
|
||||
Core files of `danielo515/ContextPlugin` plugin, modified to allow `tabindex=-1`
|
||||
</$draggable>
|
@@ -3,13 +3,13 @@
|
||||
.width: 33
|
||||
created: 20240129095948486
|
||||
creator: Octt
|
||||
modified: 20240129171354932
|
||||
modified: 20240129234018781
|
||||
modifier: Octt
|
||||
tags: $:/Apps
|
||||
title: $:/Apps/MagicBox
|
||||
|
||||
\define SearchResults(fields)
|
||||
<$list filter="[!is[system]search:$fields${$:/temp/MagicBox!!.input}sort[title]limit[150]]">
|
||||
<$list filter="[!is[system]search:$fields${$:/temp/MagicBox!!.input}sort[title]limit[100]]">
|
||||
<div class=`MagicBoxApplet result ${[{$:/Apps/MagicBox!!.type}]}$` style=`background-image: url("${[{!!page-cover}]}$");`>
|
||||
<$button class="tc-btn-invisible">
|
||||
<$action-sendmessage $message="tm-close-tiddler" $param=<<closeOnChoose>>/>
|
||||
@@ -19,7 +19,7 @@ title: $:/Apps/MagicBox
|
||||
<$link to={{!!title}} tabindex="-1"/>
|
||||
</h3>
|
||||
<$if value={{$:/Apps/MagicBox!!.context}}>
|
||||
<$context term={{$:/temp/MagicBox!!.input}} $tabindex="-1"/>
|
||||
<$context term={{$:/temp/MagicBox!!.input}} tabindex="-1"/>
|
||||
</$if>
|
||||
<!--</$link>-->
|
||||
</$button>
|
||||
@@ -28,11 +28,14 @@ title: $:/Apps/MagicBox
|
||||
\end
|
||||
|
||||
<div class="MagicBoxApplet options">
|
||||
<$edit-text tiddler="$:/temp/MagicBox" field=".input" class="_input" placeholder="Search..." tabindex="0"/>
|
||||
<$checkbox field=".context" checked="1">Context</$checkbox>
|
||||
|
||||
<!--<$edit-text field=".type" placeholder="Display Type"/>-->
|
||||
<$checkbox field=".type" checked="grid" unchecked="masonry">Fixed Grid</$checkbox>
|
||||
<$range field=".width" min="24" max="49"/>{{!!.width}}%
|
||||
|
||||
<$range field=".width" min="19" max="49"/>{{!!.width}}
|
||||
|
||||
<$edit-text tiddler="$:/temp/MagicBox" field=".input" class="_input" placeholder="Search..." tabindex="0"/>
|
||||
</div>
|
||||
|
||||
<$action-sendmessage $message="tm-focus-selector" $param=".MagicBoxApplet.options > ._input"/>
|
||||
@@ -42,6 +45,12 @@ title: $:/Apps/MagicBox
|
||||
} catch(e) { $OcttKB.ErrAtLine(e) }'>><<script off>>
|
||||
|
||||
<style>
|
||||
@media (max-width: 500px) {
|
||||
.MagicBoxApplet.result {
|
||||
min-width: calc(({{!!.width}}% * 2) - 16px) !important;
|
||||
max-width: calc(({{!!.width}}% * 3) - 16px) !important;
|
||||
}
|
||||
}
|
||||
.MagicBoxApplet.result {
|
||||
margin: 8px;
|
||||
display: inline-block;
|
||||
@@ -87,6 +96,16 @@ title: $:/Apps/MagicBox
|
||||
</style>
|
||||
|
||||
<$if value={{{ [{$:/temp/MagicBox!!.input}split[]count[]compare:integer:gteq[3]then[1]] }}}>
|
||||
<$if value={{{ [!is[system]search:title{$:/temp/MagicBox!!.input}then[]else[1]] }}}>
|
||||
<$button>
|
||||
<$action-sendmessage $message="tm-close-tiddler" $param=<<closeOnChoose>>/>
|
||||
<$action-sendmessage $message="tm-new-tiddler" title={{$:/temp/MagicBox!!.input}} />
|
||||
Create as New Tiddler
|
||||
</$button>
|
||||
</$if>
|
||||
|
||||
<div><br/><hr/><br/></div>
|
||||
|
||||
Title or Caption matches:
|
||||
<br/><<SearchResults "title,caption">>
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
created: 20240129171445021
|
||||
created: 20240130004734701
|
||||
current-tiddler: GettingStarted
|
||||
modified: 20240129171445021
|
||||
modified: 20240130004734701
|
||||
title: $:/HistoryList
|
||||
type: application/json
|
@@ -1,7 +0,0 @@
|
||||
status: complete
|
||||
title: $:/Import
|
||||
|
||||
The following tiddlers were imported:
|
||||
|
||||
# [[$:/config/ShortcutInfo/Open-MagicBox]]
|
||||
# [[$:/Apps/MagicBox/Shortcuts/Open-MagicBox]]
|
@@ -1,6 +1,6 @@
|
||||
created: 20240129132106430
|
||||
created: 20240129215525933
|
||||
creator: Octt
|
||||
list:
|
||||
modified: 20240129171406542
|
||||
modified: 20240130004259074
|
||||
modifier: Octt
|
||||
title: $:/StoryList
|
@@ -0,0 +1,7 @@
|
||||
created: 20240129223645518
|
||||
creator: Octt
|
||||
modified: 20240129223645518
|
||||
modifier: Octt
|
||||
title: $:/config/PageControlButtons/Visibility/$:/plugins/tiddlywiki/markdown/new-markdown-button
|
||||
|
||||
hide
|
@@ -1,4 +0,0 @@
|
||||
created: 20240129164312864
|
||||
modified: 20240129164319981
|
||||
tags:
|
||||
title: $:/config/ShortcutInfo/Open-MagicBox
|
@@ -0,0 +1,6 @@
|
||||
created: 20240129164312864
|
||||
creator: Octt
|
||||
modified: 20240129225034425
|
||||
modifier: Octt
|
||||
tags: $:/Apps/MagicBox/Attached
|
||||
title: $:/config/ShortcutInfo/Toggle-MagicBox
|
@@ -1,7 +1,7 @@
|
||||
created: 20220920161126651
|
||||
creator: Octt
|
||||
modified: 20231110115023937
|
||||
modified: 20240129184006474
|
||||
modifier: Octt
|
||||
title: $:/config/AnimationDuration
|
||||
|
||||
80
|
||||
60
|
@@ -1,7 +0,0 @@
|
||||
created: 20240129165246939
|
||||
creator: Octt
|
||||
modified: 20240129165246939
|
||||
modifier: Octt
|
||||
title: $:/config/shortcuts/Open-MagicBox
|
||||
|
||||
ctrl-O
|
@@ -0,0 +1,7 @@
|
||||
created: 20240129165246939
|
||||
creator: Octt
|
||||
modified: 20240129183740425
|
||||
modifier: Octt
|
||||
title: $:/config/shortcuts/Toggle-MagicBox
|
||||
|
||||
ctrl-O
|
@@ -2,6 +2,7 @@
|
||||
title: $:/core/modules/widgets/danielo/context-widget.js
|
||||
type: application/javascript
|
||||
module-type: widget
|
||||
OcttKB-Note: added tabindex attribute.
|
||||
|
||||
Edit-text widget
|
||||
|
||||
@@ -39,13 +40,13 @@ contextWidget.prototype.render = function(parent,nextSibling) {
|
||||
var matches = this.executeRegexp();
|
||||
if(matches.length > 0){
|
||||
this.domNode = this.document.createElement(this.element);
|
||||
this.domNode.tabindex = this.tabindex;
|
||||
this.domNode.setAttribute("tabindex", this.tabindex);
|
||||
this.domNode.className="tw-context";
|
||||
this.composeResults( matches ); //this appends to domNode
|
||||
// Insert element
|
||||
parent.insertBefore(this.domNode,nextSibling);
|
||||
this.renderChildren(this.domNode,null);
|
||||
this.domNodes.push(this.domNode);
|
||||
this.domNodes.push(this.domNode);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -64,7 +65,7 @@ contextWidget.prototype.execute = function() {
|
||||
this.after = this.getAttribute("after",this.contextLength);
|
||||
this.maxMatches = this.getAttribute("maxMatches",10);
|
||||
this.element = this.getAttribute("element","pre");
|
||||
this.tabindex = this.getAttribute("tabindex");
|
||||
this.tabindex = this.getAttribute("tabindex");
|
||||
this.makeChildWidgets();
|
||||
};
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
created: 20140418153435777
|
||||
creator: danielo
|
||||
modified: 20240129171317600
|
||||
modified: 20240129224755106
|
||||
modifier: Octt
|
||||
module-type: widget
|
||||
title: $:/plugins/danielo515/ContextPlugin/widgets/context.js
|
||||
|
@@ -1,6 +1,6 @@
|
||||
created: 20220920140732083
|
||||
creator: Octt
|
||||
modified: 20240129100429521
|
||||
modified: 20240129223326435
|
||||
modifier: Octt
|
||||
title: $:/state/showeditpreview
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
created: 20230109143853256
|
||||
creator: Octt
|
||||
modified: 20240129010520350
|
||||
modified: 20240129215548628
|
||||
modifier: Octt
|
||||
title: $:/state/tab--1498284803
|
||||
|
||||
$:/core/ui/AdvancedSearch/Shadows
|
||||
$:/core/ui/AdvancedSearch/Filter
|
@@ -1,7 +1,7 @@
|
||||
created: 20220920090405977
|
||||
creator: Octt
|
||||
modified: 20240129165232809
|
||||
modified: 20240129230306596
|
||||
modifier: Octt
|
||||
title: $:/state/tab-1749438307
|
||||
|
||||
$:/core/ui/ControlPanel/KeyboardShortcuts
|
||||
$:/core/ui/ControlPanel/Appearance
|
@@ -1,7 +1,7 @@
|
||||
created: 20230109143853256
|
||||
creator: Octt
|
||||
modified: 20240129010520349
|
||||
modified: 20240129215548626
|
||||
modifier: Octt
|
||||
title: $:/state/advancedsearch/currentTab
|
||||
|
||||
$:/core/ui/AdvancedSearch/Shadows
|
||||
$:/core/ui/AdvancedSearch/Filter
|
@@ -0,0 +1,7 @@
|
||||
created: 20240129230328326
|
||||
creator: Octt
|
||||
modified: 20240129230338052
|
||||
modifier: Octt
|
||||
title: $:/state/plugin-info-1162058394-$:/plugins/felixhayashi/hotzone---732013664
|
||||
|
||||
Configuration
|
@@ -1,7 +1,7 @@
|
||||
created: 20230926065207438
|
||||
creator: Octt
|
||||
modified: 20230927063919442
|
||||
modified: 20240129220635867
|
||||
modifier: Octt
|
||||
title: $:/state/plugin-info-1867135918-$:/plugins/btheado/BrowserStorage--473245636
|
||||
|
||||
contents
|
||||
readme
|
@@ -1,6 +1,6 @@
|
||||
created: 20230926062532938
|
||||
creator: Octt
|
||||
modified: 20230927064016618
|
||||
modified: 20240129220638368
|
||||
modifier: Octt
|
||||
title: $:/state/plugin-info-1867135918-$:/plugins/btheado/BrowserStorage
|
||||
|
||||
|
@@ -0,0 +1,7 @@
|
||||
created: 20240129220642063
|
||||
creator: Octt
|
||||
modified: 20240129220642063
|
||||
modifier: Octt
|
||||
title: $:/state/plugin-info-1867135918-$:/plugins/danielo515/2click2edit--1015749129
|
||||
|
||||
contents
|
@@ -0,0 +1,7 @@
|
||||
created: 20240129220639389
|
||||
creator: Octt
|
||||
modified: 20240129220643686
|
||||
modifier: Octt
|
||||
title: $:/state/plugin-info-1867135918-$:/plugins/danielo515/2click2edit
|
||||
|
||||
no
|
@@ -0,0 +1,7 @@
|
||||
created: 20240129221643958
|
||||
creator: Octt
|
||||
modified: 20240129221653446
|
||||
modifier: Octt
|
||||
title: $:/state/plugin-info-1867135918-$:/plugins/ebalster/condition---1294715929
|
||||
|
||||
readme
|
@@ -0,0 +1,7 @@
|
||||
created: 20240129221641393
|
||||
creator: Octt
|
||||
modified: 20240129221654922
|
||||
modifier: Octt
|
||||
title: $:/state/plugin-info-1867135918-$:/plugins/ebalster/condition
|
||||
|
||||
no
|
@@ -1,6 +1,6 @@
|
||||
created: 20220920092307479
|
||||
creator: Octt
|
||||
modified: 20240129160508199
|
||||
modified: 20240129223648813
|
||||
modifier: Octt
|
||||
title: $:/state/tab/sidebar--595412856
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
created: 20230817233312379
|
||||
creator: Octt
|
||||
modified: 20240129171402153
|
||||
modified: 20240129234150066
|
||||
modifier: Octt
|
||||
title: $:/state/toc/$:/ToC-$:/Apps--1697730578
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
created: 20230817233308156
|
||||
creator: Octt
|
||||
modified: 20240129161429270
|
||||
modified: 20240129215819354
|
||||
modifier: Octt
|
||||
title: $:/state/toc/$:/ToC-$:/Tools--1697730578
|
||||
|
||||
|
@@ -0,0 +1,7 @@
|
||||
created: 20240129224805142
|
||||
creator: Octt
|
||||
modified: 20240129224805142
|
||||
modifier: Octt
|
||||
title: $:/state/toc/$:/ToC/$:/Apps-$:/Apps/MagicBox--1697730578
|
||||
|
||||
open
|
@@ -1,6 +1,6 @@
|
||||
created: 20240129165309464
|
||||
creator: Octt
|
||||
modified: 20240129165309464
|
||||
modified: 20240129231142511
|
||||
modifier: Octt
|
||||
title: $:/state/tree/$:/Apps/MagicBox/Shortcuts/
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
created: 20230227072955115
|
||||
creator: Octt
|
||||
modified: 20230925173912043
|
||||
modified: 20240129222612819
|
||||
modifier: Octt
|
||||
title: $:/state/tree/$:/Octt/
|
||||
|
||||
|
Reference in New Issue
Block a user