1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-19 08:14:50 +00:00
TiddlyWiki5/plugins/tiddlywiki/tiddlyweb
Jeremy Ruston d455072f13
Add support for JSON-formatted tiddler store, and make it the default (#5708)
* Add support for JSON-formatted tiddler store, and make it the default

The change to `getTiddlersAsJson()` is to allow experimentation

* Move JSON tiddlers into their own store area, and fix support for encrypted tiddlers

Also add a dummy old-style store area for backwards compatibility

The current arrangement is that JSON tiddlers will always override old-style tiddlers.

* Use the deserialiser mechanism to decode the content

* Refactor $:/core/modules/deserializers.js before we start extending it

Cleaning up the helper function names and ordering

* Drop support for the "systemArea" div

It was only used in really old v5.0.x

* Update deserializer to support JSON store format and add some tests

* Life UI restrictions on characters in fieldnames

* Add another test case

* Correct mis-merge

* Remove toLowerCase() methods applied to fieldnames

* Insert line breaks in output of getTiddlersAsJson (#5786)

Rather than have the entire store on one line, insert a line break
after each tiddler.

* Refactor #5786 for backwards compatibility

* Only read .tiddlywiki-tiddler-store blocks from script tags

Prompted by @simonbaird's comment here: https://github.com/Jermolene/TiddlyWiki5/pull/5708#discussion_r648833367

* Clean up escaping of unsafe script characters

It seems that escaping `<` is sufficient

* Add docs from @saqimtiaz

Thanks @saqimtiaz

* Docs tweaks

* Remove excess whitespace

Thanks @simonbaird

* Fix templates for lazy loading

* Remove obsolete item from release note

* Clean up whitespace

* Docs for the jsontiddler widget

* Fix whitespace

Fixes #5840

* Comments

* Fix newlines in JSON store area

* Remove obsolete docs change

Co-authored-by: Simon Baird <simon.baird@gmail.com>
2021-07-14 09:15:30 +01:00
..
config-tiddlers-filter.tid Fix syncing issues with external JS template 2020-08-14 11:06:08 +01:00
configOfficialPluginLibrary.tid Client-server: Add message about disabled plugin library 2020-04-20 13:28:02 +01:00
css-tiddler.tid Fix syncer to handler errors properly (#4373) 2020-03-30 15:24:05 +01:00
GettingStarted.tid Change http://*.tiddlywiki.com/* to https:// 2017-11-11 11:56:20 +00:00
html-div-skinny-tiddler.tid Fix syncer to handler errors properly (#4373) 2020-03-30 15:24:05 +01:00
html-div-tiddler.tid Do not escape double quotes in tiddler DIVs to save space (#5383) 2021-04-02 09:32:32 +01:00
html-json-skinny-tiddler.tid Add support for JSON-formatted tiddler store, and make it the default (#5708) 2021-07-14 09:15:30 +01:00
html-json-tiddler.tid Add support for JSON-formatted tiddler store, and make it the default (#5708) 2021-07-14 09:15:30 +01:00
icon-cloud.tid Fix syncer to handler errors properly (#4373) 2020-03-30 15:24:05 +01:00
javascript-tiddler.tid Fix syncer to handler errors properly (#4373) 2020-03-30 15:24:05 +01:00
plugin.info Change description for Filesystem and TiddlyWeb plugins (#4865) 2020-09-24 18:28:22 +01:00
readme.tid Revert "Add text/vnd.tiddlywiki to system tiddlers within plugins that should be wikified (c.f. #2883)" 2017-06-24 17:48:32 +01:00
readonly-styles.tid Module-ize server routes, add static file support and other enhancements(#2679) 2018-07-18 16:54:43 +01:00
save-offline.tid Update filters for single file to match changes to syncFilter (#4907) 2020-10-25 15:57:35 +00:00
save-wiki-button.tid TiddlyWebAdaptor: Trim whitespace from save button 2020-03-31 14:54:03 +01:00
SaveWikiButtonTemplate.tid Refactor saver handler 2014-08-20 10:02:44 +01:00
sse-client.js TiddlyWebAdaptor: Avoid crashing if server sent events not available 2021-05-04 17:31:37 +01:00
sse-server.js Add server sent events (#5279) 2021-01-15 10:37:55 +00:00
styles.tid Fix 4596 - High cpu consume after upgrade to 5.1.22 (#4634) 2020-05-14 14:31:57 +01:00
syncer-actions-copy-logs.tid Fix syncer to handler errors properly (#4373) 2020-03-30 15:24:05 +01:00
syncer-actions-download-tiddlywikicore.tid Fix faulty external-js single-file wiki (#5570) 2021-07-06 15:02:21 +01:00
syncer-actions-login-status.tid Fix syncer to handler errors properly (#4373) 2020-03-30 15:24:05 +01:00
syncer-actions-login.tid Fix syncer to handler errors properly (#4373) 2020-03-30 15:24:05 +01:00
syncer-actions-logout.tid Fix syncer to handler errors properly (#4373) 2020-03-30 15:24:05 +01:00
syncer-actions-refresh.tid Fix ViewToolbar items inconsistent spacing (#5473) 2021-05-24 19:24:37 +01:00
syncer-actions-save-snapshot.tid Fix syncer to handler errors properly (#4373) 2020-03-30 15:24:05 +01:00
tags-syncerdropdown.tid Fix faulty external-js single-file wiki (#5570) 2021-07-06 15:02:21 +01:00
tiddlywebadaptor.js Revert "Update sync methods (#5467)" 2021-07-05 19:26:20 +01:00

title: $:/plugins/tiddlywiki/tiddlyweb/readme

This plugin runs in the browser to synchronise tiddler changes to and from a TiddlyWeb-compatible server (including TiddlyWiki 5 itself, running on Node.js). It is inert when run under Node.js. Disabling this plugin via the browser can not be undone via the browser since this plugin provides the mechanism to synchronize settings with the server.

[[Source code|https://github.com/Jermolene/TiddlyWiki5/blob/master/plugins/tiddlywiki/tiddlyweb]]