From e7eae6a877c06ef49f8c03835fb76ebb7edf3139 Mon Sep 17 00:00:00 2001 From: arys Date: Fri, 10 Apr 2026 12:50:08 +0500 Subject: [PATCH] fix --- src/assets/kai-v4.css | 78 +- src/components/FloatingConfigurator.vue | 4 - .../marketing/MarketingBriefWizardV3.vue | 35 +- .../dashboard-v3/v4/V4Competitors.vue | 2 +- .../marketing/dashboard-v3/v4/V4Header.vue | 224 ++++- .../marketing/dashboard-v3/v4/V4SideNav.vue | 217 +++-- src/layout/AppMenu.vue | 15 +- src/layout/AppMenuItem.vue | 10 +- src/layout/AppTopbar.vue | 7 +- src/layout/composables/layout.js | 15 +- src/main.js | 2 + src/views/DashboardNew.vue | 19 +- src/views/pages/auth/Login.vue | 4 +- .../pages/marketing/MarketingAnalysisV3.vue | 46 +- .../marketing/MarketingAnalysisV3List.vue | 910 ++++++++++++++---- src/views/pages/marketing/MarketingMain.vue | 80 +- .../pages/marketing/MarketingStrategyV3.vue | 21 +- .../marketing/MarketingStrategyV3List.vue | 500 +++++++--- .../targetologist/CampaignInsightsDetail.vue | 97 +- .../targetologist/CampaignWizard.vue | 98 +- .../targetologist/TargetologistDashboard.vue | 760 +++++++-------- 21 files changed, 2117 insertions(+), 1027 deletions(-) diff --git a/src/assets/kai-v4.css b/src/assets/kai-v4.css index ba25e39..9aca660 100644 --- a/src/assets/kai-v4.css +++ b/src/assets/kai-v4.css @@ -1,16 +1,16 @@ /* ========================================================= - KAI v4.0 Dashboard — Dark Theme Globals + KAI v4.0 Dashboard - Light Theme Globals Loaded by MarketingAnalysisV3.vue via diff --git a/src/components/marketing/dashboard-v3/v4/V4SideNav.vue b/src/components/marketing/dashboard-v3/v4/V4SideNav.vue index c127e9c..04a15f4 100644 --- a/src/components/marketing/dashboard-v3/v4/V4SideNav.vue +++ b/src/components/marketing/dashboard-v3/v4/V4SideNav.vue @@ -2,58 +2,64 @@ import { ref, onMounted, onUnmounted } from 'vue'; const sections = [ - { id: 's0', label: 'Overview' }, - { id: 's1', label: 'Landscape' }, - { id: 's2', label: 'Geometry' }, - { id: 's3', label: 'Competitors' }, - { id: 's4', label: 'Content' }, - { id: 's5', label: 'Intensity' }, - { id: 's6', label: 'Reputation' }, - { id: 's7', label: 'Behavior' }, - { id: 's8', label: 'Demand' }, - { id: 's9', label: 'Positioning' }, - { id: 's10', label: 'Summary' }, - { id: 's11', label: 'Rationale' }, + { id: 's0', label: 'Обзор', icon: 'pi pi-home' }, + { id: 's1', label: 'Ландшафт', icon: 'pi pi-map' }, + { id: 's2', label: 'География', icon: 'pi pi-map-marker' }, + { id: 's3', label: 'Конкуренты', icon: 'pi pi-users' }, + { id: 's4', label: 'Контент', icon: 'pi pi-file' }, + { id: 's5', label: 'Интенсивность', icon: 'pi pi-bolt' }, + { id: 's6', label: 'Репутация', icon: 'pi pi-star' }, + { id: 's7', label: 'Поведение', icon: 'pi pi-eye' }, + { id: 's8', label: 'Спрос', icon: 'pi pi-chart-line' }, + { id: 's9', label: 'Позиционирование',icon: 'pi pi-crosshairs' }, + { id: 's10', label: 'Выводы', icon: 'pi pi-check-circle' }, + { id: 's11', label: 'Стратегия', icon: 'pi pi-sparkles' }, ]; const active = ref('s0'); + const go = (id) => { const el = document.getElementById(id); if (el) { - window.scrollTo({ - top: el.offsetTop - 100, - behavior: 'smooth' - }); + window.scrollTo({ top: el.offsetTop - 80, behavior: 'smooth' }); } }; let obs; onMounted(() => { obs = new IntersectionObserver(entries => { - entries.forEach(e => { - if (e.isIntersecting) active.value = e.target.id; - }); - }, { threshold: 0.3, rootMargin: '-10% 0px -70% 0px' }); - - sections.forEach(s => { - const el = document.getElementById(s.id); - if (el) obs.observe(el); - }); + entries.forEach(e => { if (e.isIntersecting) active.value = e.target.id; }); + }, { threshold: 0.25, rootMargin: '-5% 0px -65% 0px' }); + sections.forEach(s => { const el = document.getElementById(s.id); if (el) obs.observe(el); }); }); - onUnmounted(() => obs?.disconnect()); @@ -61,91 +67,144 @@ onUnmounted(() => obs?.disconnect()); diff --git a/src/layout/AppMenu.vue b/src/layout/AppMenu.vue index 3f47190..aa139ea 100644 --- a/src/layout/AppMenu.vue +++ b/src/layout/AppMenu.vue @@ -37,9 +37,20 @@ const model = ref([ ] }, { - label: 'Admin', + label: 'Сервисы', items: [ - { label: 'Users', icon: 'pi pi-fw pi-users', to: '/admin/users' }, + { + label: 'CRM колл-центр', + icon: 'pi pi-fw pi-external-link', + url: 'https://call-center.konturai.kz/operator#workspace', + target: '_blank' + } + ] + }, + { + label: 'Администрирование', + items: [ + { label: 'Пользователи', icon: 'pi pi-fw pi-users', to: '/admin/users' }, { label: 'Управление парсером', icon: 'pi pi-fw pi-cog', to: '/admin/news' } ] } diff --git a/src/layout/AppMenuItem.vue b/src/layout/AppMenuItem.vue index 8abdc3b..40b5e82 100644 --- a/src/layout/AppMenuItem.vue +++ b/src/layout/AppMenuItem.vue @@ -71,7 +71,15 @@ function checkActiveRoute(item) {