OcttKB Cross-Repo Sync (HTML to Raw)

This commit is contained in:
2023-07-23 13:33:31 +00:00
parent 0cfc51da4e
commit 49c7acc7f3
971 changed files with 50 additions and 29 deletions

View File

@ -0,0 +1,7 @@
created: 20230219143059124
creator: Octt
modified: 20230219143100146
modifier: Octt
title: $:/plugins/Gk0Wk/notionpage-covericon/style/icon-size
64px

View File

@ -0,0 +1,7 @@
created: 20230218232319809
creator: Octt
modified: 20230219212058673
modifier: Octt
title: $:/plugins/Gk0Wk/notionpage-covericon/style/cover-height/narrow
250px

View File

@ -0,0 +1,7 @@
created: 20230218232321514
creator: Octt
modified: 20230219212102273
modifier: Octt
title: $:/plugins/Gk0Wk/notionpage-covericon/style/cover-height/wide
250px

View File

@ -0,0 +1,7 @@
created: 20230218232306784
creator: Octt
modified: 20230218232306784
modifier: Octt
title: $:/plugins/Gk0Wk/notionpage-covericon/style/cover-left/narrow
-15px

View File

@ -0,0 +1,7 @@
created: 20230218232304032
creator: Octt
modified: 20230218232304288
modifier: Octt
title: $:/plugins/Gk0Wk/notionpage-covericon/style/cover-left/wide
-21px

View File

@ -0,0 +1,7 @@
created: 20230218232308264
creator: Octt
modified: 20230218232308265
modifier: Octt
title: $:/plugins/Gk0Wk/notionpage-covericon/style/cover-right/narrow
-15px

View File

@ -0,0 +1,7 @@
created: 20230218232302232
creator: Octt
modified: 20230218232302508
modifier: Octt
title: $:/plugins/Gk0Wk/notionpage-covericon/style/cover-right/wide
-21px

View File

@ -0,0 +1,7 @@
created: 20230219143119703
creator: Octt
modified: 20230219143130859
modifier: Octt
title: $:/plugins/Gk0Wk/notionpage-covericon/style/top-offset/narrow
-14px

View File

@ -0,0 +1,15 @@
created: 20230215222519299
creator: Octt
modified: 20230215224927935
modifier: Octt
tags: $:/tags/Macro
title: $:/plugins/kookma/refnotes/macros/footnote
type: text/vnd.tiddlywiki
<!--
Modifications from original:
- Added square brackets enclosing
-->
\define fnote(note)
<span><sup>[</sup><div class="refnotes-tooltip refnotes-footnote"><div class="refnotes-tooltiptext">$note$</div></div><sup>]</sup></span>
\end

View File

@ -0,0 +1,64 @@
caption: Bibliography
created: 20230219102349896
creator: Octt
modified: 20230219102351219
modifier: Octt
tags:
title: $:/plugins/kookma/refnotes/ui/bibtexlibrary
type: text/vnd.tiddlywiki
\import [[$:/plugins/kookma/refnotes/macros/search-ui]]
\define dispEntry()
<$link/>
<$macrocall $name=stretchText text="""
<$view field="bibtex-author"/>. (<$view field="bibtex-year"/>). <$view field="bibtex-title"/>.""" />
\end
\define searchFilter() [has[bibtex-title]search:$(sField)$[$(sTerm)$]]
\define bibLibrary()
\import [[$:/plugins/kookma/refnotes/macros/stretch-text]]
<$vars sField={{{[<searchTid>get[field]] ~[[bibtex-author]]}}} sTerm={{{[<searchTid>get[text]]}}}>
<!-- show hide entry details -->
<div class="tc-search refnotes-library" style="margin:10px 0 0 20px;">
Show and Hide Details: &nbsp;
<$button class="tc-btn-invisible" tooltip="show item details">{{$:/core/images/down-arrow}}
<$list filter="[subfilter<searchFilter>]">
<$action-setfield $tiddler=<<tmpTidDetails>> text=show />
</$list>
</$button>
<$button class="tc-btn-invisible" tooltip="hide item details">{{$:/core/images/up-arrow}}
<$list filter="[subfilter<searchFilter>]">
<$action-deletetiddler $tiddler=<<tmpTidDetails>> />
</$list>
</$button>
</div>
<!-- show the library data -->
<ol>
<$list filter="[subfilter<searchFilter>]">
<li><<dispEntry>></li>
</$list>
</ol>
</$vars>
\end
<!-- interface -->
<div style="margin-bottom:8px;">
<<process-entries "Process New Entries">>
{{$:/plugins/kookma/refnotes/ui/dropzone}}
</div>
<!-- make this optional
[[Bibliography Table]]
-->
<<searchUi>>
<<bibLibrary>>

View File

