Initial commit
This commit is contained in:
4
src/app/types/clean-note.ts
Normal file
4
src/app/types/clean-note.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export interface CleanNote {
|
||||
label: string;
|
||||
weight: number;
|
||||
}
|
||||
6
src/app/types/group.ts
Normal file
6
src/app/types/group.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export interface Group {
|
||||
_id: string;
|
||||
name: string;
|
||||
rooms?: number[];
|
||||
unames?: string[]
|
||||
}
|
||||
13
src/app/types/key.ts
Normal file
13
src/app/types/key.ts
Normal 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
6
src/app/types/link.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export interface Link {
|
||||
title: string;
|
||||
href: string;
|
||||
icon?: string;
|
||||
enabled: boolean;
|
||||
}
|
||||
23
src/app/types/menu.ts
Normal file
23
src/app/types/menu.ts
Normal 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
8
src/app/types/news.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
export interface News {
|
||||
_id: string;
|
||||
title: string;
|
||||
content: string
|
||||
date: string
|
||||
visible?: boolean;
|
||||
pinned?: boolean
|
||||
}
|
||||
9
src/app/types/notification.ts
Normal file
9
src/app/types/notification.ts
Normal 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
3
src/app/types/status.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export interface Status {
|
||||
status: number
|
||||
}
|
||||
Reference in New Issue
Block a user