1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-09-28 15:08:46 +00:00
TiddlyWiki5/editions/dev/tiddlers/new
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
..
Adding Babel Polyfill to TiddlyWiki.tid Move coding docs to the /dev wiki 2017-03-19 13:53:21 +00:00
Data Storage in Single File TiddlyWiki.tid Add support for JSON-formatted tiddler store, and make it the default (#5708) 2021-07-14 09:15:30 +01:00
Data Storage.tid Add support for JSON-formatted tiddler store, and make it the default (#5708) 2021-07-14 09:15:30 +01:00
Filter Operators.tid One more fix 2015-10-03 08:43:55 -04:00
Hook_ th-before-importing.tid Add th-before-importing hook mechanism (#5464) 2021-05-25 22:19:58 +01:00
Hook_ th-closing-tiddler.tid Added docs for th-closing-tiddler hook (#5820) 2021-06-23 09:51:46 +01:00
Hook_ th-page-refreshed.tid Add new th-page-refreshed hook 2018-01-04 16:01:19 +00:00
Hook_ th-page-refreshing.tid DynaView plugin: add optional scroll position preservation 2019-01-11 17:50:52 +00:00
Hook__th-deleting-tiddler.tid Add several new hooks for UI actions 2017-02-09 15:42:55 +00:00
Hook__th-editing-tiddler.tid Docs for #2901 2017-06-29 09:05:11 +01:00
Hook__th-importing-file.tid Add new hook "th-importing-files" 2017-10-11 17:52:37 +01:00
Hook__th-importing-tiddler.tid Add th-before-importing hook mechanism (#5464) 2021-05-25 22:19:58 +01:00
Hook__th-navigating.tid Add support for th-navigating event 2017-02-19 15:47:37 +00:00
Hook__th-relinking-tiddler.tid Add several new hooks for UI actions 2017-02-09 15:42:55 +00:00
Hook__th-renaming-tiddler.tid Add several new hooks for UI actions 2017-02-09 15:42:55 +00:00
Hook__th-rendering-element.tid Extend the element widget with a hook to intercept DOM node creation 2020-07-02 13:13:55 +01:00
Hook__th-server-command-post-start.tid Add the "tiddlywiki" argument to the server start hook (#3592) 2018-11-29 09:51:11 +00:00
Hook_th-make-tiddler-path.tid Create Hook_th-make-tiddler-path.tid (#5274) 2020-12-14 19:20:29 +00:00
HookMechanism.tid Dev: Update hook mechanism docs 2020-12-13 20:01:47 +00:00
ImportLogging.tid Move docs for 5.1.5 release 2014-11-26 11:22:20 +00:00
ParserSubclassingMechanism.tid Make it easier to subclass the wikitext parser with a custom rule set 2021-02-03 15:13:56 +00:00
th-opening-default-tiddlers-list.tid Add several new hooks for UI actions 2017-02-09 15:42:55 +00:00
th-saving-tiddler.tid Add old tiddler to th-saving-tiddler hook 2020-06-18 11:49:59 +01:00
Using ES2016 for Writing Plugins.tid Change http://*.tiddlywiki.com/* to https:// 2017-11-11 11:56:20 +00:00
Using Notifications.tid Docs tweaks for #2922 2017-06-28 17:58:58 +01:00
WidgetSubclassingMechanism.tid Docs: Typo 2019-03-18 12:40:15 +00:00