Add offline download to TiddlyWeb control panel

Add button to download an offline-compatible snapshot to the TiddlyWeb
control panel
print-window-tiddler
Jermolene 2013-12-19 16:28:42 +00:00
rodzic e8f16c1c97
commit b659c65959
3 zmienionych plików z 19 dodań i 0 usunięć

Wyświetl plik

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

Wyświetl plik

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

Wyświetl plik

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