Browse Source

chore(gui-v2): lint

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/2882/head
Pranav C 2 years ago
parent
commit
322e73e253
  1. 9
      packages/nc-gui-v2/components/dashboard/settings/AuditTab.vue
  2. 2
      packages/nc-gui-v2/components/dashboard/settings/Metadata.vue
  3. 4
      packages/nc-gui-v2/components/dashboard/settings/UIAcl.vue
  4. 14
      packages/nc-gui-v2/components/dlg/AirtableImport.vue
  5. 4
      packages/nc-gui-v2/components/smartsheet/Grid.vue

9
packages/nc-gui-v2/components/dashboard/settings/AuditTab.vue

@ -96,6 +96,13 @@ const columns = [
/> />
</div> </div>
<a-table class="w-full" size="small" :data-source="audits ?? []" :columns="columns" :pagination="false" :loading="isLoading" /> <a-table
class="w-full"
size="small"
:data-source="audits ?? []"
:columns="columns"
:pagination="false"
:loading="isLoading"
/>
</div> </div>
</template> </template>

2
packages/nc-gui-v2/components/dashboard/settings/Metadata.vue

@ -88,7 +88,7 @@ const columns = [
</div> </div>
<a-table <a-table
class="w-full" class="w-full"
:customRow=" :custom-row="
(record) => ({ (record) => ({
class: `nc-metasync-row nc-metasync-row-${record.title}`, class: `nc-metasync-row nc-metasync-row-${record.title}`,
}) })

4
packages/nc-gui-v2/components/dashboard/settings/UIAcl.vue

@ -13,7 +13,7 @@ const toast = useToast()
const roles = $ref<string[]>(['editor', 'commenter', 'viewer']) const roles = $ref<string[]>(['editor', 'commenter', 'viewer'])
let isLoading = $ref(false) let isLoading = $ref(false)
let tables = $ref<any[]>([]) let tables = $ref<any[]>([])
let searchInput = $ref('') const searchInput = $ref('')
const filteredTables = computed(() => const filteredTables = computed(() =>
tables.filter( tables.filter(
@ -123,7 +123,7 @@ const columns = [
:pagination="false" :pagination="false"
:loading="isLoading" :loading="isLoading"
bordered bordered
:customRow=" :custom-row="
(record) => ({ (record) => ({
class: `nc-acl-table-row nc-acl-table-row-${record.title}`, class: `nc-acl-table-row nc-acl-table-row-${record.title}`,
}) })

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

@ -240,10 +240,20 @@ onBeforeUnmount(() => {
</div> </div>
<a-form ref="form" :model="syncSource" name="quick-import-airtable-form" layout="horizontal" class="ma-0"> <a-form ref="form" :model="syncSource" name="quick-import-airtable-form" layout="horizontal" class="ma-0">
<a-form-item v-bind="validateInfos['details.apiKey']"> <a-form-item v-bind="validateInfos['details.apiKey']">
<a-input-password v-model:value="syncSource.details.apiKey" class="nc-input-api-key" placeholder="Api Key" size="large" /> <a-input-password
v-model:value="syncSource.details.apiKey"
class="nc-input-api-key"
placeholder="Api Key"
size="large"
/>
</a-form-item> </a-form-item>
<a-form-item v-bind="validateInfos['details.syncSourceUrlOrId']"> <a-form-item v-bind="validateInfos['details.syncSourceUrlOrId']">
<a-input v-model:value="syncSource.details.syncSourceUrlOrId" class="nc-input-shared-base" placeholder="Shared Base ID / URL" size="large" /> <a-input
v-model:value="syncSource.details.syncSourceUrlOrId"
class="nc-input-shared-base"
placeholder="Shared Base ID / URL"
size="large"
/>
</a-form-item> </a-form-item>
<span class="prose-xl font-bold self-center my-4">Advanced Settings</span> <span class="prose-xl font-bold self-center my-4">Advanced Settings</span>
<a-divider class="mt-2 mb-5" /> <a-divider class="mt-2 mb-5" />

4
packages/nc-gui-v2/components/smartsheet/Grid.vue

@ -27,9 +27,7 @@ const selected = reactive<{ row?: number | null; col?: number | null }>({})
const editEnabled = ref(false) const editEnabled = ref(false)
const { loadData, paginationData, formattedData: data, updateRowProperty, changePage } = useViewData(meta, view) const { loadData, paginationData, formattedData: data, updateRowProperty, changePage } = useViewData(meta, view)
const { loadGridViewColumns, updateWidth, resizingColWidth, resizingCol } = useGridViewColumnWidth( const { loadGridViewColumns, updateWidth, resizingColWidth, resizingCol } = useGridViewColumnWidth(view)
view
)
onMounted(loadGridViewColumns) onMounted(loadGridViewColumns)
provide(IsFormInj, false) provide(IsFormInj, false)

Loading…
Cancel
Save