1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-09-27 22:58:19 +00:00
TiddlyWiki5/core/ui
cdruan 23fec9e390
Fix faulty external-js single-file wiki (#5570)
* Fix problems with building single-file wiki using external-js template

* core/templates/external-js/tiddlywiki5-external-js.html.tid,
  core/templates/external-js/save-all-external-js.tid,
  core/templates/external-js/save-offline-external-js.tid
  core/templates/external-js/load-external-js.tid:
  Fix #5343. Exclude client-server plugins in tiddler imports and to
  specify a working URL for loading tiddlywiki5.js from local disk.
  Mirror save/all and save/offline templates in the regular server
  edition.

  Fix #4717 (tiddlywiki5-external-js.html.tid)

* core/modules/saver-handler.js:
  Need the change to make single file autosave work with the external-js
  template.

* editions/server-external-js/tiddlywiki.info:
  Provide external-js related build targets.

* core/language/en-GB/Snippets/ExtJSReadme.tid:
  Temporary doc to supplement TW5.com's external-js section. Demonstrate
  that upgrade could be done on single-file wikis with an externalized
  TW core.

* core/language/en-GB/Snippets/GetTiddlyWikiJS.tid:
  Documentation. Meant to be included in every wiki and to help end
  users acquire tiddlywiki5.js.

* Pre-configure save-wiki template for end-users

* Remove the newline character at the end of the file.

* Trim "template" value in saveWiki()

* Safeguard the code from extraneous whitespaces in transcluded result.

* Rename and add versioning to downloaded tiddlywiki core JS

* Rename "tiddlywiki5.js" to "twcore-VERSION.js"

* Preload $:/config/SaveWikiButton/Template tiddler with the required
  external-js template value.

* Update external-js user documentation

* Add "download tiddlywiki core JS" menu item to the "cloud" button.

* Update build's target defintions associated with external-js template.

* Move the user doc to the tw5.com edition.

* Coding style update

* Undo template name changes

* Correct text & fill colors on some disabled buttons

* Add new "export tiddlywiki core" button under page control tools

This new button can export tiddlywiki's core JS from user's wiki as
long as the wiki is served with the regular "root" template. The
button will be ineffective, thus disabled, if the core has already been
externalized by the "external-js" template.

With this button, a full standalone html wiki can obtain the matching
core JS without TiddlyWiki on node.js. Once this is done, the html wiki
can be converted to using the "external-js" template.

* Alternate version of "save tiddlywiki core for offline use"

This version will fire up a "Save File" dialogue box when clicked,
instead of directing the user to a helper doc for further instruction.
It achieves this by using the "download" attribute of the <a> html tag.
It works on most modern desktop browsers, but older browsers (e.g. IE)
may display the file instead.

* Adjust font-weight to match other menu items

* Merge two user documentations into one

* Add user-browser-cache=yes to --listen command

* Update "export tiddlywiki core" button hint

* Simpler implementation for switching btw online/offline core URL

Shave off one template by using filtered transclusion to control
online/offline core URL.

* Update user doc

Update the user doc to clarify that build index step is not needed to
initialize a new wiki.

* Rename twcore to tiddlywikicore

* Reformat the user doc

* Rework export-tiddlywikicore button

Popup an error message instead of disabling the button when export
core cannot be performed.

* Revert "Correct text & fill colors on some disabled buttons"

This reverts commit e7dbb7e712.
2021-07-06 15:02:21 +01:00
..
AboveStory Fix tw2-plugin-check warning so that more than one plugin is displayed 2016-09-30 18:27:45 +01:00
Actions Partial fix for issue #4721 (#5060) 2020-11-17 19:08:14 +00:00
AdvancedSearch Make navigating and editing Shadow tiddlers work again (#5004) 2020-11-08 13:26:02 +00:00
Components Control Panel Plugin Listing: Fallback to last component of title if name field is missing 2020-04-14 11:52:01 +01:00
ControlPanel Revise the TiddlySpot Saver settings form (#5628) 2021-04-24 08:54:44 +01:00
EditorToolbar New text operation insert-text (#5707) 2021-05-21 10:35:40 +01:00
EditTemplate i18n(EditorPreview) translate difference view caption (#5732) 2021-05-30 18:49:57 +01:00
EditToolbar Add whitespace trims to EditToolbar Buttons (#5076) 2020-11-19 16:37:36 +00:00
Filters Add advanced search canned filter for "tiddlers modified this session" 2019-02-08 11:07:06 +00:00
ImportPreviews Fix broken import previews 2018-05-16 17:40:15 +01:00
KeyboardShortcuts Add Switcher modal (#5089) 2020-11-23 17:06:24 +00:00
Manager Add Pop Storyview to Manager Tags Section (#5034) 2020-11-14 12:32:39 +00:00
MoreSideBar Update core "tabs" macros to use explicitState (#4985) 2020-11-08 09:31:39 +00:00
PageControls Fix faulty external-js single-file wiki (#5570) 2021-07-06 15:02:21 +01:00
PageTemplate Dynamic loading/unloading of plugins (#4259) 2019-09-16 12:15:39 +01:00
SideBar Update core "tabs" macros to use explicitState (#4985) 2020-11-08 09:31:39 +00:00
SideBarSegments Make editTiddler in sidebarsegments/search available as variable (#5218) 2020-12-06 17:15:40 +00:00
TiddlerInfo fix viewtemplate quirks (#5224) 2020-12-07 15:58:28 +00:00
TopRightBar Menubar plugin: make sidebar-scrollable top margin adjust ... (#4974) 2020-11-08 11:50:15 +00:00
ViewTemplate Improve import cancel warning (#5812) 2021-06-21 20:58:58 +01:00
ViewToolbar Fix ViewToolbar items inconsistent spacing (#5473) 2021-05-24 19:24:37 +01:00
AdvancedSearch.tid Update core "tabs" macros to use explicitState (#4985) 2020-11-08 09:31:39 +00:00
AlertTemplate.tid Fix syncer to handler errors properly (#4373) 2020-03-30 15:24:05 +01:00
BinaryWarning.tid Add download button/link to binary tiddler warning banners in view and edit mode (#4423) 2020-01-31 09:13:28 +00:00
ControlPanel.tid Update core "tabs" macros to use explicitState (#4985) 2020-11-08 09:31:39 +00:00
DefaultSearchResultList.tid Fix #4826 - Keyboard-driven-inputs clashes with customized search results. (#4875) 2020-10-23 15:58:34 +01:00
EditTemplate.tid Fix #5039 - Tag input, Type input and Fields inputs don't delete their state tiddlers on tiddler-cancel/delete (#5049) 2020-11-16 16:54:29 +00:00
ImportListing.tid allow us to import formerly blocked system tiddlers (#5479) 2021-05-25 22:21:57 +01:00
LayoutSwitcher.tid Update LayoutSwitcher.tid (#5125) 2020-11-27 21:52:26 +00:00
ListItemTemplate.tid Remove unwanted whitespace from sidebar links (#4552) 2020-04-15 12:35:35 +01:00
Manager.tid Introduce tiddler manager 2016-11-29 08:36:07 +00:00
MissingTemplate.tid Yet more "tw-*" -> "tc-*" 2014-08-28 19:41:29 +01:00
PageControls.tid Fix currentTiddler in pagecontrol buttons 2019-10-03 12:13:29 +01:00
PageStylesheet.tid Typos missed from a9dd8c2 2018-09-28 18:18:07 +01:00
PageTemplate.tid Add Switcher modal (#5089) 2020-11-23 17:06:24 +00:00
PaletteManager.tid Fix broken aria-label in $:/PaletteManager (#5397) 2021-01-13 10:18:27 +00:00
PluginInfo.tid Refactor user interface for plugin tiddlers 2016-10-18 09:23:19 +01:00
PluginInfoDefaultContents.tid Remove unwanted whitespace from sidebar links (#4552) 2020-04-15 12:35:35 +01:00
PluginListItemTemplate.tid Remove unwanted whitespace from sidebar links (#4552) 2020-04-15 12:35:35 +01:00
RootTemplate.tid Ensure root template contents is parsed in block mode 2020-11-09 17:08:34 +00:00
SearchResults.tid Fix #4826 - Keyboard-driven-inputs clashes with customized search results. (#4875) 2020-10-23 15:58:34 +01:00
SideBarLists.tid Modularize the sidebar 2018-08-02 13:22:21 +01:00
SwitcherModal.tid Add Switcher modal (#5089) 2020-11-23 17:06:24 +00:00
TagManager.tid Add "none" as an option in the icon dropdown in tag manager (#4361) 2020-01-30 15:52:33 +00:00
TagPickerTagTemplate.tid An even faster version of the TagPickerTagTemplate (#5207) 2020-12-05 17:38:39 +00:00
TagTemplate.tid Add data-tag-title attribute to tag pills 2021-03-13 13:19:12 +00:00
TiddlerFields.tid Yet more "tw-*" -> "tc-*" 2014-08-28 19:41:29 +01:00
TiddlerFieldTemplate.tid Yet more "tw-*" -> "tc-*" 2014-08-28 19:41:29 +01:00
TiddlerInfo.tid Update core "tabs" macros to use explicitState (#4985) 2020-11-08 09:31:39 +00:00
UntaggedTemplate.tid Yet more "tw-*" -> "tc-*" 2014-08-28 19:41:29 +01:00
ViewTemplate.tid Fix #5039 - Tag input, Type input and Fields inputs don't delete their state tiddlers on tiddler-cancel/delete (#5049) 2020-11-16 16:54:29 +00:00