implement install-commands button (#10)

* fix: type conversion

* implement install-commands button
This commit is contained in:
UUBulb
2024-11-30 13:44:17 +08:00
committed by GitHub
parent 35436e69bb
commit 7d672fa8c5
8 changed files with 149 additions and 12 deletions

View File

@@ -0,0 +1,5 @@
import { ConfigEssential } from "@/types";
export interface ConfigContextProps {
config?: ConfigEssential;
}

13
src/types/configStore.ts Normal file
View File

@@ -0,0 +1,13 @@
export interface ConfigEssential {
language: string;
agent_secret_key: string;
install_host: string;
listen_port: number;
site_name: string;
tls: boolean;
}
export interface ConfigStore {
config?: ConfigEssential;
setConfig: (config?: ConfigEssential) => void;
}

View File

@@ -12,3 +12,5 @@ export * from './notificationStore';
export * from './notificationContext';
export * from './fm';
export * from './settings';
export * from './configStore';
export * from './configContext';