tiddlywiki 5.2.3 → 5.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/build-site.sh +11 -2
- package/bin/test.sh +1 -0
- package/boot/boot.js +9 -6
- package/core/images/layout-button.tid +4 -0
- package/core/images/mastodon.tid +6 -0
- package/core/language/en-GB/Buttons.multids +4 -0
- package/core/language/en-GB/ControlPanel.multids +3 -3
- package/core/language/en-GB/Fields.multids +2 -2
- package/core/language/en-GB/GettingStarted.tid +4 -3
- package/core/language/en-GB/Help/commands.tid +18 -0
- package/core/language/en-GB/Misc.multids +1 -0
- package/core/modules/commands/commands.js +42 -0
- package/core/modules/editor/engines/framed.js +12 -1
- package/core/modules/editor/factory.js +2 -2
- package/core/modules/filters/format/json.js +35 -0
- package/core/modules/filters/is/variable.js +2 -2
- package/core/modules/filters/json-ops.js +186 -0
- package/core/modules/filters/variables.js +9 -3
- package/core/modules/filters.js +15 -6
- package/core/modules/keyboard.js +13 -1
- package/core/modules/parsers/csvparser.js +25 -17
- package/core/modules/parsers/wikiparser/rules/macrodef.js +1 -1
- package/core/modules/parsers/wikiparser/rules/parsermode.js +68 -0
- package/core/modules/parsers/wikiparser/rules/styleinline.js +3 -3
- package/core/modules/parsers/wikiparser/wikiparser.js +4 -2
- package/core/modules/server/routes/put-tiddler.js +10 -0
- package/core/modules/startup/startup.js +5 -1
- package/core/modules/utils/csv.js +101 -23
- package/core/modules/utils/dom/dom.js +17 -2
- package/core/modules/utils/dom/modal.js +6 -0
- package/core/modules/utils/dom/popup.js +69 -6
- package/core/modules/utils/fakedom.js +2 -2
- package/core/modules/utils/linked-list.js +79 -75
- package/core/modules/utils/logger.js +3 -1
- package/core/modules/utils/parsetree.js +20 -10
- package/core/modules/utils/utils.js +3 -0
- package/core/modules/widgets/action-deletefield.js +2 -2
- package/core/modules/widgets/action-popup.js +10 -8
- package/core/modules/widgets/button.js +7 -2
- package/core/modules/widgets/checkbox.js +12 -5
- package/core/modules/widgets/error.js +63 -0
- package/core/modules/widgets/genesis.js +108 -0
- package/core/modules/widgets/importvariables.js +4 -1
- package/core/modules/widgets/keyboard.js +4 -0
- package/core/modules/widgets/let.js +3 -5
- package/core/modules/widgets/reveal.js +11 -10
- package/core/modules/widgets/select.js +9 -0
- package/core/modules/widgets/transclude.js +3 -5
- package/core/modules/widgets/widget.js +44 -18
- package/core/palettes/Blanca.tid +2 -0
- package/core/palettes/Blue.tid +2 -0
- package/core/palettes/BrightMute.tid +2 -0
- package/core/palettes/ContrastDark.tid +2 -0
- package/core/palettes/ContrastLight.tid +2 -0
- package/core/palettes/CupertinoDark.tid +2 -0
- package/core/palettes/DarkPhotos.tid +2 -0
- package/core/palettes/DesertSand.tid +2 -0
- package/core/palettes/GruvBoxDark.tid +2 -0
- package/core/palettes/Nord.tid +2 -0
- package/core/palettes/Rocker.tid +2 -0
- package/core/palettes/SolarFlare.tid +2 -0
- package/core/palettes/SolarizedDark.tid +2 -0
- package/core/palettes/SolarizedLight.tid +2 -0
- package/core/palettes/SpartanDay.tid +2 -0
- package/core/palettes/SpartanNight.tid +2 -0
- package/core/palettes/Twilight.tid +2 -0
- package/core/palettes/Vanilla.tid +2 -0
- package/core/templates/external-js/save-all-external-js.tid +4 -2
- package/core/templates/external-js/save-offline-external-js.tid +4 -2
- package/core/templates/single.tiddler.window.tid +1 -1
- package/core/ui/Actions/new-image.tid +1 -7
- package/core/ui/AdvancedSearch/FilterButtons/delete.tid +3 -3
- package/core/ui/AdvancedSearch/FilterButtons/dropdown.tid +2 -2
- package/core/ui/ControlPanel/Basics/retain-story-ordering-button.tid +3 -0
- package/core/ui/ControlPanel/Basics.tid +3 -2
- package/core/ui/EditTemplate/Preview/output.tid +1 -1
- package/core/ui/EditTemplate/body/default.tid +1 -1
- package/core/ui/EditTemplate/fields.tid +12 -2
- package/core/ui/EditTemplate.tid +7 -2
- package/core/ui/ImportListing.tid +5 -5
- package/core/ui/KeyboardShortcuts/advanced-search.tid +1 -1
- package/core/ui/PageControls/layout.tid +15 -0
- package/core/ui/PageTemplate.tid +1 -4
- package/core/ui/SideBar/More.tid +2 -2
- package/core/ui/SwitcherModal.tid +1 -0
- package/core/ui/TagManager.tid +75 -63
- package/core/ui/ViewTemplate/unfold.tid +6 -2
- package/core/ui/ViewTemplate.tid +1 -1
- package/core/wiki/config/DefaultTiddlersRetainStory.tid +3 -0
- package/core/wiki/config/OfficialPluginLibrary.tid +1 -1
- package/core/wiki/config/PageControlButtons.multids +1 -0
- package/core/wiki/macros/list.tid +7 -7
- package/core/wiki/macros/timeline.tid +6 -9
- package/core/wiki/macros/toc.tid +12 -8
- package/core/wiki/tags/PageControls.tid +1 -1
- package/editions/de-AT/tiddlywiki.info +0 -1
- package/editions/de-AT-server/tiddlywiki.info +0 -1
- package/editions/de-DE/tiddlywiki.info +0 -1
- package/editions/dev/tiddlers/HelloThere.tid +2 -1
- package/editions/dev/tiddlers/How to run a local plugin library for testing.tid +42 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/Child widgets tutorial.tid +140 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/Do nothing widget demo.tid +22 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/Do nothing widget tutorial.tid +25 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/Hello World demo.tid +23 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/Hello World widget tutorial.tid +18 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/Javascript Widget Tutorial.tid +37 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/Undefined widget demo.tid +18 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/Undefined widget tutorial.tid +11 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/Widget attributes demo I.tid +48 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/Widget attributes demo II.tid +48 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/Widget attributes tutorial part I.tid +50 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/Widget attributes tutorial part II.tid +33 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/Widget refresh demo I.tid +44 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/Widget refresh demo II.tid +40 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/Widget refresh demo III.tid +50 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/Widget refresh tutorial part I.tid +47 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/Widget refresh tutorial part II.tid +37 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/Widget refresh tutorial part III.tid +26 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/domwidget.js +47 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/domwidget.js.meta +6 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/donothing.js +16 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/donothing.js.meta +6 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/hello-attribute-optimized.js +51 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/hello-attribute-optimized.js.meta +6 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/hello-attribute.js +47 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/hello-attribute.js.meta +6 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/hello.js +35 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/hello.js.meta +6 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/refreshcount.js +43 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/refreshcount.js.meta +6 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/tiddlerfield-norefresh.js +36 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/tiddlerfield-norefresh.js.meta +6 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/tiddlerfield.js +46 -0
- package/editions/dev/tiddlers/javascript-widget-tutorial/tiddlerfield.js.meta +6 -0
- package/editions/dev/tiddlywiki.info +2 -1
- package/editions/fr-FR/tiddlers/$__editions_tw5.com_doc-macros.tid +1 -1
- package/editions/fr-FR/tiddlers/system/$__core_macros_list.tid +113 -0
- package/editions/fr-FR/tiddlers/system/$__core_macros_tag.tid +39 -0
- package/editions/fr-FR/tiddlers/system/$__core_ui_TagPickerTagTemplate.tid +25 -0
- package/editions/full/tiddlywiki.info +0 -1
- package/editions/introduction/tiddlywiki.info +0 -1
- package/editions/pluginlibrary/tiddlers/GettingStarted.tid +45 -0
- package/editions/pluginlibrary/tiddlers/PrereleaseLocalPluginLibrary.tid +6 -0
- package/editions/pluginlibrary/tiddlers/meta/SiteSubtitle.tid +3 -0
- package/editions/pluginlibrary/tiddlers/meta/SiteTitle.tid +3 -0
- package/editions/pluginlibrary/tiddlers/system/$__themes_tiddlywiki_vanilla_options_sidebarlayout.tid +3 -0
- package/editions/pluginlibrary/tiddlywiki.info +7 -0
- package/editions/prerelease/tiddlers/{Release 5.2.4.tid → Release 5.2.5.tid } +8 -17
- package/editions/prerelease/tiddlers/system/PrereleaseOfficialPluginLibrary.tid +1 -1
- package/editions/prerelease/tiddlers/system/TiddlyWiki Pre-release.tid +5 -1
- package/editions/test/tiddlers/tests/data/csv-cases.tid +282 -0
- package/editions/test/tiddlers/tests/data/filters/Recursion.tid +15 -0
- package/editions/test/tiddlers/tests/data/filters/fake-variables.tid +27 -0
- package/editions/test/tiddlers/tests/data/genesis-widget/DollarSigns.tid +14 -0
- package/editions/test/tiddlers/tests/data/genesis-widget/MultipleAttributes.tid +14 -0
- package/editions/test/tiddlers/tests/data/genesis-widget/Simple.tid +14 -0
- package/editions/test/tiddlers/tests/data/macros/NestedMacros.tid +36 -0
- package/editions/test/tiddlers/tests/data/pragmas/Parsermode.tid +36 -0
- package/editions/test/tiddlers/tests/data/transclude/Recursion.tid +13 -0
- package/editions/test/tiddlers/tests/modules/utils/test-csv.js +33 -0
- package/editions/test/tiddlers/tests/test-checkbox-widget.js +35 -1
- package/editions/test/tiddlers/tests/test-json-filters.js +112 -0
- package/editions/test/tiddlers/tests/test-linked-list.js +42 -2
- package/editions/test/tiddlers/tests/test-popup.js +63 -0
- package/editions/test/tiddlers/tests/test-utils.js +1 -0
- package/editions/test/tiddlers/tests/test-wikitext.js +16 -0
- package/editions/test/tiddlywiki.info +2 -1
- package/editions/translators/tiddlers/system/PageControlButtonsVisibility.multids +1 -0
- package/editions/translators/tiddlywiki.info +0 -1
- package/editions/tw.org/tiddlers/Code of Conduct.tid +4 -1
- package/editions/tw.org/tiddlers/Fundraising.tid +2 -2
- package/editions/tw5.com/tiddlers/Tables in WikiText CSS Utility Classes.tid +81 -0
- package/editions/tw5.com/tiddlers/_tw_shared/favicons/markplace.png +0 -0
- package/editions/tw5.com/tiddlers/_tw_shared/favicons/markplace.png.meta +3 -0
- package/editions/tw5.com/tiddlers/_tw_shared/sites/marketplace.tid +6 -0
- package/editions/tw5.com/tiddlers/_tw_shared/tags-TiddlyWikiSites.tid +1 -1
- package/editions/tw5.com/tiddlers/about/Funding TiddlyWiki.tid +19 -0
- package/editions/tw5.com/tiddlers/about/Open Collective.tid +14 -0
- package/editions/tw5.com/tiddlers/commands/CommandsCommand.tid +8 -0
- package/editions/tw5.com/tiddlers/commands/RenderTiddlerCommand.tid +2 -0
- package/editions/tw5.com/tiddlers/commands/RenderTiddlersCommand.tid +2 -0
- package/editions/tw5.com/tiddlers/commands/SaveTiddlerCommand.tid +2 -0
- package/editions/tw5.com/tiddlers/commands/SaveTiddlersCommand.tid +2 -0
- package/editions/tw5.com/tiddlers/community/plugins/GSD5.tid +2 -2
- package/editions/tw5.com/tiddlers/community/plugins/_JD Mobile Layout plugin_ by JD.tid +0 -1
- package/editions/tw5.com/tiddlers/community/resources/_Dropboard_ by Reid Gould.tid +0 -1
- package/editions/tw5.com/tiddlers/community/resources/_Hacks_ by Thomas Elmiger.tid +0 -2
- package/editions/tw5.com/tiddlers/community/resources/_MathCell_ by Ste Wilson.tid +0 -1
- package/editions/tw5.com/tiddlers/community/resources/_TiddlyServer_ by Matt Lauber.tid +0 -1
- package/editions/tw5.com/tiddlers/community/resources/_X3DOM for TiddlyWiki 5_ by Jamal Wills.tid +0 -1
- package/editions/tw5.com/tiddlers/concepts/CoordinateSystems.tid +42 -0
- package/editions/tw5.com/tiddlers/concepts/KeyboardShortcutTiddler.tid +2 -0
- package/editions/tw5.com/tiddlers/definitions/Federatial.tid +13 -1
- package/editions/tw5.com/tiddlers/definitions/HTML Block Elements.tid +9 -0
- package/editions/tw5.com/tiddlers/definitions/TiddlyWikiClassic.tid +3 -1
- package/editions/tw5.com/tiddlers/demonstrations/TableOfContentsMacro Selective Expandable Example custom icons.tid +16 -0
- package/editions/tw5.com/tiddlers/demonstrations/Tasks/TaskManagementExampleDraggable.tid +1 -1
- package/editions/tw5.com/tiddlers/features/DateFormat.tid +27 -3
- package/editions/tw5.com/tiddlers/features/JSON in TiddlyWiki.tid +1 -1
- package/editions/tw5.com/tiddlers/features/Modals.tid +3 -0
- package/editions/tw5.com/tiddlers/filters/examples/format Operator (Examples).tid +5 -2
- package/editions/tw5.com/tiddlers/filters/format.tid +5 -4
- package/editions/tw5.com/tiddlers/filters/jsonextract.tid +66 -0
- package/editions/tw5.com/tiddlers/filters/jsonget.tid +93 -0
- package/editions/tw5.com/tiddlers/filters/jsonindexes.tid +65 -0
- package/editions/tw5.com/tiddlers/filters/jsontype.tid +74 -0
- package/editions/tw5.com/tiddlers/gettingstarted/GettingStarted.tid +3 -7
- package/editions/tw5.com/tiddlers/hellothere/HelloThere.tid +23 -22
- package/editions/tw5.com/tiddlers/hellothere/HelloThumbnail.tid +1 -1
- package/editions/tw5.com/tiddlers/hellothere/thumbnails/HelloThumbnail - Funding.tid +10 -0
- package/editions/tw5.com/tiddlers/hellothere/thumbnails/HelloThumbnail - Grok TiddlyWiki.tid +2 -0
- package/editions/tw5.com/tiddlers/hellothere/thumbnails/HelloThumbnail - Introduction Video.tid +2 -0
- package/editions/tw5.com/tiddlers/hellothere/thumbnails/HelloThumbnail - Latest Version.tid +9 -1
- package/editions/tw5.com/tiddlers/hellothere/thumbnails/HelloThumbnail - Marketplace.tid +10 -0
- package/editions/tw5.com/tiddlers/hellothere/thumbnails/HelloThumbnail - TiddlyWikiLinks.tid +3 -1
- package/editions/tw5.com/tiddlers/hellothere/thumbnails/HelloThumbnail_-_Federatial.tid +11 -0
- package/editions/tw5.com/tiddlers/hiddensettings/Hidden Setting Default Story Ordering.tid +4 -0
- package/editions/tw5.com/tiddlers/hiddensettings/Hidden Setting Sync System Tiddlers From Server.tid +13 -0
- package/editions/tw5.com/tiddlers/hiddensettings/Hidden Setting SyncLogging.tid +13 -0
- package/editions/tw5.com/tiddlers/hiddensettings/Hidden Setting_ More Tabs Horizontal.tid +7 -0
- package/editions/tw5.com/tiddlers/howtos/How to create keyboard shortcuts.tid +2 -0
- package/editions/tw5.com/tiddlers/howtos/Reading data from JSON tiddlers.tid +10 -1
- package/editions/tw5.com/tiddlers/images/Federatial.png +0 -0
- package/editions/tw5.com/tiddlers/images/Federatial.png.meta +3 -0
- package/editions/tw5.com/tiddlers/images/Funding.png +0 -0
- package/editions/tw5.com/tiddlers/images/{TiddlyMap.png.meta → Funding.png.meta} +1 -1
- package/editions/tw5.com/tiddlers/images/Marketplace Banner.png +0 -0
- package/editions/tw5.com/tiddlers/images/Marketplace Banner.png.meta +3 -0
- package/editions/tw5.com/tiddlers/images/New Release Banner.png +0 -0
- package/editions/tw5.com/tiddlers/macros/ListMacro.tid +3 -1
- package/editions/tw5.com/tiddlers/macros/TableOfContentsMacro.tid +36 -2
- package/editions/tw5.com/tiddlers/marketplace/TiddlyWiki Marketplace.tid +18 -0
- package/editions/tw5.com/tiddlers/mechanisms/PopupMechanism.tid +1 -0
- package/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-modal.tid +4 -2
- package/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-new-tiddler.tid +1 -1
- package/editions/tw5.com/tiddlers/nodejs/Installing TiddlyWiki on Node.js.tid +2 -2
- package/editions/tw5.com/tiddlers/pragmas/Pragma_ _parsermode.tid +17 -0
- package/editions/tw5.com/tiddlers/releasenotes/Release 5.2.4.tid +140 -0
- package/editions/tw5.com/tiddlers/releasenotes/Releases.tid +1 -1
- package/editions/tw5.com/tiddlers/saving/Emergency Tiddler Export.tid +1 -1
- package/editions/tw5.com/tiddlers/saving/Saving on TiddlyHost.tid +1 -1
- package/editions/tw5.com/tiddlers/saving/Saving on TiddlySpot.tid +0 -1
- package/editions/tw5.com/tiddlers/saving/Saving with Polly.tid +1 -0
- package/editions/tw5.com/tiddlers/saving/Saving.tid +12 -5
- package/editions/tw5.com/tiddlers/saving/TiddlyBucket - Save to AWS or Google Storage.tid +15 -0
- package/editions/tw5.com/tiddlers/system/doc-macros.tid +1 -1
- package/editions/tw5.com/tiddlers/system/tw5.com-card-template.tid +1 -16
- package/editions/tw5.com/tiddlers/system/tw5.com-styles.tid +168 -40
- package/editions/tw5.com/tiddlers/system/version-macros.tid +3 -4
- package/editions/tw5.com/tiddlers/system/wikitext-macros.tid +43 -15
- package/editions/tw5.com/tiddlers/systemtags/SystemTag_ $__tags_ClassFilters_PageTemplate.tid +9 -0
- package/editions/tw5.com/tiddlers/systemtags/SystemTag_ $__tags_ClassFilters_TiddlerTemplate.tid +9 -0
- package/editions/tw5.com/tiddlers/systemtags/SystemTag_ $__tags_Filter.tid +2 -2
- package/editions/tw5.com/tiddlers/testimonials/Testimonials - Joe Armstrong.tid +8 -0
- package/editions/tw5.com/tiddlers/testimonials/Testimonials - Network World.tid +8 -0
- package/editions/tw5.com/tiddlers/testimonials/Testimonials - Product Hunt.tid +6 -0
- package/editions/tw5.com/tiddlers/webserver/Using the external JavaScript template.tid +10 -10
- package/editions/tw5.com/tiddlers/webserver/WebServer API_ Get All Tiddlers.tid +3 -1
- package/editions/tw5.com/tiddlers/widgets/ActionPopupWidget.tid +4 -3
- package/editions/tw5.com/tiddlers/widgets/ButtonWidget.tid +2 -1
- package/editions/tw5.com/tiddlers/widgets/DraggableWidget.tid +2 -1
- package/editions/tw5.com/tiddlers/widgets/ErrorWidget.tid +17 -0
- package/editions/tw5.com/tiddlers/widgets/EventCatcherWidget.tid +4 -3
- package/editions/tw5.com/tiddlers/widgets/GenesisWidget.tid +41 -0
- package/editions/tw5.com/tiddlers/widgets/LetWidget.tid +4 -1
- package/editions/tw5.com/tiddlers/widgets/ScrollableWidget.tid +1 -1
- package/editions/tw5.com/tiddlers/widgets/SelectWidget.tid +1 -0
- package/editions/tw5.com/tiddlers/wikitext/Macro Definitions in WikiText.tid +27 -4
- package/editions/tw5.com/tiddlers/wikitext/Styles and Classes in WikiText.tid +1 -1
- package/editions/tw5.com/tiddlers/wikitext/Table Classes Captions Headers and Footers.tid +20 -0
- package/editions/tw5.com/tiddlers/wikitext/Tables in WikiText.tid +3 -13
- package/editions/tw5.com/tiddlers/wikitext/Utility Classes.tid +20 -0
- package/editions/tw5.com/tiddlers/wikitext/parser/WikiText Parser Modes.tid +1 -1
- package/editions/twitter-archivist/tiddlers/DefaultTiddlers.tid +4 -0
- package/editions/twitter-archivist/tiddlers/HelloThere.tid +9 -0
- package/editions/twitter-archivist/tiddlers/SiteSubtitle.tid +3 -0
- package/editions/twitter-archivist/tiddlers/SiteTitle.tid +3 -0
- package/editions/twitter-archivist/tiddlywiki.info +16 -0
- package/languages/ar-PS/ControlPanel.multids +1 -1
- package/languages/ca-ES/ControlPanel.multids +1 -1
- package/languages/cs-CZ/ControlPanel.multids +1 -1
- package/languages/da-DK/ControlPanel.multids +1 -1
- package/languages/de-DE/Buttons.multids +5 -1
- package/languages/de-DE/ControlPanel.multids +1 -1
- package/languages/de-DE/Help/commands.tid +14 -0
- package/languages/de-DE/Misc.multids +1 -0
- package/languages/el-GR/ControlPanel.multids +1 -1
- package/languages/es-ES/Buttons.multids +89 -87
- package/languages/es-ES/ControlPanel.multids +18 -1
- package/languages/es-ES/Docs/PaletteColours.multids +2 -2
- package/languages/es-ES/EditTemplate.multids +3 -0
- package/languages/es-ES/Fields.multids +4 -3
- package/languages/es-ES/GettingStarted.tid +4 -3
- package/languages/es-ES/Help/default.tid +4 -1
- package/languages/es-ES/Help/listen.tid +0 -1
- package/languages/es-ES/Help/render.tid +2 -2
- package/languages/es-ES/Import.multids +1 -1
- package/languages/es-ES/Misc.multids +2 -1
- package/languages/es-ES/SideBar.multids +1 -0
- package/languages/es-ES/Snippets/ListByTag.tid +1 -1
- package/languages/fa-IR/ControlPanel.multids +1 -1
- package/languages/fr-FR/Buttons.multids +2 -0
- package/languages/fr-FR/ControlPanel.multids +4 -4
- package/languages/fr-FR/Misc.multids +3 -2
- package/languages/hi-IN/ControlPanel.multids +1 -1
- package/languages/ia-IA/ControlPanel.multids +1 -1
- package/languages/it-IT/ControlPanel.multids +1 -1
- package/languages/ja-JP/ControlPanel.multids +9 -9
- package/languages/ko-KR/ControlPanel.multids +1 -1
- package/languages/nl-NL/ControlPanel.multids +1 -1
- package/languages/pl-PL/Buttons.multids +7 -3
- package/languages/pl-PL/ControlPanel.multids +26 -24
- package/languages/pl-PL/GettingStarted.tid +4 -3
- package/languages/pl-PL/Help/commands.tid +18 -0
- package/languages/pl-PL/Help/render.tid +2 -2
- package/languages/pl-PL/Misc.multids +1 -0
- package/languages/pl-PL/ThemeTweaks.multids +3 -3
- package/languages/pt-BR/ControlPanel.multids +1 -1
- package/languages/pt-PT/ControlPanel.multids +1 -1
- package/languages/ru-RU/ControlPanel.multids +1 -1
- package/languages/sk-SK/ControlPanel.multids +1 -1
- package/languages/sl-SI/ControlPanel.multids +1 -1
- package/languages/sv-SE/ControlPanel.multids +1 -1
- package/languages/zh-Hans/Buttons.multids +36 -32
- package/languages/zh-Hans/ControlPanel.multids +19 -19
- package/languages/zh-Hans/CoreReadMe.tid +1 -1
- package/languages/zh-Hans/Docs/ModuleTypes.multids +2 -2
- package/languages/zh-Hans/Docs/PaletteColours.multids +8 -8
- package/languages/zh-Hans/Fields.multids +7 -7
- package/languages/zh-Hans/Filters.multids +1 -1
- package/languages/zh-Hans/GettingStarted.tid +8 -6
- package/languages/zh-Hans/Help/commands.tid +18 -0
- package/languages/zh-Hans/Help/fetch.tid +6 -6
- package/languages/zh-Hans/Help/init.tid +1 -1
- package/languages/zh-Hans/Help/listen.tid +5 -5
- package/languages/zh-Hans/Help/makelibrary.tid +1 -1
- package/languages/zh-Hans/Help/savetiddlers.tid +1 -1
- package/languages/zh-Hans/Help/server.tid +6 -6
- package/languages/zh-Hans/Help/setfield.tid +3 -3
- package/languages/zh-Hans/Import.multids +1 -1
- package/languages/zh-Hans/Misc.multids +12 -11
- package/languages/zh-Hans/Search.multids +6 -6
- package/languages/zh-Hans/SiteSubtitle.tid +1 -1
- package/languages/zh-Hans/Snippets/ListByTag.tid +1 -1
- package/languages/zh-Hans/ThemeTweaks.multids +7 -7
- package/languages/zh-Hans/TiddlerInfo.multids +2 -2
- package/languages/zh-Hant/Buttons.multids +4 -0
- package/languages/zh-Hant/ControlPanel.multids +2 -2
- package/languages/zh-Hant/Fields.multids +2 -2
- package/languages/zh-Hant/GettingStarted.tid +4 -3
- package/languages/zh-Hant/Help/commands.tid +18 -0
- package/languages/zh-Hant/Misc.multids +1 -0
- package/licenses/cla-individual.md +4 -0
- package/package.json +1 -1
- package/plugins/tiddlywiki/codemirror/engine.js +4 -0
- package/plugins/tiddlywiki/dynannotate/docs/readme.tid +2 -2
- package/plugins/tiddlywiki/dynannotate/modules/dynannotate.js +4 -2
- package/plugins/tiddlywiki/help/tabs/Support.tid +6 -2
- package/plugins/tiddlywiki/jasmine/command.js +33 -0
- package/plugins/tiddlywiki/jasmine/help.tid +24 -0
- package/plugins/tiddlywiki/jasmine/jasmine-plugin.js +24 -18
- package/plugins/tiddlywiki/jasmine/readme.tid +31 -1
- package/plugins/tiddlywiki/jasmine/run-wiki-based-tests.js +93 -0
- package/plugins/tiddlywiki/jasmine/startup.js +37 -0
- package/plugins/tiddlywiki/translators/macros/translatableStringEditor.tid +6 -0
- package/plugins/tiddlywiki/translators/system/styles.tid +5 -0
- package/plugins/tiddlywiki/twitter-archivist/Twitter Archives.tid +5 -0
- package/plugins/tiddlywiki/twitter-archivist/archivist.js +319 -0
- package/plugins/tiddlywiki/twitter-archivist/configTiddlerInfoMode.tid +2 -0
- package/plugins/tiddlywiki/twitter-archivist/loadtwitterarchive.js +53 -0
- package/plugins/tiddlywiki/twitter-archivist/macros.tid +222 -0
- package/plugins/tiddlywiki/twitter-archivist/plugin.info +6 -0
- package/plugins/tiddlywiki/twitter-archivist/readme.tid +33 -0
- package/plugins/tiddlywiki/twitter-archivist/spec.tid +62 -0
- package/plugins/tiddlywiki/twitter-archivist/startup.js +38 -0
- package/plugins/tiddlywiki/twitter-archivist/styles.tid +47 -0
- package/plugins/tiddlywiki/twitter-archivist/template-archive.tid +3 -0
- package/plugins/tiddlywiki/twitter-archivist/template-hashtag.tid +3 -0
- package/plugins/tiddlywiki/twitter-archivist/template-tweet.tid +3 -0
- package/plugins/tiddlywiki/twitter-archivist/template-tweeter.tid +3 -0
- package/plugins/tiddlywiki/twitter-archivist/todo.tid +15 -0
- package/plugins/tiddlywiki/twitter-archivist/usage.tid +18 -0
- package/plugins/tiddlywiki/twitter-archivist/view-template-body-cascade.tid +8 -0
- package/plugins/tiddlywiki/upgrade/UpgradeWizard.tid +3 -3
- package/readme.md +1 -1
- package/themes/tiddlywiki/vanilla/base.tid +131 -10
- package/editions/fr-FR/tiddlers/$__core_ui_TagTemplate.tid +0 -33
- package/editions/tw5.com/tiddlers/hellothere/thumbnails/HelloThumbnail - Classic.tid +0 -6
- package/editions/tw5.com/tiddlers/hellothere/thumbnails/HelloThumbnail - Developers.tid +0 -7
- package/editions/tw5.com/tiddlers/hellothere/thumbnails/HelloThumbnail - Gentle Guide.tid +0 -11
- package/editions/tw5.com/tiddlers/hellothere/thumbnails/HelloThumbnail - HelpingTiddlyWiki.tid +0 -7
- package/editions/tw5.com/tiddlers/hellothere/thumbnails/HelloThumbnail - TWEUM2017.tid +0 -8
- package/editions/tw5.com/tiddlers/hellothere/thumbnails/HelloThumbnail - TiddlyMap.tid +0 -6
- package/editions/tw5.com/tiddlers/images/Dev Thumbnail.jpg +0 -0
- package/editions/tw5.com/tiddlers/images/Dev Thumbnail.jpg.meta +0 -3
- package/editions/tw5.com/tiddlers/images/TiddlyMap.png +0 -0
@@ -1,15 +1,16 @@
|
|
1
1
|
title: $:/language/
|
2
2
|
|
3
|
-
AboveStory/ClassicPlugin/Warning:
|
3
|
+
AboveStory/ClassicPlugin/Warning: 您似乎要加载为 ~TiddlyWiki 经典版设计的插件。请注意,[[这些插件无法运行于 TiddlyWiki 5.x.x 版|https://tiddlywiki.com/#TiddlyWikiClassic]]。检测到 ~TiddlyWiki 经典版插件:
|
4
4
|
BinaryWarning/Prompt: 此条目包含二进制数据
|
5
5
|
ClassicWarning/Hint: 此条目以经典版 TiddlyWiki 标记格式撰写,不完全兼容新版 TiddlyWiki 的格式,详细信息请参阅:https://tiddlywiki.com/static/Upgrading。
|
6
6
|
ClassicWarning/Upgrade/Caption: 升级
|
7
7
|
CloseAll/Button: 全部关闭
|
8
8
|
ColourPicker/Recent: 最近︰
|
9
|
-
ConfirmCancelTiddler:
|
9
|
+
ConfirmCancelTiddler: 您确定要取消对条目 "<$text text=<<title>>/>" 的更改?
|
10
10
|
ConfirmDeleteTiddler: 您确定要删除条目 "<$text text=<<title>>/>"?
|
11
|
-
|
12
|
-
|
11
|
+
ConfirmDeleteTiddlers: 您确定要删除 <<resultCount>> 个条目?
|
12
|
+
ConfirmOverwriteTiddler: 您确定要覆盖条目 "<$text text=<<title>>/>"?
|
13
|
+
ConfirmEditShadowTiddler: 您即将要编辑默认条目,任何更改将会覆盖默认的系统,使未来的升级不寻常。您确定要编辑 "<$text text=<<title>>/>"?
|
13
14
|
ConfirmAction: 是否要继续?
|
14
15
|
Count: 计数
|
15
16
|
DefaultNewTiddlerTitle: 新条目
|
@@ -34,8 +35,8 @@ Error/NetworkErrorAlert: `<h2>''网络错误''</h2>与服务器的连缐似乎
|
|
34
35
|
Error/PutEditConflict: 服务器上的文件已更改
|
35
36
|
Error/PutForbidden: 没有权限
|
36
37
|
Error/PutUnauthorized: 需要身分验证
|
37
|
-
Error/RecursiveTransclusion: 于 transclude
|
38
|
-
Error/RetrievingSkinny:
|
38
|
+
Error/RecursiveTransclusion: 于 transclude 小部件中的递归嵌入错误
|
39
|
+
Error/RetrievingSkinny: 简要条目清单提取错误
|
39
40
|
Error/SavingToTWEdit: 保存到 TWEdit 时,发生错误
|
40
41
|
Error/WhileSaving: 保存时,发生错误
|
41
42
|
Error/XMLHttpRequest: XMLHttpRequest 错误代码
|
@@ -45,10 +46,10 @@ LayoutSwitcher/Description: 打开布局切换器
|
|
45
46
|
LazyLoadingWarning: <p>正在从 ''<$text text={{!!_canonical_uri}}/>'' 加载外部内容 ...</p><p>如果此信息未消失,可能是条目内容类型与外部内容的类型不匹配,或是您可能正在使用的浏览器,不支援单文件式维基的外部内容。请参阅 https://tiddlywiki.com/#ExternalText</p>
|
46
47
|
LoginToTiddlySpace: 登录 TiddlySpace
|
47
48
|
Manager/Controls/FilterByTag/None: (无)
|
48
|
-
Manager/Controls/FilterByTag/Prompt:
|
49
|
+
Manager/Controls/FilterByTag/Prompt: 按标签筛选︰
|
49
50
|
Manager/Controls/Order/Prompt: 反向顺序
|
50
|
-
Manager/Controls/Search/Placeholder:
|
51
|
-
Manager/Controls/Search/Prompt:
|
51
|
+
Manager/Controls/Search/Placeholder: 搜索
|
52
|
+
Manager/Controls/Search/Prompt: 搜索︰
|
52
53
|
Manager/Controls/Show/Option/Tags: 标签
|
53
54
|
Manager/Controls/Show/Option/Tiddlers: 条目
|
54
55
|
Manager/Controls/Show/Prompt: 显示︰
|
@@ -71,14 +72,14 @@ PluginReloadWarning: 请保存 {{$:/core/ui/Buttons/save-wiki}} 并刷新页面
|
|
71
72
|
RecentChanges/DateFormat: YYYY年0MM月0DD日
|
72
73
|
Shortcuts/Input/Accept/Hint: 接受选取的项目
|
73
74
|
Shortcuts/Input/AcceptVariant/Hint: 接受选取项目 (变种)
|
74
|
-
Shortcuts/Input/AdvancedSearch/Hint:
|
75
|
+
Shortcuts/Input/AdvancedSearch/Hint: 从侧边栏搜索字段内打开[[进阶搜索|$:/AdvancedSearch]]面板
|
75
76
|
Shortcuts/Input/Cancel/Hint: 清除输入字段
|
76
77
|
Shortcuts/Input/Down/Hint: 选择下一个项目
|
77
78
|
Shortcuts/Input/Tab-Left/Hint: 选择上一个页签
|
78
79
|
Shortcuts/Input/Tab-Right/Hint: 选择下一个页签
|
79
80
|
Shortcuts/Input/Up/Hint: 选择前一个项目
|
80
81
|
Shortcuts/SidebarLayout/Hint: 更改侧边栏布局
|
81
|
-
Switcher/Subtitle/theme:
|
82
|
+
Switcher/Subtitle/theme: 切换布局主题
|
82
83
|
Switcher/Subtitle/layout: 切换布局
|
83
84
|
Switcher/Subtitle/language: 切换语言
|
84
85
|
Switcher/Subtitle/palette: 切换调色板
|
@@ -2,19 +2,19 @@ title: $:/language/Search/
|
|
2
2
|
|
3
3
|
DefaultResults/Caption: 列表
|
4
4
|
Filter/Caption: 筛选
|
5
|
-
Filter/Hint: 以[[筛选表达式|https://tiddlywiki.com/static/Filters.html]]
|
5
|
+
Filter/Hint: 以[[筛选表达式|https://tiddlywiki.com/static/Filters.html]]搜索
|
6
6
|
Filter/Matches: //<small><<resultCount>> 个条目符合条件</small>//
|
7
7
|
Matches: //<small><<resultCount>> 个条目符合条件</small>//
|
8
8
|
Matches/All: 所有匹配:
|
9
9
|
Matches/Title: 条目名称匹配:
|
10
|
-
Search:
|
11
|
-
Search/TooShort:
|
10
|
+
Search: 搜索
|
11
|
+
Search/TooShort: 搜索文本太短
|
12
12
|
Shadows/Caption: 默认
|
13
|
-
Shadows/Hint:
|
13
|
+
Shadows/Hint: 搜索默认条目
|
14
14
|
Shadows/Matches: //<small><<resultCount>> 个条目符合条件</small>//
|
15
15
|
Standard/Caption: 标准
|
16
|
-
Standard/Hint:
|
16
|
+
Standard/Hint: 搜索一般条目
|
17
17
|
Standard/Matches: //<small><<resultCount>> 个条目符合条件</small>//
|
18
18
|
System/Caption: 系统
|
19
|
-
System/Hint:
|
19
|
+
System/Hint: 搜索系统条目
|
20
20
|
System/Matches: //<small><<resultCount>> 个条目符合条件</small>//
|
@@ -1,21 +1,21 @@
|
|
1
1
|
title: $:/language/ThemeTweaks/
|
2
2
|
|
3
3
|
ThemeTweaks: 主题调整
|
4
|
-
ThemeTweaks/Hint: 您可以调整 ''Vanilla''
|
4
|
+
ThemeTweaks/Hint: 您可以调整 ''Vanilla'' 布局主题的某些样貌。
|
5
5
|
Options: 选项
|
6
6
|
Options/SidebarLayout: 侧边栏布局
|
7
7
|
Options/SidebarLayout/Fixed-Fluid: 固定故事,浮动侧边栏
|
8
8
|
Options/SidebarLayout/Fluid-Fixed: 浮动故事,固定侧边栏
|
9
9
|
Options/StickyTitles: 置顶标题
|
10
|
-
Options/StickyTitles/Hint:
|
11
|
-
Options/CodeWrapping:
|
10
|
+
Options/StickyTitles/Hint: 使条目名称吸顶
|
11
|
+
Options/CodeWrapping: 在代码区块中换行
|
12
12
|
Settings: 设置
|
13
13
|
Settings/FontFamily: 字型
|
14
14
|
Settings/CodeFontFamily: 代码字型
|
15
15
|
Settings/EditorFontFamily: 编辑器字型
|
16
16
|
Settings/BackgroundImage: 页面背景图像
|
17
17
|
Settings/BackgroundImageAttachment: 页面背景图像附属
|
18
|
-
Settings/BackgroundImageAttachment/Scroll:
|
18
|
+
Settings/BackgroundImageAttachment/Scroll: 随条目滚动
|
19
19
|
Settings/BackgroundImageAttachment/Fixed: 固定于窗口
|
20
20
|
Settings/BackgroundImageSize: 页面背景图像大小
|
21
21
|
Settings/BackgroundImageSize/Auto: 自动
|
@@ -28,8 +28,8 @@ Metrics/BodyFontSize: 条目本文的字体大小
|
|
28
28
|
Metrics/BodyLineHeight: 条目本文的行高
|
29
29
|
Metrics/StoryLeft: 故事左侧位置
|
30
30
|
Metrics/StoryLeft/Hint: 故事河(条目区)的左边缘与页面左端的间距
|
31
|
-
Metrics/StoryTop:
|
32
|
-
Metrics/StoryTop/Hint:
|
31
|
+
Metrics/StoryTop: 故事顶部位置
|
32
|
+
Metrics/StoryTop/Hint: 故事河(条目区)的上边缘与页面顶部的间距
|
33
33
|
Metrics/StoryRight: 故事右侧位置
|
34
34
|
Metrics/StoryRight/Hint: 侧边栏的左边缘与页面左端的间距
|
35
35
|
Metrics/StoryWidth: 故事的宽度
|
@@ -39,4 +39,4 @@ Metrics/TiddlerWidth/Hint: 在故事河内
|
|
39
39
|
Metrics/SidebarBreakpoint: 侧边栏中断点
|
40
40
|
Metrics/SidebarBreakpoint/Hint: 故事河和侧边栏会并排显示的最小页面宽度
|
41
41
|
Metrics/SidebarWidth: 侧边栏宽度
|
42
|
-
Metrics/SidebarWidth/Hint:
|
42
|
+
Metrics/SidebarWidth/Hint: 在 浮动故事,固定侧边栏 布局中,侧边栏的宽度
|
@@ -8,8 +8,8 @@ Advanced/ShadowInfo/Heading: 默认条目状态
|
|
8
8
|
Advanced/ShadowInfo/NotShadow/Hint: <$link to=<<infoTiddler>>><$text text=<<infoTiddler>>/></$link> 不是一个默认条目
|
9
9
|
Advanced/ShadowInfo/Shadow/Hint: <$link to=<<infoTiddler>>><$text text=<<infoTiddler>>/></$link> 是一个默认条目
|
10
10
|
Advanced/ShadowInfo/Shadow/Source: 此条目定义于插件 <$link to=<<pluginTiddler>>><$text text=<<pluginTiddler>>/></$link>
|
11
|
-
Advanced/ShadowInfo/OverriddenShadow/Hint:
|
12
|
-
Fields/Caption:
|
11
|
+
Advanced/ShadowInfo/OverriddenShadow/Hint: 已被一般条目覆盖
|
12
|
+
Fields/Caption: 字段
|
13
13
|
List/Caption: 列表
|
14
14
|
List/Empty: 此条目无指定列表
|
15
15
|
Listed/Caption: 被列于
|
@@ -18,6 +18,8 @@ CopyToClipboard/Caption: 複製到剪貼簿
|
|
18
18
|
CopyToClipboard/Hint: 將此文字複製到剪貼簿
|
19
19
|
Delete/Caption: 刪除
|
20
20
|
Delete/Hint: 刪除此條目
|
21
|
+
DeleteTiddlers/Caption: 刪除條目
|
22
|
+
DeleteTiddlers/Hint: 刪除條目
|
21
23
|
Edit/Caption: 編輯
|
22
24
|
Edit/Hint: 編輯此條目
|
23
25
|
Encryption/Caption: 加密
|
@@ -57,6 +59,8 @@ Info/Caption: 資訊
|
|
57
59
|
Info/Hint: 顯示此條目的資訊
|
58
60
|
Language/Caption: 語言
|
59
61
|
Language/Hint: 選擇使用者介面語言
|
62
|
+
LayoutSwitcher/Hint: 開啟版面切換器
|
63
|
+
LayoutSwitcher/Caption: 版面
|
60
64
|
Manager/Caption: 條目管理器
|
61
65
|
Manager/Hint: 開啟條目管理器
|
62
66
|
More/Caption: 更多
|
@@ -7,7 +7,7 @@ Appearance/Hint: 自訂您的 TiddlyWiki 外觀。
|
|
7
7
|
Basics/AnimDuration/Prompt: 動畫持續時間
|
8
8
|
Basics/AutoFocus/Prompt: 編輯條目時的預設自動停留欄位
|
9
9
|
Basics/Caption: 基本
|
10
|
-
Basics/DefaultTiddlers/BottomHint: 標題含空白時請使用 [[雙中括弧]],或者您可用
|
10
|
+
Basics/DefaultTiddlers/BottomHint: 標題含空白時請使用 [[雙中括弧]],或者您可用 {{保留開啟中的條目順序||$:/snippets/retain-story-ordering-button}}
|
11
11
|
Basics/DefaultTiddlers/Prompt: 首頁
|
12
12
|
Basics/DefaultTiddlers/TopHint: 預設開啟的條目
|
13
13
|
Basics/Language/Prompt: 您好!當前的語言:
|
@@ -24,7 +24,7 @@ Basics/Subtitle/Prompt: 副標題
|
|
24
24
|
Basics/SystemTiddlers/Prompt: 系統條目數量
|
25
25
|
Basics/Tags/Prompt: 標籤數量
|
26
26
|
Basics/Tiddlers/Prompt: 一般條目數量
|
27
|
-
Basics/Title/Prompt:
|
27
|
+
Basics/Title/Prompt: 此 ~TiddlyWiki 的標題
|
28
28
|
Basics/Username/Prompt: 編輯者署名
|
29
29
|
Basics/Version/Prompt: ~TiddlyWiki 版本
|
30
30
|
Cascades/Caption: 級聯
|
@@ -13,7 +13,7 @@ dependents: 插件的相依插件列表
|
|
13
13
|
description: 插件的說明、描述
|
14
14
|
draft.of: 草稿條目,包含條目的標題、標籤、欄位 ...
|
15
15
|
draft.title: 草稿條目的標題
|
16
|
-
footer:
|
16
|
+
footer: 互動視窗的註腳
|
17
17
|
hide-body: 若設定為 ''yes'',檢視範本將隱藏條目的主體
|
18
18
|
icon: 條目的標題含有與條目關聯的圖示
|
19
19
|
library: 若設定為 ''yes'',表示條目應該被儲存為一個 JavaScript 程式庫
|
@@ -28,7 +28,7 @@ plugin-type: 套件條目的類型
|
|
28
28
|
released: TiddlyWiki 的釋出日期
|
29
29
|
revision: 條目存放於伺服器中的修訂版本
|
30
30
|
source: 條目的網址
|
31
|
-
subtitle:
|
31
|
+
subtitle: 互動視窗的副標題
|
32
32
|
tags: 條目的標籤清單
|
33
33
|
text: 條目的內文
|
34
34
|
throttle.refresh: 如果存在,則限制此條目的刷新
|
@@ -9,9 +9,10 @@ title: GettingStarted
|
|
9
9
|
|
10
10
|
<div class="tc-control-panel">
|
11
11
|
|
12
|
-
|
13
|
-
|
14
|
-
|
12
|
+
|tc-table-no-border tc-first-col-min-width tc-first-link-nowrap|k
|
13
|
+
| <$link to="$:/SiteTitle"><<lingo Title/Prompt>></$link>|<$edit-text tiddler="$:/SiteTitle" default="" tag="input"/> |
|
14
|
+
| <$link to="$:/SiteSubtitle"><<lingo Subtitle/Prompt>></$link>|<$edit-text tiddler="$:/SiteSubtitle" default="" tag="input"/> |
|
15
|
+
|^ <$link to="$:/DefaultTiddlers"><<lingo DefaultTiddlers/Prompt>></$link><br><<lingo DefaultTiddlers/TopHint>>|<$edit tag="textarea" tiddler="$:/DefaultTiddlers"/><br>//<<lingo DefaultTiddlers/BottomHint>>// |
|
15
16
|
</div>
|
16
17
|
|
17
18
|
請參閱[[控制台|$:/ControlPanel]]查看更多選項。
|
@@ -0,0 +1,18 @@
|
|
1
|
+
title: $:/language/Help/commands
|
2
|
+
description: 執行從篩選器傳回的命令
|
3
|
+
|
4
|
+
按順序執行從篩選器傳回的命令符記
|
5
|
+
|
6
|
+
```
|
7
|
+
--commands <filter>
|
8
|
+
```
|
9
|
+
|
10
|
+
範例
|
11
|
+
|
12
|
+
```
|
13
|
+
--commands "[enlist{$:/build-commands-as-text}]"
|
14
|
+
```
|
15
|
+
|
16
|
+
```
|
17
|
+
--commands "[{$:/build-commands-as-json}jsonindexes[]] :map[{$:/build-commands-as-json}jsonget<currentTiddler>]"
|
18
|
+
```
|
@@ -8,6 +8,7 @@ CloseAll/Button: 全部關閉
|
|
8
8
|
ColourPicker/Recent: 最近︰
|
9
9
|
ConfirmCancelTiddler: 您確定要放棄對條目 "<$text text=<<title>>/>" 的更改?
|
10
10
|
ConfirmDeleteTiddler: 您確定要刪除條目 "<$text text=<<title>>/>"?
|
11
|
+
ConfirmDeleteTiddlers: 您確定要刪除 <<resultCount>> 個條目?
|
11
12
|
ConfirmOverwriteTiddler: 您確定要覆寫條目 "<$text text=<<title>>/>"?
|
12
13
|
ConfirmEditShadowTiddler: 您即將要編輯預設條目,任何更改將會覆蓋預設的系統,使未來的升級不尋常。您確定要編輯 "<$text text=<<title>>/>"?
|
13
14
|
ConfirmAction: 是否要繼續?
|
package/package.json
CHANGED
@@ -186,6 +186,10 @@ function CodeMirrorEngine(options) {
|
|
186
186
|
return false;
|
187
187
|
});
|
188
188
|
this.cm.on("keydown",function(cm,event) {
|
189
|
+
if ($tw.keyboardManager.handleKeydownEvent(event, {onlyPriority: true})) {
|
190
|
+
return true;
|
191
|
+
}
|
192
|
+
|
189
193
|
return self.widget.handleKeydownEvent.call(self.widget,event);
|
190
194
|
});
|
191
195
|
this.cm.on("focus",function(cm,event) {
|
@@ -108,11 +108,11 @@ The selection tracker triggers an action string whenever the browser text select
|
|
108
108
|
|
109
109
|
The selection tracker works within DOM subtrees that have the following structure:
|
110
110
|
|
111
|
-
* The outer wrapper element has the attribute `data-selection-
|
111
|
+
* The outer wrapper element has the attribute `data-selection-actions-title` containing the title of the tiddler containing the action string to be invoked when the selection changes
|
112
112
|
* Each child element of the outer element must have a unique `id` attribute to identify it
|
113
113
|
|
114
114
|
```
|
115
|
-
<div data-selection-
|
115
|
+
<div data-selection-actions-title="{tiddler title}">
|
116
116
|
<div id="{title}">
|
117
117
|
Content text
|
118
118
|
</div>
|
@@ -16,6 +16,8 @@ var TextMap = require("$:/plugins/tiddlywiki/dynannotate/textmap.js").TextMap;
|
|
16
16
|
|
17
17
|
var Widget = require("$:/core/modules/widgets/widget.js").widget;
|
18
18
|
|
19
|
+
var Popup = require("$:/core/modules/utils/dom/popup.js");
|
20
|
+
|
19
21
|
var DynannotateWidget = function(parseTreeNode,options) {
|
20
22
|
this.initialise(parseTreeNode,options);
|
21
23
|
};
|
@@ -191,7 +193,7 @@ DynannotateWidget.prototype.applyAnnotations = function() {
|
|
191
193
|
"tv-selection-posy": (bounds.top).toString(),
|
192
194
|
"tv-selection-width": (bounds.width).toString(),
|
193
195
|
"tv-selection-height": (bounds.height).toString(),
|
194
|
-
"tv-selection-coords":
|
196
|
+
"tv-selection-coords": Popup.buildCoordinates(Popup.coordinatePrefix.csOffsetParent,bounds)
|
195
197
|
});
|
196
198
|
if(self.hasAttribute("popup")) {
|
197
199
|
$tw.popup.triggerPopup({
|
@@ -330,7 +332,7 @@ DynannotateWidget.prototype.applySnippets = function() {
|
|
330
332
|
// Output the match
|
331
333
|
container.appendChild($tw.utils.domMaker("span",{
|
332
334
|
text: textMap.string.slice(match.startPos,match.endPos),
|
333
|
-
"class": "tc-dynannotate-snippet-highlight " + self.getAttribute("searchClass")
|
335
|
+
"class": "tc-dynannotate-snippet-highlight " + self.getAttribute("searchClass","")
|
334
336
|
}));
|
335
337
|
// Does the context of this match merge into the next?
|
336
338
|
merged = index < matches.length - 1 && matches[index + 1].startPos - match.endPos <= 2 * contextLength;
|
@@ -4,9 +4,13 @@ caption: Support
|
|
4
4
|
|
5
5
|
~TiddlyWiki is an open source project with a vibrant community of users and developers. We're always happy to help new users get the most from ~TiddlyWiki.
|
6
6
|
|
7
|
-
Join the ~TiddlyWiki
|
7
|
+
Join the ~TiddlyWiki forum:
|
8
8
|
|
9
|
-
|
9
|
+
https://talk.tiddlywiki.org/
|
10
|
+
|
11
|
+
For the convenience of existing users, we also continue to operate the original TiddlyWiki group (hosted on Google Groups since 2005):
|
12
|
+
|
13
|
+
https://groups.google.com/group/TiddlyWiki
|
10
14
|
|
11
15
|
Post bug reports to the ~TiddlyWiki ~GitHub repository:
|
12
16
|
|
@@ -0,0 +1,33 @@
|
|
1
|
+
/*\
|
2
|
+
title: $:/plugins/tiddlywiki/jasmine/command.js
|
3
|
+
type: application/javascript
|
4
|
+
module-type: command
|
5
|
+
|
6
|
+
The command which executes jasmine on the command line for TiddlyWiki5
|
7
|
+
|
8
|
+
\*/
|
9
|
+
|
10
|
+
/*jslint node: true, browser: true */
|
11
|
+
/*global $tw: false */
|
12
|
+
"use strict";
|
13
|
+
|
14
|
+
var jasmine = require("./jasmine-plugin.js");
|
15
|
+
|
16
|
+
exports.info = {
|
17
|
+
name: "test",
|
18
|
+
synchronous: false,
|
19
|
+
namedParameterMode: true
|
20
|
+
};
|
21
|
+
|
22
|
+
var Command = function(params,commander,callback) {
|
23
|
+
this.params = params;
|
24
|
+
this.commander = commander;
|
25
|
+
this.callback = callback;
|
26
|
+
};
|
27
|
+
|
28
|
+
Command.prototype.execute = function() {
|
29
|
+
var specFilter = this.params.spec;
|
30
|
+
jasmine.runTests(this.callback,specFilter);
|
31
|
+
};
|
32
|
+
|
33
|
+
exports.Command = Command;
|
@@ -0,0 +1,24 @@
|
|
1
|
+
title: $:/language/Help/test
|
2
|
+
description: Run the jasmine test suite
|
3
|
+
|
4
|
+
This runs all of the tests in tiddlers tagged with `$:/tags/test-spec`.
|
5
|
+
|
6
|
+
```
|
7
|
+
--test [spec=<regExp>]
|
8
|
+
```
|
9
|
+
|
10
|
+
''spec'' - optional regular expression to run only specific suites or tests. It will be matched against the full name of every test to see whether to run it. The full name of a test is its assigned name prepended with the names of all containing suites. For instance, to run only the following test:
|
11
|
+
|
12
|
+
```
|
13
|
+
describe("Framework") { it("handles edgecases") { ... } }
|
14
|
+
```
|
15
|
+
|
16
|
+
You might use a specFilter like `"^Framework handles edgecases$"` to match the full name exactly, or more simply `"edgecases"`, though this might run other tests with "edgecases" in their name. You could also run all tests in that suite with `"^Framework"`.
|
17
|
+
|
18
|
+
If any tests fail or are skipped, all following commands are ignored. If you have any commands which must be executed regardless of test results, execute them first.
|
19
|
+
|
20
|
+
A common usage is to run the tests on the console after creating a Tiddlywiki file which will run the tests on the browser.
|
21
|
+
|
22
|
+
```
|
23
|
+
tiddlywiki --rendertiddler $:/core/save/all test.html text/plain --test
|
24
|
+
```
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*\
|
2
2
|
title: $:/plugins/tiddlywiki/jasmine/jasmine-plugin.js
|
3
3
|
type: application/javascript
|
4
|
-
module-type:
|
4
|
+
module-type: library
|
5
5
|
|
6
6
|
The main module of the Jasmine test plugin for TiddlyWiki5
|
7
7
|
|
@@ -12,20 +12,15 @@ The main module of the Jasmine test plugin for TiddlyWiki5
|
|
12
12
|
/*global $tw: true */
|
13
13
|
"use strict";
|
14
14
|
|
15
|
-
var TEST_TIDDLER_FILTER = "[type[application/javascript]tag[$:/tags/test-spec]]";
|
15
|
+
var TEST_TIDDLER_FILTER = "[all[tiddlers+shadows]type[application/javascript]tag[$:/tags/test-spec]]";
|
16
|
+
var TESTS_DONE = false;
|
16
17
|
|
17
|
-
exports.
|
18
|
-
|
19
|
-
|
20
|
-
// any failed tests. Because of that, we want to make sure all critical
|
21
|
-
// startup modules are run before this one.
|
22
|
-
// * The "commands" module handles the --rendertiddler command-line flag,
|
23
|
-
// which is typically given in order to export an HTML file that can be opened with
|
24
|
-
// a browser to run tests.
|
25
|
-
exports.after = $tw.node ? ["commands"] : [];
|
18
|
+
exports.testsWereRun = function() {
|
19
|
+
return TESTS_DONE;
|
20
|
+
};
|
26
21
|
|
27
22
|
/*
|
28
|
-
|
23
|
+
function for running tests
|
29
24
|
|
30
25
|
Below, paths like jasmine-core/jasmine.js refer to files in the 'jasmine-core' npm
|
31
26
|
package, whose repository is https://github.com/jasmine/jasmine.
|
@@ -34,7 +29,8 @@ repository is https://github.com/jasmine/jasmine-npm.
|
|
34
29
|
|
35
30
|
They're all locally checked into the `./files` directory.
|
36
31
|
*/
|
37
|
-
|
32
|
+
|
33
|
+
exports.runTests = function(callback,specFilter) {
|
38
34
|
// Set up a shared context object.
|
39
35
|
var context = {
|
40
36
|
console: console,
|
@@ -63,6 +59,10 @@ exports.startup = function() {
|
|
63
59
|
// is executed, so we use the `context` object instead.
|
64
60
|
context.global = $tw.browser ? window : context;
|
65
61
|
|
62
|
+
// We set this early rather than at the end for simplicity. The browser
|
63
|
+
// and node.js environments don't end the same way.
|
64
|
+
TESTS_DONE = true;
|
65
|
+
|
66
66
|
function evalInContext(title) {
|
67
67
|
var code = $tw.wiki.getTiddlerText(title,"");
|
68
68
|
var _exports = {};
|
@@ -123,7 +123,15 @@ exports.startup = function() {
|
|
123
123
|
path: "$:/plugins/tiddlywiki/jasmine/jasmine-core/jasmine-core"
|
124
124
|
};
|
125
125
|
// 'jasmine/jasmine.js' references `process.exit`, among other properties
|
126
|
-
|
126
|
+
// It will call 'exit' after it's done, which gives us an
|
127
|
+
// opportunity to resynchronize and finish any following commands.
|
128
|
+
context.process = Object.create(process);
|
129
|
+
context.process.exit = function(code) {
|
130
|
+
// If jasmine's exit code is non-zero, tests failed. Abort any
|
131
|
+
// further commands. If they're important, they could have come
|
132
|
+
// before the testing suite.
|
133
|
+
callback(code ? "Tests failed with code " + code : undefined);
|
134
|
+
};
|
127
135
|
|
128
136
|
var NodeJasmine = evalInContext("$:/plugins/tiddlywiki/jasmine/jasmine/jasmine.js");
|
129
137
|
nodeJasmineWrapper = new NodeJasmine({jasmineCore: jasmineCore});
|
@@ -135,13 +143,11 @@ exports.startup = function() {
|
|
135
143
|
context = $tw.utils.extend({},jasmineInterface,context);
|
136
144
|
// Iterate through all the test modules
|
137
145
|
var tests = $tw.wiki.filterTiddlers(TEST_TIDDLER_FILTER);
|
138
|
-
$tw.utils.each(tests,
|
139
|
-
evalInContext(title);
|
140
|
-
});
|
146
|
+
$tw.utils.each(tests,evalInContext);
|
141
147
|
// In a browser environment, jasmine-core/boot.js calls `execute()` for us.
|
142
148
|
// In Node.js, we call it manually.
|
143
149
|
if(!$tw.browser) {
|
144
|
-
nodeJasmineWrapper.execute();
|
150
|
+
nodeJasmineWrapper.execute(null,specFilter);
|
145
151
|
}
|
146
152
|
};
|
147
153
|
|
@@ -1,5 +1,35 @@
|
|
1
1
|
title: $:/plugins/tiddlywiki/jasmine/readme
|
2
2
|
|
3
|
-
This plugin provides a framework for running tests in the browser and under Node.js. It is based on [[Jasmine|https://jasmine.github.io/]] test framework.
|
3
|
+
This plugin provides a framework for running tests in the browser and under Node.js. It is based on [[Jasmine|https://jasmine.github.io/]] test framework. On Tiddlywiki, it runs tests in all javascript tiddlers tagged with <<tag $:/tags/test-spec>>.
|
4
4
|
|
5
5
|
[[Source code|https://github.com/Jermolene/TiddlyWiki5/blob/master/plugins/tiddlywiki/jasmine]]
|
6
|
+
|
7
|
+
!! Usage on Node.js
|
8
|
+
|
9
|
+
On the command line, type `tiddlywiki --test`.
|
10
|
+
|
11
|
+
Alternatively, you can set up a build task for jasmine by including the following in your tiddlywiki.info file:
|
12
|
+
|
13
|
+
```
|
14
|
+
{
|
15
|
+
...
|
16
|
+
"build": {
|
17
|
+
...
|
18
|
+
"test": ["--test"]
|
19
|
+
}
|
20
|
+
}
|
21
|
+
```
|
22
|
+
|
23
|
+
You could then run tests by typing `tiddlywiki --build test` or just `tiddlywiki --build`. The advantage to this is it allows you to include other commands to run as well. See `tiddlywiki --help test` for more information.
|
24
|
+
|
25
|
+
This will run the tests and produce a test file in your output directory.
|
26
|
+
|
27
|
+
```
|
28
|
+
"test": [
|
29
|
+
"--test",
|
30
|
+
"--rendertiddler","$:/core/save/all","test.html","text/plain"]
|
31
|
+
```
|
32
|
+
|
33
|
+
!! Usage on a browser
|
34
|
+
|
35
|
+
Once you've constructed a Tiddlywiki file using a command like the one above, you can run the tests simply by opening it. Tests run automatically, and the results will be at the bottom of the window.
|
@@ -0,0 +1,93 @@
|
|
1
|
+
/*\
|
2
|
+
title: $:/plugins/tiddlywiki/jasmine/run-wiki-based-tests.js
|
3
|
+
type: application/javascript
|
4
|
+
tags: [[$:/tags/test-spec]]
|
5
|
+
|
6
|
+
Tests the wiki based tests
|
7
|
+
|
8
|
+
\*/
|
9
|
+
(function(){
|
10
|
+
|
11
|
+
/*jslint node: true, browser: true */
|
12
|
+
/*global $tw: false */
|
13
|
+
"use strict";
|
14
|
+
|
15
|
+
var TEST_WIKI_TIDDLER_FILTER = "[type[text/vnd.tiddlywiki-multiple]tag[$:/tags/wiki-test-spec]]";
|
16
|
+
|
17
|
+
var widget = require("$:/core/modules/widgets/widget.js");
|
18
|
+
|
19
|
+
describe("Wiki-based tests", function() {
|
20
|
+
|
21
|
+
// Step through the test tiddlers
|
22
|
+
var tests = $tw.wiki.filterTiddlers(TEST_WIKI_TIDDLER_FILTER);
|
23
|
+
$tw.utils.each(tests,function(title) {
|
24
|
+
var tiddler = $tw.wiki.getTiddler(title);
|
25
|
+
it(tiddler.fields.title + ": " + tiddler.fields.description, function() {
|
26
|
+
// Add our tiddlers
|
27
|
+
var wiki = new $tw.Wiki();
|
28
|
+
wiki.addTiddlers(readMultipleTiddlersTiddler(title));
|
29
|
+
// Complain if we don't have the ouput and expected results
|
30
|
+
if(!wiki.tiddlerExists("Output")) {
|
31
|
+
throw "Missing 'Output' tiddler";
|
32
|
+
}
|
33
|
+
if(!wiki.tiddlerExists("ExpectedResult")) {
|
34
|
+
throw "Missing 'ExpectedResult' tiddler";
|
35
|
+
}
|
36
|
+
// Construct the widget node
|
37
|
+
var text = "{{Output}}\n\n";
|
38
|
+
var widgetNode = createWidgetNode(parseText(text,wiki),wiki);
|
39
|
+
// Render the widget node to the DOM
|
40
|
+
var wrapper = renderWidgetNode(widgetNode);
|
41
|
+
// Clear changes queue
|
42
|
+
wiki.clearTiddlerEventQueue();
|
43
|
+
// Run the actions if provided
|
44
|
+
if(wiki.tiddlerExists("Actions")) {
|
45
|
+
widgetNode.invokeActionString(wiki.getTiddlerText("Actions"));
|
46
|
+
refreshWidgetNode(widgetNode,wrapper);
|
47
|
+
}
|
48
|
+
// Test the rendering
|
49
|
+
expect(wrapper.innerHTML).toBe(wiki.getTiddlerText("ExpectedResult"));
|
50
|
+
});
|
51
|
+
});
|
52
|
+
|
53
|
+
function readMultipleTiddlersTiddler(title) {
|
54
|
+
var rawTiddlers = $tw.wiki.getTiddlerText(title).split("\n+\n");
|
55
|
+
var tiddlers = [];
|
56
|
+
$tw.utils.each(rawTiddlers,function(rawTiddler) {
|
57
|
+
var fields = Object.create(null),
|
58
|
+
split = rawTiddler.split(/\r?\n\r?\n/mg);
|
59
|
+
if(split.length >= 1) {
|
60
|
+
fields = $tw.utils.parseFields(split[0],fields);
|
61
|
+
}
|
62
|
+
if(split.length >= 2) {
|
63
|
+
fields.text = split.slice(1).join("\n\n");
|
64
|
+
}
|
65
|
+
tiddlers.push(fields);
|
66
|
+
});
|
67
|
+
return tiddlers;
|
68
|
+
}
|
69
|
+
|
70
|
+
function createWidgetNode(parser,wiki) {
|
71
|
+
return wiki.makeWidget(parser);
|
72
|
+
}
|
73
|
+
|
74
|
+
function parseText(text,wiki,options) {
|
75
|
+
return wiki.parseText("text/vnd.tiddlywiki",text,options);
|
76
|
+
}
|
77
|
+
|
78
|
+
function renderWidgetNode(widgetNode) {
|
79
|
+
$tw.fakeDocument.setSequenceNumber(0);
|
80
|
+
var wrapper = $tw.fakeDocument.createElement("div");
|
81
|
+
widgetNode.render(wrapper,null);
|
82
|
+
// console.log(require("util").inspect(wrapper,{depth: 8}));
|
83
|
+
return wrapper;
|
84
|
+
}
|
85
|
+
|
86
|
+
function refreshWidgetNode(widgetNode,wrapper) {
|
87
|
+
widgetNode.refresh(widgetNode.wiki.changedTiddlers,wrapper);
|
88
|
+
// console.log(require("util").inspect(wrapper,{depth: 8}));
|
89
|
+
}
|
90
|
+
|
91
|
+
});
|
92
|
+
|
93
|
+
})();
|