feat(ee): Setup @chatwoot/captain NPM library (#10389)

--- 
Co-authored-by: Sojan <sojan@pepalo.com>
Co-authored-by: Pranav <pranavrajs@gmail.com>
This commit is contained in:
Shivam Mishra
2024-11-12 07:09:09 +05:30
committed by GitHub
parent 7a45144526
commit 97d7b9d754
12 changed files with 710 additions and 262 deletions

View File

@@ -164,9 +164,25 @@ const menuItems = computed(() => {
},
{
name: 'Captain',
icon: 'i-lucide-bot',
icon: 'i-woot-captain',
label: t('SIDEBAR.CAPTAIN'),
to: accountScopedRoute('captain'),
children: [
{
name: 'Documents',
label: 'Documents',
to: accountScopedRoute('captain', { page: 'documents' }),
},
{
name: 'Responses',
label: 'Responses',
to: accountScopedRoute('captain', { page: 'responses' }),
},
{
name: 'Playground',
label: 'Playground',
to: accountScopedRoute('captain', { page: 'playground' }),
},
],
},
{
name: 'Contacts',

View File

@@ -122,7 +122,9 @@ const toggleTrigger = () => {
<template v-for="child in children" :key="child.name">
<SidebarSubGroup
v-if="child.children"
v-bind="child"
:label="child.label"
:icon="child.icon"
:children="child.children"
:is-expanded="isExpanded"
:active-child="activeChild"
/>