mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-15 15:37:33 +08:00
migrate importing transaction dialog to composition API and typescript
This commit is contained in:
+7
-16
@@ -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[] = [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user