mirror of
https://github.com/Buriburizaem0n/admin-frontend-domain.git
synced 2026-11-04 08:50:20 +00:00
update settings api (#121)
* update settings api * chore: auto-fix linting and formatting issues
This commit is contained in:
1 parent
41d4d7fc69
commit
1ee664f09b
3 files changed
+53
-74
No files matched your search
@@ -8,7 +8,7 @@ import {
|
||||
import { useAuth } from "@/hooks/useAuth"
|
||||
import useSettings from "@/hooks/useSetting"
|
||||
import { copyToClipboard } from "@/lib/utils"
|
||||
import { ModelConfig, ModelProfile } from "@/types"
|
||||
import { ModelProfile, ModelSetting } from "@/types"
|
||||
import i18next from "i18next"
|
||||
import { Check, Clipboard } from "lucide-react"
|
||||
import { forwardRef, useState } from "react"
|
||||
@@ -88,7 +88,7 @@ export const InstallCommandsMenu = forwardRef<HTMLButtonElement, ButtonProps>((p
|
||||
|
||||
const generateCommand = (
|
||||
type: number,
|
||||
{ agent_secret_key, install_host, tls }: ModelConfig,
|
||||
{ agent_secret_key, install_host, tls }: ModelSetting,
|
||||
{ agent_secret, role }: ModelProfile,
|
||||
) => {
|
||||
if (!install_host) throw new Error(i18next.t("Results.InstallHostRequired"))
|
||||
|
||||
Reference in new issue
Block a user