1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2026-01-22 19:04:38 +00:00

Compare commits

...

699 Commits

Author SHA1 Message Date
Jermolene
ac716755e8 Version number update for 5.1.8 2015-04-17 17:37:09 +01:00
Jermolene
afb250cef3 Whoops too early to bump the version 2015-04-17 17:36:49 +01:00
Jermolene
b9ec50ecff Updated readme 2015-04-17 17:35:53 +01:00
Jermolene
ee81425968 Preparing for 5.1.8 release 2015-04-17 17:34:31 +01:00
Jermolene
4dbf46e3d7 Docs updates 2015-04-17 17:07:47 +01:00
Jermolene
b08a2080ee Revert to a pale default theme for highlight plugin
Fixes #1656
2015-04-17 16:05:54 +01:00
Jermolene
98011b611a Release note updates 2015-04-17 15:58:13 +01:00
Jeremy Ruston
0d259a5d3f Merge pull request #1657 from BramChen/master
Update chinese translations
2015-04-17 15:08:39 +01:00
Jermolene
bef333e52b Typos in nsortcs and sortcs docs 2015-04-17 13:58:32 +01:00
Jermolene
6e2bfc8c77 Remove icon from gentle guide link panel 2015-04-17 13:58:07 +01:00
Jermolene
8d231f4a9f Give link panels rounded corners
The idea is that the rounded corners help the video preview to look
like a video preview.
2015-04-16 18:34:42 +01:00
Jermolene
f44bf1e458 Remove extraneous file 2015-04-16 18:34:04 +01:00
Jermolene
534f2bc12d Docs updates 2015-04-16 18:33:55 +01:00
Bram Chen
b9bccbf1ae Update chinese wording of exporter descriptions 2015-04-13 21:24:15 +08:00
Jermolene
3e966d4cf3 Simplify wording of exporter descriptions 2015-04-13 07:53:36 +01:00
Jermolene
8dca128725 Docs updates 2015-04-13 07:51:01 +01:00
Jermolene
ba0ddb939c Re-establish "Configurations" TOC heading 2015-04-12 19:57:06 +01:00
Jermolene
0b4ed3c72d Use palette colours for text areas and text inputs 2015-04-10 17:04:41 +01:00
Jermolene
b2cb992538 Fix thumbnail flex properties for Safari 2015-04-10 17:01:18 +01:00
Jermolene
301bc4988d Ensure static banner is above the story river 2015-04-09 19:56:54 +01:00
Jeremy Ruston
543e95a436 Merge pull request #1645 from reflectionalist/patch-1
Add the missing operator to `sameday`
2015-04-09 19:20:51 +01:00
Jermolene
2dabb6a1fc Fix modal scroll behaviour
The previous behaviour didn’t allow scrolling of the modal itself
through the scroll bar because the scrollbar was hidden behind the
backdrop.

