diff --git a/packages/nc-gui-v2/components.d.ts b/packages/nc-gui-v2/components.d.ts index 598349f0f6..1bdea8dc28 100644 --- a/packages/nc-gui-v2/components.d.ts +++ b/packages/nc-gui-v2/components.d.ts @@ -50,4 +50,4 @@ declare module '@vue/runtime-core' { RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] } -} +} \ No newline at end of file diff --git a/packages/nc-gui-v2/components/dashboard/settings/AuditTab.vue b/packages/nc-gui-v2/components/dashboard/settings/AuditTab.vue index 66f17fcc67..8ac63e235d 100644 --- a/packages/nc-gui-v2/components/dashboard/settings/AuditTab.vue +++ b/packages/nc-gui-v2/components/dashboard/settings/AuditTab.vue @@ -45,35 +45,36 @@ async function loadAudits(page = currentPage, limit = currentLimit) { onMounted(async () => { if (audits === null) { - await loadProject(projectId) await loadAudits(currentPage, currentLimit) } }) +const tableHeaderRenderer = (label: string) => (value: { text: 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 +86,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..496dac8f55 --- /dev/null +++ b/packages/nc-gui-v2/components/dashboard/settings/SettingsModal.vue @@ -0,0 +1,147 @@ + + + + + diff --git a/packages/nc-gui-v2/package.json b/packages/nc-gui-v2/package.json index 62b794d2e4..359b6a0d18 100644 --- a/packages/nc-gui-v2/package.json +++ b/packages/nc-gui-v2/package.json @@ -30,6 +30,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",