1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-09 19:39:57 +00:00
TiddlyWiki5/core/ui/ControlPanel/Saving.tid
Jermolene a01bbd4b9c Add automatic saving and warning on exit with unsaved changes
We re-use some of the existing syncer mechanism. It was already keeping
track of changes to tiddlers in the store when working with a tiddler
syncadaptor. Now it also tracks changes when there is no syncadaptor,
allowing us to provide a warning if there are unsaved changes.
2014-02-06 21:36:30 +00:00

35 lines
1.1 KiB
Plaintext

title: $:/core/ui/ControlPanel/Saving
tags: $:/tags/ControlPanel
caption: Saving
\define backupURL()
http://$(userName)$.tiddlyspot.com/backup/
\end
\define backupLink()
<$reveal type="nomatch" state="$:/UploadName" text="">
<$set name="userName" value={{$:/UploadName}}>
<a href=<<backupURL>>><$macrocall $name="backupURL" $type="text/plain" $output="text/plain"/></a>
</$set>
</$reveal>
\end
! Saving
|[[Autosave|$:/config/AutoSave]] |{{$:/snippets/autosavestatus}} |
! TiddlySpot
|[[Wiki name|$:/UploadName]] |<$edit-text tiddler="$:/UploadName" default="" tag="input"/> |
|Password |<$password name="upload"/> |
|Backups |<<backupLink>> |
!! Advanced settings
|Server URL |<$edit-text tiddler="$:/UploadURL" default="" tag="input"/> |
|Upload filename |<$edit-text tiddler="$:/UploadFilename" default="index.html" tag="input"/> |
|Upload directory |<$edit-text tiddler="$:/UploadDir" default="." tag="input"/> |
|Backup directory |<$edit-text tiddler="$:/UploadBackupDir" default="." tag="input"/> |
//The server URL defaults to `http://<wikiname>.tiddlyspot.com/store.cgi` and can be changed to use a custom server address//