1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-07-03 10:43:16 +00:00
Commit Graph

651 Commits

Author SHA1 Message Date
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
817e6f5471 Added some test content to the new wiki parser page template 2012-12-15 11:39:42 +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
2522529aac Repaired accidental damage during debugging 2012-12-14 17:38:13 +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
7c712c4e03 Improve $tw.each() and $tw.modules.applyMethods() 2012-12-13 21:31:19 +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
Jeremy Ruston
6d09b2fb9c Improve syntax for classed runs 2012-11-29 17:23:46 +00:00
Jeremy Ruston
97f6314dbb Update the tiddler and list macros to allow the template to be specified in the body of the macro 2012-11-29 16:40:06 +00:00
Jeremy Ruston
5fd3000838 Allowed zooming in to any element with the data-tw-zoom attribute 2012-11-27 22:27:53 +00:00
Jeremy Ruston
a3c6cfdd78 Fixed width for cecily view 2012-11-27 22:27:36 +00:00
Jeremy Ruston
598c069dd6 Fixed typo 2012-11-27 22:26:35 +00:00
Jeremy Ruston
99275b5425 Improvements to zoomable pan and zoom 2012-11-27 18:30:21 +00:00
Jeremy Ruston
e4fb532ecd Introduce zoomable macro
Used with Cecily to give us pan and zoom across the Cecily canvas.
2012-11-27 16:55:17 +00:00
Jeremy Ruston
3161e8d8ce Fix problem with CecilyView that is initialised with an empty message 2012-11-26 16:24:31 +00:00
Jeremy Ruston
0154b2a54e Revised implementation of scrolling behaviour
Now we use a "tw-scroll" event to request scrolling
2012-11-26 16:08:52 +00:00
Jeremy Ruston
515e0d9bf1 Fixed bug with table parser 2012-11-26 14:19:54 +00:00
Jeremy Ruston
739b641f39 Temporary hack to the list macro
Working around our imperfect inline vs. block detection.
2012-11-26 14:19:15 +00:00
Jeremy Ruston
580bd6438e Fixed issues with blank tiddler text
The empty string is falsy in JavaScript, to keep us on our toes.
2012-11-23 13:08:10 +00:00
Jeremy Ruston
3d38d4add3 Use text/x-tiddlywiki for old format TiddlyWiki text for compatibility 2012-11-19 16:58:16 +00:00
Jeremy Ruston
17e67a5bf9 Add a simple log wrapper
We'll make it more sophisticated at some point
2012-11-19 16:55:10 +00:00
Jeremy Ruston
0d175d3eeb New utility method
Surprising that this seems to be the recommended approach
2012-11-19 12:55:04 +00:00
Jeremy Ruston
f07bc18204 More MIME type shenanigans 2012-11-18 15:25:40 +00:00
Jeremy Ruston
84650b9a54 Swap over to the new mime type conventions
Discussed in
https://groups.google.com/forum/#!topic/tiddlywikidev/re8xfLqZNCE
2012-11-18 15:22:13 +00:00
Jeremy Ruston
41db3d89ae Use the plain text parser to display HTML files
We could display the HTML in an IFRAME but I think that's often not
what people want
2012-11-18 14:57:10 +00:00
Jeremy Ruston
addef09d1c Fix problem with JS parser crashing on skinny tiddlers 2012-11-18 14:56:33 +00:00
Jeremy Ruston
605a7a4124 Fixed problem with missing macros throwing an error 2012-11-18 13:43:06 +00:00
Jeremy Ruston
5c87b437ee Support for lazy loaded tiddlers 2012-11-18 13:14:28 +00:00
Jeremy Ruston
4742ab14fc Start using the server connection tiddler to store host details 2012-11-17 21:15:19 +00:00
Jeremy Ruston
e194aed449 Introduce syncer mechanism 2012-11-17 20:18:36 +00:00
Jeremy Ruston
5c9b0d62c4 Allow comments in tiddler field blocks
Particularly useful for commenting in tiddler dictionaries
2012-11-17 20:18:03 +00:00
Jeremy Ruston
705c88d1aa Fix TiddlyFox transfer attribute names 2012-11-17 20:17:29 +00:00
Jeremy Ruston
3f58ead593 Add support for data modules
Modules can now be JSON or tiddler dictionaries, as well as executable
code
2012-11-17 13:08:25 +00:00
Jeremy Ruston
af21a8ff95 Password prompt improvements 2012-11-16 22:59:44 +00:00
Jeremy Ruston
9eb10fb21a Clear password if decryption fails 2012-11-16 22:40:56 +00:00
Jeremy Ruston
0dbe4c0291 Get rid of more vestiges of the old empty generation mechanism 2012-11-16 22:40:25 +00:00
Jeremy Ruston
454f892cf2 Remove old mechanism for generating empty.html 2012-11-16 22:26:33 +00:00
Jeremy Ruston
544711fe59 Improved copy writing
Marginally better
2012-11-16 19:36:50 +00:00
Jeremy Ruston
a4d88769b9 Only use the download saver when the download attribute is supported 2012-11-16 19:31:32 +00:00
Jeremy Ruston
80bd198908 Introduce new manualdownload saver
This saver pops up a modal dialogue giving the user an opportunity to
right click and save the wiki
2012-11-16 19:31:18 +00:00
Jeremy Ruston
b96bcfdca4 Improve the modal dialogue to optionally include a download button 2012-11-16 19:30:30 +00:00
Jeremy Ruston
b74df6d1b0 Remove the old Firefox XUL saver
It's only of historical interest now, sadly.
2012-11-16 18:06:45 +00:00
Jeremy Ruston
b48dec6932 Minor style cleanups 2012-11-16 17:44:47 +00:00
Jeremy Ruston
42b4f20113 Refinements to the new password prompting mechanism 2012-11-16 17:23:10 +00:00
Jeremy Ruston
db3a4651a2 Improved crypto and password prompting mechanism
Now encrypted tiddlywikis prompt for their password with an html form,
instead of a horrible javascript prompt.
2012-11-16 16:59:47 +00:00
Jeremy Ruston
bf04207350 Rename the wikitext parser 2012-11-15 12:53:10 +00:00
Jeremy Ruston
5f9b2e9d84 Turn the TiddlyWiki 2.x.x parser into a plugin 2012-11-15 12:47:09 +00:00
Jeremy Ruston
26822121be Update the dump config command 2012-11-15 12:46:53 +00:00
Jeremy Ruston
ce46866317 More JSHint obeisance 2012-11-15 12:46:42 +00:00
Jeremy Ruston
1e51f56754 JSHint obeisance 2012-11-15 12:38:25 +00:00
Jeremy Ruston
9281fa8786 Further refactoring of the boot process and module mechanism 2012-11-15 10:40:03 +00:00
Jeremy Ruston
539b64b626 Refactoring module mechanism
Changed the data structure $tw.modules.types to make it possible to
detect repeated registrations
2012-11-14 11:23:43 +00:00
Jeremy Ruston
ce47f5e1d4 Started to move dropbox bits and pieces into a plugin
Currently tw5dropbox is broken, pending some further changes around
module handling
2012-11-13 18:42:50 +00:00
Jeremy Ruston
11b2af34d2 More refactoring around the plugin implementation
Now wikis can specify which plugins should be loaded
2012-11-13 08:46:44 +00:00
Jeremy Ruston
3b11713e88 Refactoring plugin implementation
Including introducing the terminology "tiddler bundles"
2012-11-12 22:16:49 +00:00
Jeremy Ruston
c04f11f3ff Fix format of metadata comment for bootprefix.js 2012-11-12 22:15:52 +00:00
Jeremy Ruston
481b58eec9 Fixed crash when no browser-startup modules 2012-11-12 22:15:22 +00:00
Jeremy Ruston
5e25d9e9c8 Make the copyright file into an ordinary tiddler file
When it was a text file we were relying on boot.js to be able to figure
out the correct title. Better to make it explicit
2012-11-12 22:14:55 +00:00
Jeremy Ruston
f085f3aabb Use temporary tiddler for search text 2012-11-11 15:08:46 +00:00
Jeremy Ruston
283d917a43 Use temporary tiddler for search text 2012-11-11 15:08:31 +00:00
Jeremy Ruston
f1089c1c92 Use temporary tiddlers for popup locations 2012-11-11 15:03:34 +00:00
Jeremy Ruston
cf15b128c1 Fixed problem with relativedate field viewer 2012-11-11 14:40:49 +00:00
Jeremy Ruston
9612aac296 New implementation for shadow tiddlers
Now shadow tiddlers are any tiddler whose title starts with "$:/"
2012-11-11 14:31:45 +00:00
Jeremy Ruston
d7d6e59865 Beginnings of support for syncing 2012-11-11 14:13:08 +00:00
Jeremy Ruston
030f16981a Tiddler helper method to return a block of fields 2012-11-11 14:12:10 +00:00
Jeremy Ruston
d3e6a0cdf0 Move the slowInSlowOut easing function into utils 2012-11-08 18:34:04 +00:00
Jeremy Ruston
e0d2985ec3 Added explicit story and history list to navigator in PageTemplate 2012-11-07 17:14:07 +00:00
Jeremy Ruston
56c8dc2226 Fixed problem with navigators that don't have a story or history 2012-11-07 16:12:03 +00:00
Jeremy Ruston
34435329e6 Added indirect transclusion
The name of the tiddler to transclude is taken from a text reference
2012-11-07 16:11:47 +00:00
Jeremy Ruston
bdc46a8bc3 Move the NewTiddler button 2012-11-07 09:19:00 +00:00
Jeremy Ruston
6c636a671d Remove zoomer and chooser 2012-11-06 17:51:19 +00:00
Jeremy Ruston
55783a8f5d Remove the view switcher and the zoomer and chooser 2012-11-06 17:51:08 +00:00
Jeremy Ruston
9f6909ddc4 Appeasing the gods of JSHint 2012-11-06 17:21:56 +00:00
Jeremy Ruston
54252a5400 Made fields popup condensed 2012-11-06 14:12:20 +00:00
Jeremy Ruston
2b4d1bfd18 Add search previews 2012-11-06 14:12:09 +00:00
Jeremy Ruston
c58903f865 Added hover functionality to button and link macros 2012-11-06 14:11:49 +00:00
Jeremy Ruston
034af3b126 Added new "aboveright" position for reveal macro 2012-11-06 14:11:32 +00:00
Jeremy Ruston
083ac7a4bf Encapsulate logic for handling popups 2012-11-06 14:11:11 +00:00
Jeremy Ruston
b81b2c0c63 Fixed problem with tiddler hashmap handling
We need to check hasOwnProperty to avoid problems with tiddlers called
eg "__proto__". There are more changes like this to come
2012-11-06 14:10:55 +00:00
Jeremy Ruston
bb10222b8d Added fields macro and put it in the default view template 2012-11-05 19:00:54 +00:00
Jeremy Ruston
6819365dfc Fixes for sideways view
Fixed problem with starting up with the empty message displayed, and
problem with incorrect width reading of newly inserted list elements
2012-11-05 15:14:27 +00:00
Jeremy Ruston
c95618e42c Fix for list macro
Hardens findListElementByTitle to work when the empty message is
displayed
2012-11-05 15:13:51 +00:00
Jeremy Ruston
528c62577c Better spacing on the navigation menu 2012-11-04 19:49:13 +00:00
Jeremy Ruston
04223a3d81 Remove transform at end of classic list view insertion animation
Leaving the transform makes a new positioning context without updating
offsetParent
2012-11-04 17:28:51 +00:00