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

6615 Commits

Author SHA1 Message Date
Felix Küppers
f99a4e7664 Bugfix: Object.freeze() called on null
For five minutes I stared at the following code...

    if(value != null && typeof value === "object") {
      Object.freeze(value);
    }

... and at the error message that led me to this code: `Object.freeze called on non-object`

And then I remembered that js treads null as object (http://www.ecma-international.org/ecma-262/5.1/#sec-11.4.3). This means the `typeof === "object"` will not discover null and freeze will throw an error...

So `value != null` will also work when value is undefined.

A hard to find bug ;)
2015-03-07 20:47:43 +01:00
Devin Weaver
74deae3c38 Remove freedombits community example
The URL (freedombits.org) is no longer hosting this example. It no
longer provides a good example as there is no TiddlyWiki linked anymore.

With much regret it needs to be removed till the original author can fix
the problem.
2015-03-06 16:28:43 -05:00
Felix Küppers
3e47f5c454 Update Contributing.tid 2015-03-06 15:47:56 +01:00
Felix Küppers
8ffe517736 Update Contributing.tid 2015-03-06 14:42:09 +01:00
Bram Chen
6070c4abee Minor wording tweak for BramChen/TiddlyWiki5@385533e528 2015-03-04 09:24:04 +08:00
Bram Chen
d6ae9ea686 Merge remote-tracking branch 'upstream/master' 2015-03-04 09:12:57 +08:00
Jermolene
42499ea6ff Minor tweaks and fixes for #1529
1. Display friendlier caption field in select dropdown
2. Remove extraneous line break from end of default config tiddler
3. Minor wording tweak
2015-03-03 18:10:01 +00:00
Astrid Elocson
320664a0c7 Correct WikiText in the upgrade wizard 2015-02-28 15:43:48 +00:00
Astrid Elocson
e369bc1eb2 Remove created field accidentally added 2015-02-28 14:47:38 +00:00
Astrid Elocson
27e6c7bb8d Add links to tv-* variables in LinkWidget.tid 2015-02-28 14:45:22 +00:00
Astrid Elocson
f73891c083 Document the tv-* variables 2015-02-28 14:38:00 +00:00
Bram Chen
385533e528 For chinese translations, add caption and hint text of setting default sidebar tab 2015-02-28 22:33:35 +08:00
Jeremy Ruston
7a326f022b Merge pull request #1529 from felixhayashi/sidebar-default
Option to define the default sidebar tab
2015-02-28 12:13:46 +00:00
Jeremy Ruston
27454dabb1 Merge pull request #1525 from Spangenhelm/patch-1
Adding the missing 'language' type
2015-02-28 12:12:11 +00:00
Jeremy Ruston
f89da8522f Merge pull request #1539 from aelocson/doc-macros-fix
Remove extraneous \end from doc-macros.tid
2015-02-28 12:11:07 +00:00
Jermolene
e884192baf Alternative fix for #1542
As suggested by @aelocson, adjusting the viewport has less impact on
the icon size.
2015-02-28 11:28:58 +00:00
Jermolene
bc0a25bc6c Fix 1px clipping on SVG icons
Fixes #1542
2015-02-28 10:47:38 +00:00
Astrid Elocson
af34b1af05 Remove extraneous \end from doc-macros.tid 2015-02-28 08:16:10 +00:00
Astrid Elocson
999e0c3ba4 Fix a broken use of the list-links macro 2015-02-27 19:33:22 +00:00
Jeremy Ruston
b30d43215c Merge pull request #1532 from aelocson/icon-macros
Macros and styles for tips and warnings
2015-02-27 18:27:57 +00:00
Jeremy Ruston
eb2b877b9b Merge pull request #1533 from simonbaird/master
Revert "Add navigation support to the edit template"
2015-02-27 18:10:52 +00:00
Astrid Elocson
3b0e6102ec Expose code font family in Control Panel 2015-02-27 12:46:19 +00:00
Simon Baird
5713e48541 Revert "Add navigation support to the edit template"
For some reason this is causing the focus to be repeatedly set to
the title field when editing a tiddler's text. Let's revert it for
now.

See Issue #1527.

