1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-24 10:37:20 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/widgets
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
..
ActionConfirmWidget.tid Added docs for action-confirm widget, added default message for widget and improved logic for disabling it. (#5047) 2020-11-16 17:02:22 +00:00
ActionCreateTiddlerWidget Example 1.tid Merge branch 'tiddlywiki-com' 2020-11-19 10:01:23 +00:00
ActionCreateTiddlerWidget Example 2.tid Merge branch 'tiddlywiki-com' 2020-11-19 10:01:23 +00:00
ActionCreateTiddlerWidget Example 3.tid Extend action-createtiddler to make new title available as a variable 2021-06-01 09:41:14 +01:00
ActionCreateTiddlerWidget Example 4.tid Extend action-createtiddler to make new title available as a variable 2021-06-01 09:41:14 +01:00
ActionCreateTiddlerWidget Template.tid Move tw5.com docs tiddlers to the correct folders 2020-10-04 17:36:08 +01:00
ActionCreateTiddlerWidget_Example.tid Extend action-createtiddler to make new title available as a variable 2021-06-01 09:41:14 +01:00
ActionCreateTiddlerWidget.tid Update ActionCreateTiddlerWidget.tid (#5871) 2021-07-11 22:39:56 +01:00
ActionDeleteFieldWidget.tid Missed parenthesis 2017-04-19 13:25:31 +01:00
ActionDeleteTiddlerWidget.tid Move docs for 5.1.5 release 2014-11-26 11:22:20 +00:00
ActionListopsWidget.tid Update ActionListopsWidget.tid (#4738) 2020-06-27 13:13:01 +01:00
ActionLogWidget.tid Doc updates for ActionLog and Log widgets (#5081) 2020-11-20 18:37:48 +00:00
ActionNavigateWidget.tid Overhaul the macro and variable documentation 2015-02-21 23:03:24 +00:00
ActionPopupWidget.tid Extend <-popup> to create floating popups that must be manually cleared (#5655) 2021-05-02 10:20:39 +01:00
ActionSendMessageWidget.tid Small documentation fixes 2016-04-04 12:45:31 +01:00
ActionSetFieldWidget.tid Missed parenthesis 2017-04-19 13:25:31 +01:00
ActionWidgets.tid Docs improvements; missed off 3094e06236 2021-07-02 14:41:59 +01:00
BrowseWidget.tid Fix typo in BrowseWidget docs 2020-04-22 12:10:34 +01:00
ButtonWidget.tid Merge branch 'tiddlywiki-com' 2020-11-19 10:01:23 +00:00
CheckboxWidget.tid Added disabled attribute to input widgets (#5014) 2020-11-09 18:28:12 +00:00
CodeblockWidget.tid Fix problem with highlight plugin language brushes 2016-08-18 09:07:06 +01:00
CountWidget.tid Docs: add example to CountWidget.tid (#3732) 2019-01-27 19:28:42 +00:00
DiffTextWidget.tid Incorporate “diff” engine to show visual differences (#3112) 2018-03-16 20:38:35 +00:00
DraggableWidget.tid Docs typo 2019-01-18 09:19:58 +00:00
DroppableWidget.tid Improve ability to disable drag and drop 2020-03-20 10:46:17 +00:00
DropzoneWidget.tid Deserializers[] filter operator (#5673) 2021-05-22 10:50:11 +01:00
EditBitmapWidget.tid Update EditBitmapWidget doc to reflect update in code (#2725) 2018-11-27 18:11:21 +00:00
EditTextWidget.tid Drag and drop images in the editor to import and insert (#5699) 2021-05-19 21:52:43 +01:00
EditWidget.tid Add "autocomplete" attribute to <$edit> and <$edit-text> widgets 2020-11-30 18:48:04 +00:00
EncryptWidget.tid More mangling of reference docs 2014-09-11 00:06:19 +01:00
EntityWidget.tid Introduce text editor toolbar (#2315) 2016-04-22 08:36:29 +01:00
EventCatcherWidget.tid Update syntax for Eventcatcher (#5868) 2021-07-11 20:21:35 +01:00
FieldMangler Widget (Examples).tid Add an example to the $fieldmangler widget (#4287) 2019-10-04 15:50:00 +01:00
FieldManglerWidget.tid Update FieldManglerWidget.tid 2015-07-06 19:09:17 +02:00
FieldsWidget.tid Add new parameters to fields-widget and fields-operator. (#4433) 2020-04-15 12:36:48 +01:00
ImageWidget.tid Allow percentage width and height on image widget 2014-10-19 13:21:20 +01:00
ImportVariablesWidget.tid Minor issue in example of Import Variables Widget (#5165) 2020-12-03 22:27:21 +00:00
JSONTiddlerWidget.tid Add support for JSON-formatted tiddler store, and make it the default (#5708) 2021-07-14 09:15:30 +01:00
KeyboardWidget.tid Remove unneeded table class 2021-07-13 17:49:52 +01:00
LinkCatcherWidget.tid Add modifier variable to linkcatcher actionstring (#4758) 2020-07-15 12:27:14 +01:00
LinkWidget.tid Update LinkWidget.tid (#4690) 2020-06-11 12:11:12 +01:00
ListopsData.tid Remove modifier/modified/revision fields from #2037 2015-12-06 19:11:41 +00:00
ListWidget.tid Change "index" attribute of list widget to "counter", and use 1-based counting 2021-04-26 14:41:26 +01:00
LogWidget.tid Doc updates for ActionLog and Log widgets (#5081) 2020-11-20 18:37:48 +00:00
MacroCallWidget.tid Add version tag missed off ae13a0fee1 2020-09-29 16:40:24 +01:00
MessageCatcherWidget.tid Update MessageCatcher docs to clarify usage (#5870) 2021-07-11 22:39:24 +01:00
NavigatorWidget.tid Update navigator widgets parameter docs (#4828) 2020-08-27 15:36:13 +01:00
PasswordWidget.tid More mangling of reference docs 2014-09-11 00:06:19 +01:00
RadioWidget Example.tid Update RangeWidget and RadioWidget examples from #5158 2021-03-07 10:23:14 +00:00
RadioWidget ExampleTemplate.tid add docs for radio-actions (#5156) 2020-11-30 18:48:48 +00:00
RadioWidget.tid Fix Radio widget to refresh selectively, and use the checked attribute properly 2021-03-07 15:49:07 +00:00
RangeWidget Example.tid Update RangeWidget and RadioWidget examples from #5158 2021-03-07 10:23:14 +00:00
RangeWidget.tid Docs tweaks 2021-03-07 10:32:51 +00:00
RevealWidget.tid Reveal widget allow re-positioning (#5087) 2020-11-21 17:19:52 +00:00
ScrollableWidget.tid Add position: relative to scrollable widget 2015-04-27 13:38:20 +01:00
SelectWidget.tid Update SelectWidget.tid (#5556) 2021-03-21 16:55:18 +00:00
SetVariableWidget.tid Docs update 2014-10-25 14:02:21 +01:00
SetWidget.tid Docs update for Set Widget (#5239) 2020-12-09 11:12:57 +00:00
TextWidget.tid Update TextWidget.tid (#3696) 2019-01-15 16:14:50 +00:00
The Extended Listops Filters.tid Fixed typos in docsof ActionListops widget 2016-01-06 07:32:33 +02:00
TiddlerWidget.tid Docs fix: Remove erroneous "class" attribute from tiddler widget 2017-09-01 11:13:39 +01:00
TranscludeWidget.tid Revert "Extend transclude widget to optionally set variables" 2021-04-02 09:47:38 +01:00
VarsWidget.tid VarsWidget doc - erroneous example (#2714) 2017-01-17 08:20:06 -07:00
ViewWidget.tid Add version banner for docs for #5383 2021-04-02 09:34:27 +01:00
Widgets.tid Overhaul the macro and variable documentation 2015-02-21 23:03:24 +00:00
WikifyWidget.tid Add 'formattedtext' output type to Wikify widget 2016-10-18 09:13:52 +01:00