25.12.0-alpha.0

This commit is contained in:
2025-11-30 17:44:44 +09:00
parent a53f8f3023
commit 0ee2728590
45 changed files with 220 additions and 280 deletions
+55 -83
View File
@@ -1,87 +1,59 @@
interface earthquakeTypes {
reconnectTimes: number;
websocketUrl: string;
areasCsvUrl: string;
maxScaleMin: number;
}
interface weatherTypes {
splitCount: number;
}
interface stopsTypes {
start: number;
stop: number;
}
interface timeTypes {
stopTimes: stopsTypes;
}
interface emergencyMailFullTypes {
isEnabled: true;
host: string;
port: number;
user: string;
password: string;
secure: boolean;
to: string | string[];
}
interface emergencyMailMinTypes {
isEnabled: false;
mail: undefined;
}
interface emergencyFullTypes {
isEnabled: true;
mail: emergencyMailFullTypes | emergemcyMailMinTypes;
}
interface emergencyMinTypes {
isEnabled: false;
}
interface reportTypes {
isEnabled: boolean;
message: string;
}
interface legalTypes {
terms: string;
privacy: string;
}
interface PanelFullTypes {
isEnabled: true;
port: number;
}
interface PanelMinTypes {
isEnabled: false;
}
interface adminTypes {
name: string;
showMail: string | false;
panel: PanelFullTypes | PanelMinTypes;
}
interface uwuzuTypes {
apiToken: string;
host: string;
}
export interface configTypes {
time: timeTypes,
earthquake: earthquakeTypes;
weather: weatherTypes;
export default interface Config {
time: {
stopTimes: {
start: number;
stop: number;
};
};
earthquake: {
reconnectTimes: number;
websocketUrl: string;
areasCsvUrl: string;
maxScaleMin: number;
};
weather: {
splitCount: number;
};
miq: boolean;
emergency: emergencyFullTypes | emergencyMinTypes;
report: reportTypes;
legal: legalTypes;
admin: adminTypes;
uwuzu: uwuzuTypes;
emergency: {
isEnabled: true;
mail: {
isEnabled: true;
host: string;
port: number;
user: string;
password: string;
secure: boolean;
to: string | string[];
} | {
isEnabled: false;
mail: undefined;
};
} | {
isEnabled: false;
};
report: {
isEnabled: boolean;
message: string;
};
legal: {
terms: string;
privacy: string;
};
admin: {
name: string;
showMail: string | false;
panel: {
isEnabled: true;
port: number;
} | {
isEnabled: false;
};
};
uwuzu: {
apiToken: string;
host: string;
};
debug?: true;
}