From 44be3c9eecd1e50427039af3336acf8046ba2b5c Mon Sep 17 00:00:00 2001 From: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> Date: Wed, 16 Oct 2024 01:37:14 +0530 Subject: [PATCH] feat: Add Help Center layout with portal switcher component (#10272) --- .../HelpCenter/HelpCenterLayout.vue | 92 +++++++++++++++ .../PortalSwitcher/PortalSwitcher.story.vue | 44 +++++++ .../PortalSwitcher/PortalSwitcher.vue | 111 ++++++++++++++++++ 3 files changed, 247 insertions(+) create mode 100644 app/javascript/dashboard/components-next/HelpCenter/HelpCenterLayout.vue create mode 100644 app/javascript/dashboard/components-next/HelpCenter/PortalSwitcher/PortalSwitcher.story.vue create mode 100644 app/javascript/dashboard/components-next/HelpCenter/PortalSwitcher/PortalSwitcher.vue diff --git a/app/javascript/dashboard/components-next/HelpCenter/HelpCenterLayout.vue b/app/javascript/dashboard/components-next/HelpCenter/HelpCenterLayout.vue new file mode 100644 index 000000000..e65f6b97c --- /dev/null +++ b/app/javascript/dashboard/components-next/HelpCenter/HelpCenterLayout.vue @@ -0,0 +1,92 @@ + + + + + + + + + {{ header }} + + + + + + + + + + + + + + + + + + + diff --git a/app/javascript/dashboard/components-next/HelpCenter/PortalSwitcher/PortalSwitcher.story.vue b/app/javascript/dashboard/components-next/HelpCenter/PortalSwitcher/PortalSwitcher.story.vue new file mode 100644 index 000000000..e1a9dfa17 --- /dev/null +++ b/app/javascript/dashboard/components-next/HelpCenter/PortalSwitcher/PortalSwitcher.story.vue @@ -0,0 +1,44 @@ + + + + + + + + + + + diff --git a/app/javascript/dashboard/components-next/HelpCenter/PortalSwitcher/PortalSwitcher.vue b/app/javascript/dashboard/components-next/HelpCenter/PortalSwitcher/PortalSwitcher.vue new file mode 100644 index 000000000..8700b1227 --- /dev/null +++ b/app/javascript/dashboard/components-next/HelpCenter/PortalSwitcher/PortalSwitcher.vue @@ -0,0 +1,111 @@ + + + + + + + + + + {{ header }} + + + {{ description }} + + + + + + + + + + + + {{ portal.name }} + + + + + + + articles: + + {{ portal.articles }} + + + + + domain: + + {{ portal.domain }} + + + + + slug: + + {{ portal.slug }} + + + + + + + + +
+ {{ description }} +