From c4b76ceb0bc786bcceb12fc3417bb8c4bfde27a9 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Tue, 19 Aug 2014 12:20:26 +0100 Subject: [PATCH] Improve offline saving with TiddlyWeb MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Now the usual “save changes” button in the sidebar will save an offline copy of the wiki that excludes the TiddlyWeb plugin. Previously, this functionality was only available in the control panel, leading to several problems such as that discussed here: https://groups.google.com/d/topic/tiddlywikidev/U61pO-TR854/discussion --- plugins/tiddlywiki/tiddlyweb/ServerControlPanel.tid | 6 ------ plugins/tiddlywiki/tiddlyweb/download-offline-button.tid | 3 --- .../tiddlyweb/{download-offline.tid => save-all.tid} | 2 +- 3 files changed, 1 insertion(+), 10 deletions(-) delete mode 100644 plugins/tiddlywiki/tiddlyweb/download-offline-button.tid rename plugins/tiddlywiki/tiddlyweb/{download-offline.tid => save-all.tid} (87%) diff --git a/plugins/tiddlywiki/tiddlyweb/ServerControlPanel.tid b/plugins/tiddlywiki/tiddlyweb/ServerControlPanel.tid index e5aa83d1e..1a8da7155 100644 --- a/plugins/tiddlywiki/tiddlyweb/ServerControlPanel.tid +++ b/plugins/tiddlywiki/tiddlyweb/ServerControlPanel.tid @@ -18,9 +18,3 @@ Host configuration: <$edit-text tiddler="$:/config/tiddlyweb/host" tag="input" d ---- <$button message="tw-server-refresh" class="btn btn-warning">Refresh to fetch changes from the server immediately - ----- - -Download an offline copy of this wiki: - -{{$:/editions/server/download-offline-button}} \ No newline at end of file diff --git a/plugins/tiddlywiki/tiddlyweb/download-offline-button.tid b/plugins/tiddlywiki/tiddlyweb/download-offline-button.tid deleted file mode 100644 index 8006f501a..000000000 --- a/plugins/tiddlywiki/tiddlyweb/download-offline-button.tid +++ /dev/null @@ -1,3 +0,0 @@ -title: $:/editions/server/download-offline-button - -<$button message="tw-download-file" param="$:/editions/server/download-offline" class="btn-big-green">Download Offline Snapshot {{$:/core/images/save-button}} \ No newline at end of file diff --git a/plugins/tiddlywiki/tiddlyweb/download-offline.tid b/plugins/tiddlywiki/tiddlyweb/save-all.tid similarity index 87% rename from plugins/tiddlywiki/tiddlyweb/download-offline.tid rename to plugins/tiddlywiki/tiddlyweb/save-all.tid index a5b1e67f9..497db85a5 100644 --- a/plugins/tiddlywiki/tiddlyweb/download-offline.tid +++ b/plugins/tiddlywiki/tiddlyweb/save-all.tid @@ -1,4 +1,4 @@ -title: $:/editions/server/download-offline +title: $:/core/save/all \define saveTiddlerFilter() [is[tiddler]] -[[$:/boot/boot.css]] -[[$:/HistoryList]] -[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] -[[$:/plugins/tiddlywiki/filesystem]] -[[$:/plugins/tiddlywiki/tiddlyweb]] +[sort[title]]