migrate importing transaction dialog to composition API and typescript

This commit is contained in:
MaysWind
2025-02-04 01:29:11 +08:00
parent 61c5f75006
commit 376f5b2650
8 changed files with 1540 additions and 1364 deletions
+7 -16
View File
@@ -1,21 +1,12 @@
import type { ImportFileType } from '@/core/file.ts';
export const SUPPORTED_IMAGE_EXTENSIONS: string = '.jpg,.jpeg,.png,.gif,.webp';
export interface ImportFileType {
readonly type: string;
readonly name: string;
readonly extensions: string;
readonly subTypes?: ImportFileTypeSubType[];
readonly document?: {
readonly supportMultiLanguages: boolean | string;
readonly anchor: string;
};
}
export interface ImportFileTypeSubType {
readonly type: string;
readonly name: string;
readonly extensions?: string;
}
export const DEFAULT_DOCUMENT_LANGUAGE_FOR_IMPORT_FILE: string = 'en';
export const SUPPORTED_DOCUMENT_LANGUAGES_FOR_IMPORT_FILE: Record<string, boolean> = {
DEFAULT_DOCUMENT_LANGUAGE_FOR_IMPORT_FILE: true,
'zh-Hans': true
};
export const SUPPORTED_IMPORT_FILE_TYPES: ImportFileType[] = [
{