1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-07-07 12:34:22 +00:00
Commit Graph

1230 Commits

Author SHA1 Message Date
Jeremy Ruston
dfdb34a5cc Better styling for the fields editor 2013-10-23 17:04:10 +01:00
Jeremy Ruston
6f2dbd0978 Refactor name of "findNextSiblingDomNode()" method for consistency 2013-10-22 18:14:16 +01:00
Jeremy Ruston
40c6b6cb8f Guts of the field editor
Styling is a bit squiffy
2013-10-21 23:10:20 +01:00
Jeremy Ruston
8ee2695c81 Fix up the tags editor
The dropdown doesn't yet appear when the text input is focussed
2013-10-21 22:55:43 +01:00
Jeremy Ruston
7393a296dd Add a fieldmangler widget 2013-10-21 22:54:58 +01:00
Jeremy Ruston
06af26b1c8 Give the edit-text widget support for the placeholder attribute 2013-10-21 22:54:48 +01:00
Jeremy Ruston
e2b8249a1b Fix problem with findNextSibling() 2013-10-21 22:27:12 +01:00
Jeremy Ruston
409152afb8 Make the default list widget template include a div or span
Otherwise writing this makes a list on one line:

```
{{{ [tag[done]] }}}
```
2013-10-21 22:26:36 +01:00
Jeremy Ruston
c96cb6e956 Parse typed blocks with the new parser 2013-10-21 20:20:44 +01:00
Jeremy Ruston
a99f912bad Fix typo 2013-10-21 20:20:32 +01:00
Jeremy Ruston
2a571b4f5f Switch the notifier and modal mechanisms to use the new widget mechanism
Note the use of the `$tw.rootWidget` to collect together the root event
handlers
2013-10-21 20:14:01 +01:00
Jeremy Ruston
48dbacc88a Add support for widget event listeners to be specified as functions 2013-10-21 20:13:08 +01:00
Jeremy Ruston
ce1fb300f8 Use the new widget mechanism for stylesheet parsing and rendering 2013-10-21 18:38:20 +01:00
Jeremy Ruston
89310e71c8 Add a new version of rendertiddlers command
So that we can test static html generation
2013-10-21 18:33:00 +01:00
Jeremy Ruston
3d30ff9828 Fix static tiddler template 2013-10-21 18:32:40 +01:00
Jeremy Ruston
26ac940637 Fix typo 2013-10-21 18:32:29 +01:00
Jeremy Ruston
e33f588b73 Let the new rendering methods accept a parent widget 2013-10-21 18:32:19 +01:00
Jeremy Ruston
dc9c2522b9 Fix typo in macro variable substitution 2013-10-21 18:31:41 +01:00
Jeremy Ruston
167116d416 Fix output type for view format htmlwikified 2013-10-21 18:31:27 +01:00
Jeremy Ruston
3005604b83 Give link widget support for configuration variables
One can now use `\define tw-wikilinks() no` to disable wikilinks, and
`tw-wikilink-template` to configure the link template.
2013-10-21 18:31:04 +01:00
Jeremy Ruston
3f151ba70e Add support for macro modules
Now JavaScript macros can be defined in "macro" modules
2013-10-17 16:57:07 +01:00
Jeremy Ruston
55d479c540 Extend macrocall widget to take parameters both from the parse tree node and the attributes
This allows us to invoke macros using the ordinary widget syntax, which
in turn allows us to use features like indirection on the parameters.
2013-10-17 16:55:23 +01:00
Jeremy Ruston
6b9b75142b Fix text reference regexp to allow for tiddler titles with embedded spaces 2013-10-17 16:40:13 +01:00
Jeremy Ruston
93c2ce6521 Fix up edit widgets 2013-10-16 16:30:24 +01:00
Jeremy Ruston
a3eaffa666 Add a linkcatcher widget 2013-10-16 16:30:06 +01:00
Jeremy Ruston
adb395d10f Fix edit-text widget to work with indexed values 2013-10-16 16:29:51 +01:00
Jeremy Ruston
7f6d770ca6 The reveal widget should generate a span when in inline mode
The only reason that the reveal widget generates an element is so that
we can use `display:none/block;` (as did the pre-refactored code) as a
quick way of hiding and showing the content. We don't do that yet, and
it may be best never to do it.
2013-10-16 16:29:35 +01:00
Jeremy Ruston
06e269f3cb Fix the untagged list in the tags list 2013-10-15 21:07:35 +01:00
Jeremy Ruston
77248d08a8 Add the count widget 2013-10-15 21:07:13 +01:00
Jeremy Ruston
5b4ca67d6e Make the reveal widget hide the div element if it is not open 2013-10-15 21:06:52 +01:00
Jeremy Ruston
ebcd5177ec Fix-ups to make the new edit widgets work 2013-10-15 14:32:45 +01:00
Jeremy Ruston
78bc89cbdb Add a edit text widget
Now rather than a separate module type for different editors, we
instead have a meta-widget "edit" that chooses the appropriate concrete
widget (currently just "edit-text", but soon to be joined by
"edit-bitmap" as well)
2013-10-15 14:32:27 +01:00
Jeremy Ruston
a696c716e3 Support the remaining events on the navigator widget 2013-10-15 14:30:36 +01:00
Jeremy Ruston
933afee996 Get rid of the old setstyle widget
And fix up the colouring of tiddler icons
2013-10-15 08:36:19 +01:00
Jeremy Ruston
20cd398e88 Fix popup positioning in the reveal widget 2013-10-14 23:32:01 +01:00
Jeremy Ruston
c621339729 More fixes to the missing tiddler dropdown and the tag dropdown 2013-10-14 21:57:00 +01:00
Jeremy Ruston
707024a118 Set the colour of the tag pills
We no longer need the old setstyle widget
2013-10-14 21:38:12 +01:00
Jeremy Ruston
0e037e3c5b Make the field table in the tiddler info panel have width 100% 2013-10-14 21:05:49 +01:00
Jeremy Ruston
e3dcb8cdc1 Fix view widget to display friendly text of tiddler values 2013-10-14 21:02:03 +01:00
Jeremy Ruston
468fe8b6f1 Add macrocall widget
Now the fields table works in the tiddler info popup
2013-10-14 17:48:26 +01:00
Jeremy Ruston
ebd28c8dc7 Get the tiddler info panel fields list working properly
Now we can display the fields list as a proper table.

