generated from tiddly-gittly/Tiddlywiki-WikiText-Plugin-Template
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
68 changed files
with
593 additions
and
176 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
author: Gk0Wk | ||
description: Essential and powerful plugin manager and library | ||
list: readme tree | ||
name: CPL Repo | ||
plugin-type: plugin | ||
title: $:/plugins/Gk0Wk/CPL-Repo | ||
type: application/json | ||
version: 2023.12.9 |
6 changes: 6 additions & 0 deletions
6
wiki/tiddlers/$__plugins_Gk0Wk_CPL-Repo_config_popup-readme-at-startup.tid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
created: 20240423162431685 | ||
modified: 20240423162431685 | ||
title: $:/plugins/Gk0Wk/CPL-Repo/config/popup-readme-at-startup | ||
type: text/vnd.tiddlywiki | ||
|
||
1 |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[ | ||
{ | ||
"text": "{\"tiddlers\":{\"$:/plugins/Gk0Wk/focused-tiddler/config\":{\"title\":\"$:/plugins/Gk0Wk/focused-tiddler/config\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"<$list filter=\\\"[[$:/language]get[text]removeprefix[$:/languages/]else[en-GB]]\\\" variable=\\\"lang\\\">\\n<$list filter=\\\"[<lang>search[zh]]\\\">\\n\\n; 顶部偏移\\n: <$edit-text tiddler=\\\"$:/plugins/Gk0Wk/focused-tiddler/top-offset\\\" tag=\\\"input\\\" default=\\\"71\\\" /> (px)\\n: 条目顶部与窗口页面顶部的距离小于偏移量时,该条目会被聚焦。(单位:px)\\n\\n</$list>\\n\\n<$list filter=\\\"[<lang>!search[zh]]\\\">\\n\\n; Top Offset\\n: <$edit-text tiddler=\\\"$:/plugins/Gk0Wk/focused-tiddler/top-offset\\\" tag=\\\"input\\\" default=\\\"71\\\" /> (px)\\n: The entry is focused when the distance between the top of the entry and the top of the window page is less than the offset. (Unit: px)\\n\\n</$list>\\n</$list>\\n\"},\"$:/plugins/Gk0Wk/focused-tiddler/readme\":{\"title\":\"$:/plugins/Gk0Wk/focused-tiddler/readme\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"<$list filter=\\\"[[$:/language]get[text]removeprefix[$:/languages/]else[en-GB]]\\\" variable=\\\"lang\\\">\\n<$list filter=\\\"[<lang>search[zh]]\\\">\\n\\n! 聚焦条目\\n\\n检测你现在正在看的条目,并将其标题存在 `$:/temp/focussedTiddler`。\\n\\n判定方法:当打开新条目、滚动条目至一定位置(可配置)或者点击条目内容时,及判定为聚焦条目。\\n\\n> 本插件使用灵活而强大的 <$text text=\\\"TiddlyWiki\\\" /> 开发框架 [[Tiddly.ModernDev|https://github.com/tiddly-gittly/Modern.TiddlyDev]]\\n\\n</$list>\\n\\n<$list filter=\\\"[<lang>!search[zh]]\\\">\\n\\n! focused-tiddler\\n\\nDetecting the tiddler you are viewing, and save its title to `$:/temp/focussedTiddler`.\\n\\nJudgment method: When opening a new tiddler, scrolling the tiddler to a certain position (configurable) or clicking on the content of the tiddler, and judged to be a focused tiddler.\\n\\n> This plugin uses the flexible and powerful <$text text=\\\"TiddlyWiki\\\" /> development framework [[Tiddly.ModernDev|https://github.com/tiddly-gittly/Modern.TiddlyDev]]\\n\\n</$list>\\n</$list>\\n\"},\"$:/plugins/Gk0Wk/focused-tiddler/top-offset\":{\"title\":\"$:/plugins/Gk0Wk/focused-tiddler/top-offset\",\"text\":\"71\\n\"},\"$:/plugins/Gk0Wk/focused-tiddler/top-offset/hook.js\":{\"title\":\"$:/plugins/Gk0Wk/focused-tiddler/top-offset/hook.js\",\"module-type\":\"startup\",\"type\":\"application/javascript\",\"Modern.TiddlyDev#Origin\":\"hook.ts\",\"text\":\"\\\"use strict\\\";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(e,t)=>{for(var o in t)__defProp(e,o,{get:t[o],enumerable:!0})},__copyProps=(t,o,r,s)=>{if(o&&\\\"object\\\"==typeof o||\\\"function\\\"==typeof o)for(let e of __getOwnPropNames(o))__hasOwnProp.call(t,e)||e===r||__defProp(t,e,{get:()=>o[e],enumerable:!(s=__getOwnPropDesc(o,e))||s.enumerable});return t},__toCommonJS=e=>__copyProps(__defProp({},\\\"__esModule\\\",{value:!0}),e),hook_exports={},topOffset=(__export(hook_exports,{after:()=>after,name:()=>name,platforms:()=>platforms,startup:()=>startup,synchronous:()=>synchronous}),module.exports=__toCommonJS(hook_exports),71),updateTopOffset=()=>{topOffset=Number($tw.wiki.getTiddlerText(\\\"$:/plugins/Gk0Wk/focused-tiddler/top-offset\\\",\\\"71\\\").trim()),Number.isSafeInteger(topOffset)||(topOffset=71)},check=()=>{var t=document.querySelectorAll(\\\".tc-story-river .tc-tiddler-frame\\\");if(0===t.length)update(null);else{for(let e=t.length-1;0<=e;e--)if(!(100<t[e].getBoundingClientRect().top))return void update(t[e]);update(t[0])}},previousFocusedDom=null,update=e=>{var t;e!==previousFocusedDom&&(t=null!==e&&(null!=(t=e.getAttribute(\\\"data-tiddler-title\\\"))?t:null==(t=e.querySelector(\\\".tc-tiddler-title .tc-titlebar .tc-title\\\"))?void 0:t.textContent)||void 0,$tw.wiki.addTiddler({title:\\\"$:/temp/focussedTiddler\\\",text:t||\\\"\\\"}),previousFocusedDom&&$tw.utils.removeClass(previousFocusedDom,\\\"gk0wk-focused-tiddler\\\"),e&&$tw.utils.addClass(e,\\\"gk0wk-focused-tiddler\\\"),previousFocusedDom=e)},name=\\\"gk0wk-focused-tiddler\\\",platforms=[\\\"browser\\\"],after=[\\\"render\\\"],synchronous=!0,startup=()=>{updateTopOffset();let e;window.addEventListener(\\\"scroll\\\",()=>{void 0===e&&(e=setTimeout(()=>{e=void 0,check()},250))}),window.addEventListener(\\\"click\\\",({target:t})=>{var e,o;if(null!=(o=null==(e=document.querySelector(\\\".tc-story-river\\\"))?void 0:e.contains)&&o.call(e,t)){var r=document.querySelectorAll(\\\".tc-story-river .tc-tiddler-frame\\\");for(let e=r.length-1;0<=e;e--)if(r[e].contains(t))return void update(r[e])}}),$tw.wiki.addEventListener(\\\"change\\\",e=>{e[\\\"$:/plugins/Gk0Wk/focused-tiddler/top-offset\\\"]&&updateTopOffset(),(e[\\\"$:/HistoryList\\\"]||e[\\\"$:/StoryList\\\"])&&setTimeout(()=>check(),$tw.utils.getAnimationDuration()+100)})};\"}}}", | ||
"title": "$:/plugins/Gk0Wk/focused-tiddler", | ||
"type": "application/json", | ||
"author": "Gk0Wk", | ||
"dependents": "", | ||
"description": "Detecting the tiddler you are viewing", | ||
"list": "readme config", | ||
"name": "Focused Tiddler", | ||
"plugin-type": "plugin", | ||
"version": "0.0.3", | ||
"Modern.TiddlyDev#SHA256-Hashed": "a824f67b3fa431b7fa496185264a3cd2cdfcbce53df02f19bdad115283c88e3e" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"tiddlers": { | ||
"$:/plugins/TWaddle/ListTree/readme": { | ||
"created": "20170124212349630", | ||
"creator": "twMat", | ||
"text": "<table style=\"border:0; margin-left:1em;\">\n<tr>\n<td style=\"border:0;\" >color</td>\n<td style=\"border:0; padding-right:1em;\"><$edit-text tiddler=\"$:/plugins/TWaddle/ListTree/Stylesheet\" field=\"list-tree-color\" /></td>\n</tr>\n<tr>\n<td style=\"border:0;\">thickness</td>\n<td style=\"border:0; padding-right:1em;\"><$edit-text tiddler=\"$:/plugins/TWaddle/ListTree/Stylesheet\" field=\"list-tree-thickness\" />\n</td>\n</tr>\n</table>\n\n!!!Use\nApply the style `list-tree` by use of the standard WikiText [[@@ technique|http://tiddlywiki.com/#Styles%20and%20Classes%20in%20WikiText]].\n\n```\n<preceding empty line, like always for bullet lists>\n@@.list-tree\n*your\n*bullet\n*list\n@@\n```\n\n", | ||
"title": "$:/plugins/TWaddle/ListTree/readme", | ||
"tags": "", | ||
"modifier": "twMat", | ||
"modified": "20170126133536331" | ||
}, | ||
"$:/plugins/TWaddle/ListTree/Stylesheet": { | ||
"created": "20170124192839287", | ||
"creator": "twMat", | ||
"text": "<pre>\n.list-tree, .list-tree ul, .list-tree li { position: relative; }\n\n.list-tree li { list-style: none; }\n\n.list-tree ul { padding: 0 0 0 2em; }\n\n.list-tree li::before, .list-tree li::after {\n content: \"\";\n position: absolute;\n left: -1em;\n}\n\n/* horizontal line */\n.list-tree li::before {\n border-bottom: {{!!list-tree-thickness}} solid {{!!list-tree-color}};\n top: .6em; \n width: 7px;\n}\n\n/* vertical line */\n.list-tree ul li::after {\n border-left: {{!!list-tree-thickness}} solid {{!!list-tree-color}};\n height: 100%;\n top: .1em;\n}\n\n.list-tree ul > li:last-child::after { height: .5em; }\n\n/* top-level: Lines if multiple top elements. No lines if single top element. */\n\n.list-tree > li:last-of-type:before { display:none; }\n\n.list-tree > li:first-of-type:before { border-top: {{!!list-tree-thickness}} solid {{!!list-tree-color}}; }\n\n.list-tree > li:before {\n border-left: {{!!list-tree-thickness}} solid {{!!list-tree-color}};\n height: 100%;\n}\n</pre>", | ||
"type": "text/vnd.tiddlywiki", | ||
"title": "$:/plugins/TWaddle/ListTree/Stylesheet", | ||
"tags": "$:/tags/Stylesheet", | ||
"modifier": "twMat", | ||
"modified": "20170126133633830", | ||
"list-tree-thickness": "1px", | ||
"list-tree-color": "silver" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
author: Mat von TWaddle | ||
description: ListTree - style common bullet lists into list trees | ||
list: readme | ||
name: ListTree | ||
plugin-type: plugin | ||
title: $:/plugins/TWaddle/ListTree | ||
type: application/json | ||
version: 1.0.4 |
Oops, something went wrong.