|
|
@ -43,8 +43,10 @@ const showApiSnippetDrawer = ref(false) |
|
|
|
const showErd = ref(false) |
|
|
|
const showErd = ref(false) |
|
|
|
|
|
|
|
|
|
|
|
type QuickImportDialogType = 'csv' | 'excel' | 'json' |
|
|
|
type QuickImportDialogType = 'csv' | 'excel' | 'json' |
|
|
|
|
|
|
|
|
|
|
|
// TODO: add 'json' when it's ready |
|
|
|
// TODO: add 'json' when it's ready |
|
|
|
const quickImportDialogTypes: QuickImportDialogType[] = ['csv', 'excel'] |
|
|
|
const quickImportDialogTypes: QuickImportDialogType[] = ['csv', 'excel'] |
|
|
|
|
|
|
|
|
|
|
|
const quickImportDialogs: Record<typeof quickImportDialogTypes[number], Ref<boolean>> = quickImportDialogTypes.reduce( |
|
|
|
const quickImportDialogs: Record<typeof quickImportDialogTypes[number], Ref<boolean>> = quickImportDialogTypes.reduce( |
|
|
|
(acc: any, curr) => { |
|
|
|
(acc: any, curr) => { |
|
|
|
acc[curr] = ref(false) |
|
|
|
acc[curr] = ref(false) |
|
|
|