We've had to temporarily hack the list widget again…
2013-10-14 17:35:52 +01:00
Jeremy Ruston
b4d33b9614 Fixups to the sidebar and tiddler info button 2013-10-14 16:57:16 +01:00
Jeremy Ruston
94c2eacdc9 Support selectedClass properly in the button widget 2013-10-14 16:56:13 +01:00
Jeremy Ruston
fe6c1ae2dd A new template for menu list items 2013-10-14 16:55:29 +01:00
Jeremy Ruston
0c73c56b70 Fixes to button refreshing 2013-10-14 13:52:03 +01:00
Jeremy Ruston
b0f4d72dac Correct name for the state tiddler that makes sure the open sidebar tab is open by default 2013-10-14 13:51:54 +01:00
Jeremy Ruston
44e622ce28 Proper styling for the tiddler info panel 2013-10-14 13:11:58 +01:00
Jeremy Ruston
1669c6eab5 Make recursion markers include the current tiddler
Otherwise the generated qualifying state title is not unique. In other
words, clicking the "i" button on a tiddler was opening the info panels
for all open tiddlers.
2013-10-14 13:06:07 +01:00
Jeremy Ruston
ea0b298b78 Deal with viewing date fields that don't exist 2013-10-14 12:59:39 +01:00
Jeremy Ruston
cc4940f41f Use the setvariable widget instead of macrodef
setvariable is more general
2013-10-13 23:40:11 +01:00
Jeremy Ruston
942e463b20 Fixes to get recent changes list to work 2013-10-13 22:59:14 +01:00
Jeremy Ruston
ce4a6ffa49 More useful class variables for tiddler status 2013-10-13 22:46:45 +01:00
Jeremy Ruston
ccd5eeebfd Add a class for missing tiddlers 2013-10-13 22:39:18 +01:00
Jeremy Ruston
9278c43a91 Add support for macro definitions 2013-10-13 22:39:05 +01:00
Jeremy Ruston
79dcc9a557 Refactor macro parameter substitution
Now macros can also include references to variables as `$(variable)$`
2013-10-13 22:38:46 +01:00
Jeremy Ruston
987890c085 Add button widget 2013-10-13 21:31:00 +01:00
Jeremy Ruston
b0503cf709 Fixes to make SVG and MathML elements work properly 2013-10-13 20:14:31 +01:00
Jeremy Ruston
ed35d91be6 Initial Commit
Carried over from the abortive pull request #169
2013-10-12 17:05:13 +01:00
Jeremy Ruston
d3d72eff1b Search over tags as well as the title and text fields 2013-10-11 08:46:09 +01:00
Jeremy Ruston
27f724d0ed Docs updates 2013-10-09 22:57:20 +01:00
Jeremy Ruston
f2b598ef13 Correct example 2013-10-05 16:01:07 +01:00
natecain
c45f4d1c62 Small revision to previous commit, avoids double encoding.
We don't need to encodeURIComponent at all when using blob links.
The data never goes into the dom directly, just a guid reference.

