diff --git a/src/intention-tower-knowledge-graph/components/Buttons.tid b/src/intention-tower-knowledge-graph/components/Buttons.tid index 7ad0b60..b313e03 100644 --- a/src/intention-tower-knowledge-graph/components/Buttons.tid +++ b/src/intention-tower-knowledge-graph/components/Buttons.tid @@ -1,5 +1,7 @@ title: $:/plugins/linonetwo/intention-tower-knowledge-graph/Components/Buttons +\procedure lingo-base() $:/plugins/linonetwo/intention-tower-knowledge-graph/language/ + \define create-task-under-current-tiddler() <$button tooltip="点击创建子任务"> <$set name="tags" filter="[] [enlist{$:/plugins/linonetwo/intention-tower-knowledge-graph/Config/task-tag}]"> @@ -92,6 +94,18 @@ title: $:/plugins/linonetwo/intention-tower-knowledge-graph/Components/Buttons \end +\define back-to-default-layout-button() + <$button> + <$action-setfield + $tiddler="$:/layout" + text="" + $timestamp="no" + /> + {{$:/core/images/default-layout}} + <> + +\end + \define counts-number-of-completions() <$button tooltip="点击增加完成次数,默认递增为1,可修改tmo_repeatInterval字段来改变间隔次数"> <$action-listops $field="tmo_repeatInterval" $filter="[all[current]get[tmo_repeatInterval]else[1]]"/> diff --git a/src/intention-tower-knowledge-graph/language/en-GB/Translations.multids b/src/intention-tower-knowledge-graph/language/en-GB/Translations.multids index ebd4c6a..947206a 100644 --- a/src/intention-tower-knowledge-graph/language/en-GB/Translations.multids +++ b/src/intention-tower-knowledge-graph/language/en-GB/Translations.multids @@ -3,4 +3,5 @@ title: $:/plugins/linonetwo/intention-tower-knowledge-graph/language/en-GB/ Name: Intention Tower Knowledge Graph ShortName: ITKG Description: ITKG is a knowledge and task management framework for tiddlywiki. ITKG short for intention tower & knowledge graph. +BackToDefaultLayout: Back To Default Layout Configs/Description: These settings let you customise the behaviour of "Intention Tower Knowledge Graph" plugin. \ No newline at end of file diff --git a/src/intention-tower-knowledge-graph/language/zh-Hans/Translations.multids b/src/intention-tower-knowledge-graph/language/zh-Hans/Translations.multids index 89435a4..33bd9b8 100644 --- a/src/intention-tower-knowledge-graph/language/zh-Hans/Translations.multids +++ b/src/intention-tower-knowledge-graph/language/zh-Hans/Translations.multids @@ -3,4 +3,5 @@ title: $:/plugins/linonetwo/intention-tower-knowledge-graph/language/zh-Hans/ Name: 意义之塔与知识图谱 ShortName: 意义之塔 Description: 这是一个提供上下文的太微任务管理插件,鼓励自己干活,在今日摸鱼过多的时候,提醒自己还有多少有趣的事情没做。同时它也可以帮你梳理自己的人生意义。 +BackToDefaultLayout: 返回默认布局 Configs/Description: 通过这些设置,您可以自定义「意义之塔与知识图谱」插件的行为。 \ No newline at end of file diff --git a/src/intention-tower-knowledge-graph/layout/IntentionTower.tid b/src/intention-tower-knowledge-graph/layout/IntentionTower.tid index 65abfd5..fa426a0 100644 --- a/src/intention-tower-knowledge-graph/layout/IntentionTower.tid +++ b/src/intention-tower-knowledge-graph/layout/IntentionTower.tid @@ -31,7 +31,8 @@ title: $:/plugins/linonetwo/intention-tower-knowledge-graph/layout/IntentionTowe -
+
+ <> <> <> <> diff --git a/src/intention-tower-knowledge-graph/layout/style.css b/src/intention-tower-knowledge-graph/layout/style.css index ad2211b..20adca5 100644 --- a/src/intention-tower-knowledge-graph/layout/style.css +++ b/src/intention-tower-knowledge-graph/layout/style.css @@ -17,13 +17,13 @@ div.intention-tower-knowledge-graph-container { word-break: break-all; } -.itkg-buttons { +.itkg-intention-tower-buttons { padding: 10px 0; display: flex; flex-direction: row; justify-content: space-between; } -.itkg-buttons button { +.itkg-intention-tower-buttons button { padding: 15px 20px; } .itkg-create-task .tc-edit-texteditor {