diff --git a/packages/nc-gui-v2/components.d.ts b/packages/nc-gui-v2/components.d.ts index 8706c282ff..e41983c665 100644 --- a/packages/nc-gui-v2/components.d.ts +++ b/packages/nc-gui-v2/components.d.ts @@ -91,6 +91,7 @@ declare module '@vue/runtime-core' { MdiDatabase: typeof import('~icons/mdi/database')['default'] MdiDeleteOutline: typeof import('~icons/mdi/delete-outline')['default'] MdiDiscord: typeof import('~icons/mdi/discord')['default'] + MdiDotsHorizontal: typeof import('~icons/mdi/dots-horizontal')['default'] MdiDotsVertical: typeof import('~icons/mdi/dots-vertical')['default'] MdiDownload: typeof import('~icons/mdi/download')['default'] MdiDrag: typeof import('~icons/mdi/drag')['default'] @@ -115,6 +116,7 @@ declare module '@vue/runtime-core' { MdiPlus: typeof import('~icons/mdi/plus')['default'] MdiPlusOutline: typeof import('~icons/mdi/plus-outline')['default'] MdiReload: typeof import('~icons/mdi/reload')['default'] + MdiSearch: typeof import('~icons/mdi/search')['default'] MdiShieldLockOutline: typeof import('~icons/mdi/shield-lock-outline')['default'] MdiSlack: typeof import('~icons/mdi/slack')['default'] MdiStar: typeof import('~icons/mdi/star')['default'] diff --git a/packages/nc-gui-v2/components/dashboard/TreeView.vue b/packages/nc-gui-v2/components/dashboard/TreeView.vue index 3b1c67522b..5723611ff5 100644 --- a/packages/nc-gui-v2/components/dashboard/TreeView.vue +++ b/packages/nc-gui-v2/components/dashboard/TreeView.vue @@ -31,8 +31,10 @@ const tablesById = $computed>(() => const showTableList = ref(true) const tableCreateDlg = ref(false) -const menuRef = $ref() let key = $ref(0) + +const menuRef = $ref() + let sortable: Sortable // todo: replace with vuedraggable diff --git a/packages/nc-gui-v2/components/dlg/TableCreate.vue b/packages/nc-gui-v2/components/dlg/TableCreate.vue index 7fd815f2ce..596eb44adc 100644 --- a/packages/nc-gui-v2/components/dlg/TableCreate.vue +++ b/packages/nc-gui-v2/components/dlg/TableCreate.vue @@ -31,18 +31,9 @@ const { table, createTable, generateUniqueTitle, tables, project } = useTable(as dialogShow.value = false }) -// const prefix = computed(() => project?.value?.prefix || '') - const validateDuplicateAlias = (v: string) => { return (tables?.value || []).every((t) => t.title !== (v || '')) || 'Duplicate table alias' } -// const validateLeadingOrTrailingWhiteSpace = (v: string) => { -// return !/^\s+|\s+$/.test(v) || 'Leading or trailing whitespace not allowed in table name' -// } -// const validateDuplicate = (v: string) => { -// return (tables?.value || []).every((t) => t.table_name.toLowerCase() !== (v || '').toLowerCase()) || 'Duplicate table name' -// } - const inputEl = ref() const useForm = Form.useForm diff --git a/packages/nc-gui-v2/components/dlg/TableRename.vue b/packages/nc-gui-v2/components/dlg/TableRename.vue index 1e4fffac4f..bf4c35fa83 100644 --- a/packages/nc-gui-v2/components/dlg/TableRename.vue +++ b/packages/nc-gui-v2/components/dlg/TableRename.vue @@ -30,8 +30,6 @@ const { updateTab } = useTabs() const { loadTables } = useProject() const { tables } = useProject() -// const prefix = computed(() => project?.value?.prefix || '') - const inputEl = $ref() let loading = $ref(false) const useForm = Form.useForm diff --git a/packages/nc-gui-v2/components/general/MiniSidebar.vue b/packages/nc-gui-v2/components/general/MiniSidebar.vue index 2fdfa98a5b..48cd9416c5 100644 --- a/packages/nc-gui-v2/components/general/MiniSidebar.vue +++ b/packages/nc-gui-v2/components/general/MiniSidebar.vue @@ -1,11 +1,7 @@