Browse Source

Updated inputs

pull/275/head
Tilen Komel 2 years ago
parent
commit
f6be57224e
  1. 54
      src/components/PageComponents/Config/Security.tsx

54
src/components/PageComponents/Config/Security.tsx

@ -1,4 +1,4 @@
import { DynamicForm } from "@app/components/Form/DynamicForm"; import { DynamicForm } from "@app/components/Form/DynamicForm.js";
export const Security = (): JSX.Element => { export const Security = (): JSX.Element => {
const onSubmit = (data: any) => { const onSubmit = (data: any) => {
@ -9,26 +9,68 @@ export const Security = (): JSX.Element => {
onSubmit={onSubmit} onSubmit={onSubmit}
fieldGroups={[ fieldGroups={[
{ {
label: "Security", label: "Security Settings",
description: "Admin and direct messages keys", description: "Settings for the Security module",
fields: [ fields: [
{ {
type: "text", type: "text",
name: "publicKey", name: "publicKey",
label: "Public Key", label: "Public Key",
description: "Sent out to other nodes on the mesh to allow them to compute a shared secret key.", description: "Sent out to other nodes on the mesh to allow them to compute a shared secret key",
}, },
{ {
type: "text", type: "text",
name: "privateKey", name: "privateKey",
label: "Private Key", label: "Private Key",
description: "Used to create a shared key with a remote device." description: "Used to create a shared key with a remote device",
},
],
},
{
label: "Admin Settings",
description: "Settings for Admin ",
fields: [
{
type: "toggle",
name: "adminChannelEnabled",
label: "Admin Channel",
description: "Enable 'admin' channel",
},
{
type: "toggle",
name: "isManaged",
label: "Is Managed",
description: "Enable if you want to manage this node from other nodes",
}, },
{ {
type: "text", type: "text",
name: "adminKey", name: "adminKey",
label: "Admin Key", label: "Admin Key",
description: "The public key authorized to send admin messages to this node." description: "The public key authorized to send admin messages to this node",
}
],
},
{
label: "Logging Settings",
description: "Settings for Logging",
fields: [
{
type: "toggle",
name: "bluetoothLoggingEnabled",
label: "Bluetooth Logging",
description: "Enable Bluetooth Logging",
},
{
type: "toggle",
name: "debugLogApiEnabled",
label: "Debug Log API",
description: "Enable Log API",
},
{
type: "toggle",
name: "serialEnabled",
label: "Serial",
description: "Enable Serial"
} }
], ],
}, },

Loading…
Cancel
Save