Fixes #1642
2015-04-09 11:03:06 +01:00
Jermolene
89679c1b6a Add local plugin library to prerelease for debugging 2015-04-09 11:02:14 +01:00
Jermolene
596caafd5f Docs tweaks 2015-04-09 11:01:49 +01:00
Hong-Yi Dai
279ae2af79 Add the missing operator to sameday
Otherwise, the `sameday` macro will default to `modified`.  In case the user set `dateField:"created"` when calling `timeline`, the result will be inconsitent.
2015-04-09 11:10:09 +08:00
Jeremy Ruston
13a5e8f31c Merge pull request #1520 from roma0104/master
Update the sameday and eachday filter to accept TW5 date strings.
2015-04-06 17:40:32 +01:00
Jermolene
5c6cee62e3 Updates to Danish translation
Thanks to Birthe C
2015-04-06 16:42:31 +01:00
Jermolene
660090912b Release note update 2015-04-06 16:39:18 +01:00
Jeremy Ruston
66a52c1308 Merge pull request #1639 from xcazin/fr-FR
fr-FR translations for recent changes in localisable strings
2015-04-04 15:10:12 +01:00
Xavier Cazin
a912b9b982 Merge remote-tracking branch 'upstream/master' into fr-FR 2015-04-04 15:53:10 +02:00
Xavier Cazin
32ebb64638 fr-FR translations for recent changes in localisable strings 2015-04-04 15:52:27 +02:00
Jermolene
fd9bbcd21e Release note updates 2015-04-04 10:39:58 +01:00
Jeremy Ruston
aacde0d703 Merge pull request #1635 from reflectionalist/patch-1
Document how to use relative paths (fix #1628)
2015-04-04 08:35:36 +01:00
Jeremy Ruston
dd68792282 Merge pull request #1638 from reflectionalist/patch-3
Fix a typo
2015-04-04 08:35:18 +01:00
Jeremy Ruston
4b60b4aa59 Merge pull request #1637 from reflectionalist/patch-2
Sign CLA-individual to contribute
2015-04-04 08:33:38 +01:00
Hong-Yi Dai
2140ae2b51 Fix a typo 2015-04-04 07:48:32 +08:00
Hong-Yi Dai
2cd10ad9c0 Sign CLA-individual to contribute 2015-04-04 06:36:51 +08:00
Jermolene
eb8d44e288 Add new community links 2015-04-03 12:22:21 +01:00
Jermolene
f3ed9bf7e4 Fix problem with double quotes in new field value
Fixes #1634
2015-04-03 09:06:57 +01:00
Hong-Yi Dai
6410f31aaa Document how to use relative paths (fix #1628) 2015-04-03 11:11:37 +08:00
Jermolene
42debd489d Fix problem with overflowing content in vertical tabs
Fixes #1632
2015-04-02 17:53:40 +01:00
Jermolene
21b6ce71ff Revised wording for "save tiddler" button
See #1274
2015-04-02 17:49:42 +01:00
Jermolene
b7465c5eb1 Missed off 7c9976f1d9 2015-04-02 15:22:50 +01:00
Jermolene
7c9976f1d9 Partially revert to 5.1.7 scroll behaviour
We’re keeping the new logic that prevents unnecessary scrolling at
startup

Fixes #1543
2015-04-02 15:21:49 +01:00
Jermolene
22f4f07a16 Theme tweaks docs update 2015-04-02 14:02:58 +01:00
Jermolene
a35425e579 Add a light background photo for comparison 2015-04-02 13:19:06 +01:00
Jermolene
515be0c22e New DarkPhotos palette that's good with background photos 2015-04-02 12:39:24 +01:00
Jermolene
816363408e Introduce site-title-foreground to palette 2015-04-02 12:39:08 +01:00
Jermolene
a3f4221008 Tweaks to background image support
And some demo images for use as backgrounds
2015-04-02 12:11:13 +01:00
Jermolene
5101ae4ce6 Add background image size theme tweak
Makes it possible to create a background image that fully covers the
window, as well as the tiled images that were working before.
2015-04-01 21:08:42 +01:00
Jermolene
987bfcfd5b Add background image to Vanilla theme tweaks
Now one can choose an image tiddler from a dropdown and choose how the
image is attached.
2015-04-01 18:28:33 +01:00
Jermolene
5effb3fdc3 Tweak HelloThere 2015-04-01 14:09:10 +01:00
Jermolene
4f8982f44d Link panel styling tweaks 2015-04-01 14:08:16 +01:00
Jermolene
46848b817c Remove help plugin from main release
The help plugin really needs some up-to-date screencasts before it is
useful.
2015-04-01 14:08:06 +01:00
Jermolene
4f927cb492 Tweak link panels 2015-04-01 14:07:24 +01:00
Jermolene
ae817a441f Bigger link panels 2015-04-01 14:07:09 +01:00
Jermolene
6314d7f8ba Fix thumbnail macro to set foreground colour for icons 2015-04-01 14:06:59 +01:00
Jermolene
b34530e86a Make upgrade wizard download link be relative
Ensures that the prerelease upgrade wizard download link doesn’t point
to the non-prerelease version
2015-03-31 19:14:49 +01:00
Jermolene
ea5fb19fb2 Experimental SVG Compression
I used this tool to compress the core icon:

https://jakearchibald.github.io/svgomg/

It’s a 50% saving, from 3,491 bytes to 1,709 bytes.
2015-03-31 14:39:36 +01:00
Jeremy Ruston
57e71b5506 Merge pull request #1618 from le-pako/patch-3
Update Introduction to Filters.tid
2015-03-31 13:17:42 +01:00
Jeremy Ruston
394830ad96 Merge pull request #1624 from BramChen/master
Update chinese translations
2015-03-31 12:20:08 +01:00
Bram Chen
8185c29738 Change chinese translations for Exporters/StaticRiver 2015-03-31 19:02:27 +08:00
Jermolene
390b7553f6 Change "River of tiddlers" to "Static HTML tiddlers"
For clarity; see this discussion:

https://groups.google.com/d/msg/tiddlywiki/hReAZYepG5U/bQt8McdkQMUJ
2015-03-31 11:03:21 +01:00
Jeremy Ruston
05cb81a644 Merge pull request #1622 from Jermolene/revert-1619-motovun-jack
Revert "Motovun jack"
2015-03-31 09:06:36 +01:00
Jeremy Ruston
b460bac579 Revert "Motovun jack" 2015-03-31 09:06:22 +01:00
Jermolene
b9a2150f4e Tweaks for big green buttons
Make the images larger, and switch to display: inline-block so that we
get better behaviour with line wrapping.
2015-03-31 09:00:27 +01:00
Jermolene
33953f2634 Docs update 2015-03-31 09:00:27 +01:00
Jeremy Ruston
0071796546 Merge pull request #1619 from pmario/motovun-jack
Motovun jack
2015-03-31 09:00:12 +01:00
Mario Pietsch
93cc9af145 also changed core icon. changed ids 2015-03-30 19:41:08 +02:00
Mario Pietsch
d0e6b1ddff added doctype to pass w3c validator 2015-03-30 13:10:16 +02:00
Mario Pietsch
ea943b551a fix motovun jack paths, remove unnecessary nodes, fix back feets and left ear 2015-03-30 12:01:00 +02:00
Jermolene
6dc443f3ef Docs tweaks for HelloThere 2015-03-26 11:15:55 +00:00
Jermolene
bf67ea02ac Docs tweaks 2015-03-26 11:15:43 +00:00
Jermolene
7fa3803de8 Add mail icon 2015-03-26 11:15:34 +00:00
Jermolene
47dc16a179 Docs tweaks 2015-03-25 22:15:51 +00:00
Jermolene
3e8d1b3955 Incomplete docs about the thumbnail macro 2015-03-25 22:15:34 +00:00
Jermolene
8c7a6c5030 Remove github fork ribbon from tiddlywiki.com
We’ll keep using it on the /dev site, but now that we’ve got the link
panels we don’t need it on the main site
2015-03-25 22:15:17 +00:00
Jermolene
758ba5edc2 Allow widgets to choose not to propagate actions
Allow widgets to choose not to propagate actions. This is important for
widgets that themselves trigger actions.

Note that this change will cause problems with any existing
5.1.8-prerelease plugins that call `invokeActions()`.
2015-03-25 22:13:22 +00:00
Jermolene
055a38ea4c Further link panel tweaks 2015-03-25 17:06:29 +00:00
Jermolene
2186a393a7 Simplify the link panels 2015-03-25 11:11:18 +00:00
Jermolene
4eb2e3d3b4 Fix undefined tabindex problem with link widget
The tabindex attribute was being set to the string “undefined” if the
attribute was not specified. The fix is to only set the tabindex
attribute if the attribute was specified.
2015-03-25 11:11:07 +00:00
Jermolene
0ea1dad2c8 Better background for developer link 2015-03-25 08:38:15 +00:00
Jermolene
c18e9d170b Add GitHub and Twitter buttons 2015-03-25 08:38:06 +00:00
Jermolene
feefdefc6b Tweak theme tweak description 2015-03-25 08:37:51 +00:00
Jermolene
e56f204633 Remove icon from Jack's midriff
It looks strange to have an icon overlaid on Motovun Jack.
2015-03-24 08:34:54 +00:00
Jermolene
8268087b48 Tweaks for default colour palette
Slightly lighter page background does seem to reduce the sombreness.
2015-03-24 08:34:12 +00:00
Jermolene
ff103665cf More link panel tweaks 2015-03-23 19:47:55 +00:00
Jermolene
843871e195 Tweaks to link panels
Taking into account some of @pmario’s feedback
2015-03-23 19:40:52 +00:00
Jermolene
32c6d01943 Add GitHub and Twitter icons 2015-03-23 19:40:32 +00:00
Jermolene
958621f0c0 Fix vertical alignment of link panels
Improves #1609
2015-03-23 17:29:51 +00:00
Jermolene
b31237c86d Front page link panels prototype
Starting to explore #1609
2015-03-23 16:05:25 +00:00
Jermolene
bd6472c1d1 Add style attribute to reveal widget 2015-03-23 15:28:26 +00:00
Jermolene
b97336f171 Feedback for Control Panel (etc) button
Give the toolbar buttons for control panel, advanced search and tag
manager the selected state when the corresponding tiddlers are open in
the story river.
2015-03-23 11:36:54 +00:00
Jermolene
5b38f2a17c Remove youtube specificity from thumbnail macros 2015-03-23 11:36:11 +00:00
Jermolene
66f4faaef4 Better margin and style handling for youtube macro 2015-03-22 19:52:09 +00:00
Jermolene
171e6fcc92 Added margin to YouTube thumbails 2015-03-22 19:10:42 +00:00
Jermolene
9c27d22ea6 Add caption and tweak styling for youtube macro
More fixes for #1547
2015-03-22 18:01:46 +00:00
Jermolene
ec598d5cf4 Add hover effects to youtube thumbnails 2015-03-22 17:52:09 +00:00
Jermolene
542372c722 Replace big red introduction video with thumbnail
Hopefully fixes #1547
2015-03-22 17:35:37 +00:00
Jermolene
e00d417a31 Punctuation tweak 2015-03-22 15:53:26 +00:00
Jermolene
ef729487c3 Tweak size of help panel
Now that we don’t have the cheatsheet, reducing the height makes the
panel more useful for watching tutorial videos.
2015-03-22 15:52:17 +00:00
Jeremy Ruston
077e5378ef Merge pull request #1603 from pmario/fix-twitter-link
fix the problem with an invisible link if addblocking is active
2015-03-22 15:51:20 +00:00
Mario Pietsch
ffa7988fd0 remove TW wikilink 2015-03-22 12:00:31 +01:00
Mario Pietsch
cf57777556 fix the problem with an invisible link if addblocking is active 2015-03-22 11:57:01 +01:00
Jermolene
fc315d1df7 Make sticky titles be a theme tweak for Vanilla theme
Fixes #1599 (albeit brutally!)
2015-03-22 10:15:43 +00:00
Jermolene
9d2b782ae9 Adjust ribbon text and link to "Spread the Word"
Fixes #1590
2015-03-22 09:55:47 +00:00
Jeremy Ruston
508eda72b5 Merge pull request #1602 from BramChen/master
Update chinese translations
2015-03-22 09:45:19 +00:00
Jermolene
0b2f1fb41f Fix plugin library location
I use 127.0.0.1 during testing
2015-03-22 09:39:02 +00:00
Bram Chen
ababfa772e Merge remote-tracking branch 'upstream/master' 2015-03-22 10:49:32 +08:00
Bram Chen
6ed53d6b93 Add chinese translation for encryption dialog 2015-03-22 10:47:00 +08:00
Jeremy Ruston
7daddfc5ea Merge pull request #1588 from andreasabeck/passwd-lang
added localisation for encryption dialog & de-DE translation
2015-03-21 19:05:39 +00:00
Jermolene
17696e4505 Fix for selected toolbar buttons in Firefox
See https://github.com/Jermolene/TiddlyWiki5/issues/1599
2015-03-21 16:33:15 +00:00
Jermolene
a60ea1d89b Remove cheatsheet from help panel
We’d rather present this information as a panel within the tiddler
editor so that we can (for example), allow clicks on a snippet to
insert it automatically into the editor at the current cursor position.

For the moment, we’ll just remove the cheatsheet. Post-5.1.8 we’ll add
it back to the editor
2015-03-21 15:52:28 +00:00
Jermolene
00f35fe41a Don't HTML encode single quotes
They don’t get automatically decoded when the browser reads the
resulting HTML. So, instead, we’ll solve
1e9e1a1fdc by switching to double quotes
for attribute values.
2015-03-21 14:17:42 +00:00
Jermolene
743c325b0d Fix problem with tiddler titles overlaying help panel 2015-03-20 16:18:24 +00:00
Jeremy Ruston
a7b1b3ec10 Merge pull request #1598 from pmario/fix-plugin-button-tooltip
fixes the [Get more plugins] button tooltip
2015-03-20 15:31:13 +00:00
Jeremy Ruston
05d5f2d4fd Merge pull request #1595 from pmario/de-De
new german strings, some help text adjustments
2015-03-20 15:30:53 +00:00
Jeremy Ruston
1e88f2a22f Merge pull request #1592 from BramChen/master
Update chinese translations
2015-03-20 15:30:40 +00:00
Jeremy Ruston
b1ef8ba0dd Merge pull request #1587 from andreasabeck/cla
Update cla-individual.md
2015-03-20 15:24:57 +00:00
Jermolene
17c1213635 Expand help panel label to "Help Panel" 2015-03-20 15:16:40 +00:00
Mario Pietsch
9ae3b5588c fixes the [Get more plugins] button tooltip 2015-03-20 11:34:14 +01:00
Mario Pietsch
586cdaae28 new german strings, some help text adjustments 2015-03-20 10:22:27 +01:00
Bram Chen
93a29b0999 Update zh translations of the last changes to the plugin library 2015-03-19 21:16:14 +08:00
Jermolene
b46ce419a7 Left off last commit 2015-03-19 10:53:51 +00:00
Jermolene
f2a7f00870 Improve plugin readmes
Now every plugin has a short, introductory readme tiddler that is shown
in the online plugin library.
2015-03-19 10:53:45 +00:00
Jermolene
2f8837a445 Revert to original fix for #1542
The trouble with tweaking the ViewBox was that the amount of the
adjustment is expressed in the coordinate system of the image, not the
coordinate system of the bitmap that is being rendered. That means that
the additional space doesn’t necessarily extend to the single physical
pixel needed to resolve the issue.
2015-03-19 10:52:58 +00:00
Pako
d1a8c683a2 Update Introduction to Filters.tid
Corrected an error in the explanation of the `+` prefix.
It actually adds the filter to the list of filters, thus keeping only the tiddlers matching the additional filter.
2015-03-18 21:30:23 +01:00
Andreas Abeck
2c367c5476 added localisation for encryption dialog & de-DE translation 2015-03-18 18:52:33 +01:00
Andreas Abeck
c200d10274 Update cla-individual.md 2015-03-18 18:37:43 +01:00
Jermolene
77db136d4f Missed off previous commit 2015-03-18 11:46:37 +00:00
Jermolene
24435a46be Lots of improvements to the plugin library
* Moved “add new plugin” into a modal wizard
* Adopt big friendly buttons
* Add plugin icons and readmes to “add new plugin” modal
* Use tabs for splitting plugins/themes/languages
* Consistent styling between the “add new plugin” modal and the
“installed plugins” control panel tab
* Behind the scenes, moved from addressing the library as
`recipes/defaults/tiddlers/<etc>` to `recipes/library/tiddlers<etc>`
2015-03-18 11:46:28 +00:00
Jermolene
421ac16389 Use inline parsing for header and footer of modals
This may cause backwards compatibility problems for people relying on
the block mode parsing, but it’s much better for the rest of us as it
avoids an unsightly paragraph tag
2015-03-18 11:41:10 +00:00
Jermolene
22b7400de8 Move making a data uri into reusable utilities 2015-03-18 11:40:09 +00:00
Jermolene
a4a9daa40b Extend wiki.makeTranscludeWidget() to control mode 2015-03-18 11:39:50 +00:00
Jermolene
cf11741df9 Include the version number in the plugin library path
See also:
https://github.com/Jermolene/build.jermolene.github.io/commit/a00a8a6df6
09ef5e4b2ed85039da72780ac81512
2015-03-16 15:44:24 +00:00
Jermolene
d4d69d7dd3 Remove click-to-navigate on tiddler bodies
This was introduced to make it possible in the new stacked story view
to click on a tiddler to bring it to the front. By allowing a tiddler
in view mode to be focussed, it also prepared for view mode keyboard
shortcuts. (Eg, a key to edit the current tiddler).

However, there are several minor issues with the unexpected behaviour
of clicking on a tiddler navigating to it, so we’ll leave this out of
5.1.8
2015-03-16 09:43:12 +00:00
Jermolene
055f6bdfa5 Release note update 2015-03-16 09:40:31 +00:00
Jermolene
7ea0109961 Restore sticky titles 2015-03-16 09:40:22 +00:00
Jeremy Ruston
1f11fd5128 Merge pull request #1582 from le-pako/master
Added missing images : left and up arrows
2015-03-16 09:25:00 +00:00
Pako
f2a328950e Rename up-arrow to up-arrow.tid 2015-03-16 01:13:25 +01:00
Pako
c701e96427 Create up-arrow 2015-03-16 01:11:09 +01:00
Pako
faf9b30e9c Create left-arrow.tid
I needed a left arrow for a menu, but as the core image library doesn't have one I created one by rotating the svg of the built-in right arrow.
Also changed the corresponding class name.
2015-03-16 01:01:24 +01:00
Jermolene
1447c955a5 Release note update 2015-03-14 17:21:37 +00:00
Jeremy Ruston
fe0e726c79 Merge pull request #1574 from le-pako/patch-1
Update TiddlyClip by buggyjay.tid
2015-03-14 17:21:13 +00:00
Jeremy Ruston
d1e75a3ad4 Merge pull request #1579 from le-pako/patch-2
Update cla-individual.md
2015-03-14 17:20:27 +00:00
Pako
8e9cd447c1 Update cla-individual.md 2015-03-14 18:16:16 +01:00
Jeremy Ruston
afd30aec07 Merge pull request #1578 from xcazin/fr-FR
fr-FR translation re: the help button and the default sidebar tab
2015-03-14 17:13:18 +00:00
Xavier Cazin
9cca8772a7 fr-FR translation re: the help button and the default sidebar tab 2015-03-14 18:06:59 +01:00
Jermolene
ae001a19e5 Upgrade to KaTeX v0.2.0 2015-03-14 08:34:16 +00:00
Roma Hicks
55ee327885 Removed uneeded function but still converts TW5 Date strings. 2015-03-13 13:14:30 -05:00
Jermolene
3165eb1429 Update contributors list 2015-03-13 16:27:16 +00:00
Jermolene
0444420346 Update plugin installation instructions 2015-03-13 10:18:42 +00:00
Jermolene
253859cc7c Update release note 2015-03-13 10:18:28 +00:00
Jermolene
70e454fa6d Release note update 2015-03-13 10:07:16 +00:00
Pako
374682a306 Update TiddlyClip by buggyjay.tid
Small edit to correct a type on Firefox name and add a link.
2015-03-13 10:36:25 +01:00
Jermolene
550ad4a1a9 Partial fix for #1570
Stop the logger from creating alert tiddlers on the server. They
propagate to the client but are not deletable from the client because
they are in the `$:/temp` namespace.

cc @loleg
2015-03-12 22:35:03 +00:00
Jeremy Ruston
0e75a6f41c Merge pull request #1572 from Spangenhelm/patch-2
Adding the 'language' type to the table of plugins options
2015-03-12 18:19:47 +00:00
Florent V.
c4da71e2fd Adding the 'language' type to the table of plugins options 2015-03-12 13:46:42 +01:00
Jeremy Ruston
6248c29a14 Merge pull request #1571 from BramChen/master
Update chinese translations
2015-03-12 08:48:16 +00:00
Bram Chen
fc84ede773 For zh-Hant and zh-Hans, add text and tooltip of help button 2015-03-12 13:29:10 +08:00
Jermolene
b69dff861d Fix tests for c33a17a475 2015-03-11 21:58:45 +00:00
Jeremy Ruston
d1a4855bfc Merge pull request #1546 from aelocson/upgrade-typo
Correct WikiText in the upgrade wizard
2015-03-11 21:45:13 +00:00
Jeremy Ruston
e4cc5dca77 Merge pull request #1545 from aelocson/variable-docs
Document the tv-* variables
2015-03-11 21:44:32 +00:00
Jeremy Ruston
a64575f07f Merge pull request #1544 from BramChen/master
Update chinese translations
2015-03-11 21:26:27 +00:00
Jermolene
c33a17a475 Revert "sort unlisted tags by title"
Revert “sort unlisted tags by title”
a8ab08e8fa by @tobibeer

The problem was that this commit changed the order of stylesheet
processing. For background see:

https://groups.google.com/d/topic/tiddlywiki/BPuuSkG6siU/discussion
2015-03-11 19:17:14 +00:00
Jeremy Ruston
c98990d3d6 Merge pull request #1556 from felixhayashi/patch-2
Missing advice in Contributing.tid
2015-03-11 18:26:23 +00:00
Jermolene
3431b84625 Use explicit parameter name
As suggested by @pmario in
https://github.com/Jermolene/TiddlyWiki5/pull/1536/files#r26186766
2015-03-11 17:09:25 +00:00
Jeremy Ruston
07d0609083 Merge pull request #1560 from sukima/remove-freedom-bits
Remove freedombits community example
2015-03-10 20:32:11 +00:00
Jeremy Ruston
2710049865 Merge pull request #1565 from felixhayashi/patch-5
Bugfix: Object.freeze() called on null
2015-03-10 20:31:15 +00:00
Jeremy Ruston
0f5cebc6b0 Merge pull request #1567 from sukima/fix-codemirror-readme
Fix CodeMirror README formatting
2015-03-10 20:24:07 +00:00
Jeremy Ruston
9097697c52 Merge pull request #1536 from aelocson/macro-syntax-fix
Fix a broken use of the list-links macro
2015-03-10 20:23:23 +00:00
Jeremy Ruston
b430f46d78 Merge pull request #1534 from aelocson/monospaced-font
Expose code font family in Control Panel
2015-03-10 20:23:11 +00:00
Jermolene
657c266522 Coding style tweaks 2015-03-10 20:04:34 +00:00
Jermolene
ab9bdb208e Add thumbnail and links for TiddlyWiki Poster 2015-03-10 17:24:17 +00:00
Jermolene
e80a08f43b Fix problem with custom tag in reveal widget 2015-03-10 16:59:25 +00:00
Jermolene
e46d3d74be Rename node-webkit to NW.js 2015-03-10 16:54:53 +00:00
Jermolene
1141911a70 Add strings for help button 2015-03-10 14:27:51 +00:00
Jermolene
1808b1597e Support custom HTML element tags for reveal widget 2015-03-10 12:44:47 +00:00
Jermolene
64e1a76987 Prevent edit-text widget from generating unsafe elements 2015-03-10 12:34:50 +00:00
Jermolene
d3954af478 Soften colour of system tiddler icons 2015-03-10 12:29:39 +00:00
Jermolene
8ab73894e9 Remove extraneous colon 2015-03-10 11:04:35 +00:00
Jermolene
49a9a2c44c Add Slovak translation
Thanks to Vlado Luknar
2015-03-10 11:04:25 +00:00
Jermolene
bd175504f8 Add "full" edition for testing plugins 2015-03-10 10:49:44 +00:00
Devin Weaver
dcb9e161de Fix CodeMirror README formatting
There was a rendering mess in the CodeMirror readme file. This was cause
by attempting to bold the `$:/tags/Stylesheet` text. Also the context of
the sentence implies this should be backticked not bold (it refers to a
tag not a tiddler).
2015-03-08 16:38:16 -04:00
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
Astrid Elocson
ad9aa58528 Overhaul the macro and variable documentation 2015-02-21 23:03:24 +00:00
Roma Hicks
a5591dc7a5 Update the sameday and eachday filter to accept ISO date strings. Extends coverage to fields that are not automatically converted to Date objects. 2015-02-21 11:39:03 -06:00
Jermolene
a507d58211 Use position:fixed for the drop indicator 2015-02-21 11:12:38 +00:00
Jermolene
ccc2f6d153 Revert "Update documentation for action-setfield widget"
This reverts commit 3746b1b9e8.
2015-02-21 09:40:41 +00:00
Jermolene
73a188d411 Improve description for help plugin 2015-02-21 08:53:04 +00:00
Jermolene
70e419824f Add first pass of help panel
This is just an idea really.

The help plugin is only included in the tw5.com wiki; the idea is to
also include it in the empty.html wiki, either as a plugin or as part
of the core.

If it stays as a plugin, the idea would be to have different help
plugins for different languages.
2015-02-20 22:44:55 +00:00
Jermolene
2d2924d918 Add help icon 2015-02-20 22:42:25 +00:00
Jermolene
d004c9f951 Provide styles for selected page control buttons 2015-02-20 22:42:14 +00:00
Jermolene
bba4794c0a Coding style updates
@welford there were some minor tweaks with whitespace, coalescing
consecutive var statements, camelcase rather than underscores in
variable names.
2015-02-20 22:17:28 +00:00
Jeremy Ruston
7eeb286551 Merge pull request #1517 from welford/static_export_macro
bug fix
2015-02-20 22:11:38 +00:00
James Welford Anderson
1901702557 bug fix
Createdirectory is removed as $tw.utils.createFileDirectories does it's
work

Fixed a bug for when tv-get-export-path returns null.
2015-02-21 07:06:59 +09:00
Jermolene
a80b20e8df Merge branch 'welford-static_export_macro' 2015-02-20 21:56:18 +00:00
James Welford Anderson
cf59e7a71b re-add outputpath variable 2015-02-21 06:49:34 +09:00
James Welford Anderson
ee6b6a0f0c add macros for custom statically exported paths/links/images
tv-get-export-path tells render tiddlers where to export files
tv-get-export-image-link tells images.js where to look for images
tv-get-export-link tells tells link.js where to look for links to other
exported tiddlers
2015-02-21 06:45:40 +09:00
Jermolene
3df341621d Alternative fix for unnecessary startup scrolling
@aelocson here’s an alternative fix for #981, as discussed in
https://github.com/Jermolene/TiddlyWiki5/commit/691e5719a4ff74a04d389bd1
26ba2a69e7651a2a#commitcomment-9848682

It does seem a lot nicer. It avoids the problem you raised, and also
avoids scrolling when a permalink is used.

I suspect that we’d need to make the hard-coded 50 pixels be
configurable.
2015-02-20 20:04:18 +00:00
Jermolene
3746b1b9e8 Update documentation for action-setfield widget 2015-02-20 19:33:17 +00:00
Jermolene
ead6eb00d4 Revert "Merge pull request #1509 from welford/static_export_macro"
This reverts commit b2b8006b58, reversing
changes made to e7e16137b2.

@welford my apologies it turns out there are a couple of problems, I’ll
comment more on the pull request
2015-02-20 18:39:13 +00:00
Jeremy Ruston
b2b8006b58 Merge pull request #1509 from welford/static_export_macro
Static export macro for custom paths
2015-02-20 18:15:43 +00:00
Jeremy Ruston
e7e16137b2 Merge pull request #1512 from aelocson/plugin-descriptions
Consistent plugin descriptions
2015-02-20 18:08:34 +00:00
Jermolene
9e9b9a3bf1 Avoid navigating to an empty title
Fixes #1515
2015-02-20 16:19:53 +00:00
Jermolene
396efedc3f Update tests for 1e9e1a1fdc 2015-02-20 16:19:06 +00:00
Jermolene
1e9e1a1fdc Single quotes should be HTML encoded
As raised here:
https://groups.google.com/d/topic/tiddlywiki/nYvgcImvBt8/discussion
2015-02-20 16:09:38 +00:00
Jermolene
50cf85ae86 Move arrows to the left in the explorer view 2015-02-19 13:58:27 +00:00
Jermolene
4931462981 Remove index numbers from explorer view 2015-02-19 13:58:09 +00:00
Jeremy Ruston
6c62954116 Merge pull request #1505 from pmario/fix-search-path-runtime-error
Fix trailing semicolon in TIDDLYWIKI_EDITION_PATH
2015-02-17 20:56:14 +00:00
Astrid Elocson
28f78730ba Consistent plugin descriptions 2015-02-17 10:28:54 +00:00
Jeremy Ruston
13fa3fb849 Merge pull request #1511 from BramChen/master
For chinese translations, fix GettingStarted text input field widths
2015-02-17 08:17:05 +00:00
Mario Pietsch
e1b57bf9e5 remove temporary variable 2015-02-17 01:29:42 +01:00
Bram Chen
0b8498bc6c For chinese translations, fix GettingStarted text input field widths 2015-02-17 08:28:40 +08:00
James W. Anderson
d1809f352c explicitly pass through source params
from the image/link widget to the respective static export macros
2015-02-17 07:11:00 +09:00
Jermolene
6e0c7d9022 Improve font rendering on OX S
See
https://medium.com/@mwichary/death-to-typewriters-technical-supplement-8
f3c754626f2#5916
2015-02-16 21:27:11 +00:00
Jermolene
42d130d49d Revert #1496
The change affects the default display of the story river, reversing
the order of entries.
2015-02-16 19:17:10 +00:00
Jermolene
25442e349e Restore missing whitespace
Accidentally deleted in e1a825f6b9
2015-02-16 17:31:50 +00:00
Jeremy Ruston
e1a825f6b9 Merge pull request #1496 from tobibeer/just-fix-list-filter-no-refactoring
just fixes list filter, no further refactoring
2015-02-16 17:30:54 +00:00
Jeremy Ruston
7d842bedd7 Merge pull request #1500 from aelocson/railroad-desc
Improve description of railroad plugin
2015-02-16 17:29:48 +00:00
Jeremy Ruston
66808f11d7 Merge pull request #1501 from pmario/language-de
german translations + fix TypedTiddlers missing file extension
2015-02-16 17:28:55 +00:00
Jeremy Ruston
01d9af8107 Merge pull request #1502 from pmario/fix-invalid-example-links
change existing, unsuitable links mysite.com and me.com to example.com
2015-02-16 17:28:41 +00:00
Jeremy Ruston
14789e1d21 Merge pull request #1503 from pmario/fix-getting-started-input-width
fix empty.html GettingStarted text input field widths
2015-02-16 17:28:22 +00:00
Jermolene
e900b388b5 Add example of JSON tiddler file 2015-02-16 17:27:49 +00:00
Jeremy Ruston
bb0f960ccc Merge pull request #1504 from tobibeer/tiddler-files-doc
TiddlerFiles — above all fixing the wrong example at the bottom
2015-02-16 17:24:06 +00:00
Jermolene
74f423af2a Restoring some of @tobibeer's other edits to ListWidget docs 2015-02-13 22:56:28 +00:00
Jermolene
4ba53564e2 Missed of reverting the list widget iterator variables commits 2015-02-13 22:56:11 +00:00
Jermolene
68165af081 Revert #1330 ("implements list iterator variables")
As discussed on the ticket, there is a problem:

https://github.com/Jermolene/TiddlyWiki5/pull/1330#issuecomment-74339195
2015-02-13 22:42:36 +00:00
Jermolene
e386e26b2d Fix problems with $tw.utils.checkVersions()
Previous changes since 5.1.7 broke the documented semantics by no
longer returning true when the versions match. It affected the upgrade
process, making it impossible to upgrade to a later pre-release (ie
where the version numbers in the upgrade.html match those in the file
being upgraded).

Also reviewed and updated the calls to checkVersions.

@felixhayashi I think that this effectively reverts the change you
original submitted. Are you OK with it?
2015-02-12 23:04:20 +00:00
Mario Pietsch
95d7a826f0 space added 2015-02-12 20:03:20 +01:00
Mario Pietsch
17c38b1ec5 fix problem if edition search path is TIDDLYWIKI_EDITION_PATH=c:\test; because the trailing semicolon creates an empty directory name. 2015-02-12 14:44:10 +01:00
Tobias Beer
c1977552a2 above all fixing the wrong example at the bottom
and some more rewording
2015-02-12 13:56:26 +01:00
Mario Pietsch
8e106966d3 fix empty.html GettingStarted text input field withs 2015-02-12 13:18:51 +01:00
Mario Pietsch
2d07e3d661 change existing, unsuteable links mysite.com and me.com to example.com 2015-02-12 12:48:00 +01:00
Mario Pietsch
18d45a302d german translations + fix TypedTiddlers missing file extension 2015-02-12 12:38:32 +01:00
Astrid Elocson
435267080f Improve description of railroad plugin 2015-02-12 09:35:57 +00:00
Jermolene
ddac13317e Disable plugin reload warnings in the upgrade edition 2015-02-11 13:01:43 +00:00
Tobias Beer
4991c4d6dc just fixes list filter, no further refactoring
previously did not correctly handle / match the source but only output
the list as is

replaces https://github.com/Jermolene/TiddlyWiki5/pull/1419
2015-02-11 12:01:57 +01:00
Jermolene
c9ab873ba3 Fixes problem with drag and drop in Safari
Fixes #1415

The problem was that encodeURI() doesn’t encode slashes, which are not
legal in a data URI, although only Safari was failing. We switch to
encodeURIComponent(), which does encode slashes
2015-02-11 10:07:10 +00:00
Jermolene
1534fed4f7 Don't give the plugin warning for $:/Import 2015-02-10 23:17:50 +00:00
Jermolene
1924eda8a9 Improvements for #1483
* Rename the global to $tw.dragInProgress for clarity.
* Abort the dragenter so that we don’t get extraneous feedback during
the drag
2015-02-10 23:17:38 +00:00
Jeremy Ruston
1b87d9134b Merge pull request #1483 from tobibeer/592-no-drag-n-drop-to-same-location
prevents drag and drop import in same window
2015-02-10 23:04:45 +00:00
Jermolene
691e5719a4 Avoid unnecessary scrolling at startup
The main fix is removing the fallback navigation to the first tiddler
in story.js. Also required is the fix to the startup behaviour of
zoomin.js.

Fixes #981
2015-02-10 22:40:38 +00:00
Tobias Beer
dc23963525 using $tw.dragging to prevent dnd in same window
Anything missing?
2015-02-10 23:34:37 +01:00
Tobias Beer
30f2c06c9e Revert "prevents drag and drop import in same window"
This reverts commit 09afa8297a.
2015-02-10 23:33:19 +01:00
Jermolene
b166632bbb Fix blurred modal backdrops for Firefox 2015-02-10 22:19:21 +00:00
Jermolene
8b53839e4e Standardise filenames for building fr-FR edition
@xcazin - see also
https://github.com/Jermolene/build.jermolene.github.io/commit/f2d3031946
22fd0a8556de81a1d35542358c585a
2015-02-10 22:05:44 +00:00
Jeremy Ruston
956cc47cc2 Merge pull request #1492 from aelocson/eachday-modified
Default eachday to the modified field
2015-02-10 19:55:28 +00:00
Astrid Elocson
fd84370d7a Default eachday to the modified field 2015-02-10 16:21:53 +00:00
Jermolene
2305385c08 Don't list all tiddlers in tag dropdown in edit template
@tobibeer I think that this was originally from you. I think it’s
problematic listing all available tiddlers for performance and
usability reasons.

I’ve instead taken advantage of your work to template the tag links by
splitting the system and non-system tags. What do you think?
2015-02-10 14:43:09 +00:00
Jermolene
4b61cae262 Add debugging hook for wiki.addTiddler() 2015-02-10 11:30:39 +00:00
Jermolene
cf36f6d090 Fix empty French translation
We also had two $:/language definitions
2015-02-10 11:30:38 +00:00
Jeremy Ruston
921e184d4f Merge pull request #1485 from BramChen/master
Add chinese translations for the new Plugins tab of control panel
2015-02-10 10:56:24 +00:00
Jeremy Ruston
81ff046555 Merge pull request #1489 from xcazin/fred
First fixes to the fr-FR empty wiki generation
2015-02-10 10:37:23 +00:00
Jeremy Ruston
5f3e569ad7 Merge pull request #1488 from aelocson/is-fix
Fix documentation of is[missing]
2015-02-10 10:22:16 +00:00
Xavier Cazin
72160982ed First fixes to the fr-FR empty wiki generation
Needs improvements (notably, fr-FR language has to be manually switched after load)
2015-02-10 11:17:03 +01:00
Astrid Elocson
3331f1d85f Fix documentation of is[missing] 2015-02-10 09:06:05 +00:00
Bram Chen
f0ad83e4e1 Add chinese translations for the new Plugins tab of control panel 2015-02-10 10:54:56 +08:00
Bram Chen
a548321a8e Merge remote-tracking branch 'upstream/master' 2015-02-10 08:48:54 +08:00
Tobias Beer
09afa8297a prevents drag and drop import in same window
fixes #592

Introduces and preserves **_origin** field when using drag-and-drop —
bad idea? discard? different field name?

demo http://592.tiddlyspot.com
2015-02-09 23:49:04 +01:00
Jeremy Ruston
629c31eb51 Merge pull request #1475 from danielo515/patch-6
template parameter on view widget is not clear
2015-02-09 22:12:24 +00:00
Jermolene
120b1737a6 Ensure $:/StoryList is synced in client-server configuration
Fixes #1474
2015-02-09 22:02:23 +00:00
Jermolene
8dcd080cdd Style fix 2015-02-09 21:46:54 +00:00
Jeremy Ruston
9cf1f8f96b Merge pull request #1476 from tobibeer/fix-tm-delete-tiddler-doesnt-exist
Fix issue deleting non-existent tiddler
2015-02-09 21:46:08 +00:00
Jermolene
d7d560897d Correct case of getindex filter operator 2015-02-09 21:42:25 +00:00
James Welford Anderson
0b68428bc5 add image export path macro 2015-02-10 05:59:56 +09:00
Jermolene
950a90e235 haschanged filter docs improvements from @aelocson 2015-02-09 19:51:02 +00:00
Jermolene
f0fa33985b Inadvertently included in previous commit 2015-02-09 19:42:52 +00:00
Jermolene
b66db0dca9 Improvements to display of plugin libraries 2015-02-09 19:41:28 +00:00
Jermolene
e7c418089d Correct plugin library URL 2015-02-09 19:29:14 +00:00
Jermolene
0c4fe6b602 Remove debugging code 2015-02-09 19:28:48 +00:00
Jermolene
2585f8932c Left off previous commit 2015-02-09 19:04:22 +00:00
Jermolene
8643278a45 Add support for an integrated plugin library
Fixes #1450

Provides support for an integrated plugin library that can be used to
install plugins from tiddlywiki.com directly to wikis hosted online or
offline. See the Plugins tab of Control Panel.

Todo:

* Error checking(eg libraryserver.js HTTP GET)
* Translatability
* Documentation
** $:/tags/ServerConnection
** savelibrarytiddlers command
2015-02-09 19:04:11 +00:00
Tobias Beer
ca6ab6388a no error when tiddler doesn't exist
Currently **tm-delete-tiddler** throws a red error box:

```
<$button>
<$action-sendmessage $message="tm-delete-tiddler" $param="DoesntExist"/>
delete non-existing
</$button>
```

**Uncaught TypeError: Cannot read property 'fields' of undefined**
2015-02-09 12:28:42 +01:00
Jermolene
aae56f20af Display warning banner when plugins are modified
Fixes #1455

@aelocson have I got the docs right for the new filter?
2015-02-08 19:40:15 +00:00
danielo515
f20a09532a templates are not clear
The template description is too ambiguous. I tried to use template tiddlers just to realize that the template should be a string. For example a date format.
2015-02-08 20:11:07 +01:00
Jermolene
e18825e897 Fix problem with stringifying missing fields 2015-02-08 18:46:22 +00:00
Jeremy Ruston
96f5098f46 Merge pull request #1441 from Spangenhelm/patch-3
Enhancements to plugin installation doc and new entry for uninstallation
2015-02-08 18:31:05 +00:00
Jermolene
cfea481ce8 Ensure stylesheet is re-rendered when the language changes
This ensures that things like the drop message are updated when the
language changes.
2015-02-08 17:56:17 +00:00
Jeremy Ruston
1191d60d61 Merge pull request #1456 from Spangenhelm/patch-4
Update cla-individual.md
2015-02-07 16:37:16 +00:00
Jermolene
d6b1525727 Add tweeting to release procedure
For @RichShumaker
2015-02-07 15:33:18 +00:00
Jermolene
d6918d737f First commit of Interlingua translation
See http://en.wikipedia.org/wiki/Interlingua
2015-02-07 15:32:44 +00:00
Bram Chen
adbed21363 Merge remote-tracking branch 'upstream/master' 2015-02-07 22:54:09 +08:00
Jeremy Ruston
bb10e2b029 Merge pull request #1471 from tobibeer/basic-empty-story-message
basic empty story message
2015-02-07 13:12:01 +00:00
Tobias Beer
2017ae5ac4 basic empty story message
added documentation to HistoryMechanism
2015-02-07 13:17:32 +01:00
Jeremy Ruston
568515fef7 Merge pull request #1457 from aelocson/filter-fields
Define operators via fields and a view template
2015-02-07 12:02:43 +00:00
Jeremy Ruston
68930f333a Merge pull request #1452 from tobibeer/getIndex-filter
getIndex filter
2015-02-07 11:53:07 +00:00
Jeremy Ruston
6c32ee578e Merge pull request #1458 from BramChen/master
The cumulative updates for zh-Hans and zh-Hant
2015-02-07 11:49:32 +00:00
Jeremy Ruston
412451170b Merge pull request #1469 from Jermolene/revert-1435-1428-empty-story-message
Revert "implements emptyStoryMessage"
2015-02-07 11:29:46 +00:00
Jeremy Ruston
9b600c23a2 Revert "implements emptyStoryMessage" 2015-02-07 11:29:12 +00:00
Jeremy Ruston
dceb68818a Merge pull request #1435 from tobibeer/1428-empty-story-message
implements emptyStoryMessage
2015-02-07 11:25:46 +00:00
Tobias Beer
a72581ba26 removed language switcher text 2015-02-07 12:22:16 +01:00
Jeremy Ruston
7deea0cbf3 Merge pull request #1468 from tobibeer/fix-svg-newlines
removed trailing newlines in svg
2015-02-07 10:45:00 +00:00
Jermolene
6721a5eb1b Add Portuguese Translation by Duarte Farrajota Ramos 2015-02-07 10:30:05 +00:00
Jermolene
b1bb52b67a Fix typo from 8cd0c2afcd 2015-02-07 10:23:16 +00:00
Bram Chen
9cfbc3b001 Merge remote-tracking branch 'upstream/master' 2015-02-07 09:15:46 +08:00
Jeremy Ruston
718ce3e4aa Merge pull request #1465 from roma0104/master
Added Class Mechanism to Checkbox Widget
2015-02-06 18:51:43 +00:00
Jermolene
f2cd743c17 Add TeXZilla plugin by Joe Renes 2015-02-06 17:04:58 +00:00
Roma Hicks
687d6350d4 Added class mechanism to checkbox widget. #1463 2015-02-06 01:02:01 -06:00
Roma
a11264ebb0 Merge pull request #1 from Jermolene/master
Update my fork.
2015-02-05 18:30:54 -06:00
Bram Chen
bac5bc02e2 The cumulative updates for zh-Hans and zh-Hant 2015-02-04 12:11:09 +08:00
Tobias Beer
7ed5c3ccfc use extractTiddlerDataItem not parseTextReference 2015-02-04 01:49:31 +01:00
Tobias Beer
726ccdee49 updated documentation
thanks, @aelocson
2015-02-04 01:41:50 +01:00
Bram Chen
a3d51ef7c3 Merge remote-tracking branch 'upstream/master' 2015-02-04 08:15:42 +08:00
Astrid Elocson
c2d473fa29 Define operators via fields and a view template 2015-02-03 19:29:25 +00:00
Florent V.
42e72a7adc Update cla-individual.md 2015-02-03 17:50:39 +01:00
Jeremy Ruston
d340277cb2 Merge pull request #1392 from tobibeer/1387-fix-tiddlyspot-backup-url
Add resolvepath macro
2015-02-03 14:22:48 +00:00
Tobias Beer
32fd03d2f5 rename macro 2015-02-03 15:19:03 +01:00
Tobias Beer
e4bd0c8633 added documentation
temporary documentation demo:
http://goto.bplaced.net/tw5/5.1.7.html#ResolvePath
2015-02-03 15:18:38 +01:00
Jeremy Ruston
6a01ec5770 Merge pull request #1447 from tobibeer/move-nodejs-to-editions
French docs: moved tw on node.js to editions
2015-02-03 14:17:01 +00:00
Tobias Beer
a8a0d0d09e renaming in one go didn't work 2015-02-03 14:50:37 +01:00
Tobias Beer
8746e1ede0 renamed and documentation
* renamed to all lowercase
* added documentation
* added examples
2015-02-03 14:50:16 +01:00
Jeremy Ruston
5987bad821 Merge pull request #1446 from dullroar/master
Make sure all "get" access to $tw.config.fileExtensionInfo goes through...
2015-02-03 13:26:08 +00:00
Jeremy Ruston
195cc99679 Merge pull request #1436 from aelocson/filter-terminology
Revise filter terminology: constructors and modifiers
2015-02-03 13:12:57 +00:00
James Welford Anderson
4049affb31 initial pass at static export macros 2015-02-03 07:30:24 +09:00
Tobias Beer
0ee06bb144 moved tw on node.js to editions
removed empty toplevel "TiddlyWiki Configurations", also from French

added TiddlyDesktop to Editions
2015-02-01 20:04:10 +01:00
Jim Lehmer
8cd0c2afcd Make sure all "get" access to $tw.config.fileExtensionInfo goes through a $tw.utils.getFileExtensionInfo helper function that ensures the parameter is cast to lowercase. Fixes #1418. 2015-02-01 12:33:40 -06:00
Florent V.
48d9cad7c2 Enhancements to plugin installation and new entry for uninstallation
I have added bold markup to emphase and explain the need to refresh.
2015-02-01 12:41:52 +01:00
Astrid Elocson
3dd4f943ce Rename to SelectionConstructors.tid 2015-01-29 13:41:11 +00:00
Astrid Elocson
9a7bda28e9 Revise filter terminology: constructors and modifiers 2015-01-29 13:40:18 +00:00
Astrid Elocson
a5d54a0ada Rename AbsoluteOperators.tid 2015-01-29 13:23:24 +00:00
Tobias Beer
4a05bd10e9 renamed to resolvePath using $tw.utils.resolvePath
adapted ControlPanel / Saving accordingly
2015-01-29 00:38:08 +01:00
Tobias Beer
e9261a1b50 implements emptyStoryMessage
as well added ControlPanel settings — reordered ControlPanel basics to
have DefaultTiddlers next to EmptyMessage but not shifting important
stuff too far down
2015-01-28 23:55:29 +01:00
Tobias Beer
8b771555a5 initial commit
Is `wiki.parseTextReference()` the appropriate way?
2015-01-28 22:15:52 +01:00
Jermolene
2db6cbed2d Add warning about not using File/Save menu option 2015-01-28 17:35:10 +00:00
Jermolene
3300ed9602 Update action widget docs for 4cd8466adb 2015-01-28 16:31:49 +00:00
Jeremy Ruston
4cd8466adb Merge pull request #1396 from ng110/master
Allow widget actions to propagate to children
2015-01-28 16:28:11 +00:00
ng110
a7a205a754 Update select.js 2015-01-28 16:00:34 +00:00
Bram Chen
8c6d1c75c7 Merge remote-tracking branch 'upstream/master' 2015-01-28 22:43:20 +08:00
Jeremy Ruston
1f610c22f8 Merge pull request #1429 from aelocson/order-tagged
Adjust documentation following pull #1378
2015-01-28 13:54:50 +00:00
Jermolene
050b643948 Sandbox HTML iframes
Otherwise Firefox allows code in html tiddlers to access the main
window:

https://groups.google.com/d/topic/tiddlywiki/NwOI-QER2ig/discussion
2015-01-28 13:50:39 +00:00
Jeremy Ruston
040ed56de5 Merge pull request #1430 from tobibeer/1378-tests-sorting-unlisted-tiddlers
update tagging filter tests
2015-01-28 13:16:24 +00:00
Jeremy Ruston
9a74c31e13 Merge pull request #1383 from tobibeer/fix-topbar-position
place topbars first in page-layout
2015-01-28 12:55:19 +00:00
Jeremy Ruston
1e13eacd25 Merge pull request #1431 from aelocson/each-list-doc
Adjust documentation following pull #1422
2015-01-28 11:42:40 +00:00
Jermolene
99f24eefa4 Move if macro to macros directory 2015-01-28 11:42:12 +00:00
Bram Chen
23a8c0115e Merge remote-tracking branch 'upstream/master' 2015-01-28 19:29:03 +08:00
Jermolene
ba971a2d2b Improved drop message 2015-01-28 09:13:05 +00:00
Tobias Beer
7ec42f93ec updated $:/tags/PageTemplate
reverted topleftbar & toprightbar
2015-01-28 01:13:29 +01:00
Astrid Elocson
d536030c5d Adjust documentation following pull #1422 2015-01-27 20:38:30 +00:00
Tobias Beer
b40da093af added tests to tagging for changes in #1378
using a single test-filters.js is (becoming) a pain... I'd rather have a
single test file per filter / module / function
2015-01-27 18:20:03 +01:00
Astrid Elocson
e6d204db0f Adjust documentation following pull #1378 2015-01-27 15:44:55 +00:00
Jeremy Ruston
08f6e7f624 Merge pull request #1378 from tobibeer/tag-button-sort-tagging
sort unlisted tags by title
2015-01-27 14:30:36 +00:00
Jeremy Ruston
618bc166ed Merge pull request #1382 from felixhayashi/patch-2
Releases.tid now switches to the newest releast per default
2015-01-27 14:12:15 +00:00
Jeremy Ruston
01cd5302f3 Merge pull request #1389 from aelocson/issue-1346
Fix #1346: Quotes around filter steps
2015-01-27 13:55:12 +00:00
Jeremy Ruston
bc87486ee1 Merge pull request #1390 from aelocson/railroad
Improvements to railroad plugin
2015-01-27 13:54:50 +00:00
Jeremy Ruston
3ec87a5c9c Merge pull request #1394 from tobibeer/use-filter-tiddler
changed tabs to use same filters as AdvancedSearch
2015-01-27 13:39:14 +00:00
Jeremy Ruston
5ccbe961f9 Merge pull request #1412 from alexhough/patch-3
change to current version
2015-01-27 13:08:14 +00:00
Jeremy Ruston
05215f1bd3 Merge pull request #1425 from alexhough/patch-4
added my name
2015-01-27 13:07:56 +00:00
Bram Chen
35afbe9edf Merge remote-tracking branch 'upstream/master' 2015-01-27 09:34:54 +08:00
alexhough
225b6ac950 changed to use <<version>> 2015-01-26 22:26:00 +00:00
alexhough
f3e4d156ee added my name 2015-01-26 22:23:32 +00:00
Jermolene
95f2f1a8fa Merge branch 'ng110-patch-1' 2015-01-26 21:51:13 +00:00
Jermolene
59db869deb Fix merge conflict 2015-01-26 21:46:12 +00:00
Jeremy Ruston
6dbe0e310d Merge pull request #1408 from Mathobal/patch-1
WikiText error in documentation
2015-01-26 21:33:34 +00:00
Jeremy Ruston
be7cc50873 Merge pull request #1424 from Mathobal/master
Update cla-individual.md
2015-01-26 21:33:18 +00:00
Ben Williams
6179259958 Update cla-individual.md 2015-01-26 21:26:47 +00:00
Jeremy Ruston
e87aea6e1f Merge pull request #1413 from tobibeer/1410-is-numeric
fix isNumeric in sortTiddlers in wiki.js
2015-01-26 21:00:26 +00:00
Jermolene
bdc5a38a84 Update copyright date 2015-01-26 20:56:15 +00:00
Jeremy Ruston
1afbd4c1f4 Merge pull request #1414 from aelocson/regexp-exception
Catch syntax errors in regexp filters
2015-01-26 20:55:58 +00:00
Tobias Beer
e9bdf6f542 trying to show the conditional nicely aligned 2015-01-26 19:58:00 +01:00
Jeremy Ruston
b81432aee2 Merge pull request #1417 from aelocson/filter-docs
Overhaul the filter operator documentation
2015-01-26 18:43:24 +00:00
Jermolene
b845751d3c Add Punjabi and Hindi translations
Many thanks to Atul Grover
2015-01-26 16:48:11 +00:00
Astrid Elocson
baceb21fbb Document splitbefore and storyviews operators 2015-01-26 14:42:22 +00:00
Astrid Elocson
89163e0e85 Adjust style of filter operator placeholders 2015-01-26 09:26:24 +00:00
Astrid Elocson
88ea60cc7e correction to statement about filter whitespace 2015-01-25 10:53:56 +00:00
Astrid Elocson
15f05b076c Retarget a couple of links and add trailing linefeeds 2015-01-24 21:53:28 +00:00
Astrid Elocson
aac2a63e05 Overhaul the filter operator documentation: part 2 2015-01-24 21:18:44 +00:00
Astrid Elocson
8d9f1e7477 Catch syntax errors in regexp filters 2015-01-23 14:32:57 +00:00
Tobias Beer
8a3991a619 extracted number comparision function
and added missing brackets
2015-01-23 14:57:04 +01:00
Tobias Beer
122e16d39c putting the variables in the right scope 2015-01-23 12:24:47 +01:00
Tobias Beer
ad62d9a083 first attempt at fixing wrong sort order in nsort and nsortcs
not working yet, no idea why
2015-01-23 12:06:32 +01:00
Tobias Beer
e504530005 introduce serverpath macro
for now, computes path to backup directory, appending the relative path
of UploadBackupDir to the absolute one from the UploadURL

Also added example for store.php to hint
2015-01-23 11:26:14 +01:00
alexhough
910d59c166 change to current version 2015-01-23 09:16:16 +00:00
Ben Williams
e423c21912 WikiText error in documentation
A minor issue - the wrong slashes are used in part of this text for emphasis. This confused me until I realised what was going on (I thought the /'s were part of the template syntax).
2015-01-22 15:00:57 +00:00
ng110
211406b0c2 Update cla-individual.md 2015-01-20 16:16:47 +00:00
Tobias Beer
5e175ec7c1 changed tabs to use same filters as AdvancedSearch
...to have one place to configure / override
2015-01-20 16:51:41 +01:00
ng110
16fe9fd5ce Update select.js 2015-01-20 13:02:06 +00:00
ng110
f9c4f6898e Add capability for widgets to trigger all descendant action widgets, rather than just immediate children.
Preserves compatibility with existing invokeActions call in button widget by creating a separate 'invokeActionCall' function to carry out the recursion.  Triggering all descendants permits use of action widgets inside list widgets or macros.  Also makes it possible to add triggering capability to select widget.
2015-01-20 12:34:24 +00:00
Tobias Beer
77c9918338 shows better message for backup dir with custom store.php
relates to #1387
2015-01-20 12:06:09 +01:00
Astrid Elocson
0d406966b3 Improve railroad example tiddler 2015-01-20 09:08:29 +00:00
Astrid Elocson
a848c105a8 Refresh railroad diagrams when config tiddler changes 2015-01-20 08:38:00 +00:00
Astrid Elocson
9e5eaed4a8 Support a global railroad config tiddler 2015-01-19 23:11:25 +00:00
Astrid Elocson
998361de59 Introduce text/vnd.tiddlywiki.railroad 2015-01-19 22:24:15 +00:00
Astrid Elocson
1591b43066 Introduce text/vnd.tiddlywiki.railroad 2015-01-19 22:21:22 +00:00
Astrid Elocson
e5676d058a Introduce text/vnd.tiddlywiki.railroad 2015-01-19 19:59:38 +00:00
Astrid Elocson
ade1c40911 Revise terminology around tiddler sets 2015-01-19 19:37:26 +00:00
Tobias Beer
495d5f258f place topbars first in pagelayout 2015-01-18 22:39:24 +01:00
Felix Küppers
adfb31a572 Update Releases.tid 2015-01-18 22:07:10 +01:00
Astrid Elocson
9bd3fb7238 Rename filter operator .tid files 2015-01-18 19:20:02 +00:00
Tobias Beer
5cc68106ec removed trailing newlines in svg
they create problems when using the icons as links
2015-01-18 20:09:10 +01:00
Astrid Elocson
6842a354ea Improve appearance of railroad arrows 2015-01-18 18:50:51 +00:00
Astrid Elocson
172c7ef7dd Overhaul the filter operator documentation: part 1 2015-01-18 18:39:00 +00:00
Tobias Beer
6006ed0ecf added case-insensitivity using wiki.sortTiddlers 2015-01-17 12:02:54 +01:00
Tobias Beer
a8ab08e8fa sort unlisted tags by title
when the tiddlers are not listed in the list field, sort them by title
nonetheless, otherwise we get a real poor taglist from
**$:/core/ui/TagTemplate**
2015-01-17 11:40:33 +01:00
Astrid Elocson
8fc404bbca Make filter syntax explanations accurate 2015-01-14 21:27:07 +00:00
Astrid Elocson
07c1dcb685 Improve a couple of comments 2015-01-14 20:09:15 +00:00
Astrid Elocson
82c0152e04 Fix #1346: Quotes around filter steps 2015-01-14 20:06:51 +00:00
Astrid Elocson
53953399c3 Correct spaces to tabs 2015-01-13 22:48:18 +00:00
Astrid Elocson
af7bbc0d06 Improve CSS of railroad diagrams 2015-01-13 19:58:30 +00:00
Astrid Elocson
34983dd874 Reduce size of railroad arrows 2015-01-12 23:07:11 +00:00
Astrid Elocson
2d86d8e47d Introduce arrow option on railroad widget 2015-01-12 20:03:37 +00:00
Astrid Elocson
35b99dccee Correct typo in sample tag name 2015-01-12 20:01:24 +00:00
Bram Chen
42bd29fe0b Merge remote-tracking branch 'upstream/master' 2015-01-13 01:10:56 +08:00
Jermolene
f4005871b4 Correct extension for IteratorVariables
@tobibeer the problem was the missing .tid extension.
2015-01-11 22:29:41 +00:00
Jeremy Ruston
486827014f Merge pull request #1361 from aelocson/em-fix
Correct typo in macro name
2015-01-11 21:21:51 +00:00
Astrid Elocson
5a20ac98fa Correct typo in macro name 2015-01-11 21:03:07 +00:00
Jeremy Ruston
17f2e5e7e6 Merge pull request #1332 from tobibeer/list-widget-iterator
documentation for list iterators
2015-01-11 19:59:28 +00:00
Jermolene
531f019669 Release note update 2015-01-11 19:59:04 +00:00
Jeremy Ruston
d624066e73 Merge pull request #1352 from welford/rendertiddlers
add "noclean" parameter to rendertiddlers
2015-01-11 19:58:05 +00:00
Jeremy Ruston
33603e1bd2 Merge pull request #1358 from aelocson/fix-1357
Fix #1357: Railroad plugin under Node.js
2015-01-11 19:57:36 +00:00
Jeremy Ruston
d197af7995 Merge pull request #1359 from aelocson/doc-macros
Introduce documentation macros
2015-01-11 19:57:19 +00:00
Jeremy Ruston
7067ba0326 Merge pull request #1360 from aelocson/filter-docs
Improve filter documentation
2015-01-11 19:56:45 +00:00
Astrid Elocson
28b6302a83 Improve filter documentation 2015-01-11 19:09:35 +00:00
Astrid Elocson
76a3a44d4c Introduce documentation macros 2015-01-11 19:04:14 +00:00
Astrid Elocson
d5278866fd Move style guide tiddlers to their own folder 2015-01-11 19:03:21 +00:00
Astrid Elocson
6a75c4623a Fix #1357: Railroad plugin under Node.js 2015-01-11 18:31:53 +00:00
James Welford Anderson
e87dadd61d update docs change var name 2015-01-12 02:55:42 +09:00
Tobias Beer
557d1e9207 updated tw-code macro to use codeblock widget
As per fix....

https://github.com/Jermolene/TiddlyWiki5/pull/1332#issuecomment-69499836

Tested, working.
2015-01-11 18:15:27 +01:00
Jermolene
9e167dc468 Adjust tests for system tiddler linking (#1103) 2015-01-11 16:44:51 +00:00
Jermolene
f16f66cc5b Release note update 2015-01-11 16:32:32 +00:00
Jeremy Ruston
a58e800f24 Merge pull request #1353 from tobibeer/edit-tags-filter-tags-and-titles
edit-tags filtering tags and titles
2015-01-11 16:31:03 +00:00
Jeremy Ruston
b95f78196a Merge pull request #1354 from welford/staticmeta
Add mobile meta data to static templates
2015-01-11 16:27:23 +00:00
Jermolene
c44a349f1e Release note updates 2015-01-11 16:26:32 +00:00
Jeremy Ruston
948756cdde Merge pull request #1341 from tobibeer/autolink-system-tiddlers
autolinks system tiddlers
2015-01-11 16:25:53 +00:00
Jeremy Ruston
77ff5ce86b Merge pull request #1351 from dpdannemiller/patch-1
Update Creating and editing tiddlers.tid
2015-01-11 16:21:52 +00:00
Jeremy Ruston
6a75732c6c Merge pull request #1356 from dpdannemiller/master
Update cla-individual.md
2015-01-11 16:21:36 +00:00
Jermolene
88cf991ec5 Updated release note 2015-01-11 16:19:50 +00:00
David P Dannemiller
df719e3295 Update cla-individual.md
Signed CLA-individual
2015-01-11 10:00:49 -06:00
Jermolene
f1ca5936e3 Move new editions/editiondescription filter docs
Might as well put them in tw5.com because we can’t build it with 5.1.17
any more anyway.
2015-01-11 15:19:50 +00:00
Bram Chen
e6daa6c4f0 Merge remote-tracking branch 'upstream/master' 2015-01-11 23:10:18 +08:00
Jermolene
b768dc332b Refactor edition-info handling
Introducing new filters that can be used under Node.js
2015-01-11 15:00:54 +00:00
Jermolene
3bbbda0819 Allow callers of the bootprefix to determine browser status
This gives us finer control under node-webkit of whether the core
thinks we’re running under the browser or node.
2015-01-11 14:21:31 +00:00
Jermolene
0fdfbc482c Add nwsaveas and param attributes to browse widget
These are for TiddlyDesktop, and only work under node-webkit
2015-01-11 14:20:34 +00:00
Tobias Beer
80631b35ea updated NestedLists, renamed to GroupedLists added tw-code macro
Didn't implement the codeblock widget as suggested here...

https://github.com/Jermolene/TiddlyWiki5/pull/1332#discussion_r22762157

...because it would only return `undefined`.
2015-01-11 11:55:22 +01:00
Tobias Beer
b43d4a33d6 simplified regexp
Ok, I think I've got it now. The following matches all...

1. starting with a literal `$:`
2. then any number of character not a whitespace, `<` or  `|`
3. closing with anything that is, again, not a whitespace, `<` or  `|`

Test here...

http://tbdemo.tiddlyspot.com/#Autolink%20System%20Tiddlers
2015-01-11 11:04:02 +01:00
Tobias Beer
9c7936413a edit-tags-filter-tags-and-titles
fixes #1333

extracts the tag-link into a component template...

**$:/core/ui/Components/tag-link**

...so as to split the list in two, having two filters that list tiddlers
in the add-tags popup to...

1. firstly, list matching used tags
2. secondly, list mathcing tiddler titles, thus availabe for tagging

Does away with searching content as it is irrelevant if not distracting
for tagging.

Why two lists? Consider wanting to tag a tiddler with "Filters"...
observe how the result would otherwise be way too far down because
existing tiddler titles get in the way.

Component templates are also desireable elsewhere, e.g. #1318
2015-01-11 01:29:53 +01:00
James Welford Anderson
99499c0403 staticmeta 2015-01-11 09:28:18 +09:00
Bram Chen
5822954eb7 Merge remote-tracking branch 'upstream/master' 2015-01-11 07:31:38 +08:00
James Welford Anderson
ddb8daa15a add noclean parameter
deletes directory by default
2015-01-11 06:44:56 +09:00
dpdannemiller
048b50924f Update Creating and editing tiddlers.tid
Typo.
2015-01-10 14:38:37 -06:00
Jermolene
3657bbe920 Switch from addEventListener to onbeforeunload
This makes it possible for TiddlyDesktop to reuse these functions to
handle detecting unsaved changes
2015-01-10 18:08:12 +00:00
Jeremy Ruston
be06cb1019 Merge pull request #1334 from tobibeer/variable-documentation
updates to variable documentation
2015-01-10 15:05:48 +00:00
Bram Chen
4c7916b0e1 Merge remote-tracking branch 'upstream/master' 2015-01-10 22:06:51 +08:00
Jeremy Ruston
9a89fd1753 Merge pull request #1347 from welford/hljsnodejs
highlightjs in nodejs
2015-01-10 13:46:11 +00:00
Jermolene
280909bb68 Fix crash for macros that return undefined
Fixes #1348
2015-01-10 13:36:43 +00:00
Bram Chen
fd649fc33a Merge remote-tracking branch 'upstream/master' 2015-01-10 08:17:14 +08:00
James Welford Anderson
f6c8a334e5 tabs/spaces fix 2015-01-10 08:07:32 +09:00
James Welford Anderson
903f7db0b2 update highlight plugin to latest ver.
split the latter half of highlight.pack.js into a separate file which
registers all the languages and exports hljs. this is for nodejs
compatibility and mimics the way the highlightjs module works in nodejs.
2015-01-10 08:02:54 +09:00
Tobias Beer
795a929187 create syslink.js, revert extlink.js
introduces new parser for system links
2015-01-09 23:51:07 +01:00
Jermolene
31824f043e Remove obsolete parameters 2015-01-09 20:45:16 +00:00
Jeremy Ruston
575c11ee95 Merge pull request #1340 from felixhayashi/patch-2
Added missing piece to getFullScreenApis
2015-01-09 20:44:52 +00:00
Tobias Beer
8ba3e8973e autolinks system tiddlers
enhanced extlink parser to cover system tiddler links

of course, only those without spaces in their title

didn't want to open up an extra parser for this as extlink has all the
basics
2015-01-08 21:26:48 +01:00
Felix Küppers
3b2882cb48 Update browser.js 2015-01-08 20:18:41 +01:00
Tobias Beer
391768ae3f updates to variable documentation 2015-01-07 16:18:36 +01:00
Jermolene
978cc2e173 Restore GettingStarted content for Spanish translation 2015-01-07 09:34:52 +00:00
Jermolene
b0314a7e9d Updated Spanish translation from Alfonso Arciniega 2015-01-07 09:34:28 +00:00
Bram Chen
df3d346792 Merge remote-tracking branch 'upstream/master' 2015-01-07 14:07:04 +08:00
Tobias Beer
2ff7e0c6c6 removed superfluous newline 2015-01-06 21:22:47 +01:00
Tobias Beer
3d61dd1aa9 documentation for #1330
heavily modified ListWidget
extracted NestedLists

added IteratorVariables
2015-01-06 21:18:28 +01:00
Jermolene
b68276e219 Fix for serverside rendering 2015-01-06 18:19:55 +00:00
Bram Chen
d03f4585f6 Merge remote-tracking branch 'upstream/master' 2015-01-07 00:04:51 +08:00
Jeremy Ruston
f920e9e243 Merge pull request #1319 from felixhayashi/patch-1
Update and rename Taskgraph by Felix Kuppers.tid
2015-01-06 14:31:29 +00:00
Jeremy Ruston
dbf945dbcb Merge pull request #1322 from xcazin/fred
fr-FR translation of the TableOfContentsMacro documentation
2015-01-06 14:18:30 +00:00
Jeremy Ruston
39dfcc43d3 Merge pull request #1321 from xcazin/toc
Use the toc-caption() utility macro in Tabbed ToCs as well
2015-01-06 14:18:19 +00:00
Jeremy Ruston
8c2eba03a3 Merge pull request #1323 from aelocson/filter-tiddlers
Further improvements around filter documentation
2015-01-06 14:13:32 +00:00
Jeremy Ruston
ea07b558a3 Merge pull request #1327 from aelocson/railroad-links
Links and transclusions in railroad diagrams
2015-01-06 13:58:27 +00:00
Jermolene
ec829180f4 Coding style clean up for #1330 2015-01-06 13:49:05 +00:00
Jeremy Ruston
b6aa5bf78a Merge pull request #1330 from tobibeer/list-widget-iterator
implements list iterator variables
2015-01-06 13:46:49 +00:00
Tobias Beer
0dd3ad5e38 updated false states — looks more conclusive 2015-01-06 14:40:48 +01:00
Tobias Beer
a1ca53fa9b implements list iterator variables, see #1328
provides <<iterator>>, <<iterator-even>> and <<iterator-last>>
2015-01-06 14:31:20 +01:00
Astrid Elocson
2f42c9fb8d Links and transclusions in railroad diagrams 2015-01-06 01:39:24 +00:00
Astrid Elocson
ed85fdddea Update Introduction to Filters.tid 2015-01-05 20:59:08 +00:00
Astrid Elocson
39d888b688 Update Introduction to Filters.tid 2015-01-05 20:58:36 +00:00
Astrid Elocson
90e43d5f5a Further improvements around filter documentation 2015-01-05 14:06:10 +00:00
Xavier Cazin
a7d2fd4175 fr-FR translation of TableOfContentsMacro documentation 2015-01-05 11:38:32 +01:00
Xavier Cazin
203cb17271 Use the toc-caption() utility macro in Tabbed ToCs as well 2015-01-05 10:59:28 +01:00
Bram Chen
d19e2fa217 Merge remote-tracking branch 'upstream/master' 2015-01-05 08:44:19 +08:00
Felix Küppers
ea4b282ed8 Update and rename Taskgraph by Felix Kuppers.tid to TiddlyMap by Felix Kuppers.tid 2015-01-04 21:43:00 +01:00
Jeremy Ruston
71357a8e39 Merge pull request #1316 from aelocson/filter-syntax
Use railroad diagrams to explain filter syntax
2015-01-04 16:00:17 +00:00
Jeremy Ruston
548c99a984 Merge pull request #1314 from aelocson/railroad
Introduce railroad plugin
2015-01-04 16:00:03 +00:00
Jeremy Ruston
5e5330b315 Merge pull request #1312 from dullroar/master
Handle case-insensitive file systems.
2015-01-04 15:58:37 +00:00
Jeremy Ruston
a8b9d2455c Merge pull request #1317 from twMat/patch-1
Update TiddlyWiki Hangouts.tid
2015-01-04 15:57:38 +00:00
Jermolene
ea6e60e669 Focus search box on startup 2015-01-04 15:53:48 +00:00
Jermolene
95897103ef Update edit-text widget docs 2015-01-04 14:10:13 +00:00
ng110
7d6769f6fd Update select.js
test change
2015-01-04 12:22:00 +00:00
twMat
e319e65574 Update TiddlyWiki Hangouts.tid
Delinkify word "YouTube" to not mistake it for a link.
2015-01-04 11:44:11 +01:00
Astrid Elocson
388464190d Use railroad diagrams to explain filter syntax 2015-01-03 20:16:46 +00:00
Astrid Elocson
4f3cb8b9ae Introduce railroad plugin 2015-01-03 20:02:27 +00:00
Jim Lehmer
c296f14210 Handle case-insensitive file systems. 2015-01-03 09:33:22 -06:00
Bram Chen
5adcf928e6 Merge remote-tracking branch 'upstream/master' 2015-01-03 07:52:45 +08:00
Jermolene
3f5e46011f Remove inaccurate docs 2015-01-02 17:42:04 +00:00
Jeremy Ruston
7acbad43fe Merge pull request #1305 from dullroar/master
Fix bug where a .tid extension was being added twice if tiddler name lon...
2015-01-02 17:31:35 +00:00
Jim Lehmer
809a59920a Fix bug where a .tid extension was being added twice if tiddler name longer than 200 characters. 2015-01-02 11:25:54 -06:00
Jermolene
785e1c7789 Tweaks to tiddler widget docs 2015-01-02 17:11:37 +00:00
Jeremy Ruston
dcbe2d657e Merge pull request #1300 from tobibeer/patch-3
fixes example and improves readability
2015-01-02 17:08:28 +00:00
James Welford Anderson
cc85368fd4 highlightjs in nodejs 2015-01-03 02:00:08 +09:00
Jermolene
652ca2a807 Add Jim Lehmer's site to resources 2015-01-02 16:00:00 +00:00
Bram Chen
24e9b7cbfa Merge remote-tracking branch 'upstream/master' 2015-01-02 19:15:19 +08:00
Jermolene
42efd4116d Update Japanese translation 2015-01-02 09:54:39 +00:00
Jermolene
75fd33070e Fix translated core readme title 2015-01-02 09:54:19 +00:00
Bram Chen
31781d7dda Merge remote-tracking branch 'upstream/master' 2015-01-01 16:58:35 +08:00
Tobias Beer
31c9998c62 fixes example and improves readability 2014-12-31 12:38:15 +01:00
Jermolene
544ee4668e Typo correction 2014-12-31 09:34:32 +00:00
Jermolene
bb51e399ff Resolve merge conflict 2014-12-30 18:45:21 +00:00
Jermolene
a2ac4ddd6c Merge branch 'signCLA' of https://github.com/Arlen22/TiddlyWiki5 into Arlen22-signCLA
Conflicts:
	licenses/cla-individual.md
2014-12-30 18:43:47 +00:00
Jeremy Ruston
ef6a6fea87 Merge pull request #1294 from aelocson/patch-4
Improvements to filter grammar presentation
2014-12-30 18:42:51 +00:00
Jeremy Ruston
8707d51b7d Merge pull request #1293 from aelocson/patch-3
Improvements to wording
2014-12-30 18:42:03 +00:00
Jeremy Ruston
43250e028a Merge pull request #1292 from Infurnoape/patch-1
Update cla-individual.md
2014-12-30 18:38:38 +00:00
Jermolene
a8854662e4 Keep documentation style guide in the TOC 2014-12-30 18:38:22 +00:00
Jermolene
b8f090e0c6 Clean up from merging @roma0104's changes 2014-12-30 18:37:12 +00:00
Jeremy Ruston
6672af7c62 Merge pull request #1289 from aelocson/patch-2
Expand the Document Style Guide
2014-12-30 18:37:05 +00:00
Jeremy Ruston
051bafaf41 Merge pull request #1287 from BramChen/master
Update chinese translations for tiddler toolbar button wording
2014-12-30 18:35:21 +00:00
Jeremy Ruston
399a80643a Merge pull request #1283 from aelocson/patch-1
Improvements to wording
2014-12-30 18:34:55 +00:00
Jermolene
afda1c5344 Merge branch 'roma0104-master' 2014-12-30 18:24:43 +00:00
Jermolene
6d87b505b1 Merge branch 'master' of https://github.com/roma0104/TiddlyWiki5 into roma0104-master
Conflicts:
	editions/tw5.com/tiddlers/community/resources/Briefcase mGSD.tid
	licenses/cla-individual.md
2014-12-30 18:22:07 +00:00
Arlen22
b83d311951 Sign the CLA 2014-12-30 09:28:27 -05:00
Jermolene
21df296c2f Docs: Clarify widgets generated by wikitext transclusion 2014-12-30 09:09:40 +00:00
Bram Chen
43c40d93d8 Merge remote-tracking branch 'upstream/master' 2014-12-29 17:40:58 +08:00
Astrid Elocson
e6ede67282 Further improvements suggested by felixhayashi 2014-12-28 16:16:24 +00:00
Jermolene
cb8caf6a01 Fix accidental commit of Czech translation as Polish
I inadvertently committed the new Czech translation as Polish.
2014-12-28 15:51:19 +00:00
Astrid Elocson
597a5fb2f2 Update and make easier to understand 2014-12-28 10:07:30 +00:00
Astrid Elocson
79a3beeaa6 Add concept of Tag Tiddlers 2014-12-28 09:55:36 +00:00
Astrid Elocson
4f1d6f71fc Add concept of JSON Tiddlers 2014-12-28 09:54:44 +00:00
Astrid Elocson
9aafed511b Add concept of Dictionary Tiddlers 2014-12-28 09:53:58 +00:00
Astrid Elocson
117d10275f Improvements to wording 2014-12-28 09:51:53 +00:00
Astrid Elocson
e9c6610d74 Improvements to wording 2014-12-28 09:51:13 +00:00
Astrid Elocson
7290be9e47 Improvements to wording 2014-12-28 09:50:19 +00:00
Andrew J Harrison
bbcca4c784 Update cla-individual.md
Please correct my previous pull request. I guess my twitter name was already taken.
2014-12-27 12:49:32 -07:00
Jermolene
bae00fcbf6 Add Polish translation 2014-12-27 12:37:06 +00:00
Jermolene
5d947ed582 Add Spanish translation 2014-12-27 12:24:17 +00:00
Jermolene
fa9fc38be8 Fix "Hide Furniture" theme
To account for integrating “sticky titles” theme with “Vanilla”
2014-12-27 12:00:52 +00:00
Astrid Elocson
42050e1b03 Remove duplicate field line 2014-12-26 19:33:37 +00:00
Astrid Elocson
c5650708a7 Create Technical Prose Style.tid 2014-12-26 19:32:01 +00:00
Astrid Elocson
bcee212195 Create Typography.tid 2014-12-26 19:31:18 +00:00
Astrid Elocson
439154c0ea Create Spelling.tid 2014-12-26 19:30:11 +00:00
Astrid Elocson
e415edb440 Create Tiddler Structure.tid 2014-12-26 19:29:41 +00:00
Astrid Elocson
1366ef3e1c Create Tiddler Titles.tid 2014-12-26 19:29:03 +00:00
Astrid Elocson
dfd4c480d2 Create Reference Tiddlers.tid 2014-12-26 19:28:24 +00:00
Astrid Elocson
f952b8f1df Create Instruction Tiddlers.tid 2014-12-26 19:27:38 +00:00
Astrid Elocson
421d75a207 Initial expansion of the Documentation Style Guide 2014-12-26 19:24:47 +00:00
Bram Chen
4f34f24111 Update chinese translations for tiddler toolbar button wording 2014-12-25 11:27:02 +08:00
Jeremy Ruston
7abe9aa53d Merge pull request #1249 from felixhayashi/patch-1
make checkVersions consider build version
2014-12-24 12:43:30 +00:00
Jermolene
9f087e7667 Ensure creation fields set for data tiddlers 2014-12-24 10:29:00 +00:00
Jermolene
7481b6c49c Adjust tiddler toolbar button wording
As discussed in #1247
2014-12-24 10:28:47 +00:00
Astrid Elocson
1905093411 Change TiddlerChain to TitleList 2014-12-23 21:57:18 +00:00
Astrid Elocson
5f3de6ec17 Change TiddlerChain to TitleList 2014-12-23 21:56:00 +00:00
Astrid Elocson
cc2688bf44 Update and rename TiddlerChain.tid to TitleList.tid 2014-12-23 21:55:04 +00:00
Astrid Elocson
25e447f69e Rephrase route through tabs
Provisionally, rather than using any sort of arrow symbol. We need to standardise a notation for referring to hierarchical UI, but that will come with the documentation style guide.
2014-12-23 21:46:20 +00:00
Felix Küppers
70cbb5efc5 Update boot.js
if major, minor and patch are equal, the incoming wins.
2014-12-23 19:21:54 +01:00
Astrid Elocson
7ca37739aa Simplify style of arrow in tab hierarchy
This is something that
2014-12-23 17:32:45 +00:00
Felix Küppers
d33b525067 Update boot.js 2014-12-23 18:13:59 +01:00
Astrid Elocson
304848f258 Add a TiddlerChain tiddler
For the common but unnamed concept of a "string [[of tiddler]] titles" like that.
2014-12-23 15:06:18 +00:00
Astrid Elocson
39c786b042 Link to the TiddlerChain tiddler 2014-12-23 15:05:17 +00:00
Astrid Elocson
8e47a20069 Improvements to wording 2014-12-23 14:59:16 +00:00
Felix Küppers
1d344dba69 prerelease matters
incoming 3.7.2 loses against existing 3.7.2
incoming 3.7.2-prerelease loses against existing 3.7.2
incoming 3.7.2-prerelease wins against existing 3.7.2-prerelease
2014-12-23 13:53:58 +01:00
Jeremy Ruston
e4d9a67756 Merge pull request #1281 from aelocson/patch-1
Correct references to the "download" button
2014-12-23 11:30:40 +00:00
Astrid Elocson
e450777b94 Correct reference to the download button 2014-12-23 10:44:18 +00:00
Astrid Elocson
626163df69 Correct reference to the download button 2014-12-23 10:43:54 +00:00
Astrid Elocson
ff11f4c43e Correct reference to the download button 2014-12-23 10:41:50 +00:00
Jermolene
b9129d77e9 Experiment with "store" as the caption for the tiddler save button
This is an experiment, so translators may want to wait for any
discussion before performing a similar change.
2014-12-23 08:53:54 +00:00
Jeremy Ruston
e1138d94c9 Merge pull request #1279 from aelocson/patch-2
Give InfoPanel its own tiddler
2014-12-23 08:43:55 +00:00
Jeremy Ruston
a83bd4ec61 Merge pull request #1278 from aelocson/patch-1
Clarify AutoSave in docs for "save tiddler"
2014-12-23 08:42:55 +00:00
Jeremy Ruston
5a2d262c80 Merge pull request #1280 from evgeniy-gryaznov/master
Adding transliteration of russian file names.
2014-12-23 08:22:56 +00:00
Jermolene
e41285ae56 Make platform check work on node-webkit 2014-12-23 08:20:22 +00:00
Astrid Elocson
1b61ad13d2 Clearer wording 2014-12-23 07:33:38 +00:00
Evgeniy Gryaznov
25bcc13fa8 Transliterating russian filenames 2014-12-23 11:48:43 +06:00
Evgeniy Gryaznov
b4e4ca714b Contributor added 2014-12-23 11:41:02 +06:00
Astrid Elocson
efda54465e Create InfoPanel tiddler 2014-12-23 00:31:54 +00:00
Astrid Elocson
cbc20a40de Give InfoPanel its own tiddler 2014-12-23 00:12:08 +00:00
Astrid Elocson
333100aa33 Clarify AutoSave in docs for "save tiddler" 2014-12-22 23:16:27 +00:00
Jeremy Ruston
e56e2a2450 Merge pull request #1277 from aelocson/patch-5
Improvements to wording
2014-12-22 21:03:41 +00:00
Jeremy Ruston
3cd18d7410 Merge pull request #1275 from aelocson/patch-4
Improvements to wording
2014-12-22 21:00:52 +00:00
Jeremy Ruston
edaa86aa0e Merge pull request #1274 from aelocson/patch-3
Improvements to wording
2014-12-22 21:00:13 +00:00
Jeremy Ruston
0efb8e9a09 Merge pull request #1273 from aelocson/patch-2
Present the best approach to navigating first
2014-12-22 19:13:31 +00:00
Jeremy Ruston
2c8e2df599 Merge pull request #1262 from Jc-L/patch-1
Update ExternalImages.tid
2014-12-22 18:36:20 +00:00
Jeremy Ruston
e569a71f03 Merge pull request #1272 from Jc-L/patch-2
Update cla-individual.md
2014-12-22 18:33:15 +00:00
Jeremy Ruston
16ffef01ff Merge pull request #1271 from aelocson/patch-1
Fix links to tw.com from tw.com/dev
2014-12-22 18:32:16 +00:00
Astrid Elocson
db37f6030f link to InfoPanel 2014-12-22 17:58:05 +00:00
Astrid Elocson
7f0fb08203 remove brackets, add link to InfoPanel 2014-12-22 17:43:15 +00:00
Astrid Elocson
f715286035 correct missing space 2014-12-22 17:37:17 +00:00
Astrid Elocson
c6fbaadfeb Improvements to wording 2014-12-22 17:26:27 +00:00
Astrid Elocson
6fe1024fe8 Improvements to wording 2014-12-22 17:09:48 +00:00
Astrid Elocson
2871c5fcb2 Improvements to wording 2014-12-22 17:07:42 +00:00
Astrid Elocson
0f0ecd3d9e Improvements to wording 2014-12-22 17:05:08 +00:00
Astrid Elocson
09cd827a51 Improvements to wording 2014-12-22 16:03:52 +00:00
Astrid Elocson
3c5dc7061a Improvements to wording 2014-12-22 15:31:21 +00:00
Astrid Elocson
fb86f3ec5a Present the best approach to navigating first
The best technique should be the first one listed. Not everyone will read to the end.
2014-12-22 15:07:49 +00:00
Jc-L
1ceb15db77 Update cla-individual.md 2014-12-22 15:33:21 +01:00
Astrid Elocson
a9829d50e0 Fix links to tw.com from tw.com/dev 2014-12-22 13:47:27 +00:00
Astrid Elocson
059c32aa24 Fix links to tw.com from tw.com/dev 2014-12-22 13:45:57 +00:00
Astrid Elocson
7fc102eea7 Fix links to tw.com from tw.com/dev 2014-12-22 13:45:04 +00:00
Astrid Elocson
4d2e4fc0bb Fix links to tw.com from tw.com/dev 2014-12-22 13:43:46 +00:00
Astrid Elocson
93c9d8f0bf Correct two links 2014-12-22 13:42:25 +00:00
Astrid Elocson
689a334d36 Fix links to tw.com from tw.com/dev 2014-12-22 13:41:40 +00:00
Astrid Elocson
e3a711e2de Fix links to tw.com from tw.com/dev 2014-12-22 13:41:00 +00:00
Astrid Elocson
07e9d91aed Fix links to tw.com from tw.com/dev 2014-12-22 13:40:19 +00:00
Astrid Elocson
49b1f77e5c Fix links to tw.com from tw.com/dev 2014-12-22 13:39:36 +00:00
Astrid Elocson
0f334d2321 Fix links to tw.com from tw.com/dev 2014-12-22 13:38:25 +00:00
Astrid Elocson
a465f19ca0 Fix links to tw.com from tw.com/dev 2014-12-22 13:32:46 +00:00
Jeremy Ruston
3c6481e3d7 Merge pull request #1270 from aelocson/patch-1
Fix typos
2014-12-22 10:57:56 +00:00
Astrid Elocson
3ca2a113e3 add missing word 2014-12-22 10:18:00 +00:00
Astrid Elocson
9c0611582f fix typo 2014-12-22 10:17:08 +00:00
Astrid Elocson
c66d9339ab spelling mistake 2014-12-22 10:16:13 +00:00
Astrid Elocson
8d8a7c9e03 -ize > -ise (conform to Doc Style Guide) 2014-12-22 10:14:47 +00:00
Astrid Elocson
94a8e3802e -ize > -ise (conform to Doc Style Guide) 2014-12-22 10:13:21 +00:00
Jeremy Ruston
412557f9a8 Merge pull request #1253 from xcazin/fr-FR
fr-FR translation of GettingStarted
2014-12-22 09:43:51 +00:00
Jeremy Ruston
0513812863 Merge pull request #1261 from aelocson/patch-2
Standardise punctuation in workingwithtw/
2014-12-22 09:20:50 +00:00
Jeremy Ruston
3b9677c052 Merge pull request #1263 from aelocson/patch-1
Fix punctuation
2014-12-22 09:18:55 +00:00
Jeremy Ruston
676a7b6805 Merge pull request #1264 from aelocson/patch-3
Normalise names of tabs, etc to bold
2014-12-22 09:18:41 +00:00
Jeremy Ruston
4242c471a4 Merge pull request #1265 from aelocson/patch-4
Finish sentence with missing examples
2014-12-22 09:17:36 +00:00
Jeremy Ruston
c142350f86 Merge pull request #1250 from Drakor/signCLA
CLA signature
2014-12-22 08:46:39 +00:00
Jermolene
1adfe20508 Fix problem with repeatedly cancelling a draft
Fixes #1266
2014-12-22 08:40:11 +00:00
Andreas Hahn
1a8376eeaf signed CLA 2014-12-21 23:15:15 +01:00
Felix Küppers
9fad60beb3 another suggestion
in case of equal versions, use the incoming and replace the existing.
2014-12-21 20:55:44 +01:00
Astrid Elocson
5706d8afe1 Finish sentence with missing examples 2014-12-21 18:55:43 +00:00
Astrid Elocson
5f9f0764bd Normalise names of tabs, etc to bold 2014-12-21 18:52:57 +00:00
Astrid Elocson
176a372314 Fix punctuation 2014-12-21 18:49:24 +00:00
Jc-L
313f731f77 Update ExternalImages.tid
Minor typo correction
2014-12-21 19:32:42 +01:00
Jermolene
8cb7090c40 Experimentally add icons to AdvancedSearch, ControlPanel and TagManager 2014-12-21 17:22:47 +00:00
Astrid Elocson
8e9c698721 Typos in workingwithtw/ 2014-12-21 16:51:03 +00:00
Astrid Elocson
4e1539e1f3 Typos in workingwithtw/ 2014-12-21 16:45:15 +00:00
Astrid Elocson
941bab2893 Typos in workingwithtw/ 2014-12-21 16:44:16 +00:00
Astrid Elocson
44beefb317 Typos in workingwithtw/ 2014-12-21 16:42:06 +00:00
Astrid Elocson
21719fcfbe Typos in workingwithtw/ 2014-12-21 16:38:36 +00:00
Astrid Elocson
d16dfdb12f Typos in workingwithtw/ 2014-12-21 16:35:43 +00:00
Astrid Elocson
aed34ebaba Typos in workingwithtw/ 2014-12-21 16:33:36 +00:00
Astrid Elocson
85b6147a2a Typos in workingwithtw/
This includes placing commas and full stops outside the quotes, and replacing single quotes with the double quotes that seem to be the standard on tw.com.
2014-12-21 16:24:42 +00:00
Jermolene
d7cd94dbd6 Fix state tiddler used for examples
Putting it in the `$:/state/` namespace ensures that it doesn’t dirty
the wiki

Fixes #1247
2014-12-21 16:21:19 +00:00
Jeremy Ruston
a473c85a48 Merge pull request #1260 from aelocson/patch-1
Update cla-individual.md
2014-12-21 16:17:20 +00:00
Jermolene
230066eeae Incorporate stickytitles theme into snow white theme 2014-12-21 16:04:42 +00:00
Astrid Elocson
56838637ac Update cla-individual.md 2014-12-21 15:48:56 +00:00
Jeremy Ruston
90ebffed3b Merge pull request #1259 from xcazin/fred
Updates to the fr-FR edition after recent changes to HelloThere
2014-12-21 15:20:47 +00:00
Xavier Cazin
4482373122 Update to the fr-FR translation of HelloThere plus two tiddlers tagged with it 2014-12-21 14:55:13 +01:00
Xavier Cazin
cb42ccf409 Overrides the list-links macro with its fr-FR counterpart
(instead of the core shadow tiddler itself)
2014-12-21 13:49:37 +01:00
Jermolene
bef7e0e93c More pesky folder name problems 2014-12-21 12:12:23 +00:00
Jeremy Ruston
f64ed6e48c Merge pull request #1255 from gernert/patch-5
Update Customise TiddlyWiki.tid
2014-12-21 12:01:01 +00:00
Jeremy Ruston
63ad0793cf Merge pull request #1256 from gernert/patch-7
Update TiddlyWiki Configurations.tid
2014-12-21 12:00:47 +00:00
Jermolene
8f50706e95 Generate link list in HelloThere
Fixes #1257
2014-12-21 12:00:14 +00:00
Jermolene
cd3f741bb6 Correct folder name to lower case 2014-12-21 11:54:46 +00:00
Jeremy Ruston
ee17bf765c Merge pull request #1258 from xcazin/fred
Updates and new additions to the fr-FR edition
2014-12-21 11:52:15 +00:00
Xavier Cazin
c87235cd40 Start a glossary for fr-FR translators per Alberto Molina's suggestion 2014-12-21 12:39:39 +01:00
gernert
bd59cd760d Update TiddlyWiki Configurations.tid
Not all tiddlers in TabbedTOC contain the complete information.
See discussion in the group https://groups.google.com/d/msg/tiddlywiki/GiOcL5vVJj4/qzVueMtzvqsJ
2014-12-21 12:34:53 +01:00
gernert
1915bd3a2f Update Customise TiddlyWiki.tid
Not all tiddlers in TabbedTOC contain the complete information.
See discussion in the group https://groups.google.com/d/msg/tiddlywiki/GiOcL5vVJj4/qzVueMtzvqsJ
2014-12-21 12:33:21 +01:00
Xavier Cazin
1c0f0591fe Updates and fresh translations from tw5.com for the fr-FR edition 2014-12-21 12:32:37 +01:00
Xavier Cazin
031ada4c69 fr-FR translation of GettingStarted 2014-12-20 18:45:41 +01:00
Jermolene
07d0679476 Preparation for 5.1.8 2014-12-20 08:10:45 +00:00
Felix Küppers
5f50f9b29d removed newline 2014-12-19 19:35:55 +01:00
Felix Küppers
e00534635e Update boot.js 2014-12-19 19:24:13 +01:00
roma0104
438db4d868 Signed the CLA. 2014-11-18 18:11:59 -06:00
roma0104
5cee932833 Update GSD5/Briefcase site address and naming. 2014-11-18 18:02:51 -06:00
1215 changed files with 17035 additions and 3553 deletions

View File

@@ -362,21 +362,20 @@ Returns true if the version string A is greater than the version string B. Retur
*/
$tw.utils.checkVersions = function(versionStringA,versionStringB) {
var defaultVersion = {
major: 0,
minor: 0,
patch: 0
},
versionA = $tw.utils.parseVersion(versionStringA) || defaultVersion,
versionB = $tw.utils.parseVersion(versionStringB) || defaultVersion,
diff = [
versionA.major - versionB.major,
versionA.minor - versionB.minor,
versionA.patch - versionB.patch
];
major: 0,
minor: 0,
patch: 0
},
versionA = $tw.utils.parseVersion(versionStringA) || defaultVersion,
versionB = $tw.utils.parseVersion(versionStringB) || defaultVersion,
diff = [
versionA.major - versionB.major,
versionA.minor - versionB.minor,
versionA.patch - versionB.patch
];
return (diff[0] > 0) ||
(diff[0] === 0 && diff[1] > 0) ||
(diff[0] === 0 && diff[1] === 0 && diff[2] > 0) ||
(diff[0] === 0 && diff[1] === 0 && diff[2] === 0);
(diff[0] === 0 && diff[1] === 0 && diff[2] >= 0);
};
/*
@@ -398,12 +397,20 @@ $tw.utils.registerFileType = function(type,encoding,extension,options) {
$tw.config.contentTypeInfo[type] = {encoding: encoding, extension: extension, flags: options.flags || [], deserializerType: options.deserializerType || type};
};
/*
Given an extension, always access the $tw.config.fileExtensionInfo
using a lowercase extension only.
*/
$tw.utils.getFileExtensionInfo = function(ext) {
return ext ? $tw.config.fileExtensionInfo[ext.toLowerCase()] : null;
}
/*
Given an extension, get the correct encoding for that file.
defaults to utf8
*/
$tw.utils.getTypeEncoding = function(ext) {
var extensionInfo = $tw.config.fileExtensionInfo[ext],
var extensionInfo = $tw.utils.getFileExtensionInfo(ext),
type = extensionInfo ? extensionInfo.type : null,
typeInfo = type ? $tw.config.contentTypeInfo[type] : null;
return typeInfo ? typeInfo.encoding : "utf8";
@@ -483,20 +490,28 @@ $tw.utils.PasswordPrompt.prototype.createPrompt = function(options) {
children = [dm("h1",{text: options.serviceName})];
if(!options.noUserName) {
children.push(dm("input",{
attributes: {type: "text", name: "username", placeholder: "Username"}
attributes: {type: "text", name: "username", placeholder: $tw.language.getString("Encryption/Username")}
}));
}
children.push(dm("input",{
attributes: {type: "password", name: "password", placeholder: "Password"}
attributes: {
type: "password",
name: "password",
placeholder: ( $tw.language == undefined ? "Password" : $tw.language.getString("Encryption/Password") )
}
}));
if(options.repeatPassword) {
children.push(dm("input",{
attributes: {type: "password", name: "password2", placeholder: "Repeat password"}
attributes: {
type: "password",
name: "password2",
placeholder: $tw.language.getString("Encryption/RepeatPassword")
}
}));
}
if(options.canCancel) {
children.push(dm("button",{
text: "Cancel",
text: $tw.language.getString("Encryption/Cancel"),
eventListeners: [{
name: "click",
handlerFunction: function(event) {
@@ -530,7 +545,7 @@ $tw.utils.PasswordPrompt.prototype.createPrompt = function(options) {
});
// Check that the passwords match
if(options.repeatPassword && data.password !== data.password2) {
alert("Passwords do not match");
alert($tw.language.getString("Encryption/PasswordNoMatch"));
} else {
// Call the callback
if(options.callback(data)) {
@@ -544,7 +559,7 @@ $tw.utils.PasswordPrompt.prototype.createPrompt = function(options) {
}
});
}
}
}
event.preventDefault();
return false;
},true);
@@ -786,7 +801,7 @@ $tw.Tiddler = function(/* [fields,] fields */) {
value = src[t];
}
// Freeze the field to keep it immutable
if(typeof value === "object") {
if(value != null && typeof value === "object") {
Object.freeze(value);
}
this.fields[t] = value;
@@ -854,6 +869,8 @@ $tw.Wiki = function(options) {
if(tiddler) {
var title = tiddler.fields.title;
if(title) {
// Uncomment the following line for detailed logs of all tiddler writes
// console.log("Adding",title,tiddler)
tiddlers[title] = tiddler;
this.clearCache(title);
this.clearGlobalCache();
@@ -1138,9 +1155,9 @@ $tw.Wiki.prototype.deserializeTiddlers = function(type,text,srcFields) {
srcFields = srcFields || Object.create(null);
var deserializer = $tw.Wiki.tiddlerDeserializerModules[type],
fields = Object.create(null);
if(!deserializer && $tw.config.fileExtensionInfo[type]) {
if(!deserializer && $tw.utils.getFileExtensionInfo(type)) {
// If we didn't find the serializer, try converting it from an extension to a content type
type = $tw.config.fileExtensionInfo[type].type;
type = $tw.utils.getFileExtensionInfo(type).type;
deserializer = $tw.Wiki.tiddlerDeserializerModules[type];
}
if(!deserializer && $tw.config.contentTypeInfo[type]) {
@@ -1387,7 +1404,7 @@ Load the tiddlers contained in a particular file (and optionally extract fields
*/
$tw.loadTiddlersFromFile = function(filepath,fields) {
var ext = path.extname(filepath),
extensionInfo = $tw.config.fileExtensionInfo[ext],
extensionInfo = $tw.utils.getFileExtensionInfo(ext),
type = extensionInfo ? extensionInfo.type : null,
typeInfo = type ? $tw.config.contentTypeInfo[type] : null,
data = fs.readFileSync(filepath,typeInfo ? typeInfo.encoding : "utf8"),
@@ -1537,7 +1554,11 @@ $tw.getLibraryItemSearchPaths = function(libraryPath,envVar) {
var pluginPaths = [path.resolve($tw.boot.corePath,libraryPath)],
env = process.env[envVar];
if(env) {
Array.prototype.push.apply(pluginPaths,env.split(path.delimiter));
env.split(path.delimiter).map(function(item) {
if(item) {
pluginPaths.push(item)
}
});
}
return pluginPaths;
};
@@ -1741,7 +1762,7 @@ $tw.boot.startup = function(options) {
// Read package info
$tw.packageInfo = require("../package.json");
// Check node version number
if($tw.utils.checkVersions($tw.packageInfo.engines.node.substr(2),process.version.substr(1))) {
if(!$tw.utils.checkVersions(process.version.substr(1),$tw.packageInfo.engines.node.substr(2))) {
$tw.utils.error("TiddlyWiki5 requires node.js version " + $tw.packageInfo.engines.node);
}
}
@@ -1758,6 +1779,7 @@ $tw.boot.startup = function(options) {
$tw.utils.registerFileType("application/javascript","utf8",".js");
$tw.utils.registerFileType("application/json","utf8",".json");
$tw.utils.registerFileType("application/pdf","base64",".pdf",{flags:["image"]});
$tw.utils.registerFileType("application/zip","base64",".zip");
$tw.utils.registerFileType("image/jpeg","base64",[".jpg",".jpeg"],{flags:["image"]});
$tw.utils.registerFileType("image/png","base64",".png",{flags:["image"]});
$tw.utils.registerFileType("image/gif","base64",".gif",{flags:["image"]});
@@ -1911,9 +1933,9 @@ $tw.boot.isStartupTaskEligible = function(taskModule) {
Global Hooks mechanism which allows plugins to modify default functionality
*/
$tw.hooks = $tw.hooks || { names: {}};
/*
Add hooks to the hashmap
Add hooks to the hashmap
*/
$tw.hooks.addHook = function(hookName,definition) {
if($tw.utils.hop($tw.hooks.names,hookName)) {
@@ -1923,9 +1945,9 @@ $tw.hooks.addHook = function(hookName,definition) {
$tw.hooks.names[hookName] = [definition];
}
};
/*
Invoke the hook by key
Invoke the hook by key
*/
$tw.hooks.invokeHook = function(hookName, value) {
if($tw.utils.hop($tw.hooks.names,hookName)) {
@@ -1966,4 +1988,4 @@ if(typeof(exports) !== "undefined") {
exports.TiddlyWiki = _boot;
} else {
_boot(window.$tw);
}
}

View File

@@ -20,9 +20,15 @@ $tw = $tw || Object.create(null);
$tw.boot = $tw.boot || Object.create(null);
// Detect platforms
$tw.browser = typeof(window) !== "undefined" ? {} : null;
$tw.node = typeof(process) === "object" ? {} : null;
$tw.nodeWebKit = $tw.node && global.window && global.window.nwDispatcher ? {} : null;
if(!("browser" in $tw)) {
$tw.browser = typeof(window) !== "undefined" ? {} : null;
}
if(!("node" in $tw)) {
$tw.node = typeof(process) === "object" ? {} : null;
}
if(!("nodeWebKit" in $tw)) {
$tw.nodeWebKit = $tw.node && global.window && global.window.nwDispatcher ? {} : null;
}
// Set default boot tasks
$tw.boot.tasks = {

View File

@@ -1,3 +1,4 @@
<h1 class=''>Contributing to <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki5.html'>TiddlyWiki5</a></h1><p>We welcome contributions to the code and documentation of <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki.html'>TiddlyWiki</a> in several ways:</p><ul><li><a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/ReportingBugs.html'>ReportingBugs</a></li><li>Helping to <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/Improving%2520TiddlyWiki%2520Documentation.html'>improve our documentation</a></li><li>Contributing to the code via <a class='tc-tiddlylink-external' href='https://github.com/Jermolene/TiddlyWiki5' target='_blank'>GitHub</a><ul><li>See <a class='tc-tiddlylink-external' href='http://tiddlywiki.com/dev' target='_blank'>http://tiddlywiki.com/dev</a> for more details</li></ul></li></ul><p>There are other ways to <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/HelpingTiddlyWiki.html'>help TiddlyWiki</a> too.</p><h1 class=''>Contributor License Agreement</h1><p>Like other <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/OpenSource.html'>OpenSource</a> projects, <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki5.html'>TiddlyWiki5</a> needs a signed contributor license agreement from individual contributors. This is a legal agreement that allows contributors to assert that they own the copyright of their contribution, and that they agree to license it to the <a class='tc-tiddlylink tc-tiddlylink-missing' href='http://tiddlywiki.com/static/UnaMesa.html'>UnaMesa</a> Association (the legal entity that owns <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki.html'>TiddlyWiki</a> on behalf of the community).</p><ul><li>For individuals use: <a class='tc-tiddlylink-external' href='https://github.com/Jermolene/TiddlyWiki5/tree/master/licenses/cla-individual.md' target='_blank'>licenses/CLA-individual</a></li><li>For entities use: <a class='tc-tiddlylink-external' href='https://github.com/Jermolene/TiddlyWiki5/tree/master/licenses/cla-entity.md' target='_blank'>licenses/CLA-entity</a></li></ul><h1 class=''>How to sign the CLA</h1><p>Create a <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/GitHub.html'>GitHub</a> pull request to add your name to <code>cla-individual.md</code> or <code>cla-entity.md</code>, with the date in the format (YYYY/MM/DD).</p><p><strong>step by step</strong></p><ol><li>click <a class='tc-tiddlylink-external' href='https://github.com/Jermolene/TiddlyWiki5/tree/master/licenses/cla-individual.md' target='_blank'>licenses/CLA-individual</a> or <a class='tc-tiddlylink-external' href='https://github.com/Jermolene/TiddlyWiki5/tree/master/licenses/cla-entity.md' target='_blank'>licenses/CLA-entity</a></li><li>in <code>cla-individual.md</code> or <code>cla-entity.md</code> click icon on the top-right corner (clicking this button will fork the project so you can edit the file)</li><li>add your name at the bottom</li></ol><p>eg: <code>Jeremy Ruston, @Jermolene, 2011/11/22</code></p><hr><p><em>The CLA documents used for this project were created using <a class='tc-tiddlylink-external' href='http://www.harmonyagreements.org' target='_blank'>Harmony Project Templates</a>. &quot;HA-CLA-I-LIST Version 1.0&quot; for &quot;CLA-individual&quot; and &quot;HA-CLA-E-LIST Version 1.0&quot; for &quot;CLA-entity&quot;.</em>
<h1 class=''>Contributing to <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki5.html'>TiddlyWiki5</a></h1><p>We welcome contributions to the code and documentation of <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki.html'>TiddlyWiki</a> in several ways:</p><ul><li><a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/ReportingBugs.html'>ReportingBugs</a></li><li>Helping to <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/Improving%2520TiddlyWiki%2520Documentation.html'>improve our documentation</a></li><li>Contributing to the code via <a class='tc-tiddlylink-external' href='https://github.com/Jermolene/TiddlyWiki5' target='_blank'>GitHub</a><ul><li>See <a class='tc-tiddlylink-external' href='http://tiddlywiki.com/dev' target='_blank'>http://tiddlywiki.com/dev</a> for more details</li></ul></li></ul><p>There are other ways to <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/HelpingTiddlyWiki.html'>help TiddlyWiki</a> too.</p><h1 class=''>Contributor License Agreement</h1><p>Like other <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/OpenSource.html'>OpenSource</a> projects, <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki5.html'>TiddlyWiki5</a> needs a signed contributor license agreement from individual contributors. This is a legal agreement that allows contributors to assert that they own the copyright of their contribution, and that they agree to license it to the <a class='tc-tiddlylink tc-tiddlylink-missing' href='http://tiddlywiki.com/static/UnaMesa.html'>UnaMesa</a> Association (the legal entity that owns <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki.html'>TiddlyWiki</a> on behalf of the community).</p><ul><li>For individuals use: <a class='tc-tiddlylink-external' href='https://github.com/Jermolene/TiddlyWiki5/tree/master/licenses/cla-individual.md' target='_blank'>licenses/CLA-individual</a></li><li>For entities use: <a class='tc-tiddlylink-external' href='https://github.com/Jermolene/TiddlyWiki5/tree/master/licenses/cla-entity.md' target='_blank'>licenses/CLA-entity</a></li></ul><h1 class=''>How to sign the CLA</h1><p>Create a <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/GitHub.html'>GitHub</a> pull request to add your name to <code>cla-individual.md</code> or <code>cla-entity.md</code>, with the date in the format (YYYY/MM/DD).</p><p><strong>step by step</strong></p><ol><li>click <a class='tc-tiddlylink-external' href='https://github.com/Jermolene/TiddlyWiki5/tree/master/licenses/cla-individual.md' target='_blank'>licenses/CLA-individual</a> or <a class='tc-tiddlylink-external' href='https://github.com/Jermolene/TiddlyWiki5/tree/master/licenses/cla-entity.md' target='_blank'>licenses/CLA-entity</a></li><li>in <code>cla-individual.md</code> or <code>cla-entity.md</code> click icon on the top-right corner (clicking this button will fork the project so you can edit the file)</li><li>add your name at the bottom</li></ol><p>eg: <code>Jeremy Ruston, @Jermolene, 2011/11/22</code></p><hr><p><em>The CLA documents used for this project were created using <a class='tc-tiddlylink-external' href='http://www.harmonyagreements.org' target='_blank'>Harmony Project Templates</a>. &quot;HA-CLA-I-LIST Version 1.0&quot; for &quot;CLA-individual&quot; and &quot;HA-CLA-E-LIST Version 1.0&quot; for &quot;CLA-entity&quot;.</em></p><p>Remarks
----—</p><ul><li><ul><li>When not owning the copyright in the entire work of authorship**</li></ul></li></ul><p>In this case, please clearly state so, since otherwise we assume that you are the legal copyright holder of the contributed work! Please provide links and additional information that clarify under which license the rest of the code is distributed.
</p><p><em>This file was automatically generated by <a class='tc-tiddlylink tc-tiddlylink-resolves' href='http://tiddlywiki.com/static/TiddlyWiki5.html'>TiddlyWiki5</a></em>
</p>

View File

@@ -1,8 +1,4 @@
title: $:/core/icon
tags: $:/tags/Image
<svg width="22pt" height="22pt" viewBox="0 0 128 128">
<g fill-rule="evenodd">
<path d="M64,0 L118.5596,32 L118.5596,96 L64,128 L9.44039956,96 L9.44039956,32 L64,0 Z M85.1274062,95.4080042 C81.5494069,95.3047989 79.9756384,95.3136745 78.1534289,92.2560668 L76.733228,92.2975844 C75.0801573,92.2226776 75.7690718,92.256631 74.6662332,92.2006037 C72.822332,92.1273894 73.1177105,90.3396383 72.7933215,89.3950941 C72.2744094,86.1888106 73.4800004,82.9659571 73.4419681,79.7590415 C73.428503,78.6206623 71.8498363,74.5912119 71.2858469,73.150598 C69.5178104,73.490271 67.7401827,73.5550323 65.9465048,73.6462337 C61.8120677,73.6358996 57.7056703,73.1192806 53.628962,72.4632293 C52.8345141,75.8119659 50.473106,80.4990751 52.4249964,83.9024219 C54.794228,87.4227874 56.45684,88.3980868 59.0339286,88.6103485 C61.6109895,88.8224384 62.1929077,91.7913467 61.5694236,92.8517379 C61.0175661,93.5845847 60.0476425,93.7176093 59.2235739,93.8951553 L57.5752147,93.9742093 C56.2780933,93.9296822 55.1187057,93.5723203 53.9629071,93.0211763 C52.0327307,91.9217335 50.0392154,89.6360411 48.5580719,87.9950695 C48.9028934,88.6503604 49.1085703,89.9296134 48.7958122,90.5249222 C47.9200982,91.7907825 44.1326257,91.7830485 42.3980986,90.996433 C40.4277043,90.1030197 35.6664658,83.8299171 34.9303347,79.1316435 C36.8887135,75.3525836 39.7416856,72.0607931 41.1850909,67.9459622 C38.038852,65.8974525 36.3537697,62.5626501 36.5725198,58.7851619 L36.6514762,58.3478913 C33.5557196,58.9392548 35.1611076,58.7192345 31.8308843,58.9762949 C21.2252017,58.9431831 11.8983553,51.6054609 17.1501626,40.2013394 C17.4916881,39.5260388 17.8165752,38.9120742 18.3955298,39.205288 C18.8602051,39.440565 18.793457,40.3843583 18.5597268,41.4309776 C15.5577203,55.057365 30.2297484,55.161659 39.2489049,52.6401668 C40.1440491,52.3898612 41.9243599,50.7040626 43.1576153,50.1452033 C45.1734825,49.231769 47.3615008,48.8611654 49.5329344,48.5941256 C54.9337165,47.9661653 61.4247946,50.8693254 64.7228943,50.9641212 C68.0210328,51.0589131 72.7127563,50.1582941 75.5928121,50.3479196 C77.6825379,50.4454833 79.734518,50.8303777 81.7507717,51.3786556 C83.0558682,44.8897102 83.1481363,40.1071855 86.2420439,39 C88.0578592,39.2926449 89.4570618,41.8175853 90.4927503,43.1666676 C92.6062592,43.0809984 94.6134653,43.6270518 96.6091885,44.233091 C100.222332,43.7098824 103.254293,41.6394732 106.445091,40.0288813 C103.211767,42.7223157 102.77315,47.1042714 103.142605,51.1564486 C103.280001,53.2591496 102.697713,55.5420684 101.977868,57.6949551 C100.630795,61.2025356 98.0292951,64.8997754 95.009908,64.7101481 C93.868464,64.673306 93.2053722,64.0138 92.3570101,63.3096933 C92.1924386,64.7358711 91.5456263,66.0084523 90.9221089,67.2697748 C89.4822206,70.066388 85.7194927,71.2987762 82.2354164,74.2849828 C78.7515768,77.2712347 83.3502408,87.9363951 84.4652464,89.8796277 C85.5800708,91.8230453 88.6922789,92.5339992 87.484639,94.28798 C87.1151913,94.8672415 86.5502884,95.0744181 85.9465544,95.2991347 L85.1274062,95.4080042 Z M45.0303574,86.5575217 L45.5828655,86.699414 C46.277142,86.4290005 47.6727292,86.8469317 48.4130246,87.0512628 C47.0498362,85.7357167 44.9960929,83.8038623 43.5164417,82.5859671 C43.0307739,81.1115156 43.2380006,79.6278431 43.3424927,78.122648 L43.3634516,77.9981264 C42.7802099,79.2030731 42.040056,80.3743566 41.6422405,81.6426885 C41.176708,83.3537773 43.7112632,85.1999538 44.6940603,86.2580263 L45.0303574,86.5575217 Z"></path>
</g>
</svg>
<svg width="22pt" height="22pt" viewBox="0 0 128 128"><path d="M64 0l54.56 32v64L64 128 9.44 96V32L64 0zm21.127 95.408c-3.578-.103-5.15-.094-6.974-3.152l-1.42.042c-1.653-.075-.964-.04-2.067-.097-1.844-.07-1.548-1.86-1.873-2.8-.52-3.202.687-6.43.65-9.632-.014-1.14-1.593-5.17-2.157-6.61-1.768.34-3.546.406-5.34.497-4.134-.01-8.24-.527-12.317-1.183-.8 3.35-3.16 8.036-1.21 11.44 2.37 3.52 4.03 4.495 6.61 4.707 2.572.212 3.16 3.18 2.53 4.242-.55.73-1.52.864-2.346 1.04l-1.65.08c-1.296-.046-2.455-.404-3.61-.955-1.93-1.097-3.925-3.383-5.406-5.024.345.658.55 1.938.24 2.53-.878 1.27-4.665 1.26-6.4.47-1.97-.89-6.73-7.162-7.468-11.86 1.96-3.78 4.812-7.07 6.255-11.186-3.146-2.05-4.83-5.384-4.61-9.16l.08-.44c-3.097.59-1.49.37-4.82.628-10.608-.032-19.935-7.37-14.68-18.774.34-.673.664-1.287 1.243-.994.466.237.4 1.18.166 2.227-3.005 13.627 11.67 13.732 20.69 11.21.89-.25 2.67-1.936 3.905-2.495 2.016-.91 4.205-1.282 6.376-1.55 5.4-.63 11.893 2.276 15.19 2.37 3.3.096 7.99-.805 10.87-.615 2.09.098 4.143.483 6.16 1.03 1.306-6.49 1.4-11.27 4.492-12.38 1.814.293 3.213 2.818 4.25 4.167 2.112-.086 4.12.46 6.115 1.066 3.61-.522 6.642-2.593 9.833-4.203-3.234 2.69-3.673 7.075-3.303 11.127.138 2.103-.444 4.386-1.164 6.54-1.348 3.507-3.95 7.204-6.97 7.014-1.14-.036-1.805-.695-2.653-1.4-.164 1.427-.81 2.7-1.434 3.96-1.44 2.797-5.203 4.03-8.687 7.016-3.484 2.985 1.114 13.65 2.23 15.594 1.114 1.94 4.226 2.652 3.02 4.406-.37.58-.936.785-1.54 1.01l-.82.11zm-40.097-8.85l.553.14c.694-.27 2.09.15 2.83.353-1.363-1.31-3.417-3.24-4.897-4.46-.485-1.47-.278-2.96-.174-4.46l.02-.123c-.582 1.205-1.322 2.376-1.72 3.645-.465 1.71 2.07 3.557 3.052 4.615l.336.3z" fill-rule="evenodd"/></svg>

View File

@@ -1,4 +1,4 @@
title: $:/core/images/blank
tags: $:/tags/Image
<svg class="tc-image-blank tc-image-button" viewBox="63 152 64 64" width="22pt" height="22pt"></svg>
<svg class="tc-image-blank tc-image-button" viewBox="0 0 128 128" width="22pt" height="22pt"></svg>

View File

@@ -1,7 +1,7 @@
title: $:/core/images/close-others-button
tags: $:/tags/Image
<svg class="tc-image-close-others-button tc-image-button" width="22pt" height="22pt" viewBox="0 0 128 127">
<svg class="tc-image-close-others-button tc-image-button" width="22pt" height="22pt" viewBox="0 0 128 128">
<g fill-rule="evenodd">
<path d="M64,128 C99.346224,128 128,99.346224 128,64 C128,28.653776 99.346224,0 64,0 C28.653776,0 0,28.653776 0,64 C0,99.346224 28.653776,128 64,128 Z M64,112 C90.509668,112 112,90.509668 112,64 C112,37.490332 90.509668,16 64,16 C37.490332,16 16,37.490332 16,64 C16,90.509668 37.490332,112 64,112 Z M64,96 C81.673112,96 96,81.673112 96,64 C96,46.326888 81.673112,32 64,32 C46.326888,32 32,46.326888 32,64 C32,81.673112 46.326888,96 64,96 Z M64,80 C72.836556,80 80,72.836556 80,64 C80,55.163444 72.836556,48 64,48 C55.163444,48 48,55.163444 48,64 C48,72.836556 55.163444,80 64,80 Z"></path>
</g>

View File

@@ -11,4 +11,4 @@ tags: $:/tags/Image
<rect x="56" y="16" width="16" height="112" rx="8"></rect>
<rect x="32" y="16" width="16" height="112" rx="8"></rect>
</g>
</svg>
</svg>

View File

@@ -5,4 +5,4 @@ tags: $:/tags/Image
<g fill-rule="evenodd">
<path d="M3.52445141,76.8322939 C2.07397484,75.3828178 1.17514421,73.3795385 1.17514421,71.1666288 L1.17514421,23.1836596 C1.17514421,18.7531992 4.75686621,15.1751442 9.17514421,15.1751442 C13.5844319,15.1751442 17.1751442,18.7606787 17.1751442,23.1836596 L17.1751442,63.1751442 L119.173716,63.1751442 C123.590457,63.1751442 127.175144,66.7568662 127.175144,71.1751442 C127.175144,75.5844319 123.592783,79.1751442 119.173716,79.1751442 L9.17657227,79.1751442 C6.96796403,79.1751442 4.9674142,78.279521 3.51911285,76.8315312 Z" id="Rectangle-285" transform="translate(64.175144, 47.175144) rotate(-45.000000) translate(-64.175144, -47.175144) "></path>
</g>
</svg>
</svg>

View File

@@ -3,4 +3,4 @@ tags: $:/tags/Image
<svg class="tc-image-down-arrow tc-image-button" viewBox="0 0 128 128" width="22pt" height="22pt">
<path d="M109.35638,81.3533152 C107.923899,82.7869182 105.94502,83.6751442 103.759224,83.6751442 L24.5910645,83.6751442 C20.225873,83.6751442 16.6751442,80.1307318 16.6751442,75.7584775 C16.6751442,71.3951199 20.2192225,67.8418109 24.5910645,67.8418109 L95.8418109,67.8418109 L95.8418109,-3.40893546 C95.8418109,-7.77412698 99.3862233,-11.3248558 103.758478,-11.3248558 C108.121835,-11.3248558 111.675144,-7.78077754 111.675144,-3.40893546 L111.675144,75.7592239 C111.675144,77.9416955 110.789142,79.9205745 109.356651,81.3538862 Z" transform="translate(64.175144, 36.175144) rotate(45.000000) translate(-64.175144, -36.175144) "></path>
</svg>
</svg>

View File

@@ -1,4 +1,4 @@
title: $:/core/images/download-button
tags: $:/tags/Image
<svg class="tc-image-download-button tc-image-button" width="22pt" height="22pt" viewBox="0 0 129 128"><g fill-rule="evenodd"><path class="tc-image-download-button-ring" d="M64,128 C99.346224,128 128,99.346224 128,64 C128,28.653776 99.346224,0 64,0 C28.653776,0 0,28.653776 0,64 C0,99.346224 28.653776,128 64,128 Z M64,112 C90.509668,112 112,90.509668 112,64 C112,37.490332 90.509668,16 64,16 C37.490332,16 16,37.490332 16,64 C16,90.509668 37.490332,112 64,112 Z"/><path d="M34.3496823,66.4308767 L61.2415823,93.634668 C63.0411536,95.4551107 65.9588502,95.4551107 67.7584215,93.634668 L94.6503215,66.4308767 C96.4498928,64.610434 96.4498928,61.6588981 94.6503215,59.8384554 C93.7861334,58.9642445 92.6140473,58.4731195 91.3919019,58.4731195 L82.9324098,58.4731195 C80.3874318,58.4731195 78.3243078,56.3860674 78.3243078,53.8115729 L78.3243078,38.6615466 C78.3243078,36.0870521 76.2611837,34 73.7162058,34 L55.283798,34 C52.7388201,34 50.675696,36.0870521 50.675696,38.6615466 L50.675696,38.6615466 L50.675696,53.8115729 C50.675696,56.3860674 48.612572,58.4731195 46.0675941,58.4731195 L37.608102,58.4731195 C35.063124,58.4731195 33,60.5601716 33,63.134666 C33,64.3709859 33.4854943,65.5566658 34.3496823,66.4308767 L34.3496823,66.4308767 Z"/></g></svg>
<svg class="tc-image-download-button tc-image-button" width="22pt" height="22pt" viewBox="0 0 128 128"><g fill-rule="evenodd"><path class="tc-image-download-button-ring" d="M64,128 C99.346224,128 128,99.346224 128,64 C128,28.653776 99.346224,0 64,0 C28.653776,0 0,28.653776 0,64 C0,99.346224 28.653776,128 64,128 Z M64,112 C90.509668,112 112,90.509668 112,64 C112,37.490332 90.509668,16 64,16 C37.490332,16 16,37.490332 16,64 C16,90.509668 37.490332,112 64,112 Z"/><path d="M34.3496823,66.4308767 L61.2415823,93.634668 C63.0411536,95.4551107 65.9588502,95.4551107 67.7584215,93.634668 L94.6503215,66.4308767 C96.4498928,64.610434 96.4498928,61.6588981 94.6503215,59.8384554 C93.7861334,58.9642445 92.6140473,58.4731195 91.3919019,58.4731195 L82.9324098,58.4731195 C80.3874318,58.4731195 78.3243078,56.3860674 78.3243078,53.8115729 L78.3243078,38.6615466 C78.3243078,36.0870521 76.2611837,34 73.7162058,34 L55.283798,34 C52.7388201,34 50.675696,36.0870521 50.675696,38.6615466 L50.675696,38.6615466 L50.675696,53.8115729 C50.675696,56.3860674 48.612572,58.4731195 46.0675941,58.4731195 L37.608102,58.4731195 C35.063124,58.4731195 33,60.5601716 33,63.134666 C33,64.3709859 33.4854943,65.5566658 34.3496823,66.4308767 L34.3496823,66.4308767 Z"/></g></svg>

View File

@@ -6,4 +6,4 @@ tags: $:/tags/Image
<path d="M116.870058,45.3431458 L108.870058,45.3431458 L108.870058,45.3431458 L108.870058,61.3431458 L116.870058,61.3431458 L116.870058,45.3431458 Z M124.870058,45.3431458 L127.649881,45.3431458 C132.066101,45.3431458 135.656854,48.9248678 135.656854,53.3431458 C135.656854,57.7524334 132.07201,61.3431458 127.649881,61.3431458 L124.870058,61.3431458 L124.870058,45.3431458 Z M100.870058,45.3431458 L15.6638275,45.3431458 C15.5064377,45.3431458 15.3501085,45.3476943 15.1949638,45.3566664 L15.1949638,45.3566664 C15.0628002,45.3477039 14.928279,45.3431458 14.7913977,45.3431458 C6.68160973,45.3431458 -8.34314575,53.3431458 -8.34314575,53.3431458 C-8.34314575,53.3431458 6.85614548,61.3431458 14.7913977,61.3431458 C14.9266533,61.3431458 15.0596543,61.3384973 15.190398,61.3293588 C15.3470529,61.3385075 15.5049057,61.3431458 15.6638275,61.3431458 L100.870058,61.3431458 L100.870058,45.3431458 L100.870058,45.3431458 Z" transform="translate(63.656854, 53.343146) rotate(-45.000000) translate(-63.656854, -53.343146) "></path>
<path d="M35.1714596,124.189544 C41.9594858,123.613403 49.068777,121.917633 58.85987,118.842282 C60.6854386,118.268877 62.4306907,117.705515 65.1957709,116.802278 C81.1962861,111.575575 87.0734839,109.994907 93.9414474,109.655721 C102.29855,109.242993 107.795169,111.785371 111.520478,118.355045 C112.610163,120.276732 115.051363,120.951203 116.97305,119.861518 C118.894737,118.771832 119.569207,116.330633 118.479522,114.408946 C113.146151,105.003414 104.734907,101.112919 93.5468356,101.66546 C85.6716631,102.054388 79.4899908,103.716944 62.7116783,109.197722 C59.9734132,110.092199 58.2519873,110.64787 56.4625698,111.20992 C37.002649,117.322218 25.6914684,118.282267 16.8654804,112.957098 C14.9739614,111.815848 12.5154166,112.424061 11.3741667,114.31558 C10.2329168,116.207099 10.84113,118.665644 12.7326489,119.806894 C19.0655164,123.627836 26.4866335,124.926678 35.1714596,124.189544 Z"></path>
</g>
</svg>
</svg>

View File

@@ -5,4 +5,4 @@ tags: $:/tags/Image
<g fill-rule="evenodd">
<path d="M8.00348646,127.999999 C8.00464867,128 8.00581094,128 8.00697327,128 L119.993027,128 C122.205254,128 124.207939,127.101378 125.657096,125.651198 L125.656838,125.65759 C127.104563,124.210109 128,122.21009 128,119.999949 L128,56.0000511 C128,51.5817449 124.409288,48 120,48 C115.581722,48 112,51.5797863 112,56.0000511 L112,112 L16,112 L16,56.0000511 C16,51.5817449 12.4092877,48 8,48 C3.581722,48 7.10542736e-15,51.5797863 7.10542736e-15,56.0000511 L7.10542736e-15,119.999949 C7.10542736e-15,124.418255 3.59071231,128 8,128 C8.00116233,128 8.0023246,128 8.00348681,127.999999 Z M56.6235633,27.3113724 L47.6580188,36.2769169 C44.5333664,39.4015692 39.4634864,39.4061295 36.339292,36.2819351 C33.2214548,33.1640979 33.2173444,28.0901742 36.3443103,24.9632084 L58.9616908,2.34582788 C60.5248533,0.782665335 62.5748436,0.000361191261 64.624516,2.38225238e-14 L64.6193616,0.00151809229 C66.6695374,0.000796251595 68.7211167,0.781508799 70.2854358,2.34582788 L92.9028163,24.9632084 C96.0274686,28.0878607 96.0320289,33.1577408 92.9078345,36.2819351 C89.7899973,39.3997724 84.7160736,39.4038827 81.5891078,36.2769169 L72.6235633,27.3113724 L72.6235633,88.5669606 C72.6235633,92.9781015 69.0418413,96.5662064 64.6235633,96.5662064 C60.2142756,96.5662064 56.6235633,92.984822 56.6235633,88.5669606 L56.6235633,27.3113724 L56.6235633,27.3113724 Z"></path>
</g>
</svg>
</svg>

8
core/images/github.tid Normal file
View File

@@ -0,0 +1,8 @@
title: $:/core/images/github
tags: $:/tags/Image
<svg class="tc-image-github tc-image-button" width="22pt" height="22pt" viewBox="0 0 128 128">
<g fill-rule="evenodd">
<path d="M63.9383506,1.60695328 C28.6017227,1.60695328 -0.055756057,30.2970814 -0.055756057,65.6906208 C-0.055756057,94.003092 18.2804728,118.019715 43.7123154,126.493393 C46.9143781,127.083482 48.0812647,125.104717 48.0812647,123.405261 C48.0812647,121.886765 48.02626,117.85449 47.9948287,112.508284 C30.1929317,116.379268 26.4368926,103.916587 26.4368926,103.916587 C23.5255693,96.5129372 19.3294921,94.5420399 19.3294921,94.5420399 C13.5186324,90.5687739 19.7695302,90.6474524 19.7695302,90.6474524 C26.1933001,91.099854 29.5721638,97.2525155 29.5721638,97.2525155 C35.2808718,107.044059 44.5531024,104.215566 48.1991321,102.575118 C48.7806109,98.4366275 50.4346826,95.612068 52.2616263,94.0109598 C38.0507543,92.3941159 23.1091047,86.8944862 23.1091047,62.3389152 C23.1091047,55.3443933 25.6039634,49.6205298 29.6978889,45.1437211 C29.0378318,43.5229433 26.8415704,37.0044266 30.3265147,28.1845627 C30.3265147,28.1845627 35.6973364,26.4615028 47.9241083,34.7542205 C53.027764,33.330139 58.5046663,32.6220321 63.9462084,32.5944947 C69.3838216,32.6220321 74.856795,33.330139 79.9683085,34.7542205 C92.1872225,26.4615028 97.5501864,28.1845627 97.5501864,28.1845627 C101.042989,37.0044266 98.8467271,43.5229433 98.190599,45.1437211 C102.292382,49.6205298 104.767596,55.3443933 104.767596,62.3389152 C104.767596,86.9574291 89.8023734,92.3744463 75.5482834,93.9598188 C77.8427675,95.9385839 79.8897303,99.8489072 79.8897303,105.828476 C79.8897303,114.392635 79.8111521,121.304544 79.8111521,123.405261 C79.8111521,125.120453 80.966252,127.114954 84.2115327,126.489459 C109.623731,117.996111 127.944244,93.9952241 127.944244,65.6906208 C127.944244,30.2970814 99.2867652,1.60695328 63.9383506,1.60695328"></path>
</g>
</svg>

8
core/images/help.tid Normal file
View File

@@ -0,0 +1,8 @@
title: $:/core/images/help
tags: $:/tags/Image
<svg class="tc-image-help tc-image-button" width="22pt" height="22pt" viewBox="0 0 128 128">
<g fill-rule="evenodd">
<path d="M36.0548906,111.44117 C30.8157418,115.837088 20.8865444,118.803477 9.5,118.803477 C7.86465619,118.803477 6.25937294,118.742289 4.69372699,118.624467 C12.612543,115.984876 18.7559465,110.02454 21.0611049,102.609942 C8.74739781,92.845129 1.04940554,78.9359851 1.04940554,63.5 C1.04940554,33.9527659 29.2554663,10 64.0494055,10 C98.8433448,10 127.049406,33.9527659 127.049406,63.5 C127.049406,93.0472341 98.8433448,117 64.0494055,117 C53.9936953,117 44.48824,114.999337 36.0548906,111.44117 L36.0548906,111.44117 Z M71.4042554,77.5980086 C71.406883,77.2865764 71.4095079,76.9382011 71.4119569,76.5610548 C71.4199751,75.3262169 71.4242825,74.0811293 71.422912,72.9158546 C71.4215244,71.736154 71.4143321,70.709635 71.4001396,69.8743525 C71.4078362,68.5173028 71.9951951,67.7870427 75.1273009,65.6385471 C75.2388969,65.5619968 76.2124091,64.8981068 76.5126553,64.6910879 C79.6062455,62.5580654 81.5345849,60.9050204 83.2750652,58.5038955 C85.6146327,55.2762841 86.8327108,51.426982 86.8327108,46.8554323 C86.8327108,33.5625756 76.972994,24.9029551 65.3778484,24.9029551 C54.2752771,24.9029551 42.8794554,34.5115163 41.3121702,47.1975534 C40.9043016,50.4989536 43.2499725,53.50591 46.5513726,53.9137786 C49.8527728,54.3216471 52.8597292,51.9759763 53.2675978,48.6745761 C54.0739246,42.1479456 60.2395837,36.9492759 65.3778484,36.9492759 C70.6427674,36.9492759 74.78639,40.5885487 74.78639,46.8554323 C74.78639,50.4892974 73.6853224,52.008304 69.6746221,54.7736715 C69.4052605,54.9593956 68.448509,55.6118556 68.3131127,55.7047319 C65.6309785,57.5445655 64.0858213,58.803255 62.6123358,60.6352315 C60.5044618,63.2559399 59.3714208,66.3518252 59.3547527,69.9487679 C59.3684999,70.8407274 59.3752803,71.8084521 59.3765995,72.9300232 C59.3779294,74.0607297 59.3737237,75.2764258 59.36589,76.482835 C59.3634936,76.8518793 59.3609272,77.1924914 59.3583633,77.4963784 C59.3568319,77.6778944 59.3556368,77.8074256 59.3549845,77.8730928 C59.3219814,81.1994287 61.9917551,83.9227111 65.318091,83.9557142 C68.644427,83.9887173 71.3677093,81.3189435 71.4007124,77.9926076 C71.4014444,77.9187458 71.402672,77.7856841 71.4042554,77.5980086 Z M65.3778489,102.097045 C69.5359735,102.097045 72.9067994,98.7262189 72.9067994,94.5680944 C72.9067994,90.4099698 69.5359735,87.0391439 65.3778489,87.0391439 C61.2197243,87.0391439 57.8488984,90.4099698 57.8488984,94.5680944 C57.8488984,98.7262189 61.2197243,102.097045 65.3778489,102.097045 Z"></path>
</g>
</svg>

View File

@@ -5,4 +5,4 @@ tags: $:/tags/Image
<g fill-rule="evenodd">
<path d="M112.9847,119.501583 C112.99485,119.336814 113,119.170705 113,119.003406 L113,67.56802 C116.137461,70.5156358 121.076014,70.4518569 124.133985,67.3938855 C127.25818,64.2696912 127.260618,59.2068102 124.131541,56.0777326 L70.3963143,2.34250601 C68.8331348,0.779326498 66.7828947,-0.000743167069 64.7337457,1.61675364e-05 C62.691312,-0.00409949529 60.6426632,0.777559815 59.077717,2.34250601 L33,28.420223 L33,28.420223 L33,8.00697327 C33,3.58484404 29.4092877,0 25,0 C20.581722,0 17,3.59075293 17,8.00697327 L17,44.420223 L5.3424904,56.0777326 C2.21694607,59.2032769 2.22220878,64.2760483 5.34004601,67.3938855 C8.46424034,70.5180798 13.5271213,70.5205187 16.6561989,67.3914411 L17,67.04764 L17,119.993027 C17,119.994189 17.0000002,119.995351 17.0000007,119.996514 C17.0000002,119.997675 17,119.998838 17,120 C17,124.418278 20.5881049,128 24.9992458,128 L105.000754,128 C109.418616,128 113,124.409288 113,120 C113,119.832611 112.99485,119.666422 112.9847,119.501583 Z M97,112 L97,51.5736087 L97,51.5736087 L64.7370156,19.3106244 L33,51.04764 L33,112 L97,112 Z"></path>
</g>
</svg>
</svg>

View File

@@ -10,4 +10,4 @@ tags: $:/tags/Image
</g>
</g>
</g>
</svg>
</svg>

View File

@@ -0,0 +1,8 @@
created: 20150315234410875
modified: 20150315235324760
tags: $:/tags/Image
title: $:/core/images/left-arrow
<svg class="tc-image-left-arrow tc-image-button" width="22pt" height="22pt" viewBox="0 0 128 128">
<path transform="rotate(135, 63.8945, 64.1752)" d="m109.07576,109.35336c-1.43248,1.43361 -3.41136,2.32182 -5.59717,2.32182l-79.16816,0c-4.36519,0 -7.91592,-3.5444 -7.91592,-7.91666c0,-4.36337 3.54408,-7.91667 7.91592,-7.91667l71.25075,0l0,-71.25075c0,-4.3652 3.54442,-7.91592 7.91667,-7.91592c4.36336,0 7.91667,3.54408 7.91667,7.91592l0,79.16815c0,2.1825 -0.88602,4.16136 -2.3185,5.59467l-0.00027,-0.00056z"/>
</svg>

8
core/images/mail.tid Normal file
View File

@@ -0,0 +1,8 @@
title: $:/core/images/mail
tags: $:/tags/Image
<svg class="tc-image-mail tc-image-button" width="22pt" height="22pt" viewBox="0 0 128 128">
<g fill-rule="evenodd">
<path d="M122.826782,104.894066 C121.945525,105.22777 120.990324,105.41043 119.993027,105.41043 L8.00697327,105.41043 C7.19458381,105.41043 6.41045219,105.289614 5.67161357,105.064967 L5.67161357,105.064967 L39.8346483,70.9019325 L60.6765759,91.7438601 C61.6118278,92.679112 62.8865166,93.0560851 64.0946097,92.8783815 C65.2975108,93.0473238 66.5641085,92.6696979 67.4899463,91.7438601 L88.5941459,70.6396605 C88.6693095,70.7292352 88.7490098,70.8162939 88.8332479,70.9005321 L122.826782,104.894066 Z M127.903244,98.6568194 C127.966933,98.2506602 128,97.8343714 128,97.4103789 L128,33.410481 C128,32.7414504 127.917877,32.0916738 127.763157,31.4706493 L94.2292399,65.0045665 C94.3188145,65.0797417 94.4058701,65.1594458 94.4901021,65.2436778 L127.903244,98.6568194 Z M0.205060636,99.2178117 C0.0709009529,98.6370366 0,98.0320192 0,97.4103789 L0,33.410481 C0,32.694007 0.0944223363,31.9995312 0.27147538,31.3387595 L0.27147538,31.3387595 L34.1777941,65.2450783 L0.205060636,99.2178117 L0.205060636,99.2178117 Z M5.92934613,25.6829218 C6.59211333,25.5051988 7.28862283,25.4104299 8.00697327,25.4104299 L119.993027,25.4104299 C120.759109,25.4104299 121.500064,25.5178649 122.201605,25.7184927 L122.201605,25.7184927 L64.0832611,83.8368368 L5.92934613,25.6829218 L5.92934613,25.6829218 Z"></path>
</g>
</svg>

View File

@@ -5,4 +5,4 @@ tags: $:/tags/Image
<rect x="0" y="16" width="128" height="16" rx="8"></rect>
<rect x="0" y="56" width="128" height="16" rx="8"></rect>
<rect x="0" y="96" width="128" height="16" rx="8"></rect>
</svg>
</svg>

View File

@@ -5,4 +5,4 @@ tags: $:/tags/Image
<g fill-rule="evenodd">
<path d="M56,72 L8.00697327,72 C3.59075293,72 0,68.418278 0,64 C0,59.5907123 3.58484404,56 8.00697327,56 L56,56 L56,8.00697327 C56,3.59075293 59.581722,0 64,0 C68.4092877,0 72,3.58484404 72,8.00697327 L72,56 L119.993027,56 C124.409247,56 128,59.581722 128,64 C128,68.4092877 124.415156,72 119.993027,72 L72,72 L72,119.993027 C72,124.409247 68.418278,128 64,128 C59.5907123,128 56,124.415156 56,119.993027 L56,72 L56,72 Z"></path>
</g>
</svg>
</svg>

View File

@@ -11,4 +11,4 @@ tags: $:/tags/Image
<rect x="80" y="96" width="48" height="16" rx="8"></rect>
</g>
</g>
</svg>
</svg>

View File

@@ -13,4 +13,4 @@ tags: $:/tags/Image
</g>
</g>
</g>
</svg>
</svg>

View File

@@ -5,4 +5,4 @@ tags: $:/tags/Image
<g fill-rule="evenodd">
<path d="M110.48779,76.0002544 C109.354214,80.4045063 107.611262,84.5641217 105.354171,88.3838625 L105.354171,88.3838625 L112.07833,95.1080219 C115.20107,98.2307613 115.210098,103.299824 112.089164,106.420759 L106.420504,112.089418 C103.301049,115.208874 98.2346851,115.205502 95.1077675,112.078585 L88.3836082,105.354425 C84.5638673,107.611516 80.4042519,109.354468 76,110.488045 L76,110.488045 L76,119.993281 C76,124.409501 72.4220153,128.000254 68.0083475,128.000254 L59.9916525,128.000254 C55.5800761,128.000254 52,124.41541 52,119.993281 L52,110.488045 C47.5957481,109.354468 43.4361327,107.611516 39.6163918,105.354425 L32.8922325,112.078585 C29.7694931,115.201324 24.7004301,115.210353 21.5794957,112.089418 L15.9108363,106.420759 C12.7913807,103.301303 12.7947522,98.2349395 15.9216697,95.1080219 L22.6458291,88.3838625 C20.3887383,84.5641217 18.6457859,80.4045063 17.5122098,76.0002544 L8.00697327,76.0002544 C3.59075293,76.0002544 2.19088375e-16,72.4222697 4.89347582e-16,68.0086019 L9.80228577e-16,59.9919069 C1.25035972e-15,55.5803305 3.58484404,52.0002544 8.00697327,52.0002544 L17.5122098,52.0002544 C18.6457859,47.5960025 20.3887383,43.4363871 22.6458291,39.6166462 L15.9216697,32.8924868 C12.7989304,29.7697475 12.7899019,24.7006845 15.9108363,21.5797501 L21.5794957,15.9110907 C24.6989513,12.7916351 29.7653149,12.7950065 32.8922325,15.9219241 L39.6163918,22.6460835 C43.4361327,20.3889927 47.5957481,18.6460403 52,17.5124642 L52,8.00722764 C52,3.5910073 55.5779847,0.000254375069 59.9916525,0.000254375069 L68.0083475,0.000254375069 C72.4199239,0.000254375069 76,3.58509841 76,8.00722764 L76,17.5124642 C80.4042519,18.6460403 84.5638673,20.3889927 88.3836082,22.6460835 L95.1077675,15.9219241 C98.2305069,12.7991848 103.29957,12.7901562 106.420504,15.9110907 L112.089164,21.5797501 C115.208619,24.6992057 115.205248,29.7655693 112.07833,32.8924868 L105.354171,39.6166462 L105.354171,39.6166462 C107.611262,43.4363871 109.354214,47.5960025 110.48779,52.0002544 L119.993027,52.0002544 C124.409247,52.0002544 128,55.5782391 128,59.9919069 L128,68.0086019 C128,72.4201783 124.415156,76.0002544 119.993027,76.0002544 L110.48779,76.0002544 L110.48779,76.0002544 Z M64,96.0002544 C81.673112,96.0002544 96,81.6733664 96,64.0002544 C96,46.3271424 81.673112,32.0002544 64,32.0002544 C46.326888,32.0002544 32,46.3271424 32,64.0002544 C32,81.6733664 46.326888,96.0002544 64,96.0002544 Z"></path>
</g>
</svg>
</svg>

View File

@@ -5,4 +5,4 @@ tags: $:/tags/Image
<g fill-rule="evenodd">
<path d="M106.369002,39.4325143 C116.529932,60.3119371 112.939592,86.1974934 95.5979797,103.539105 C73.7286194,125.408466 38.2713806,125.408466 16.4020203,103.539105 C-5.46734008,81.6697449 -5.46734008,46.2125061 16.4020203,24.3431458 C19.5262146,21.2189514 24.5915344,21.2189514 27.7157288,24.3431458 C30.8399231,27.4673401 30.8399231,32.5326599 27.7157288,35.6568542 C12.0947571,51.2778259 12.0947571,76.6044251 27.7157288,92.2253967 C43.3367004,107.846368 68.6632996,107.846368 84.2842712,92.2253967 C97.71993,78.7897379 99.5995262,58.1740623 89.9230597,42.729491 L83.4844861,54.9932839 C81.4307001,58.9052072 76.5945372,60.4115251 72.682614,58.3577391 C68.7706907,56.3039532 67.2643728,51.4677903 69.3181587,47.555867 L84.4354914,18.7613158 C86.4966389,14.8353707 91.3577499,13.3347805 95.273202,15.415792 L124.145886,30.7612457 C128.047354,32.8348248 129.52915,37.6785572 127.455571,41.5800249 C125.381992,45.4814927 120.53826,46.9632892 116.636792,44.8897102 L106.369002,39.4325143 Z M98.1470904,27.0648707 C97.9798954,26.8741582 97.811187,26.6843098 97.6409651,26.4953413 L98.6018187,26.1987327 L98.1470904,27.0648707 Z"></path>
</g>
</svg>
</svg>

View File

@@ -5,4 +5,4 @@ tags: $:/tags/Image
<g fill-rule="evenodd">
<path d="M120.78304,34.329058 C125.424287,43.1924006 128.049406,53.2778608 128.049406,63.9764502 C128.049406,99.3226742 99.3956295,127.97645 64.0494055,127.97645 C28.7031816,127.97645 0.0494055385,99.3226742 0.0494055385,63.9764502 C0.0494055385,28.6302262 28.7031816,-0.0235498012 64.0494055,-0.0235498012 C82.8568763,-0.0235498012 99.769563,8.08898558 111.479045,21.0056358 L114.159581,18.3250998 C117.289194,15.1954866 122.356036,15.1939641 125.480231,18.3181584 C128.598068,21.4359957 128.601317,26.5107804 125.473289,29.6388083 L120.78304,34.329058 Z M108.72451,46.3875877 C110.870571,51.8341374 112.049406,57.767628 112.049406,63.9764502 C112.049406,90.4861182 90.5590735,111.97645 64.0494055,111.97645 C37.5397375,111.97645 16.0494055,90.4861182 16.0494055,63.9764502 C16.0494055,37.4667822 37.5397375,15.9764502 64.0494055,15.9764502 C78.438886,15.9764502 91.3495036,22.308215 100.147097,32.3375836 L58.9411255,73.5435552 L41.975581,56.5780107 C38.8486152,53.4510448 33.7746915,53.4551552 30.6568542,56.5729924 C27.5326599,59.6971868 27.5372202,64.7670668 30.6618725,67.8917192 L53.279253,90.5090997 C54.8435723,92.073419 56.8951519,92.8541315 58.9380216,92.8558261 C60.987971,92.8559239 63.0389578,92.0731398 64.6049211,90.5071765 L108.72451,46.3875877 Z"></path>
</g>
</svg>
</svg>

View File

@@ -1,7 +1,7 @@
title: $:/core/images/storyview-classic
tags: $:/tags/Image
<svg class="tc-image-storyview-classic tc-image-button" width="22pt" height="22pt" viewBox="0 0 129 128">
<svg class="tc-image-storyview-classic tc-image-button" width="22pt" height="22pt" viewBox="0 0 128 128">
<g fill-rule="evenodd">
<path d="M8.00697327,0 C3.58484404,0 0,3.59075293 0,8.00697327 L0,119.993027 C0,124.415156 3.59075293,128 8.00697327,128 L119.993027,128 C124.415156,128 128,124.409247 128,119.993027 L128,8.00697327 C128,3.58484404 124.409247,0 119.993027,0 L8.00697327,0 L8.00697327,0 Z M23.9992458,16 C19.5813843,16 16,19.5776607 16,23.9924054 L16,40.0075946 C16,44.4216782 19.5881049,48 23.9992458,48 L104.000754,48 C108.418616,48 112,44.4223393 112,40.0075946 L112,23.9924054 C112,19.5783218 108.411895,16 104.000754,16 L23.9992458,16 L23.9992458,16 Z M23.9992458,64 C19.5813843,64 16,67.5907123 16,72 C16,76.418278 19.5881049,80 23.9992458,80 L104.000754,80 C108.418616,80 112,76.4092877 112,72 C112,67.581722 108.411895,64 104.000754,64 L23.9992458,64 L23.9992458,64 Z M23.9992458,96 C19.5813843,96 16,99.5907123 16,104 C16,108.418278 19.5881049,112 23.9992458,112 L104.000754,112 C108.418616,112 112,108.409288 112,104 C112,99.581722 108.411895,96 104.000754,96 L23.9992458,96 L23.9992458,96 Z"></path>
</g>

View File

@@ -6,4 +6,4 @@ tags: $:/tags/Image
<path d="M18.1643182,47.6600756 L18.1677196,51.7651887 C18.1708869,55.5878829 20.3581578,60.8623899 23.0531352,63.5573673 L84.9021823,125.406414 C87.5996731,128.103905 91.971139,128.096834 94.6717387,125.396234 L125.766905,94.3010679 C128.473612,91.5943612 128.472063,87.2264889 125.777085,84.5315115 L63.9280381,22.6824644 C61.2305472,19.9849735 55.9517395,17.801995 52.1318769,17.8010313 L25.0560441,17.7942007 C21.2311475,17.7932358 18.1421354,20.8872832 18.1452985,24.7049463 L18.1535504,34.6641936 C18.2481119,34.6754562 18.3439134,34.6864294 18.4409623,34.6971263 C22.1702157,35.1081705 26.9295004,34.6530132 31.806204,33.5444844 C32.1342781,33.0700515 32.5094815,32.6184036 32.9318197,32.1960654 C35.6385117,29.4893734 39.5490441,28.718649 42.94592,29.8824694 C43.0432142,29.8394357 43.1402334,29.7961748 43.2369683,29.7526887 L43.3646982,30.0368244 C44.566601,30.5115916 45.6933052,31.2351533 46.6655958,32.2074439 C50.4612154,36.0030635 50.4663097,42.1518845 46.6769742,45.94122 C43.0594074,49.5587868 37.2914155,49.7181264 33.4734256,46.422636 C28.1082519,47.5454734 22.7987486,48.0186448 18.1643182,47.6600756 Z"></path>
<path d="M47.6333528,39.5324628 L47.6562932,39.5834939 C37.9670934,43.9391617 26.0718874,46.3819521 17.260095,45.4107025 C5.27267473,44.0894301 -1.02778744,36.4307276 2.44271359,24.0779512 C5.56175386,12.9761516 14.3014034,4.36129832 24.0466405,1.54817001 C34.7269254,-1.53487574 43.7955833,3.51606438 43.7955834,14.7730751 L35.1728168,14.7730752 C35.1728167,9.91428944 32.0946059,8.19982862 26.4381034,9.83267419 C19.5270911,11.8276553 13.046247,18.2159574 10.7440788,26.4102121 C8.82861123,33.2280582 11.161186,36.0634845 18.2047888,36.8398415 C25.3302805,37.6252244 35.7353482,35.4884477 44.1208333,31.7188498 L44.1475077,31.7781871 C44.159701,31.7725635 44.1718402,31.7671479 44.1839238,31.7619434 C45.9448098,31.0035157 50.4503245,38.3109156 47.7081571,39.5012767 C47.6834429,39.512005 47.6585061,39.5223987 47.6333528,39.5324628 Z"></path>
</g>
</svg>
</svg>

View File

@@ -1,7 +1,7 @@
title: $:/core/images/theme-button
tags: $:/tags/Image
<svg class="tc-image-theme-button tc-image-button" width="22pt" height="22pt" viewBox="0 0 128 129">
<svg class="tc-image-theme-button tc-image-button" width="22pt" height="22pt" viewBox="0 0 128 128">
<g fill-rule="evenodd">
<g transform="translate(6.762422, 19.968999)">
<path d="M0.824945506,108.186742 C0.664785639,108.187747 0.504640965,108.188251 0.344516735,108.188251 C24.6927592,97.3230528 16.4618388,61.4785938 43.121606,61.4785936 C43.3514982,62.5099075 43.5895175,63.6196137 43.8937798,64.7474092 C25.0518979,61.7172401 26.754298,99.6790423 0.824939051,108.186742 Z M1.34304326,108.181747 C29.613352,107.814217 58.1805158,91.9297101 58.1805151,75.5906019 C51.4386888,75.5906018 47.9457839,73.0599394 45.9513275,69.8149659 C33.880418,64.7217657 23.8678719,103.061726 1.34301955,108.181748 Z"></path>

8
core/images/tip.tid Normal file
View File

@@ -0,0 +1,8 @@
title: $:/core/images/tip
tags: $:/tags/Image
<svg class="tc-image-tip tc-image-button" width="22pt" height="22pt" viewBox="0 0 128 128">
<g fill-rule="evenodd">
<path d="M64,128.241818 C99.346224,128.241818 128,99.5880417 128,64.2418177 C128,28.8955937 99.346224,0.241817675 64,0.241817675 C28.653776,0.241817675 0,28.8955937 0,64.2418177 C0,99.5880417 28.653776,128.241818 64,128.241818 Z M75.9358659,91.4531941 C75.3115438,95.581915 70.2059206,98.8016748 64,98.8016748 C57.7940794,98.8016748 52.6884562,95.581915 52.0641341,91.4531941 C54.3299053,94.0502127 58.8248941,95.8192805 64,95.8192805 C69.1751059,95.8192805 73.6700947,94.0502127 75.9358659,91.4531941 L75.9358659,91.4531941 Z M75.9358659,95.9453413 C75.3115438,100.074062 70.2059206,103.293822 64,103.293822 C57.7940794,103.293822 52.6884562,100.074062 52.0641341,95.9453413 C54.3299053,98.5423599 58.8248941,100.311428 64,100.311428 C69.1751059,100.311428 73.6700947,98.5423599 75.9358659,95.9453413 L75.9358659,95.9453413 Z M75.9358659,100.40119 C75.3115438,104.529911 70.2059206,107.74967 64,107.74967 C57.7940794,107.74967 52.6884562,104.529911 52.0641341,100.40119 C54.3299053,102.998208 58.8248941,104.767276 64,104.767276 C69.1751059,104.767276 73.6700947,102.998208 75.9358659,100.40119 L75.9358659,100.40119 Z M75.9358659,104.893337 C75.3115438,109.022058 70.2059206,112.241818 64,112.241818 C57.7940794,112.241818 52.6884562,109.022058 52.0641341,104.893337 C54.3299053,107.490356 58.8248941,109.259423 64,109.259423 C69.1751059,109.259423 73.6700947,107.490356 75.9358659,104.893337 L75.9358659,104.893337 Z M64.3010456,24.2418177 C75.9193117,24.2418188 88.0000013,32.0619847 88,48.4419659 C87.9999987,64.8219472 75.9193018,71.7540963 75.9193021,83.5755932 C75.9193022,89.4486648 70.0521957,92.8368862 63.9999994,92.8368862 C57.947803,92.8368862 51.9731007,89.8295115 51.9731007,83.5755932 C51.9731007,71.1469799 39.9999998,65.4700602 40,48.4419647 C40.0000002,31.4138691 52.6827796,24.2418166 64.3010456,24.2418177 Z"></path>
</g>
</svg>

8
core/images/twitter.tid Normal file
View File

@@ -0,0 +1,8 @@
title: $:/core/images/twitter
tags: $:/tags/Image
<svg class="tc-image-twitter tc-image-button" width="22pt" height="22pt" viewBox="0 0 128 128">
<g fill-rule="evenodd">
<path d="M41.6263422,115.803477 C27.0279663,115.803477 13.4398394,111.540813 1.99987456,104.234833 C4.02221627,104.472643 6.08004574,104.594302 8.16644978,104.594302 C20.277456,104.594302 31.4238403,100.47763 40.270894,93.5715185 C28.9590538,93.3635501 19.4123842,85.9189246 16.1230832,75.6885328 C17.7011365,75.9892376 19.320669,76.1503787 20.9862896,76.1503787 C23.344152,76.1503787 25.6278127,75.8359011 27.7971751,75.247346 C15.9709927,72.8821073 7.06079851,62.4745062 7.06079851,49.9982394 C7.06079851,49.8898938 7.06079851,49.7820074 7.06264203,49.67458 C10.5482779,51.6032228 14.5339687,52.7615103 18.7717609,52.8951059 C11.8355159,48.277565 7.2714207,40.3958845 7.2714207,31.4624258 C7.2714207,26.7434257 8.54621495,22.3200804 10.7713439,18.5169676 C23.5211299,34.0957738 42.568842,44.3472839 64.0532269,45.4210985 C63.6126256,43.5365285 63.3835682,41.5711584 63.3835682,39.5529928 C63.3835682,25.3326379 74.95811,13.8034766 89.2347917,13.8034766 C96.6697089,13.8034766 103.387958,16.930807 108.103682,21.9353619 C113.991886,20.780288 119.52429,18.6372496 124.518847,15.6866694 C122.588682,21.6993889 118.490075,26.7457211 113.152623,29.9327334 C118.381769,29.3102055 123.363882,27.926045 127.999875,25.8780385 C124.534056,31.0418981 120.151087,35.5772616 115.100763,39.2077561 C115.150538,40.3118708 115.175426,41.4224128 115.175426,42.538923 C115.175426,76.5663154 89.1744164,115.803477 41.6263422,115.803477"></path>
</g>
</svg>

9
core/images/up-arrow.tid Normal file
View File

@@ -0,0 +1,9 @@
created: 20150316000544368
modified: 20150316000831867
tags: $:/tags/Image
title: $:/core/images/up-arrow
<svg class="tc-image-up-arrow tc-image-button" width="22pt" height="22pt" viewBox="0 0 128 128">
<path transform="rotate(-135, 63.8945, 64.1752)" d="m109.07576,109.35336c-1.43248,1.43361 -3.41136,2.32182 -5.59717,2.32182l-79.16816,0c-4.36519,0 -7.91592,-3.5444 -7.91592,-7.91666c0,-4.36337 3.54408,-7.91667 7.91592,-7.91667l71.25075,0l0,-71.25074c0,-4.3652 3.54442,-7.91592 7.91667,-7.91592c4.36336,0 7.91667,3.54408 7.91667,7.91592l0,79.16815c0,2.1825 -0.88602,4.16136 -2.3185,5.59467l-0.00027,-0.00056l0.00001,-0.00001z" />
</svg>

8
core/images/warning.tid Normal file
View File

@@ -0,0 +1,8 @@
title: $:/core/images/warning
tags: $:/tags/Image
<svg class="tc-image-warning tc-image-button" width="22pt" height="22pt" viewBox="0 0 128 128">
<g fill-rule="evenodd">
<path d="M57.0717968,11 C60.1509982,5.66666667 67.8490018,5.66666667 70.9282032,11 L126.353829,107 C129.433031,112.333333 125.584029,119 119.425626,119 L8.57437416,119 C2.41597129,119 -1.43303051,112.333333 1.64617093,107 L57.0717968,11 Z M64,37 C59.581722,37 56,40.5820489 56,44.9935776 L56,73.0064224 C56,77.4211534 59.5907123,81 64,81 C68.418278,81 72,77.4179511 72,73.0064224 L72,44.9935776 C72,40.5788466 68.4092877,37 64,37 Z M64,104 C68.418278,104 72,100.418278 72,96 C72,91.581722 68.418278,88 64,88 C59.581722,88 56,91.581722 56,96 C56,100.418278 59.581722,104 64,104 Z"></path>
</g>
</svg>

View File

@@ -3,7 +3,7 @@ title: $:/language/Buttons/
AdvancedSearch/Caption: advanced search
AdvancedSearch/Hint: Advanced search
Cancel/Caption: cancel
Cancel/Hint: Cancel editing this tiddler
Cancel/Hint: Discard changes to this tiddler
Clone/Caption: clone
Clone/Hint: Clone this tiddler
Close/Caption: close
@@ -32,6 +32,8 @@ ExportTiddlers/Caption: export tiddlers
ExportTiddlers/Hint: Export tiddlers
FullScreen/Caption: full-screen
FullScreen/Hint: Enter or leave full-screen mode
Help/Caption: help
Help/Hint: Show help panel
Import/Caption: import
Import/Hint: Import files
Info/Caption: info
@@ -56,8 +58,8 @@ Permaview/Caption: permaview
Permaview/Hint: Set browser address bar to a direct link to all the tiddlers in this story
Refresh/Caption: refresh
Refresh/Hint: Perform a full refresh of the wiki
Save/Caption: save
Save/Hint: Save this tiddler
Save/Caption: ok
Save/Hint: Confirm changes to this tiddler
SaveWiki/Caption: save changes
SaveWiki/Hint: Save changes
StoryView/Caption: storyview

View File

@@ -38,6 +38,8 @@ Palette/Editor/Reset/Caption: reset
Palette/HideEditor/Caption: hide editor
Palette/Prompt: Current palette:
Palette/ShowEditor/Caption: show editor
Plugins/Add/Hint: Install plugins from the official library
Plugins/Add/Caption: Get more plugins
Plugins/Caption: Plugins
Plugins/Disable/Caption: disable
Plugins/Disable/Hint: Disable this plugin when reloading page
@@ -45,9 +47,13 @@ Plugins/Disabled/Status: (disabled)
Plugins/Empty/Hint: None
Plugins/Enable/Caption: enable
Plugins/Enable/Hint: Enable this plugin when reloading page
Plugins/Language/Prompt: Languages
Plugins/Plugin/Prompt: Plugins
Plugins/Theme/Prompt: Themes
Plugins/Installed/Hint: Currently installed plugins:
Plugins/Languages/Caption: Languages
Plugins/Languages/Hint: Language pack plugins
Plugins/Plugins/Caption: Plugins
Plugins/Plugins/Hint: Plugins
Plugins/Themes/Caption: Themes
Plugins/Themes/Hint: Theme plugins
Saving/Caption: Saving
Saving/Heading: Saving
Saving/TiddlySpot/Advanced/Heading: Advanced Settings
@@ -56,7 +62,7 @@ Saving/TiddlySpot/Backups: Backups
Saving/TiddlySpot/Description: These settings are only used when saving to http://tiddlyspot.com or a compatible remote server
Saving/TiddlySpot/Filename: Upload Filename
Saving/TiddlySpot/Heading: ~TiddlySpot
Saving/TiddlySpot/Hint: //The server URL defaults to `http://<wikiname>.tiddlyspot.com/store.cgi` and can be changed to use a custom server address//
Saving/TiddlySpot/Hint: //The server URL defaults to `http://<wikiname>.tiddlyspot.com/store.cgi` and can be changed to use a custom server address, e.g. `http://example.com/store.php`.//
Saving/TiddlySpot/Password: Password
Saving/TiddlySpot/ServerURL: Server URL
Saving/TiddlySpot/UploadDir: Upload Directory
@@ -80,6 +86,8 @@ Settings/ToolbarButtons/Caption: Toolbar Buttons
Settings/ToolbarButtons/Hint: Default toolbar button appearance:
Settings/ToolbarButtons/Icons/Description: Include icon
Settings/ToolbarButtons/Text/Description: Include text
Settings/DefaultSidebarTab/Caption: Default Sidebar Tab
Settings/DefaultSidebarTab/Hint: Specify which sidebar tab is displayed by default
StoryView/Caption: Story View
StoryView/Prompt: Current view:
Theme/Caption: Theme

View File

@@ -1,6 +1,6 @@
title: $:/language/Exporters/
StaticRiver: River of tiddlers as static HTML file
JsonFile: JSON tiddlers file
CsvFile: CSV tiddlers file
TidFile: Single tiddler ".tid" file
StaticRiver: Static HTML
JsonFile: JSON file
CsvFile: CSV file
TidFile: ".tid" file

View File

@@ -11,3 +11,4 @@ SystemTiddlers: System tiddlers
ShadowTiddlers: Shadow tiddlers
OverriddenShadowTiddlers: Overridden shadow tiddlers
SystemTags: System tags
TypedTiddlers: Non wiki-text tiddlers

View File

@@ -7,8 +7,11 @@ Before you start storing important information in ~TiddlyWiki it is important to
!! Set up this ~TiddlyWiki
<div class="tc-control-panel">
|<$link to="$:/SiteTitle"><<lingo Title/Prompt>></$link> |<$edit-text tiddler="$:/SiteTitle" default="" tag="input"/> |
|<$link to="$:/SiteSubtitle"><<lingo Subtitle/Prompt>></$link> |<$edit-text tiddler="$:/SiteSubtitle" default="" tag="input"/> |
|<$link to="$:/DefaultTiddlers"><<lingo DefaultTiddlers/Prompt>></$link> |<<lingo DefaultTiddlers/TopHint>><br> <$edit-text tag="textarea" tiddler="$:/DefaultTiddlers"/><br>//<<lingo DefaultTiddlers/BottomHint>>// |
</div>
See the [[control panel|$:/ControlPanel]] for more options.

View File

@@ -4,7 +4,7 @@ description: Render tiddlers matching a filter to a specified ContentType
Render a set of tiddlers matching a filter to separate files of a specified ContentType (defaults to `text/html`) and extension (defaults to `.html`).
```
--rendertiddlers <filter> <template> <pathname> [<type>] [<extension>]
--rendertiddlers <filter> <template> <pathname> [<type>] [<extension>] ["noclean"]
```
For example:
@@ -15,4 +15,4 @@ For example:
By default, the pathname is resolved relative to the `output` subdirectory of the edition directory. The `--output` command can be used to direct output to a different directory.
Any files in the target directory are deleted. The target directory is recursively created if it is missing.
Any files in the target directory are deleted unless the "noclean" parameter is specified. The target directory is recursively created if it is missing.

View File

@@ -9,11 +9,19 @@ ConfirmDeleteTiddler: Do you wish to delete the tiddler "<$text text=<<title>>/>
ConfirmOverwriteTiddler: Do you wish to overwrite the tiddler "<$text text=<<title>>/>"?
ConfirmEditShadowTiddler: You are about to edit a ShadowTiddler. Any changes will override the default system making future upgrades non-trivial. Are you sure you want to edit "<$text text=<<title>>/>"?
DefaultNewTiddlerTitle: New Tiddler
DropMessage: Drop here (or click escape to cancel)
DropMessage: Drop here (or use the 'Escape' key to cancel)
Encryption/Cancel: Cancel
Encryption/ConfirmClearPassword: Do you wish to clear the password? This will remove the encryption applied when saving this wiki
Encryption/PromptSetPassword: Set a new password for this TiddlyWiki
Encryption/Username: Username
Encryption/Password: Password
Encryption/RepeatPassword: Repeat password
Encryption/PasswordNoMatch: Passwords do not match
Encryption/SetPassword: Set password
InvalidFieldName: Illegal characters in field name "<$text text=<<fieldName>>/>". Fields can only contain lowercase letters, digits and the characters underscore (`_`), hyphen (`-`) and period (`.`)
MissingTiddler/Hint: Missing tiddler "<$text text=<<currentTiddler>>/>" - click {{$:/core/images/edit-button}} to create
OfficialPluginLibrary: Official ~TiddlyWiki Plugin Library
PluginReloadWarning: Please save {{$:/core/ui/Buttons/save-wiki}} and reload {{$:/core/ui/Buttons/refresh}} to allow changes to plugins to take effect
RecentChanges/DateFormat: DDth MMM YYYY
SystemTiddler/Tooltip: This is a system tiddler
TagManager/Colour/Heading: Colour

View File

@@ -23,35 +23,12 @@ var Command = function(params,commander) {
};
Command.prototype.execute = function() {
var fs = require("fs"),
path = require("path"),
self = this;
// Enumerate the edition paths
var editionPaths = $tw.getLibraryItemSearchPaths($tw.config.editionsPath,$tw.config.editionsEnvVar),
editions = {};
for(var editionIndex=0; editionIndex<editionPaths.length; editionIndex++) {
var editionPath = editionPaths[editionIndex];
// Enumerate the folders
var entries = fs.readdirSync(editionPath);
for(var entryIndex=0; entryIndex<entries.length; entryIndex++) {
var entry = entries[entryIndex];
// Check if directories have a valid tiddlywiki.info
if(!editions[entry] && $tw.utils.isDirectory(path.resolve(editionPath,entry))) {
var info;
try {
info = JSON.parse(fs.readFileSync(path.resolve(editionPath,entry,"tiddlywiki.info"),"utf8"));
} catch(ex) {
}
if(info) {
editions[entry] = info.description || "";
}
}
}
}
var self = this;
// Output the list
this.commander.streams.output.write("Available editions:\n\n");
$tw.utils.each(editions,function(description,name) {
self.commander.streams.output.write(" " + name + ": " + description + "\n");
var editionInfo = $tw.utils.getEditionInfo();
$tw.utils.each(editionInfo,function(info,name) {
self.commander.streams.output.write(" " + name + ": " + info.description + "\n");
});
this.commander.streams.output.write("\n");
return null;

View File

@@ -35,19 +35,31 @@ Command.prototype.execute = function() {
wiki = this.commander.wiki,
filter = this.params[0],
template = this.params[1],
pathname = path.resolve(this.commander.outputPath,this.params[2]),
outputPath = this.commander.outputPath,
pathname = path.resolve(outputPath,this.params[2]),
type = this.params[3] || "text/html",
extension = this.params[4] || ".html",
deleteDirectory = (this.params[5] || "") != "noclean",
tiddlers = wiki.filterTiddlers(filter);
$tw.utils.deleteDirectory(pathname);
$tw.utils.createDirectory(pathname);
if(deleteDirectory) {
$tw.utils.deleteDirectory(pathname);
}
$tw.utils.each(tiddlers,function(title) {
var parser = wiki.parseTiddler(template),
widgetNode = wiki.makeWidget(parser,{variables: {currentTiddler: title}});
var container = $tw.fakeDocument.createElement("div");
widgetNode = wiki.makeWidget(parser,{variables: {currentTiddler: title}}),
container = $tw.fakeDocument.createElement("div");
widgetNode.render(container,null);
var text = type === "text/html" ? container.innerHTML : container.textContent;
fs.writeFileSync(path.resolve(pathname,encodeURIComponent(title) + extension),text,"utf8");
var text = type === "text/html" ? container.innerHTML : container.textContent,
exportPath = null;
if($tw.utils.hop($tw.macros,"tv-get-export-path")) {
var macroPath = $tw.macros["tv-get-export-path"].run.apply(self,[title]);
if(macroPath) {
exportPath = path.resolve(outputPath,macroPath + extension);
}
}
var finalPath = exportPath || path.resolve(pathname,encodeURIComponent(title) + extension);
$tw.utils.createFileDirectories(finalPath);
fs.writeFileSync(finalPath,text,"utf8");
});
return null;
};

View File

@@ -0,0 +1,90 @@
/*\
title: $:/core/modules/commands/savelibrarytiddlers.js
type: application/javascript
module-type: command
Command to save the subtiddlers of a bundle tiddler as a series of JSON files
--savelibrarytiddlers <tiddler> <pathname> <skinnylisting>
The tiddler identifies the bundle tiddler that contains the subtiddlers.
The pathname specifies the pathname to the folder in which the JSON files should be saved. The filename is the URL encoded title of the subtiddler.
The skinnylisting specifies the title of the tiddler to which a JSON catalogue of the subtiddlers will be saved. The JSON file contains the same data as the bundle tiddler but with the `text` field removed.
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
"use strict";
exports.info = {
name: "savelibrarytiddlers",
synchronous: true
};
var Command = function(params,commander,callback) {
this.params = params;
this.commander = commander;
this.callback = callback;
};
Command.prototype.execute = function() {
if(this.params.length < 2) {
return "Missing filename";
}
var self = this,
fs = require("fs"),
path = require("path"),
containerTitle = this.params[0],
filter = this.params[1],
basepath = this.params[2],
skinnyListTitle = this.params[3];
// Get the container tiddler as data
var containerData = self.commander.wiki.getTiddlerData(containerTitle,undefined);
if(!containerData) {
return "'" + containerTitle + "' is not a tiddler bundle";
}
// Filter the list of plugins
var pluginList = [];
$tw.utils.each(containerData.tiddlers,function(tiddler,title) {
pluginList.push(title);
});
var filteredPluginList;
if(filter) {
filteredPluginList = self.commander.wiki.filterTiddlers(filter,null,self.commander.wiki.makeTiddlerIterator(pluginList));
} else {
filteredPluginList = pluginList;
}
// Iterate through the plugins
var skinnyList = [];
$tw.utils.each(filteredPluginList,function(title) {
var tiddler = containerData.tiddlers[title];
// Save each JSON file and collect the skinny data
var pathname = path.resolve(self.commander.outputPath,basepath + encodeURIComponent(title) + ".json");
$tw.utils.createFileDirectories(pathname);
fs.writeFileSync(pathname,JSON.stringify(tiddler,null,$tw.config.preferences.jsonSpaces),"utf8");
// Collect the skinny list data
var pluginTiddlers = JSON.parse(tiddler.text),
readmeContent = (pluginTiddlers.tiddlers[title + "/readme"] || {}).text,
iconTiddler = pluginTiddlers.tiddlers[title + "/icon"] || {},
iconType = iconTiddler.type,
iconText = iconTiddler.text,
iconContent;
if(iconType && iconText) {
iconContent = $tw.utils.makeDataUri(iconText,iconType);
}
skinnyList.push($tw.utils.extend({},tiddler,{text: undefined, readme: readmeContent, icon: iconContent}));
});
// Save the catalogue tiddler
if(skinnyListTitle) {
self.commander.wiki.setTiddlerData(skinnyListTitle,skinnyList);
}
return null;
};
exports.Command = Command;
})();

View File

@@ -13,8 +13,8 @@ Adds tiddler filtering methods to the $tw.Wiki object.
"use strict";
/*
Parses an operation within a filter string
results: Array of array of operator nodes into which results should be inserted
Parses an operation (i.e. a run) within a filter string
operators: Array of array of operator nodes into which results should be inserted
filterString: filter string
p: start position within the string
Returns the new start position, after the parsed operation
@@ -108,7 +108,7 @@ exports.parseFilter = function(filterString) {
p = 0, // Current position in the filter string
match;
var whitespaceRegExp = /(\s+)/mg,
operandRegExp = /((?:\+|\-)?)(?:(\[)|("(?:[^"])*")|('(?:[^'])*')|([^\s\[\]]+))/mg;
operandRegExp = /((?:\+|\-)?)(?:(\[)|(?:"([^"]*)")|(?:'([^']*)')|([^\s\[\]]+))/mg;
while(p < filterString.length) {
// Skip any whitespace
whitespaceRegExp.lastIndex = p;
@@ -202,6 +202,7 @@ exports.compileFilter = function(filterString) {
if(operator.variable) {
operand = widget.getVariable(operator.operand,{defaultValue: ""});
}
// Invoke the appropriate filteroperator module
results = operatorFunction(accumulator,{
operator: operator.operator,
operand: operand,

View File

@@ -17,15 +17,16 @@ Export our filter function
*/
exports.eachday = function(source,operator,options) {
var results = [],
values = [];
values = [],
fieldName = operator.operand || "modified";
// Function to convert a date/time to a date integer
var toDate = function(value) {
value = (new Date(value)).setHours(0,0,0,0);
return value+0;
};
source(function(tiddler,title) {
if(tiddler && tiddler.fields[operator.operand]) {
var value = toDate(tiddler.fields[operator.operand]);
if(tiddler && tiddler.fields[fieldName]) {
var value = toDate($tw.utils.parseDate(tiddler.fields[fieldName]));
if(values.indexOf(value) === -1) {
values.push(value);
results.push(title);

View File

@@ -0,0 +1,31 @@
/*\
title: $:/core/modules/filters/editiondescription.js
type: application/javascript
module-type: filteroperator
Filter operator for returning the descriptions of the specified edition names
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
"use strict";
/*
Export our filter function
*/
exports.editiondescription = function(source,operator,options) {
var results = [],
editionInfo = $tw.utils.getEditionInfo();
if(editionInfo) {
source(function(tiddler,title) {
if($tw.utils.hop(editionInfo,title)) {
results.push(editionInfo[title].description || "");
}
});
}
return results;
};
})();

View File

@@ -0,0 +1,30 @@
/*\
title: $:/core/modules/filters/editions.js
type: application/javascript
module-type: filteroperator
Filter operator for returning the names of the available editions in this wiki
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
"use strict";
/*
Export our filter function
*/
exports.editions = function(source,operator,options) {
var results = [],
editionInfo = $tw.utils.getEditionInfo();
if(editionInfo) {
$tw.utils.each(editionInfo,function(info,name) {
results.push(name);
});
}
results.sort();
return results;
};
})();

View File

@@ -0,0 +1,32 @@
/*\
title: $:/core/modules/filters/getindex.js
type: application/javascript
module-type: filteroperator
returns the value at a given index of datatiddlers
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
"use strict";
/*
Export our filter function
*/
exports.getindex = function(source,operator,options) {
var data,title,results = [];
if(operator.operand){
source(function(tiddler,title) {
title = tiddler ? tiddler.fields.title : title;
data = options.wiki.extractTiddlerDataItem(tiddler,operator.operand);
if(data) {
results.push(data);
}
});
}
return results;
};
})();

View File

@@ -0,0 +1,36 @@
/*\
title: $:/core/modules/filters/haschanged.js
type: application/javascript
module-type: filteroperator
Filter operator returns tiddlers from the list that have a non-zero changecount.
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
"use strict";
/*
Export our filter function
*/
exports.haschanged = function(source,operator,options) {
var results = [];
if(operator.prefix === "!") {
source(function(tiddler,title) {
if(options.wiki.getChangeCount(title) === 0) {
results.push(title);
}
});
} else {
source(function(tiddler,title) {
if(options.wiki.getChangeCount(title) > 0) {
results.push(title);
}
});
}
return results;
};
})();

View File

@@ -41,7 +41,11 @@ exports.regexp = function(source,operator,options) {
regexpString = regexpString.substr(0,regexpString.length - match[0].length);
}
}
regexp = new RegExp(regexpString,flags);
try {
regexp = new RegExp(regexpString,flags);
} catch(e) {
return ["" + e];
}
// Process the incoming tiddlers
if(operator.prefix === "!") {
source(function(tiddler,title) {

View File

@@ -25,7 +25,7 @@ exports.sameday = function(source,operator,options) {
};
source(function(tiddler,title) {
if(tiddler && tiddler.fields[fieldName]) {
if(isSameDay(tiddler.fields[fieldName])) {
if(isSameDay($tw.utils.parseDate(tiddler.fields[fieldName]))) {
results.push(title);
}
}

View File

@@ -29,16 +29,7 @@ exports.params = [
Run the macro
*/
exports.run = function(text,type) {
type = type || "text/vnd.tiddlywiki";
var typeInfo = $tw.config.contentTypeInfo[type] || $tw.config.contentTypeInfo["text/plain"],
isBase64 = typeInfo.encoding === "base64",
parts = [];
parts.push("data:");
parts.push(type);
parts.push(isBase64 ? ";base64" : "");
parts.push(",");
parts.push(isBase64 ? text : encodeURIComponent(text));
return parts.join("");
return $tw.utils.makeDataUri(text,type);
};
})();

View File

@@ -0,0 +1,29 @@
/*\
title: $:/core/modules/macros/resolvepath.js
type: application/javascript
module-type: macro
Resolves a relative path for an absolute rootpath.
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
"use strict";
exports.name = "resolvepath";
exports.params = [
{name: "source"},
{name: "root"}
];
/*
Run the macro
*/
exports.run = function(source, root) {
return $tw.utils.resolvePath(source, root);
};
})();

View File

@@ -23,7 +23,8 @@ var HtmlParser = function(type,text,options) {
type: "element",
tag: "iframe",
attributes: {
src: {type: "string", value: src}
src: {type: "string", value: src},
sandbox: {type: "string", value: "sandbox"}
}
}];
};

View File

@@ -27,18 +27,13 @@ exports.init = function(parser) {
this.matchRegExp = /\[\[(.*?)(?:\|(.*?))?\]\]/mg;
};
var isLinkExternal = function(to) {
var externalRegExp = /(?:file|http|https|mailto|ftp|irc|news|data|skype):[^\s<>{}\[\]`|'"\\^~]+(?:\/|\b)/i;
return externalRegExp.test(to);
};
exports.parse = function() {
// Move past the match
this.parser.pos = this.matchRegExp.lastIndex;
// Process the link
var text = this.match[1],
link = this.match[2] || text;
if(isLinkExternal(link)) {
if($tw.utils.isLinkExternal(link)) {
return [{
type: "element",
tag: "a",

View File

@@ -0,0 +1,45 @@
/*\
title: $:/core/modules/parsers/wikiparser/rules/syslink.js
type: application/javascript
module-type: wikirule
Wiki text inline rule for system tiddler links.
Can be suppressed preceding them with `~`.
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
"use strict";
exports.name = "syslink";
exports.types = {inline: true};
exports.init = function(parser) {
this.parser = parser;
// Regexp to match
this.matchRegExp = /~?\$:[^\s<|]+(?:[^\s<|])/mg;
};
exports.parse = function() {
var match = this.match[0];
// Move past the match
this.parser.pos = this.matchRegExp.lastIndex;
// Create the link unless it is suppressed
if(match.substr(0,1) === "~") {
return [{type: "text", text: match.substr(1)}];
} else {
return [{
type: "link",
attributes: {
to: {type: "string", value: match}
},
children: [{
type: "text",
text: match
}]
}];
}
};
})();

View File

@@ -75,14 +75,14 @@ function SaverHandler(options) {
}
});
// Set up our beforeunload handler
window.addEventListener("beforeunload",function(event) {
window.onbeforeunload = function(event) {
var confirmationMessage;
if(self.isDirty()) {
confirmationMessage = $tw.language.getString("UnsavedChangesWarning");
event.returnValue = confirmationMessage; // Gecko
}
return confirmationMessage;
});
};
}
// Install the save action handlers
if($tw.browser) {

View File

@@ -0,0 +1,155 @@
/*\
title: $:/core/modules/browser-messaging.js
type: application/javascript
module-type: startup
Browser message handling
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
"use strict";
// Export name and synchronous status
exports.name = "browser-messaging";
exports.platforms = ["browser"];
exports.after = ["startup"];
exports.synchronous = true;
/*
Load a specified url as an iframe and call the callback when it is loaded. If the url is already loaded then the existing iframe instance is used
*/
function loadIFrame(url,callback) {
// Check if iframe already exists
var iframeInfo = $tw.browserMessaging.iframeInfoMap[url];
if(iframeInfo) {
// We've already got the iframe
callback(null,iframeInfo);
} else {
// Create the iframe and save it in the list
var iframe = document.createElement("iframe"),
iframeInfo = {
url: url,
status: "loading",
domNode: iframe
};
$tw.browserMessaging.iframeInfoMap[url] = iframeInfo;
saveIFrameInfoTiddler(iframeInfo);
// Add the iframe to the DOM and hide it
iframe.style.display = "none";
document.body.appendChild(iframe);
// Set up onload
iframe.onload = function() {
iframeInfo.status = "loaded";
saveIFrameInfoTiddler(iframeInfo);
callback(null,iframeInfo);
};
iframe.onerror = function() {
callback("Cannot load iframe");
};
try {
iframe.src = url;
} catch(ex) {
callback(ex);
}
}
}
function saveIFrameInfoTiddler(iframeInfo) {
$tw.wiki.addTiddler(new $tw.Tiddler($tw.wiki.getCreationFields(),{
title: "$:/temp/ServerConnection/" + iframeInfo.url,
text: iframeInfo.status,
tags: ["$:/tags/ServerConnection"],
url: iframeInfo.url
},$tw.wiki.getModificationFields()));
}
exports.startup = function() {
// Initialise the store of iframes we've created
$tw.browserMessaging = {
iframeInfoMap: {} // Hashmap by URL of {url:,status:"loading/loaded",domNode:}
};
// Listen for widget messages to control loading the plugin library
$tw.rootWidget.addEventListener("tm-load-plugin-library",function(event) {
var paramObject = event.paramObject || {},
url = paramObject.url;
if(url) {
loadIFrame(url,function(err,iframeInfo) {
if(err) {
alert("Error loading plugin library: " + url);
} else {
iframeInfo.domNode.contentWindow.postMessage({
verb: "GET",
url: "recipes/library/tiddlers.json",
cookies: {
type: "save-info",
infoTitlePrefix: paramObject.infoTitlePrefix || "$:/temp/RemoteAssetInfo/",
url: url
}
},"*");
}
});
}
});
$tw.rootWidget.addEventListener("tm-load-plugin-from-library",function(event) {
var paramObject = event.paramObject || {},
url = paramObject.url,
title = paramObject.title;
if(url && title) {
loadIFrame(url,function(err,iframeInfo) {
if(err) {
alert("Error loading plugin library: " + url);
} else {
iframeInfo.domNode.contentWindow.postMessage({
verb: "GET",
url: "recipes/library/tiddlers/" + encodeURIComponent(title) + ".json",
cookies: {
type: "save-tiddler",
url: url
}
},"*");
}
});
}
});
// Listen for window messages from other windows
window.addEventListener("message",function listener(event){
console.log("browser-messaging: ",document.location.toString())
console.log("browser-messaging: Received message from",event.origin);
console.log("browser-messaging: Message content",event.data);
switch(event.data.verb) {
case "GET-RESPONSE":
if(event.data.status.charAt(0) === "2") {
if(event.data.cookies) {
if(event.data.cookies.type === "save-info") {
var tiddlers = JSON.parse(event.data.body);
$tw.utils.each(tiddlers,function(tiddler) {
$tw.wiki.addTiddler(new $tw.Tiddler($tw.wiki.getCreationFields(),tiddler,{
title: event.data.cookies.infoTitlePrefix + event.data.cookies.url + "/" + tiddler.title,
"original-title": tiddler.title,
text: "",
type: "text/vnd.tiddlywiki",
"original-type": tiddler.type,
"plugin-type": undefined,
"original-plugin-type": tiddler["plugin-type"],
"module-type": undefined,
"original-module-type": tiddler["module-type"],
tags: ["$:/tags/RemoteAssetInfo"],
"original-tags": $tw.utils.stringifyList(tiddler.tags || []),
"server-url": event.data.cookies.url
},$tw.wiki.getModificationFields()));
});
} else if(event.data.cookies.type === "save-tiddler") {
var tiddler = JSON.parse(event.data.body);
$tw.wiki.addTiddler(new $tw.Tiddler(tiddler));
}
}
}
break;
}
},false);
};
})();

View File

@@ -23,7 +23,7 @@ exports.startup = function() {
$tw.passwordPrompt.createPrompt({
serviceName: $tw.language.getString("Encryption/PromptSetPassword"),
noUserName: true,
submitText: "Set password",
submitText: $tw.language.getString("Encryption/SetPassword"),
canCancel: true,
repeatPassword: true,
callback: function(data) {

View File

@@ -62,7 +62,7 @@ exports.startup = function() {
timerId;
function refresh() {
// Process the refresh
$tw.pageWidgetNode.refresh(deferredChanges,$tw.pageContainer,null);
$tw.pageWidgetNode.refresh(deferredChanges);
deferredChanges = Object.create(null);
}
// Add the change event handler

View File

@@ -30,7 +30,7 @@ var ZoominListView = function(listWidget) {
if(!(domNode instanceof Element)) {
return;
}
if(targetTiddler !== itemWidget.parseTreeNode.itemTitle || (!targetTiddler && index)) {
if((targetTiddler && targetTiddler !== itemWidget.parseTreeNode.itemTitle) || (!targetTiddler && index)) {
domNode.style.display = "none";
} else {
self.currentTiddlerDomNode = domNode;

View File

@@ -39,14 +39,14 @@ function Syncer(options) {
// Browser event handlers
if($tw.browser) {
// Set up our beforeunload handler
window.addEventListener("beforeunload",function(event) {
window.onbeforeunload = function(event) {
var confirmationMessage;
if(self.isDirty()) {
confirmationMessage = $tw.language.getString("UnsavedChangesWarning");
event.returnValue = confirmationMessage; // Gecko
}
return confirmationMessage;
});
};
// Listen out for login/logout/refresh events in the browser
$tw.rootWidget.addEventListener("tm-login",function() {
self.handleLoginEvent();

View File

@@ -15,6 +15,9 @@ Upgrader module that checks that plugins are newer than any already installed ve
var UPGRADE_LIBRARY_TITLE = "$:/UpgradeLibrary";
var BLOCKED_PLUGINS = {
"$:/themes/tiddlywiki/stickytitles": {
versions: ["*"]
},
"$:/plugins/tiddlywiki/fullscreen": {
versions: ["*"]
}
@@ -37,14 +40,12 @@ exports.upgrade = function(wiki,titles,tiddlers) {
var incomingTiddler = tiddlers[title];
// Check if we're dealing with a plugin
if(incomingTiddler && incomingTiddler["plugin-type"] && incomingTiddler.version) {
// Upgrade the incoming plugin if we've got a newer version in the upgrade library
// Upgrade the incoming plugin if it is in the upgrade library
var libraryTiddler = getLibraryTiddler(title);
if(libraryTiddler && libraryTiddler["plugin-type"] && libraryTiddler.version) {
if($tw.utils.checkVersions(libraryTiddler.version,incomingTiddler.version)) {
tiddlers[title] = libraryTiddler;
messages[title] = $tw.language.getString("Import/Upgrader/Plugins/Upgraded",{variables: {incoming: incomingTiddler.version, upgraded: libraryTiddler.version}});
return;
}
tiddlers[title] = libraryTiddler;
messages[title] = $tw.language.getString("Import/Upgrader/Plugins/Upgraded",{variables: {incoming: incomingTiddler.version, upgraded: libraryTiddler.version}});
return;
}
// Suppress the incoming plugin if it is older than the currently installed one
var existingTiddler = wiki.getTiddler(title);

View File

@@ -148,9 +148,13 @@ exports.getFullScreenApis = function() {
"_fullscreenElement": d.webkitFullscreenElement !== undefined ? "webkitFullscreenElement" :
d.mozFullScreenElement !== undefined ? "mozFullScreenElement" :
d.msFullscreenElement !== undefined ? "msFullscreenElement" :
d.fullscreenElement !== undefined ? "fullscreenElement" : ""
d.fullscreenElement !== undefined ? "fullscreenElement" : "",
"_fullscreenChange": d.webkitFullscreenElement !== undefined ? "webkitfullscreenchange" :
d.mozFullScreenElement !== undefined ? "mozfullscreenchange" :
d.msFullscreenElement !== undefined ? "MSFullscreenChange" :
d.fullscreenElement !== undefined ? "fullscreenchange" : ""
};
if(!result._requestFullscreen || !result._exitFullscreen || !result._fullscreenElement) {
if(!result._requestFullscreen || !result._exitFullscreen || !result._fullscreenElement || !result._fullscreenChange) {
return null;
} else {
return result;

View File

@@ -70,6 +70,7 @@ Modal.prototype.display = function(title,options) {
// Render the title of the message
var headerWidgetNode = this.wiki.makeTranscludeWidget(title,{
field: "subtitle",
mode: "inline",
children: [{
type: "text",
attributes: {
@@ -112,6 +113,7 @@ Modal.prototype.display = function(title,options) {
}
var footerWidgetNode = this.wiki.makeTranscludeWidget(title,{
field: "footer",
mode: "inline",
children: [{
type: "button",
attributes: {

View File

@@ -68,24 +68,33 @@ PageScroller.prototype.scrollIntoView = function(element) {
height: clientBounds.height
};
// We'll consider the horizontal and vertical scroll directions separately via this function
// targetPos/targetSize - position and size of the target element
// currentPos/currentSize - position and size of the current scroll viewport
// returns: new position of the scroll viewport
var getEndPos = function(targetPos,targetSize,currentPos,currentSize) {
var newPos = currentPos;
// If the target is above/left of the current view, then scroll to it's top/left
if(targetPos <= currentPos) {
return targetPos;
newPos = targetPos;
// If the target is smaller than the window and the scroll position is too far up, then scroll till the target is at the bottom of the window
} else if(targetSize < currentSize && currentPos < (targetPos + targetSize - currentSize)) {
return targetPos + targetSize - currentSize;
newPos = targetPos + targetSize - currentSize;
// If the target is big, then just scroll to the top
} else if(currentPos < targetPos) {
return targetPos;
newPos = targetPos;
// Otherwise, stay where we are
} else {
return currentPos;
newPos = currentPos;
}
// If we are scrolling within 50 pixels of the top/left then snap to zero
if(newPos < 50) {
newPos = 0;
}
return newPos;
},
endX = getEndPos(bounds.left,bounds.width,scrollPosition.x,window.innerWidth),
endY = getEndPos(bounds.top,bounds.height,scrollPosition.y,window.innerHeight);
// Only scroll if necessary
// Only scroll if the position has changed
if(endX !== scrollPosition.x || endY !== scrollPosition.y) {
var self = this,
drawFrame;

View File

@@ -0,0 +1,48 @@
/*\
title: $:/core/modules/utils/edition-info.js
type: application/javascript
module-type: utils-node
Information about the available editions
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
"use strict";
var fs = require("fs"),
path = require("path");
var editionInfo;
exports.getEditionInfo = function() {
if(!editionInfo) {
// Enumerate the edition paths
var editionPaths = $tw.getLibraryItemSearchPaths($tw.config.editionsPath,$tw.config.editionsEnvVar);
editionInfo = {};
for(var editionIndex=0; editionIndex<editionPaths.length; editionIndex++) {
var editionPath = editionPaths[editionIndex];
// Enumerate the folders
var entries = fs.readdirSync(editionPath);
for(var entryIndex=0; entryIndex<entries.length; entryIndex++) {
var entry = entries[entryIndex];
// Check if directories have a valid tiddlywiki.info
if(!editionInfo[entry] && $tw.utils.isDirectory(path.resolve(editionPath,entry))) {
var info;
try {
info = JSON.parse(fs.readFileSync(path.resolve(editionPath,entry,"tiddlywiki.info"),"utf8"));
} catch(ex) {
}
if(info) {
editionInfo[entry] = info;
}
}
}
}
}
return editionInfo;
};
})();

View File

@@ -134,7 +134,7 @@ Object.defineProperty(TW_Element.prototype, "outerHTML", {
for(a=0; a<attr.length; a++) {
v = this.attributes[attr[a]];
if(v !== undefined) {
output.push(" ",attr[a],"='",$tw.utils.htmlEncode(v),"'");
output.push(" ",attr[a],"=\"",$tw.utils.htmlEncode(v),"\"");
}
}
}
@@ -144,7 +144,7 @@ Object.defineProperty(TW_Element.prototype, "outerHTML", {
style.push(s + ":" + this.style[s] + ";");
}
if(style.length > 0) {
output.push(" style='",style.join(""),"'")
output.push(" style=\"",style.join(""),"\"")
}
}
output.push(">");

View File

@@ -36,37 +36,43 @@ Alert a message
Logger.prototype.alert = function(/* args */) {
// Prepare the text of the alert
var text = Array.prototype.join.call(arguments," ");
// Check if there is an existing alert with the same text and the same component
var existingAlerts = $tw.wiki.getTiddlersWithTag(ALERT_TAG),
alertFields,
existingCount,
self = this;
$tw.utils.each(existingAlerts,function(title) {
var tiddler = $tw.wiki.getTiddler(title);
if(tiddler.fields.text === text && tiddler.fields.component === self.componentName && tiddler.fields.modified && (!alertFields || tiddler.fields.modified < alertFields.modified)) {
alertFields = $tw.utils.extend({},tiddler.fields);
// Create alert tiddlers in the browser
if($tw.browser) {
// Check if there is an existing alert with the same text and the same component
var existingAlerts = $tw.wiki.getTiddlersWithTag(ALERT_TAG),
alertFields,
existingCount,
self = this;
$tw.utils.each(existingAlerts,function(title) {
var tiddler = $tw.wiki.getTiddler(title);
if(tiddler.fields.text === text && tiddler.fields.component === self.componentName && tiddler.fields.modified && (!alertFields || tiddler.fields.modified < alertFields.modified)) {
alertFields = $tw.utils.extend({},tiddler.fields);
}
});
if(alertFields) {
existingCount = alertFields.count || 1;
} else {
alertFields = {
title: $tw.wiki.generateNewTitle("$:/temp/alerts/alert",{prefix: ""}),
text: text,
tags: [ALERT_TAG],
component: this.componentName
};
existingCount = 0;
}
});
if(alertFields) {
existingCount = alertFields.count || 1;
alertFields.modified = new Date();
if(++existingCount > 1) {
alertFields.count = existingCount;
} else {
alertFields.count = undefined;
}
$tw.wiki.addTiddler(new $tw.Tiddler(alertFields));
// Log the alert as well
this.log.apply(this,Array.prototype.slice.call(arguments,0));
} else {
alertFields = {
title: $tw.wiki.generateNewTitle("$:/temp/alerts/alert",{prefix: ""}),
text: text,
tags: [ALERT_TAG],
component: this.componentName
};
existingCount = 0;
// Print an orange message to the console if not in the browser
console.error("\x1b[1;33m" + text + "\x1b[0m");
}
alertFields.modified = new Date();
if(++existingCount > 1) {
alertFields.count = existingCount;
} else {
alertFields.count = undefined;
}
$tw.wiki.addTiddler(new $tw.Tiddler(alertFields));
// Log it too
this.log.apply(this,Array.prototype.slice.call(arguments,0));
};
exports.Logger = Logger;

View File

@@ -363,7 +363,7 @@ exports.getRelativeDate = function(delta) {
};
};
// Convert & to "&amp;", < to "&lt;", > to "&gt;" and " to "&quot;"
// Convert & to "&amp;", < to "&lt;", > to "&gt;", " to "&quot;"
exports.htmlEncode = function(s) {
if(s) {
return s.toString().replace(/&/mg,"&amp;").replace(/</mg,"&lt;").replace(/>/mg,"&gt;").replace(/\"/mg,"&quot;");
@@ -421,9 +421,9 @@ exports.stringify = function(s) {
* line separator, paragraph separator, and line feed. Any character may
* appear in the form of an escape sequence.
*
* For portability, we also escape escape all non-ASCII characters.
* For portability, we also escape all non-ASCII characters.
*/
return s
return (s || "")
.replace(/\\/g, '\\\\') // backslash
.replace(/"/g, '\\"') // double quote character
.replace(/'/g, "\\'") // single quote character
@@ -439,9 +439,15 @@ exports.escapeRegExp = function(s) {
return s.replace(/[\-\/\\\^\$\*\+\?\.\(\)\|\[\]\{\}]/g, '\\$&');
};
// Checks whether a link target is external, i.e. not a tiddler title
exports.isLinkExternal = function(to) {
var externalRegExp = /(?:file|http|https|mailto|ftp|irc|news|data|skype):[^\s<>{}\[\]`|'"\\^~]+(?:\/|\b)/i;
return externalRegExp.test(to);
};
exports.nextTick = function(fn) {
/*global window: false */
if(typeof window !== "undefined") {
if(typeof process === "undefined") {
// Apparently it would be faster to use postMessage - http://dbaron.org/log/20100309-faster-timeouts
window.setTimeout(fn,4);
} else {
@@ -600,4 +606,20 @@ exports.timer = function(base) {
return m;
};
/*
Convert text and content type to a data URI
*/
exports.makeDataUri = function(text,type) {
type = type || "text/vnd.tiddlywiki";
var typeInfo = $tw.config.contentTypeInfo[type] || $tw.config.contentTypeInfo["text/plain"],
isBase64 = typeInfo.encoding === "base64",
parts = [];
parts.push("data:");
parts.push(type);
parts.push(isBase64 ? ";base64" : "");
parts.push(",");
parts.push(isBase64 ? text : encodeURIComponent(text));
return parts.join("");
};
})();

View File

@@ -42,10 +42,13 @@ BrowseWidget.prototype.render = function(parent,nextSibling) {
if(this.tooltip) {
domNode.setAttribute("title",this.tooltip);
}
if(this.nwsaveas) {
domNode.setAttribute("nwsaveas",this.nwsaveas);
}
// Add a click event handler
domNode.addEventListener("change",function (event) {
if(self.message) {
self.dispatchEvent({type: self.message, param: event.target.files});
self.dispatchEvent({type: self.message, param: self.param, files: event.target.files});
} else {
self.wiki.readFiles(event.target.files,function(tiddlerFieldsArray) {
self.dispatchEvent({type: "tm-import-tiddlers", param: JSON.stringify(tiddlerFieldsArray)});
@@ -65,7 +68,9 @@ Compute the internal state of the widget
BrowseWidget.prototype.execute = function() {
this.browseMultiple = this.getAttribute("multiple");
this.message = this.getAttribute("message");
this.param = this.getAttribute("param");
this.tooltip = this.getAttribute("tooltip");
this.nwsaveas = this.getAttribute("nwsaveas");
};
/*

View File

@@ -63,7 +63,7 @@ ButtonWidget.prototype.render = function(parent,nextSibling) {
// Add a click event handler
domNode.addEventListener("click",function (event) {
var handled = false;
if(self.invokeActions(event)) {
if(self.invokeActions(this,event)) {
handled = true;
}
if(self.to) {
@@ -94,6 +94,13 @@ ButtonWidget.prototype.render = function(parent,nextSibling) {
this.domNodes.push(domNode);
};
/*
We don't allow actions to propagate because we trigger actions ourselves
*/
ButtonWidget.prototype.allowActionPropagation = function() {
return false;
};
ButtonWidget.prototype.getBoundingClientRect = function() {
return this.domNodes[0].getBoundingClientRect();
}

View File

@@ -35,6 +35,7 @@ CheckboxWidget.prototype.render = function(parent,nextSibling) {
this.execute();
// Create our elements
this.labelDomNode = this.document.createElement("label");
this.labelDomNode.setAttribute("class",this.checkboxClass);
this.inputDomNode = this.document.createElement("input");
this.inputDomNode.setAttribute("type","checkbox");
if(this.getValue()) {
@@ -126,6 +127,7 @@ CheckboxWidget.prototype.execute = function() {
this.checkboxChecked = this.getAttribute("checked");
this.checkboxUnchecked = this.getAttribute("unchecked");
this.checkboxDefault = this.getAttribute("default");
this.checkboxClass = this.getAttribute("class","");
// Make the child widgets
this.makeChildWidgets();
};

View File

@@ -53,6 +53,10 @@ DropZoneWidget.prototype.render = function(parent,nextSibling) {
};
DropZoneWidget.prototype.enterDrag = function() {
// Check for this window being the source of the drag
if($tw.dragInProgress) {
return false;
}
// We count enter/leave events
this.dragEnterCount = (this.dragEnterCount || 0) + 1;
// If we're entering for the first time we need to apply highlighting
@@ -83,6 +87,10 @@ DropZoneWidget.prototype.handleDragOverEvent = function(event) {
if(["TEXTAREA","INPUT"].indexOf(event.target.tagName) !== -1) {
return false;
}
// Check for this window being the source of the drag
if($tw.dragInProgress) {
return false;
}
// Tell the browser that we're still interested in the drop
event.preventDefault();
event.dataTransfer.dropEffect = "copy"; // Explicitly show this is a copy
@@ -98,6 +106,10 @@ DropZoneWidget.prototype.handleDropEvent = function(event) {
if(["TEXTAREA","INPUT"].indexOf(event.target.tagName) !== -1) {
return false;
}
// Check for this window being the source of the drag
if($tw.dragInProgress) {
return false;
}
var self = this,
dataTransfer = event.dataTransfer;
// Reset the enter count
@@ -147,7 +159,7 @@ DropZoneWidget.prototype.importDataTypes = [
}},
{type: "URL", IECompatible: true, convertToFields: function(data) {
// Check for tiddler data URI
var match = decodeURI(data).match(/^data\:text\/vnd\.tiddler,(.*)/i);
var match = decodeURIComponent(data).match(/^data\:text\/vnd\.tiddler,(.*)/i);
if(match) {
return JSON.parse(match[1]);
} else {
@@ -158,7 +170,7 @@ DropZoneWidget.prototype.importDataTypes = [
}},
{type: "text/x-moz-url", IECompatible: false, convertToFields: function(data) {
// Check for tiddler data URI
var match = decodeURI(data).match(/^data\:text\/vnd\.tiddler,(.*)/i);
var match = decodeURIComponent(data).match(/^data\:text\/vnd\.tiddler,(.*)/i);
if(match) {
return JSON.parse(match[1]);
} else {

View File

@@ -37,8 +37,12 @@ EditTextWidget.prototype.render = function(parent,nextSibling) {
// Execute our logic
this.execute();
// Create our element
var editInfo = this.getEditInfo();
var domNode = this.document.createElement(this.editTag);
var editInfo = this.getEditInfo(),
tag = this.editTag;
if($tw.config.htmlUnsafeElements.indexOf(tag) !== -1) {
tag = "input";
}
var domNode = this.document.createElement(tag);
if(this.editType) {
domNode.setAttribute("type",this.editType);
}
@@ -73,8 +77,10 @@ EditTextWidget.prototype.render = function(parent,nextSibling) {
this.fixHeight();
// Focus field
if(this.editFocus === "true") {
domNode.focus();
domNode.select();
if(domNode.focus && domNode.select) {
domNode.focus();
domNode.select();
}
}
};

View File

@@ -52,7 +52,7 @@ ImageWidget.prototype.render = function(parent,nextSibling) {
tiddler = this.wiki.getTiddler(this.imageSource);
if(!tiddler) {
// The source isn't the title of a tiddler, so we'll assume it's a URL
src = this.imageSource;
src = this.getVariable("tv-get-export-image-link",{params: [{name: "src",value: this.imageSource}],defaultValue: this.imageSource});
} else {
// Check if it is an image tiddler
if(this.wiki.isImageTiddler(this.imageSource)) {

View File

@@ -53,8 +53,13 @@ Render this widget into the DOM
*/
LinkWidget.prototype.renderLink = function(parent,nextSibling) {
var self = this;
// Sanitise the specified tag
var tag = this.linkTag;
if($tw.config.htmlUnsafeElements.indexOf(tag) !== -1) {
tag = "a";
}
// Create our element
var domNode = this.document.createElement("a");
var domNode = this.document.createElement(tag);
// Assign classes
var classes = [];
if(this.linkClasses) {
@@ -77,7 +82,13 @@ LinkWidget.prototype.renderLink = function(parent,nextSibling) {
wikiLinkTemplate = wikiLinkTemplateMacro ? wikiLinkTemplateMacro.trim() : "#$uri_encoded$",
wikiLinkText = wikiLinkTemplate.replace("$uri_encoded$",encodeURIComponent(this.to));
wikiLinkText = wikiLinkText.replace("$uri_doubleencoded$",encodeURIComponent(encodeURIComponent(this.to)));
domNode.setAttribute("href",wikiLinkText);
wikiLinkText = this.getVariable("tv-get-export-link",{params: [{name: "to",value: this.to}],defaultValue: wikiLinkText});
if(tag === "a") {
domNode.setAttribute("href",wikiLinkText);
}
if(this.tabIndex) {
domNode.setAttribute("tabindex",this.tabIndex);
}
// Set the tooltip
// HACK: Performance issues with re-parsing the tooltip prevent us defaulting the tooltip to "<$transclude field='tooltip'><$transclude field='title'/></$transclude>"
var tooltipWikiText = this.tooltip || this.getVariable("tv-wikilink-tooltip");
@@ -97,17 +108,21 @@ LinkWidget.prototype.renderLink = function(parent,nextSibling) {
// Add a click event handler
$tw.utils.addEventListeners(domNode,[
{name: "click", handlerObject: this, handlerMethod: "handleClickEvent"},
{name: "dragstart", handlerObject: this, handlerMethod: "handleDragStartEvent"},
{name: "dragend", handlerObject: this, handlerMethod: "handleDragEndEvent"}
]);
if(this.draggable === "yes") {
$tw.utils.addEventListeners(domNode,[
{name: "dragstart", handlerObject: this, handlerMethod: "handleDragStartEvent"},
{name: "dragend", handlerObject: this, handlerMethod: "handleDragEndEvent"}
]);
}
// Insert the link into the DOM and render any children
parent.insertBefore(domNode,nextSibling);
this.renderChildren(domNode,null);
this.domNodes.push(domNode);
};
LinkWidget.prototype.handleClickEvent = function (event) {
// Send the click on it's way as a navigate event
LinkWidget.prototype.handleClickEvent = function(event) {
// Send the click on its way as a navigate event
var bounds = this.domNodes[0].getBoundingClientRect();
this.dispatchEvent({
type: "tm-navigate",
@@ -118,14 +133,17 @@ LinkWidget.prototype.handleClickEvent = function (event) {
},
navigateSuppressNavigation: event.metaKey || event.ctrlKey || (event.button === 1)
});
event.preventDefault();
event.stopPropagation();
return false;
if(this.domNodes[0].hasAttribute("href")) {
event.preventDefault();
event.stopPropagation();
return false;
}
};
LinkWidget.prototype.handleDragStartEvent = function(event) {
if(event.target === this.domNodes[0]) {
if(this.to) {
$tw.dragInProgress = true;
// Set the dragging class on the element being dragged
$tw.utils.addClass(event.target,"tc-tiddlylink-dragging");
// Create the drag image elements
@@ -160,9 +178,9 @@ LinkWidget.prototype.handleDragStartEvent = function(event) {
if(!$tw.browser.isIE) {
dataTransfer.setData("text/vnd.tiddler",jsonData);
dataTransfer.setData("text/plain",title);
dataTransfer.setData("text/x-moz-url","data:text/vnd.tiddler," + encodeURI(jsonData));
dataTransfer.setData("text/x-moz-url","data:text/vnd.tiddler," + encodeURIComponent(jsonData));
}
dataTransfer.setData("URL","data:text/vnd.tiddler," + encodeURI(jsonData));
dataTransfer.setData("URL","data:text/vnd.tiddler," + encodeURIComponent(jsonData));
dataTransfer.setData("Text",title);
event.stopPropagation();
} else {
@@ -173,6 +191,7 @@ LinkWidget.prototype.handleDragStartEvent = function(event) {
LinkWidget.prototype.handleDragEndEvent = function(event) {
if(event.target === this.domNodes[0]) {
$tw.dragInProgress = false;
// Remove the dragging class on the element being dragged
$tw.utils.removeClass(event.target,"tc-tiddlylink-dragging");
// Delete the drag image element
@@ -186,13 +205,14 @@ LinkWidget.prototype.handleDragEndEvent = function(event) {
Compute the internal state of the widget
*/
LinkWidget.prototype.execute = function() {
// Get the target tiddler title
// Pick up our attributes
this.to = this.getAttribute("to",this.getVariable("currentTiddler"));
// Get the link title and aria label
this.tooltip = this.getAttribute("tooltip");
this["aria-label"] = this.getAttribute("aria-label");
// Get the link classes
this.linkClasses = this.getAttribute("class");
this.tabIndex = this.getAttribute("tabindex");
this.draggable = this.getAttribute("draggable","yes");
this.linkTag = this.getAttribute("tag","a");
// Determine the link characteristics
this.isMissing = !this.wiki.tiddlerExists(this.to);
this.isShadow = this.wiki.isShadowTiddler(this.to);

View File

@@ -126,20 +126,29 @@ ListWidget.prototype.makeItemTemplate = function(title) {
Selectively refreshes the widget if needed. Returns true if the widget or any of its children needed re-rendering
*/
ListWidget.prototype.refresh = function(changedTiddlers) {
var changedAttributes = this.computeAttributes();
var changedAttributes = this.computeAttributes(),
result;
// Call the storyview
if(this.storyview && this.storyview.refreshStart) {
this.storyview.refreshStart(changedTiddlers,changedAttributes);
}
// Completely refresh if any of our attributes have changed
if(changedAttributes.filter || changedAttributes.template || changedAttributes.editTemplate || changedAttributes.emptyMessage || changedAttributes.storyview || changedAttributes.history) {
this.refreshSelf();
return true;
result = true;
} else {
// Handle any changes to the list
var hasChanged = this.handleListChanges(changedTiddlers);
result = this.handleListChanges(changedTiddlers);
// Handle any changes to the history stack
if(this.historyTitle && changedTiddlers[this.historyTitle]) {
this.handleHistoryChanges();
}
return hasChanged;
}
// Call the storyview
if(this.storyview && this.storyview.refreshEnd) {
this.storyview.refreshEnd(changedTiddlers,changedAttributes);
}
return result;
};
/*
@@ -306,4 +315,4 @@ ListItemWidget.prototype.refresh = function(changedTiddlers) {
exports.listitem = ListItemWidget;
})();
})();

View File

@@ -143,9 +143,11 @@ NavigatorWidget.prototype.addToHistory = function(title,fromPageRect) {
Handle a tm-navigate event
*/
NavigatorWidget.prototype.handleNavigateEvent = function(event) {
this.addToStory(event.navigateTo,event.navigateFromTitle);
if(!event.navigateSuppressNavigation) {
this.addToHistory(event.navigateTo,event.navigateFromClientRect);
if(event.navigateTo) {
this.addToStory(event.navigateTo,event.navigateFromTitle);
if(!event.navigateSuppressNavigation) {
this.addToHistory(event.navigateTo,event.navigateFromClientRect);
}
}
return false;
};
@@ -208,8 +210,11 @@ NavigatorWidget.prototype.handleDeleteTiddlerEvent = function(event) {
var title = event.param || event.tiddlerTitle,
tiddler = this.wiki.getTiddler(title),
storyList = this.getStoryList(),
originalTitle = tiddler.fields["draft.of"],
originalTitle = tiddler ? tiddler.fields["draft.of"] : "",
confirmationTitle;
if(!tiddler) {
return false;
}
// Check if the tiddler we're deleting is in draft mode
if(originalTitle) {
// If so, we'll prompt for confirmation referencing the original tiddler
@@ -333,12 +338,12 @@ NavigatorWidget.prototype.handleCancelTiddlerEvent = function(event) {
// Flip the specified tiddler from draft back to the original
var draftTitle = event.param || event.tiddlerTitle,
draftTiddler = this.wiki.getTiddler(draftTitle),
originalTitle = draftTiddler.fields["draft.of"],
originalTiddler = this.wiki.getTiddler(originalTitle),
storyList = this.getStoryList();
originalTitle = draftTiddler && draftTiddler.fields["draft.of"];
if(draftTiddler && originalTitle) {
// Ask for confirmation if the tiddler text has changed
var isConfirmed = true;
var isConfirmed = true,
originalTiddler = this.wiki.getTiddler(originalTitle),
storyList = this.getStoryList();
if(this.wiki.isDraftModified(draftTitle)) {
isConfirmed = confirm($tw.language.getString(
"ConfirmCancelTiddler",

View File

@@ -30,10 +30,17 @@ RevealWidget.prototype.render = function(parent,nextSibling) {
this.parentDomNode = parent;
this.computeAttributes();
this.execute();
var domNode = this.document.createElement(this.parseTreeNode.isBlock ? "div" : "span");
var tag = this.parseTreeNode.isBlock ? "div" : "span";
if(this.revealTag && $tw.config.htmlUnsafeElements.indexOf(this.revealTag) === -1) {
tag = this.revealTag;
}
var domNode = this.document.createElement(tag);
var classes = this["class"].split(" ") || [];
classes.push("tc-reveal");
domNode.className = classes.join(" ");
if(this.style) {
domNode.setAttribute("style",this.style);
}
parent.insertBefore(domNode,nextSibling);
this.renderChildren(domNode,null);
if(!domNode.isTiddlyWikiFakeDom && this.type === "popup" && this.isOpen) {
@@ -83,10 +90,12 @@ Compute the internal state of the widget
RevealWidget.prototype.execute = function() {
// Get our parameters
this.state = this.getAttribute("state");
this.revealTag = this.getAttribute("tag");
this.type = this.getAttribute("type");
this.text = this.getAttribute("text");
this.position = this.getAttribute("position");
this["class"] = this.getAttribute("class","");
this.style = this.getAttribute("style","");
this["default"] = this.getAttribute("default","");
this.animate = this.getAttribute("animate","no");
this.retain = this.getAttribute("retain","no");

View File

@@ -171,7 +171,7 @@ Widget.prototype.evaluateMacroModule = function(name,actualParams,defaultValue)
else for(var i=0; i<actualParams.length; ++i) {
args.push(actualParams[i].value);
}
return macro.run.apply(this,args).toString();
return (macro.run.apply(this,args) || "").toString();
} else {
return defaultValue;
}
@@ -476,19 +476,30 @@ Widget.prototype.removeChildDomNodes = function() {
};
/*
Invoke any action widgets that are immediate children of this widget
Invoke the action widgets that are descendents of the current widget.
*/
Widget.prototype.invokeActions = function(event) {
Widget.prototype.invokeActions = function(triggeringWidget,event) {
var handled = false;
// For each child widget
for(var t=0; t<this.children.length; t++) {
var child = this.children[t];
if(child.invokeAction && child.invokeAction(this,event)) {
// Invoke the child if it is an action widget
if(child.invokeAction && child.invokeAction(triggeringWidget,event)) {
handled = true;
}
// Propagate through through the child if it permits it
if(child.allowActionPropagation() && child.invokeActions(triggeringWidget,event)) {
handled = true;
}
}
return handled;
};
Widget.prototype.allowActionPropagation = function() {
return true;
};
exports.widget = Widget;
})();

View File

@@ -211,7 +211,7 @@ exports.importTiddler = function(tiddler) {
// Check if we're dealing with a plugin
if(tiddler && tiddler.hasField("plugin-type") && tiddler.hasField("version") && existingTiddler && existingTiddler.hasField("plugin-type") && existingTiddler.hasField("version")) {
// Reject the incoming plugin if it is older
if($tw.utils.checkVersions(existingTiddler.fields.version,tiddler.fields.version)) {
if(!$tw.utils.checkVersions(tiddler.fields.version,existingTiddler.fields.version)) {
return false;
}
}
@@ -316,6 +316,14 @@ Sort an array of tiddler titles by a specified field
exports.sortTiddlers = function(titles,sortField,isDescending,isCaseSensitive,isNumeric) {
var self = this;
titles.sort(function(a,b) {
var x,y,
compareNumbers = function(x,y) {
var result =
isNaN(x) && !isNaN(y) ? (isDescending ? -1 : 1) :
!isNaN(x) && isNaN(y) ? (isDescending ? 1 : -1) :
(isDescending ? y - x : x - y);
return result;
};
if(sortField !== "title") {
var tiddlerA = self.getTiddler(a),
tiddlerB = self.getTiddler(b);
@@ -330,10 +338,10 @@ exports.sortTiddlers = function(titles,sortField,isDescending,isCaseSensitive,is
b = "";
}
}
if(isNumeric) {
a = Number(a);
b = Number(b);
return isDescending ? b - a : a - b;
x = Number(a);
y = Number(b);
if(isNumeric && (!isNaN(x) || !isNaN(y))) {
return compareNumbers(x,y);
} else if($tw.utils.isDate(a) && $tw.utils.isDate(b)) {
return isDescending ? b - a : a - b;
} else {
@@ -662,7 +670,7 @@ exports.setTiddlerData = function(title,data,fields) {
newFields.type = "application/json";
newFields.text = JSON.stringify(data,null,$tw.config.preferences.jsonSpaces);
}
this.addTiddler(new $tw.Tiddler(existingTiddler,fields,newFields,this.getModificationFields()));
this.addTiddler(new $tw.Tiddler(this.getCreationFields(),existingTiddler,fields,newFields,this.getModificationFields()));
};
/*
@@ -749,8 +757,8 @@ exports.old_parseText = function(type,text,options) {
options = options || {};
// Select a parser
var Parser = $tw.Wiki.parsers[type];
if(!Parser && $tw.config.fileExtensionInfo[type]) {
Parser = $tw.Wiki.parsers[$tw.config.fileExtensionInfo[type].type];
if(!Parser && $tw.utils.getFileExtensionInfo(type)) {
Parser = $tw.Wiki.parsers[$tw.utils.getFileExtensionInfo(type).type];
}
if(!Parser) {
Parser = $tw.Wiki.parsers[options.defaultType || "text/vnd.tiddlywiki"];
@@ -897,6 +905,7 @@ Make a widget tree for transclusion
title: target tiddler title
options: as for wiki.makeWidget() plus:
options.field: optional field to transclude (defaults to "text")
options.mode: transclusion mode "inline" or "block"
options.children: optional array of children for the transclude widget
*/
exports.makeTranscludeWidget = function(title,options) {
@@ -916,6 +925,9 @@ exports.makeTranscludeWidget = function(title,options) {
if(options.field) {
parseTree.tree[0].children[0].attributes.field = {type: "string", value: options.field};
}
if(options.mode) {
parseTree.tree[0].children[0].attributes.mode = {type: "string", value: options.mode};
}
if(options.children) {
parseTree.tree[0].children[0].children = options.children;
}
@@ -1092,7 +1104,7 @@ exports.readFile = function(file,callback) {
if(type === "" || !type) {
var dotPos = file.name.lastIndexOf(".");
if(dotPos !== -1) {
var fileExtensionInfo = $tw.config.fileExtensionInfo[file.name.substr(dotPos)];
var fileExtensionInfo = $tw.utils.getFileExtensionInfo(file.name.substr(dotPos));
if(fileExtensionInfo) {
type = fileExtensionInfo.type;
}

View File

@@ -62,8 +62,9 @@ sidebar-tab-foreground-selected:
sidebar-tab-foreground: <<colour tab-foreground>>
sidebar-tiddler-link-foreground-hover: #444444
sidebar-tiddler-link-foreground: #7897f3
site-title-foreground: <<colour tiddler-title-foreground>>
static-alert-foreground: #aaaaaa
tab-background-selected: #fffffffff
tab-background-selected: #ffffff
tab-background: #eeeeee
tab-border-selected: #cccccc
tab-border: #cccccc

View File

@@ -62,6 +62,7 @@ sidebar-tab-foreground-selected:
sidebar-tab-foreground: <<colour tab-foreground>>
sidebar-tiddler-link-foreground-hover: #444444
sidebar-tiddler-link-foreground: #5959c0
site-title-foreground: <<colour tiddler-title-foreground>>
static-alert-foreground: #aaaaaa
tab-background-selected: <<colour background>>
tab-background: #ccccdd

View File

@@ -62,6 +62,7 @@ sidebar-tab-foreground-selected:
sidebar-tab-foreground: #999
sidebar-tiddler-link-foreground-hover: #444444
sidebar-tiddler-link-foreground: #d1d0d2
site-title-foreground: <<colour tiddler-title-foreground>>
static-alert-foreground: #aaaaaa
tab-background-selected: #ffffff
tab-background: #d8d8d8

View File

@@ -62,6 +62,7 @@ sidebar-tab-foreground-selected:
sidebar-tab-foreground: <<colour tab-foreground>>
sidebar-tiddler-link-foreground-hover: #444444
sidebar-tiddler-link-foreground: #999999
site-title-foreground: <<colour tiddler-title-foreground>>
static-alert-foreground: #aaaaaa
tab-background-selected: #ffffff
tab-background: #d8d8d8

View File

@@ -0,0 +1,109 @@
@@ -0,0 +1,107 @@
created: 20150402111612188
description: Good with dark photo backgrounds
modified: 20150402112344080
name: DarkPhotos
tags: $:/tags/Palette
title: $:/palettes/DarkPhotos
type: application/x-tiddler-dictionary
alert-background: #ffe476
alert-border: #b99e2f
alert-highlight: #881122
alert-muted-foreground: #b99e2f
background: #ffffff
blockquote-bar: <<colour muted-foreground>>
code-background: #f7f7f9
code-border: #e1e1e8
code-foreground: #dd1144
dirty-indicator: #ff0000
download-background: #34c734
download-foreground: <<colour background>>
dragger-background: <<colour foreground>>
dragger-foreground: <<colour background>>
dropdown-background: <<colour background>>
dropdown-border: <<colour muted-foreground>>
dropdown-tab-background-selected: #fff
dropdown-tab-background: #ececec
dropzone-background: rgba(0,200,0,0.7)
external-link-background-hover: inherit
external-link-background-visited: inherit
external-link-background: inherit
external-link-foreground-hover: inherit
external-link-foreground-visited: #0000aa
external-link-foreground: #0000ee
foreground: #333333
message-background: #ecf2ff
message-border: #cfd6e6
message-foreground: #547599
modal-backdrop: <<colour foreground>>
modal-background: <<colour background>>
modal-border: #999999
modal-footer-background: #f5f5f5
modal-footer-border: #dddddd
modal-header-border: #eeeeee
muted-foreground: #ddd
notification-background: #ffffdd
notification-border: #999999
page-background: #f4f4f4
pre-background: #f5f5f5
pre-border: #cccccc
primary: #5778d8
sidebar-button-foreground: <<colour foreground>>
sidebar-controls-foreground-hover: #ccf
sidebar-controls-foreground: #fff
sidebar-foreground-shadow: rgba(0,0,0, 0.5)
sidebar-foreground: #fff
sidebar-muted-foreground-hover: #444444
sidebar-muted-foreground: #eee
sidebar-tab-background-selected: rgba(255,255,255, 0.8)
sidebar-tab-background: rgba(255,255,255, 0.4)
sidebar-tab-border-selected: <<colour tab-border-selected>>
sidebar-tab-border: <<colour tab-border>>
sidebar-tab-divider: rgba(255,255,255, 0.2)
sidebar-tab-foreground-selected:
sidebar-tab-foreground: <<colour tab-foreground>>
sidebar-tiddler-link-foreground-hover: #aaf
sidebar-tiddler-link-foreground: #ddf
site-title-foreground: #fff
static-alert-foreground: #aaaaaa
tab-background-selected: #ffffff
tab-background: #d8d8d8
tab-border-selected: #d8d8d8
tab-border: #cccccc
tab-divider: #d8d8d8
tab-foreground-selected: <<colour tab-foreground>>
tab-foreground: #666666
table-border: #dddddd
table-footer-background: #a8a8a8
table-header-background: #f0f0f0
tag-background: #ec6
tag-foreground: #ffffff
tiddler-background: <<colour background>>
tiddler-border: <<colour background>>
tiddler-controls-foreground-hover: #888888
tiddler-controls-foreground-selected: #444444
tiddler-controls-foreground: #cccccc
tiddler-editor-background: #f8f8f8
tiddler-editor-border-image: #ffffff
tiddler-editor-border: #cccccc
tiddler-editor-fields-even: #e0e8e0
tiddler-editor-fields-odd: #f0f4f0
tiddler-info-background: #f8f8f8
tiddler-info-border: #dddddd
tiddler-info-tab-background: #f8f8f8
tiddler-link-background: <<colour background>>
tiddler-link-foreground: <<colour primary>>
tiddler-subtitle-foreground: #c0c0c0
tiddler-title-foreground: #182955
toolbar-new-button:
toolbar-options-button:
toolbar-save-button:
toolbar-info-button:
toolbar-edit-button:
toolbar-close-button:
toolbar-delete-button:
toolbar-cancel-button:
toolbar-done-button:
untagged-background: #999999
very-muted-foreground: #888888

View File

@@ -62,6 +62,7 @@ sidebar-tab-foreground-selected:
sidebar-tab-foreground: <<colour tab-foreground>>
sidebar-tiddler-link-foreground-hover: #ffbb99
sidebar-tiddler-link-foreground: #cc0000
site-title-foreground: <<colour tiddler-title-foreground>>
static-alert-foreground: #aaaaaa
tab-background-selected: #ffffff
tab-background: #d8d8d8

View File

@@ -42,7 +42,7 @@ modal-header-border: #eeeeee
muted-foreground: #bbb
notification-background: #ffffdd
notification-border: #999999
page-background: #ececec
page-background: #f4f4f4
pre-background: #f5f5f5
pre-border: #cccccc
primary: #5778d8
@@ -53,15 +53,16 @@ sidebar-foreground-shadow: rgba(255,255,255, 0.8)
sidebar-foreground: #acacac
sidebar-muted-foreground-hover: #444444
sidebar-muted-foreground: #c0c0c0
sidebar-tab-background-selected: #ececec
sidebar-tab-background: <<colour tab-background>>
sidebar-tab-background-selected: #f4f4f4
sidebar-tab-background: #e0e0e0
sidebar-tab-border-selected: <<colour tab-border-selected>>
sidebar-tab-border: <<colour tab-border>>
sidebar-tab-divider: #e4e4e4
sidebar-tab-foreground-selected:
sidebar-tab-foreground-selected:
sidebar-tab-foreground: <<colour tab-foreground>>
sidebar-tiddler-link-foreground-hover: #444444
sidebar-tiddler-link-foreground: #999999
site-title-foreground: <<colour tiddler-title-foreground>>
static-alert-foreground: #aaaaaa
tab-background-selected: #ffffff
tab-background: #d8d8d8

View File

@@ -1,6 +1,6 @@
{
"title": "$:/core",
"description": "TiddlyWiki5 core plugin",
"description": "TiddlyWiki5 core",
"author": "JeremyRuston",
"core-version": ">=5.0.0",
"plugin-priority": "0",

View File

@@ -12,6 +12,9 @@ type: text/vnd.tiddlywiki-html
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="generator" content="TiddlyWiki" />
<meta name="tiddlywiki-version" content="{{$:/core/templates/version}}" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="format-detection" content="telephone=no">
<link id="faviconLink" rel="shortcut icon" href="favicon.ico">
<title>{{$:/core/wiki/title}}</title>

View File

@@ -10,6 +10,9 @@ title: $:/core/templates/static.tiddler.html
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="generator" content="TiddlyWiki" />
<meta name="tiddlywiki-version" content="`{{$:/core/templates/version}}`" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="format-detection" content="telephone=no">
<link id="faviconLink" rel="shortcut icon" href="favicon.ico">
<link rel="stylesheet" href="static.css">

View File

@@ -1,4 +1,6 @@
title: $:/AdvancedSearch
icon: $:/core/images/advanced-search-button
color: #bbb
<div class="tc-advanced-search">
<<tabs "[all[shadows+tiddlers]tag[$:/tags/AdvancedSearch]!has[draft.of]]" "$:/core/ui/AdvancedSearch/System">>

View File

@@ -0,0 +1,9 @@
title: $:/core/ui/Components/tag-link
<$link>
<$set name="backgroundColor" value={{!!color}}>
<span style=<<tag-styles>> class="tc-tag-label">
<$view field="title" format="text"/>
</span>
</$set>
</$link>

View File

@@ -1,4 +1,6 @@
title: $:/ControlPanel
icon: $:/core/images/options-button
color: #bbb
<div class="tc-control-panel">
<<tabs "[all[shadows+tiddlers]tag[$:/tags/ControlPanel]!has[draft.of]]" "$:/core/ui/ControlPanel/Info">>

View File

@@ -0,0 +1,116 @@
title: $:/core/ui/ControlPanel/Modals/AddPlugins
subtitle: {{$:/core/images/download-button}} {{$:/language/ControlPanel/Plugins/Add/Caption}}
\define lingo-base() $:/language/ControlPanel/Plugins/
\define install-plugin-button()
<$button>
<$action-sendmessage $message="tm-load-plugin-from-library" url={{!!url}} title={{$(assetInfo)$!!original-title}}/>
<$list filter="[<assetInfo>get[original-title]get[version]]" variable="installedVersion" emptyMessage="""install""">
reinstall
</$list>
</$button>
\end
\define popup-state-macro()
$:/state/add-plugin-info/$(connectionTiddler)$/$(assetInfo)$
\end
\define display-plugin-info(type)
<$set name="popup-state" value=<<popup-state-macro>>>
<div class="tc-plugin-info">
<div class="tc-plugin-info-chunk tc-small-icon">
<$reveal type="nomatch" state=<<popup-state>> text="yes">
<$button class="tc-btn-invisible tc-btn-dropdown" set=<<popup-state>> setTo="yes">
{{$:/core/images/right-arrow}}
</$button>
</$reveal>
<$reveal type="match" state=<<popup-state>> text="yes">
<$button class="tc-btn-invisible tc-btn-dropdown" set=<<popup-state>> setTo="no">
{{$:/core/images/down-arrow}}
</$button>
</$reveal>
</div>
<div class="tc-plugin-info-chunk">
<$list filter="[<assetInfo>has[icon]]" emptyMessage="""<$transclude tiddler="$:/core/images/plugin-generic-$type$"/>""">
<img src={{$(assetInfo)$!!icon}}/>
</$list>
</div>
<div class="tc-plugin-info-chunk">
<h1><$view tiddler=<<assetInfo>> field="description"/></h1>
<h2><$view tiddler=<<assetInfo>> field="original-title"/></h2>
<div><em><$view tiddler=<<assetInfo>> field="version"/></em></div>
</div>
<div class="tc-plugin-info-chunk">
<<install-plugin-button>>
</div>
</div>
<$reveal type="match" text="yes" state=<<popup-state>>>
<div class="tc-plugin-info-dropdown">
<div class="tc-plugin-info-dropdown-message">
<$list filter="[<assetInfo>get[original-title]get[version]]" variable="installedVersion" emptyMessage="""This plugin is not currently installed""">
<em>
This plugin is already installed at version <$text text=<<installedVersion>>/>
</em>
</$list>
</div>
<div class="tc-plugin-info-dropdown-body">
<$transclude tiddler=<<assetInfo>> field="readme" mode="block"/>
</div>
</div>
</$reveal>
</$set>
\end
\define load-plugin-library-button()
<$button class="tc-btn-big-green">
<$action-sendmessage $message="tm-load-plugin-library" url={{!!url}} infoTitlePrefix="$:/temp/RemoteAssetInfo/"/>
{{$:/core/images/chevron-right}} open plugin library
</$button>
\end
\define display-server-assets(type)
Search: <$edit-text tiddler="""$:/temp/RemoteAssetSearch/$(currentTiddler)$""" default="" type="search" tag="input" focus="true"/>
<$reveal state="""$:/temp/RemoteAssetSearch/$(currentTiddler)$""" type="nomatch" text="">
<$button class="tc-btn-invisible">
<$action-setfield $tiddler="""$:/temp/RemoteAssetSearch/$(currentTiddler)$""" $field="text" $value=""/>
{{$:/core/images/close-button}}
</$button>
</$reveal>
<div class="tc-plugin-library-listing">
<$list filter="[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[$type$]search{$:/temp/RemoteAssetSearch/$(currentTiddler)$}sort[description]]" variable="assetInfo">
<<display-plugin-info "$type$">>
</$list>
</div>
\end
\define display-server-connection()
<$list filter="[all[tiddlers+shadows]tag[$:/tags/ServerConnection]suffix{!!url}]" variable="connectionTiddler" emptyMessage=<<load-plugin-library-button>>>
<<tabs "[[$:/core/ui/ControlPanel/Plugins/Add/Plugins]] [[$:/core/ui/ControlPanel/Plugins/Add/Themes]] [[$:/core/ui/ControlPanel/Plugins/Add/Languages]]" "$:/core/ui/ControlPanel/Plugins/Add/Plugins">>
</$list>
\end
\define plugin-library-listing()
<$list filter="[all[tiddlers+shadows]tag[$:/tags/PluginLibrary]]">
<div class="tc-plugin-library">
!! <$link><$transclude field="caption"><$view field="title"/></$transclude></$link>
//<$view field="url"/>//
<$transclude/>
<<display-server-connection>>
</div>
</$list>
\end
<$importvariables filter="[[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]">
<div>
<<plugin-library-listing>>
</div>
</$importvariables>

View File

@@ -3,20 +3,25 @@ tags: $:/tags/ControlPanel
caption: {{$:/language/ControlPanel/Plugins/Caption}}
\define lingo-base() $:/language/ControlPanel/Plugins/
\define popup-state-macro()
$(qualified-state)$-$(currentTiddler)$
\end
\define tabs-state-macro()
$(popup-state)$-$(pluginInfoType)$
\end
\define plugin-icon-title()
$(currentTiddler)$/icon
\end
\define plugin-disable-title()
$:/config/Plugins/Disabled/$(currentTiddler)$
\end
\define plugin-table-body(type,disabledMessage)
<div class="tc-plugin-info-chunk">
<div class="tc-plugin-info-chunk tc-small-icon">
<$reveal type="nomatch" state=<<popup-state>> text="yes">
<$button class="tc-btn-invisible tc-btn-dropdown" set=<<popup-state>> setTo="yes">
{{$:/core/images/right-arrow}}
@@ -34,17 +39,18 @@ $:/config/Plugins/Disabled/$(currentTiddler)$
</$transclude>
</div>
<div class="tc-plugin-info-chunk">
<div>
<h1>
''<$view field="description"><$view field="title"/></$view>'' $disabledMessage$
</div>
<div>
</h1>
<h2>
<$view field="title"/>
</div>
<div>
<$view field="version"/>
</div>
</h2>
<h2>
<div><em><$view field="version"/></em></div>
</h2>
</div>
\end
\define plugin-table(type)
<$set name="qualified-state" value=<<qualify "$:/state/plugin-info">>>
<$list filter="[!has[draft.of]plugin-type[$type$]sort[description]]" emptyMessage=<<lingo "Empty/Hint">>>
@@ -61,6 +67,7 @@ $:/config/Plugins/Disabled/$(currentTiddler)$
</$reveal>
<$reveal type="match" text="yes" state=<<popup-state>>>
<div class="tc-plugin-info-dropdown">
<div class="tc-plugin-info-dropdown-body">
<$list filter="[all[current]] -[[$:/core]]">
<div style="float:right;">
<$reveal type="nomatch" state=<<plugin-disable-title>> text="yes">
@@ -82,20 +89,17 @@ $:/config/Plugins/Disabled/$(currentTiddler)$
No information provided
</$reveal>
</div>
</div>
</$reveal>
</$set>
</$list>
</$set>
\end
! <<lingo Plugin/Prompt>>
<$button message="tm-modal" param="$:/core/ui/ControlPanel/Modals/AddPlugins" tooltip={{$:/language/ControlPanel/Plugins/Add/Hint}} class="tc-btn-big-green" style="background:blue;">
{{$:/core/images/download-button}} <<lingo Add/Caption>>
</$button>
<<plugin-table plugin>>
<<lingo Installed/Hint>>
! <<lingo Theme/Prompt>>
<<plugin-table theme>>
! <<lingo Language/Prompt>>
<<plugin-table language>>
<<tabs "[[$:/core/ui/ControlPanel/Plugins/Installed/Plugins]] [[$:/core/ui/ControlPanel/Plugins/Installed/Themes]] [[$:/core/ui/ControlPanel/Plugins/Installed/Languages]]" "$:/core/ui/ControlPanel/Plugins/Installed/Plugins">>

View File

@@ -0,0 +1,4 @@
title: $:/core/ui/ControlPanel/Plugins/Add/Languages
caption: {{$:/language/ControlPanel/Plugins/Languages/Caption}} (<$count filter="[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[language]]"/>)
<<display-server-assets language>>

View File

@@ -0,0 +1,4 @@
title: $:/core/ui/ControlPanel/Plugins/Add/Plugins
caption: {{$:/language/ControlPanel/Plugins/Plugins/Caption}} (<$count filter="[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[plugin]]"/>)
<<display-server-assets plugin>>

View File

@@ -0,0 +1,4 @@
title: $:/core/ui/ControlPanel/Plugins/Add/Themes
caption: {{$:/language/ControlPanel/Plugins/Themes/Caption}} (<$count filter="[all[tiddlers+shadows]tag[$:/tags/RemoteAssetInfo]server-url{!!url}original-plugin-type[theme]]"/>)
<<display-server-assets theme>>

View File

@@ -0,0 +1,4 @@
title: $:/core/ui/ControlPanel/Plugins/Installed/Languages
caption: {{$:/language/ControlPanel/Plugins/Languages/Caption}} (<$count filter="[!has[draft.of]plugin-type[language]]"/>)
<<plugin-table language>>

Some files were not shown because too many files have changed in this diff Show More