1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 10:07:19 +00:00

TiddlySpot Saver: Add link to control panel

Thanks @twmat

Fixes #4778
This commit is contained in:
jeremy@jermolene.com 2020-07-30 19:14:53 +01:00
parent a9d79a1a84
commit 97d2af7ebd
2 changed files with 7 additions and 5 deletions

View File

@ -117,6 +117,7 @@ Saving/GitService/Gitea/Caption: Gitea Saver
Saving/GitService/Gitea/Password: Personal access token for API (via Giteas web interface: `Settings | Applications | Generate New Token`) Saving/GitService/Gitea/Password: Personal access token for API (via Giteas web interface: `Settings | Applications | Generate New Token`)
Saving/TiddlySpot/Advanced/Heading: Advanced Settings Saving/TiddlySpot/Advanced/Heading: Advanced Settings
Saving/TiddlySpot/BackupDir: Backup Directory Saving/TiddlySpot/BackupDir: Backup Directory
Saving/TiddlySpot/ControlPanel: ~TiddlySpot Control Panel
Saving/TiddlySpot/Backups: Backups Saving/TiddlySpot/Backups: Backups
Saving/TiddlySpot/Caption: ~TiddlySpot Saver Saving/TiddlySpot/Caption: ~TiddlySpot Saver
Saving/TiddlySpot/Description: These settings are only used when saving to http://tiddlyspot.com or a compatible remote server Saving/TiddlySpot/Description: These settings are only used when saving to http://tiddlyspot.com or a compatible remote server

View File

@ -4,14 +4,14 @@ caption: {{$:/language/ControlPanel/Saving/TiddlySpot/Caption}}
\define lingo-base() $:/language/ControlPanel/Saving/TiddlySpot/ \define lingo-base() $:/language/ControlPanel/Saving/TiddlySpot/
\define backupURL() \define siteURL(path)
http://$(userName)$.tiddlyspot.com/backup/ http://$(userName)$.tiddlyspot.com/$path$/
\end \end
\define backupLink() \define siteLink(path)
<$reveal type="nomatch" state="$:/UploadName" text=""> <$reveal type="nomatch" state="$:/UploadName" text="">
<$set name="userName" value={{$:/UploadName}}> <$set name="userName" value={{$:/UploadName}}>
<$reveal type="match" state="$:/UploadURL" text=""> <$reveal type="match" state="$:/UploadURL" text="">
<<backupURL>> <<siteURL $path$>>
</$reveal> </$reveal>
<$reveal type="nomatch" state="$:/UploadURL" text=""> <$reveal type="nomatch" state="$:/UploadURL" text="">
<$macrocall $name=resolvePath source={{$:/UploadBackupDir}} root={{$:/UploadURL}}>> <$macrocall $name=resolvePath source={{$:/UploadBackupDir}} root={{$:/UploadURL}}>>
@ -24,7 +24,8 @@ http://$(userName)$.tiddlyspot.com/backup/
|<<lingo UserName>> |<$edit-text tiddler="$:/UploadName" default="" tag="input"/> | |<<lingo UserName>> |<$edit-text tiddler="$:/UploadName" default="" tag="input"/> |
|<<lingo Password>> |<$password name="upload"/> | |<<lingo Password>> |<$password name="upload"/> |
|<<lingo Backups>> |<<backupLink>> | |<<lingo Backups>> |<<siteLink backup>> |
|<<lingo ControlPanel>> |<<siteLink controlpanel>> |
''<<lingo Advanced/Heading>>'' ''<<lingo Advanced/Heading>>''