Skip to content

Commit

Permalink
fix for [#8]
Browse files Browse the repository at this point in the history
  • Loading branch information
Gk0Wk committed Oct 20, 2023
1 parent 022274a commit 9043e74
Show file tree
Hide file tree
Showing 18 changed files with 76 additions and 83 deletions.
9 changes: 6 additions & 3 deletions src/ChatGPT/chatgpt-widget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,18 @@ class ChatGPTWidget extends Widget {

private historyTiddler: string = this.tmpHistoryTiddler;

private chatButtonText: string = $tw.wiki.getTiddlerText(
private chatButtonText: string = $tw.wiki.renderTiddler(
'text/html',
'$:/core/images/add-comment',
)!;

private editButtonText: string = $tw.wiki.getTiddlerText(
private editButtonText: string = $tw.wiki.renderTiddler(
'text/html',
'$:/core/images/edit-button',
)!;

private deleteButtonText: string = $tw.wiki.getTiddlerText(
private deleteButtonText: string = $tw.wiki.renderTiddler(
'text/html',
'$:/core/images/delete-button',
)!;

Expand Down
2 changes: 1 addition & 1 deletion src/ChatGPT/plugin.info
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"description": "ChatGPT in TiddlyWiki",
"plugin-type": "plugin",
"dependents": "$:/plugins/tiddlywiki/markdown",
"version": "0.0.7",
"version": "0.0.8",
"list": "readme config LICENSE"
}
10 changes: 4 additions & 6 deletions src/drawio/icon.tid
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
title: $:/plugins/Gk0Wk/drawio/icon
tags: $:/tags/Image

<svg width="22pt" height="22pt" class="tc-image-button" viewBox="0 0 128 128">
<g id="draw" clip-path="url(#clip_1)">
<path d="M128 0L128 0L128 128L0 128L0 0L128 0Z" id="draw" fill="none" stroke="none" />
<path d="M101.848 114.126L101.848 125.337C101.848 126.984 103.241 128.319 104.958 128.319L110.244 128.319C111.962 128.319 113.354 126.984 113.354 125.337L113.354 114.126L125.046 114.126C126.764 114.126 128.156 112.791 128.156 111.144L128.156 106.373C128.156 104.726 126.764 103.391 125.046 103.391L113.354 103.391L113.354 91.9411C113.354 90.2943 111.962 88.9594 110.244 88.9594L104.958 88.9594C103.241 88.9594 101.848 90.2943 101.848 91.9411L101.848 103.391L89.8451 103.391C88.1277 103.391 86.7354 104.726 86.7354 106.373L86.7354 111.144C86.7354 112.791 88.1277 114.126 89.8451 114.126L101.848 114.126ZM60.474 1.59869L60.474 1.59869C60.474 1.59869 60.474 1.59869 60.474 1.59869C55.7146 -1.03617 49.6287 0.527467 46.8808 5.09117L1.49079 80.476C-1.25707 85.0397 0.37363 90.8753 5.13306 93.5102L58.0708 122.817C62.8302 125.452 68.9161 123.888 71.6639 119.324L117.054 43.9396C117.054 43.9396 117.054 43.9396 117.054 43.9396C119.802 39.3759 118.171 33.5403 113.412 30.9054L60.474 1.59869L60.474 1.59869ZM56.5918 51.9022L56.5918 51.9022C55.3231 50.5536 55.1422 48.3175 56.287 46.4161L62.0179 36.8981C63.394 34.6126 66.1645 33.6761 68.206 34.8062L79.5725 41.0988C81.614 42.229 82.1534 44.9979 80.7772 47.2834L75.0464 56.8014C73.9006 58.7043 71.7881 59.6721 69.9347 59.2904L68.8553 76.1343L75.2842 79.6934C77.3257 80.8236 77.8651 83.5926 76.489 85.878L70.7581 95.396C69.382 97.6815 66.6115 98.6181 64.57 97.4879L53.2035 91.1953C51.162 90.0651 50.6227 87.2962 51.9988 85.0107L57.7296 75.4927C59.1058 73.2072 61.8763 72.2707 63.9177 73.4009L64.925 73.9585C65.1558 69.9973 65.6868 60.8327 65.8722 57.2402L60.4735 54.2514C57.3215 56.2016 49.3099 61.2249 45.8476 63.3971L46.8405 63.9468C48.882 65.0769 49.4214 67.8459 48.0453 70.1314L42.3144 79.6493C40.9383 81.9348 38.1678 82.8714 36.1263 81.7412L24.7598 75.4486C22.7183 74.3185 22.1789 71.5495 23.555 69.264L29.2859 59.7461C30.662 57.4606 33.4325 56.524 35.474 57.6542L41.9174 61.2213L56.5918 51.9022L56.5918 51.9022L56.5918 51.9022Z" id="Shape" fill-rule="evenodd" stroke="none" />
</g>
</svg>
\parameters (size:"22pt")
<svg width=<<size>> height=<<size>> class="tc-image-auto-height tc-image-button" viewBox="0 0 128 128">
<path d="M101.848 114.126L101.848 125.337C101.848 126.984 103.241 128.319 104.958 128.319L110.244 128.319C111.962 128.319 113.354 126.984 113.354 125.337L113.354 114.126L125.046 114.126C126.764 114.126 128.156 112.791 128.156 111.144L128.156 106.373C128.156 104.726 126.764 103.391 125.046 103.391L113.354 103.391L113.354 91.9411C113.354 90.2943 111.962 88.9594 110.244 88.9594L104.958 88.9594C103.241 88.9594 101.848 90.2943 101.848 91.9411L101.848 103.391L89.8451 103.391C88.1277 103.391 86.7354 104.726 86.7354 106.373L86.7354 111.144C86.7354 112.791 88.1277 114.126 89.8451 114.126L101.848 114.126ZM60.474 1.59869L60.474 1.59869C60.474 1.59869 60.474 1.59869 60.474 1.59869C55.7146 -1.03617 49.6287 0.527467 46.8808 5.09117L1.49079 80.476C-1.25707 85.0397 0.37363 90.8753 5.13306 93.5102L58.0708 122.817C62.8302 125.452 68.9161 123.888 71.6639 119.324L117.054 43.9396C117.054 43.9396 117.054 43.9396 117.054 43.9396C119.802 39.3759 118.171 33.5403 113.412 30.9054L60.474 1.59869L60.474 1.59869ZM56.5918 51.9022L56.5918 51.9022C55.3231 50.5536 55.1422 48.3175 56.287 46.4161L62.0179 36.8981C63.394 34.6126 66.1645 33.6761 68.206 34.8062L79.5725 41.0988C81.614 42.229 82.1534 44.9979 80.7772 47.2834L75.0464 56.8014C73.9006 58.7043 71.7881 59.6721 69.9347 59.2904L68.8553 76.1343L75.2842 79.6934C77.3257 80.8236 77.8651 83.5926 76.489 85.878L70.7581 95.396C69.382 97.6815 66.6115 98.6181 64.57 97.4879L53.2035 91.1953C51.162 90.0651 50.6227 87.2962 51.9988 85.0107L57.7296 75.4927C59.1058 73.2072 61.8763 72.2707 63.9177 73.4009L64.925 73.9585C65.1558 69.9973 65.6868 60.8327 65.8722 57.2402L60.4735 54.2514C57.3215 56.2016 49.3099 61.2249 45.8476 63.3971L46.8405 63.9468C48.882 65.0769 49.4214 67.8459 48.0453 70.1314L42.3144 79.6493C40.9383 81.9348 38.1678 82.8714 36.1263 81.7412L24.7598 75.4486C22.7183 74.3185 22.1789 71.5495 23.555 69.264L29.2859 59.7461C30.662 57.4606 33.4325 56.524 35.474 57.6542L41.9174 61.2213L56.5918 51.9022L56.5918 51.9022L56.5918 51.9022Z" fill-rule="evenodd" stroke="none" />
</svg>
15 changes: 8 additions & 7 deletions src/notionpage-covericon/body.tid
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ list-before: $:/core/ui/ViewTemplate/title
<$reveal type="popup" state=<<stateTiddler2>> position="belowleft" tag="div" class="tc-popup-keep">
<$let
state=<<qualify "$:/temp/Gk0Wk/notionpage-covericon/cover-setting">>
default-cover={{{ [<tiddler>get[page-cover]] }}}
cover-bg-blur={{{ [<tiddler>get[page-cover#bg-blur]else{$:/plugins/Gk0Wk/notionpage-covericon/config/default-cover-bg-blur}] }}}
cover-size={{{ [<tiddler>get[page-cover#size]else{$:/plugins/Gk0Wk/notionpage-covericon/config/default-cover-size}else[cover]] }}}
cover-position={{{ [<tiddler>get[page-cover#position]else{$:/plugins/Gk0Wk/notionpage-covericon/config/default-cover-position}else[cover]] }}}
Expand All @@ -35,28 +36,28 @@ list-before: $:/core/ui/ViewTemplate/title
<div class="gk0wk-notionpageb-changecover-box">
<div>
<span style="user-select:none;opacity:0.8;font-weight:800;">URI:&nbsp;</span>
<$edit-text tiddler=<<state>> field="page-cover" default={{{ [<tiddler>get[page-cover]] }}} placeholder="" focus="true"/>
<$button setTitle=<<tiddler>> setField="page-cover" setTo={{{ [<state>get[page-cover]!is[blank]else<cover-bg-blur>] }}} style="color:inherit !important;cursor:pointer;font-weight:800;">Set</$button>
<$edit-text tiddler=<<state>> field="page-cover" default=<<default-cover>> placeholder=""/>
<$button setTitle=<<tiddler>> setField="page-cover" setTo={{{ [<state>get[page-cover]!is[blank]else<default-cover>] }}} style="color:inherit !important;cursor:pointer;font-weight:800;">Set</$button>
</div>
<div>
<span style="user-select:none;opacity:0.8;font-weight:800;">Blur:&nbsp;</span>
<$edit-text tiddler=<<state>> field="page-cover#bg-blur" default=<<cover-bg-blur>> placeholder="" focus="true"/>
<$edit-text tiddler=<<state>> field="page-cover#bg-blur" default=<<cover-bg-blur>> placeholder=""/>
<$button setTitle=<<tiddler>> setField="page-cover#bg-blur" setTo={{{ [<state>get[page-cover#bg-blur]!is[blank]else<cover-bg-blur>] }}} style="color:inherit !important;cursor:pointer;font-weight:800;">Set</$button>
</div>
<div>
<span style="user-select:none;opacity:0.8;font-weight:800;">Size:&nbsp;</span>
<$edit-text tiddler=<<state>> field="page-cover#size" default=<<cover-size>> placeholder="" focus="true"/>
<$edit-text tiddler=<<state>> field="page-cover#size" default=<<cover-size>> placeholder=""/>
<$button setTitle=<<tiddler>> setField="page-cover#size" setTo={{{ [<state>get[page-cover#size]!is[blank]else<cover-size>] }}} style="color:inherit !important;cursor:pointer;font-weight:800;">Set</$button>
</div>
<div>
<span style="user-select:none;opacity:0.8;font-weight:800;">Position:&nbsp;</span>
<$edit-text tiddler=<<state>> field="page-cover#position" default=<<cover-position>> placeholder="" focus="true"/>
<$edit-text tiddler=<<state>> field="page-cover#position" default=<<cover-position>> placeholder=""/>
<$button setTitle=<<tiddler>> setField="page-cover#position" setTo={{{ [<state>get[page-cover#position]!is[blank]else<cover-position>] }}} style="color:inherit !important;cursor:pointer;font-weight:800;">Set</$button>
</div>
<div>
<span style="user-select:none;opacity:0.8;font-weight:800;">Repeat:&nbsp;</span>
<$edit-text tiddler=<<state>> field="page-cover#repeat" default=<<cover-repeat>> placeholder="" focus="true"/>
<$button setTitle=<<tiddler>> setField="page-cover#repeat" setTo={{{ [<state>get[page-cover#position]!is[blank]else<cover-repeat>] }}} style="color:inherit !important;cursor:pointer;font-weight:800;">Set</$button>
<$edit-text tiddler=<<state>> field="page-cover#repeat" default=<<cover-repeat>> placeholder=""/>
<$button setTitle=<<tiddler>> setField="page-cover#repeat" setTo={{{ [<state>get[page-cover#repeat]!is[blank]else<cover-repeat>] }}} style="color:inherit !important;cursor:pointer;font-weight:800;">Set</$button>
</div>
</div>
</$let>
Expand Down
2 changes: 1 addition & 1 deletion src/notionpage-covericon/plugin.info
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.0.13",
"version": "0.0.14",
"type": "application/json",
"title": "$:/plugins/Gk0Wk/notionpage-covericon",
"plugin-type": "plugin",
Expand Down
2 changes: 1 addition & 1 deletion wiki/tiddlers/$__plugins_Gk0Wk_CPL-Repo.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion wiki/tiddlers/$__plugins_Gk0Wk_CPL-Repo.json.meta
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ name: CPL Repo
plugin-type: plugin
title: $:/plugins/Gk0Wk/CPL-Repo
type: application/json
version: 2023.10.11
version: 2023.10.15
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
created: 20231020020745618
modified: 20231020020745618
title: $:/plugins/Gk0Wk/CPL-Repo/config/popup-readme-at-startup
type: text/vnd.tiddlywiki

1
Empty file modified wiki/tiddlers/$__plugins_Gk0Wk_TW5-CodeMirror-Enhanced.json
100755 → 100644
Empty file.
13 changes: 0 additions & 13 deletions wiki/tiddlers/$__plugins_Gk0Wk_TW5-CodeMirror-Enhanced.json.meta

This file was deleted.

6 changes: 3 additions & 3 deletions wiki/tiddlers/$__plugins_Gk0Wk_echarts.json
100755 → 100644

Large diffs are not rendered by default.

12 changes: 0 additions & 12 deletions wiki/tiddlers/$__plugins_Gk0Wk_echarts.json.meta

This file was deleted.

15 changes: 0 additions & 15 deletions wiki/tiddlers/$__plugins_Gk0Wk_focused-tiddler.json

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
created: 20211012184428513
creator: Sttot
modified: 20230927133141321
modified: 20231020022019636
modifier: Sttot
title: $:/themes/tiddlywiki/vanilla/metrics/sidebarwidth
type: text/vnd.tiddlywiki

26.028173537481408vw
30.76010567801339vw
Binary file added wiki/tiddlers/1111.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions wiki/tiddlers/1111.jpg.meta
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
title: 1111
type: image/jpeg
18 changes: 0 additions & 18 deletions wiki/tiddlers/Guide.json

This file was deleted.

Loading

0 comments on commit 9043e74

Please sign in to comment.