1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-26 19:47:20 +00:00
TiddlyWiki5/core/templates
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
..
exporters Hide .tid exporter when more than one tiddler to export 2020-12-08 17:48:58 +00:00
external-js Fix faulty external-js single-file wiki (#5570) 2021-07-06 15:02:21 +01:00
server Typos missed from a9dd8c2 2018-09-28 18:18:07 +01:00
alltiddlers.template.html.tid Fix problem with static "all tiddlers" export 2014-12-04 07:58:30 +00:00
canonical-uri-external-image.tid Rename $:/core/templates/canonical-uri-external-image 2014-06-13 10:04:31 +01:00
canonical-uri-external-raw.tid Add another canonical_uri template 2017-08-19 10:31:42 +01:00
canonical-uri-external-text.tid Limited implementation of external text tiddlers in the browser 2015-08-29 16:33:04 +01:00
css-tiddler.tid Change widget syntax to $ instead of underscore 2012-12-30 13:55:19 +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
html-tiddler.tid Change widget syntax to $ instead of underscore 2012-12-30 13:55:19 +00:00
javascript-tiddler.tid Change widget syntax to $ instead of underscore 2012-12-30 13:55:19 +00:00
json-tiddler.tid Add support for JSON files containing a single tiddler 2017-03-17 14:19:43 +00:00
module-tiddler.tid Change widget syntax to $ instead of underscore 2012-12-30 13:55:19 +00:00
MOTW.html.tid Change http://*.tiddlywiki.com/* to https:// 2017-11-11 11:56:20 +00:00
plain-text-tiddler.tid Change widget syntax to $ instead of underscore 2012-12-30 13:55:19 +00:00
raw-static-tiddler.tid Add more flexible support for static content 2016-06-23 16:29:51 +01:00
save-all.tid Do not save temp tiddlers in single file (#4938) 2020-10-31 13:21:28 +00:00
save-empty.tid Improve handling of popup state 2014-06-22 11:14:11 +01:00
save-lazy-all.tid Fix syncer to handler errors properly (#4373) 2020-03-30 15:24:05 +01:00
save-lazy-images.tid Fix blank favicon if root-tiddler=$:/core/save/lazy-images is set (#5423) 2021-01-21 17:07:28 +00:00
single.tiddler.window.tid Compressing $set chains into one $vars (#4659) 2020-08-28 14:53:20 +01:00
split-recipe.tid Extend ginsu.sh to generate a split.recipe file 2013-08-03 15:03:07 +01:00
static-tiddler.tid All-in-one static HTML support 2013-12-31 09:43:46 +00:00
static.area.tid Ensure splash screen isn't shown when JS is disabled 2019-11-14 11:00:07 +00:00
static.content.tid Change http://*.tiddlywiki.com/* to https:// 2017-11-11 11:56:20 +00:00
static.template.css.tid Fix static CSS generation 2014-02-20 18:33:01 +00:00
static.template.html.tid Added mobile-web-app-capable meta tag for Android Chrome (#2456) 2016-07-11 11:16:58 +01:00
static.tiddler.html.tid Update static.tiddler.html.tid (#5148) 2020-11-30 17:56:19 +00:00
store.area.template.html.tid Add support for JSON-formatted tiddler store, and make it the default (#5708) 2021-07-14 09:15:30 +01:00
tid-tiddler.tid Don't save "bag" fields 2013-03-25 12:22:15 +00:00
tiddler-metadata.tid Don't save "bag" fields 2013-03-25 12:22:15 +00:00
tiddlywiki5.html.tid Add language attribute to HTML tag 2019-10-17 18:07:13 +01:00
version.tid Remove version widget in favour of widget macro 2013-11-01 13:22:06 +00:00
wikified-tiddler.tid Initial Commit 2013-10-12 17:05:13 +01:00