1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2026-05-08 14:32:20 +00:00
Files
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

33 lines
2.7 KiB
Plaintext

title: $:/language/
BinaryWarning/Prompt: Эта заметка содержит двоичные данные
ClassicWarning/Hint: Эта заметка написана в формате TiddlyWiki Classic WikiText, который не совместим с TiddlyWiki 5. Подробнее: https://tiddlywiki.com/static/Upgrading.html
ClassicWarning/Upgrade/Caption: обновление
CloseAll/Button: закрыть все
ConfirmCancelTiddler: Отменить изменения заметки "<$text text=<<title>>/>"?
ConfirmDeleteTiddler: Удалить заметку "<$text text=<<title>>/>"?
ConfirmEditShadowTiddler: Вы собираетесь редактировать встроенную заметку. Любое изменение переопределит стандартное значение и может привести к проблемам при обновлении TiddlyWiki. Вы действительно хотите редактировать "<$text text=<<title>>/>"?
ConfirmOverwriteTiddler: Заменить заметку "<$text text=<<title>>/>"?
Count: номер
DefaultNewTiddlerTitle: Новая заметка
DropMessage: Перетащите сюда (или нажмите escape для отмены)
Encryption/Cancel: Отмена
Encryption/ConfirmClearPassword: Вы действительно хотите сбросить пароль? Это действие отменит шифрование при следующем сохранении
Encryption/Password: Пароль
Encryption/PasswordNoMatch: Пароли не совпадают
Encryption/PromptSetPassword: Установить новый пароль для TiddlyWiki
Encryption/RepeatPassword: Повторите пароль
Encryption/SetPassword: Введите пароль
Encryption/Username: Имя пользователя
MissingTiddler/Hint: Заметка "<$text text=<<currentTiddler>>/>" отсутствует - нажмите {{||$:/core/ui/Buttons/edit}} чтобы её создать
OfficialPluginLibrary: Официальная Библиотека Плагинов ~TiddlyWiki
PluginReloadWarning: Пожалуйста, сохраните {{$:/core/ui/Buttons/save-wiki}} и перезапустите {{$:/core/ui/Buttons/refresh}} вики, чтобы изменения в плагинах возымели эффект.
RecentChanges/DateFormat: DD MMM YYYY
SystemTiddler/Tooltip: Это системная заметка
TagManager/Colour/Heading: Цвет
TagManager/Count/Heading: Номер
TagManager/Icon/Heading: Значок
TagManager/Info/Heading: Детали
TagManager/Tag/Heading: Метка
UnsavedChangesWarning: Изменения TiddlyWiki не сохранены