tiddlywiki 5.2.3 → 5.2.5
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/es-ES/tiddlers/GettingStarted_-_Chrome.tid +1 -1
- package/editions/es-ES/tiddlers/Saving_with_the_HTML5_fallback_saver.tid +1 -27
- package/editions/es-ES/tiddlers/Saving_with_the_HTML5_saver.tid +35 -0
- package/editions/fr-FR/tiddlers/$__editions_tw5.com_doc-macros.tid +1 -1
- package/editions/fr-FR/tiddlers/GettingStarted - Chrome.tid +1 -1
- package/editions/fr-FR/tiddlers/Saving with the HTML5 saver.tid +23 -0
- package/editions/fr-FR/tiddlers/saving/Saving with the HTML5 fallback saver.tid +1 -22
- 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.6.tid +107 -0
- 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/RegExp in Tiddlywiki by Mohammad.tid +1 -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/community/resources/_file-backups_ Extension Firefox by pmario.tid +1 -1
- package/editions/tw5.com/tiddlers/community/resources/_savetiddlers_ Extension for Chrome and Firefox by buggyj.tid +1 -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 - Chrome.tid +2 -2
- 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 +144 -0
- package/editions/tw5.com/tiddlers/releasenotes/Release 5.2.5.tid +25 -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 with the HTML5 fallback saver.tid +3 -23
- package/editions/tw5.com/tiddlers/saving/Saving with the HTML5 saver.tid +27 -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 +91 -87
- package/languages/es-ES/ControlPanel.multids +19 -2
- package/languages/es-ES/Docs/PaletteColours.multids +2 -2
- package/languages/es-ES/EditTemplate.multids +3 -0
- package/languages/es-ES/Fields.multids +6 -5
- package/languages/es-ES/GettingStarted.tid +4 -3
- package/languages/es-ES/Help/commands.tid +18 -0
- 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 +6 -0
- package/package.json +1 -1
- package/plugins/tiddlywiki/bibtex/deserializer.js +2 -2
- 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 +114 -9
- package/editions/fr-FR/tiddlers/$__core_ui_TagTemplate.tid +0 -33
- package/editions/prerelease/tiddlers/Release 5.2.4.tid +0 -59
- 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
@@ -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: 是否要繼續?
|
@@ -497,3 +497,9 @@ Nolan Darilek, @NDarilek, 2022/06/21
|
|
497
497
|
Keiichi Shiga (🎈 BALLOON | FU-SEN), @fu-sen. 2022/07/07
|
498
498
|
|
499
499
|
Nathaniel Knight, @nathanielknight, 2022/07/26
|
500
|
+
|
501
|
+
HuanCheng Bai, @bestony, 2022/09/17
|
502
|
+
|
503
|
+
Carlo Colombo, @carlo-colombo, 2022/11/30
|
504
|
+
|
505
|
+
Wincent Balin, @wincentbalin, 2022/12/18
|
package/package.json
CHANGED
@@ -3,7 +3,7 @@ title: $:/plugins/tiddlywiki/bibtex/deserializer.js
|
|
3
3
|
type: application/javascript
|
4
4
|
module-type: tiddlerdeserializer
|
5
5
|
|
6
|
-
|
6
|
+
BibTeX file deserializer
|
7
7
|
|
8
8
|
\*/
|
9
9
|
(function(){
|
@@ -15,7 +15,7 @@ XLSX file deserializer
|
|
15
15
|
var bibtexParse = require("$:/plugins/tiddlywiki/bibtex/bibtexParse.js");
|
16
16
|
|
17
17
|
/*
|
18
|
-
Parse an
|
18
|
+
Parse an BibTeX file into tiddlers
|
19
19
|
*/
|
20
20
|
exports["application/x-bibtex"] = function(text,fields) {
|
21
21
|
var data,
|
@@ -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
|
+
})();
|
@@ -0,0 +1,37 @@
|
|
1
|
+
/*\
|
2
|
+
title: $:/plugins/tiddlywiki/jasmine/startup.js
|
3
|
+
type: application/javascript
|
4
|
+
module-type: startup
|
5
|
+
|
6
|
+
The main module of the Jasmine test plugin for TiddlyWiki5
|
7
|
+
|
8
|
+
\*/
|
9
|
+
(function(){
|
10
|
+
|
11
|
+
/*jslint node: true, browser: true */
|
12
|
+
/*global $tw: true */
|
13
|
+
"use strict";
|
14
|
+
|
15
|
+
var jasmine = require("./jasmine-plugin.js");
|
16
|
+
|
17
|
+
exports.name = "jasmine";
|
18
|
+
|
19
|
+
if($tw.browser) {
|
20
|
+
// Jasmine is run automatically on the browser, so always add it here.
|
21
|
+
exports.startup = jasmine.runTests;
|
22
|
+
} else {
|
23
|
+
// However, if we're on node.js, the tests are explciitly run with the
|
24
|
+
// --test command. This didn't used to be the case, so if they're
|
25
|
+
// not, we'll issue a small notice to cue users in to the change
|
26
|
+
// BTW, this notice probably won't be needed forever. It was installed
|
27
|
+
// Sept 2022. If it's been four years, this notice can probably come out.
|
28
|
+
exports.startup = function() {
|
29
|
+
if(!jasmine.testsWereRun()) {
|
30
|
+
process.stdout.write("Jasmine: no \"--test\" command given, so skipping tests\n");
|
31
|
+
}
|
32
|
+
}
|
33
|
+
// We make this check after the commands are run.
|
34
|
+
exports.after = ["commands"];
|
35
|
+
}
|
36
|
+
|
37
|
+
})();
|
@@ -10,6 +10,10 @@ tags: $:/tags/Macro
|
|
10
10
|
<$list filter="""$(editFieldsFilter)$""" variable="editorField">
|
11
11
|
<$edit-text tag="$(editorTagName)$" field=<<editorField>> type="text" class="tc-edit-texteditor" minHeight="10px"/>
|
12
12
|
</$list>
|
13
|
+
<$reveal state="$:/state/showEnglishText" type=match text="show" tag="p">
|
14
|
+
Default text:
|
15
|
+
<pre><code><$view tiddler="$:/core" subtiddler=<<currentTiddler>> field=<<editorField>>/></code></pre>
|
16
|
+
</$reveal>
|
13
17
|
</td>
|
14
18
|
<td width="20px">
|
15
19
|
<div class="tc-drop-down-wrapper">
|
@@ -60,6 +64,8 @@ Delete translation
|
|
60
64
|
|
61
65
|
//<$count filter=<<translatableTiddlerTitles>>/> translatable tiddlers in this group//
|
62
66
|
|
67
|
+
<$checkbox tiddler="$:/state/showEnglishText" field="text" checked="show" unchecked="hide" default="hide"> Show the default text below editor field</$checkbox>
|
68
|
+
|
63
69
|
<$radio tiddler="$:/plugins/tiddlywiki/translators/editorTag" value="textarea"> Multi-line editors</$radio><br>
|
64
70
|
<$radio tiddler="$:/plugins/tiddlywiki/translators/editorTag" value="input"> Single-line editors</$radio>
|
65
71
|
|