Skip to content

Commit

Permalink
清除原先时间管理方面的内容
Browse files Browse the repository at this point in the history
  • Loading branch information
dongrentianyu committed Aug 26, 2023
1 parent cb7fa50 commit 8fadc2c
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 72 deletions.

This file was deleted.

3 changes: 0 additions & 3 deletions src/time-for-task/Config/time-tft.tid

This file was deleted.

8 changes: 0 additions & 8 deletions src/time-for-task/Images/days.tid

This file was deleted.

8 changes: 0 additions & 8 deletions src/time-for-task/Images/time.tid

This file was deleted.

4 changes: 1 addition & 3 deletions src/time-for-task/Sidebar/Buttons.tid
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@ title: $:/plugins/mabuqian/time-for-task/Sidebar/Buttons
<<create-task-without-parent>>
<<create-project-without-parent>>
<<create-intention-without-parent>>
<<create-resonance-without-parent>>
</div>
<div class="tft-sidebar-buttons">
<<create-idea-without-parent>>
<<create-day-task-without-parent>>
<<create-day-event>>
<<create-day>>
<<create-resonance-without-parent>>
</div>
7 changes: 0 additions & 7 deletions src/time-for-task/SuperTags/time.tid

This file was deleted.

5 changes: 0 additions & 5 deletions src/time-for-task/ViewTemplate/TimeView/DaysDynamicTable.tid

This file was deleted.

42 changes: 10 additions & 32 deletions src/time-for-task/components/Buttons.tid
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ title: $:/plugins/mabuqian/time-for-task/Components/Buttons

\define create-task-under-current-tiddler()
<$button tooltip="点击创建子任务">
<$set name="super-tag" filter="[{$:/plugins/mabuqian/time-for-task/Config/time-tft}] [{$:/plugins/mabuqian/time-for-task/Config/task-tft}]">
<$action-createtiddler $message="tm-new-tiddler"
tft={{$:/plugins/mabuqian/time-for-task/Config/task-tft}}
super-tag=<<super-tag>>
super-tag={{$:/plugins/mabuqian/time-for-task/Config/task-tft}}
tags={{!!tags}}
tmo_taskState="New"
tmo_timeSpent="30"
Expand All @@ -16,16 +15,14 @@ title: $:/plugins/mabuqian/time-for-task/Components/Buttons
<$action-sendmessage $message="tm-edit-tiddler" $param=<<createTiddler-title>>/>
</$action-createtiddler>
{{$:/plugins/mabuqian/time-for-task/Images/Task}} 新子任务
</$set>
</$button>
\end

\define create-task-under-project()
<$button tooltip="点击创建子任务">
<$set name="super-tag" filter="[{$:/plugins/mabuqian/time-for-task/Config/time-tft}] [{$:/plugins/mabuqian/time-for-task/Config/task-tft}]">
<$action-createtiddler $message="tm-new-tiddler"
tft={{$:/plugins/mabuqian/time-for-task/Config/task-tft}}
super-tag=<<super-tag>>
super-tag={{$:/plugins/mabuqian/time-for-task/Config/task-tft}}
tags=<<currentTiddler>>
tmo_taskState="New"
tmo_timeSpent="30"
Expand All @@ -36,7 +33,6 @@ title: $:/plugins/mabuqian/time-for-task/Components/Buttons
<$action-sendmessage $message="tm-edit-tiddler" $param=<<createTiddler-title>>/>
</$action-createtiddler>
{{$:/plugins/mabuqian/time-for-task/Images/Task}} 新子任务
</$set>
</$button>
\end

Expand All @@ -55,23 +51,21 @@ title: $:/plugins/mabuqian/time-for-task/Components/Buttons

<!-- 生成后续任务,不会把当前条目作为标签添加。前置任务好像搞不了,前置任务需要在当前条目下修改tmo_TaskDependency字段内容 -->
\define create-next-task-under-current-tiddler()
<$button tooltip="点击创建后续任务">
<$set name="super-tag" filter="[{$:/plugins/mabuqian/time-for-task/Config/time-tft}] [{$:/plugins/mabuqian/time-for-task/Config/task-tft}]">
<$action-createtiddler $message="tm-new-tiddler"
tft={{$:/plugins/mabuqian/time-for-task/Config/task-tft}}
super-tag=<<super-tag>>
<$button tooltip="点击创建后续任务">
<$action-createtiddler $message="tm-new-tiddler"
tft={{$:/plugins/mabuqian/time-for-task/Config/task-tft}}
super-tag={{$:/plugins/mabuqian/time-for-task/Config/task-tft}}
tmo_taskState="New"
tmo_priority="Medium"
tmo_timeSpent="30"
tmo_dependency=<<currentTiddler>>
tmo_completionDate=""
tmo_estimatedSpent=""
tmo_taskAssessment="" >
tmo_taskAssessment="">
<$action-sendmessage $message="tm-edit-tiddler" $param=<<createTiddler-title>>/>
</$action-createtiddler>
{{$:/plugins/mabuqian/time-for-task/Images/Task}} 新后续任务
</$set>
</$button>
</$button>
\end