@ -0,0 +1,32 @@
created: 20180925155320737
creator: Thomas Elmiger
modified: 20230208225527686
modifier: Octt
tags: $:/tags/Stylesheet
title: $:/plugins/telmiger/details/colours.css
/* details and summary colours */
details.tw-details {
background-color: <<colour tiddler-info-tab-background>>;
color: <<colour foreground>>;
}
details.tw-details summary {
background-color: <<colour dropdown-tab-background>>;
}
details.tw-details.notification summary {
background-color: <<colour notification-background>>;
/* TW leaves color undefined/uses foreground */
}
details.tw-details.warning summary {
background-color: #ffbbaf;
color: #000;
}
details.tw-details.success summary {
background-color: #88edc5;
color: #000;
}

View File

@ -0,0 +1,44 @@
created: 20170122140815442
creator: Thomas Elmiger
modified: 20230208225449389
modifier: Octt
tags: $:/tags/Stylesheet
title: $:/plugins/telmiger/details/details.css
/* details and summary */
details.tw-details {
transition: height 1s ease;
padding: 0 0.5em 0 0.66em;
margin-top: 0.66em;
margin-bottom: 0.66em;
}
details.tw-details + details.tw-details {
margin-top: -0.46em;
}
details.tw-details[open] {
padding-bottom: 1em;
}
details.tw-details:not([open]) {
cursor: pointer;
}
details.tw-details > summary {
display: list-item;
margin: 0 -0.5em 0 -0.66em;
padding: 0.2em 0.5em 0.2em 0.66em;
padding-left: 1.76em; /* adjust for indentation */
text-indent: -1.1em;
cursor: pointer;
}
details.tw-details[open] > summary {
margin-bottom: 1em;
}
details.tw-details[open] > *:first-child:not(summary) {
margin-top: 1em;
}

View File

