1
0
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:
Jermolene
2014-07-14 14:53:21 +01:00
parent 07f13b310d
commit c0edca78c8
11 changed files with 109 additions and 16 deletions

View File

@@ -0,0 +1 @@
title: $:/DefaultTiddlers

View 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>

View File

@@ -0,0 +1,6 @@
{
"title": "$:/plugins/tiddlywiki/upgrade",
"description": "User interface for upgrading TiddlyWiki documents",
"author": "JeremyRuston",
"core-version": ">=5.0.0"
}

View 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}}

View 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>

View 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