From ea12994f47f90b3574f5d18e29b1e7c308b479b8 Mon Sep 17 00:00:00 2001 From: FlashSystems Date: Thu, 21 Jan 2021 18:07:13 +0100 Subject: [PATCH 1/7] Signing the CLA (#5421) ...to contribute some code. Co-authored-by: Jeremy Ruston --- licenses/cla-individual.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/licenses/cla-individual.md b/licenses/cla-individual.md index f364d6507..f84f6562d 100644 --- a/licenses/cla-individual.md +++ b/licenses/cla-individual.md @@ -436,6 +436,8 @@ Russ Thomas, @codacodr, 2021/01/03 Peter Neumark, @neumark, 2021/01/15 +Daniel Goß, @FlashSystems, 2021/01/19 + @leehawk787, 2021/01/21 Yoonchae Lee, @BlueGreenMagick, 2021/01/21 From 8bab081c9eba38367c396dd9cc00da3de909c013 Mon Sep 17 00:00:00 2001 From: "jeremy@jermolene.com" Date: Wed, 27 Jan 2021 17:21:25 +0000 Subject: [PATCH 2/7] Remove illegal character from filename Fixes #5430 for tiddlywiki-com branch --- ...firebase TiddlyWiki5 for Google Firebase by Peter Neumark.tid} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename editions/tw5.com/tiddlers/community/resources/{TW5-firebase: TiddlyWiki5 for Google Firebase by Peter Neumark.tid => TW5-firebase TiddlyWiki5 for Google Firebase by Peter Neumark.tid} (100%) diff --git a/editions/tw5.com/tiddlers/community/resources/TW5-firebase: TiddlyWiki5 for Google Firebase by Peter Neumark.tid b/editions/tw5.com/tiddlers/community/resources/TW5-firebase TiddlyWiki5 for Google Firebase by Peter Neumark.tid similarity index 100% rename from editions/tw5.com/tiddlers/community/resources/TW5-firebase: TiddlyWiki5 for Google Firebase by Peter Neumark.tid rename to editions/tw5.com/tiddlers/community/resources/TW5-firebase TiddlyWiki5 for Google Firebase by Peter Neumark.tid From f77015ea18842f5af511dedb919b6bdece92a5fa Mon Sep 17 00:00:00 2001 From: jeremyredhead Date: Fri, 29 Jan 2021 07:02:29 -0600 Subject: [PATCH 3/7] Signing the CLA (#5454) --- licenses/cla-individual.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/licenses/cla-individual.md b/licenses/cla-individual.md index f84f6562d..b95cf77e3 100644 --- a/licenses/cla-individual.md +++ b/licenses/cla-individual.md @@ -441,3 +441,5 @@ Daniel Goß, @FlashSystems, 2021/01/19 @leehawk787, 2021/01/21 Yoonchae Lee, @BlueGreenMagick, 2021/01/21 + +J. Wilhelm, @jeremyredhead, 2021/01/27 From 2b41661721ace534b5f51ded3a5812c9d028ecd8 Mon Sep 17 00:00:00 2001 From: Dyllon Gagnier Date: Fri, 29 Jan 2021 07:25:43 -0800 Subject: [PATCH 4/7] Signing the CLA (#5445) Co-authored-by: Jeremy Ruston --- licenses/cla-individual.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/licenses/cla-individual.md b/licenses/cla-individual.md index b95cf77e3..f535dc12b 100644 --- a/licenses/cla-individual.md +++ b/licenses/cla-individual.md @@ -442,4 +442,6 @@ Daniel Goß, @FlashSystems, 2021/01/19 Yoonchae Lee, @BlueGreenMagick, 2021/01/21 +Dyllon Gagnier, @slaymaker1907, 2021/01/24 + J. Wilhelm, @jeremyredhead, 2021/01/27 From 40d21f607a88ad02ecc94dcdc7e63b93a53cd1b2 Mon Sep 17 00:00:00 2001 From: "jeremy@jermolene.com" Date: Sun, 7 Feb 2021 12:48:06 +0000 Subject: [PATCH 5/7] Docs: Minor formatting tweaks I was cloning this docs tiddler to experiment with docs for a new widget and noticed some punctuation inconsistencies --- .../tiddlers/styleguide/Tiddler Structure.tid | 4 ++- .../tiddlers/widgets/EventCatcherWidget.tid | 36 +++++++++---------- 2 files changed, 21 insertions(+), 19 deletions(-) diff --git a/editions/tw5.com/tiddlers/styleguide/Tiddler Structure.tid b/editions/tw5.com/tiddlers/styleguide/Tiddler Structure.tid index 8e96a87ed..9d4df128a 100644 --- a/editions/tw5.com/tiddlers/styleguide/Tiddler Structure.tid +++ b/editions/tw5.com/tiddlers/styleguide/Tiddler Structure.tid @@ -1,5 +1,5 @@ created: 20150110183300000 -modified: 20150117152556000 +modified: 20210207124737959 title: Tiddler Structure tags: [[Improving TiddlyWiki Documentation]] @@ -13,4 +13,6 @@ Use numbered lists for step-by-step instructions, and bullet points for lists wh Use a table when information naturally falls into three or more columns, and also for lists of parameters, attributes, etc in [[reference tiddlers|Reference Tiddlers]]. +Avoid periods at the end of list items, headings and table cell text. + The documentation describes the current reality of ~TiddlyWiki. Avoid discussing future aspirations. diff --git a/editions/tw5.com/tiddlers/widgets/EventCatcherWidget.tid b/editions/tw5.com/tiddlers/widgets/EventCatcherWidget.tid index 4dfd810aa..33aa06db8 100644 --- a/editions/tw5.com/tiddlers/widgets/EventCatcherWidget.tid +++ b/editions/tw5.com/tiddlers/widgets/EventCatcherWidget.tid @@ -14,9 +14,9 @@ The event catcher widget traps DOM-initiated Javascript events dispatched within In order for the events to be trapped they must: -* be of one of the events specified in the event catcher widget's `events` attribute. -* arise within a DOM node specified by the widget's `selector` attribute. -* support event bubbling. +* be of one of the events specified in the event catcher widget's `events` attribute +* arise within a DOM node specified by the widget's `selector` attribute +* support event bubbling Use of the event catcher widget is beneficial when using large numbers of other trigger widgets such as the ButtonWidget is causing performance problems. The workflow it enables is akin to what is referred to as "event delegation" in JavaScript parlance. @@ -25,11 +25,11 @@ Use of the event catcher widget is beneficial when using large numbers of other The content of the `<$eventcatcher>` widget is displayed normally. |!Attribute |!Description | -|events |Space separated list of JavaScript events to be trapped, for example "click" or "click dblclick". | -|selector |A CSS selector. Only events originating inside a DOM node with this selector will be trapped. | +|events |Space separated list of JavaScript events to be trapped, for example "click" or "click dblclick" | +|selector |A CSS selector. Only events originating inside a DOM node with this selector will be trapped | |actions-* |Action strings to be invoked when a matching event is trapped. Each event is mapped to an action attribute name of the form actions-event where event represents the type of the event. For example: `actions-click` or `actions-dblclick` | |tag |Optional. The HTML element the widget creates to capture the events, defaults to:
» `span` when parsed in inline-mode
» `div` when parsed in block-mode | -|class |Optional. A CSS class name (or names) to be assigned to the widget HTML element. | +|class |Optional. A CSS class name (or names) to be assigned to the widget HTML element | ! Variables @@ -38,18 +38,18 @@ The following variables are made available to the actions: |!Variables |!Description | |`dom-*` |All DOM attributes of the node matching the given selector are made available as variables, with the prefix `dom-` | |`modifier` |The [[modifier Variable]] contains the Modifier Key held during the event (can be "normal", "ctrl", "shift", "alt" or combinations thereof) | -|`event-mousebutton`|The mouse button (if any) used to trigger the event (can be "left", "right" or "middle"). Note that not all event types support the mousebutton property | -|`event-type`|The type property of the JavaScript event | -|`event-detail-*`|Any properties in the detail attribute of the event are made available with the prefix `event-detail-` | -|`tv-popup-coords`|A co-ordinate string that can be used with the ActionPopupWidget to trigger a popup at the DOM node matching the selector where the event originated | -|`tv-selectednode-posx`|`x` offset position of the selected DOM node | -|`tv-selectednode-posy`|`y` offset position of the selected DOM node | -|`tv-selectednode-width`|`offsetWidth` of the selected DOM node | -|`tv-selectednode-height`|`offsetHeight` of the selected DOM node | -|`event-fromselected-posx`|`x` position of the event relative to the selected DOM node | -|`event-fromselected-posy`|`y` position of the event relative to the selected DOM node | -|`event-fromcatcher-posx`|`x` position of the event relative to the event catcher DOM node | -|`event-fromcatcher-posy`|`y` position of the event relative to the event catcher DOM node | +|`event-mousebutton` |The mouse button (if any) used to trigger the event (can be "left", "right" or "middle"). Note that not all event types support the mousebutton property | +|`event-type` |The type property of the JavaScript event | +|`event-detail-*` |Any properties in the detail attribute of the event are made available with the prefix `event-detail-` | +|`tv-popup-coords` |A co-ordinate string that can be used with the ActionPopupWidget to trigger a popup at the DOM node matching the selector where the event originated | +|`tv-selectednode-posx` |`x` offset position of the selected DOM node | +|`tv-selectednode-posy` |`y` offset position of the selected DOM node | +|`tv-selectednode-width` |`offsetWidth` of the selected DOM node | +|`tv-selectednode-height` |`offsetHeight` of the selected DOM node | +|`event-fromselected-posx` |`x` position of the event relative to the selected DOM node | +|`event-fromselected-posy` |`y` position of the event relative to the selected DOM node | +|`event-fromcatcher-posx` |`x` position of the event relative to the event catcher DOM node | +|`event-fromcatcher-posy` |`y` position of the event relative to the event catcher DOM node | ! Example From 5ad1193eb6453e79e45c4a94fed3b2b1c10c2b75 Mon Sep 17 00:00:00 2001 From: morosanuae Date: Sat, 13 Feb 2021 22:16:06 +0200 Subject: [PATCH 6/7] Create TW Icons by morosanuae.tid (#5495) --- .../tiddlers/community/TW Icons by morosanuae.tid | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 editions/tw5.com/tiddlers/community/TW Icons by morosanuae.tid diff --git a/editions/tw5.com/tiddlers/community/TW Icons by morosanuae.tid b/editions/tw5.com/tiddlers/community/TW Icons by morosanuae.tid new file mode 100644 index 000000000..36fa47d85 --- /dev/null +++ b/editions/tw5.com/tiddlers/community/TW Icons by morosanuae.tid @@ -0,0 +1,9 @@ +created: 20210204010508263 +modified: 20210204010941713 +tags: Images SVG Icons +title: "TW Icons" by morosanuae +type: text/vnd.tiddlywiki +url: https://morosanuae.github.io/tw-icons + +> A large collection of icons for TiddlyWiki. +{{!!url}} From 6e93770459c36756002018614dc2d3824dc70ffb Mon Sep 17 00:00:00 2001 From: "jeremy@jermolene.com" Date: Sun, 7 Mar 2021 10:23:14 +0000 Subject: [PATCH 7/7] Update RangeWidget and RadioWidget examples from #5158 @pmario we avoid using the details element because it doesn't remember its state across refreshes. It's not something that we should encourage people to use if they don't understand the limitations. I also simplified the radio widget example because putting all the options on one line with a vertical bar separator is not a common way to display radio buttons. --- .../tiddlers/widgets/RadioWidget Example.tid | 25 +++++++++++-------- .../tiddlers/widgets/RangeWidget Example.tid | 9 +++---- 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/editions/tw5.com/tiddlers/widgets/RadioWidget Example.tid b/editions/tw5.com/tiddlers/widgets/RadioWidget Example.tid index 64d8914c1..577ed7f16 100644 --- a/editions/tw5.com/tiddlers/widgets/RadioWidget Example.tid +++ b/editions/tw5.com/tiddlers/widgets/RadioWidget Example.tid @@ -1,5 +1,5 @@ created: 20201130181015815 -modified: 20201130183426619 +modified: 20210307102027763 tags: RadioWidget title: RadioWidget Example type: text/vnd.tiddlywiki @@ -14,19 +14,22 @@ type: text/vnd.tiddlywiki !! Using Actions -If you select an option, the value is written to $:/temp/test/value and the ''id'' field of tiddler: $:/temp/test will be updated. +When you select an option below the following acitons will occur: -A notification showing the ''actionValue'' will be shown. +* the value is written to $:/temp/test/value +* the ''id'' field of tiddler: $:/temp/test will be updated +* a notification showing the ''actionValue'' will be shown <$tiddler tiddler="$:/temp/test"> - <$radio field="id" value="a" actions=<> > Option a | - <$radio field="id" value="b" actions=<> > Option b | - <$radio field="id" value="c" actions=<> > Option c | + +<$radio field="id" value="a" actions=<> > Option a + +<$radio field="id" value="b" actions=<> > Option b + +<$radio field="id" value="c" actions=<> > Option c + ---- +The wikitext of this example is shown below: -
- Show the code [[RadioWidget Example]] -
<$view mode=text&>

-
+<$codeblock code={{RadioWidget Example!!text}}/> diff --git a/editions/tw5.com/tiddlers/widgets/RangeWidget Example.tid b/editions/tw5.com/tiddlers/widgets/RangeWidget Example.tid index 822313374..731ec41a7 100644 --- a/editions/tw5.com/tiddlers/widgets/RangeWidget Example.tid +++ b/editions/tw5.com/tiddlers/widgets/RangeWidget Example.tid @@ -1,5 +1,5 @@ created: 20201130191618831 -modified: 20201130194441670 +modified: 20210307102027763 tags: RangeWidget title: RangeWidget Example type: text/vnd.tiddlywiki @@ -48,7 +48,6 @@ type: text/vnd.tiddlywiki --- -
- Show the code [[RangeWidget Example]] -
<$view mode=text&>

-
+The wikitext of this example is shown below: + +<$codeblock code={{RangeWidget Example!!text}}/>