diff --git a/packages/nc-gui-v2/components.d.ts b/packages/nc-gui-v2/components.d.ts index 1bdea8dc28..487ed89e1d 100644 --- a/packages/nc-gui-v2/components.d.ts +++ b/packages/nc-gui-v2/components.d.ts @@ -46,6 +46,7 @@ declare module '@vue/runtime-core' { ATabs: typeof import('ant-design-vue/es')['Tabs'] ATag: typeof import('ant-design-vue/es')['Tag'] ATooltip: typeof import('ant-design-vue/es')['Tooltip'] + ATypographyTitle: typeof import('ant-design-vue/es')['TypographyTitle'] AUploadDragger: typeof import('ant-design-vue/es')['UploadDragger'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] diff --git a/packages/nc-gui-v2/components/dashboard/TreeView.vue b/packages/nc-gui-v2/components/dashboard/TreeView.vue index ee49e992ae..37d97671bf 100644 --- a/packages/nc-gui-v2/components/dashboard/TreeView.vue +++ b/packages/nc-gui-v2/components/dashboard/TreeView.vue @@ -19,6 +19,7 @@ import MdiPlus from '~icons/mdi/plus-circle-outline' import MdiDrag from '~icons/mdi/drag-vertical' import MdiMenuIcon from '~icons/mdi/dots-vertical' import MdiAPIDocIcon from '~icons/mdi/open-in-new' +import SettingsModal from '~/components/dashboard/settings/SettingsModal.vue' const { addTab } = useTabs() const toast = useToast() @@ -290,7 +291,7 @@ const addTableTab = (table: TableType) => { {{ $t('title.teamAndSettings') }} - Team and settings + diff --git a/packages/nc-gui-v2/components/dashboard/settings/AuditTab.vue b/packages/nc-gui-v2/components/dashboard/settings/AuditTab.vue index 66f17fcc67..a11e763013 100644 --- a/packages/nc-gui-v2/components/dashboard/settings/AuditTab.vue +++ b/packages/nc-gui-v2/components/dashboard/settings/AuditTab.vue @@ -5,14 +5,8 @@ import { timeAgo } from '~/utils/dateTimeUtils' import { h, useNuxtApp, useProject } from '#imports' import MdiReload from '~icons/mdi/reload' -interface Props { - projectId: string -} - -const { projectId } = defineProps() - const { $api } = useNuxtApp() -const { project, loadProject } = useProject() +const { project } = useProject() let isLoading = $ref(false) @@ -45,35 +39,36 @@ async function loadAudits(page = currentPage, limit = currentLimit) { onMounted(async () => { if (audits === null) { - await loadProject(projectId) await loadAudits(currentPage, currentLimit) } }) +const tableHeaderRenderer = (label: string) => () => h('div', { class: 'text-gray-500' }, label) + const columns = [ { - title: 'Operation Type', + title: tableHeaderRenderer('Operation Type'), dataIndex: 'op_type', key: 'op_type', }, { - title: 'Operation sub-type', + title: tableHeaderRenderer('Operation sub-type'), dataIndex: 'op_sub_type', key: 'op_sub_type', }, { - title: 'Description', + title: tableHeaderRenderer('Description'), dataIndex: 'description', key: 'description', }, { - title: 'User', + title: tableHeaderRenderer('User'), dataIndex: 'user', key: 'user', - customRender: (value: { text: string }) => h('div', () => value.text || 'Shared base'), + customRender: (value: { text: string }) => h('div', {}, value.text || 'Shared base'), }, { - title: 'Created', + title: tableHeaderRenderer('Created'), dataIndex: 'created_at', key: 'created_at', sort: 'desc', @@ -85,21 +80,22 @@ const columns = [ diff --git a/packages/nc-gui-v2/components/dashboard/settings/SettingsModal.vue b/packages/nc-gui-v2/components/dashboard/settings/SettingsModal.vue new file mode 100644 index 0000000000..f7f7456c17 --- /dev/null +++ b/packages/nc-gui-v2/components/dashboard/settings/SettingsModal.vue @@ -0,0 +1,136 @@ + + + + + diff --git a/packages/nc-gui-v2/package-lock.json b/packages/nc-gui-v2/package-lock.json index 7f1dbc4ea1..f55e71ed2e 100644 --- a/packages/nc-gui-v2/package-lock.json +++ b/packages/nc-gui-v2/package-lock.json @@ -24,6 +24,7 @@ "@iconify-json/clarity": "^1.1.4", "@iconify-json/material-symbols": "^1.1.8", "@iconify-json/mdi": "^1.1.25", + "@iconify-json/ri": "^1.1.3", "@intlify/vite-plugin-vue-i18n": "^4.0.0", "@types/sortablejs": "^1.13.0", "@vitejs/plugin-vue": "^2.3.3", @@ -986,6 +987,15 @@ "@iconify/types": "*" } }, + "node_modules/@iconify-json/ri": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@iconify-json/ri/-/ri-1.1.3.tgz", + "integrity": "sha512-YQ45kQNpuHc2bso4fDGhooWou43qy7njD/I5l7vpjcujb+P/K2BfLASbWYTTUKu6lMersuFmO8F7NdGzy6eGWw==", + "dev": true, + "dependencies": { + "@iconify/types": "*" + } + }, "node_modules/@iconify/types": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@iconify/types/-/types-1.1.0.tgz", @@ -14919,6 +14929,15 @@ "@iconify/types": "*" } }, + "@iconify-json/ri": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@iconify-json/ri/-/ri-1.1.3.tgz", + "integrity": "sha512-YQ45kQNpuHc2bso4fDGhooWou43qy7njD/I5l7vpjcujb+P/K2BfLASbWYTTUKu6lMersuFmO8F7NdGzy6eGWw==", + "dev": true, + "requires": { + "@iconify/types": "*" + } + }, "@iconify/types": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@iconify/types/-/types-1.1.0.tgz", diff --git a/packages/nc-gui-v2/package.json b/packages/nc-gui-v2/package.json index 069b088a6c..319bf5a6d5 100644 --- a/packages/nc-gui-v2/package.json +++ b/packages/nc-gui-v2/package.json @@ -31,6 +31,7 @@ "@iconify-json/ic": "^1.1.7", "@iconify-json/material-symbols": "^1.1.8", "@iconify-json/mdi": "^1.1.25", + "@iconify-json/ri": "^1.1.3", "@intlify/vite-plugin-vue-i18n": "^4.0.0", "@types/sortablejs": "^1.13.0", "@vitejs/plugin-vue": "^2.3.3",