From a34c2ba8d5a8c30250b441a95e6f4c4312a19ce3 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Mon, 25 Jul 2022 16:45:33 +0800 Subject: [PATCH] refactor(gui-v2): run lint --- .../components/dlg/AirtableImport.vue | 8 ++--- .../nc-gui-v2/components/dlg/QuickImport.vue | 12 ++++--- .../nc-gui-v2/components/dlg/TableCreate.vue | 32 ++++++++----------- .../nc-gui-v2/utils/parsers/parserHelpers.ts | 2 +- 4 files changed, 26 insertions(+), 28 deletions(-) diff --git a/packages/nc-gui-v2/components/dlg/AirtableImport.vue b/packages/nc-gui-v2/components/dlg/AirtableImport.vue index d2a1f16586..50c337bbbf 100644 --- a/packages/nc-gui-v2/components/dlg/AirtableImport.vue +++ b/packages/nc-gui-v2/components/dlg/AirtableImport.vue @@ -188,7 +188,7 @@ onMounted(() => { QUICK IMPORT - AIRTABLE @@ -234,7 +234,7 @@ onMounted(() => { - Import Formula Columns + Import Formula Columns @@ -249,7 +249,7 @@ onMounted(() => {
Logs
- +
@@ -261,12 +261,12 @@ onMounted(() => {
Importing diff --git a/packages/nc-gui-v2/components/dlg/QuickImport.vue b/packages/nc-gui-v2/components/dlg/QuickImport.vue index 0974427a47..15630ae56d 100644 --- a/packages/nc-gui-v2/components/dlg/QuickImport.vue +++ b/packages/nc-gui-v2/components/dlg/QuickImport.vue @@ -10,8 +10,12 @@ import MdiLinkVariantIcon from '~icons/mdi/link-variant' import MdiCodeJSONIcon from '~icons/mdi/code-json' import { fieldRequiredValidator, importUrlValidator } from '~/utils/validation' import { extractSdkResponseErrorMsg } from '~/utils/errorUtils' -import { JSONTemplateAdapter, JSONUrlTemplateAdapter, ExcelTemplateAdapter, ExcelUrlTemplateAdapter } from '~/utils/parsers' +import { ExcelTemplateAdapter, ExcelUrlTemplateAdapter, JSONTemplateAdapter, JSONUrlTemplateAdapter } from '~/utils/parsers' import { useProject } from '#imports' +const { modelValue, importType } = defineProps() + +const emit = defineEmits(['update:modelValue']) + const { t } = useI18n() interface Props { @@ -19,10 +23,8 @@ interface Props { importType: 'csv' | 'json' | 'excel' } -const { modelValue, importType } = defineProps() const { tables } = useProject() const toast = useToast() -const emit = defineEmits(['update:modelValue']) const activeKey = ref('uploadTab') const jsonEditorRef = ref() const loading = ref(false) @@ -211,10 +213,10 @@ const parseAndExtractData = async (val: any, name: string) => { name="file" :multiple="true" :accept="importMeta.acceptTypes" + list-type="picture" @change="handleChange" @drop="handleDrop" @reject="rejectDrop" - list-type="picture" >

Click or drag file to this area to upload

@@ -232,7 +234,7 @@ const parseAndExtractData = async (val: any, name: string) => {
- +
diff --git a/packages/nc-gui-v2/components/dlg/TableCreate.vue b/packages/nc-gui-v2/components/dlg/TableCreate.vue index 6de0863b1b..3ba3616bd9 100644 --- a/packages/nc-gui-v2/components/dlg/TableCreate.vue +++ b/packages/nc-gui-v2/components/dlg/TableCreate.vue @@ -1,13 +1,17 @@