@ -0,0 +1,248 @@
/*\
title: $:/plugins/telmiger/details/details.js
type: application/javascript
module-type: widget
Details widget v 0.8
Will output an HTML 5 <details> section including a <summary>
```
<details>
<summary>This sums it up</summary>
All the details follow here.
</details>
```
|Parameter |Description |h
|summary |Optional text to display as summary. Wins over field (see below). |
|open |Optional initial state, set to "open" to show details on load. Defaults to "". |
|state |An optional TextReference containing the state. Wins over open. |
|field |Optionally, the summary is taken from the field with this name in a given tiddler. Defaults to "title". |
|tiddler |Optional title of a tiddler to watch, connected to field. Defaults to current tiddler. |
|class |Optional CSS classes to be assigned to the details tag. |
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
"use strict";
var Widget = require("$:/core/modules/widgets/widget.js").widget;
var DetailsWidget = function(parseTreeNode,options) {
this.initialise(parseTreeNode,options);
};
/*
Inherit from the base widget class
*/
DetailsWidget.prototype = new Widget();
/*
Render this widget into the DOM
*/
DetailsWidget.prototype.render = function(parent,nextSibling) {
// Save the parent dom node
this.parentDomNode = parent;
// Compute attributes
this.computeAttributes();
// Execute logic
this.execute();
// Create elements
this.detailsDomNode = this.document.createElement("details");
if(this.detailsClass !== "") {
// this.detailsClass += " ";
// this.detailsClass += "tc-details";
this.detailsDomNode.setAttribute("class",this.detailsClass);
}
this.detailsDomNode.setAttribute("class", `${this.detailsClass} tw-details`);
if(this.detailsOpen == "open") {
this.detailsDomNode.setAttribute("open","open");
}
if(this.detailsSummary !== "") {
this.summaryDomNode = this.document.createElement("summary");
// this.summaryDomNode.setAttribute("class","tc-summary");
this.detailsDomNode.appendChild(this.summaryDomNode);
this.summaryDomNode.appendChild(this.document.createTextNode(this.detailsSummary));
}
// register an event listener
/* Maybe this can be reactivated later, see below.
if(this.detailsStateTitle) {
$tw.utils.addEventListeners(this.detailsDomNode,[
{name: "toggle", handlerObject: this, handlerMethod: "handleToggleEvent"},
]);
}
*/
// As iOS mobile browsers lack support of toggle events on details
// we emulate the toggle event using click
if(this.detailsStateTitle && this.summaryDomNode) {
$tw.utils.addEventListeners(this.summaryDomNode,[
{name: "click", handlerObject: this, handlerMethod: "handleToggleEvent"},
]);
} else {
if(this.detailsStateTitle) {
$tw.utils.addEventListeners(this.detailsDomNode,[
{name: "click", handlerObject: this, handlerMethod: "handleToggleEvent"},
]);
}
}
// Insert the details into the DOM and render any children
this.parentDomNode.insertBefore(this.detailsDomNode,nextSibling);
this.renderChildren(this.detailsDomNode,null);
this.domNodes.push(this.detailsDomNode);
};
/*
Retrieve the value of the summary
*/
DetailsWidget.prototype.getSummary = function() {
var summary = "";
if(this.summaryTitle === "Tiddler not found" && this.summaryField === "") {
// nothing defined: leave empty
summary = "";
} else {
// tiddler defined? use defined field or title
if(this.myTiddler) {
if(this.summaryField === "title" || this.summaryField === "") {
summary = this.summaryTitle;
} else {
if(this.summaryField === "text") {
// getTiddlerText() triggers lazy loading of skinny tiddlers
summary = this.wiki.getTiddlerText(this.summaryTitle);
} else {
summary = this.myTiddler.fields[this.summaryField];
}
}
} else {
if(this.summaryField !== "" && this.summaryField !== "text") {
// try defined field in current tiddler
var tiddler = this.wiki.getTiddler(this.getVariable("currentTiddler"));
summary = tiddler.fields[this.summaryField];
} else {
summary = "";
}
}
}
return summary;
};
/*
Retrieve the value of the state text reference
*/
DetailsWidget.prototype.getStateFromReference = function() {
var state = this.detailsStateTitle ? this.wiki.getTextReference(this.detailsStateTitle,"",this.getVariable("currentTiddler")) : "";
return state;
};
/*
Check all open signals, state fields/tiddlers get priority
*/
DetailsWidget.prototype.getOpenState = function() {
var result = "";
if((this.detailsOpenDefault !== "" && this.detailsOpenDefault !== "no")
|| this.detailsState === "open") {
result = "open";
}
if(this.detailsStateTitle !=="" && this.detailsState !== "open") {
result = "";
}
return result;
};
/*
Update the state text reference after click event
*/
DetailsWidget.prototype.updateState = function(openState) {
var fieldValue = "false";
var currentTiddler = this.getVariable("currentTiddler");
// get the title for the (existing/new) tiddler
var tr = $tw.utils.parseTextReference(this.detailsStateTitle);
var tidTitle = tr.title || currentTiddler;
// is it an existing state tiddler?
var isStateTiddler = (tr.title === this.detailsStateTitle);
var hasStateTiddler = this.wiki.tiddlerExists(tr.title);
var currentStateTiddler = (tr.title === currentTiddler);
if(isStateTiddler || hasStateTiddler || (currentStateTiddler && tr.field !== "text")) {
// Set the state field (but never overwrite the current tiddlers text field
this.wiki.setText(tidTitle,tr.field,tr.index,openState);
} else {
if(!hasStateTiddler && tidTitle !== currentTiddler) {
this.createTiddler(tidTitle);
this.wiki.setText(tidTitle,tr.field,tr.index,openState);
} else {
console.log ("Something went wrong in updateState");
}
}
};
/*
Create a tiddler with a title only
*/
DetailsWidget.prototype.createTiddler = function(tidTitle) {
this.wiki.addTiddler(new $tw.Tiddler(
this.wiki.getCreationFields(),
this.wiki.getModificationFields(),
{
title: tidTitle,
tags: []
}
));
};
/*
Set openState according to click
*/
DetailsWidget.prototype.handleToggleEvent = function(event) {
// check if an open attribute is present
var newState = this.detailsDomNode.open ? "" : "open";
// update only, if the node has a new state
if(newState !== this.detailsState) {
this.updateState(newState);
}
};
/*
Compute the internal state of the widget
*/
DetailsWidget.prototype.execute = function() {
// Get the parameters from the attributes
var tryTiddler = this.getAttribute("tiddler");
this.myTiddler = this.wiki.getTiddler(tryTiddler);
this.summaryTitle = this.myTiddler ? tryTiddler : "Tiddler not found";
this.summaryField = this.getAttribute("field","");
this.detailsSummary = this.getAttribute("summary") || this.getSummary();
this.detailsStateTitle = this.getAttribute("state","");
this.detailsState = this.getStateFromReference();
this.detailsOpenDefault = this.getAttribute("open","");
this.detailsOpen = this.getOpenState();
this.detailsClass = this.getAttribute("class","");
// Construct the child widgets
this.makeChildWidgets();
};
/*
Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
*/
DetailsWidget.prototype.refresh = function(changedTiddlers) {
var changedAttributes = this.computeAttributes();
if(changedAttributes.tiddler || changedAttributes.field || changedAttributes.summary || changedAttributes.state || changedAttributes.open || changedAttributes["class"]) {
this.refreshSelf();
return true;
} else {
var refreshed = false;
var testState = this.getStateFromReference();
if(testState !== this.detailsState) {
// state change
this.refreshSelf();
refreshed = true;
}
return this.refreshChildren(changedTiddlers) || refreshed;
}
};
exports.details = DetailsWidget;
})();

