1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 03:57:21 +00:00

Add offline download to TiddlyWeb control panel

Add button to download an offline-compatible snapshot to the TiddlyWeb
control panel
This commit is contained in:
Jermolene 2013-12-19 16:28:42 +00:00
parent e8f16c1c97
commit b659c65959
3 changed files with 19 additions and 0 deletions

View File

@ -9,8 +9,18 @@ Log in to ~TiddlyWeb: <$button message="tw-login" class="btn btn-info">Login</$b
Logged in as {{$:/status/UserName}} <$button message="tw-logout" class="btn btn-warning">Logout</$button>
</$reveal>
----
Host configuration: <$edit-text tiddler="$:/config/tiddlyweb/host" tag="input" default=""/>
<blockquote>//for example, `$protocol$//$host$/folder`, where `$protocol$` is replaced by the protocol (typically `http` or `https`), and `$host$` by the host name//</blockquote>
----
<$button message="tw-server-refresh" class="btn btn-warning">Refresh</$button> to fetch changes from the server immediately
----
Download an offline copy of this wiki:
{{$:/editions/clientserver/download-offline-button}}

View File

@ -0,0 +1,3 @@
title: $:/editions/clientserver/download-offline-button
<$button message="tw-download-file" param="$:/editions/clientserver/download-offline" class="btn-big-green">Download Offline Snapshot {{$:/core/images/save-button}}</$button>

View File

@ -0,0 +1,6 @@
title: $:/editions/clientserver/download-offline
\define saveTiddlerFilter()
[is[tiddler]] -[type[text/css]] -[type[application/javascript]has[module-type]] -[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] -[[$:/plugins/tiddlywiki/filesystem]] -[[$:/plugins/tiddlywiki/tiddlyweb]] +[sort[title]]
\end
{{$:/core/templates/tiddlywiki5.html}}