Add initial /servers route

This commit is contained in:
Neshura 2024-01-04 01:35:56 +01:00
parent 99679cc45b
commit abea3f1be9
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C
7 changed files with 247 additions and 60 deletions
src/lib/types

View file

@ -1,7 +1,7 @@
export type Service = {
readonly name: string;
readonly icon: string;
readonly iconType: IconType;
readonly icon?: string;
readonly iconType?: IconType;
readonly href: string;
readonly desc: string;
readonly warn: string;
@ -9,6 +9,17 @@ export type Service = {
readonly id: number;
};
export type Server = {
readonly name: string;
readonly icon?: string;
readonly iconType?: IconType;
readonly connection?: string;
readonly href?: string;
readonly desc?: string;
readonly extLink?: string;
readonly id?: number;
};
export enum IconType {
SVG = 'svg',
AVIF = 'avif',