Skip to content

Commit

Permalink
Merge pull request #177 from FlowFuse/175-update-theme-branding
Browse files Browse the repository at this point in the history
Update branding in theme menu items
  • Loading branch information
hardillb authored Oct 18, 2023
2 parents 1e88271 + 904b35a commit acf2b3b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion lib/theme/LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright FlowForge Inc, and other contributors, https://flowforge.com/
Copyright FlowForge Inc, and other contributors, https://flowfuse.com/

Apache License
Version 2.0, January 2004
Expand Down
4 changes: 2 additions & 2 deletions lib/theme/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# FlowForge Node-RED Theme
# FlowFuse Node-RED Theme

A set of custom Node-RED themes used when running inside the FlowForge platform.
A set of custom Node-RED themes used when running inside the FlowFuse platform.

## Themes included

Expand Down
12 changes: 6 additions & 6 deletions lib/theme/common/forge-common.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@
if (!RED) { return }

RED.menu.addItem('red-ui-header-button-sidemenu', null) // menu seperator
// add main menu item "About FlowForge"
// add main menu item "About FlowFuse"
RED.menu.addItem('red-ui-header-button-sidemenu', {
id: 'usermenu-item-ffsite',
label: 'About FlowForge',
label: 'About FlowFuse',
onselect: function () {
window.location = 'https://flowforge.com/'
window.location = 'https://flowfuse.com/'
}
})
// gather info from settings and page - prep for next 2 menu items
Expand All @@ -45,7 +45,7 @@
} else {
const img = $('#red-ui-header > span > a > img')
const ownerHref = img.parent().prop('href')
// Test the URL is FlowForge Project alike
// Test the URL is FlowFuse Project alike
if (ownerHref && /http[s]*:\/\/.*\/project\/\w+-\w+-\w+-\w+-\w+.*/.test(ownerHref)) {
projectURL = ownerHref
}
Expand All @@ -54,7 +54,7 @@
if (projectURL) {
RED.menu.addItem('red-ui-header-button-sidemenu', {
id: 'usermenu-item-ffmain',
label: 'FlowForge Application',
label: 'FlowFuse Application',
onselect: function () {
window.location = projectURL
}
Expand All @@ -64,7 +64,7 @@
if (ffThemeSettings && ffThemeSettings.launcherVersion) {
RED.menu.addItem('red-ui-header-button-sidemenu', {
id: 'usermenu-item-fflv',
label: 'FlowForge Launcher v' + ffThemeSettings.launcherVersion,
label: 'FlowFuse Launcher v' + ffThemeSettings.launcherVersion,
onselect: function () {
// do nothing
}
Expand Down
10 changes: 5 additions & 5 deletions lib/theme/package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"name": "@flowforge/nr-theme",
"version": "1.8.0",
"description": "FlowForge themes for Node-RED",
"description": "FlowFuse themes for Node-RED",
"scripts": {
"prepack": "node scripts/prepack.mjs",
"postpack": "node scripts/postpack.mjs"
},
"repository": {
"type": "git",
"url": "git+https://github.com/flowforge/flowforge-nr-launcher.git"
"url": "git+https://github.com/FlowFuse/nr-launcher.git"
},
"keywords": [
"node-red",
"flowforge",
"FlowFuse",
"nodered",
"forge",
"theme",
Expand All @@ -28,9 +28,9 @@
},
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/flowforge/flowforge-nr-launcher/issues"
"url": "https://github.com/FlowFuse/nr-launcher/issues"
},
"homepage": "https://github.com/flowforge/flowforge-nr-launcher#readme",
"homepage": "https://github.com/FlowFuse/nr-launcher#readme",
"node-red": {
"version": ">=2.2.0",
"plugins": {
Expand Down

0 comments on commit acf2b3b

Please sign in to comment.