Browse Source

chore(gui-v2): cleanup types

pull/3211/head
braks 2 years ago
parent
commit
c081ffc0a9
  1. 2
      packages/nc-gui-v2/components/dlg/AirtableImport.vue
  2. 2
      packages/nc-gui-v2/components/dlg/QuickImport.vue
  3. 2
      packages/nc-gui-v2/components/template/Editor.vue

2
packages/nc-gui-v2/components/dlg/AirtableImport.vue

@ -314,7 +314,7 @@ onBeforeUnmount(() => {
<div v-if="step === 2"> <div v-if="step === 2">
<div class="mb-4 prose-xl font-bold">Logs</div> <div class="mb-4 prose-xl font-bold">Logs</div>
<a-card ref="logRef" body-style="background-color: #000000; height:400px; overflow: auto;"> <a-card ref="logRef" :body-style="{ backgroundColor: '#000000', height: '400px', overflow: 'auto' }">
<div v-for="({ msg, status }, i) in progress" :key="i"> <div v-for="({ msg, status }, i) in progress" :key="i">
<div v-if="status === 'FAILED'" class="flex items-center"> <div v-if="status === 'FAILED'" class="flex items-center">
<MdiCloseCircleOutlineIcon class="text-red-500" /> <MdiCloseCircleOutlineIcon class="text-red-500" />

2
packages/nc-gui-v2/components/dlg/QuickImport.vue

@ -191,7 +191,7 @@ async function parseAndExtractData(val: any, name: string) {
} }
} }
function rejectDrop(fileList: Record<string, any>[]) { function rejectDrop(fileList: UploadFile[]) {
fileList.map((file) => { fileList.map((file) => {
return message.error(`Failed to upload file ${file.name}`) return message.error(`Failed to upload file ${file.name}`)
}) })

2
packages/nc-gui-v2/components/template/Editor.vue

@ -84,7 +84,7 @@ const uiTypeOptions = ref<Option[]>(
const srcDestMapping = ref<Record<string, any>[]>([]) const srcDestMapping = ref<Record<string, any>[]>([])
const data = reactive<{ title: string | null; name: string; tables: TableType[] }>({ const data = reactive<{ title: string | null; name: string; tables: (TableType & { ref_table_name: string })[] }>({
title: null, title: null,
name: 'Project Name', name: 'Project Name',
tables: [], tables: [],

Loading…
Cancel
Save