Browse Source

chore(gui-v2): lint

pull/2885/head
Wing-Kam Wong 2 years ago
parent
commit
da9e23a62b
  1. 3
      packages/nc-gui-v2/components.d.ts
  2. 9
      packages/nc-gui-v2/components/dashboard/settings/AuditTab.vue
  3. 2
      packages/nc-gui-v2/components/dashboard/settings/Metadata.vue
  4. 4
      packages/nc-gui-v2/components/dashboard/settings/UIAcl.vue
  5. 14
      packages/nc-gui-v2/components/dlg/AirtableImport.vue

3
packages/nc-gui-v2/components.d.ts vendored

@ -7,6 +7,7 @@ export {}
declare module '@vue/runtime-core' { declare module '@vue/runtime-core' {
export interface GlobalComponents { export interface GlobalComponents {
AAlert: typeof import('ant-design-vue/es')['Alert']
AAnchorLink: typeof import('ant-design-vue/es')['AnchorLink'] AAnchorLink: typeof import('ant-design-vue/es')['AnchorLink']
AAutoComplete: typeof import('ant-design-vue/es')['AutoComplete'] AAutoComplete: typeof import('ant-design-vue/es')['AutoComplete']
AButton: typeof import('ant-design-vue/es')['Button'] AButton: typeof import('ant-design-vue/es')['Button']
@ -16,6 +17,7 @@ declare module '@vue/runtime-core' {
ACollapse: typeof import('ant-design-vue/es')['Collapse'] ACollapse: typeof import('ant-design-vue/es')['Collapse']
ACollapsePanel: typeof import('ant-design-vue/es')['CollapsePanel'] ACollapsePanel: typeof import('ant-design-vue/es')['CollapsePanel']
ADivider: typeof import('ant-design-vue/es')['Divider'] ADivider: typeof import('ant-design-vue/es')['Divider']
ADrawer: typeof import('ant-design-vue/es')['Drawer']
ADropdown: typeof import('ant-design-vue/es')['Dropdown'] ADropdown: typeof import('ant-design-vue/es')['Dropdown']
AForm: typeof import('ant-design-vue/es')['Form'] AForm: typeof import('ant-design-vue/es')['Form']
AFormItem: typeof import('ant-design-vue/es')['FormItem'] AFormItem: typeof import('ant-design-vue/es')['FormItem']
@ -29,6 +31,7 @@ declare module '@vue/runtime-core' {
ALayoutSider: typeof import('ant-design-vue/es')['LayoutSider'] ALayoutSider: typeof import('ant-design-vue/es')['LayoutSider']
AList: typeof import('ant-design-vue/es')['List'] AList: typeof import('ant-design-vue/es')['List']
AListItem: typeof import('ant-design-vue/es')['ListItem'] AListItem: typeof import('ant-design-vue/es')['ListItem']
AListItemMeta: typeof import('ant-design-vue/es')['ListItemMeta']
AMenu: typeof import('ant-design-vue/es')['Menu'] AMenu: typeof import('ant-design-vue/es')['Menu']
AMenuDivider: typeof import('ant-design-vue/es')['MenuDivider'] AMenuDivider: typeof import('ant-design-vue/es')['MenuDivider']
AMenuItem: typeof import('ant-design-vue/es')['MenuItem'] AMenuItem: typeof import('ant-design-vue/es')['MenuItem']

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" />

Loading…
Cancel
Save