mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-09-07 13:28:01 +00:00
Beginning of one-shot UI for upgrade.html
This commit is contained in:
1
plugins/tiddlywiki/upgrade/DefaultTiddlers.tid
Normal file
1
plugins/tiddlywiki/upgrade/DefaultTiddlers.tid
Normal file
@@ -0,0 +1 @@
|
||||
title: $:/DefaultTiddlers
|
34
plugins/tiddlywiki/upgrade/UpgradeWizard.tid
Normal file
34
plugins/tiddlywiki/upgrade/UpgradeWizard.tid
Normal file
@@ -0,0 +1,34 @@
|
||||
title: $:/UpgradeWizard
|
||||
tags: $:/tags/StoryBackdrop
|
||||
|
||||
<$list filter="[[$:/Import]is[missing]]">
|
||||
|
||||
Drag a TiddlyWiki file here to upgrade it
|
||||
|
||||
<$browse/>
|
||||
|
||||
</$list>
|
||||
|
||||
<$reveal state="$:/Import!!status" type="match" text="pending">
|
||||
|
||||
And now there's a pending import
|
||||
|
||||
<$set name="storyTiddler" value="$:/Import">
|
||||
|
||||
<$tiddler tiddler="$:/Import">
|
||||
|
||||
<$transclude tiddler="$:/core/ui/ViewTemplate/import"/>
|
||||
|
||||
</$tiddler>
|
||||
|
||||
</$set>
|
||||
|
||||
</$reveal>
|
||||
|
||||
<$reveal state="$:/Import!!status" type="match" text="complete">
|
||||
|
||||
All done
|
||||
|
||||
{{$:/plugins/tiddlywiki/upgrade/save}}
|
||||
|
||||
</$reveal>
|
6
plugins/tiddlywiki/upgrade/plugin.info
Normal file
6
plugins/tiddlywiki/upgrade/plugin.info
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"title": "$:/plugins/tiddlywiki/upgrade",
|
||||
"description": "User interface for upgrading TiddlyWiki documents",
|
||||
"author": "JeremyRuston",
|
||||
"core-version": ">=5.0.0"
|
||||
}
|
6
plugins/tiddlywiki/upgrade/save-tiddler-filter.tid
Normal file
6
plugins/tiddlywiki/upgrade/save-tiddler-filter.tid
Normal file
@@ -0,0 +1,6 @@
|
||||
title: $:/plugins/tiddlywiki/upgrade/save-tiddler-filter
|
||||
|
||||
\define saveTiddlerFilter()
|
||||
[is[tiddler]] -[[$:/UpgradeLibrary]] -[[$:/plugins/tiddlywiki/upgrade]] -[prefix[$:/state/popup/]] -[[$:/HistoryList]] -[[$:/boot/boot.css]] -[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] +[sort[title]]
|
||||
\end
|
||||
{{$:/core/templates/tiddlywiki5.html}}
|
3
plugins/tiddlywiki/upgrade/save.tid
Normal file
3
plugins/tiddlywiki/upgrade/save.tid
Normal file
@@ -0,0 +1,3 @@
|
||||
title: $:/plugins/tiddlywiki/upgrade/save
|
||||
|
||||
<$button message="tw-download-file" param="$:/plugins/tiddlywiki/upgrade/save-tiddler-filter" class="btn-big-green">Save upgraded ~TiddlyWiki file {{$:/core/images/save-button}}</$button>
|
6
plugins/tiddlywiki/upgrade/set-auto-open-on-import.tid
Normal file
6
plugins/tiddlywiki/upgrade/set-auto-open-on-import.tid
Normal file
@@ -0,0 +1,6 @@
|
||||
title: $:/plugins/tiddlywiki/upgrade/set-auto-open-on-import
|
||||
tags: $:/tags/Macro
|
||||
|
||||
\define tw-auto-open-on-import()
|
||||
no
|
||||
\end
|
Reference in New Issue
Block a user