1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-17 23:34:50 +00:00
Commit Graph

951 Commits

Author SHA1 Message Date
Jeremy Ruston
ed5f88ab84 Fix problem with importing TW files 2013-05-03 19:19:01 +01:00
Jeremy Ruston
b7832cd1d4 Add new tiddler and options buttons to sidebar 2013-05-01 22:10:55 +01:00
Jeremy Ruston
bce0ea841c Add bullet next to selected theme in theme switcher 2013-05-01 22:10:34 +01:00
Jeremy Ruston
57b7692c97 Sidebar layout tweaks
Including add a clear button to the search box, which is another use of
the linkcatcher widget
2013-05-01 16:56:34 +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
b672e12fef Add a UI to allow themes to be switched 2013-05-01 12:02:49 +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
31a378b64c Start support for themes
To start with, we move the current stylesheets into a theme plugin
called "Snow White". Wikis have to specify at least one theme in their
`tiddlywiki.info` file. Next we'll add a mechanism for switching
between loaded themes
2013-04-28 09:42:48 +01:00
Jeremy Ruston
d62c9f613c Style tweaks 2013-04-27 18:03:13 +01:00
Jeremy Ruston
7d8051ef8d Style tweaks 2013-04-27 16:49:12 +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
608175803b Comments and rearrangements for the base stylesheet
Preparatory to picking it apart into separate files
2013-04-27 15:44:56 +01:00
Jeremy Ruston
9a4caec992 Add close buttons to the open tiddler list 2013-04-27 12:11:56 +01:00
Jeremy Ruston
54d53cedd2 Further style tweaks 2013-04-27 11:43:11 +01:00
Jeremy Ruston
b139f4c6f1 Styling improvements 2013-04-27 11:28:46 +01:00
Jeremy Ruston
11f1011acc Fix toolbar button size in edit template 2013-04-27 10:04:57 +01:00
Jeremy Ruston
6288ed6834 Sidebar adjustments 2013-04-26 21:30:11 +01:00
Jeremy Ruston
3219b948ad Fix problem with info dropdown text size 2013-04-26 18:05:59 +01:00
Jeremy Ruston
88b7c53972 Some styling changes
The idea of moving the sidebar to the right is so that it can grow into
the otherwise empty space to the right of the story column.

Still a work in progress: needs to be responsive, amongst other things
2013-04-26 18:02:02 +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
ba7b886067 Move tiddlyweb stuff into a separate ServerControlPanel
Eventually we'll need a more general purpose mechanism for plugins to
add UI to the control panel
2013-04-16 11:17:27 +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
df59269b0d Fixed problem with plugin precedence
We were unpacking plugin tiddlers in arbitrary order, and ensuring that
later plugins didn't overwrite shadow tiddlers from earlier plugins.

Now we'll allow plugins to specify a "pluginPriority" that determines
the load ordering. We also explicitly allow shadow tiddlers from later
plugins to overwrite shadow tiddlers from earlier plugins.