View File

@ -0,0 +1,8 @@
created: 20170124173619910
creator: Thomas Elmiger
modified: 20230208230512427
modifier: Octt
module-type: widget
tags: Plugins
title: $:/plugins/telmiger/details/details.js
type: application/javascript

View File

@ -0,0 +1,27 @@
created: 20230108212945823
modified: 20230108212950099
title: $:/plugins/tiddlywiki/github-fork-ribbon/usage
Copy appropriate chunks on a new tiddler and tag it `$:/tags/PageControls`. Name of the new tiddler does not matter. Only the tag matters.
```
<!-- TOP RIGHT RIBBON: START COPYING HERE -->
<div class="github-fork-ribbon-wrapper right"><div class="github-fork-ribbon"><a href="https://github.com/simonwhitaker/github-fork-ribbon-css">Fork me on ~GitHub</a></div>
</div>
<!-- TOP RIGHT RIBBON: END COPYING HERE -->
<!-- TOP LEFT RIBBON: START COPYING HERE -->
<div class="github-fork-ribbon-wrapper left"><div class="github-fork-ribbon"><a href="https://github.com/simonwhitaker/github-fork-ribbon-css">Fork me on ~GitHub</a></div>
</div>
<!-- TOP LEFT RIBBON: END COPYING HERE -->
<!-- BOTTOM RIGHT RIBBON: START COPYING HERE -->
<div class="github-fork-ribbon-wrapper right-bottom"><div class="github-fork-ribbon"><a href="https://github.com/simonwhitaker/github-fork-ribbon-css">Fork me on ~GitHub</a></div>
</div>
<!-- BOTTOM RIGHT RIBBON: END COPYING HERE -->
<!-- BOTTOM LEFT RIBBON: START COPYING HERE -->
<div class="github-fork-ribbon-wrapper left-bottom"><div class="github-fork-ribbon"><a href="https://github.com/simonwhitaker/github-fork-ribbon-css">Fork me on ~GitHub</a></div>
</div>
<!-- BOTTOM LEFT RIBBON: END COPYING HERE -->
```

View File

@ -0,0 +1,58 @@
caption: {{$:/plugins/tiddlywiki/qrcode/icon}} QR code
created: 20221104182610249
description: Generate QR code for this tiddler
modified: 20221104182610249
short-caption: QR code
tags: $:/tags/ViewToolbar
title: $:/plugins/tiddlywiki/qrcode/ViewToolbarButton
\whitespace trim
<span class="tc-popup-keep">
<$button popup=<<qualify "$:/state/popup/qrcode">> tooltip={{$:/plugins/tiddlywiki/qrcode/ViewToolbarButton!!description}} aria-label={{$:/plugins/tiddlywiki/qrcode/ViewToolbarButton!!short-caption}} class=<<tv-config-toolbar-class>> class=<<tv-config-toolbar-class>> selectedClass="tc-selected">
<$list filter="[<tv-config-toolbar-icons>match[yes]]">
{{$:/plugins/tiddlywiki/qrcode/icon}}
</$list>
<$list filter="[<tv-config-toolbar-text>match[yes]]">
<span class="tc-btn-text">
<$text text={{$:/plugins/tiddlywiki/qrcode/ViewToolbarButton!!short-caption}}/>
</span>
</$list>
</$button>
</span>
<$reveal state=<<qualify "$:/state/popup/qrcode">> type="popup" position="below" animate="yes">
<div class="tc-drop-down">
{{$:/plugins/tiddlywiki/qrcode/ViewToolbarButton||description}}
<$set name="tv-config-toolbar-icons" value="yes">
<$set name="tv-config-toolbar-text" value="yes">
<$set name="tv-config-toolbar-class" value="tc-btn-invisible">
<$set name="targetTiddler" value=<<currentTiddler>>>
<$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewToolbarButton/QRcode]!has[draft.of]]">
<$button popup=<<qualify "$:/state/popup/qrcode/type">> class="tc-btn-invisible" selectedClass="tc-selected">
<$action-sendmessage $message="tm-modal" $param=<<currentTiddler>> currentTiddler=<<targetTiddler>>/>
<$transclude field="caption" mode="inline"/>
</$button>
</$list>
</$set>
</$set>
</$set>
</$set>
</div>
</$reveal>

View File

@ -0,0 +1,28 @@
created: 20230127155457773
creator: Octt
modified: 20230127155554126
modifier: Octt
tags: $:/tags/Macro
title: $:/plugins/tobibeer/inc/macro
\define tb-inc(tiddler)
<!-- <div class="tb-inc" title="""transcluded tiddler '$tiddler$'"""> -->
<div class="tb-inc">
<$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,15 @@
created: 20230127155331514
creator: Octt
modified: 20230127155404686
modifier: Octt
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>