generated from tiddly-gittly/TiddlyWiki-TS-Plugin-Template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32 from tiddly-gittly/feat/note-wikitext
Feat/note wikitext
- Loading branch information
Showing
28 changed files
with
345 additions
and
120 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
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 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
12 changes: 12 additions & 0 deletions
12
src/tw-whiteboard/tiddlywiki-ui/PageLayout/CreateNewTiddlerModal.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
title: $:/plugins/linonetwo/tw-whiteboard/tiddlywiki-ui/PageLayout/CreateNewTiddlerModal | ||
subtitle: {{$:/language/Buttons/NewTiddler/Caption}} | ||
footer: {{$:/plugins/linonetwo/tw-whiteboard/tiddlywiki-ui/PageLayout/CreateNewTiddlerModalFooter}} | ||
mask-closable: yes | ||
|
||
<div class="tw-whiteboard-layout-create-new-tiddler-modal-container"> | ||
|
||
<h2>{{$:/language/ControlPanel/Basics/NewTiddler/Title/Prompt}}</h2> | ||
|
||
{{$:/state/Whiteboard/PageLayout/create-tiddler||$:/core/ui/EditTemplate/title}} | ||
|
||
</div> |
16 changes: 16 additions & 0 deletions
16
src/tw-whiteboard/tiddlywiki-ui/PageLayout/CreateNewTiddlerModalFooter.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
title: $:/plugins/linonetwo/tw-whiteboard/tiddlywiki-ui/PageLayout/CreateNewTiddlerModalFooter | ||
|
||
\procedure temp-tiddler() $:/state/Whiteboard/PageLayout/create-tiddler | ||
\function temp-tiddler-draft-title() [<temp-tiddler>get[draft.title]] | ||
|
||
<$button | ||
class="tw-whiteboard-layout-create-new-tiddler-modal-button" | ||
message="tm-close-tiddler" | ||
disabled={{{ [<temp-tiddler>get[draft.title]else[yes]] }}} | ||
> | ||
{{$:/language/Buttons/NewTiddler/Caption}} | ||
<$action-createtiddler $basetitle=<<temp-tiddler-draft-title>> type="application/vnd.tldraw+json"> | ||
<$action-deletetiddler $tiddler=<<temp-tiddler>>/> | ||
<$action-setfield $tiddler="$:/state/Whiteboard/PageLayout/focusedTiddler" text=<<createTiddler-title>>/> | ||
</$action-createtiddler> | ||
</$button> |
10 changes: 0 additions & 10 deletions
10
src/tw-whiteboard/tiddlywiki-ui/PageLayout/CreateNewTiddlerPopup.tid
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
36 changes: 20 additions & 16 deletions
36
src/tw-whiteboard/tiddlywiki-ui/ViewToolbar/OpenInFullScreenWhiteBoardButton.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,25 @@ | ||
title: $:/plugins/linonetwo/tw-whiteboard/tiddlywiki-ui/ViewToolbar/Buttons/OpenInFullScreenWhiteBoardButton | ||
tags: $:/tags/ViewToolbar | ||
caption: {{$:/plugins/linonetwo/tw-whiteboard/tiddlywiki-ui/ViewToolbar/images/OpenInFullScreenWhiteBoardButtonImage}} {{$:/language/Buttons/Edit/Caption}} | ||
description: {{$:/language/Buttons/Edit/Hint}} | ||
caption: {{$:/plugins/linonetwo/tw-whiteboard/tiddlywiki-ui/PageLayout/whiteboard-icon}} <<lingo OpenInLayout $:/plugins/linonetwo/tw-whiteboard/language/>> | ||
description: <<lingo OpenInLayout $:/plugins/linonetwo/tw-whiteboard/language/>> | ||
|
||
\whitespace trim | ||
<$list filter="[<currentTiddler>field:type[application/vnd.tldraw+json]]" variable="ignore"> | ||
<$button tooltip={{$:/language/Buttons/Edit/Hint}} aria-label={{$:/language/Buttons/Edit/Caption}} class=<<tv-config-toolbar-class>> > | ||
<$action-setfield $tiddler="$:/layout" text="$:/plugins/linonetwo/tw-whiteboard/tiddlywiki-ui/PageLayout/WhiteBoard"/> | ||
<$action-setfield $tiddler="$:/state/Whiteboard/PageLayout/tiddler" text=<<currentTiddler>> /> | ||
\define lingo-base() $:/plugins/linonetwo/tw-whiteboard/language/ | ||
|
||
<$list filter="[<tv-config-toolbar-icons>match[yes]]"> | ||
{{$:/plugins/linonetwo/tw-whiteboard/tiddlywiki-ui/ViewToolbar/images/OpenInFullScreenWhiteBoardButtonImage}} | ||
</$list> | ||
<$list filter="[<tv-config-toolbar-text>match[yes]]"> | ||
<span class="tc-btn-text"> | ||
<$text text={{$:/language/Buttons/Edit/Caption}}/> | ||
</span> | ||
</$list> | ||
</$button> | ||
</$list> | ||
<$wikify name="OpenInLayout" text="<<lingo OpenInLayout>>"> | ||
<$list filter="[<currentTiddler>field:type[application/vnd.tldraw+json]]" variable="ignore"> | ||
<$button tooltip=<<OpenInLayout>> aria-label=<<OpenInLayout>> class=<<tv-config-toolbar-class>> > | ||
<$action-setfield $tiddler="$:/layout" text="$:/plugins/linonetwo/tw-whiteboard/tiddlywiki-ui/PageLayout/WhiteBoard"/> | ||
<$action-setfield $tiddler="$:/state/Whiteboard/PageLayout/focusedTiddler" text=<<currentTiddler>> /> | ||
|
||
<$list filter="[<tv-config-toolbar-icons>match[yes]]"> | ||
{{$:/plugins/linonetwo/tw-whiteboard/tiddlywiki-ui/PageLayout/whiteboard-icon}} | ||
</$list> | ||
<$list filter="[<tv-config-toolbar-text>match[yes]]"> | ||
<span class="tc-btn-text"> | ||
<$text text=<<OpenInLayout>>/> | ||
</span> | ||
</$list> | ||
</$button> | ||
</$list> | ||
</$wikify> |
13 changes: 0 additions & 13 deletions
13
src/tw-whiteboard/tiddlywiki-ui/ViewToolbar/OpenInFullScreenWhiteBoardButtonImage.tid
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
Oops, something went wrong.