Skip to content

Commit 48b16ea

Browse files
authored
Merge branch 'main' into codeql-fixes
2 parents 681514a + 342755b commit 48b16ea

File tree

12 files changed

+87
-12
lines changed

12 files changed

+87
-12
lines changed

.github/workflows/backend.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# .github/workflows/backend.yml
22
name: BUG Backend
3+
permissions:
4+
contents: read
5+
packages: write
36

47
on:
58
push:

.github/workflows/docker.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# .github/workflows/docker.yml
22
name: BUG Deploy
3+
permissions:
4+
contents: read
5+
packages: write
36

47
env:
58
regsitry: "ghcr.io"

.github/workflows/frontend.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# .github/workflows/frontend.yml
22
name: BUG Frontend
3+
permissions:
4+
contents: read
5+
packages: write
36

47
on:
58
push:

src/client/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bug-client",
3-
"version": "3.0.90",
3+
"version": "3.0.92",
44
"private": true,
55
"dependencies": {
66
"@date-io/date-fns": "^1.3.13",

src/client/src/stories/BugApiVlanAutocomplete.stories.jsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,15 @@ export default {
8181
defaultValue: { summary: null },
8282
},
8383
},
84+
maxVlan: {
85+
type: { name: "number" },
86+
description: "The maximum VLAN that can be set (usually 4094 or 4093)",
87+
defaultValue: 4094,
88+
table: {
89+
type: { summary: "number" },
90+
defaultValue: { summary: null },
91+
},
92+
},
8493
},
8594
};
8695

src/client/src/stories/BugRouterButton.stories.jsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,16 @@ export default {
5959
defaultValue: { summary: null },
6060
},
6161
},
62+
lefticon: {
63+
type: { name: "string" },
64+
description:
65+
"Optional small indicator icon to be displayed in the top left of the button. Can be MUI or Material Display icon",
66+
defaultValue: "",
67+
table: {
68+
type: { summary: "string" },
69+
defaultValue: { summary: null },
70+
},
71+
},
6272
iconColor: {
6373
control: "color",
6474
description: "The color of the icon to be displayed in the button.",

src/modulebuilder/network-switch/src/container/services/interface-list.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ const mongoCollection = require("@core/mongo-collection");
44
const matchAnyRegex = require("@core/regex-matchany");
55
const wildcard = require("wildcard-regex");
66
const configGet = require("@core/config-get");
7-
const mongoSingle = require("@core/mongo-single");
87

98
module.exports = async (sortField = null, sortDirection = "asc", filters = {}, stackId = null) => {
109
const config = await configGet();

src/modules/netgear-avline/client/Toolbar.jsx

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,35 @@ import BugApiButton from "@core/BugApiButton";
22
import BugToolbarWrapper from "@core/BugToolbarWrapper";
33
import LaunchIcon from "@mui/icons-material/Launch";
44
import SaveIcon from "@mui/icons-material/Save";
5+
import TerminalIcon from "@mui/icons-material/Terminal";
56
import Divider from "@mui/material/Divider";
67
import ListItemIcon from "@mui/material/ListItemIcon";
78
import ListItemText from "@mui/material/ListItemText";
89
import MenuItem from "@mui/material/MenuItem";
910
import AxiosCommand from "@utils/AxiosCommand";
1011
import { useAlert } from "@utils/Snackbar";
11-
import React from "react";
1212
import { useSelector } from "react-redux";
1313

1414
export default function Toolbar({ panelId, ...props }) {
1515
const sendAlert = useAlert();
1616
const panelConfig = useSelector((state) => state.panelConfig);
1717

18-
const handleLaunchClicked = async (event, item) => {
18+
const handleUILaunchClicked = async (event, item) => {
1919
if (panelConfig?.data?.address) {
2020
const url = `http://${panelConfig.data.address}`;
2121
const newWindow = window.open(url, "_blank", "noopener,noreferrer");
2222
if (newWindow) newWindow.opener = null;
2323
}
2424
};
2525

26+
const handleTerminalLaunchClicked = async (event, item) => {
27+
if (panelConfig?.data?.address) {
28+
const url = `http://${panelConfig.data.address}:8081`;
29+
const newWindow = window.open(url, "_blank", "noopener,noreferrer");
30+
if (newWindow) newWindow.opener = null;
31+
}
32+
};
33+
2634
const handleSave = async (event, item) => {
2735
sendAlert("Saving device config ... please wait", {
2836
variant: "info",
@@ -58,11 +66,17 @@ export default function Toolbar({ panelId, ...props }) {
5866
<ListItemText primary="Save Changes" />
5967
</MenuItem>,
6068
<Divider key="divider" />,
61-
<MenuItem key="launch" onClick={handleLaunchClicked}>
69+
<MenuItem key="launch" onClick={handleUILaunchClicked}>
6270
<ListItemIcon>
6371
<LaunchIcon fontSize="small" />
6472
</ListItemIcon>
65-
<ListItemText primary="Launch device webpage" />
73+
<ListItemText primary="Launch device UI" />
74+
</MenuItem>,
75+
<MenuItem key="launch" onClick={handleTerminalLaunchClicked}>
76+
<ListItemIcon>
77+
<TerminalIcon fontSize="small" />
78+
</ListItemIcon>
79+
<ListItemText primary="Launch device terminal" />
6680
</MenuItem>,
6781
];
6882
};

src/package-lock.json

Lines changed: 24 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)