frpc-desktop/types/global.d.ts

97 lines
2.1 KiB
TypeScript
Raw Normal View History

2024-08-16 23:59:40 +08:00
declare module 'element-plus/dist/locale/zh-cn.mjs' {
const zhLocale: any;
export default zhLocale;
}
declare module 'element-plus/dist/locale/en.mjs' {
const enLocale: any;
export default enLocale;
}
declare global {
/**
*
*/
type Proxy = {
_id: string;
name: string;
type: string;
localIp: string;
localPort: any;
2024-09-07 17:01:49 +08:00
remotePort: string;
2024-08-16 23:59:40 +08:00
customDomains: string[];
stcpModel: string;
serverName: string;
secretKey: string;
bindAddr: string;
2024-08-17 17:22:46 +08:00
bindPort: number;
status: boolean;
subdomain: string;
basicAuth: boolean;
httpUser: string;
httpPassword: string;
fallbackTo: string;
fallbackTimeoutMs: number;
2024-08-16 23:59:40 +08:00
};
/**
*
*/
type LocalPort = {
protocol: string;
ip: string;
port: number;
}
/**
*
*/
type FrpVersion = {
2024-08-17 17:22:46 +08:00
id: number;
2024-08-16 23:59:40 +08:00
name: string;
published_at: string;
download_completed: boolean;
2024-08-21 13:37:42 +08:00
size: string;
download_count: number;
2024-08-16 23:59:40 +08:00
absPath: string;
assets: Asset[]
};
/**
*
*/
type FrpConfig = {
currentVersion: number;
2024-08-16 23:59:40 +08:00
serverAddr: string;
serverPort: number;
authMethod: string;
authToken: string;
logLevel: string;
logMaxDays: number;
tlsConfigEnable: boolean;
tlsConfigCertFile: string;
tlsConfigKeyFile: string;
tlsConfigTrustedCaFile: string;
tlsConfigServerName: string;
proxyConfigEnable: boolean;
proxyConfigProxyUrl: string;
systemSelfStart: boolean;
systemStartupConnect: boolean;
2024-10-14 11:24:54 +08:00
systemSilentStartup: boolean;
2024-08-16 23:59:40 +08:00
user: string;
metaToken: string;
transportHeartbeatInterval: number;
transportHeartbeatTimeout: number;
2024-12-02 17:49:04 +08:00
webEnable: boolean;
webPort: number;
2024-08-16 23:59:40 +08:00
};
2024-08-21 13:37:42 +08:00
type GitHubMirror = {
id: string;
name: string;
}
2024-08-16 23:59:40 +08:00
}
export {};