We're setting a base priority on the core plugin, since many plugins
will want to control their loading relative to it.
2013-04-08 18:37:49 +01:00
Jeremy Ruston
6d4768acad Improve word wrapping behaviour
Stops tiddler titles overflowing when they dont contain word breaks
2013-04-06 16:49:47 +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
ffe11a28d9 Fix tiddler dropdown 2013-04-04 14:24: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
02e0b1059e Style improvements 2013-04-03 21:11:10 +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
8146d57190 Style tweaks
Finally started to use `box-sizing: border-box`
2013-03-28 21:30:22 +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
63fd149ea9 Relaxed restrictions on the names of constituent tiddlers within plugins
Thus allowing us to give a more sensible title to the core plugin
2013-03-28 17:15:52 +00:00
Jeremy Ruston
cd36f594c5 Make the core into a plugin 2013-03-28 17:07:30 +00:00
Jeremy Ruston
c411ee5106 Better error handling in boot.js 2013-03-28 14:06:50 +00:00
Jeremy Ruston
9c066617a1 Add a default tab for the tiddler dropdown
Unfortunately, we're not yet highlighting the tab itself
2013-03-27 13:48:55 +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
554dffd83f Add tag and missing dropdowns to the sidebar 2013-03-26 09:47:22 +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
829ab59a7d Add error message for recursively including a wiki 2013-03-25 19:56:22 +00:00
Jeremy Ruston
5bfcbb99ba Add support for wiki directories to recursively include other wiki directories 2013-03-25 18:55:41 +00:00
Jeremy Ruston
d73cdfef77 Don't save "bag" fields
They're just an artefact of syncing
2013-03-25 12:22:15 +00:00
Jeremy Ruston
10b192e743 Add support for saving binary files 2013-03-25 12:11:34 +00:00
Jeremy Ruston
692b8b4b15 Use a system tiddler for the tiddler dropdown info state 2013-03-25 11:08:42 +00:00
Jeremy Ruston
77a6b72245 Enable server side file synchronisation in the clientserver edition
Use with great caution for the moment
2013-03-25 10:43:46 +00:00
Jeremy Ruston
b97681758c Set up $tw.boot.wikiTidlersPath
A surprising amount of refactoring to do this
2013-03-25 10:43:18 +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
9fb8ef25ed Ensure we don't register file information for externally loaded tiddlers
Also make sure some globals like setInterval are available on the server
2013-03-24 12:27:45 +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
b574436dff Don't track file information for externally loaded tiddlers 2013-03-23 22:43:05 +00:00
Jeremy Ruston
e8746c1575 On the server, start registering information about each writable tiddler file 2013-03-23 22:11:23 +00:00
Jeremy Ruston
d7b000fd6b Start using term shadow tiddlers for tiddlers from plugins 2013-03-23 21:41:28 +00:00
Jeremy Ruston
2479e38155 Refactor loadTiddlersFromPath to return path information for each tiddler 2013-03-23 21:37:48 +00:00
Jeremy Ruston
25e56c2ade Stop using the term "bundle" to describe plugins 2013-03-23 16:34:12 +00:00
Jeremy Ruston
d8b76f656e Rearranging boot.js 2013-03-23 16:15:45 +00:00
Jeremy Ruston
ed3a0ba6a3 Stop using 'wiki' directory within wiki directories 2013-03-22 21:30:37 +00:00
Jeremy Ruston
a788593687 Further refactorings of boot.js 2013-03-22 21:12:39 +00:00
Jeremy Ruston
ed07798c29 More tidying up of boot.js 2013-03-22 20:02:19 +00:00
Jeremy Ruston
e336e0661c Further rearrangements of boot.js
Getting better..
2013-03-22 19:44:12 +00:00
Jeremy Ruston
2c5f2bb67a Reorganising the order of ceremonies in boot.js
With a view to making it all a bit more readable
2013-03-22 19:27:09 +00:00
Jeremy Ruston
1beb3a78f1 Fixes to the position of the tiddler info popup 2013-03-22 10:50:46 +00:00
Jeremy Ruston
ff076c33e6 Improvements to appearances in edit mode 2013-03-22 10:17:31 +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
7e46565182 Update help URL for system dialogues 2013-03-21 22:20:37 +00:00
Jeremy Ruston
3eeac8efca Simplify $tw.utils.log
And in the process make it run on node.js
2013-03-21 18:12:57 +00:00
Jeremy Ruston
738952029b Icons for editing tiddlers 2013-03-20 17:20:46 +00:00
Jeremy Ruston
cf96679e66 Style adjustments 2013-03-20 14:41:29 +00:00
Jeremy Ruston
443ea8d01d Rudimentary print stylesheet adjustments 2013-03-20 12:14:12 +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
b1d218065e Remove the form from the search box
To stop unintended submission if the user presses enter
2013-03-20 11:01:32 +00:00
Jeremy Ruston
505ce42bbc Added search feature back 2013-03-20 09:01:44 +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
64c6e63cd4 Better positioning for the tiddler info dropdown 2013-03-19 20:35:34 +00:00