From b420d8861611246b352ad49881c269536958de7f Mon Sep 17 00:00:00 2001 From: DarkPhoenix2704 Date: Wed, 2 Oct 2024 05:54:21 +0000 Subject: [PATCH] feat: feed wip --- .../nc-gui/components/dashboard/Sidebar.vue | 1 + .../components/dashboard/Sidebar/Feed.vue | 18 +++ packages/nc-gui/components/feed/Header.vue | 13 ++ .../nc-gui/components/feed/Navigation.vue | 140 ++++++++++++++++++ packages/nc-gui/components/feed/View.vue | 11 ++ .../nc-gui/pages/index/[typeOrId]/feed.vue | 7 + packages/nc-gui/store/workspace.ts | 11 ++ 7 files changed, 201 insertions(+) create mode 100644 packages/nc-gui/components/dashboard/Sidebar/Feed.vue create mode 100644 packages/nc-gui/components/feed/Header.vue create mode 100644 packages/nc-gui/components/feed/Navigation.vue create mode 100644 packages/nc-gui/components/feed/View.vue create mode 100644 packages/nc-gui/pages/index/[typeOrId]/feed.vue diff --git a/packages/nc-gui/components/dashboard/Sidebar.vue b/packages/nc-gui/components/dashboard/Sidebar.vue index 80102bf614..84c30a176e 100644 --- a/packages/nc-gui/components/dashboard/Sidebar.vue +++ b/packages/nc-gui/components/dashboard/Sidebar.vue @@ -60,6 +60,7 @@ onUnmounted(() => {
+ diff --git a/packages/nc-gui/components/dashboard/Sidebar/Feed.vue b/packages/nc-gui/components/dashboard/Sidebar/Feed.vue new file mode 100644 index 0000000000..682c0cac4b --- /dev/null +++ b/packages/nc-gui/components/dashboard/Sidebar/Feed.vue @@ -0,0 +1,18 @@ + + + + + diff --git a/packages/nc-gui/components/feed/Header.vue b/packages/nc-gui/components/feed/Header.vue new file mode 100644 index 0000000000..a9164aaba6 --- /dev/null +++ b/packages/nc-gui/components/feed/Header.vue @@ -0,0 +1,13 @@ + + + + + diff --git a/packages/nc-gui/components/feed/Navigation.vue b/packages/nc-gui/components/feed/Navigation.vue new file mode 100644 index 0000000000..8747e0c284 --- /dev/null +++ b/packages/nc-gui/components/feed/Navigation.vue @@ -0,0 +1,140 @@ + + + + + diff --git a/packages/nc-gui/components/feed/View.vue b/packages/nc-gui/components/feed/View.vue new file mode 100644 index 0000000000..c5ad68f699 --- /dev/null +++ b/packages/nc-gui/components/feed/View.vue @@ -0,0 +1,11 @@ + + + + + diff --git a/packages/nc-gui/pages/index/[typeOrId]/feed.vue b/packages/nc-gui/pages/index/[typeOrId]/feed.vue new file mode 100644 index 0000000000..96749ed619 --- /dev/null +++ b/packages/nc-gui/pages/index/[typeOrId]/feed.vue @@ -0,0 +1,7 @@ + + + + + diff --git a/packages/nc-gui/store/workspace.ts b/packages/nc-gui/store/workspace.ts index 6989e06d34..00b3274320 100644 --- a/packages/nc-gui/store/workspace.ts +++ b/packages/nc-gui/store/workspace.ts @@ -238,6 +238,16 @@ export const useWorkspace = defineStore('workspaceStore', () => { } } + const navigateToFeed = async (_?: string, cmdOrCtrl?: boolean) => { + if (cmdOrCtrl) { + await navigateTo('/nc/feed', { + open: navigateToBlankTargetOpenOption, + }) + } else { + await navigateTo('/nc/feed') + } + } + const auditLogsQuery = ref>(defaultAuditLogsQuery) const audits = ref>(null) @@ -326,6 +336,7 @@ export const useWorkspace = defineStore('workspaceStore', () => { auditLogsQuery, audits, auditPaginationData, + navigateToFeed, loadAudits, isIntegrationsPageOpened, navigateToIntegrations,