Initial commit

This commit is contained in:
2025-03-05 21:38:10 +01:00
commit 503909d762
198 changed files with 19203 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
export interface CleanNote {
label: string;
weight: number;
}

6
src/app/types/group.ts Normal file
View File

@@ -0,0 +1,6 @@
export interface Group {
_id: string;
name: string;
rooms?: number[];
unames?: string[]
}

13
src/app/types/key.ts Normal file
View File

@@ -0,0 +1,13 @@
interface UKey {
room: string;
taken: boolean;
}
interface AKey {
room: string;
whom?: {_id: string, uname: string, room: number};
borrow?: moment.Moment;
tb?: moment.Moment;
}
export { UKey, AKey }

6
src/app/types/link.ts Normal file
View File

@@ -0,0 +1,6 @@
export interface Link {
title: string;
href: string;
icon?: string;
enabled: boolean;
}

23
src/app/types/menu.ts Normal file
View File

@@ -0,0 +1,23 @@
import { Moment } from "moment";
export interface Menu {
_id: string;
day: Moment;
sn?: {
fancy: string[];
second: string;
};
ob?: {
soup: string;
vege: string;
meal: string;
condiments: string[];
drink: string;
other: string[];
};
kol?: string;
kolv?: "+" | "-" | "n";
obv?: "+" | "-" | "n";
stat?: {kol?: string, ob?: string};
dayTitle?: string;
}

8
src/app/types/news.ts Normal file
View File

@@ -0,0 +1,8 @@
export interface News {
_id: string;
title: string;
content: string
date: string
visible?: boolean;
pinned?: boolean
}

View File

@@ -0,0 +1,9 @@
export interface Notification {
body: string;
title: string;
recp: {
uname: string | null;
room: number | null;
type: "all" | "room" | "uname"
}
}

3
src/app/types/status.ts Normal file
View File

@@ -0,0 +1,3 @@
export interface Status {
status: number
}