Skip to content

Commit

Permalink
Merge pull request #303 from FlowFuse/fix-npm-accessibility
Browse files Browse the repository at this point in the history
Update accessibility pointers to @FlowFuse
  • Loading branch information
joepavitt authored Oct 26, 2023
2 parents 0437066 + d0af3be commit 024db87
Show file tree
Hide file tree
Showing 13 changed files with 29 additions and 29 deletions.
4 changes: 2 additions & 2 deletions nodes/widgets/ui_button.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
return Object.prototype.hasOwnProperty.call(obj, prop)
}
RED.nodes.registerType('ui-button', {
category: RED._('@flowforge/node-red-dashboard/ui-base:ui-base.label.category'),
color: RED._('@flowforge/node-red-dashboard/ui-base:ui-base.colors.light'),
category: RED._('@flowfuse/node-red-dashboard/ui-base:ui-base.label.category'),
color: RED._('@flowfuse/node-red-dashboard/ui-base:ui-base.colors.light'),
defaults: {
group: { type: 'ui-group', required: true },
name: { value: '' },
Expand Down
4 changes: 2 additions & 2 deletions nodes/widgets/ui_chart.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
}

RED.nodes.registerType('ui-chart', {
category: RED._('@flowforge/node-red-dashboard/ui-base:ui-base.label.category'),
color: RED._('@flowforge/node-red-dashboard/ui-base:ui-base.colors.medium'),
category: RED._('@flowfuse/node-red-dashboard/ui-base:ui-base.label.category'),
color: RED._('@flowfuse/node-red-dashboard/ui-base:ui-base.colors.medium'),
defaults: {
group: { type: 'ui-group', required: true },
name: { value: '' },
Expand Down
4 changes: 2 additions & 2 deletions nodes/widgets/ui_dropdown.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
return Object.prototype.hasOwnProperty.call(obj, prop)
}
RED.nodes.registerType('ui-dropdown', {
category: RED._('@flowforge/node-red-dashboard/ui-base:ui-base.label.category'),
color: RED._('@flowforge/node-red-dashboard/ui-base:ui-base.colors.light'),
category: RED._('@flowfuse/node-red-dashboard/ui-base:ui-base.label.category'),
color: RED._('@flowfuse/node-red-dashboard/ui-base:ui-base.colors.light'),
defaults: {
group: { type: 'ui-group', required: true },
name: { value: '' },
Expand Down
6 changes: 3 additions & 3 deletions nodes/widgets/ui_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
(function () {
// convert to i18 text
function c_ (x) {
return RED._('@flowforge/node-red-dashboard/ui-form:ui-form.' + x)
return RED._('@flowfuse/node-red-dashboard/ui-form:ui-form.' + x)
}
function hasProperty (obj, prop) {
return Object.prototype.hasOwnProperty.call(obj, prop)
}
RED.nodes.registerType('ui-form', {
category: RED._('@flowforge/node-red-dashboard/ui-base:ui-base.label.category'),
color: RED._('@flowforge/node-red-dashboard/ui-base:ui-base.colors.light'),
category: RED._('@flowfuse/node-red-dashboard/ui-base:ui-base.label.category'),
color: RED._('@flowfuse/node-red-dashboard/ui-base:ui-base.colors.light'),
defaults: {
name: { value: '' },
group: { type: 'ui-group', required: true },
Expand Down
6 changes: 3 additions & 3 deletions nodes/widgets/ui_markdown.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
(function () {
// convert to i18 text
function c_ (x) {
return RED._('@flowforge/node-red-dashboard/ui-markdown:ui-markdown.' + x)
return RED._('@flowfuse/node-red-dashboard/ui-markdown:ui-markdown.' + x)
}

RED.nodes.registerType('ui-markdown', {
category: RED._('@flowforge/node-red-dashboard/ui-base:ui-base.label.category'),
color: RED._('@flowforge/node-red-dashboard/ui-base:ui-base.colors.dark'),
category: RED._('@flowfuse/node-red-dashboard/ui-base:ui-base.label.category'),
color: RED._('@flowfuse/node-red-dashboard/ui-base:ui-base.colors.dark'),
defaults: {
group: { type: 'ui-group', required: true },
name: { value: '' },
Expand Down
4 changes: 2 additions & 2 deletions nodes/widgets/ui_notification.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<script type="text/javascript">
(function () {
RED.nodes.registerType('ui-notification', {
category: RED._('@flowforge/node-red-dashboard/ui-base:ui-base.label.category'),
color: RED._('@flowforge/node-red-dashboard/ui-base:ui-base.colors.medium'),
category: RED._('@flowfuse/node-red-dashboard/ui-base:ui-base.label.category'),
color: RED._('@flowfuse/node-red-dashboard/ui-base:ui-base.colors.medium'),
defaults: {
ui: { type: 'ui-base', value: '', required: true },
position: { value: 'top right' },
Expand Down
4 changes: 2 additions & 2 deletions nodes/widgets/ui_radio_group.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
return Object.prototype.hasOwnProperty.call(obj, prop)
}
RED.nodes.registerType('ui-radio-group', {
category: RED._('@flowforge/node-red-dashboard/ui-base:ui-base.label.category'),
color: RED._('@flowforge/node-red-dashboard/ui-base:ui-base.colors.light'),
category: RED._('@flowfuse/node-red-dashboard/ui-base:ui-base.label.category'),
color: RED._('@flowfuse/node-red-dashboard/ui-base:ui-base.colors.light'),
defaults: {
group: { type: 'ui-group', required: true },
name: { value: '' },
Expand Down
4 changes: 2 additions & 2 deletions nodes/widgets/ui_slider.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
return Object.prototype.hasOwnProperty.call(obj, prop)
}
RED.nodes.registerType('ui-slider', {
category: RED._('@flowforge/node-red-dashboard/ui-base:ui-base.label.category'),
color: RED._('@flowforge/node-red-dashboard/ui-base:ui-base.colors.light'),
category: RED._('@flowfuse/node-red-dashboard/ui-base:ui-base.label.category'),
color: RED._('@flowfuse/node-red-dashboard/ui-base:ui-base.colors.light'),
defaults: {
group: { type: 'ui-group', required: true },
name: { value: '' },
Expand Down
4 changes: 2 additions & 2 deletions nodes/widgets/ui_switch.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
return Object.prototype.hasOwnProperty.call(obj, prop)
}
RED.nodes.registerType('ui-switch', {
category: RED._('@flowforge/node-red-dashboard/ui-base:ui-base.label.category'),
color: RED._('@flowforge/node-red-dashboard/ui-base:ui-base.colors.light'),
category: RED._('@flowfuse/node-red-dashboard/ui-base:ui-base.label.category'),
color: RED._('@flowfuse/node-red-dashboard/ui-base:ui-base.colors.light'),
defaults: {
name: { value: '' },
label: { value: 'switch' },
Expand Down
4 changes: 2 additions & 2 deletions nodes/widgets/ui_table.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script type="text/javascript">
(function () {
RED.nodes.registerType('ui-table', {
category: RED._('@flowforge/node-red-dashboard/ui-base:ui-base.label.category'),
color: RED._('@flowforge/node-red-dashboard/ui-base:ui-base.colors.medium'),
category: RED._('@flowfuse/node-red-dashboard/ui-base:ui-base.label.category'),
color: RED._('@flowfuse/node-red-dashboard/ui-base:ui-base.colors.medium'),
defaults: {
group: { type: 'ui-group', required: true },
name: { value: '' },
Expand Down
6 changes: 3 additions & 3 deletions nodes/widgets/ui_template.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
(function () {
// convert to i18 text
function c_ (x) {
return RED._('@flowforge/node-red-dashboard/ui-template:ui-template.' + x)
return RED._('@flowfuse/node-red-dashboard/ui-template:ui-template.' + x)
}
// TODO: move this to util.js for reuse & unit testing
function hasProperty (obj, prop) {
return Object.prototype.hasOwnProperty.call(obj, prop)
}
RED.nodes.registerType('ui-template', {
category: RED._('@flowforge/node-red-dashboard/ui-base:ui-base.label.category'),
color: RED._('@flowforge/node-red-dashboard/ui-base:ui-base.colors.dark'),
category: RED._('@flowfuse/node-red-dashboard/ui-base:ui-base.label.category'),
color: RED._('@flowfuse/node-red-dashboard/ui-base:ui-base.colors.dark'),
defaults: {
group: { type: 'ui-group', required: true }, // for when template is scoped to 'local' (default)
dashboard: { type: 'ui-base', required: false }, // for when template is scoped to 'site'
Expand Down
4 changes: 2 additions & 2 deletions nodes/widgets/ui_text.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@
]

RED.nodes.registerType('ui-text', {
category: RED._('@flowforge/node-red-dashboard/ui-base:ui-base.label.category'),
color: RED._('@flowforge/node-red-dashboard/ui-base:ui-base.colors.medium'),
category: RED._('@flowfuse/node-red-dashboard/ui-base:ui-base.label.category'),
color: RED._('@flowfuse/node-red-dashboard/ui-base:ui-base.colors.medium'),
defaults: {
group: { type: 'ui-group', required: true },
order: { value: 0 },
Expand Down
4 changes: 2 additions & 2 deletions nodes/widgets/ui_text_input.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
return Object.prototype.hasOwnProperty.call(obj, prop)
}
RED.nodes.registerType('ui-text-input', {
category: RED._('@flowforge/node-red-dashboard/ui-base:ui-base.label.category'),
color: RED._('@flowforge/node-red-dashboard/ui-base:ui-base.colors.light'),
category: RED._('@flowfuse/node-red-dashboard/ui-base:ui-base.label.category'),
color: RED._('@flowfuse/node-red-dashboard/ui-base:ui-base.colors.light'),
defaults: {
group: { type: 'ui-group', required: true },
name: { value: '' },
Expand Down

0 comments on commit 024db87

Please sign in to comment.