This makes saving with blobs very fast!
2013-10-01 17:35:58 -04:00
natecain
aef8e63cf8 Use Blob api to generate data links in download saver
This should fix crashing on large wikis under chrome
  see chrome bug: https://code.google.com/p/chromium/issues/detail?id=103234
This should also speed up generating the download html by a couple of seconds
  it avoids repeatedly marshalling the base64 encoded href string across the sandbox boundary
  it avoids some time and memory consumed by "large" dom manipulation
  major remaining delay is in encodeURIComponent
    TODO: consider using iconv on the server
    TODO: consider async invocation of regular expressions to avoid client "lockup"

Conflicts:
	core/modules/savers/download.js
2013-10-01 17:35:47 -04:00
David Johnston
d321508437 Remove incorrect slice parameter.
Remove incorrect slice parameter, which made the ! (not) prefix fail to return any results.
2013-10-01 10:50:13 +01:00
Jeremy Ruston
6642a6f087 Merge pull request #165 from Brennall/nextprev
Next and Previous filters plus tests and documentation
2013-09-22 13:37:48 -07:00
Jeremy Ruston
54ffb9e6cc Replace separate 'untagged' tab with new entry at the bottom of the 'tags' tab
An excellent idea by @tobibeer
2013-09-22 21:34:28 +01:00
David Johnston
f0b6790ae1 Previous in list filter. 2013-09-22 09:58:18 +01:00
David Johnston
b72afda7a2 Next in List filter 2013-09-22 09:57:23 +01:00
Jeremy Ruston
f51d0c55fe Fix eachday and sameday filter operators
There was some inconsistency of UTC vs. timezone handling
2013-09-21 10:08:16 +01:00
Jeremy Ruston
d0db2221d3 Fix problem with lowercase drive letters when saving with TiddlyFox under Windows 2013-09-19 13:50:28 +01:00
Jeremy Ruston
dec7870eeb Update HTML5 saver to use current filename where possible
Most browsers still ignore the specified filename, sadly.
2013-09-19 10:50:14 +01:00
Jeremy Ruston
91c4adb2b6 Fix untagged tiddler list to exclude tiddlers which are being used as tags 2013-09-18 19:10:30 +01:00
Jeremy Ruston
3d5d5952b7 Fix broken regexps
Using .|\n was a very bad idea, as it doesn't match other newline
characters
2013-09-18 19:09:54 +01:00
Jeremy Ruston
b563d8e98a Ensure getTiddlerList() returns a copy of the tiddler list
Fixes #155
2013-09-18 12:12:29 +01:00
Jeremy Ruston
10a635927d Add confirmation when overwriting an existing tiddler
Now there's a JavaScript confirm when attempting to save a tiddler that
has been renamed to the name of an existing tiddler
2013-09-14 21:57:23 +01:00
Jeremy Ruston
4fb6836481 Add an untagged filter operator and sidebar tab 2013-09-14 16:28:46 +01:00
Jeremy Ruston
4a663d1661 Improve docs for $tw.utils.addEventListeners() 2013-09-14 13:47:51 +01:00
Jeremy Ruston
fa3d4fdc75 Missing slash 2013-09-10 22:30:37 +01:00
Jeremy Ruston
e39663ede3 Fix crash on processing anonymous macro parameters
Fixes #151
2013-09-10 22:08:09 +01:00
Jeremy Ruston
a5cb6d69c0 Remove reference to TiddlyMall
Because it doesn't exist. (It was a suggestion from @giffmex that got
inadvertantly included)
2013-09-10 15:29:04 +01:00
Jeremy Ruston
e034f28091 Bail out earlier when displaying a modal for a non-existent tiddler 2013-09-10 15:28:15 +01:00
Jeremy Ruston
ff0b93886b Restore missing opening <html> tag
Astonishingly, the templates have accidentally omitted the opening tag
for some time. There were no ill effects, because browsers obligingly
add it back in when parsing
2013-09-05 09:31:17 +01:00
Jeremy Ruston
f734ce49c8 Tweaks to control panel and theme tweaks
Courtesy of @giffmex
2013-09-04 17:14:42 +01:00
Jeremy Ruston
2be9e82f84 Get rid of the modal popup for empty wikis
Ugly and clumsy.
2013-09-01 22:33:23 +01:00
Jeremy Ruston
83f85cad7d Add support for MathML namespace
It doesn't actually work, though, which is weird, since SVG works just
fine using the same mechanism
2013-08-31 11:15:50 +01:00
Jeremy Ruston
c4d7401f02 Lots of docs updates 2013-08-30 20:06:23 +01:00
Jeremy Ruston
ee33cbbc2e Fix up some problems when the animation duration is zero
We want to be able to suppress animations by making the duration zero
2013-08-29 12:43:24 +01:00
Jeremy Ruston
1b094b1d5c Avoid attempts to save a tiddler with an empty title
Clicking "save" with a blank title will now be ignored
2013-08-28 19:46:21 +01:00
Jeremy Ruston
38e92cd5cd Add search results counter 2013-08-28 19:26:17 +01:00
Jeremy Ruston
fbfe5a26c5 Move the animation duration into a tiddler so that we can easily let it be adjusted in the control panel 2013-08-28 15:15:56 +01:00
Jeremy Ruston
e8425131f4 Correct typo in 954a987d31 2013-08-28 14:44:59 +01:00
Jeremy Ruston
6005d7f19c Add a theme tweaks panel
Themes can define their own theme tweaks tiddler
2013-08-28 11:25:24 +01:00
Jeremy Ruston
954a987d31 Extend the edit widget to be able to edit properties of data tiddlers 2013-08-28 11:23:14 +01:00
Jeremy Ruston
dfb49f811e Fixed problem with importing tiddlers with double quotes, gt, lt etc
Reported by @giffmex
2013-08-28 09:25:54 +01:00
Jeremy Ruston
0421f11fcc Fix vertical alignment of the title of the top tiddler and the sidebar in the title
Little things.
2013-08-27 22:25:53 +01:00
Jeremy Ruston
8fbfc7a18f Add version number to tools panel in sidebar 2013-08-27 09:01:31 +01:00
Jeremy Ruston
06599bcfc6 Fix up closing tiddlers in the zoomin listview
One for @giffmex
2013-08-26 14:48:05 +01: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
779d8b3aad Update TW2 wikitext content type to text/x-tiddlywiki
And also stop assigning the default content type of
`text/vnd.tiddlywiki` to imported tiddlers.
2013-08-25 22:06:28 +01:00
Jeremy Ruston
d0dff80d6d Fix problem with insertBefore() on Win7/IE10
The problem is that insertBefore() on Win7/IE10 crashes if the second
parameter is undefined, rather than behaving as if the parameter is
missing, as all other browsers do. Aaargh.
2013-08-24 23:28:17 +01:00