frpc-desktop/types/global.d.ts

88 lines
1.8 KiB
TypeScript
Raw Permalink 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;
2024-09-07 17:01:49 +08:00
localPort: string;
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;
2024-09-02 23:26:55 +08:00
status: boolean
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;
user: string;
metaToken: string;
transportHeartbeatInterval: number;
transportHeartbeatTimeout: number;
};
2024-08-21 13:37:42 +08:00
type GitHubMirror = {
id: string;
name: string;
}
2024-08-16 23:59:40 +08:00
}
export {};