refactor(all): migrate from React to Next.js
This commit is contained in:
@@ -49,6 +49,8 @@ export interface UserListSchema {
|
||||
first_name: string;
|
||||
last_name: string;
|
||||
full_name?: string | null;
|
||||
university?: string | null;
|
||||
major?: string | null;
|
||||
is_active: boolean;
|
||||
is_staff: boolean;
|
||||
is_superuser: boolean;
|
||||
@@ -61,10 +63,10 @@ export interface UserRegistrationSchema {
|
||||
username: string;
|
||||
first_name: string;
|
||||
last_name: string;
|
||||
student_id: string;
|
||||
year_of_study: number;
|
||||
major: string;
|
||||
university: string;
|
||||
student_id?: string | null;
|
||||
year_of_study?: number | null;
|
||||
major?: string | null;
|
||||
university?: string | null;
|
||||
}
|
||||
|
||||
export type UserUpdateSchema = {
|
||||
@@ -74,7 +76,7 @@ export type UserUpdateSchema = {
|
||||
year_of_study?: number | null;
|
||||
major?: string | null;
|
||||
university?: string | null;
|
||||
student_id?: number | null;
|
||||
student_id?: string | null;
|
||||
};
|
||||
|
||||
|
||||
@@ -107,6 +109,7 @@ export interface PostListSchema {
|
||||
slug: string;
|
||||
excerpt?: string;
|
||||
featured_image?: string;
|
||||
absolute_featured_image_url?: string | null;
|
||||
author: {
|
||||
id: number;
|
||||
username: string;
|
||||
@@ -134,6 +137,7 @@ export interface PostListSchema {
|
||||
|
||||
export interface PostDetailSchema extends PostListSchema {
|
||||
content: string;
|
||||
content_html?: string;
|
||||
updated_at: string;
|
||||
views_count?: number;
|
||||
}
|
||||
@@ -205,6 +209,8 @@ export interface EventListItemSchema {
|
||||
capacity?: number | null;
|
||||
price?: number | null;
|
||||
status: 'draft' | 'published' | 'cancelled' | 'completed';
|
||||
status_label?: string;
|
||||
event_type_label?: string;
|
||||
registration_count: number;
|
||||
created_at: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user