mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 12:07:19 +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:
parent
e8f16c1c97
commit
b659c65959
@ -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}}
|
3
plugins/tiddlywiki/tiddlyweb/download-offline-button.tid
Normal file
3
plugins/tiddlywiki/tiddlyweb/download-offline-button.tid
Normal 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>
|
6
plugins/tiddlywiki/tiddlyweb/download-offline.tid
Normal file
6
plugins/tiddlywiki/tiddlyweb/download-offline.tid
Normal 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}}
|
Loading…
Reference in New Issue
Block a user