Skip to content

Commit

Permalink
使用太记桌面版同步
Browse files Browse the repository at this point in the history
  • Loading branch information
Gezi-lzq committed Sep 1, 2024
1 parent 3ca5ae1 commit 866006b
Show file tree
Hide file tree
Showing 9 changed files with 95 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tiddlers/$__config_codemirror_theme
Original file line number Diff line number Diff line change
@@ -1 +1 @@
tiddlywiki
tango
2 changes: 1 addition & 1 deletion tiddlers/$__config_codemirror_theme.meta
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
created: 20230126080041406
creator: Gezi
modified: 20240901190237082
modified: 20240901192911920
modifier: Gezi-lzq
title: $:/config/codemirror/theme
type: string
7 changes: 7 additions & 0 deletions tiddlers/$__plugins_Gk0Wk_chat-gpt_openai-api-entrance.tid
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
created: 20240901191731778
creator: Gezi-lzq
modified: 20240901191916130
modifier: Gezi-lzq
title: $:/plugins/Gk0Wk/chat-gpt/openai-api-entrance

https://one-api.hellocorp.site/v1
7 changes: 7 additions & 0 deletions tiddlers/$__plugins_Gk0Wk_chat-gpt_openai-api-key.tid
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
created: 20240901192102479
creator: Gezi-lzq
modified: 20240901192102479
modifier: Gezi-lzq
title: $:/plugins/Gk0Wk/chat-gpt/openai-api-key

sk-BZA8Z80TsHsymEh5A3938960F3834613A9648fE20d989a80
15 changes: 15 additions & 0 deletions tiddlers/$__plugins_Gk0Wk_codemirror-themes.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions tiddlers/$__plugins_tiddlywiki_markdown.json

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions tiddlers/$__plugins_tiddlywiki_markdown.json.meta
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
author: tiddlywiki
dependents:
description: Markdown parser based on markdown-it
list: readme config syntax license
name: Markdown
plugin-type: plugin
stability: STABILITY_2_STABLE
title: $:/plugins/tiddlywiki/markdown
type: application/json
version: 5.3.5
34 changes: 34 additions & 0 deletions tiddlers/ChatGPT.tid
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
created: 20240901192106390
creator: Gezi-lzq
list-after: $:/core/ui/ControlPanel/Settings/TiddlyWiki
modified: 20240901192106392
modifier: Gezi-lzq
tags: $:/tags/ControlPanel/SettingsTab
title: ChatGPT
type: text/vnd.tiddlywiki

<$list filter="[[$:/language]get[text]removeprefix[$:/languages/]else[en-GB]]" variable="lang">
<$list filter="[<lang>search[zh]]">

; <$text text="OpenAI" /> API Key
: <$edit-text tiddler="$:/plugins/Gk0Wk/chat-gpt/openai-api-key" tag="input" default="" />
: 你应当注册自己的 <$text text="OpenAI" /> 账号,并申请 [[API Key|https://platform.openai.com/account/api-keys]]。

; <$text text="OpenAI" /> API 入口
: <$edit-text tiddler="$:/plugins/Gk0Wk/chat-gpt/openai-api-entrance" tag="input" default="" />
: 一般不用改,如果使用了第三方代理请修改。

</$list>

<$list filter="[<lang>!search[zh]]">

; <$text text="OpenAI" /> API Key
: <$edit-text tiddler="$:/plugins/Gk0Wk/chat-gpt/openai-api-key" tag="input" default="" />
: You should register your <$text text="OpenAI" /> account and request an [[API Key|https://platform.openai.com/account/api-keys]].

; <$text text="OpenAI" /> API Entrance
: <$edit-text tiddler="$:/plugins/Gk0Wk/chat-gpt/openai-api-entrance" tag="input" default="" />
: Generally no need to change, if you use a third-party proxy please modify.

</$list>
</$list>
19 changes: 19 additions & 0 deletions tiddlers/{{$__language_codemirror_theme_hint}}.tid
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
created: 20240901192824345
creator: Gezi-lzq
modified: 20240901192824348
modifier: Gezi-lzq
tags: $:/tags/ControlPanel/Settings/CodeMirror
title: {{$:/language/codemirror/theme/hint}}

\define lingo-base() $:/language/codemirror/

<$link to="$:/config/codemirror/theme"><<lingo hint>></$link>

<$select tiddler="$:/config/codemirror/theme" default="default">
<option value="default">default</option>
<$list filter="[all[shadows+tiddlers]tag[$:/tags/Stylesheet]module-type[codemirror-theme]!has[draft.of]get[name]]">
<option value=<<currentTiddler>>><$transclude field="name"><$text text=<<currentTiddler>>/></$transclude></option>
</$list>
</$select>

//see the [[CodeMirror Usage|$:/plugins/tiddlywiki/codemirror/usage]] how to add themes//

0 comments on commit 866006b

Please sign in to comment.