Browse Source

chore(gui-v2): lint

pull/3112/head
Wing-Kam Wong 2 years ago
parent
commit
c3e19f3702
  1. 6
      packages/nc-gui-v2/components/dashboard/TreeView.vue
  2. 2
      packages/nc-gui-v2/components/dashboard/settings/Metadata.vue
  3. 4
      packages/nc-gui-v2/components/smartsheet/Toolbar.vue
  4. 4
      packages/nc-gui-v2/components/tabs/auth/UserManagement.vue
  5. 17
      packages/nc-gui-v2/components/webhook/Drawer.vue
  6. 1
      packages/nc-gui-v2/components/webhook/Editor.vue

6
packages/nc-gui-v2/components/dashboard/TreeView.vue

@ -170,7 +170,11 @@ const activeTable = computed(() => {
/>
</div>
<div style="direction: ltr" class="flex-1">
<div v-if="tables.length" class="transition-height duration-200 overflow-hidden" :class="{ 'h-100': showTableList, 'h-0': !showTableList }">
<div
v-if="tables.length"
class="transition-height duration-200 overflow-hidden"
:class="{ 'h-100': showTableList, 'h-0': !showTableList }"
>
<div :key="key" ref="menuRef" class="border-none sortable-list">
<div
v-for="table of tables"

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

@ -117,4 +117,4 @@ const columns = [
</div>
</div>
</div>
</template>
</template>

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

@ -6,8 +6,7 @@ const { isGrid, isForm } = useSmartsheetStoreOrThrow()
<template>
<div class="nc-table-toolbar w-full py-1 flex gap-1 items-center h-[48px] px-2" style="z-index: 7">
<SmartsheetToolbarFieldsMenu v-if="isGrid" :show-system-fields="false" class="ml-1"/>
<SmartsheetToolbarFieldsMenu v-if="isGrid" :show-system-fields="false" class="ml-1" />
<SmartsheetToolbarColumnFilterMenu v-if="isGrid" />
@ -19,7 +18,6 @@ const { isGrid, isForm } = useSmartsheetStoreOrThrow()
<SmartsheetToolbarSearchData v-if="isGrid" class="shrink ml-2" />
<div class="flex-1" />
</div>
</template>

4
packages/nc-gui-v2/components/tabs/auth/UserManagement.vue

@ -256,7 +256,7 @@ watchDebounced(searchText, () => loadUsers(), { debounce: 300, maxWait: 600 })
</template>
<a-button type="text" class="!rounded-md" @click="onDelete(user)">
<template #icon>
<MdiDeleteOutlineIcon class="flex mx-auto h-[1.1rem] text-gray-500 " />
<MdiDeleteOutlineIcon class="flex mx-auto h-[1.1rem] text-gray-500" />
</template>
</a-button>
</a-tooltip>
@ -279,7 +279,7 @@ watchDebounced(searchText, () => loadUsers(), { debounce: 300, maxWait: 600 })
</a-menu-item>
<a-menu-item>
<div class="flex flex-row items-center py-1" @click="copyInviteUrl(user)">
<MdiContentCopyIcon class="flex h-[1rem] text-gray-500" />
<MdiContentCopyIcon class="flex h-[1rem] text-gray-500" />
<div class="text-xs pl-2">{{ $t('activity.copyInviteURL') }}</div>
</div>
</a-menu-item>

17
packages/nc-gui-v2/components/webhook/Drawer.vue

@ -23,12 +23,17 @@ async function editHook(hook: Record<string, any>) {
</script>
<template>
<a-drawer v-model:visible="vModel" :closable="false" placement="right" width="700px" @keydown.esc="vModel = false"
:body-style="{background:'rgba(67, 81, 232, 0.05)',padding:'50px'}">
<WebhookEditor v-if="editOrAdd" ref="webhookEditorRef" @back-to-list="editOrAdd = false"/>
<WebhookList v-else @edit="editHook" @add="editOrAdd = true"/>
<div
class="self-center flex flex-column flex-wrap gap-4 items-center mt-4 md:mx-8 md:justify-between justify-center">
<a-drawer
v-model:visible="vModel"
:closable="false"
placement="right"
width="700px"
:body-style="{ background: 'rgba(67, 81, 232, 0.05)', padding: '50px' }"
@keydown.esc="vModel = false"
>
<WebhookEditor v-if="editOrAdd" ref="webhookEditorRef" @back-to-list="editOrAdd = false" />
<WebhookList v-else @edit="editHook" @add="editOrAdd = true" />
<div class="self-center flex flex-column flex-wrap gap-4 items-center mt-4 md:mx-8 md:justify-between justify-center">
<a-button v-t="['e:hiring']" href="https://angel.co/company/nocodb" target="_blank" size="large">
🚀 We are Hiring! 🚀
</a-button>

1
packages/nc-gui-v2/components/webhook/Editor.vue

@ -490,7 +490,6 @@ onMounted(() => {
<a-col :span="24">
<a-tabs v-model:activeKey="urlTabKey" type="card" closeable="false" class="shadow-sm">
<a-tab-pane key="body" tab="Body">
<MonacoEditor v-model="hook.notification.payload.body" :validate="false" class="min-h-60 max-h-80" />
</a-tab-pane>

Loading…
Cancel
Save