Jeremy Ruston
9b52ca7cc0
Merge pull request #543 from welford/load-and-deserialize
...
Make deserializing a bit more robust
2014-04-09 11:51:16 +01:00
Jermolene
f9a274df85
Require confirmation for all tiddler deletions
...
Previously we only asked for confirmation when deleting a draft tiddler
2014-04-09 11:32:08 +01:00
Jermolene
f08c4aa525
Arrange fields alphabetically in the edit template
2014-04-09 11:31:27 +01:00
James Welford Anderson
362df18a19
make deserializing a bit more robust
...
load.js references the encoding set in boot.js when loading a file.
boot.js can now register file type with different deserialization from
their actual type
2014-04-09 06:20:51 +09:00
Jermolene
426281539a
Merge branch 'saner-filters'
2014-04-08 14:14:11 +01:00
Jermolene
3282bd948f
Fix problem with search filter operator
2014-04-08 09:36:30 +01:00
Jermolene
5ec0775d3e
Link wikitext help text to tiddlywiki.com
...
Fixes #537
2014-04-07 18:08:11 +01:00
Jermolene
597b8ca4b1
Ensure fieldnames are not wikified
...
`__proto__` was being wikified into underlined text
2014-04-06 22:49:59 +01:00
Jermolene
1e960ffcac
Fix problems with tiddlers called __proto__
...
Background:
http://www.2ality.com/2012/01/objects-as-maps.html
2014-04-06 22:43:10 +01:00
Jermolene
b51d851f93
Fix extraneous comma
...
Thanks to Danielo Rodríguez
2014-04-06 22:09:42 +01:00
Jermolene
c7b4febae3
Optimise ordering of filter expressions
...
We get a significant speed improvement of >10% by rearranging filter
operators to bring to the front the operators likely to reduce the size
working list.
2014-04-06 11:50:16 +01:00
Jermolene
4d91a7762e
Optimise link widget
...
Handle the classes better, and stop using a default tooltip (parsing
the tooltip was a performance hog)
2014-04-05 17:37:58 +01:00
Jermolene
272a4bbe61
Filtering optimisations
2014-04-05 17:31:36 +01:00
Jermolene
b7f674c51a
First pass at refactoring filter execution
...
This is the beginning of addressing #523 .
2014-04-03 20:49:16 +01:00
Mario Pietsch
1940bd4dce
right menue SiteTitle and SiteSubtitle decoupled from tiddler title and tiddler subtitle. Otherwise it is not possible to modify the tiddler title styling, without affecting the site title.
2014-04-01 10:34:58 +02:00
Jermolene
d402d3c5a6
Add performance measurement features
...
This is an experimental module to help us measure the performance of
the refresh cycle and the filter mechanism. Not intended to replace the
performance measurement features in browser developer tools, just to
make it easier to automate performance checks cross-browser.
The immediate purpose is to help in refactoring the filter mechanism.
The recent change to encapsulate the wiki store “tiddlers” object has
hurt the performance of filters, and it’s going to be helpful to have
decent measurements while refactoring that code.
I’m still not convinced that this stuff should be in the core, and may
well end up removing it after the present refactoring cycle.
2014-04-01 08:33:36 +01:00
Jermolene
dcce487934
Add support for platform dependent high resolution performance timers
...
For profiling filter performance
2014-03-31 18:42:30 +01:00
Jermolene
c3e24c1228
Trim spaces from new field and tag names
...
Fixes #517
2014-03-31 17:59:28 +01:00
Jermolene
6307293469
Fix some Node.js cross-platform compatibility issues
...
Thanks to http://shapeshed.com/writing-cross-platform-node/
Surprising that file path format is pretty much the only issue.
2014-03-31 17:17:36 +01:00
Jeremy Ruston
0d0679de1b
Merge pull request #514 from Skeeve/patch-6
...
Show site title when logging in
2014-03-31 12:59:15 +01:00
Jermolene
09214d1c33
Fix problem with --load
command overwriting $:/core
...
Now we use the `wiki.importTiddler()` method - it rejects attempts to
load older versions of loaded plugins
2014-03-31 12:46:10 +01:00
Jermolene
914a536d82
Correct relative date handling of t=1s
...
We were incorrectly displaying “1 seconds ago”
2014-03-31 12:41:54 +01:00
Jermolene
5a085f7927
Add basic CSV parser
2014-03-31 12:41:02 +01:00
Skeeve
0595619d39
Show site title when logging in
...
I have several TW5 servers running on the same host and think it would be good, would the password prompt display the $:/SiteTitle
2014-03-31 08:58:13 +02:00
Jermolene
ec90ac99cf
Skinner dropdown arrow
2014-03-27 08:54:28 +00:00
Jeremy Ruston
818b29386e
Merge pull request #504 from buggyj/58texthtml
...
added missing text/html type
2014-03-26 21:49:45 +00:00
Jermolene
c58852a67b
On narrow screens ensure there is a background behind the home and menu buttons
2014-03-26 14:11:26 +00:00
Jermolene
bca1d55280
Add validation of legal characters for fieldnames
2014-03-26 13:38:43 +00:00
Jermolene
45a362c285
Add a dropdown to tags in edit mode
...
As discussed in TW Hangout 40
2014-03-26 13:06:11 +00:00
Jermolene
871630be88
Fix the menu hamburger
2014-03-26 10:16:00 +00:00
Jermolene
59ac38a3da
Remove the scrollable from the story river
...
The problem was that the scrollable required that the mouse be over the
story river itself in order to scroll it with the wheel. If we fallback
to scrolling the story by scrolling the browser body then we are able
to scroll even if the mouse is over the sidebar.
2014-03-25 22:15:54 +00:00
Jermolene
80b65b1651
Add a top-left and top-right menu
2014-03-25 21:54:06 +00:00
Jermolene
79d643775d
Fix scrollable widget not to crash on the server
2014-03-25 14:37:33 +00:00
Jermolene
7c235566c4
Rejig the page layout to use the scrollable widget
...
This is the start of some refactoring of the main layout CSS intended
to give us more flexibility and control.
2014-03-25 14:29:16 +00:00
Jermolene
d3e178becc
Add scrollable widget
...
A new widget to handle scrollable areas. We’ll use it both for the
story river and the sidebar.
2014-03-25 14:26:54 +00:00
Jermolene
535837e017
Use client bounding rect rather than offset positions for computing scroll positions
2014-03-24 22:31:03 +00:00
Jermolene
20f6383528
Add storyviews list filter and use it in view switcher
2014-03-24 22:17:45 +00:00
Jermolene
3ce2159a95
Missing semicolon
2014-03-24 21:35:48 +00:00
buggyj
968d44e4be
added missing text/html type
2014-03-24 11:31:28 +05:30
Jeremy Ruston
03cfa61ae8
Merge pull request #494 from nameanyone/master
...
Stop using obsoleted "-moz-border-radius" and "-webkit-border-radius" pr...
2014-03-20 22:19:45 +00:00
Jeremy Ruston
4badabce4b
Merge pull request #496 from buggyj/syncer
...
syncer freeze fix
2014-03-20 20:58:50 +00:00
Jermolene
178cfb1084
Make more core strings be translateable
...
Now we’re translating strings that occur in JavaScript modules.
Partially fixing #491
2014-03-20 20:55:59 +00:00
buggyj
aa63151815
syncer freeze fix
2014-03-19 20:20:54 +05:30
Jermolene
ba6edd42c1
Explicitly blacklist unsafe elements, starting with <script>
...
Are there are any other elements that might be considered unsafe?
2014-03-19 10:05:44 +00:00
nameanyone
7616c4ce7d
Stop using obsoleted "-moz-border-radius" and "-webkit-border-radius" properties
...
Fixes #480
2014-03-18 16:38:52 -07:00
Jermolene
925b3d2a5b
Fix typo
2014-03-18 21:18:46 +00:00
Jermolene
b8d0fd059b
Fix bug with plugintiddlers filter operator
2014-03-18 21:18:45 +00:00
Jermolene
bdbbf94326
Update transclusion wikitext syntax to allow a template without a target tiddler
...
This allows us to transclude a tiddler without changing the current
tiddler with `{{||MyTiddler}}`.
2014-03-17 21:44:10 +00:00
Jermolene
cdf3e101a8
Fix crash with headings
...
`this.match[1].length` can get overwritten when we parse the content of
the heading
2014-03-17 20:55:08 +00:00
Jermolene
06500e5f71
New error message text for recursive transclusion error
2014-03-17 11:54:41 +00:00
Jermolene
9de17aa206
Make shadowTiddlers, pluginTiddlers and pluginInfo be private to the Wiki object constructor
2014-03-17 10:50:18 +00:00
Jermolene
721e333a20
Starting to make the members of $tw.Wiki be private
...
We want to avoid plugins from directly accessing the tiddlers hashmap.
Later we’ll do pluginTiddlers, pluginInfo and shadowTiddlers.
2014-03-16 21:23:10 +00:00
Jermolene
499730c458
Remove whitespace between toolbar icons
2014-03-15 17:04:12 +00:00
Jermolene
baa8cf3dd0
Add a warning segment to templates for TWC tiddlers
...
Now there’s a warning banner on all TWC tiddlers. It includes an
`upgrade` button that currently just flips the tiddler type to TW5
2014-03-15 17:03:50 +00:00
Jermolene
f649b5b037
Extend button widget to set text references
...
Previously the `set` attribute could only be used to identify a
tiddler, not a full text reference.
2014-03-15 17:02:13 +00:00
Jermolene
afa677b9a0
Add a class to tiddler frames in view mode
...
We’re already marking tiddlers in edit mode with tw-tiddler-edit-mode,
makes sense to make view mode tiddlers too.
2014-03-15 11:20:33 +00:00
Jermolene
42c67cfeb7
Add tiddler info "advanced" panel
2014-03-14 15:23:28 +00:00
Jermolene
ebc77fbd09
Get ready for a new view template segment carrying information about plugins
2014-03-13 17:44:27 +00:00
Jermolene
96457d8011
Rejig plugins tab of control panel
...
Now we divide the plugins into categories and organise the displayed
information a bit better
2014-03-13 17:43:18 +00:00
Jermolene
3d9f61f041
More whitespace in core templates
2014-03-13 17:42:29 +00:00
Jermolene
f48701544e
Enhance tiddler title for system tiddlers
...
Now the $:/ part of the name is rendered in grey, making the main part
of the title more prominent.
@tobibeer suggested this a long time ago; good idea!
2014-03-13 17:40:53 +00:00
Jermolene
50cf9678cb
Add support for tw-home message
2014-03-12 22:32:13 +00:00
Jermolene
c4119f4f93
Default colour tweaks
2014-03-12 22:22:18 +00:00
Jermolene
cafe74fc89
Tweaks to list-before and list-after field descriptions
2014-03-12 22:22:02 +00:00
Jeremy Ruston
2466389397
Merge pull request #485 from TheDiveO/master
...
added descriptions for list-before, list-after
2014-03-12 21:57:41 +00:00
Jermolene
dd3ee2a603
Extend tag manager to edit icons assigned to tags
...
Add a dropdown for choosing available images for a tag.
As part of this change we need to tag tiddlers that contain images
typed as wikitext (these are inline SVG icons) so that we can display
them in the dropdown.
2014-03-12 21:56:46 +00:00
Jermolene
8e17c1dfd5
Fix setTextReference()
...
It wasn’t working for non-existent tiddlers. Also added support for
setting indexed properties of a data tiddler.
2014-03-12 21:54:43 +00:00
Jermolene
9bd0174205
Left off previous commit
2014-03-12 21:53:50 +00:00
TheDiveO
522dad95be
added descriptions for list-before, list-after
2014-03-12 21:26:18 +01:00
Jermolene
5ba92fe274
Update to latest version of normalize.css and fix tab styling
...
Tab styling was inconsistent on Firefox due to some line-height issues.
2014-03-12 20:05:34 +00:00
Jermolene
d0caf21b2d
Exclude attributes starting "on" on HTML elements
...
Because:
* It doesn't work well with TW5's refresh mechanism, which relies on
being able to regenerate any portion of the DOM as required; this
frequently causes inline handlers to be re-executed at unexpected times
(see
http://tiddlywiki.com/static/TiddlyWiki%2520for%2520Developers.html )
* It mixes TW5 version-specific JavaScript with user content
* In multiuser environments there is a security risk to importing or
viewing tiddlers you didn't author if they can have JavaScript in them
2014-03-12 16:39:18 +00:00
Jermolene
0d18f3cc5d
Add support for ordering tags by the 'list-before' and 'list-after' fields
...
See the discussion here:
https://groups.google.com/d/topic/tiddlywikidev/AXDJEjcAphs/discussion
2014-03-12 14:19:26 +00:00
Jermolene
62bc20a181
Restore visibility of system tags in view template
...
On discussion at Hangout #38 we felt that hiding them was confusing,
and that there were few situations where a user would see system tags
except on system tiddlers.
2014-03-11 18:25:41 +00:00
Jermolene
0d7c4ae6c7
Include tags on shadow tiddlers in tagging filter
...
Ensures that for system tiddlers the info panel "Tagging" tab correctly
shows the tagged tiddlers.
Final fix for #478
2014-03-10 19:41:38 +00:00
Jermolene
2608a323eb
Hide system tags from the sidebar tags list
...
Part of #478
2014-03-10 19:40:07 +00:00
Jermolene
8d612aefdd
Fix problem with theme overrides triggering the syncer object
...
Fixes #479
2014-03-10 19:05:06 +00:00
Jermolene
db35bc36aa
Disable storyviews when rendering to the fake dom
2014-03-10 18:41:11 +00:00
Jermolene
af34fbbca3
Only show command line help if no arguments are provided
...
Previously we were checking in a way that meant that `tiddlywiki
<wiki>` would trigger the help message.
2014-03-10 18:20:07 +00:00
Jermolene
8239275edb
Add dropdown of canned filter searches
...
Now you can pick from a dropdown of predefined filtered searches in the
advanced search filter tab.
2014-03-10 18:16:10 +00:00
Jermolene
be6509a17f
Remove system tags from sidebar tags listing
2014-03-10 18:15:12 +00:00
Jermolene
01e1133219
Fix bug where count widget wasn't being updated correctly
2014-03-10 18:15:00 +00:00
Jermolene
f04527ae32
Correct filter for count of overridden shadow tiddlers
2014-03-10 15:05:07 +00:00
Jermolene
98872bbe7c
Allow pasting/dropping of HTML content
...
Fixes #477
2014-03-09 20:39:03 +00:00
Jermolene
bc8b72e6eb
Use hasOwnProperty to text for tiddler existence
2014-03-09 19:20:58 +00:00
Jermolene
289bec0fd5
Parse the wiki link tooltip as wiki text
2014-03-08 16:06:57 +00:00
Jermolene
81af6bdd48
Fix typo in navigate handler for button widget
2014-03-08 10:22:09 +00:00
Jermolene
a5a2c718b1
Add support for a tooltip on the link widget
2014-03-06 12:38:47 +00:00
Jermolene
c277370e48
Display --help message if run without arguments
...
Fixes #389
2014-03-05 11:13:58 +00:00
Jermolene
67f3d58f71
Fix problem with "null" message when unloading under IE11
...
Fixes #457
2014-03-04 22:21:18 +00:00
Jermolene
70d2d4b7a1
Remove the "create" button from the missing tiddler template
2014-03-04 18:55:43 +00:00
Jermolene
df6436a12c
Allow middle mouse button to trigger navigation suppression when clicking a tiddler link
...
Equivalent to holding control/command while clicking.
2014-03-03 09:09:13 +00:00
Jermolene
2f2a257745
Improve the descriptive text for missing tiddlers
...
Now we explain that it’s a missing tiddler, and add a “create” button
2014-03-02 18:43:22 +00:00
Jermolene
4194f9f20f
Retract change to new tiddler handling in navigator.js
...
Original commit: d5c31ed07f
2014-02-28 15:31:35 +00:00
Jermolene
bcc282016e
Use proper tag pills in the tag manager
2014-02-25 21:22:15 +00:00
Jermolene
cf4eed0129
Add first pass at a tag manager
...
As independently suggested by @Skeeve and @Spangenhelm
2014-02-25 20:14:16 +00:00
Jermolene
e5103c32f3
Move command documentation into the core
2014-02-25 14:50:37 +00:00
Jermolene
cadeb9654c
Add help command
2014-02-25 14:50:18 +00:00
Jermolene
2ed8df0d1f
Add a new "commands" filter
2014-02-25 14:49:56 +00:00
Jermolene
3636744d4f
Add support for retrieving formatted text content from the fake dom
...
The idea is to convert HTML block elements into newlines, so that the
output is readable on a terminal.
2014-02-25 14:49:07 +00:00
Jermolene
8ce7c3920c
Get rid of the old print command
...
We’ll be introducing a help command to replace it
2014-02-25 14:47:19 +00:00
Jermolene
a1ad735822
Extend the init command to allow editions to be merged
...
Now we can say “—init tw5.com clientserver” to get the tw5.com content
with the client server plugins.
2014-02-24 10:58:11 +00:00
Jermolene
3f6bf2452a
Init command should remove any includeWikis definitions
...
The includeWikis references will otherwise be broken when the edition
is copied.
2014-02-24 10:14:17 +00:00
Jermolene
dd299bf769
Typos and style tweaks
2014-02-23 23:09:58 +00:00
Jermolene
f3930ad69c
Add init command to initialise a wiki folder
...
Fixes #362
2014-02-23 22:58:17 +00:00
Jermolene
b0394f1560
Add support for utils-node modules that are only run under Node.js
2014-02-23 22:57:25 +00:00
Jermolene
0623dd5b7f
Include toolbar button colours in palettes
2014-02-23 17:54:38 +00:00
Jermolene
99ccdf4584
Add confirmation when deleting tiddlers
...
Fixes #381
2014-02-23 17:37:32 +00:00
Jermolene
7f5f4df562
Tweaks to the vanilla theme and palette entries
2014-02-23 17:19:58 +00:00
Jermolene
260080164f
Update setTiddlerData() to preserve tiddler dictionaries
...
Previously, data tiddlers were always being saved in JSON format,
regardless of the original format.
2014-02-23 12:33:00 +00:00
Jermolene
c3f9cf41d5
Tweaks to @giffmex's palettes
2014-02-22 17:05:56 +00:00
Jermolene
2ab0facf3a
Extend button widget to allow navigating to a tiddler
...
Fixes #327
2014-02-22 16:13:16 +00:00
Jermolene
9e0f1240c5
Change SiteTitle/SiteSubtitle into $:/SiteTitle and $:/SiteSubtitle
...
To make things more consistent
2014-02-22 11:39:18 +00:00
Jermolene
199fdb090d
Convert @giffmex themes into colour palettes
...
Although there are some style changes in the existing themes they’re
mostly a matter of a changed palette.
@giffmex - I’ll send you a prerelease of 5.0.8 so that you can tweak
the palettes if you’ve got time.
2014-02-22 11:00:51 +00:00
Jermolene
d6a44b67a3
Fix control panel modules tab
2014-02-22 08:57:39 +00:00
Jermolene
75ff9fb6c0
Allow the end of text to be treated as a linebreak for parsing HTML tags
2014-02-22 08:43:03 +00:00
Jermolene
0961b0426b
Use import report tiddler only if more than one tiddler is imported
...
If there’s only one, just display the tiddler itself.
2014-02-21 20:17:34 +00:00
Jermolene
dfbb6e1fba
Ensure that $:/isEncrypted is reset if modified
2014-02-21 18:21:10 +00:00
Jermolene
31975e0042
Update importing so we don't open every imported tiddler
...
Instead we just display a report with links to each imported tiddler.
Should make importing much faster.
2014-02-21 18:21:10 +00:00
Jermolene
cb5b95add2
Extend fakedom to support .value property
...
So that 88ffb2ad12
will work on the server
2014-02-21 15:43:25 +00:00
Jermolene
4ee277f41b
Fix some missing translateables
2014-02-21 14:27:49 +00:00
Jermolene
68bcbff753
Rough and ready control over bitmap editor line width and colour
...
Fixes #414
2014-02-21 14:06:04 +00:00
Skeeve
d5c31ed07f
Update navigator.js
...
As described here: https://groups.google.com/d/msg/tiddlywikidev/AWvXz7RMIC4/gFF5crN2UJoJ
Providing a name for the new tiddler message only works if a skeleton tiddler already exists. If not, "New Tiddler" is taken. This change fixes that in that the provided name is taken even if there is no skeleton.
2014-02-21 10:37:20 +01:00
Jermolene
ec0769d7ca
Fix typo
...
Fixes #417 , thanks @pmario
2014-02-21 09:11:27 +00:00
Jermolene
c17844b815
Another fix for the block vs inline handline
2014-02-20 22:43:04 +00:00
Jermolene
279f32080d
Start to make the core templates more readable
...
Yay for line breaks.
2014-02-20 22:22:45 +00:00
Jermolene
06a0d21734
Use double linebreaks to indicate content of a widget or html element should be parsed in block mode
...
Fixes #82 .
The old behaviour was to parse the content of a widget or html element
in block mode if the opening tag was followed by a line break. The new
behaviour requires two line breaks.
This makes it possible to include linebreaks more liberally within
wikitext, although care must still be taken to only use double line
breaks when the block mode behaviour is desired.
The code change here is very simple, just a single line change in
html.js. Most of the other changes are to convert various single line
breaks into double line breaks.
2014-02-20 21:42:31 +00:00
Jermolene
8f9d88f25b
Fix static stylesheets
2014-02-20 19:28:17 +00:00
Jermolene
e88f8ad4e9
Fix typo with <<color>> macro
2014-02-20 19:12:05 +00:00
Jermolene
0480bf023d
Fix static CSS generation
2014-02-20 18:33:01 +00:00
Jermolene
e3c1906eaf
Make the show/hide editor button be translateable
...
Missed by accident from earlier commit
2014-02-20 17:53:23 +00:00
Jermolene
f4c7a269bd
Allow "<<color>>" as a synonym for the "<<colour>>" macro
...
Entente cordiale!
2014-02-20 17:14:27 +00:00
Jermolene
921ff6ae39
Make palette editor translateable
2014-02-20 16:07:03 +00:00
Jermolene
b9e72fb676
Move starlight themes macros into the core
2014-02-20 15:59:44 +00:00
Jermolene
d21fb85d94
Change .tids
file extension to .multids
...
Hopefully less confusing
2014-02-20 10:27:02 +00:00
Jermolene
bcd86d5861
Add palette editor
2014-02-20 10:00:38 +00:00
Jermolene
5417b8c4d7
Add 'indexes' filter operator
...
Returns the indexes within a data tiddler.
We’re about to use this to enumerate the colours within a palette.
2014-02-20 10:00:13 +00:00
Jermolene
2744671211
Fix generateTitle to avoid clashing with shadow tiddlers
2014-02-20 09:58:01 +00:00
Jermolene
88ffb2ad12
Fix problem that was causing Chrome to display black in colour picker swatches
...
Hurrah!
2014-02-20 09:57:44 +00:00
Jermolene
a186b6f978
Remove duplicate definition
2014-02-19 21:22:36 +00:00
Jermolene
e1dfb621f5
Add colour swatches to palette switcher
2014-02-18 13:59:11 +00:00
Jermolene
c999d82a23
Palette and theme tweaks
2014-02-17 22:45:46 +00:00
Jermolene
118b841aa2
More palette tweaks and polish
2014-02-17 17:30:02 +00:00
Jermolene
ca1daf5a4e
First pass at switchable colour palettes
...
Fixes #410
Still some cleaning up to do, and we need a way for incomplete palettes
to inherit from a base palette.
2014-02-17 12:09:10 +00:00
Jermolene
5e9dae8fb4
Fix view widget so that it works with indexes
2014-02-17 11:28:48 +00:00
Jermolene
d00a82e9e9
Put language files in alphabetical order
2014-02-17 08:58:53 +00:00
Jermolene
3307604130
Make type information translateable
2014-02-16 19:58:53 +00:00
Jermolene
1ff8d225d9
Rejig the control panel to use nested tabs for Appearance and Advanced
2014-02-16 19:33:18 +00:00
Jermolene
489509c810
Add missing field descriptions
2014-02-16 19:11:11 +00:00
Jermolene
df8ff9eb26
Make the control panel "internal" tab translatable
2014-02-16 19:02:24 +00:00
Jermolene
e051eb7d90
Making more things translateable
...
Now we’re done with the text that lives in tiddlers, and we’ll need to
get on with the text that is embedded in code modules.
2014-02-16 09:46:43 +00:00