|
|
@ -57,7 +57,7 @@ export interface Group { |
|
|
export interface Command { |
|
|
export interface Command { |
|
|
name: string; |
|
|
name: string; |
|
|
icon: (props: React.ComponentProps<"svg">) => JSX.Element; |
|
|
icon: (props: React.ComponentProps<"svg">) => JSX.Element; |
|
|
action?: () => void; |
|
|
action: () => void; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
export const CommandPalette = (): JSX.Element => { |
|
|
export const CommandPalette = (): JSX.Element => { |
|
|
@ -135,8 +135,11 @@ export const CommandPalette = (): JSX.Element => { |
|
|
icon: DevicePhoneMobileIcon, |
|
|
icon: DevicePhoneMobileIcon, |
|
|
commands: [ |
|
|
commands: [ |
|
|
{ |
|
|
{ |
|
|
name: "Switch Node", |
|
|
name: "[WIP] Switch Node", |
|
|
icon: ArrowsRightLeftIcon, |
|
|
icon: ArrowsRightLeftIcon, |
|
|
|
|
|
action() { |
|
|
|
|
|
alert('This feature is not implemented'); |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
name: "Connect New Node", |
|
|
name: "Connect New Node", |
|
|
@ -194,8 +197,11 @@ export const CommandPalette = (): JSX.Element => { |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
name: "Clear Messages", |
|
|
name: "[WIP] Clear Messages", |
|
|
icon: ArchiveBoxXMarkIcon, |
|
|
icon: ArchiveBoxXMarkIcon, |
|
|
|
|
|
action() { |
|
|
|
|
|
alert('This feature is not implemented'); |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
], |
|
|
], |
|
|
}, |
|
|
}, |
|
|
@ -204,8 +210,11 @@ export const CommandPalette = (): JSX.Element => { |
|
|
icon: WindowIcon, |
|
|
icon: WindowIcon, |
|
|
commands: [ |
|
|
commands: [ |
|
|
{ |
|
|
{ |
|
|
name: "Toggle Dark Mode", |
|
|
name: "[WIP] Toggle Dark Mode", |
|
|
icon: MoonIcon, |
|
|
icon: MoonIcon, |
|
|
|
|
|
action() { |
|
|
|
|
|
alert('This feature is not implemented'); |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
], |
|
|
], |
|
|
}, |
|
|
}, |
|
|
|