1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-09-07 13:28:01 +00:00

Improvements to one-shot upgrade UI

This commit is contained in:
Jermolene
2014-07-14 21:52:32 +01:00
parent c92a21ff14
commit 4d948c575f
10 changed files with 84 additions and 30 deletions

View File

@@ -0,0 +1,3 @@
title: $:/SiteSubtitle
upgrade your files to the latest version

View File

@@ -0,0 +1,3 @@
title: $:/SiteTitle
~TiddlyWiki Upgrader

View File

@@ -0,0 +1,3 @@
title: $:/config/Navigation/UpdateAddressBar
no

View File

@@ -1,34 +1,44 @@
title: $:/UpgradeWizard
tags: $:/tags/StoryBackdrop
<div class="tw-upgrade-wizard-wrapper">
<div class="tw-upgrade-wizard">
! ~TiddlyWiki Upgrade Wizard
<$list filter="[[$:/Import]is[missing]]">
Drag a TiddlyWiki file here to upgrade it
{{$:/core/images/download-button}}
<$browse/>
Drag a ~TiddlyWiki file here to upgrade it
or click to pick the file <$browse/>
</$list>
<$reveal state="$:/Import!!status" type="match" text="pending">
And now there's a pending import
The following tiddlers will be included in the upgrade
<$set name="storyTiddler" value="$:/Import">
<$tiddler tiddler="$:/Import">
<$transclude tiddler="$:/core/ui/ViewTemplate/import"/>
</$tiddler>
{{$:/Import||$:/core/ui/ImportListing}}
</$set>
<$button message="tw-perform-import" param=<<currentTiddler>>>Upgrade</$button>
</$reveal>
<$reveal state="$:/Import!!status" type="match" text="complete">
All done
Upgrade completed. Click the button below to save your upgraded ~TiddlyWiki file
{{$:/plugins/tiddlywiki/upgrade/save}}
</$reveal>
</div>
</div>

View File

@@ -0,0 +1,3 @@
title: $:/state/sidebar
no

View File

@@ -0,0 +1,40 @@
title: $:/plugins/tiddlywiki/upgrade/styles
tags: $:/tags/stylesheet
.tw-upgrade-wizard-wrapper {
width: 100%;
text-align: center;
}
.tw-upgrade-wizard {
background: <<colour tiddler-background>>;
padding: 2em;
display: inline-block;
position: relative;
}
.tw-upgrade-wizard svg.tw-image-download-button {
width: 14em;
height: 14em;
fill: <<colour muted-foreground>>;
}
.tw-upgrade-wizard table {
text-align: left;
}
.tw-upgrade-wizard input[type=file] {
position: absolute;
top: 0;
right: 0;
min-width: 100%;
min-height: 100%;
font-size: 999px;
text-align: right;
filter: alpha(opacity=0);
opacity: 0;
outline: none;
background: white;
cursor: pointer;
display: block;
}