1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-25 17:40:29 +00:00
Commit Graph

7620 Commits

Author SHA1 Message Date
Jermolene
8b60dbb81d Ensure page background colour takes shows through transparent background images
Fixes #2529
2016-08-09 09:36:17 +01:00
Przemek Wesołek
9bd002e41d Change the order of static content generation. (#2528)
Prevents the `--rendertiddlers` removing the `static.css` file rendered earlier,
similar to https://github.com/Jermolene/TiddlyWiki5/pull/1207
and https://github.com/Jermolene/TiddlyWiki5/issues/703.
2016-08-08 11:16:48 +01:00
DoronTzur
10d5aecf3f @DoronTzur CLA signature (#2526) 2016-08-08 09:43:25 +01:00
Jermolene
4eed18496f Extend editor link button to create external links and missing links
Fixes #2521
2016-08-07 10:18:53 +01:00
Jermolene
959a7ac485 Add icon for foldbar visibility control
Fixes #2525
2016-08-07 10:16:44 +01:00
Jermolene
8f6abf534f Add descriptions for missing module types 2016-08-06 21:38:17 +01:00
Jermolene
b96377099a Add Hebrew translation
Many thanks to @DoronTzur
2016-08-06 15:56:25 +01:00
Jermolene
486b326ea9 Update for building 5.1.14-prerelease 2016-08-06 15:03:13 +01:00
Jermolene
7326a3a4cc Only call isReady() for sync adaptors that support it
Fixes #2522
2016-08-06 14:45:33 +01:00
Jermolene
08cfa88249 Fix problem with unsafe use of String.prototype.replace()
We were using `String.prototype.replace()` without addressing the
wrinkle that dollar signs in the replacement string have special
handling. This caused problems in situations where the replacement
string is derived from user input and contains dollar signs.

Fixes #2517
2016-08-06 14:45:33 +01:00
Przemek Wesołek
82694e1426 @jest CLA signature (#2524) 2016-08-06 14:38:01 +01:00
Jermolene
1da8a32837 Retrospectively update release node for 5.1.13 2016-07-25 11:11:28 +01:00
Jermolene
360915d3cd Version number update for 5.1.13 2016-07-25 09:51:02 +01:00
Jermolene
77eb05e7fe Update readmes 2016-07-25 09:50:24 +01:00
Jermolene
b201141753 Set dates for 5.1.13 2016-07-25 09:49:09 +01:00
Jermolene
65a5135245 Updated Portuguese Translation 2016-07-25 09:31:52 +01:00
Jermolene
851ea44b3b Content updates for 5.1.13 release 2016-07-25 09:10:45 +01:00
Jermolene
e282ff1d92 Fix problem with tiddler titled "undefined"
Fixes #2507

The problem stems from a JavaScript quirk: the fact that
`({“undefined":"Me"})[undefined]` returns “Me”. The quirk is that the
value `undefined` is coerced into the string “undefined” when used as
an index.

In this particular case, the code for `wiki.getTiddler()` was returning
the tiddler with the title `”undefined”` when called with the title set
to the value `undefined`. It happens that the pluginswitcher called
`wiki.getTiddler(undefined)`.
2016-07-22 11:31:02 +01:00
Jermolene
487d6642e3 Fix KaTeX rendering bug on Chrome
Fixes #2500
2016-07-21 08:48:13 +01:00
Jermolene
8f6178acfc Remove tiddler frame padding in print view
It was wasting a border around each page.
2016-07-20 22:09:41 +01:00
Jermolene
5cc09d9cd5 Fix some typos from #2504 2016-07-20 16:16:21 +01:00
Devin Weaver
64b7e66675 Prevent adding extra file extensions (#2504)
Fixes #2503

This bug was introduced in commit c4c7b18 where it would append
additional .tid extensions to a file every time the node server was
restarted.

Here we check the filepath does not have the extension already before
appending it.
2016-07-20 16:07:28 +01:00
Jermolene
6499fe5d3d Update docs for installing/uninstalling plugins 2016-07-20 16:02:04 +01:00
Jermolene
e49d310ea9 Relax external link matching to ignore illegal characters
Fixes #2501, and rolls back some of #2324
2016-07-20 11:37:44 +01:00
Jermolene
c4c7b1868c Ensure .tid extension when saving .tid files
Missed off of a4506231a7
2016-07-15 16:55:57 +01:00
Jermolene
a4506231a7 Fix writing non-wikitext text tiddlers
The plan had been to switch template depending on the content type, but
we’d only implemented support for saving wikitext tiddlers. That meant
that creating a tiddler with any non-wikitext content type failed to
write the file correctly under Node.js.

Now we just always save in .tid file format.
2016-07-14 17:42:57 +01:00
Jermolene
b357e8bb26 Correct thumbnail size 2016-07-14 16:19:25 +01:00
Jermolene
a0bdefbd8b Add HelloThere thumbnail for TWEUM2016 2016-07-14 15:46:41 +01:00
Jermolene
782553eb62 Remove tilde from characters not allowed in external URLs 2016-07-13 14:06:47 +01:00
Jermolene
b24488174c Prepare for 5.1.13-prerelease 2016-07-13 12:14:24 +01:00
Jermolene
939f0a9e1d Version number update for 5.1.12 2016-07-13 11:50:17 +01:00
Jermolene
6e0e43f68c Update readmes 2016-07-13 11:49:50 +01:00
Jermolene
fe85358bfd Release dates for 5.1.12 2016-07-13 11:48:50 +01:00
Myeongjin
e938c5f49b Update Korean translation (#2495) 2016-07-13 10:21:27 +01:00
Myeongjin
98b435d550 Fix inconsistencies in language string IDs (#2494) 2016-07-13 10:00:21 +01:00
Jermolene
62dac3e7d9 Release note updates 2016-07-12 18:18:28 +01:00
Jermolene
01859dadf5 Update contributors list 2016-07-12 18:10:18 +01:00
Jermolene
b849011d8f Move stacked view control panel into sidebar 2016-07-12 17:22:33 +01:00
Jermolene
dca9e008ce Remove single quote from illegal characters in URLs
Fixes #2493
2016-07-12 17:22:20 +01:00
Jermolene
1299472c38 Add links to TiddlyWiki European Meetup 2016 2016-07-12 13:16:30 +01:00
Jermolene
edde700138 Tweak colours for link info items 2016-07-12 13:16:30 +01:00
Jermolene
14dc8accd6 Blog plugin: Transclude caption so that wikitext works 2016-07-12 13:16:30 +01:00
Devin Weaver
aaf884b70a Add this.document to ES2016 documentation (#2314)
In the sample example for using ES2016 it used the
`$tw.utils.domMaker()`. I just found out that if this code is executed
by Node.js instead of in the browser that it doesn't work because
`window.document` doesn't exist. The expectation is that widgets pass in
the fake `this.document`.

I updated the example to reflect this.
2016-07-11 13:46:22 +01:00
Jermolene
aa58f4fc7d Introduction edition: Set default drawing colour 2016-07-11 13:27:12 +01:00
Devin Weaver
bf74d13df5 Handle binary files better when saving on Node.JS (#2420)
* Save binary tiddlers with meta file

The filesystemadaptor plugin was a little simplistic in its
understanding of a binary file. It was using the typeInfo dictionary to
choose what tiddler types were binary (and hence needed a meta file when
saving).

I looked as if it was trying to be smart by looking for the hasMetaFile
*OR* had the encoding of base64. Unfortunately the typeInfo only defined
image/jpeg and so any other base64 encoded tiddler was assumed to be of
type text/vnd.tiddlywiki.

The net effect was only JPG images got a meta file and everything else
were saved as .tid files with base64 encoding. It all still worked but
made working with binary data in a Git repo a bit daunting.

There is enough information in the $tw.config.contentTypeInfo to
determine if a tiddler type is encoded with base64 or not. A better list
is available from boot/boot.js who registers all the types thorough the
registerFileType and marks then with base64 were appropriate.

This commit uses the typeInfo dictionary first for any filesystem
specific overrides, then the contentTypeInfo, and finally defaults to
the typeInfo["text/vnd.tiddlywiki"]. It also eliminates the now
unnecessary override for image/jpeg.

I think this might have been the original intent from commit 10b192e7.
From my limited testing all files described in boot/boot.js (lines
1832-1856) with an encoding of base64 now save as the original binary
and a meta file. Meaning that when you start the node server and then
drag-n-drop a binary file (i.e. image/png) it will PUT to the server
and then save it on the filesystem as-is allowing the file to be managed
as a binary file and not a text file. (Binary diffs are better and
GitHub supports them as well).

* Prevent duplicate file extensions

A side effects of using the $tw.config.contentFileInfo in the previous
commit is that it will always append a file extension to the tiddler
title when saving. In most cases this is the correct course of action.
However, sometimes that title is already a proper filename with an
extension (for example importing 'foobar.png' would save a file named
'foobar.png.png') which seemed silly.

This commit simply checks to make sure the title does not already end
with the file extension before appending it to the filename. A little
convenience really.

Since IE apparently doesn't have the String endsWith method I took the
liberty to add a helper method to $tw.utils trying to follow the other
polyfill patterns. I figured this was more generic and readable then
attempting to use a one-off solution inline. I got the polyfill code
from MDN.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/endsWith#Polyfill

Is strEndsWith the best method name?
2016-07-11 11:18:19 +01:00
Brent Maxwell
19e699d330 Added mobile-web-app-capable meta tag for Android Chrome (#2456)
* Added mobile-web-app-capable meta tag for Android Chrome

* Added "mobile-web-app-capable" meta tag to the rest of the templates.
2016-07-11 11:16:58 +01:00
Bram Chen
59b62f68da Add Chinese translation for missing plugin info (#2466) 2016-07-11 11:16:27 +01:00
Jermolene
8dece4b4f6 Simplify styling of community resources
Feedback from @ssokolow
2016-07-10 16:14:58 +01:00
Jermolene
dd1e213b52 Add "Developers" to Reference section
Feedback from @ssokolow
2016-07-10 16:14:38 +01:00
Jermolene
1fdc7344ee Update new release banner picture 2016-07-10 15:37:48 +01:00