Refactor application structure and simplify implementation
This commit is contained in:
+10
-7
@@ -1,10 +1,11 @@
|
||||
export type Protocol = 'TCP' | 'UDP';
|
||||
export type ProfileItemType = 'process' | 'folder' | 'exe';
|
||||
export type TargetKind = 'local' | 'external';
|
||||
export type ProxyProtocol = 'socks5' | 'http';
|
||||
export type ComponentId = 'control-app' | 'proxyfier' | 'singbox';
|
||||
export type ComponentState = 'installed' | 'missing' | 'stopped' | 'running' | 'error';
|
||||
export type ActivityLevel = 'info' | 'warning' | 'error' | 'success';
|
||||
export type Protocol = "TCP" | "UDP";
|
||||
export type ProfileItemType = "process" | "folder" | "exe";
|
||||
export type TargetKind = "local" | "external";
|
||||
export type ProxyProtocol = "socks5" | "http";
|
||||
export type ComponentId = "control-app" | "proxyfier" | "singbox";
|
||||
export type ComponentState =
|
||||
"installed" | "missing" | "stopped" | "running" | "error";
|
||||
export type ActivityLevel = "info" | "warning" | "error" | "success";
|
||||
|
||||
export interface ProfileItemInput {
|
||||
type: ProfileItemType | string;
|
||||
@@ -74,6 +75,7 @@ export interface LocalSingBoxConfig {
|
||||
subscriptionDisplayUrl?: string;
|
||||
hasSubscription: boolean;
|
||||
selectedServerTag?: string;
|
||||
selectedServerId?: string;
|
||||
listenHost: string;
|
||||
listenPort: number;
|
||||
serviceName: string;
|
||||
@@ -82,6 +84,7 @@ export interface LocalSingBoxConfig {
|
||||
}
|
||||
|
||||
export interface SubscriptionServer {
|
||||
id: string;
|
||||
tag: string;
|
||||
type: string;
|
||||
server: string;
|
||||
|
||||
Reference in New Issue
Block a user