1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 10:07:19 +00:00
TiddlyWiki5/plugins/tiddlywiki
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
..
async Improve plugin metadata, and add a "name" field 2019-09-19 13:04:10 +01:00
aws AWS Plugin: Add aws-encodeuricomponent filter that also encodes single quotes 2020-09-23 17:32:38 +01:00
bibtex BibTeX Plugin: Force fieldnames to be lowercase 2021-04-07 17:43:41 +01:00
blog Improve plugin metadata, and add a "name" field 2019-09-19 13:04:10 +01:00
browser-sniff Improve plugin metadata, and add a "name" field 2019-09-19 13:04:10 +01:00
browser-storage Browser-storage: Fix startup constraints 2020-08-11 12:32:39 +01:00
cecily Improve plugin metadata, and add a "name" field 2019-09-19 13:04:10 +01:00
classictools Improve plugin metadata, and add a "name" field 2019-09-19 13:04:10 +01:00
codemirror Pass reference to widget to CodeMirror (#5790) 2021-06-14 16:46:39 +01:00
codemirror-autocomplete Update CodeMirror plugins to v5.58.2 (#4950) 2020-11-01 11:10:00 +00:00
codemirror-closebrackets Update CodeMirror plugins to v5.58.2 (#4950) 2020-11-01 11:10:00 +00:00
codemirror-closetag Update CodeMirror plugins to v5.58.2 (#4950) 2020-11-01 11:10:00 +00:00
codemirror-fullscreen-editing Update CodeMirror plugins to v5.58.2 (#4950) 2020-11-01 11:10:00 +00:00
codemirror-keymap-emacs Update CodeMirror plugins to v5.58.2 (#4950) 2020-11-01 11:10:00 +00:00
codemirror-keymap-sublime-text Update CodeMirror plugins to v5.58.2 (#4950) 2020-11-01 11:10:00 +00:00
codemirror-keymap-vim Update CodeMirror plugins to v5.58.2 (#4950) 2020-11-01 11:10:00 +00:00
codemirror-mode-css Update CodeMirror plugins to v5.58.2 (#4950) 2020-11-01 11:10:00 +00:00
codemirror-mode-htmlembedded Update CodeMirror plugins to v5.58.2 (#4950) 2020-11-01 11:10:00 +00:00
codemirror-mode-htmlmixed Update CodeMirror plugins to v5.58.2 (#4950) 2020-11-01 11:10:00 +00:00
codemirror-mode-javascript Update CodeMirror plugins to v5.58.2 (#4950) 2020-11-01 11:10:00 +00:00
codemirror-mode-markdown Update CodeMirror plugins to v5.58.2 (#4950) 2020-11-01 11:10:00 +00:00
codemirror-mode-x-tiddlywiki Introduce "parent-plugin" field to control how plugins are displayed in the chooser 2019-09-25 16:16:28 +01:00
codemirror-mode-xml Update CodeMirror plugins to v5.58.2 (#4950) 2020-11-01 11:10:00 +00:00
codemirror-search-replace Update CodeMirror to 5.58.3 - fix vim-mode cursor invisible (#5172) 2020-12-01 18:11:40 +00:00
comments Replace various &nbsp; with tc-small-gap classes (#4926) 2020-10-28 13:13:55 +00:00
consent-banner Consent widget 2020-07-13 11:49:21 +01:00
d3 Improve plugin metadata, and add a "name" field 2019-09-19 13:04:10 +01:00
dynannotate Dynannotate: Fix off-by-one error for end of annotation text 2020-12-09 19:14:43 +00:00
dynaview Dynaview: Fix transclude-when-visible macro 2020-09-23 17:33:00 +01:00
evernote Improve plugin metadata, and add a "name" field 2019-09-19 13:04:10 +01:00
external-attachments Fix external-attachments plugin relative path bug 2020-10-26 18:36:46 +00:00
filesystem Revert "Update sync methods (#5467)" 2021-07-05 19:26:20 +01:00
freelinks Freelinks: Add a filter for which tiddlers can be the targets of freelinks 2021-02-13 12:03:35 +00:00
github-fork-ribbon Merge branch 'tiddlywiki-com' 2020-04-15 16:03:38 +01:00
googleanalytics Add new "Consent Banner" plugin, and update Google Analytics plugin to use it 2020-06-22 11:31:54 +01:00
hammerjs Improve plugin metadata, and add a "name" field 2019-09-19 13:04:10 +01:00
help Fix broken filters introduced in b179a6011 2020-02-29 15:56:22 +00:00
highlight Add default "tiddlywiki" styles to CodeMirror and Highlight.js (#5128) 2020-11-28 14:07:12 +00:00
innerwiki Use this.wiki where applicable (#4601) 2020-05-06 11:27:50 +01:00
internals Improve plugin metadata, and add a "name" field 2019-09-19 13:04:10 +01:00
jasmine Fix browser testing (#5254) 2020-12-11 10:12:01 +00:00
jszip JSZip plugin: Fix example formatting 2020-10-19 09:44:55 +01:00
katex Update to KaTeX v0.12.0 2021-01-31 15:11:12 +00:00
markdown Markdown: Don't emit paragraph tags when a paragraph is "tight". (#5848) 2021-07-06 11:33:12 +01:00
menubar Menubar plugin: Add optional dropdown-position 2021-03-08 17:47:04 +00:00
mobiledragdrop Improve plugin metadata, and add a "name" field 2019-09-19 13:04:10 +01:00
nodewebkitsaver Improve plugin metadata, and add a "name" field 2019-09-19 13:04:10 +01:00
pluginlibrary Improve plugin metadata, and add a "name" field 2019-09-19 13:04:10 +01:00
powered-by-tiddlywiki Improve plugin metadata, and add a "name" field 2019-09-19 13:04:10 +01:00
qrcode Fix ViewToolbar items inconsistent spacing (#5473) 2021-05-24 19:24:37 +01:00
railroad Use this.wiki where applicable (#4601) 2020-05-06 11:27:50 +01:00
savetrail Revert "Update sync methods (#5467)" 2021-07-05 19:26:20 +01:00
sax Improve plugin metadata, and add a "name" field 2019-09-19 13:04:10 +01:00
share Share Plugin: Fix problem with sharing double quoted tiddler titles 2020-09-28 11:31:58 +01:00
stacked-view Improve plugin metadata, and add a "name" field 2019-09-19 13:04:10 +01:00
tahoelafs Improve plugin metadata, and add a "name" field 2019-09-19 13:04:10 +01:00
text-slicer Fix ViewToolbar items inconsistent spacing (#5473) 2021-05-24 19:24:37 +01:00
tiddlyweb Fix faulty external-js single-file wiki (#5570) 2021-07-06 15:02:21 +01:00
translators Improve plugin metadata, and add a "name" field 2019-09-19 13:04:10 +01:00
tw2parser Use this.wiki where applicable (#4601) 2020-05-06 11:27:50 +01:00
tw5.com-docs Improve plugin metadata, and add a "name" field 2019-09-19 13:04:10 +01:00
twitter Twitter Plugin: Add warning if the wiki needs to be saved and reloaded 2020-04-21 21:22:13 +01:00
upgrade Disable autosave in the upgrade wizard 2020-10-26 17:28:57 +00:00
xlsx-utils Xlsx-utils: Fix crash when using deserializer 2021-01-16 15:37:50 +00:00
xmldom Improve plugin metadata, and add a "name" field 2019-09-19 13:04:10 +01:00