feat: responsive fm card (#11)

* feat: responsive fm card

* delete meaningless words

* fix joinIP
This commit is contained in:
UUBulb
2024-11-22 22:15:41 +08:00
committed by GitHub
parent 87e17a07df
commit 2991b91f35
6 changed files with 98 additions and 30 deletions

View File

@@ -180,6 +180,8 @@ export interface ModelConfig {
listen_port: number;
/** 时区,默认为 Asia/Shanghai */
location: string;
/** 真实IP */
real_ip_header: string;
site_name: string;
tls: boolean;
}
@@ -291,14 +293,17 @@ export interface ModelForceUpdateResponse {
success?: number[];
}
export interface ModelGeoIP {
country_code: string;
ip: ModelIP;
}
export interface ModelHost {
arch: string;
boot_time: number;
country_code: string;
cpu: string[];
disk_total: number;
gpu: string[];
ip: string;
mem_total: number;
platform: string;
platform_version: string;
@@ -327,6 +332,11 @@ export interface ModelHostState {
uptime: number;
}
export interface ModelIP {
ipv4_addr: string;
ipv6_addr: string;
}
export interface ModelLoginRequest {
password: string;
username: string;
@@ -439,6 +449,7 @@ export interface ModelServer {
display_index: number;
/** 启用DDNS */
enable_ddns: boolean;
geoip: ModelGeoIP;
/** 对游客隐藏 */
hide_for_guest: boolean;
host: ModelHost;