Jeremy Ruston
a8b1da33de
Improvements to slide animation
2013-05-28 16:47:16 +01:00
Jeremy Ruston
5cdcadd8b2
Make the reveal widget use the new animator mechanism
2013-05-28 16:28:38 +01:00
Jeremy Ruston
227cadd326
Add a barebones animation framework
...
The idea is to allow us to package animations/transitions into plugins
2013-05-28 16:28:16 +01:00
Jeremy Ruston
cf75b209ba
Add eachday
and sameday
filter operators
...
These operators will enable us to group the recent changes list by day
2013-05-27 17:59:33 +01:00
Jeremy Ruston
ca51634041
Add the each
filter operator
...
This makes it possible to do grouping within lists
2013-05-27 17:59:03 +01:00
Jeremy Ruston
887d955fc4
Change the search filter operator to not indirect through a tiddler
...
Now that we can make any filter operator indirect through a tiddler we
don't need to have that as a special capability of the search operator.
2013-05-27 17:58:27 +01:00
Jeremy Ruston
f4a3b25d3e
Extend the filter mechanism to allow operands to be indirected through a tiddler text reference
...
In other words, as well as `[sort[myfield]]` to sort by the field
called `myfield`, one can do `[sort{MyTiddler}]` to sort by the field
whose name is in the text of the tiddler `MyTiddler`.
2013-05-27 17:57:37 +01:00
Jeremy Ruston
9193937125
Fixed problem with field filter operator not performing string comparisons
2013-05-27 17:55:45 +01:00
Jeremy Ruston
31a4b96f57
Fixed problem with getTextReference() not always returning a string
2013-05-27 17:55:23 +01:00
Jeremy Ruston
0cf5dc699e
Refactor the filter mechanism
...
Long overdue rewrite to make it simpler, and break the filter operators
out into individual modules.
2013-05-25 17:26:22 +01:00
Jeremy Ruston
5394fc4ee1
Fix typo
2013-05-25 16:40:44 +01:00
Jeremy Ruston
d19affc9c3
Fix problem with non-shadow stylesheets not being recognised at startup
2013-05-25 16:40:34 +01:00
Jeremy Ruston
1e5842dc1c
Fix download saver on Firefox
...
Turns out that Firefox needs the link to be in the document before it
will honour the click on it.
2013-05-23 11:26:47 +01:00
Jeremy Ruston
4ad6f05010
Fix issue with scrolling while editting long tiddlers in Firefox
2013-05-21 17:54:10 +01:00
Jeremy Ruston
d3fa781287
Switch to using a slider for tiddler info
2013-05-19 12:11:18 +01:00
Jeremy Ruston
96462de2f5
Fix problem with not encoding body of non-base64 data URIs
2013-05-18 16:59:53 +01:00
Jeremy Ruston
3806168038
Fixed problem with non-shadow style tiddlers not being recognised
2013-05-18 16:59:24 +01:00
Jeremy Ruston
d8abc0e9e3
Fix up more document references
2013-05-17 17:37:39 +01:00
Jeremy Ruston
5abc0a7835
Get rid of the obsolete font parser
2013-05-17 17:30:33 +01:00
Jeremy Ruston
f3bcc1c0af
Add a datauri widget
...
Used in stylesheets to get a data URI for a font or bitmap
2013-05-17 17:30:03 +01:00
Jeremy Ruston
6e1cd46bc7
Fix document references
2013-05-17 17:29:43 +01:00
Jeremy Ruston
551ebdc005
Major refactoring of rendering mechanism
...
We now use a fake DOM implementation on the server to let us share more
rendering code between the text output vs. DOM output paths.
2013-05-17 10:12:25 +01:00
Jeremy Ruston
07d4c9a639
A slightly better fix for the render context inheritance issue with the htmlwikified viewer for the view widget
2013-05-15 22:15:57 +01:00
Jeremy Ruston
98986ba9cc
Fix problem with render context not inherited into htmlwikified view widgets
2013-05-15 21:33:40 +01:00
Jeremy Ruston
0a3389c277
Add namespace support to the element renderer
...
This allows us to create SVG elements with the correct namespace, which
allows us to have inline SVG images (coming up next)
2013-05-15 18:44:23 +01:00
Jeremy Ruston
dd2a7199f6
Allow a default value to be specified for WikiRenderTree.getContextVariable
2013-05-15 18:43:19 +01:00
Jeremy Ruston
8564602256
Refactor rendertree to simplify context handling
...
Get rid of the separate renderContext stack and instead have a parent
pointer on renderer nodes. This lets us walk back up the render tree to
resolve context references
2013-05-15 17:32:17 +01:00
Jeremy Ruston
c0683fd65c
Added a saver for the TWEdit iPad/iPhone app
2013-05-14 20:20:48 +01:00
Jeremy Ruston
6864251962
Cleaning up content types
...
Dealt with some inconsistencies
2013-05-13 17:42:07 +01:00
Jeremy Ruston
15d1abf523
Fix problem with context-menu paste not triggering saving of edits
...
We'll use the input event to detect changes, which is reliable but
doesn't work on older browsers
2013-05-11 10:03:11 +01:00
Jeremy Ruston
f43e22f8e5
Remove early bail on switching to a non-existent theme
...
Fixes #98
The excised code was unnecessary, as the rest of the function operates
correctly even if the theme tiddler is missing
2013-05-10 20:24:40 +01:00
Jeremy Ruston
6e44a20804
Fix problem with TiddlyFox on Windows
...
Fix #97
2013-05-10 18:14:01 +01:00
Jeremy Ruston
abcf7df875
Adjust bitmap editor to draw with a yellow pen
...
For highlighting
2013-05-08 15:11:53 +01:00
Jeremy Ruston
8796f312cb
A different animation for hiding notifications
...
Only slightly different, but it seems to add visual interest
2013-05-08 13:27:04 +01:00
Jeremy Ruston
e501c0ec2a
Enhance TiddlyFox saver to display a notification on success
2013-05-07 18:09:15 +01:00
Jeremy Ruston
24db38c06b
Add simple notification mechanism
2013-05-07 18:08:44 +01:00
Jeremy Ruston
ed5f88ab84
Fix problem with importing TW files
2013-05-03 19:19:01 +01:00
Jeremy Ruston
1696daf2bf
More explanation of the linkcatcher widget
...
Prompted by @pmaro
2013-05-01 16:11:52 +01:00
Jeremy Ruston
408fcd8aa3
Add a parser for woff fonts
...
It's a bit of a hack to have a parser dedicated to fonts. We'll replace
it with a mechanism that handles generic binary data
2013-05-01 13:04:27 +01:00
Jeremy Ruston
aa7b9441fd
Add a linkcatcher widget
...
It intercepts navigation events and saves the target tiddler title into
a specified text reference
2013-05-01 12:02:33 +01:00
Jeremy Ruston
c373fea350
Ensure themes get initialised on the server as well as the browser
...
To make sure that static site generation has access to the theme shadow
tiddlers
2013-04-30 23:04:15 +01:00
Jeremy Ruston
523d70127b
Allow themes to be switched by changing the tiddler $:/theme
2013-04-30 22:57:10 +01:00
Jeremy Ruston
e875de63a9
Ignore shadow tiddlers in the syncer
2013-04-30 22:55:06 +01:00
Jeremy Ruston
a54a7806d5
Remove redefinition of Tiddler.hasField() and added Tiddler.isPlugin()
...
hasField() was already being defined in boot.js
2013-04-30 22:37:02 +01:00
Jeremy Ruston
e12fbf0f9f
Comment clarification
2013-04-30 22:35:52 +01:00
Jeremy Ruston
594871e2d1
Fix for the link macro to work around iPhone annoyance
...
This prevents Mobile Safari from sliding the address bar into view
whenever a tiddler link is clicked
2013-04-29 16:03:35 +01:00
Jeremy Ruston
152fb798eb
Start responding to dynamic stylesheet changes
...
This mechanism will only be triggered by changes to the stylesheet
tiddlers themselves, and not to any dependencies that they might have.
It'll stay that way for a while.
The next thing is making the theme manager actually switch themes,
forcing the right wiki change events to make the stylesheet manager
update itself
2013-04-29 12:07:39 +01:00
Jeremy Ruston
c3e14a85a6
Give tiddlers a hasField() method
2013-04-29 12:05:58 +01:00
Jeremy Ruston
17cfd57390
Start making themes switchable
...
Separately switch in ordinary plugins and themes. Change the convention
for plugin information to use dashes rather than camel case.
2013-04-28 22:52:26 +01:00
Jeremy Ruston
996a7279ed
Switch to using tags to identify stylesheets
...
Using module-type was confusing, because we weren't actually using the
module infrastructure for stylesheet processing.
2013-04-28 18:13:57 +01:00
Jeremy Ruston
b305debf97
Add a close all tiddlers button
...
For @pmario
2013-04-27 16:35:59 +01:00
Jeremy Ruston
059a36b23d
Animate tiddler closures to the left
...
As @pmario points out, avoids nasty interactions with the sidebar
2013-04-27 16:24:41 +01:00
Jeremy Ruston
f487ea68d1
Store the parser list in the wiki constructor
2013-04-25 17:40:12 +01:00
Jeremy Ruston
e42a062dcc
Fixed bug with negated title filter
2013-04-25 10:03:37 +01:00
Jeremy Ruston
82308f642a
Use the text parser to parse CSS
2013-04-25 09:05:17 +01:00
Jeremy Ruston
64eadcfc41
Add an HTML parser
...
Allows one to embed raw HTML in wikitext with `$$$.html`/`$$$`
2013-04-10 17:02:37 +01:00
Jeremy Ruston
94287c9ac3
Tidying up drag and drop
2013-04-10 16:55:25 +01:00
Jeremy Ruston
e39d246317
Added basic support for drag and drop of tiddlers
...
Links are now draggable. Dragging outside the browser will drop the
wiki text of the tiddler. Dragging to another TW5 browser window will
drop the entire tiddler, including fields.
2013-04-08 18:47:46 +01:00
Jeremy Ruston
45ee2b3048
Fix bug that was preventing pasting into edit textareas or input boxes
2013-04-05 13:57:55 +01:00
Jeremy Ruston
b69f87484d
Remove extraneous debugging code
2013-04-04 14:24:37 +01:00
Jeremy Ruston
4bcebf5bbf
Fix HTML element parser to not pass capturing parenthesis in terminating regexp
2013-04-04 14:24:21 +01:00
Jeremy Ruston
dc00e584fb
Add support for filtering shadow tiddlers
2013-04-03 14:29:12 +01:00
Jeremy Ruston
6c210df0bd
Update HTML deserializer to cope with TiddlyWiki classic and TW5 files
2013-04-03 12:57:17 +01:00
Jeremy Ruston
c182533efc
Parse TiddlyWiki classic wikitext as plain text
...
Too many errors if we try to parse it as TW5 wikitext
2013-04-02 18:20:38 +01:00
Jeremy Ruston
a17e3588a6
Fix problem triggered by stale history list
2013-04-02 09:28:48 +01:00
Jeremy Ruston
c287d9d6d0
First pass at a widget for importing tiddlers
2013-04-01 19:06:39 +01:00
Jeremy Ruston
d99db91dd5
Fixed attribute assignment
2013-03-28 21:47:51 +00:00
Jeremy Ruston
0f0a96c4da
Update list widget to transclude block vs. inline correctly
2013-03-28 21:29:42 +00:00
Jeremy Ruston
abf3673fc9
Update texteditor to respect prevailing classes and styles
2013-03-28 21:29:20 +00:00
Jeremy Ruston
cd36f594c5
Make the core into a plugin
2013-03-28 17:07:30 +00:00
Jeremy Ruston
54d858a371
Improved default logic for the reveal widget
2013-03-27 13:48:39 +00:00
Jeremy Ruston
e88db07085
Fixed problem with ignored default in wiki.getTiddlerText()
2013-03-27 13:48:17 +00:00
Jeremy Ruston
b6345a9223
Remove logging from the server command
...
We really need to update the logging infrastructure
2013-03-25 20:19:36 +00:00
Jeremy Ruston
f427339a78
Add renderContext parameter to wiki.renderTiddler
2013-03-25 10:42:14 +00:00
Jeremy Ruston
70def07d63
Clearer logging preparatory to implementing file synchronisation
2013-03-24 12:53:09 +00:00
Jeremy Ruston
2870a09dc1
Make some of the sync adaptor methods be optional
2013-03-24 12:27:46 +00:00
Jeremy Ruston
638ed6429c
Show affected filepaths on the server
...
Preparatory to doing file sync on the server
2013-03-23 22:43:39 +00:00
Jeremy Ruston
4848a21c6b
Add GettingStarted tiddler for empty TiddlyWikis
2013-03-21 22:21:34 +00:00
Jeremy Ruston
6f88a57a41
Add wiki.countTiddlers() method
2013-03-21 22:21:00 +00:00
Jeremy Ruston
738952029b
Icons for editing tiddlers
2013-03-20 17:20:46 +00:00
Jeremy Ruston
0d2ac57ff7
Make static links to tiddlers with spaces work
...
A bit of a hack - the savetiddlers command should generate filenames
better
2013-03-20 11:02:06 +00:00
Jeremy Ruston
cbf2e9add9
Add fieldgrid in tiddler info dropdown
2013-03-19 22:39:24 +00:00
Jeremy Ruston
d4ada346dd
The list widget should parse the empty message as inline text
2013-03-19 22:39:04 +00:00
Jeremy Ruston
2aff4db744
Fix relative date viewer so that it displays absolute dates in static HTML representations
2013-03-19 19:06:23 +00:00
Jeremy Ruston
ec83bc5c64
Bring back the relativedate viewer
2013-03-19 18:59:13 +00:00
Jeremy Ruston
dbfbad3dd3
Let view widget viewers get postRenderInDom() callbacks
2013-03-19 18:59:00 +00:00
Jeremy Ruston
28707edd72
Decode paths for TiddlyFox
2013-03-19 18:36:27 +00:00
Jeremy Ruston
5a6c2b91f8
Parse JSON as text so that it doesn't generate missing tiddlers
2013-03-19 18:26:55 +00:00
Jeremy Ruston
952f1b3900
Add tiddler info dropdown
...
Including backlinks
2013-03-19 16:45:07 +00:00
Jeremy Ruston
069bb624e5
Fix popup removal
2013-03-19 16:44:32 +00:00
Jeremy Ruston
7cb65a3816
Add 'missing' and 'orphan' tabs
2013-03-19 10:14:44 +00:00
Jeremy Ruston
a1260dc57d
Basic first implementation of tabs for the sidebar
2013-03-18 22:18:54 +00:00
Jeremy Ruston
4af8026e28
Fix savetiddlers command to create files with special characters in the name
2013-03-18 22:16:01 +00:00
Jeremy Ruston
5b6376a386
Better titles for drafts of new tiddlers
2013-03-18 10:59:47 +00:00
Jeremy Ruston
5e12868e76
Fixes to ensure revision field is always a string
...
TiddlyWeb returns it as a number, which seems like it might be an
accident.
2013-03-18 10:13:36 +00:00
Jeremy Ruston
d14c61ef45
Switch "userName" to "username"
...
Because the former is naff
2013-03-17 19:37:31 +00:00
Jeremy Ruston
822f436534
Fix revision handling
2013-03-17 19:26:13 +00:00
Jeremy Ruston
d19fa16ca6
Fix inclusion of revision field when getting a tiddler
2013-03-17 19:25:59 +00:00
Jeremy Ruston
2624fed4f1
Get rid of the support for old-style syncers
2013-03-17 18:45:22 +00:00
Jeremy Ruston
210f596d0c
Marginally improve the elegance of the simple HTTP server
2013-03-17 17:57:46 +00:00
Jeremy Ruston
dbde2bf23b
Started refactoring TiddlyWeb syncer into generic syncer + TiddlyWeb adaptor
...
The refactored plugin is `tiddlyweb2` for the moment. The idea is to be
able to use the same syncer with a different adaptor for syncing
changes to the local file system.
2013-03-17 15:28:49 +00:00
Jeremy Ruston
8e6ce3733d
Use "self" rather than "me" for consistency
2013-03-17 15:06:09 +00:00
Jeremy Ruston
17a9cdd1e3
Remove initSyncers() from wiki.js
2013-03-16 11:06:44 +00:00
Jeremy Ruston
71aa79013d
Remove invokeSyncers() method from wiki.js
2013-03-16 10:58:47 +00:00
Jeremy Ruston
854e8d7083
Use the wiki event mechanism to dispatch lazyLoad notifications to syncers
...
We're trying to get to the point where wiki.js doesn't know about
syncers
2013-03-16 10:50:36 +00:00
Jeremy Ruston
c3b57507b0
Refactored wiki event mechanism to support multiple event types
2013-03-16 10:42:46 +00:00
Jeremy Ruston
623a3ec8f8
Rename "shadow" tiddlers to "system" tiddlers
...
What we have at the moment isn't really the same as TiddlyWiki
classic's shadow tiddlers, it's a much simpler system for excluding
tiddlers. We'll use the term "shadow" instead to refer to the way that
tiddlers in plugins behave, which is exactly like TiddlyWiki classic's
shadow tiddlers.
2013-03-15 22:00:19 +00:00
Jeremy Ruston
e5443e27cb
Minor tweaks to getTiddlers
2013-03-15 20:02:31 +00:00
Jeremy Ruston
71ecb022ef
Update TiddlyWeb support
...
Lots of changes:
* Make the built-in server support recipes and bags, albeit there's
just one of each, called "default"
* Correctly parse returned Etag to get bag of freshly PUT tiddlers
* URI encoding for tiddler titles, so that tiddlers with slashes and so
on work OK
2013-03-12 19:18:56 +00:00
Jeremy Ruston
7e57c422dc
Re-introduce video widget
2013-03-12 19:17:13 +00:00
Jeremy Ruston
6b78352764
Fixed handling of deleting tiddlers over HTTP
2013-03-11 10:04:44 +00:00
Jeremy Ruston
ab8fc26ba1
Update server command to be compatible with the TiddlyWeb syncer
...
Now TW5 in the browser can use the TiddlyWeb syncer to talk to TW5 on
the server
2013-03-10 19:28:24 +00:00
Jeremy Ruston
00ad0bc7a9
Docs update
2013-03-10 19:27:44 +00:00
Jeremy Ruston
fc33df8829
Add support for deleting tiddlers
2013-03-10 19:24:49 +00:00
Jeremy Ruston
21cb1e233e
Add "info" widget for displaying information about tiddlers
...
Currently only supports displaying the changecount of a tiddler
2013-03-10 19:24:22 +00:00
Jeremy Ruston
83a141752c
Further simplifications to syncer interface
...
Dropped the idea of exposing separate server connections
2013-03-09 09:54:01 +00:00
Jeremy Ruston
3da508b7c4
Simplify syncer interface
2013-03-08 20:29:13 +00:00
Jeremy Ruston
7d589b4b27
Removed extraneous debugging code
2013-03-08 17:50:40 +00:00
Jeremy Ruston
0731135866
Adding comment
2013-03-07 17:18:04 +00:00
Jeremy Ruston
f85afdb964
Fixed #70
2013-03-06 22:12:21 +00:00
Jeremy Ruston
06c5308c4b
More explicit name for "touchTiddler"
...
Thanks to @boycook for the conversation that triggered this refactoring
2013-03-05 19:59:55 +00:00
Jeremy Ruston
9155b8475f
Use synchronous file writes for saving tiddlers
...
So that we don't get problems with "docs.tid" overwrites "Docs.tid"
halfway through each other
2013-03-05 11:56:15 +00:00
Jeremy Ruston
8e9b2996eb
Restore qualifyHoverTitles
attribute to link widget
2013-03-05 11:55:25 +00:00
Jeremy Ruston
15a9e04a6a
Add support for static site generation
...
See http://five.tiddlywiki.com/static.html for an example
2013-03-04 18:15:54 +00:00
Jeremy Ruston
c24c00e8d6
Make the htmwikified viewer pass the renderContext through
2013-03-04 18:05:22 +00:00
Jeremy Ruston
fc79db53ab
Allow templating with the link widget
...
And add some documentation
2013-03-04 11:13:10 +00:00
Jeremy Ruston
79bb082b92
Restore password widget
...
Hence allowing TiddlySpot integration to work again
2013-03-04 11:12:49 +00:00
Jeremy Ruston
4c06bd72de
Fix #59
...
Much more intelligent automatic scrolling
2013-03-03 20:06:23 +00:00
Jeremy Ruston
d7896f051a
Fixed problem with greediness of filtered transclude regexp
2013-03-02 13:01:44 +00:00
Jeremy Ruston
25df8bae6a
Quick fix to allow wikilinks to be disabled
...
And using it to disable wikilinks in the readmes
2013-03-01 18:04:53 +00:00
Jeremy Ruston
9cbee467cb
Smaller titles for modal dialogs
2013-03-01 09:13:10 +00:00
Jeremy Ruston
6c4a2a6026
Fix modal dialogue to use inline parsing for header and footer
2013-02-10 18:44:00 +00:00
Jeremy Ruston
f3acc92730
Tweak removal animation in classic list view
2013-02-09 17:18:00 +00:00
Jeremy Ruston
114e8f4145
Remove extraneous newline in HTML representation
2013-02-09 17:07:52 +00:00
Jeremy Ruston
c76d038b8e
Update command line processing to allow a wiki path to be specified
2013-02-09 17:07:18 +00:00
Jeremy Ruston
6584939114
Less confusing method name
2013-02-08 09:22:21 +00:00
Jeremy Ruston
5fd73a2b8d
Remove obsolete modules
...
ArgParser was used by the old tw2 parser, and the Sprite animator was
never actually used
2013-02-08 09:22:02 +00:00
Jeremy Ruston
87986a945d
Animation tweaks for classic listview
2013-02-06 17:06:48 +00:00
Jeremy Ruston
b0a20e704b
Restored the classic listview
2013-02-06 11:27:09 +00:00
Jeremy Ruston
1b2cdf9cd0
Use string.charAt(n) instead of string[n]
...
Safari doesn't seem to like the string indices in some circumstances
2013-02-05 19:12:05 +00:00
Jeremy Ruston
170c1425f7
Normalise custom event names
2013-02-04 15:29:25 +00:00
Jeremy Ruston
365974d14f
Improved generation of titles for draft tiddlers
2013-02-04 11:56:11 +00:00
Jeremy Ruston
30d0dec1fa
Replacement styles
...
Smaller simpler styles (including CSS reset from
https://github.com/necolas/normalize.css/ )
2013-02-03 23:02:23 +00:00
Jeremy Ruston
5df60aaa3c
Don't render content or closing tag for void elements
2013-02-03 17:44:40 +00:00
Jeremy Ruston
c85acd71fe
Move the void element list into the main config file
2013-02-03 17:44:28 +00:00
Jeremy Ruston
4289a027d4
Add newlines after opening and closing tags
...
Which also fixes the problem with the PRE tag eating it's first newline
2013-02-03 17:11:03 +00:00
Jeremy Ruston
5028da3953
Better wording and button colours for password UI
2013-02-02 12:06:59 +00:00
Jeremy Ruston
a9de17bd55
Restore encrypted TiddlyWiki support
2013-01-31 10:20:13 +00:00
Jeremy Ruston
9a71117853
Prettify JSON
2013-01-28 19:27:22 +00:00
Jeremy Ruston
32331a8764
Process DefaultTiddlers on the server as well as the browser
...
Thus fixing the baking of static.html
2013-01-23 12:36:42 +00:00
Jeremy Ruston
83900b0230
Fixed problem with erroneous rendering of empty HTML tags
...
We were doing things like `<div />`, which HTML doesn't like
2013-01-23 12:36:08 +00:00
Jeremy Ruston
bae48d5526
Stop base64 encoding context scope IDs
...
The base64 encoding wasn't working on node.js, and is a bit messy
2013-01-23 12:35:21 +00:00
Jeremy Ruston
d91f12f30a
Turn the recipe deserialiser into a plugin in the tw2 edition
2013-01-22 08:56:21 +00:00
Jeremy Ruston
f37e99d1fb
Extend fields widget to allow stripping of prefixes from tiddler titles
...
This functionality is a bit specific to the production of TW2, and so
might be refactored elsewise in the future.
2013-01-21 17:26:43 +00:00
Jeremy Ruston
d3fefa8b16
Fixed regexp for filtered transclusion
...
Previously we couldn't use filter expressions that included curly braces
2013-01-21 17:24:47 +00:00
Jeremy Ruston
dd3433f39f
Fixed problem with closing all tiddlers in a story
2013-01-18 15:36:49 +00:00
Jeremy Ruston
5e7e1fa93d
Re-introduce the checkbox widget
2013-01-18 09:33:16 +00:00
Jeremy Ruston
71f6194f01
Introduce a simple listview that scrolls to newly inserted entries
2013-01-17 13:52:46 +00:00
Jeremy Ruston
94744843b6
Added new tiddler button
2013-01-17 11:38:02 +00:00
Jeremy Ruston
aba120befc
Added text and bitmap editors
2013-01-17 11:30:35 +00:00
Jeremy Ruston
106099d991
Removed obsolete code
2013-01-17 11:29:35 +00:00
Jeremy Ruston
e024440ca8
Fixed transclude widget to only refresh when the template changes
...
Not when the tiddler being viewed changes; any such changes will be
picked up by embedded view widgets.
2013-01-17 11:29:21 +00:00
Jeremy Ruston
df59dee188
Removed ability for widgets to not generate any elements
...
It interfered with the refresh mechanism
2013-01-17 11:28:24 +00:00
Jeremy Ruston
d28ee0b82a
Change module type for parsers to "parser"
2013-01-16 13:56:11 +00:00
Jeremy Ruston
0e2a0068e5
Remove obsolete wikitest command
2013-01-16 13:44:27 +00:00
Jeremy Ruston
baff901685
Added ability to transclude fields of data tiddlers
...
This allows us to transclude colours into CSS
2013-01-15 17:50:47 +00:00
Jeremy Ruston
b19a0ac948
Add dynamic processing of stylesheets with transclusions and macros
2013-01-06 21:39:39 +00:00
Jeremy Ruston
41e8942b0c
Add error message when trying to dump a non-existent tiddler
2013-01-06 21:38:38 +00:00
Jeremy Ruston
698f8dd602
Added version widget
2013-01-03 22:55:23 +00:00
Jeremy Ruston
a43d7aed95
Added setstyle widget and use it to colour the tag buttons
2013-01-03 22:36:51 +00:00
Jeremy Ruston
975711e22e
Fixed missing parameter
2013-01-03 22:36:33 +00:00
Jeremy Ruston
95c9b7b114
Fixed bug with refreshing transclude widget
2013-01-03 20:54:34 +00:00
Jeremy Ruston
a2dfaec054
Get rid of the extraneous <span> around link widgets
2013-01-03 20:51:28 +00:00
Jeremy Ruston
89d44e27df
Refactor things so that widgets can opt not to generate an element
...
They have to have a single child renderer instead
2013-01-03 20:51:13 +00:00
Jeremy Ruston
5755cd5d3f
Make modal wizards work again
2013-01-03 17:06:14 +00:00
Jeremy Ruston
6d24cedbcc
Refactored widget renderers to be hosted within HTML element renderers
...
This arrangement takes better advantage of the similarities between the
now deleted widget renderer and the element renderer. It also obviates
the need for wrapper elements around every widget.
2013-01-03 16:27:55 +00:00
Jeremy Ruston
2124dd1ac1
Add a better error message for unknown widgets
2013-01-01 18:00:02 +00:00
Jeremy Ruston
d96e0073ac
Refactored widgets not to use a base class
2013-01-01 17:51:02 +00:00
Jeremy Ruston
f8340bc4dc
Improvements to reveal widget popup handling
2013-01-01 16:14:42 +00:00
Jeremy Ruston
8fdeefd7d1
Added reveal macro
2012-12-31 18:36:39 +00:00
Jeremy Ruston
61eb585640
Fixed problem with HTML inline parse rule
...
We were incorrectly eating line breaks after self-closing inline HTML
tags
2012-12-31 18:36:13 +00:00
Jeremy Ruston
5b7cdc20ba
Added beginnings of popup widget
2012-12-30 17:23:44 +00:00
Jeremy Ruston
7d5c355d9e
Make the html parser rule work in block mode as well as inline mode
2012-12-30 17:21:38 +00:00
Jeremy Ruston
300b6cc485
Change widget syntax to $
instead of underscore
...
eg `<$list>`
2012-12-30 13:55:19 +00:00
Jeremy Ruston
f496cd540e
Store macros in the render context so that they scope in the expected way
2012-12-29 23:17:09 +00:00
Jeremy Ruston
ea13652a64
Fixed subtle little typo
2012-12-29 23:16:34 +00:00
Jeremy Ruston
b9a7f0ed39
Added typed blocks
2012-12-29 22:29:24 +00:00
Jeremy Ruston
27ccb581be
Don't trim macro definition bodies
2012-12-29 22:27:51 +00:00
Jeremy Ruston
12683c7d5f
Removed dead code
...
Left over from the big parser refactoring
2012-12-29 22:27:36 +00:00
Jeremy Ruston
db0b82d4ef
Fix typo in list filter type for shadow tiddlers
2012-12-28 22:57:18 +00:00
Jeremy Ruston
b006cf163f
Remove the old parser code
...
Thus introducing a few functional regressions, but it's going to be
easier to fix things up without the old code knocking around and
getting in the way.
2012-12-28 22:08:32 +00:00
Jeremy Ruston
d6e531e87c
Extend new parser mechanism to determine parser based on content type
...
And add an image parser and a plain text parser
2012-12-27 17:08:29 +00:00
Jeremy Ruston
c078edf468
Rename the old image parser to make room for the new one
2012-12-27 17:07:35 +00:00
Jeremy Ruston
c703fb1267
Get rid of the wikivocabulary object
2012-12-26 22:02:59 +00:00
Jeremy Ruston
cbc08fcc1c
Reorganise the old parsers preparatory to replacing them
2012-12-26 20:03:33 +00:00
Jeremy Ruston
8684c375b8
Rename horizontal rule parser rule for less "rule"-based confusion
2012-12-26 19:49:01 +00:00
Jeremy Ruston
90a09c0a42
Added templates and temporary command for building TiddlyWiki with the new parser
2012-12-26 19:38:39 +00:00
Jeremy Ruston
8d185399de
Some new viewers we'll need for cooking TiddlyWiki files
...
This is all part of getting the new parser able to cook TiddlyWiki files
2012-12-26 19:37:33 +00:00
Jeremy Ruston
ac96b13b47
Added "fields" widget
...
Outputs tiddler fields through a text template.
2012-12-26 19:36:54 +00:00
Jeremy Ruston
03e46ad8f5
Add "rules" pragma for specifiying parser rules to be used for a tiddler
2012-12-26 19:35:54 +00:00
Jeremy Ruston
27c21a5edb
Added trim string utility function
2012-12-26 19:35:12 +00:00
Jeremy Ruston
2635b62a73
Fix bug in styleblock regexp
2012-12-26 19:33:22 +00:00
Jeremy Ruston
0e418f6e8d
Fix the macro definition regexp
2012-12-26 19:33:11 +00:00
Jeremy Ruston
c1ec1578ec
Make sure the parser rules have unique names
2012-12-26 19:32:54 +00:00
Jeremy Ruston
4cf1c9ed1e
Fix problem with the regexp for the "dash" parser
2012-12-26 19:32:06 +00:00
Jeremy Ruston
11d001ad80
Added inline variant of filtered transclusion syntax
2012-12-23 10:47:14 +00:00
Jeremy Ruston
c3a2a24b76
Introduce filtered transclusion syntax
2012-12-23 10:37:18 +00:00
Jeremy Ruston
05ccb85759
Add template syntax for transclusion
2012-12-23 10:36:55 +00:00
Jeremy Ruston
8ef3e59416
Improved whitespace handling in classes
2012-12-23 10:36:37 +00:00
Jeremy Ruston
c31c12d698
Fix bug with extraneous dot in classed blocks
2012-12-23 10:36:25 +00:00
Jeremy Ruston
6fae946bda
Replace classed blocks and runs with styled blocks and runs
2012-12-22 23:10:06 +00:00
Jeremy Ruston
982b6a8773
Switch code block syntax
2012-12-22 23:09:44 +00:00
Jeremy Ruston
8f85ef94a6
Stop using triple curly braces for code
...
We'll use triple curly braces for filtered transclusions, and require
backtick for code.
2012-12-22 23:09:10 +00:00
Jeremy Ruston
fa17eb1b96
Fixed support for custom attributes, classes and tooltips on transclusions
2012-12-20 17:19:28 +00:00
Jeremy Ruston
015145952d
Added support for block macro calls
2012-12-20 17:03:41 +00:00
Jeremy Ruston
b0893956bc
Start introducing both inline and block variants of macro calls
2012-12-20 16:55:08 +00:00
Jeremy Ruston
0cb76f6fc0
Mark each rule with its type as it is instantiated
2012-12-20 16:49:04 +00:00
Jeremy Ruston
094f8c32ca
Finishing moving the parser rules about
2012-12-20 16:41:06 +00:00
Jeremy Ruston
54423e599c
Moving the wikiparser rules around
2012-12-20 16:38:33 +00:00
Jeremy Ruston
42945789e9
Refactor parser rule architecture to allow individual parsers to function as both block and inline parsers
2012-12-20 16:02:03 +00:00
Jeremy Ruston
2f091fefda
Removed erroneous cruft
2012-12-20 15:43:12 +00:00
Jeremy Ruston
055bdd8d8f
Added inline transclusion as well as block transclusion
2012-12-20 15:07:38 +00:00
Jeremy Ruston
360e188e49
Continuing renaming run rules to inline rules
2012-12-20 12:18:38 +00:00
Jeremy Ruston
fc28ed0bbb
Renaming parser "run rules" to "inline rules"
2012-12-20 12:02:35 +00:00
Jeremy Ruston
6ccf13e624
Widgets and macro calls should be spans not divs
...
Although it does mean that we'll end up creating divs inside spans,
which isn't strictly legal but works in all browsers
2012-12-20 10:37:51 +00:00
Jeremy Ruston
2689f6b1e5
Loosened dash formatting rule
...
It no longer has to be followed by whitespace, instead it must be
followed by anything other than a dash.
2012-12-20 09:26:59 +00:00
Jeremy Ruston
5c2f698842
Add parse tree helper for styling elements
2012-12-20 09:21:58 +00:00
Jeremy Ruston
36290c14fa
Fix for multiple macro parameters
...
This is one situation where the assignment to undefined matters
2012-12-20 09:21:44 +00:00
Jeremy Ruston
bede162896
Stop using custom elements to mark widgets
2012-12-20 09:21:08 +00:00
Jeremy Ruston
a63c7a8822
More parser rules
2012-12-15 17:35:35 +00:00
Jeremy Ruston
0c3c2eeec6
Improve implementation of classed runs
2012-12-15 17:35:16 +00:00
Jeremy Ruston
6ac1b7b9dc
Fixed problem with renderer tree nodes that don't have children
2012-12-15 17:34:48 +00:00
Jeremy Ruston
e3462e5606
Added more parse rules
2012-12-15 11:39:58 +00:00
Jeremy Ruston
60dca0f38a
Added parse tree utility functions
2012-12-15 11:38:59 +00:00
Jeremy Ruston
c0e36f1129
Removed extraneous code
...
This was left over from before the refactoring
2012-12-15 11:38:47 +00:00
Jeremy Ruston
228ee92e95
Enhanced wiki text parser to selectively eat terminator regexp matches
2012-12-15 11:38:28 +00:00
Jeremy Ruston
7593cf1075
Cleaning up the widget refresh mechanism
2012-12-14 19:31:37 +00:00
Jeremy Ruston
966684cb13
Improved event handling for widgets
2012-12-14 17:57:53 +00:00
Jeremy Ruston
5c1caa672b
Moved render() and renderInDom() into widget base class
2012-12-14 17:51:14 +00:00
Jeremy Ruston
94d1c20846
Introduced widget base class
...
And renamed the wiki rule base class
2012-12-14 17:38:46 +00:00
Jeremy Ruston
3e06bca347
Refactor widget implementation
2012-12-14 16:01:37 +00:00
Jeremy Ruston
ac4b3ecef9
Further refactoring of createSubclassesFromModules
2012-12-14 15:51:23 +00:00
Jeremy Ruston
2bef7c2c5c
Further improvements to parser rule implementation
2012-12-14 15:44:19 +00:00
Jeremy Ruston
31b283ef36
Refactoring implementation of wiki parse rules
...
And some documentation.
2012-12-14 13:31:47 +00:00
Jeremy Ruston
28f96de225
Added extend() utility function
2012-12-14 13:30:10 +00:00
Jeremy Ruston
d338a54370
Introduce refactored wiki parser and renderer
...
This is a half-way through a big refactoring of the parsing and
rendering infrastructure. The main change is to separate the parse and
render trees, which makes the code a lot cleaner. The new parser isn't
yet functional enough to replace the existing parser so for the moment
you have to manually invoke it with `$tw.testNewParser()` in your
browser console. I really ought to use branches for this kind of
thing...
2012-12-13 21:34:31 +00:00
Jeremy Ruston
916ca8eecf
More utilities
2012-12-13 21:31:57 +00:00
Jeremy Ruston
ce273a22f1
More DOM utilities
2012-12-13 21:31:41 +00:00
Jeremy Ruston
a4930b7e68
Added checkbox macro
2012-11-30 09:22:17 +00:00
Jeremy Ruston
91e1a38db1
Switched to use double curly braces for transclusion
...
For compatbility with MediaWiki and other engines
2012-11-29 18:34:27 +00:00