1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-07-24 21:04:21 +00:00
Commit Graph

33 Commits

Author SHA1 Message Date
Jeremy Ruston
41637a791f Corrected missing export of RawNode 2012-04-13 14:06:42 +01:00
Jeremy Ruston
350f2f50d4 Added ability for macros to register their own event handlers, and a rendering callback 2012-03-31 18:10:16 +01:00
Jeremy Ruston
a7b905cf88 Refactored renderer logic to call refreshInDom on macros unconditionally
This allows the macro itself to decide whether it wants to perform an
update or not
2012-03-30 16:45:24 +01:00
Jeremy Ruston
1df0a50760 Added support for macros to evaluate their own dependencies 2012-03-30 13:48:30 +01:00
Jeremy Ruston
392e717497 Refactored handling of context tiddler
Now the title is passed around, rather than a reference to the tiddler.
This lets the context be a missing tiddler, enabling us to correctly
render missing tiddlers
2012-03-29 14:30:22 +01:00
Jeremy Ruston
02aaa3567f Improved comments 2012-03-29 12:23:34 +01:00
Jeremy Ruston
1d11acf8ec Keeping JSHint happy 2012-03-13 15:15:33 +00:00
Jeremy Ruston
581d165822 Catch navigation events that fall through to the document
And broadcast them back to the first story macro that accepts them
2012-03-13 15:12:23 +00:00
Jeremy Ruston
f8f3b884a1 Fixed some confusing parameter names 2012-03-11 19:08:50 +00:00
Jeremy Ruston
b64e44d1af Refactored macro implementation
Now setting event handlers to the macro object, the browser invokes the
handleEvent method. Gets rid of a closure, which is good
2012-03-07 17:42:10 +00:00
Jeremy Ruston
ed6cc0b7e3 Added Twitter Bootstrap styles
And started converting everything to using the new classes
2012-03-05 15:13:25 +00:00
Jeremy Ruston
cb97295fdb Further refactorings to simplify macro development 2012-03-05 13:36:53 +00:00
Jeremy Ruston
8abf0049cf Refactored slider macro 2012-03-05 12:23:27 +00:00
Jeremy Ruston
4a73317193 Refactoring renderer "tree" array to "nodes" 2012-03-03 18:39:13 +00:00
Jeremy Ruston
7f136dd898 Get rid of the old WikiTextParseTree class
And replace it with a new root Renderer() class
2012-03-03 18:33:16 +00:00
Jeremy Ruston
865a0ad7cc Improved rendering of JavaScript that has parse errors 2012-03-02 12:09:06 +00:00
Jeremy Ruston
8552f2f894 Use the new esprima parser to display javascript modules as parse trees 2012-03-01 23:59:46 +00:00
Jeremy Ruston
f6338d9109 Replace pegs parser with Esprima
It preserves comments and text positions, enabling us to do syntax
highlighting. Hopefully.
2012-03-01 22:47:31 +00:00
Jeremy Ruston
470b622bb1 Corrected dependency skinny/fat handling 2012-03-01 19:03:04 +00:00
Jeremy Ruston
46f019ea83 Refactored where we do macro parameter string parsing 2012-02-22 23:27:38 +00:00
Jeremy Ruston
bf6f5e0254 Refactored macro interface
Now 'this' points to the Renderer.MacroNode
2012-02-21 21:57:30 +00:00
Jeremy Ruston
bc385abe23 Merged adjacent if() clauses 2012-02-20 21:19:12 +00:00
Jeremy Ruston
aaedf28904 Minor re-enhancements 2012-02-20 21:00:12 +00:00
Jeremy Ruston
5ca478d106 Get rid of the Renderer() wrapper and use the MacroNode directly 2012-02-20 20:52:54 +00:00
Jeremy Ruston
53f652bf2a Refactored evaluation of macro dependencies
Now the dependencies are evaluated in the constructor for the
Renderer.MacroNode
2012-02-20 19:27:37 +00:00
Jeremy Ruston
36f61b4321 Further simplification of the Renderer() class 2012-02-20 18:04:12 +00:00
Jeremy Ruston
707a08540c Ceding to JSHint's suggestions 2012-02-20 15:42:21 +00:00
Jeremy Ruston
4d6f8ab8eb Introduced new base class for Renderer nodes
Making the code a bit simpler
2012-02-20 11:06:17 +00:00
Jeremy Ruston
a0524c2144 Added protection against wikitext recursion
Now attempts to view a tiddler recursively fail gracefully
2012-02-19 17:20:16 +00:00
Jeremy Ruston
94a84d8bc6 More JSHint hints 2012-02-17 17:31:57 +00:00
Jeremy Ruston
103a9a4d7f Introduced new Dependency() class to encapsulate dependency handling logic
Note that the format is now slightly different; see js/Dependencies.js
for details
2012-02-17 14:11:25 +00:00
Jeremy Ruston
221cc80c65 Updated renderer to handle refreshing
Now we can refresh renderers that aren't in a DOM tree
2012-02-17 12:34:56 +00:00
Jeremy Ruston
fef0b9e4da Introduce new Renderer class
Another massive refactoring, with a bit more polishing to come
2012-02-16 20:36:43 +00:00