-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Interstitial Journaling is added! Minor bug fixes
- Loading branch information
Showing
19 changed files
with
239 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
created: 20211107103624334 | ||
list: archive done priority state status tasks | ||
modified: 20211107142743879 | ||
modified: 20211118133805361 | ||
tags: | ||
title: $:/plugins/kookma/todolist/listOfConfigPrefixes | ||
type: text/vnd.tiddlywiki |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
created: 20211118051854913 | ||
modified: 20211118135830141 | ||
tags: $:/tags/Macro | ||
title: $:/plugins/kookma/todolist/macros/interstitial-ui | ||
type: text/vnd.tiddlywiki | ||
|
||
\define interstitial-ui(caption:"Interstitial Journals", width:"100%" base:"base") | ||
\import [[$:/plugins/kookma/todolist/macros/toggle-edit-button]] | ||
\import [[$:/plugins/kookma/todolist/macros/task/show]] | ||
\import [[$:/plugins/kookma/todolist/macros/interstitial-utility]] | ||
|
||
<$vars | ||
stateTiddler= """$(td-basePath)$/state/$base$""" | ||
taskTiddler= """$(td-basePath)$/tasks/$base$""" | ||
> | ||
|
||
<div class="kk-todolist-ui" style="max-width:$width$;"> | ||
|
||
$caption$ | ||
|
||
<div class="kk-todolist-header-ui"> | ||
<div class="kk-todolist-header-textbox"><<todolist-input-journal>></div> | ||
<div><<todolist-add-journal>></div> | ||
<div><<todolist-toggle-edit-button>></div> | ||
</div> | ||
|
||
<!-- display items --> | ||
<$list filter="[<stateTiddler>getindex[editview]match[edit]]" variable=ignore | ||
emptyMessage="""<<disp-journals-in-view-mode>>"""> | ||
<<disp-journals-in-edit-mode>> | ||
</$list> | ||
|
||
</div> | ||
|
||
\end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
created: 20211118122926552 | ||
modified: 20211118134051335 | ||
tags: | ||
title: $:/plugins/kookma/todolist/macros/interstitial-utility | ||
type: text/vnd.tiddlywiki | ||
|
||
\define todolist-input-journal() | ||
<$keyboard key="escape" actions=<<todolist-cancel-journal-action>> > | ||
<$keyboard key="enter" actions=<<todolist-add-journal-action>> > | ||
<$edit-text | ||
tiddler=<<stateTiddler>> | ||
index="itemtext" | ||
tag="input" | ||
class="kk-todolist-input-textbox" | ||
placeholder="add new item" | ||
default="" minHeight="1em" focus="yes" | ||
/> | ||
</$keyboard> | ||
</$keyboard> | ||
\end | ||
|
||
\define todolist-add-journal() | ||
<$button class="tc-btn-invisible" tooltip="Add new item"> | ||
{{$:/core/images/new-button}} | ||
<<todolist-add-journal-action>> | ||
</$button> | ||
\end | ||
|
||
\define todolist-add-journal-action() | ||
<$list filter="[<stateTiddler>getindex[itemtext]!is[blank]]" variable=ignor> | ||
<$set name=item value=<<now "[UTC]YYYY0MM0DD0hh0mm0ssXXX">> > | ||
<$action-setfield | ||
$tiddler=<<taskTiddler>> | ||
$index=<<item>> | ||
$value={{{ [<stateTiddler>getindex[itemtext]] }}} | ||
/> | ||
</$set> | ||
<$action-setfield $tiddler=<<stateTiddler>> $index="itemtext" $value=""/> | ||
</$list> | ||
\end | ||
|
||
\define todolist-cancel-journal-action() | ||
<$action-setfield $tiddler=<<stateTiddler>> $index="itemtext" $value=""/> | ||
\end | ||
|
||
|
||
\define todolist-delete-journal(dataTiddler) | ||
<$button class="tc-btn-invisible"> | ||
{{$:/plugins/kookma/todolist/images/times.svg}} | ||
<$action-setfield $tiddler=<<__dataTiddler__>> $index=<<item>> /> | ||
</$button> | ||
\end | ||
|
||
\define disp-journals-in-view-mode() | ||
\whitespace trim | ||
<$list filter="[<taskTiddler>indexes[]]" variable="item"> | ||
<div class="kk-todolist-row"> | ||
<div class="kk-todolist-done" style="width:2.6em"><b><$view tiddler=<<item>> field=title format=date template="0hh:0mm"/></b></div> | ||
<div class="kk-todolist-desc"><<todolist-show-task>></div> | ||
</div> | ||
</$list> | ||
\end | ||
|
||
\define disp-journals-in-edit-mode() | ||
<!-- this macro is the same as disp-list-in-edit-mode --> | ||
<$list filter="[<taskTiddler>indexes[]]" variable="item"> | ||
<div class="kk-todolist-row"> | ||
<div class="kk-todolist-done" style="width:2.6em"><b><$view tiddler=<<item>> field=title format=date template="0hh:0mm"/></b></div> | ||
<div class="kk-todolist-desc"><<todolist-show-task>></div> | ||
<div class="kk-todolist-delete"><$macrocall $name="todolist-delete-journal" dataTiddler=<<taskTiddler>>/></div> | ||
</div> | ||
</$list> | ||
\end |
4 changes: 2 additions & 2 deletions
4
source/todolist/macros/add-task.tid → source/todolist/macros/task/add.tid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
source/todolist/macros/delete-task.tid → source/todolist/macros/task/delete.tid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
source/todolist/macros/done-task.tid → source/todolist/macros/task/done.tid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
source/todolist/macros/show-task.tid → source/todolist/macros/task/show.tid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
source/todolist/macros/undone-task.tid → source/todolist/macros/task/undone.tid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
source/todolist/macros/ui.tid → source/todolist/macros/todolist-ui.tid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
created: 20211118083707275 | ||
modified: 20211118112101100 | ||
tags: $:/tags/Stylesheet | ||
title: $:/plugins/kookma/todolist/styles/dynamic.css | ||
type: text/vnd.tiddlywiki | ||
|
||
/* Todolist main ui dynamic props which follow palette colors*/ | ||
|
||
.kk-todolist-ui svg{ | ||
fill:#aaaaaa; | ||
} | ||
|
||
.kk-todolist-ui button:hover svg { | ||
fill: #888888; | ||
} | ||
|
||
|
||
.kk-todolist-row:hover { | ||
/* background-color: #f6f6f6;*/ | ||
background-color: <<colour table-header-background>>; | ||
} | ||
|
||
|
||
.kk-todolist-row .kk-todolist-delete { | ||
opacity: 0.3; | ||
} | ||
|
||
.kk-todolist-row:hover .kk-todolist-delete { | ||
opacity: 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
created: 20190716040116074 | ||
modified: 20210422161832918 | ||
modified: 20211118084047012 | ||
tags: $:/tags/Stylesheet | ||
title: $:/plugins/kookma/todolist/styles/main.css | ||
type: text/css |