feat: edit server config online (#112)

* feat: edit server config online

* fix schema

* fix error
This commit is contained in:
UUBulb
2025-01-31 13:32:16 +08:00
committed by GitHub
parent 42b85f74a9
commit a794b6dd31
6 changed files with 338 additions and 1 deletions
+5
View File
@@ -4,6 +4,7 @@ import {
Check,
CircleArrowUp,
Clipboard,
CogIcon,
Download,
Edit2,
Expand,
@@ -33,6 +34,7 @@ export interface IconButtonProps extends ButtonProps {
| "menu"
| "ban"
| "expand"
| "cog"
}
export const IconButton = forwardRef<HTMLButtonElement, IconButtonProps>((props, ref) => {
@@ -87,6 +89,9 @@ export const IconButton = forwardRef<HTMLButtonElement, IconButtonProps>((props,
case "expand": {
return <Expand />
}
case "cog": {
return <CogIcon />
}
}
})()}
</Button>