1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-30 05:19:57 +00:00
TiddlyWiki5/core/templates
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
..
exporters Hide .tid exporter when more than one tiddler to export 2020-12-08 17:48:58 +00:00
external-js Fix faulty external-js single-file wiki (#5570) 2021-07-06 15:02:21 +01:00
server Typos missed from a9dd8c2 2018-09-28 18:18:07 +01:00
alltiddlers.template.html.tid Fix problem with static "all tiddlers" export 2014-12-04 07:58:30 +00:00
canonical-uri-external-image.tid Rename $:/core/templates/canonical-uri-external-image 2014-06-13 10:04:31 +01:00
canonical-uri-external-raw.tid Add another canonical_uri template 2017-08-19 10:31:42 +01:00
canonical-uri-external-text.tid Limited implementation of external text tiddlers in the browser 2015-08-29 16:33:04 +01:00
css-tiddler.tid Change widget syntax to $ instead of underscore 2012-12-30 13:55:19 +00:00
html-div-skinny-tiddler.tid Fix syncer to handler errors properly (#4373) 2020-03-30 15:24:05 +01:00
html-div-tiddler.tid Do not escape double quotes in tiddler DIVs to save space (#5383) 2021-04-02 09:32:32 +01:00
html-tiddler.tid Change widget syntax to $ instead of underscore 2012-12-30 13:55:19 +00:00
javascript-tiddler.tid Change widget syntax to $ instead of underscore 2012-12-30 13:55:19 +00:00
json-tiddler.tid Add support for JSON files containing a single tiddler 2017-03-17 14:19:43 +00:00
module-tiddler.tid Change widget syntax to $ instead of underscore 2012-12-30 13:55:19 +00:00
MOTW.html.tid Change http://*.tiddlywiki.com/* to https:// 2017-11-11 11:56:20 +00:00
plain-text-tiddler.tid Change widget syntax to $ instead of underscore 2012-12-30 13:55:19 +00:00
raw-static-tiddler.tid Add more flexible support for static content 2016-06-23 16:29:51 +01:00
save-all.tid Do not save temp tiddlers in single file (#4938) 2020-10-31 13:21:28 +00:00
save-empty.tid Improve handling of popup state 2014-06-22 11:14:11 +01:00
save-lazy-all.tid Fix syncer to handler errors properly (#4373) 2020-03-30 15:24:05 +01:00
save-lazy-images.tid Fix blank favicon if root-tiddler=$:/core/save/lazy-images is set (#5423) 2021-01-21 17:07:28 +00:00
single.tiddler.window.tid Compressing $set chains into one $vars (#4659) 2020-08-28 14:53:20 +01:00
split-recipe.tid Extend ginsu.sh to generate a split.recipe file 2013-08-03 15:03:07 +01:00
static-tiddler.tid All-in-one static HTML support 2013-12-31 09:43:46 +00:00
static.area.tid Ensure splash screen isn't shown when JS is disabled 2019-11-14 11:00:07 +00:00
static.content.tid Change http://*.tiddlywiki.com/* to https:// 2017-11-11 11:56:20 +00:00
static.template.css.tid Fix static CSS generation 2014-02-20 18:33:01 +00:00
static.template.html.tid Added mobile-web-app-capable meta tag for Android Chrome (#2456) 2016-07-11 11:16:58 +01:00
static.tiddler.html.tid Update static.tiddler.html.tid (#5148) 2020-11-30 17:56:19 +00:00
store.area.template.html.tid Fix syncer to handler errors properly (#4373) 2020-03-30 15:24:05 +01:00
tid-tiddler.tid Don't save "bag" fields 2013-03-25 12:22:15 +00:00
tiddler-metadata.tid Don't save "bag" fields 2013-03-25 12:22:15 +00:00
tiddlywiki5.html.tid Add language attribute to HTML tag 2019-10-17 18:07:13 +01:00
version.tid Remove version widget in favour of widget macro 2013-11-01 13:22:06 +00:00
wikified-tiddler.tid Initial Commit 2013-10-12 17:05:13 +01:00