\define create-project-under-current-tiddler()
Expand Down Expand Up @@ -103,13 +97,12 @@ title: $:/plugins/mabuqian/time-for-task/Components/Buttons

\define create-task-without-parent()
<$button tooltip="点击创建新任务">
<$set name="super-tag" filter="[{$:/plugins/mabuqian/time-for-task/Config/time-tft}] [{$:/plugins/mabuqian/time-for-task/Config/task-tft}]">
<$action-createtiddler
$basetitle={{$:/state/TFT/PageLayout/create-tiddler-title}}
tft={{$:/plugins/mabuqian/time-for-task/Config/task-tft}}
tmo_taskState="New"
tmo_timeSpent="30"
super-tag=<<super-tag>>
super-tag={{$:/plugins/mabuqian/time-for-task/Config/task-tft}}
tmo_priority="Medium"
tmo_completionDate=""
tmo_estimatedSpent=""
Expand All @@ -118,19 +111,17 @@ title: $:/plugins/mabuqian/time-for-task/Components/Buttons
<<after-create-tiddler-without-parent>>
</$action-createtiddler>
{{$:/plugins/mabuqian/time-for-task/Images/Task}} 新任务
</$set>
</$button>
\end

\define create-day-task-without-parent()
<$button tooltip="点击创建当日任务">
<$set name="super-tag" filter="[{$:/plugins/mabuqian/time-for-task/Config/time-tft}] [{$:/plugins/mabuqian/time-for-task/Config/task-tft}]">
<$action-createtiddler
$basetitle={{$:/state/TFT/PageLayout/create-tiddler-title}}
tft={{$:/plugins/mabuqian/time-for-task/Config/task-tft}}
tmo_taskState="New"
tmo_timeSpent="30"
super-tag=<<super-tag>>
super-tag={{$:/plugins/mabuqian/time-for-task/Config/task-tft}}
tmo_priority="Medium"
tmo_dueDate=<<now "YYYY-0MM-0DD" >>
tmo_completionDate=""
Expand All @@ -140,7 +131,6 @@ title: $:/plugins/mabuqian/time-for-task/Components/Buttons
<<after-create-tiddler-without-parent>>
</$action-createtiddler>
{{$:/plugins/mabuqian/time-for-task/Images/Task}} 当日任务
</$set>
</$button>
\end

Expand Down Expand Up @@ -213,18 +203,6 @@ title: $:/plugins/mabuqian/time-for-task/Components/Buttons
</$button>
\end

\define create-day()
<$button tooltip="点击创建一天统计记录条目">
<$action-createtiddler
$basetitle=<<now "YYYY-0MM-0DD" >>
time_day=<<now "YYYY-0MM-0DD" >>
time_form="days"
>
<$action-navigate $to=<<createTiddler-title>>/>
</$action-createtiddler>
{{$:/plugins/mabuqian/time-for-task/Images/days}} 一天
</$button>
\end

\define create-idea-without-parent()
<$button tooltip="点击创建想法条目">
Expand Down
4 changes: 1 addition & 3 deletions src/time-for-task/components/converted.tid
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,9 @@ title: $:/plugins/mabuqian/time-for-task/Components/Buttons/converted
\define project-converted-to-task()
<$list filter="[<currentTiddler>tft{$:/plugins/mabuqian/time-for-task/Config/project-tft}]" variable="ignore">
<$button tooltip="把项目改成任务" aria-label="把项目改成任务" >
<$set name="super-tag" filter="[{$:/plugins/mabuqian/time-for-task/Config/time-tft}] [{$:/plugins/mabuqian/time-for-task/Config/task-tft}]">
<$action-setfield tft={{$:/plugins/mabuqian/time-for-task/Config/task-tft}} />
<$action-setfield super-tag=<<super-tag>> />
<$action-setfield super-tag={{$:/plugins/mabuqian/time-for-task/Config/task-tft}} />
{{$:/plugins/mabuqian/time-for-task/Images/SetAsNotProject}} 设为任务
</$set>
</$button>
</$list>
\end
Expand Down
11 changes: 11 additions & 0 deletions wiki/tiddlers/00 1.tid
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
created: 20230826192120093
modified: 20230826192120093
super-tag: 任务
tft: 任务
title: 00 1
tmo_completionDate:
tmo_estimatedSpent:
tmo_priority: Medium
tmo_taskState: New
tmo_timeSpent: 30
type: text/vnd.tiddlywiki

0 comments on commit 8fadc2c

Please sign in to comment.