OcttKB Cross-Repo Sync (HTML to Raw)

This commit is contained in:
octospacc 2023-11-03 22:10:11 +00:00
parent c93c5a6f48
commit 8a859c31c8
38 changed files with 187 additions and 38 deletions

View File

@ -0,0 +1,58 @@
/*\
title: $:/plugins/danielo515/2click2edit/ClickListener.js
type: application/javascript
module-type: widget
This widgets adds an double click event listener to its parent
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
"use strict";
var Widget = require("$:/core/modules/widgets/widget.js").widget;
var ClickListener = function(parseTreeNode,options) {
this.initialise(parseTreeNode,options);
};
/*
Inherit from the base widget class
*/
ClickListener.prototype = new Widget();
/*
Render this widget into the DOM
*/
ClickListener.prototype.render = function(parent,nextSibling) {
this.parentDomNode = parent;
this.execute();
var self = this;
/*Since the event listener have been added to the parent, the "this" property is pointing to the
wrong object, we should call our edit function with our widget object set as the this property.*/
parent.addEventListener("dblclick",function(event){self.editTiddler.call(self,event)});
};
ClickListener.prototype.editTiddler = function(event) {
this.dispatchEvent({type: "tm-edit-tiddler", param: this.getVariable("currentTiddler")});
};
/*
Compute the internal state of the widget
*/
ClickListener.prototype.execute = function() {
};
/*
Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
*/
ClickListener.prototype.refresh = function(changedTiddlers) {
return false;
};
exports.click = ClickListener;
})();

View File

@ -0,0 +1,3 @@
module-type: widget
title: $:/plugins/danielo515/2click2edit/ClickListener.js
type: application/javascript

View File

@ -0,0 +1,7 @@
title: $:/plugins/danielo515/2click2edit/readme
This plugin adds the ability to edit tiddlers by double clicking on its body.
Just try to edit any tiddler shown here by double clicking on it.
This can be considered a fast solution. It is only to fill the gap until TiddlyWiki adds support
for it officially.

View File

@ -0,0 +1,5 @@
tags: $:/tags/ViewTemplate
title: $:/plugins/danielo515/2click2edit/ui/ViewTemplate
type: text/vnd.tiddlywiki
<$click>

View File

@ -0,0 +1,13 @@
{
"bag": "default",
"revision": "0",
"version": "0.1",
"title": "$:/plugins/danielo515/2click2edit",
"source": "https://github.com/danielo515/TW5-2click2edit",
"plugin-type": "plugin",
"list": "readme",
"description": "double click to edit tiddlers",
"dependents": "",
"core-version": ">=5.1.0",
"author": "Danielo Rodriguez"
}

View File

