25.12.0-alpha.0
This commit is contained in:
Vendored
+55
-83
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user