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,14 +1,14 @@
|
||||
created: 20231105210128175
|
||||
creator: Octt
|
||||
list-after: $:/core/ui/ViewTemplate/tags
|
||||
modified: 20231108163056575
|
||||
modified: 20240129003334146
|
||||
modifier: Octt
|
||||
tags: $:/tags/ViewTemplate
|
||||
title: $:/Styles/View/i18n
|
||||
|
||||
\define OcttKB-i18n()
|
||||
<<script script='
|
||||
!function(){var e,t,n,r,o={},a="object"==typeof module&&"object"==typeof module.exports,i="undefined"!=typeof window&&void 0!==window.document,s={lingva:["google"],mozhi:["deepl","duckduckgo","mymemory","reverso","watson","yandex"]};function l(e,t,n=[]){var r=0;return function e(t,n,o){for(var a,i,s=[],l=0,u=t.childNodes.length;l<u;l++){var d=t.childNodes[l];1!==d.nodeType||(i=void 0,(a="notranslate").getAttribute&&a.getAttribute("class").toLowerCase().replace(/\t/g," ").split(" ").includes(i))||n.excludeTags.includes(d.tagName.toLowerCase())?3===d.nodeType&&""!==d.data.trim()&&(o.length>0&&(d.data=o[r]),s.push(d.data),r++):(n.includeAttrs.forEach(function(e){var t=d.getAttribute(e);t&&(o.length>0&&d.setAttribute(e,o[r]),s.push(t),r++)}),s=s.concat(e(d,n,o)))}return s}(e,t,n)}a&&!i&&(n=require("jsdom").JSDOM,r=require("sync-request"),e=(e=>new n(e).window.document),t=(e=>{var t=r("GET",e);return{response:t,text:t.getBody("utf8")}})),i&&(e=function(e){return(new DOMParser).parseFromString(e,"text/html")},t=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(),{response:t,text:t.responseText}}),o.TranslateHtml=function(n,r,o={}){o.languageFrom||(o.languageFrom="auto"),o.instances||(o.instances=[{type:"Lingva",url:"https://lingva.garudalinux.org",cors:!0},{type:"Lingva",url:"https://lingva.lunar.icu",cors:!0},{type:"Mozhi",url:"https://translate.projectsegfau.lt",cors:!1},{type:"Mozhi",url:"https://mozhi.aryak.me",cors:!1},{type:"Mozhi",url:"https://translate.bus-hit.me",cors:!1}]),o.engines||(o.engines=["DeepL","DuckDuckGo","Google"]),o.maxFragmentSize||(o.maxFragmentSize=900),o.endsOfSentence||(o.endsOfSentence=[".",":",";","!","?"]),o.excludeTags||(o.excludeTags=["script","style"]),o.includeAttrs||(o.includeAttrs=["title","alt"]);for(var a=e(n),i=l(a,o),u="";i.join("").includes(u);)u+=Math.random().toString().slice(-1)[0];u=`{ ${u} }`;for(var d=i.join(u),c="",g=[""],p=0,m=0;m<d.length;m++){var h=g.length-1;g[h]+=d[m];var f=g[h].length>=o.maxFragmentSize,v=o.endsOfSentence.includes(d[m])&&d[m]!==d[m+1];v&&!f?p=g[h].length:v&&f&&(g.push(""),g[h+1]=g[h].slice(p),g[h]=g[h].slice(0,p))}var y,w,x={},M=0,S=o.instances[Math.floor(Math.random()*o.instances.length)],T=S.type.toLowerCase();o.engines=o.engines.filter(function(e){return-1!==s[T].indexOf(e.toLowerCase())});var z=o.engines[Math.floor(Math.random()*o.engines.length)].toLowerCase();"lingva"===T?w=`${S.url}/api/v1/${o.languageFrom}/${r}/`:"mozhi"===T&&(w=`${S.url}/api/translate?engine=${z}&from=${o.languageFrom}&to=${r}&text=`);for(m=0;m<g.length;m++){var L;try{x=JSON.parse(t(`${w}${encodeURIComponent(g[m])}`).text),"lingva"===T?(y=x.translation,x.info.detectedSource):"mozhi"===T&&(y=x["translated-text"],x.detected)}catch(e){M++,L=e}if(y||M++,M>0){if(M>=3&&M%3==0)return{error:L};if(M>=9)return{error:L};m--}else c+=y+" ",M=0}return l(a,o,c.split(u)),{instance:S,engine:z,html:a.documentElement.outerHTML}},"object"==typeof module&&"object"==typeof module.exports&&(module.exports=o),"undefined"!=typeof window&&void 0!==window.document&&(window.TiddlyCoso_i18n=o)}();
|
||||
!function(){var e,t,n,r,o={},a="object"==typeof module&&"object"==typeof module.exports,i="undefined"!=typeof window&&void 0!==window.document,s={lingva:["google"],mozhi:["deepl","duckduckgo","mymemory","reverso","watson","yandex"]};function l(e,t,n=[]){var r=0;return function e(t,n,o){for(var a,i,s=[],l=0,u=t.childNodes.length;l<u;l++){var d=t.childNodes[l];1!==d.nodeType||(i=void 0,(a="notranslate").getAttribute&&a.getAttribute("class").toLowerCase().replace(/\t/g," ").split(" ").includes(i))||n.excludeTags.includes(d.tagName.toLowerCase())?3===d.nodeType&&""!==d.data.trim()&&(o.length>0&&(d.data=o[r]),s.push(d.data),r++):(n.includeAttrs.forEach(function(e){var t=d.getAttribute(e);t&&(o.length>0&&d.setAttribute(e,o[r]),s.push(t),r++)}),s=s.concat(e(d,n,o)))}return s}(e,t,n)}a&&!i&&(n=require("jsdom").JSDOM,r=require("sync-request"),e=(e=>new n(e).window.document),t=(e=>{var t=r("GET",e);return{response:t,text:t.getBody("utf8")}})),i&&(e=function(e){return(new DOMParser).parseFromString(e,"text/html")},t=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(),{response:t,text:t.responseText}}),o.TranslateHtml=function(n,r,o={}){o.languageFrom||(o.languageFrom="auto"),o.instances||(o.instances=[/*{type:"Lingva",url:"https://lingva.garudalinux.org",cors:!0},*/{type:"Lingva",url:"https://lingva.lunar.icu",cors:!0},/*{type:"Mozhi",url:"https://translate.projectsegfau.lt",cors:!1},{type:"Mozhi",url:"https://mozhi.aryak.me",cors:!1},{type:"Mozhi",url:"https://translate.bus-hit.me",cors:!1}*/]),o.engines||(o.engines=["DeepL","DuckDuckGo","Google"]),o.maxFragmentSize||(o.maxFragmentSize=900),o.endsOfSentence||(o.endsOfSentence=[".",":",";","!","?"]),o.excludeTags||(o.excludeTags=["script","style"]),o.includeAttrs||(o.includeAttrs=["title","alt"]);for(var a=e(n),i=l(a,o),u="";i.join("").includes(u);)u+=Math.random().toString().slice(-1)[0];u=`{ ${u} }`;for(var d=i.join(u),c="",g=[""],p=0,m=0;m<d.length;m++){var h=g.length-1;g[h]+=d[m];var f=g[h].length>=o.maxFragmentSize,v=o.endsOfSentence.includes(d[m])&&d[m]!==d[m+1];v&&!f?p=g[h].length:v&&f&&(g.push(""),g[h+1]=g[h].slice(p),g[h]=g[h].slice(0,p))}var y,w,x={},M=0,S=o.instances[Math.floor(Math.random()*o.instances.length)],T=S.type.toLowerCase();o.engines=o.engines.filter(function(e){return-1!==s[T].indexOf(e.toLowerCase())});var z=o.engines[Math.floor(Math.random()*o.engines.length)].toLowerCase();"lingva"===T?w=`${S.url}/api/v1/${o.languageFrom}/${r}/`:"mozhi"===T&&(w=`${S.url}/api/translate?engine=${z}&from=${o.languageFrom}&to=${r}&text=`);for(m=0;m<g.length;m++){var L;try{x=JSON.parse(t(`${w}${encodeURIComponent(g[m])}`).text),"lingva"===T?(y=x.translation,x.info.detectedSource):"mozhi"===T&&(y=x["translated-text"],x.detected)}catch(e){M++,L=e}if(y||M++,M>0){if(M>=3&&M%3==0)return{error:L};if(M>=9)return{error:L};m--}else c+=y+" ",M=0}return l(a,o,c.split(u)),{instance:S,engine:z,html:a.documentElement.outerHTML}},"object"==typeof module&&"object"==typeof module.exports&&(module.exports=o),"undefined"!=typeof window&&void 0!==window.document&&(window.TiddlyCoso_i18n=o)}();
|
||||
'>>
|
||||
|
||||
<<script script="try{
|
||||
|
@@ -1,5 +1,5 @@
|
||||
created: 20240128204356564
|
||||
created: 20240129010956583
|
||||
current-tiddler: GettingStarted
|
||||
modified: 20240128204356564
|
||||
modified: 20240129010956583
|
||||
title: $:/HistoryList
|
||||
type: application/json
|
@@ -3,4 +3,4 @@ title: $:/Import
|
||||
|
||||
The following tiddlers were imported:
|
||||
|
||||
# [[$:/plugins/km/keynav]]
|
||||
# [[$:/plugins/oeyoews/commandpalette/icon]]
|
@@ -1,6 +1,2 @@
|
||||
created: 20240128203452534
|
||||
creator: Octt
|
||||
list:
|
||||
modified: 20240128203452534
|
||||
modifier: Octt
|
||||
title: $:/StoryList
|
7
Wiki-OcttKB/tiddlers/System/config/Manager/_Filter.tid
Normal file
7
Wiki-OcttKB/tiddlers/System/config/Manager/_Filter.tid
Normal file
@@ -0,0 +1,7 @@
|
||||
created: 20240128222912902
|
||||
creator: Octt
|
||||
modified: 20240128222912902
|
||||
modifier: Octt
|
||||
title: $:/config/Manager/Filter
|
||||
|
||||
Draft of
|
@@ -1,6 +1,6 @@
|
||||
created: 20230110194756813
|
||||
creator: Octt
|
||||
modified: 20231220213255539
|
||||
modified: 20240128221135763
|
||||
modifier: Octt
|
||||
title: $:/config/TiddlyTools/FindTags
|
||||
type: application/json
|
@@ -0,0 +1,12 @@
|
||||
caption: {{$:/language/codemirror6/fontsize/caption}}
|
||||
caption-zh: {{$:/language/codemirror6/zh/fontsize/caption}}
|
||||
created: 20240128231712546
|
||||
creator: Octt
|
||||
description: {{$:/language/codemirror6/fontsize/description}}
|
||||
description-zh: {{$:/language/codemirror6/zh/fontsize/description}}
|
||||
modified: 20240128231712618
|
||||
modifier: Octt
|
||||
settings-template: $:/plugins/oeyoews/tiddlywiki-codemirror-6/ui/templates/settings/input
|
||||
title: $:/config/codemirror-6/fontsize
|
||||
|
||||
18px
|
@@ -0,0 +1,12 @@
|
||||
caption: {{$:/language/codemirror6/translate/caption}}
|
||||
caption-zh: {{$:/language/codemirror6/zh/translate/caption}}
|
||||
created: 20240128231625467
|
||||
creator: Octt
|
||||
description: {{$:/language/codemirror6/translate/description}}
|
||||
description-zh: {{$:/language/codemirror6/zh/translate/description}}
|
||||
modified: 20240128231657877
|
||||
modifier: Octt
|
||||
settings-template: $:/plugins/oeyoews/tiddlywiki-codemirror-6/ui/templates/settings/input-switch
|
||||
title: $:/config/codemirror-6/translate
|
||||
|
||||
no
|
@@ -0,0 +1,17 @@
|
||||
caption: CMD
|
||||
description: Cmd
|
||||
list-before: $:/core/ui/Buttons/more-page-actions
|
||||
tags: $:/tags/PageControls
|
||||
title: $:/plugins/oeyoews/commandpalette/cmd
|
||||
|
||||
\whitespace trim
|
||||
<$button tooltip="open-command-palette" aria-label="cmd" message="open-command-palette" class=<<tv-config-toolbar-class>>>
|
||||
<$list filter="[<tv-config-toolbar-icons>match[yes]]">
|
||||
{{$:/plugins/oeyoews/commandpalette/icon}}
|
||||
</$list>
|
||||
<$list filter="[<tv-config-toolbar-text>match[yes]]">
|
||||
<span class="tc-btn-text">
|
||||
<$text text="CMd"/>
|
||||
</span>
|
||||
</$list>
|
||||
</$button>
|
@@ -0,0 +1 @@
|
||||
<svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 20 20" aria-hidden="true" height="1em" width="1em" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M2 5a2 2 0 012-2h12a2 2 0 012 2v10a2 2 0 01-2 2H4a2 2 0 01-2-2V5zm3.293 1.293a1 1 0 011.414 0l3 3a1 1 0 010 1.414l-3 3a1 1 0 01-1.414-1.414L7.586 10 5.293 7.707a1 1 0 010-1.414zM11 12a1 1 0 100 2h3a1 1 0 100-2h-3z" clip-rule="evenodd"></path></svg>
|
After Width: | Height: | Size: 441 B |
@@ -0,0 +1,2 @@
|
||||
title: $:/plugins/oeyoews/commandpalette/icon
|
||||
type: image/svg+xml
|
@@ -0,0 +1,7 @@
|
||||
created: 20240129005812859
|
||||
creator: Octt
|
||||
modified: 20240129005815170
|
||||
modifier: Octt
|
||||
title: $:/state/Excise/-1580921119/macro-title
|
||||
|
||||
<<{^
|
@@ -0,0 +1,7 @@
|
||||
created: 20240129005604825
|
||||
creator: Octt
|
||||
modified: 20240129005604825
|
||||
modifier: Octt
|
||||
title: $:/state/Excise/-1580921119/type
|
||||
|
||||
macro
|
@@ -1,6 +1,6 @@
|
||||
created: 20220920140732083
|
||||
creator: Octt
|
||||
modified: 20240128001436242
|
||||
modified: 20240129005620170
|
||||
modifier: Octt
|
||||
title: $:/state/showeditpreview
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
created: 20230109143853256
|
||||
creator: Octt
|
||||
modified: 20231220212823794
|
||||
modified: 20240129010520350
|
||||
modifier: Octt
|
||||
title: $:/state/tab--1498284803
|
||||
|
||||
$:/ThirdParty/TiddlyTools/FilterGenerators/Tags
|
||||
$:/core/ui/AdvancedSearch/Shadows
|
7
Wiki-OcttKB/tiddlers/System/state/_tab--1672778217.tid
Normal file
7
Wiki-OcttKB/tiddlers/System/state/_tab--1672778217.tid
Normal file
@@ -0,0 +1,7 @@
|
||||
created: 20240128222933768
|
||||
creator: Octt
|
||||
modified: 20240128222934548
|
||||
modifier: Octt
|
||||
title: $:/state/tab--1672778217
|
||||
|
||||
$:/plugins/kookma/commander/tiddler/uicomp/delete-tiddlers
|
@@ -1,7 +1,7 @@
|
||||
created: 20220920090405977
|
||||
creator: Octt
|
||||
modified: 20240128204323397
|
||||
modified: 20240129010805185
|
||||
modifier: Octt
|
||||
title: $:/state/tab-1749438307
|
||||
|
||||
$:/core/ui/ControlPanel/Info
|
||||
$:/core/ui/ControlPanel/Plugins
|
@@ -1,7 +1,7 @@
|
||||
created: 20221109142817793
|
||||
creator: Octt
|
||||
modified: 20240128203700764
|
||||
modified: 20240129010808326
|
||||
modifier: Octt
|
||||
title: $:/state/addplugins/tab-1342078386
|
||||
|
||||
$:/config/TiddlyWiki-CPL/Netlify
|
||||
$:/config/OfficialPluginLibrary
|
@@ -1,7 +1,7 @@
|
||||
created: 20230109143853256
|
||||
creator: Octt
|
||||
modified: 20231220212823794
|
||||
modified: 20240129010520349
|
||||
modifier: Octt
|
||||
title: $:/state/advancedsearch/currentTab
|
||||
|
||||
$:/ThirdParty/TiddlyTools/FilterGenerators/Tags
|
||||
$:/core/ui/AdvancedSearch/Shadows
|
@@ -0,0 +1,7 @@
|
||||
created: 20240128231636637
|
||||
creator: Octt
|
||||
modified: 20240128231640844
|
||||
modifier: Octt
|
||||
title: $:/state/codemirror-6/translate/Draft of 'TiddlyWiki/ThirdParty' by Octt
|
||||
|
||||
yes
|
@@ -1,6 +1,6 @@
|
||||
created: 20230203222356189
|
||||
creator: Octt
|
||||
modified: 20230207221707250
|
||||
modified: 20240129002728746
|
||||
modifier: Octt
|
||||
title: $:/state/commander/log-tiddler
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
created: 20231221120700496
|
||||
creator: Octt
|
||||
modified: 20231221152322296
|
||||
modified: 20240128232432378
|
||||
modifier: Octt
|
||||
title: $:/state/dropdown/keyboardshortcut/sidebar-search--502179266
|
||||
|
||||
|
@@ -0,0 +1,7 @@
|
||||
created: 20240128222350314
|
||||
creator: Octt
|
||||
modified: 20240128222350314
|
||||
modifier: Octt
|
||||
title: $:/state/plugin-info-1711918554-$:/plugins/danielo515/ContextPlugin---1520134501
|
||||
|
||||
contents
|
@@ -0,0 +1,7 @@
|
||||
created: 20240128215059448
|
||||
creator: Octt
|
||||
modified: 20240128224806116
|
||||
modifier: Octt
|
||||
title: $:/state/plugin-info-2030122776-$:/plugins/oeyoews/tiddlywiki-codemirror-6---1853744903
|
||||
|
||||
readme
|
@@ -0,0 +1,7 @@
|
||||
created: 20240128234400100
|
||||
creator: Octt
|
||||
modified: 20240129005448654
|
||||
modifier: Octt
|
||||
title: $:/state/search-list/selected-item--1546365138
|
||||
|
||||
TiddlyWiki/TipsAndTricks-primaryList
|
@@ -1,6 +1,6 @@
|
||||
created: 20230501095944427
|
||||
creator: Octt
|
||||
modified: 20240128094555764
|
||||
modified: 20240128225117219
|
||||
modifier: Octt
|
||||
title: $:/state/search/currentTab
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
created: 20220920092307479
|
||||
creator: Octt
|
||||
modified: 20240128203444702
|
||||
modified: 20240129010410225
|
||||
modifier: Octt
|
||||
title: $:/state/tab/sidebar--595412856
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
created: 20230501095944427
|
||||
creator: Octt
|
||||
modified: 20240128094555765
|
||||
modified: 20240128225117219
|
||||
modifier: Octt
|
||||
title: $:/state/tab/search-results/sidebar
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
created: 20230817233308156
|
||||
creator: Octt
|
||||
modified: 20240128192804828
|
||||
modified: 20240129010756384
|
||||
modifier: Octt
|
||||
title: $:/state/toc/$:/ToC-$:/Tools--1697730578
|
||||
|
||||
|
@@ -0,0 +1,7 @@
|
||||
created: 20240128221029985
|
||||
creator: Octt
|
||||
modified: 20240128221030928
|
||||
modifier: Octt
|
||||
title: $:/state/toc/$:/ToC-Octt--1697730578
|
||||
|
||||
close
|
@@ -1,7 +1,7 @@
|
||||
created: 20231223130238140
|
||||
creator: Octt
|
||||
modified: 20231223130238140
|
||||
modified: 20240128221236779
|
||||
modifier: Octt
|
||||
title: $:/state/tree/$:/OcttKB/EditorToolbar/
|
||||
|
||||
show
|
||||
hide
|
@@ -1,6 +1,6 @@
|
||||
created: 20231105214440145
|
||||
creator: Octt
|
||||
modified: 20231105214441095
|
||||
modified: 20240128221247140
|
||||
modifier: Octt
|
||||
title: $:/state/tree/$:/OcttKB/Utils/
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
created: 20230111084703963
|
||||
creator: Octt
|
||||
modified: 20240121193425329
|
||||
modified: 20240128221252219
|
||||
modifier: Octt
|
||||
title: $:/state/tree/$:/OcttKB/
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
created: 20230108193801573
|
||||
creator: Octt
|
||||
modified: 20240127214236792
|
||||
modified: 20240129002807047
|
||||
modifier: Octt
|
||||
title: $:/state/tree/$:/Styles/
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
created: 20221107223451478
|
||||
creator: Octt
|
||||
modified: 20240107000235376
|
||||
modified: 20240128215219255
|
||||
modifier: Octt
|
||||
title: $:/state/tree/$:/config/
|
||||
|
||||
|
Reference in New Issue
Block a user