@ -1,8 +1,8 @@
created: 20221110145611678
creator: Octt
modified: 20231029001426443
modified: 20231103214720248
modifier: Octt
tags: Development Internet $:/i18n:en
tags: Development $:/i18n:en Web
title: JavaScript
''JavaScript'', or "JS", is an high-level programming language. It constitutes a core technology of the Web, sitting optionally alongside HTML and CSS. In recent years, it has gotten more and more popular even for desktop app and backend development.
@ -21,6 +21,7 @@ title: JavaScript
* [["Illegal invocation" errors in JavaScript|https://mtsknn.fi/blog/illegal-invocations-in-js/]] --- //The error is thrown when calling a function whose `this` keyword isn't referring to the object where it originally did (when the context of the function is lost)//
* [[Does JavaScript have a method like "range()" to generate a range within the supplied bounds?|https://stackoverflow.com/questions/3895478/does-javascript-have-a-method-like-range-to-generate-a-range-within-the-supp]] --- `[...Array(5).keys()]`
* [[Array.prototype.splice()|https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/splice]] --- //changes the contents of an array by removing or replacing existing elements and/or adding new elements in place//
* [[Listen for triple clicks in JavaScript|https://stackoverflow.com/questions/6480060/how-do-i-listen-for-triple-clicks-in-javascript#6480113]]
!!! ''Tools''

View File

@ -0,0 +1,10 @@
created: 20231103211923238
creator: Octt
modified: 20231103212152136
modifier: Octt
tags:
title: New
<<^wikipediaframe Compiler>>
* <<linkdescgit Emscripten"https://github.com/emscripten-core/emscripten" "An LLVM-to-WebAssembly Compiler" "https://github.com/emscripten-core/emscripten">>

View File

@ -1,6 +1,6 @@
created: 20220923110724649
creator: Octt
modified: 20231102105034497
modified: 20231103220933272
modifier: Octt
tags: Gaming Nintendo NDS Console $:/i18n:en Handheld
title: Nintendo DS
@ -15,10 +15,14 @@ title: Nintendo DS
...WIP
* DeSmuMe
** * https://github.com/44670/desmume-wasm
* [[DeSmuMe|https://desmume.org/]] --- for some uses, still the most accurate and flexible NDS emulator, with better x86 support (but poor ARM performance) --- <<[# Git"https://github.com/TASEmulators/desmume">>
** https://github.com/44670/desmume-wasm
* [[NooDS|https://github.com/Hydr8gon/NooDS]] --- //A (hopefully!) speedy DS emulator.//
!!! Tools
* [[dlditool|https://github.com/devkitPro/dstools/tree/master/src/dlditool]] --- //Dynamically Linked Disk Interface patch tool// for NDS homebrew ROMs
!!! Development
* (WIP) [[NDS-Homebrew-Development|https://github.com/jdriselvato/NDS-Homebrew-Development]] --- //research for developing on the Nintendo DS//

View File

@ -1,6 +1,6 @@
created: 20230207213320932
creator: Octt
modified: 20231102235121958
modified: 20231103212334824
modifier: Octt
tags: Microsoft Proprietary OS
title: Windows
@ -39,3 +39,4 @@ title: Windows
** [[TweakUIX|https://www.builtbybel.com/apps/tweak-uix]] --- //Tweak UI Replica// --- [[[Git|https://github.com/builtbybel/TweakUIX]]]
* [[Wallpaper Engine|https://wallpaperengine.io/]] --- //Use stunning live wallpapers on your Windows desktop// --- [[[Steampowered|https://store.steampowered.com/app/431960/Wallpaper_Engine/]]]
* [[Winaero Tweaker|https://winaerotweaker.com/]] --- //Tweaking normally inaccessible UI features on modern Windows//
* [[Windows Terminal|https://github.com/microsoft/terminal]] --- //The new Windows Terminal and the original Windows console host, all in the same place!//

View File

@ -1,7 +1,7 @@
Enabled: 0
created: 20230208220901786
creator: Octt
modified: 20230920154423649
modified: 20231103214558443
modifier: Octt
tags: $:/GlobalOption
title: $:/OcttKB/Config/LargeSidebar.ui

View File

@ -0,0 +1,15 @@
Enabled: 0
created: 20231103212710757
creator: Octt
modified: 20231103220127382
modifier: Octt
tags: $:/GlobalOption
title: $:/OcttKB/Config/TripleClickEdit
<$checkbox
field="Enabled"
checked="1"
unchecked="0"
>
Triple-Click to Edit
</$checkbox>

View File

@ -1,6 +1,6 @@
created: 20230124112022156
creator: Octt
modified: 20230429202157475
modified: 20231103220122034
modifier: Octt
tags: $:/tags/ViewTemplate
title: $:/Styles/View/9-99-Hacks
@ -32,3 +32,7 @@ if ('$(Enabled)$' == 1) {
<$set name=Enabled value={{$:/OcttKB/Config/AiLinks.ui!!Enabled}}>
<<AiLinks>>
</$set>
<$list filter="[{$:/OcttKB/Config/TripleClickEdit!!Enabled}compare:number:eq[1]]">
<$tripleclickedit/>
</$list>

View File

@ -1,5 +1,5 @@
created: 20231103002257153
created: 20231103221004887
current-tiddler: GettingStarted
modified: 20231103002257153
modified: 20231103221004887
title: $:/HistoryList
type: application/json

View File

@ -3,4 +3,4 @@ title: $:/Import
The following tiddlers were imported:
# [[$:/plugins/btheado/BrowserStorage]]
# [[$:/plugins/danielo515/2click2edit]]

View File

@ -1,6 +1,6 @@
created: 20231102230159148
created: 20231103210837078
creator: Octt
list:
modified: 20231102231240743
modified: 20231103215300411
modifier: Octt
title: $:/StoryList

View File

@ -1,7 +1,7 @@
created: 20220920140732083
creator: Octt
modified: 20231102223258782
modified: 20231103214416538
modifier: Octt
title: $:/state/showeditpreview
yes
no

View File

@ -1,6 +1,6 @@
created: 20220920090405977
creator: Octt
modified: 20231029225255203
modified: 20231029235240359
modifier: Octt
title: $:/state/tab-1749438307

View File

@ -0,0 +1,7 @@
created: 20231103214254057
creator: Octt
modified: 20231103214304154
modifier: Octt
title: $:/state/plugin-info--565893350-$:/plugins/danielo515/2click2edit---843390625
readme

View File

@ -0,0 +1,7 @@
created: 20231103214306224
creator: Octt
modified: 20231103214306224
modifier: Octt
title: $:/state/plugin-info--565893350-$:/plugins/danielo515/2click2edit
no

View File

@ -1,6 +1,6 @@
created: 20220920092307479
creator: Octt
modified: 20231102232218808
modified: 20231103220155941
modifier: Octt
title: $:/state/tab/sidebar--595412856

View File

@ -1,6 +1,6 @@
created: 20230225225512618
creator: Octt
modified: 20230926073332560
modified: 20231103215247266
modifier: Octt
title: $:/state/tree/$:/OcttKB/Config/

View File

@ -1,6 +1,6 @@
created: 20230124111843850
creator: Octt
modified: 20230925173820978
modified: 20231103212511485
modifier: Octt
title: $:/state/tree/$:/OcttKB/Tweaks/

View File

@ -1,7 +1,7 @@
created: 20230111084703963
creator: Octt
modified: 20230929095013632
modified: 20231103215253891
modifier: Octt
title: $:/state/tree/$:/OcttKB/
show
hide

View File

@ -1,7 +1,7 @@
created: 20230225173056823
creator: Octt
modified: 20230929111305954
modified: 20231103212518013
modifier: Octt
title: $:/state/tree/$:/Styles/Static/
show
hide

View File

@ -1,7 +1,7 @@
created: 20230111091048227
creator: Octt
modified: 20230920144637532
modified: 20231103212513101
modifier: Octt
title: $:/state/tree/$:/Styles/View/
hide
show

View File

@ -1,6 +1,6 @@
created: 20230108193801573
creator: Octt
modified: 20230929111257602
modified: 20231103215258587
modifier: Octt
title: $:/state/tree/$:/Styles/

View File

@ -1,6 +1,6 @@
created: 20230124111928275
creator: Octt
modified: 20231001172559470
modified: 20231103210825781
modifier: Octt
title: $:/state/tree/$:/info/

View File

@ -1,6 +1,6 @@
created: 20230926065212536
creator: Octt
modified: 20230927230104338
modified: 20231103210825366
modifier: Octt
title: $:/state/tree/$:/info/browser/

View File

@ -1,6 +1,6 @@
created: 20230926065213368
creator: Octt
modified: 20230927230103658
modified: 20231103210825004
modifier: Octt
title: $:/state/tree/$:/info/browser/storage/

View File

@ -1,7 +1,7 @@
created: 20230202081911355
creator: Octt
modified: 20230219110809178
modified: 20231103214237576
modifier: Octt
title: $:/state/tree/$:/plugins/Gk0Wk/
show
hide

View File

@ -1,6 +1,6 @@
created: 20221108100116751
creator: Octt
modified: 20230219190607331
modified: 20231103215252579
modifier: Octt
title: $:/state/tree/$:/plugins/

View File

@ -0,0 +1,7 @@
created: 20231103214255008
creator: Octt
modified: 20231103214256105
modifier: Octt
title: $:/state/tree/$:/plugins/danielo515/ContextPlugin/
hide

View File

@ -0,0 +1,7 @@
created: 20231103214243736
creator: Octt
modified: 20231103214244792
modifier: Octt
title: $:/state/tree/$:/plugins/danielo515/
show

View File

@ -1,6 +1,6 @@
created: 20230127160143605
creator: Octt
modified: 20230127160201358
modified: 20231103214243200
modifier: Octt
title: $:/state/tree/$:/plugins/felixhayashi/

View File

@ -1,6 +1,6 @@
created: 20230127160136838
creator: Octt
modified: 20230127160143214
modified: 20231103214242193
modifier: Octt
title: $:/state/tree/$:/plugins/flibbles/

View File

@ -1,7 +1,7 @@
created: 20230127160127494
creator: Octt
modified: 20230219110820284
modified: 20231103214239520
modifier: Octt
title: $:/state/tree/$:/plugins/kookma/
show
hide

View File

@ -1,6 +1,6 @@
created: 20230111193642716
creator: Octt
modified: 20230219190611388
modified: 20231103214233352
modifier: Octt
title: $:/state/tree/$:/status/

View File

@ -1,3 +1,3 @@
title: $:/status/RequireReloadDueToPluginChange
no
yes