mirror of
https://github.com/lemeow125/StudE-Frontend.git
synced 2025-05-17 03:48:06 +08:00
Improved homepage
This commit is contained in:
parent
33ffcde6be
commit
529a7a75fd
6 changed files with 246 additions and 82 deletions
|
@ -122,6 +122,23 @@ export interface PatchStudentData {
|
|||
avatar?: string | null;
|
||||
}
|
||||
|
||||
interface Location {
|
||||
latitude: number;
|
||||
longitude: number;
|
||||
}
|
||||
|
||||
export interface StudentStatus {
|
||||
user?: string;
|
||||
subject?: string;
|
||||
location?: Location;
|
||||
landmark?: string | null;
|
||||
active?: boolean;
|
||||
}
|
||||
|
||||
export type StudentStatusParams = [boolean, StudentStatus];
|
||||
|
||||
export type LocationType = Location.LocationObject;
|
||||
|
||||
export interface StudentData {
|
||||
first_name: string;
|
||||
last_name: string;
|
||||
|
@ -135,21 +152,8 @@ export interface StudentData {
|
|||
course_shortname: string;
|
||||
year_level: string;
|
||||
yearlevel_shortname: string;
|
||||
subjects: string[]; // To-do
|
||||
subjects: string[];
|
||||
username: string;
|
||||
}
|
||||
|
||||
export type UserInfoParams = [boolean, StudentData];
|
||||
|
||||
interface Location {
|
||||
latitude: number;
|
||||
longtitude: number;
|
||||
}
|
||||
|
||||
export interface StudentStatusParams {
|
||||
subject?: string;
|
||||
location?: Location;
|
||||
active?: boolean;
|
||||
}
|
||||
|
||||
export type LocationType = Location.LocationObject;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue