This commit is contained in:
2025-08-06 21:27:29 +09:00
parent 1ff4b2c429
commit 644ba912b1
28 changed files with 498 additions and 124 deletions
+31 -7
View File
@@ -18,8 +18,8 @@ interface timeTypes {
stopTimes: stopsTypes;
}
interface emergencyMailTypes {
function: boolean;
interface emergencyMailFullTypes {
isEnabled: true;
host: string;
port: number;
user: string;
@@ -28,10 +28,18 @@ interface emergencyMailTypes {
to: string | string[];
}
interface emergencyTypes {
function: boolean;
mail: emergencyMailTypes;
report: boolean;
interface emergencyMailMinTypes {
isEnabled: false;
mail: undefined;
}
interface emergencyFullTypes {
isEnabled: true;
mail: emergencyMailFullTypes | emergemcyMailMinTypes;
}
interface emergencyMinTypes {
isEnabled: false;
}
interface legalTypes {
@@ -39,9 +47,24 @@ interface legalTypes {
privacy: string;
}
interface PanelFullTypes {
isEnabled: true;
port: number;
}
interface PanelMinTypes {
isEnabled: false;
}
interface adminTypes {
name: string;
showMail: string | false;
panel: PanelFullTypes | PanelMinTypes;
}
interface reportTypes {
isEnabled: boolean;
message: string;
}
interface uwuzuTypes {
@@ -55,8 +78,9 @@ export interface configTypes {
earthquake: earthquakeTypes;
weather: weatherTypes;
emergency: emergencyTypes;
emergency: emergencyFullTypes | emergencyMinTypes;
legal: legalTypes;
admin: adminTypes;
report: reportTypes;
uwuzu: uwuzuTypes;
}
+6
View File
@@ -56,3 +56,9 @@ export interface ueuseCreateApi {
export interface followApi {
userid: string;
}
export interface NetworkInterfaceDetails {
family: string;
internal: boolean;
address: string;
}