This reverts commit fdc635007b.
2015-02-27 13:44:24 +10:00
Astrid Elocson
b001c7b558 Macros and styles for tips and warnings 2015-02-26 16:32:00 +00:00
Jermolene
1e02df61d0 Add tip and warning icons
@aelocson I thought these might be useful for the docs; we’ll need some
macros and styles, though.
2015-02-25 20:37:07 +00:00
Jermolene
65d81921f9 Further fixes to scrolling behaviour 2015-02-25 20:24:07 +00:00
Jeremy Ruston
6fcca43fd2 Merge pull request #1519 from aelocson/variable-docs
Overhaul the macro and variable documentation
2015-02-25 19:15:17 +00:00
Jermolene
8d46c18fc7 Refine fix for #1526
The previous fix changed the scrolling behaviour such that it only
scrolled to the top of a tiddler if the tiddler was entirely offscreen.
It wasn’t entirely satisfactory because scrolling was prevented even if
only a few pixels of a tiddler are in view. This commit ensures that
the scroll does occur if less than 50 pixels of the target is in view
2015-02-25 19:09:53 +00:00
Jermolene
489bc7a50b Only scroll to top when tiddlers are completely off-screen
Fixes #1526
2015-02-25 19:01:40 +00:00
Felix Hayashi
13f02992f5 changed wrong file 2015-02-25 18:00:02 +01:00
Felix Hayashi
21b738936f setting default sidebar tab 2015-02-25 17:53:32 +01:00
Astrid Elocson
61b8180562 Resolve merge conflict in LinkWidget.tid 2015-02-25 12:53:57 +00:00
Astrid Elocson
e4525a95c5 Try again to resolve merge conflict in LinkWidget.tid 2015-02-25 08:01:38 +00:00
Astrid Elocson
40c6362fbe Resolve merge conflict in LinkWidget.tid 2015-02-25 07:57:55 +00:00
Florent V.
41696e725d Adding the missing 'language' type
What about the 'core-version' field ? Should we add it ? Therefore we will need to add some doc about it. (how to use it correctly etc...)
2015-02-25 03:58:18 +01:00
Jermolene
b13d87fdf2 Overhaul the macro and variable documentation #1519 2015-02-24 17:41:16 +01:00
Jermolene
fdc635007b Add navigation support to the edit template
Matching the change we’ve already made to the view template
2015-02-23 18:59:46 +01:00
Jermolene
a2493f80a9 Add support for zip files 2015-02-23 11:57:16 +01:00
Jermolene
6a497eff6c Add prototype stacked storyview 2015-02-23 11:28:50 +01:00
Jermolene
4dd2b38faa Make tiddler frames clickable
With this enhancement, clicking on a tiddler in the story view will
navigate to that tiddler. This is needed for eg the stacked storyview,
where we want to be able to click on tiddlers to bring them to the
front of the stack.

There are some problems though - as things stand, clicking on a tiddler
in classic storyview will scroll to the top of that tiddler.
2015-02-23 11:28:36 +01:00
Jermolene
23981bc2fd Adjust tiddler shadows
Previously the shadow was to the bottom right. Overlapping tiddlers
look better if the shadow seeps out from each of the sides of the
tiddler
2015-02-23 11:27:17 +01:00
Jermolene
d7c0bda15d Don't use sticky titles by default
Layout bugs with position: sticky in Firefox mean that we probably
shouldn’t have sticky titles as the default. Rather than reverting to
putting them in a separate theme, it is proposed to expose the sticky
titles setting in Vanilla theme tweaks.
2015-02-23 11:25:10 +01:00
Jermolene
05c3de3245 Extend list widget to invoke storyview for refreshes 2015-02-23 11:24:03 +01:00
Jermolene
950a86c7b7 Extend link widget with additional attributes
Add “tabindex”, “draggable” and “tag” attributes
2015-02-23 11:23:44 +01:00
Jermolene
0bd2ec50e1 Add stacked storyview plugin 2015-02-23 11:21:57 +01:00
Jermolene
682cfebe73 Adjust tiddler shadows
Previously the shadow was to the bottom right. When tiddlers overlap
(as with the stacked storyview) it makes them “pop” more if the shadow
extends round all sides of the tiddler.
2015-02-23 11:21:32 +01:00
Jermolene
122a6f043d Temporarily remove position sticky from titles
Firefox bugs with position:sticky mean that we probably shouldn’t have
sticky titles turned on by default.

Previously, sticky titles were packaged into a pluggable theme. Now, I
think it may make more sense to make the sticky titles status be a
theme tweak for the Vanilla theme.
2015-02-23 11:20:41 +01:00
Jermolene
83011ddcff Turn tiddler frames into links
By turning the tiddler frame into a link it is now possible to click on
a tiddler to navigate to it. This is needed for the new
stacked-storyview, but it also useful in other storyviews.

Note that there are currently some issues. For example, in classic
storyview, clicking on a tiddler will scroll to the top of it, which
isn’t helpful if you’ve scrolled halfway down a long tiddler.
2015-02-23 11:18:47 +01:00
Jermolene
0da1f3f554 Extend list widget to pass refreshes to the story view 2015-02-23 11:17:00 +01:00
Jermolene
60e6b584bf Extend link widget with new attributes
Add “draggable”, “tag” and “tabindex” attributes to link widget.
2015-02-23 11:16:44 +01:00