feat: remove appwrite and add nextjs backend
This commit is contained in:
2
frontend/src/types/File.type.ts
Normal file
2
frontend/src/types/File.type.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
export type FileUpload = File & { uploadingState?: UploadState };
|
||||
export type UploadState = "finished" | "inProgress" | undefined;
|
||||
23
frontend/src/types/share.type.ts
Normal file
23
frontend/src/types/share.type.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
import User from "./user.type";
|
||||
|
||||
export type Share = {
|
||||
id: string;
|
||||
files: any;
|
||||
creator: User;
|
||||
expiration: Date;
|
||||
};
|
||||
|
||||
export type ShareMetaData = {
|
||||
id: string;
|
||||
isZipReady: boolean;
|
||||
};
|
||||
|
||||
export type MyShare = Share & {
|
||||
views: number;
|
||||
cratedAt: Date;
|
||||
};
|
||||
|
||||
export type ShareSecurity = {
|
||||
maxViews?: number;
|
||||
password?: string;
|
||||
};
|
||||
8
frontend/src/types/user.type.ts
Normal file
8
frontend/src/types/user.type.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
export default interface User {
|
||||
id: string;
|
||||
firstName?: string;
|
||||
lastName?: string;
|
||||
email: string;
|
||||
}
|
||||
|
||||
export interface CurrentUser extends User {}
|
||||
Reference in New Issue
Block a user