Jermolene
ecbd97b4b4
Revise support for external tiddler files
...
Fixes #1884
2015-07-18 11:45:30 +01:00
Jermolene
8f63e2a959
Optimise iterating through tiddlers
...
Astonishingly, it’s much quicker to use `Object.keys()` to get an array
of key names, and then iterate through that. I’m seeing 25% speed
improvements for an empty tiddler iterator.
2015-07-08 08:27:28 +01:00
Jermolene
c6e48ebc2d
Performance optimisations
...
In some situations, I’m seeing x2.5 speedups with these optimisations
Starts fixing #1864
2015-07-05 19:47:44 +01:00
Jermolene
53072dd7aa
Extended tiddlywiki.files to support tiddler files
...
Previously, we just read the target file as a block of UTF-8. With this
update, we deserialise the file, allowing us to use file formats like
.tid within the tiddlywiki.files file.
2015-06-23 10:49:59 +01:00
Jermolene
81e4d43a25
Debug hooks for tracing tiddler deletions
2015-05-13 23:55:00 +01:00
Jermolene
e9a1a53922
Better error checking for reading field lists
...
This change ensures that lines starting with a colon are ignored,
allowing them to be used as comments.
2015-05-07 19:24:58 +01:00
Jermolene
48dcf959ff
Refactor browser unload task handling
...
Make it possible to register multiple task functions that will be
called when the window is unloaded
2015-05-03 16:23:35 +01:00
Andreas Abeck
2c367c5476
added localisation for encryption dialog & de-DE translation
2015-03-18 18:52:33 +01:00
Felix Küppers
f99a4e7664
Bugfix: Object.freeze() called on null
...
For five minutes I stared at the following code...
if(value != null && typeof value === "object") {
Object.freeze(value);
}
... and at the error message that led me to this code: `Object.freeze called on non-object`
And then I remembered that js treads null as object (http://www.ecma-international.org/ecma-262/5.1/#sec-11.4.3 ). This means the `typeof === "object"` will not discover null and freeze will throw an error...
So `value != null` will also work when value is undefined.
A hard to find bug ;)
2015-03-07 20:47:43 +01:00
Jermolene
a2493f80a9
Add support for zip files
2015-02-23 11:57:16 +01:00
Jeremy Ruston
6c62954116
Merge pull request #1505 from pmario/fix-search-path-runtime-error
...
Fix trailing semicolon in TIDDLYWIKI_EDITION_PATH
2015-02-17 20:56:14 +00:00
Mario Pietsch
e1b57bf9e5
remove temporary variable
2015-02-17 01:29:42 +01:00
Jermolene
e386e26b2d
Fix problems with $tw.utils.checkVersions()
...
Previous changes since 5.1.7 broke the documented semantics by no
longer returning true when the versions match. It affected the upgrade
process, making it impossible to upgrade to a later pre-release (ie
where the version numbers in the upgrade.html match those in the file
being upgraded).
Also reviewed and updated the calls to checkVersions.
@felixhayashi I think that this effectively reverts the change you
original submitted. Are you OK with it?
2015-02-12 23:04:20 +00:00
Mario Pietsch
95d7a826f0
space added
2015-02-12 20:03:20 +01:00
Mario Pietsch
17c38b1ec5
fix problem if edition search path is TIDDLYWIKI_EDITION_PATH=c:\test; because the trailing semicolon creates an empty directory name.
2015-02-12 14:44:10 +01:00
Jermolene
4b61cae262
Add debugging hook for wiki.addTiddler()
2015-02-10 11:30:39 +00:00
Jermolene
b1bb52b67a
Fix typo from 8cd0c2afcd
2015-02-07 10:23:16 +00:00
Jim Lehmer
8cd0c2afcd
Make sure all "get" access to $tw.config.fileExtensionInfo
goes through a $tw.utils.getFileExtensionInfo
helper function that ensures the parameter is cast to lowercase. Fixes #1418 .
2015-02-01 12:33:40 -06:00
Jermolene
3bbbda0819
Allow callers of the bootprefix to determine browser status
...
This gives us finer control under node-webkit of whether the core
thinks we’re running under the browser or node.
2015-01-11 14:21:31 +00:00
Felix Küppers
70cbb5efc5
Update boot.js
...
if major, minor and patch are equal, the incoming wins.
2014-12-23 19:21:54 +01:00
Felix Küppers
d33b525067
Update boot.js
2014-12-23 18:13:59 +01:00
Felix Küppers
1d344dba69
prerelease matters
...
incoming 3.7.2 loses against existing 3.7.2
incoming 3.7.2-prerelease loses against existing 3.7.2
incoming 3.7.2-prerelease wins against existing 3.7.2-prerelease
2014-12-23 13:53:58 +01:00
Felix Küppers
9fad60beb3
another suggestion
...
in case of equal versions, use the incoming and replace the existing.
2014-12-21 20:55:44 +01:00
Felix Küppers
e00534635e
Update boot.js
2014-12-19 19:24:13 +01:00
Jermolene
1e3a41311d
Use OS-independent path delimiter
...
Fixes #1187
2014-12-03 17:24:59 +00:00
Jermolene
e11c9e83b9
Coding style cleanup
2014-12-02 15:32:52 +00:00
Tobias Beer
4d68111c49
added object as third parameter to callback
2014-12-02 12:47:19 +01:00
Tobias Beer
0f157cff90
code style revision
...
thanks, Jeremy... will watch out for that
2014-11-26 18:50:12 +01:00
Tobias Beer
1e47a62c2a
allows to break out of $tw.utils.each
...
Will improve performance with `$tw.utils.each` callbacks breaking out of
the iteration via `return false;`.
2014-11-26 17:51:27 +01:00
Jeremy Ruston
92b957f6f8
Merge pull request #1118 from welford/hook
...
Add hooks mechanism and th-opening-default-tiddlers-list hook
2014-11-25 19:25:00 +00:00
Jermolene
62ad533aa6
Clarify tiddlerExists docs
2014-11-24 09:22:43 +00:00
Jermolene
a614c0d543
Improve compatibility with JS modules
...
If a module ended with a single line comment `\\` then the appended
`;})();` was being ignored and eaten up as part of the comment.
2014-11-23 15:24:01 +00:00
James Welford Anderson
804a579d17
Remove alert from addHook.
...
Thanks to @tobibeer
2014-11-23 14:34:04 +09:00
James Welford Anderson
90caf5bf42
Add hooks mechanism and th-opening-default-tiddlers-list hook
...
see: https://github.com/Jermolene/TiddlyWiki5/issues/1064
2014-11-23 01:11:56 +09:00
Jermolene
8e685e5150
Allow includeWikis to be read-only
...
Hopefully this will help resolve issues that @xcazin and @pmario have
been having with using the client-server configuration to prepare
translations of the TW5 docs.
2014-11-13 12:28:51 +00:00
Jermolene
853f5fd064
Add some logging for file import/paste
2014-11-08 08:37:08 +00:00
Jermolene
cea963420c
Improve error handling under Node.js
...
Now we include the stack trace with the error message. Thanks to
@felixhayashi for the suggestion.
2014-11-03 16:14:51 +00:00
Jermolene
5d600ce31b
Coloured warnings and errors under Node.js
2014-10-21 19:30:27 +01:00
Jermolene
9fedf38657
Remove checking for missing wiki folders
...
Thus undoing 744245ea32
because of #1002
2014-10-21 19:28:38 +01:00
Jeremy Ruston
f25053490e
Merge pull request #998 from xcazin/ogg
...
Add audio/ogg to the list of recognised formats
2014-10-20 12:30:00 +01:00
Xavier Cazin
6833bfb220
Add audio/ogg to the list of recognised audio formats
2014-10-19 22:09:17 +02:00
Jermolene
744245ea32
Raise error for missing wiki folders
...
Only raise the error if the wiki path is explicitly specified on the
command line, avoiding `tiddlywiki —version` raising an error if the
current directory isn’t a wiki folder.
Fixes #990
2014-10-18 19:39:39 +01:00
Jermolene
6c76670137
Removed outdated comment
2014-10-18 17:46:19 +01:00
Jermolene
2ffe53f191
Add audio parser for handling audio content
2014-10-18 14:50:07 +01:00
Jermolene
49dc5694a3
Enhance "includeWikis" to merge build targets
...
Build targets found in included wikis are merged behind any found in
the wiki itself
2014-10-14 15:14:50 +01:00
Jermolene
b7bbcfa056
Prompt twice when setting password
...
Fixes #364
2014-10-06 10:22:09 +01:00
Jermolene
0c8e538077
Add support for custom password prompts
2014-10-06 10:02:34 +01:00
Jermolene
67db9d57a2
Boot prefix should preserve $tw in the browser
...
This change allows raw markup tiddlers to preload configuration values
into the `$tw` global
2014-10-06 10:02:20 +01:00
Jermolene
6d9bd4df8a
Add support for markdown file extensions
...
Fixes #856
By the way @cjp are there any other Markdown extensions in common use?
2014-09-16 20:06:23 +01:00
Jermolene
2b78d5a977
Refactor handling of .htm and .hta file extensions
...
Taking advantage of the recent change to be able to pass an array of
file extensions to `$tw.utils.registerFileType()`
2014-09-16 20:05:13 +01:00