Skip to content

Commit 0769710

Browse files
authored
Merge pull request #1964 from prpr19xx/prpr19xx-patch-5
docs: Grammar and typo fixes
2 parents 3ab2a90 + 9d8bcf1 commit 0769710

16 files changed

Lines changed: 29 additions & 29 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ FlowFuse also comes with a collection of [FlowFuse Dashboard Blueprints](https:/
3131

3232
## Features
3333

34-
FlowFuse Dashboard provides a base set of nodes for building your own user interfaces and data visualisations. Much like it's predecessor, it provides a set of easy-to-use, core nodes, but provides complete flexibility for customisation and control over theming, layout and behaviour if you want to go further.
34+
FlowFuse Dashboard provides a base set of nodes for building your own user interfaces and data visualisations. Much like its predecessor, it provides a set of easy-to-use, core nodes, but provides complete flexibility for customisation and control over theming, layout and behaviour if you want to go further.
3535

3636
### Easy Integration
3737

cypress/fixtures/user-dir/settings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ module.exports = {
491491
*/
492492
// nodeMessageBufferMaxLength: 0,
493493

494-
/** If you installed the optional node-red-dashboard you can set it's path
494+
/** If you installed the optional node-red-dashboard you can set its path
495495
* relative to httpNodeRoot
496496
* Other optional properties include
497497
* readOnly:{boolean},

docs/en/contributing/guides/events.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Our default server-side `onInput` handler handles the common use cases of:
3838

3939
- Updating the widget's value into our server-side data store
4040
- Checking if the widget is configured to define a `msg.topic` and if so, updating the widget's `msg.topic` property
41-
- Check if the widget is configured with a `passthrough` option, and if so, check it's value before emitting the `msg` object to any connected nodes.
41+
- Check if the widget is configured with a `passthrough` option, and if so, check its value before emitting the `msg` object to any connected nodes.
4242
- Emit the `msg` object to any connected nodes, if appropriate.
4343

4444
### "Dashboard Actions" Event Flow

docs/en/contributing/guides/registration.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Every `ui-base`, `ui-page` and `ui-group` has a `.register` function. The core r
88

99
This function is used by all of the widgets to inform Dashboard of their existence, and allows the widget to define which group/page/ui it belongs too, along with the relevant properties that widget has and any event handlers (e.g. `onInput` or `onAction`).
1010

11-
The function is called within the node's Node-RED `.js` file, and in th case of a widget registering as part of a group (the most common use case), would look something like this:
11+
The function is called within the node's Node-RED `.js` file, and in the case of a widget registering as part of a group (the most common use case), would look something like this:
1212

1313
```js
1414
module.exports = function (RED) {
@@ -48,13 +48,13 @@ This is the `this` of your node's constructor, and can be used directly from the
4848

4949
### `config`
5050

51-
This is made available by Node-RED as the input to the constructor, and can generally passed straight into the `.register` function without modification, it will be an object that maps all of the properties and values that have been described in the node's `.html` definition.
51+
This is made available by Node-RED as the input to the constructor, and can generally passed straight into the `.register` function without modification. It will be an object that maps all of the properties and values that have been described in the node's `.html` definition.
5252

5353
### `evts`
5454

5555
We expose a range of different event handlers as part of the `register` function. All of these handlers run server (Node-RED) side.
5656

57-
In some cases, it is possible to define full functions (that will run at the appropriate point in the event lifecycle), in other occasions, it's only possible to define a `true`/`false` value that informs Dashboard that you wish for the widget to send or subscribe to that event.
57+
In some cases, it is possible to define full functions (that will run at the appropriate point in the event lifecycle); in other cases, it is only possible to define a `true`/`false` value that informs Dashboard that you wish for the widget to send or subscribe to that event.
5858

5959
A full breakdown of the event lifecycle can be found [here](../../contributing/guides/events.md).
6060

@@ -88,7 +88,7 @@ An example of this is with `ui-button`, where the widget's `UIButton` contains a
8888
this.$socket.emit('widget-action', this.id, msg)
8989
```
9090

91-
This sends a message via SocketIO to Node-RED, with the topic of the widget's ID. Because the `ui-button` has `onAction: true` in it's registration, it will consequently run the default handler detailed above.
91+
This sends a message via SocketIO to Node-RED, with the topic of the widget's ID. Because the `ui-button` has `onAction: true` in its registration, it will consequently run the default handler detailed above.
9292

9393
### `.onChange` (`boolean` || `function`)
9494

@@ -100,12 +100,12 @@ Similar to `onAction`, when used as a boolean, this flag will trigger the defaul
100100
2. Appends any `msg.topic` defined on the node config
101101
3. Runs `evts.beforeSend()` _(if provided)_
102102
4. Store the most recent message on the widget under the `._msg` property which will contain the latest state/value of the widget
103-
5. Pushes a `widget-sync` event to synchronize the widgets in all clients.
103+
5. Pushes a `widget-sync` event to synchronize the widgets in all clients
104104
6. Sends the `msg` onwards to any connected nodes
105105

106106
#### Custom `onChange` Handler
107107

108-
Alternatively, you can override this default behaviour by providing a custom `onChange` function. An example of this is in the `ui-switch` node which needs to do `node.status` updates to in order for the Node-RED Editor to reflect it's latest status:
108+
Alternatively, you can override this default behaviour by providing a custom `onChange` function. An example of this is in the `ui-switch` node which needs to do `node.status` updates to in order for the Node-RED Editor to reflect its latest status:
109109

110110
```js
111111
/**
@@ -165,7 +165,7 @@ When provided, this will override the default handler.
165165

166166
We use this in the core widgets in Dashboard with `ui-chart`, where we want to be storing the history of recent `msg` value, rather than _just_ the most recent value as done in the default handler. We also use it here to ensure we don't have too many data points (as defined in the `ui-chart` config).
167167

168-
Another use case here would be if you do not want to pass on any incoming `msg` payloads onto connected nodes automatically, for example, you could have a bunch of command-type `msg` payloads that instruct your node to do something, that are then not relevant to any preceding nodes in the flow.
168+
Another use case here would be if you do not want to pass on any incoming `msg` payloads onto connected nodes automatically. For example, you could have a bunch of command-type `msg` payloads that instruct your node to do something, that are then not relevant to any preceding nodes in the flow.
169169

170170
### `.onError(err)` (`function`)
171171

docs/en/contributing/widgets/third-party.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ FlowFuse Dashboard is built on top of [VueJS](https://vuejs.org/), and as such,
4242

4343
We have created an [Example Node repository](https://github.com/FlowFuse/node-red-dashboard-example-node) that will provide foundations for your widget. It includes plenty of examples for functionality you'll likely need.
4444

45-
It's base repository has the following file/folder structure:
45+
Its base repository has the following file/folder structure:
4646

4747
As with any Node-RED nodes, you'll need to start with two files:
4848

@@ -79,7 +79,7 @@ To start working with your own third-party widget, locally on your machine:
7979
```bash
8080
export NODE_ENV=development
8181
```
82-
4. Inside the Example Node directory, build the Example Node's `.umd.js` file (what Node-RED uses to run your widget), this will generate it's `/resources` folder, loaded by Node-RED.
82+
4. Inside the Example Node directory, build the Example Node's `.umd.js` file (what Node-RED uses to run your widget), this will generate its `/resources` folder, loaded by Node-RED.
8383
```bash
8484
npm run build
8585
```
@@ -356,7 +356,7 @@ You can read more about the Node-RED data store in our [State Management](../gui
356356
357357
State refers to any properties of your widget that have changed in runtime, and would differ from that set in the Node-RED editor.
358358
359-
For example, the `ui-dropdown` can have it's `options` overriden with a `msg.options` message sent to the node. This updates `options` would be stored against the node in the state store.
359+
For example, the `ui-dropdown` can have its `options` overriden with a `msg.options` message sent to the node. This updates `options` would be stored against the node in the state store.
360360
361361
#### Client-Side Data Store
362362

docs/en/layouts/types/notebook.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ A group has a default width of "6" columns, with the full Notebook also a width
2525
![Notebook Layout](../../../assets/images/layout-eg-notebook-width6.png){data-zoomable}
2626
*An example UI rendered using the "Notebook" Layout*
2727

28-
We can get finer grain width control within a group by increasing it's width. The Notebook itself will not render the group any wider, but the group itself will render with 12 columns internally. So, if we increase the "width" (number of columns) of the group to 12, then the two charts are then setup to only take up half of the width of the group (3 columns each).
28+
We can get finer grain width control within a group by increasing its width. The Notebook itself will not render the group any wider, but the group itself will render with 12 columns internally. So, if we increase the "width" (number of columns) of the group to 12, then the two charts are then setup to only take up half of the width of the group (3 columns each).
2929

3030
![Notebook Layout](../../../assets/images/layout-eg-notebook-width12.png){data-zoomable}
3131
*An example UI rendered using the "Notebook" Layout*

docs/en/nodes/config/ui-group.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ props:
44
Name: Descriptive name for this group, will show in the Node-RED Editor and as a label in the Dashboard.
55
Page: The Page (<code>ui-page</code>) that this group will render on.
66
Type: Controls whether the group appears as a default group or as a dialog, which needs to be triggered manually using ui-control. You can choose between 'Default' and 'Dialog' types.
7-
Size: The width and height of the group. Height will always be reinforced by this value, the height is generally a <i>minimum</i> height, and will extend to fit it's content.
7+
Size: The width and height of the group. Height will always be reinforced by this value, the height is generally a <i>minimum</i> height, and will extend to fit its content.
88
Class: Any custom CSS classes you wish to add to the Group.
9-
Default State: <ul><li><b>Visibility</b> - Defines the default visibility of this group.</li><li><b>Interactivity</b> - Controls whether the group and it's contents are disabled/enabled when the page is loaded.</li></ul><p>Both of these can be overridden by the user at runtime using a <code>ui-control</code> node.</p>
9+
Default State: <ul><li><b>Visibility</b> - Defines the default visibility of this group.</li><li><b>Interactivity</b> - Controls whether the group and its contents are disabled/enabled when the page is loaded.</li></ul><p>Both of these can be overridden by the user at runtime using a <code>ui-control</code> node.</p>
1010
---
1111

1212
<script setup>

docs/en/nodes/widgets/ui-button.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ Adds a clickable button to your dashboard.
102102

103103
### Measuring Hold Duration
104104

105-
It's possible to cofnigure a button to emit `pointerdown` and `pointerup` events. With this, it's possible to measure how long a button is held down for.
105+
It's possible to configure a button to emit `pointerdown` and `pointerup` events. With this, it's possible to measure how long a button is held down for.
106106

107107
<video controls height="200px">
108108
<source src="/videos/demo-button-hold.mp4" type="video/mp4">

docs/en/nodes/widgets/ui-dropdown.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ dynamic:
5050

5151
</TryDemo>
5252

53-
Adds a dropdown to your dashboard that will emit values in Node-RED under `msg.payload` anytime it's value is changed.
53+
Adds a dropdown to your dashboard that will emit values in Node-RED under `msg.payload` anytime its value is changed.
5454

5555
## Programmatic Selections
5656

docs/en/nodes/widgets/ui-gauge.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ For example, if you want to round the value to 1 decimal place, you can set the
129129
$round(payload, 1) // round to 1 decimal place
130130
```
131131

132-
You can read more about the JSONata expression language and in particular, it's numeric functions, [here](https://docs.jsonata.org/numeric-functions).
132+
You can read more about the JSONata expression language and in particular, its numeric functions, [here](https://docs.jsonata.org/numeric-functions).
133133

134134
## Examples
135135

0 commit comments

Comments
 (0)