mirror of
https://github.com/Buriburizaem0n/admin-frontend-domain.git
synced 2026-02-04 12:40:08 +00:00
implement install-commands button (#10)
* fix: type conversion * implement install-commands button
This commit is contained in:
5
src/types/configContext.ts
Normal file
5
src/types/configContext.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { ConfigEssential } from "@/types";
|
||||
|
||||
export interface ConfigContextProps {
|
||||
config?: ConfigEssential;
|
||||
}
|
||||
13
src/types/configStore.ts
Normal file
13
src/types/configStore.ts
Normal 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;
|
||||
}
|
||||
@@ -12,3 +12,5 @@ export * from './notificationStore';
|
||||
export * from './notificationContext';
|
||||
export * from './fm';
|
||||
export * from './settings';
|
||||
export * from './configStore';
|
||||
export * from './configContext';
|
||||
|
||||
Reference in New Issue
Block a user