Jermolene
f3930ad69c
Add init command to initialise a wiki folder
...
Fixes #362
2014-02-23 22:58:17 +00:00
Jermolene
ecb845f1cd
Require that wiki folders have a tiddlywiki.info file
...
Previously, we were just using default content if the tiddlywiki.info
file was missing. This allowed us to do things like `tiddlywiki
—server` without actually being in a valid wiki folder.
Fixes #361
2014-02-22 16:38:34 +00:00
Jermolene
dfbb6e1fba
Ensure that $:/isEncrypted is reset if modified
2014-02-21 18:21:10 +00:00
Jermolene
9b6c59e9a6
Allow .multids files to contain blank lines and ": " sequences
...
Also added a warning for multiple definitions of the same tiddler in a
multids file.
Fixes #415
2014-02-21 09:24:36 +00:00
Jermolene
d21fb85d94
Change .tids
file extension to .multids
...
Hopefully less confusing
2014-02-20 10:27:02 +00:00
Jermolene
1f41daf433
Add support for multi-tiddler files with a .tids extension
2014-02-09 20:34:42 +00:00
Jermolene
dea08ed4f8
First pass at language plugins for internationalisation
...
Still quite a few details to work out, but this shows the basic idea of
re-using the theme mechanism to handle language plugins.
Comments and questions welcome.
2014-02-09 19:18:46 +00:00
Jermolene
02ba92c6b5
Add [is[image]]
filter operator
2014-01-29 09:04:41 +00:00
Jermolene
175e86078c
Fix crash when wiki/themes folder contains files that are not themes
...
Fixes #370
2014-01-28 18:58:01 +00:00
Jermolene
5af30086c0
Fix substitution for nbsp
...
We were substituting the wrong character for non-breaking spaces
2014-01-28 15:23:58 +00:00
Jermolene
3f9561dd95
Better logging
2014-01-26 18:53:31 +00:00
Jermolene
2fc6451bf7
Rejigged encrypted import so that the current password isn't changed
...
We still try the currently stored password. If that doesn’t work then
we prompt for a password, but we no longer store the password in the
store.
2014-01-20 13:35:55 +00:00
Jermolene
299e9d15fb
Add support for importing encrypted TiddlyWiki documents
2014-01-19 18:43:02 +00:00
Jermolene
60926198b1
Improve logic for initialising reading node tiddlers
...
We want fine control of whether tiddlers are read from the DOM or the
file system, without ganging it to whether we’re on node vs. browser.
2014-01-18 14:53:26 +00:00
Jermolene
839361d54f
Futher refactoring for TiddlyDesktop
...
We need finer control over the boot process so that we can force it to
load tiddlers from the Node.js file APIs rather than from the DOM
2014-01-15 14:51:04 +00:00
Jermolene
c7fb0bd349
Start updating the boot kernel for more node-webkit integration
...
The goal is to make it possible to use the Node.js boot code under
node-webkit, so that we can directly load wiki folders
2014-01-14 14:09:04 +00:00
Jermolene
84e149e36c
Reset the JavaScript error dialogue width
...
It inadvertantly got affected by the change to the password dialogue.
2014-01-13 16:17:08 +00:00
Jermolene
b04141fefd
Don't load tiddlers that don't have a title
...
We were getting problems (eg, adding a `readme.md` to a plugin without
an accompanying `readme.md.meta` would end up creating a tiddler called
“undefined”)
2014-01-12 21:48:18 +00:00
Jermolene
b5d2b79a37
Add nbsp handling to htmlDecode
2014-01-12 20:11:51 +00:00
Jermolene
b326315b0e
Make the password dialogue narrower
...
To make it work better on mobile devices
2014-01-10 16:51:39 +00:00
Jermolene
1a74e2538c
Cleaning up further coding style inconsistencies that have crept in
2014-01-03 10:50:00 +00:00
Jermolene
0ec2224757
Fallback to a default tiddlywiki.info file if it does not exist
...
We fallback to settings suitable for the server version, to help people
get up and running quickly.
2013-12-18 21:11:00 +00:00
Jermolene
07dd524016
Adjust build scripts to save favicon.ico from wiki
...
And add file type information for `image/x-icon`
2013-12-18 17:27:10 +00:00
Jeremy Ruston
a389f9bc8c
Merge pull request #181 from natecain/excludes_refactor
...
A small refactor and addition to exclude more files
2013-12-18 08:51:36 -08:00
Jermolene
810167bc7b
Improve handling of double square brackets within tags
...
Now a [[ has to be preceded by the beginning of the string or a
whitespace and a ]] has to be followed by whitespace or the end of the
string to act as quotes.
Thanks to @Skeeve for the regex
2013-12-17 14:53:02 +00:00
Jermolene
3f06384516
Adjusted plugin encoding so that the JSON text no longer duplicates the fields
2013-12-14 09:46:02 +00:00
Jermolene
026a27c1ab
Split out the parsing of semantic version strings
2013-12-02 09:57:19 +00:00
Jermolene
7d12d89a0a
Added primitive support for basic authentication
...
Note that the password will be passed over HTTP in plain text.
2013-11-28 14:03:08 +00:00
Jermolene
b63f7a7416
Fix missing seconds in serialised date fields
2013-11-19 12:14:37 +00:00
Jeremy Ruston
35adf4269a
Merge backlog of changes from master branch
...
This is too easy. I'm worried.
2013-11-08 08:33:27 +00:00
Jeremy Ruston
bfe3d3ee5a
Extend tiddler modification and creation dates to include milliseconds
...
Fixes #200
2013-11-07 20:04:54 +00:00
Jeremy Ruston
69888e6701
Allow field modules to specify HTML element tag used for editing
2013-11-07 19:39:50 +00:00
Jeremy Ruston
b474d8c13d
Extend domMaker to set event listeners
2013-10-26 13:13:45 +01:00
natecain
5e743262d4
A small refactor and addition to exclude more files
...
Refactored duplicated `excludeRegExp` into `$tw.boot.excludeRegExp`
Added NPM's ignore list to ignore more files during node bootstrap
2013-10-13 12:58:10 -04:00
natecain
951019eacc
Make require() compliant with CommonJS Modules/1.1
2013-10-12 13:44:09 -04:00
Jeremy Ruston
5ef4123b3d
Revert "Merge pull request #160 from natecain/commonjs"
...
This reverts commit 661621c3f7
, reversing
changes made to d3d72eff1b
.
2013-10-12 16:29:20 +01:00
Jeremy Ruston
661621c3f7
Merge pull request #160 from natecain/commonjs
...
CommonJS Modules/1.1 Conformance
2013-10-12 07:42:26 -07:00
natecain
b8c37a26ef
Additional improvement to CommonJS Modules support
...
Now implements (and mostly follows) requirements of Modules/1.1 spec
implementes only the required "secure sandbox" subset of the spec
`module` free variable changed from the `moduleInfo` to an id container
`require` free variable given a "main" property
boot module scope closed and exported
this also changes the interface between boot and bootprefix slightly
(should now be able to create multiple TW instances under node)
BREAKING CHANGES:
The tiddlywiki module itself now exports a single constructor function
Modules which depended on `module` referring to `moduleInfo` will break
Modules which don't conform to Modules/1.1 will break
(by attempting to modify require.main or module.id)
2013-10-11 11:32:58 -04:00
Jeremy Ruston
c784217009
Missing semi
2013-10-03 14:43:58 +01:00
natecain
fbc80e379d
Some quick style cleanup to commonjs patches
2013-10-01 17:56:05 -04:00
Jeremy Ruston
48402ed329
Improve comments
2013-09-21 10:06:44 +01:00
natecain
5c92ec3617
Cleaned up some dead/commented in patches.
2013-09-17 22:38:14 -04:00
natecain
881325b7ed
Make require() compliant with CommonJS 1.0
...
This includes potentially breaking changes.
Specifically, before this patch tiddlywiki would default to relative module identifiers
Now, tiddlywiki will only search relative paths if explicitly specified
Additionally, some "defaulted export contexts" were removed
(some modules may make assumptions about context)
Some unit tests were modified slightly from their originals
Tiddlywiki doesn't have a notion of a "main" program's path
Some require calls were explicitly made relative
None of these changes should affect the requirement under test in each case
2013-09-17 21:10:24 -04:00
Jeremy Ruston
20f06e8eec
Ensure that the core plugins inherit their version number from the main package.info
2013-08-26 13:28:23 +01:00
Jeremy Ruston
d6ec1ea1e5
Remove plugin
field now that we've got the plugin-type
field
...
I've been meaning to remove the `plugin` field for ages.
2013-08-23 18:37:54 +01:00
Jeremy Ruston
9345078926
Refactor boot process to allow for lack of wiki folder
...
Previously, the command line interface required a wiki folder to be
specified.
This is part of the work to enable TiddlyWiki5 to be used more easily
as a library in other node.js apps
2013-08-21 09:42:51 +01:00
Jeremy Ruston
644d9f9405
Refactor boot sequence
...
This is the start of making it possible to use TiddlyWiki5 as a library
from a node.js application
2013-08-20 15:17:57 +01:00
Jeremy Ruston
be1b16e260
Add a new standard field called "list" that contains a list of tiddler titles
2013-08-07 16:05:56 +01:00
Jeremy Ruston
4765b4a02d
Use a more robust check for whether a variable is a date
...
The simple "instanceof Date" check fails if the Date was made in a
different node.js VM
2013-08-06 15:26:10 +01:00
Jeremy Ruston
586848f5e2
Fix typo
...
Fixes #113
2013-07-21 21:11:48 +01:00