This commit is contained in:
2026-01-14 16:57:35 +08:00
parent 804baa64b2
commit ec265be26b
38 changed files with 585 additions and 294 deletions

14
src/shared/constant.ts Normal file
View File

@@ -0,0 +1,14 @@
export const LENGTH_MAX_DICTIONARY_TEXT = 30;
export const LENGTH_MIN_DICTIONARY_TEXT = 1;
export const LENGTH_MAX_LANGUAGE = 20;
export const LENGTH_MIN_LANGUAGE = 1;
export const LENGTH_MAX_PAIR_TEXT = 50;
export const LENGTH_MIN_PAIR_TEXT = 1;
export const LENGTH_MAX_IPA = 150;
export const LENGTH_MIN_IPA = 1;
export const LENGTH_MAX_FOLDER_NAME = 20;
export const LENGTH_MIN_FOLDER_NAME = 1;

View File

@@ -1,3 +0,0 @@
export type TSharedPair = {
};

23
src/shared/folder-type.ts Normal file
View File

@@ -0,0 +1,23 @@
export type TSharedFolder = {
id: number,
name: string,
userId: string;
};
export type TSharedFolderWithTotalPairs = {
id: number,
name: string,
userId: string,
total: number;
};
export type TSharedPair = {
text1: string;
text2: string;
language1: string;
language2: string;
ipa1: string | null;
ipa2: string | null;
id: number;
folderId: number;
};