2026-08-29 21:06:30 +03:30
|
|
|
|
<script setup lang="ts">
|
2026-09-28 17:35:03 +03:30
|
|
|
|
import { computed, onMounted, onUnmounted, ref, watch } from 'vue';
|
2026-08-29 21:06:30 +03:30
|
|
|
|
import { RouterLink, RouterView, useRoute, useRouter } from 'vue-router';
|
|
|
|
|
|
import { useAuthStore } from '@/stores/auth';
|
|
|
|
|
|
import { api } from '@/lib/api';
|
2026-10-13 18:04:53 +03:30
|
|
|
|
import { formatJalaliDateTime, formatJalaliShort, toFaDigits } from '@/lib/jalali';
|
2026-09-01 15:39:18 +03:30
|
|
|
|
import UiIcon from '@/components/UiIcon.vue';
|
2026-09-01 16:05:29 +03:30
|
|
|
|
import MentoLogo from '@/components/brand/MentoLogo.vue';
|
2026-09-03 14:20:55 +03:30
|
|
|
|
import QuickCreate from '@/components/QuickCreate.vue';
|
2026-09-15 21:37:58 +03:30
|
|
|
|
import OrgSwitcher from '@/components/OrgSwitcher.vue';
|
2026-09-11 17:37:24 +03:30
|
|
|
|
import NavHubPanel from '@/components/nav/NavHubPanel.vue';
|
2026-10-10 21:28:49 +03:30
|
|
|
|
import GamificationToaster from '@/components/gamification/GamificationToaster.vue';
|
2026-10-19 15:55:48 +03:30
|
|
|
|
import SmsHeaderWallet from '@/components/SmsHeaderWallet.vue';
|
2026-09-11 17:37:24 +03:30
|
|
|
|
import { NAV_HUBS, type NavHubDef, type NavHubKey } from '@/lib/nav-hubs';
|
2026-09-01 15:21:54 +03:30
|
|
|
|
import type {
|
|
|
|
|
|
ActivitySummaryDto,
|
2026-10-15 10:48:30 +03:30
|
|
|
|
AuthUserDto,
|
2026-09-01 15:21:54 +03:30
|
|
|
|
NotificationDto,
|
|
|
|
|
|
NotificationsListDto,
|
|
|
|
|
|
} from '@mento/shared';
|
2026-09-09 17:51:40 +03:30
|
|
|
|
import { canManageSettings, canViewAllRecords } from '@/lib/roles';
|
2026-10-21 13:45:16 +03:30
|
|
|
|
import {
|
|
|
|
|
|
canOpenPath,
|
|
|
|
|
|
hasSectionPermission,
|
|
|
|
|
|
sectionPermissionForPath,
|
|
|
|
|
|
} from '@/lib/section-permissions';
|
2026-09-29 16:22:37 +03:30
|
|
|
|
import { refreshUnreadTotal, useOrgChat } from '@/lib/useOrgChat';
|
2026-08-29 21:06:30 +03:30
|
|
|
|
|
|
|
|
|
|
const auth = useAuthStore();
|
|
|
|
|
|
const router = useRouter();
|
|
|
|
|
|
const route = useRoute();
|
2026-09-29 16:22:37 +03:30
|
|
|
|
const { unreadTotal: chatUnreadTotal, ensureConnected: ensureChatConnected } = useOrgChat();
|
|
|
|
|
|
const chatBadge = computed(() => chatUnreadTotal.value);
|
2026-08-29 21:06:30 +03:30
|
|
|
|
|
2026-10-17 19:57:26 +03:30
|
|
|
|
const canOpenTeamWhileViewing = computed(() =>
|
|
|
|
|
|
Boolean(auth.user?.viewAs?.canOpenTeamSettings),
|
|
|
|
|
|
);
|
|
|
|
|
|
/** تنظیمات مدیریتی واقعی (نقش مشاهدهشده) */
|
2026-08-29 21:06:30 +03:30
|
|
|
|
const canSettings = computed(() => canManageSettings(auth.user?.role));
|
2026-10-17 19:57:26 +03:30
|
|
|
|
/** نمایش هاب تنظیمات؛ در مشاهده فقطخواندنی فقط صفحهٔ تیم باز میماند */
|
|
|
|
|
|
const showSettingsNav = computed(
|
|
|
|
|
|
() => canSettings.value || canOpenTeamWhileViewing.value,
|
|
|
|
|
|
);
|
2026-08-29 21:06:30 +03:30
|
|
|
|
const showOwnRecordsBanner = computed(
|
|
|
|
|
|
() => Boolean(auth.user?.role) && !canViewAllRecords(auth.user?.role),
|
|
|
|
|
|
);
|
2026-09-01 15:39:18 +03:30
|
|
|
|
const todayLabel = computed(() => formatJalaliShort(new Date()));
|
2026-08-29 21:06:30 +03:30
|
|
|
|
|
2026-11-02 15:44:36 +03:30
|
|
|
|
function formatBytes(bytes: number): string {
|
|
|
|
|
|
const n = Math.max(0, bytes);
|
|
|
|
|
|
const units: Array<[number, string]> = [
|
|
|
|
|
|
[1024 ** 3, 'گیگابایت'],
|
|
|
|
|
|
[1024 ** 2, 'مگابایت'],
|
|
|
|
|
|
[1024, 'کیلوبایت'],
|
|
|
|
|
|
];
|
|
|
|
|
|
for (const [size, label] of units) {
|
|
|
|
|
|
if (n >= size) {
|
|
|
|
|
|
const value = n / size;
|
|
|
|
|
|
const text = value >= 10 ? value.toFixed(0) : value.toFixed(1);
|
|
|
|
|
|
return `${toFaDigits(text)} ${label}`;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
return `${toFaDigits(Math.round(n))} بایت`;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const storageBanner = computed(() => {
|
|
|
|
|
|
const storage = auth.user?.storage;
|
|
|
|
|
|
if (!storage || storage.level === 'ok' || storage.level === 'unlimited' || storage.quotaBytes == null) {
|
|
|
|
|
|
return null;
|
|
|
|
|
|
}
|
|
|
|
|
|
return storage;
|
|
|
|
|
|
});
|
|
|
|
|
|
|
2026-09-09 17:51:40 +03:30
|
|
|
|
const SIDEBAR_KEY = 'mento_sidebar_collapsed';
|
2026-10-25 20:21:33 +03:30
|
|
|
|
|
|
|
|
|
|
function readSidebarCollapsed() {
|
|
|
|
|
|
try {
|
|
|
|
|
|
return localStorage.getItem(SIDEBAR_KEY) === '1';
|
|
|
|
|
|
} catch {
|
|
|
|
|
|
return false;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
const collapsed = ref(readSidebarCollapsed());
|
2026-09-09 17:51:40 +03:30
|
|
|
|
|
2026-09-11 17:37:24 +03:30
|
|
|
|
const openHubKey = ref<NavHubKey | null>(null);
|
2026-09-28 11:50:44 +03:30
|
|
|
|
const hubStack = ref<NavHubKey[]>([]);
|
|
|
|
|
|
const isMobileNav = ref(false);
|
2026-09-01 15:21:54 +03:30
|
|
|
|
const globalSearch = ref('');
|
|
|
|
|
|
const activityBadge = ref(0);
|
2026-10-06 19:54:38 +03:30
|
|
|
|
const routineBadge = ref(0);
|
2026-10-15 10:48:30 +03:30
|
|
|
|
const priorSaving = ref(false);
|
|
|
|
|
|
const priorLens = computed(() => auth.user?.priorArchive?.lens ?? 'current');
|
|
|
|
|
|
|
|
|
|
|
|
async function setPriorLens(lens: 'current' | 'archive') {
|
|
|
|
|
|
if (!auth.user?.priorArchive || priorLens.value === lens || priorSaving.value) return;
|
|
|
|
|
|
priorSaving.value = true;
|
|
|
|
|
|
try {
|
|
|
|
|
|
const { data } = await api.patch<AuthUserDto>('/auth/me/prior-archive', { lens });
|
|
|
|
|
|
auth.setUser(data);
|
|
|
|
|
|
window.location.reload();
|
|
|
|
|
|
} finally {
|
|
|
|
|
|
priorSaving.value = false;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2026-08-30 10:06:41 +03:30
|
|
|
|
|
|
|
|
|
|
function pathIn(prefixes: string[]) {
|
|
|
|
|
|
return prefixes.some(
|
|
|
|
|
|
(p) => route.path === p || route.path.startsWith(`${p}/`),
|
|
|
|
|
|
);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-14 19:19:09 +03:30
|
|
|
|
const dashboardActive = computed(() => route.path === '/');
|
|
|
|
|
|
const loyaltyActive = computed(() => pathIn(['/loyalty']));
|
2026-10-22 18:20:46 +03:30
|
|
|
|
const reportsActive = computed(() =>
|
|
|
|
|
|
pathIn(['/reports', '/reports/tahesab-sales']),
|
|
|
|
|
|
);
|
2026-10-10 21:28:49 +03:30
|
|
|
|
const clubActive = computed(() => pathIn(['/club']));
|
|
|
|
|
|
const leadsActive = computed(() => pathIn(['/leads', '/settings/lead-stages']));
|
2026-09-28 11:50:44 +03:30
|
|
|
|
const customersActive = computed(
|
|
|
|
|
|
() => pathIn(['/contacts']) || (isMobileNav.value && leadsActive.value),
|
|
|
|
|
|
);
|
2026-09-11 14:47:01 +03:30
|
|
|
|
const salesActive = computed(() =>
|
2026-09-27 17:05:11 +03:30
|
|
|
|
pathIn([
|
|
|
|
|
|
'/pipeline',
|
|
|
|
|
|
'/deals',
|
|
|
|
|
|
'/quotes',
|
|
|
|
|
|
'/invoices',
|
|
|
|
|
|
'/commissions',
|
|
|
|
|
|
'/sales/forecast',
|
|
|
|
|
|
'/settings/products',
|
2026-10-12 20:33:29 +03:30
|
|
|
|
'/settings/pipelines',
|
2026-09-27 17:05:11 +03:30
|
|
|
|
]),
|
2026-09-11 14:47:01 +03:30
|
|
|
|
);
|
|
|
|
|
|
const activitiesActive = computed(() => pathIn(['/activities']));
|
|
|
|
|
|
const notesActive = computed(() => route.path === '/notes' || route.path.startsWith('/notes/'));
|
2026-10-06 19:54:38 +03:30
|
|
|
|
const routinesActive = computed(() => pathIn(['/routines']));
|
2026-09-29 14:45:19 +03:30
|
|
|
|
const conversationsActive = computed(() => pathIn(['/conversations']));
|
|
|
|
|
|
const supportActive = computed(() => pathIn(['/tickets']));
|
2026-09-14 16:49:43 +03:30
|
|
|
|
const automationsActive = computed(
|
|
|
|
|
|
() =>
|
|
|
|
|
|
route.path.startsWith('/settings/automations') ||
|
2026-09-26 16:12:29 +03:30
|
|
|
|
route.path.startsWith('/settings/message-automations') ||
|
|
|
|
|
|
route.path.startsWith('/settings/sms-campaigns'),
|
2026-09-13 19:11:47 +03:30
|
|
|
|
);
|
2026-09-11 14:47:01 +03:30
|
|
|
|
const toolsActive = computed(() =>
|
2026-09-27 09:38:17 +03:30
|
|
|
|
pathIn([
|
|
|
|
|
|
'/projects',
|
|
|
|
|
|
'/project-cards',
|
|
|
|
|
|
'/inventory',
|
|
|
|
|
|
'/cheques',
|
|
|
|
|
|
'/attachments',
|
|
|
|
|
|
'/reservations',
|
2026-10-10 21:28:49 +03:30
|
|
|
|
'/settings/lead-forms',
|
2026-09-27 09:38:17 +03:30
|
|
|
|
]),
|
2026-09-11 14:47:01 +03:30
|
|
|
|
);
|
|
|
|
|
|
const settingsActive = computed(() =>
|
2026-09-09 17:51:40 +03:30
|
|
|
|
pathIn([
|
2026-09-11 14:47:01 +03:30
|
|
|
|
'/settings/team',
|
2026-09-26 16:12:29 +03:30
|
|
|
|
'/settings/audit-logs',
|
|
|
|
|
|
'/settings/public-api',
|
2026-10-12 20:33:29 +03:30
|
|
|
|
'/settings/pipelines',
|
2026-09-09 17:51:40 +03:30
|
|
|
|
'/settings/custom-fields',
|
|
|
|
|
|
'/settings/currencies',
|
|
|
|
|
|
'/settings/tahesab',
|
2026-09-26 17:59:16 +03:30
|
|
|
|
'/settings/woocommerce',
|
2026-10-10 15:59:12 +03:30
|
|
|
|
'/settings/montify',
|
2026-09-27 08:47:11 +03:30
|
|
|
|
'/settings/voip',
|
2026-09-09 17:51:40 +03:30
|
|
|
|
'/settings/faq',
|
2026-09-11 14:47:01 +03:30
|
|
|
|
]),
|
2026-09-09 17:51:40 +03:30
|
|
|
|
);
|
2026-09-14 19:19:09 +03:30
|
|
|
|
const moreSectionActive = computed(
|
|
|
|
|
|
() =>
|
2026-10-06 19:54:38 +03:30
|
|
|
|
routinesActive.value ||
|
2026-10-10 21:28:49 +03:30
|
|
|
|
clubActive.value ||
|
2026-09-14 19:19:09 +03:30
|
|
|
|
notesActive.value ||
|
2026-09-29 14:45:19 +03:30
|
|
|
|
conversationsActive.value ||
|
2026-09-14 19:19:09 +03:30
|
|
|
|
supportActive.value ||
|
|
|
|
|
|
loyaltyActive.value ||
|
|
|
|
|
|
reportsActive.value ||
|
|
|
|
|
|
automationsActive.value ||
|
|
|
|
|
|
toolsActive.value ||
|
|
|
|
|
|
settingsActive.value,
|
|
|
|
|
|
);
|
|
|
|
|
|
|
2026-09-20 11:24:14 +03:30
|
|
|
|
const enabledModules = computed(() => auth.user?.enabledModules ?? null);
|
|
|
|
|
|
const subscription = computed(() => auth.user?.subscription ?? null);
|
|
|
|
|
|
|
2026-10-21 13:45:16 +03:30
|
|
|
|
/** لینکهای مستقیم منو (بیرون از هابها) با مجوز بخش */
|
|
|
|
|
|
function canOpen(path: string) {
|
|
|
|
|
|
return canOpenPath(auth.user?.role, auth.user?.permissions, path);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-20 11:24:14 +03:30
|
|
|
|
function moduleAllowed(module?: string) {
|
|
|
|
|
|
if (!module) return true;
|
|
|
|
|
|
if (!enabledModules.value) return true;
|
|
|
|
|
|
return enabledModules.value.includes(module as never);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-10-17 19:57:26 +03:30
|
|
|
|
function cardAllowedForNav(card: {
|
|
|
|
|
|
ownerOnly?: boolean;
|
|
|
|
|
|
admin?: boolean;
|
|
|
|
|
|
module?: string;
|
|
|
|
|
|
to?: string;
|
|
|
|
|
|
}) {
|
|
|
|
|
|
if (card.ownerOnly && auth.user?.role !== 'owner') return false;
|
2026-10-18 19:33:09 +03:30
|
|
|
|
const canTreasury = auth.user?.role === 'owner'
|
|
|
|
|
|
|| auth.user?.role === 'admin'
|
|
|
|
|
|
|| Boolean(auth.user?.permissions?.includes('treasury'))
|
|
|
|
|
|
|| Boolean(auth.user?.permissions?.includes('treasury_payroll'));
|
|
|
|
|
|
if (card.to?.startsWith('/finance')) return canTreasury;
|
2026-10-21 13:45:16 +03:30
|
|
|
|
const section = card.to ? sectionPermissionForPath(card.to) : null;
|
|
|
|
|
|
const hasSection = section
|
|
|
|
|
|
? hasSectionPermission(auth.user?.role, auth.user?.permissions, section)
|
|
|
|
|
|
: true;
|
|
|
|
|
|
if (!hasSection) return false;
|
|
|
|
|
|
// لاگ فعالیت با تیک «لاگ فعالیت کاربران» برای غیرمدیر هم باز میشود
|
|
|
|
|
|
const grantedBySection = section === 'audit' && hasSection;
|
|
|
|
|
|
if (card.admin && !canSettings.value && !canOpenTeamWhileViewing.value && !grantedBySection) {
|
|
|
|
|
|
return false;
|
|
|
|
|
|
}
|
2026-10-17 19:57:26 +03:30
|
|
|
|
if (!moduleAllowed(card.module)) return false;
|
|
|
|
|
|
if (
|
2026-10-19 11:56:05 +03:30
|
|
|
|
card.admin &&
|
2026-10-17 19:57:26 +03:30
|
|
|
|
canOpenTeamWhileViewing.value &&
|
|
|
|
|
|
!canSettings.value &&
|
|
|
|
|
|
card.to &&
|
|
|
|
|
|
!card.to.startsWith('/settings/team')
|
|
|
|
|
|
) {
|
|
|
|
|
|
return false;
|
|
|
|
|
|
}
|
|
|
|
|
|
return true;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-20 11:24:14 +03:30
|
|
|
|
const hubVisible = computed(() => {
|
|
|
|
|
|
const map: Record<string, boolean> = {};
|
|
|
|
|
|
for (const hub of NAV_HUBS) {
|
2026-10-17 19:57:26 +03:30
|
|
|
|
map[hub.key] = hub.cards.some((card) => cardAllowedForNav(card));
|
2026-09-20 11:24:14 +03:30
|
|
|
|
}
|
|
|
|
|
|
return map;
|
|
|
|
|
|
});
|
|
|
|
|
|
|
2026-09-28 11:50:44 +03:30
|
|
|
|
const openHub = computed<NavHubDef | null>(() => {
|
|
|
|
|
|
if (!openHubKey.value) return null;
|
|
|
|
|
|
const hub = NAV_HUBS.find((item) => item.key === openHubKey.value);
|
|
|
|
|
|
if (!hub) return null;
|
2026-10-17 19:57:26 +03:30
|
|
|
|
const cards = hub.cards.filter((card) => cardAllowedForNav(card));
|
2026-09-28 11:50:44 +03:30
|
|
|
|
if (
|
|
|
|
|
|
hub.key === 'customers' &&
|
|
|
|
|
|
isMobileNav.value &&
|
|
|
|
|
|
hubVisible.value.leads
|
|
|
|
|
|
) {
|
|
|
|
|
|
cards.push({
|
|
|
|
|
|
to: '/leads',
|
|
|
|
|
|
hub: 'leads',
|
|
|
|
|
|
title: 'لیدها',
|
|
|
|
|
|
desc: 'مخاطبین بالقوه قبل از تبدیل به مشتری',
|
|
|
|
|
|
icon: 'user-plus',
|
|
|
|
|
|
tint: 'sky',
|
|
|
|
|
|
module: 'leads',
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
return {
|
|
|
|
|
|
...hub,
|
|
|
|
|
|
cards,
|
2026-10-17 19:57:26 +03:30
|
|
|
|
shortcuts: hub.shortcuts.filter((item) => cardAllowedForNav(item)),
|
2026-09-28 11:50:44 +03:30
|
|
|
|
};
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
const hubCanBack = computed(() => hubStack.value.length > 0);
|
|
|
|
|
|
|
2026-09-11 14:47:01 +03:30
|
|
|
|
const profileFullName = computed(() => auth.user?.fullName?.trim() || '');
|
2026-09-28 17:35:03 +03:30
|
|
|
|
const profileDisplayName = computed(() => profileFullName.value);
|
2026-08-30 10:06:41 +03:30
|
|
|
|
|
2026-09-11 17:37:24 +03:30
|
|
|
|
function closeHub() {
|
|
|
|
|
|
openHubKey.value = null;
|
2026-09-28 11:50:44 +03:30
|
|
|
|
hubStack.value = [];
|
2026-09-11 14:47:01 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-11 17:37:24 +03:30
|
|
|
|
function onHubClick(key: NavHubKey) {
|
2026-09-28 11:50:44 +03:30
|
|
|
|
hubStack.value = [];
|
2026-09-11 17:37:24 +03:30
|
|
|
|
openHubKey.value = openHubKey.value === key ? null : key;
|
2026-09-14 19:19:09 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-28 11:50:44 +03:30
|
|
|
|
function openNestedHub(key: NavHubKey) {
|
|
|
|
|
|
if (openHubKey.value) {
|
|
|
|
|
|
hubStack.value = [...hubStack.value, openHubKey.value];
|
|
|
|
|
|
}
|
|
|
|
|
|
openHubKey.value = key;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function backHub() {
|
|
|
|
|
|
const prev = hubStack.value[hubStack.value.length - 1];
|
|
|
|
|
|
if (!prev) {
|
|
|
|
|
|
closeHub();
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
hubStack.value = hubStack.value.slice(0, -1);
|
|
|
|
|
|
openHubKey.value = prev;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-14 19:19:09 +03:30
|
|
|
|
function openTabHub(key: NavHubKey) {
|
|
|
|
|
|
moreOpen.value = false;
|
|
|
|
|
|
notifOpen.value = false;
|
|
|
|
|
|
onHubClick(key);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function openMoreHub(key: NavHubKey) {
|
|
|
|
|
|
notifOpen.value = false;
|
|
|
|
|
|
onHubClick(key);
|
2026-09-11 17:37:24 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function goHub(to: string) {
|
|
|
|
|
|
closeHub();
|
|
|
|
|
|
closeMenu();
|
|
|
|
|
|
void router.push(to);
|
2026-08-30 10:06:41 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-14 19:19:09 +03:30
|
|
|
|
const moreOpen = ref(false);
|
2026-08-29 21:06:30 +03:30
|
|
|
|
const notifOpen = ref(false);
|
|
|
|
|
|
const loading = ref(false);
|
|
|
|
|
|
const unreadCount = ref(0);
|
|
|
|
|
|
const items = ref<NotificationDto[]>([]);
|
|
|
|
|
|
let pollTimer: ReturnType<typeof setInterval> | null = null;
|
2026-09-14 19:19:09 +03:30
|
|
|
|
let mobileMq: MediaQueryList | null = null;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
|
|
|
|
|
|
const hasUnread = computed(() => unreadCount.value > 0);
|
2026-09-14 19:19:09 +03:30
|
|
|
|
const moreTabActive = computed(() => moreOpen.value || moreSectionActive.value);
|
|
|
|
|
|
|
|
|
|
|
|
function closeMore() {
|
|
|
|
|
|
moreOpen.value = false;
|
|
|
|
|
|
}
|
2026-08-29 21:06:30 +03:30
|
|
|
|
|
|
|
|
|
|
function closeMenu() {
|
2026-09-14 19:19:09 +03:30
|
|
|
|
closeMore();
|
2026-09-09 17:51:40 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function toggleCollapsed() {
|
|
|
|
|
|
collapsed.value = !collapsed.value;
|
|
|
|
|
|
try {
|
|
|
|
|
|
localStorage.setItem(SIDEBAR_KEY, collapsed.value ? '1' : '0');
|
|
|
|
|
|
} catch {
|
|
|
|
|
|
// ignore
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-08-29 21:06:30 +03:30
|
|
|
|
function closeNotif() {
|
|
|
|
|
|
notifOpen.value = false;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-14 19:19:09 +03:30
|
|
|
|
function onMobileMqChange(event: MediaQueryListEvent) {
|
2026-09-28 11:50:44 +03:30
|
|
|
|
isMobileNav.value = event.matches;
|
|
|
|
|
|
if (!event.matches) {
|
|
|
|
|
|
closeMore();
|
|
|
|
|
|
hubStack.value = [];
|
|
|
|
|
|
}
|
2026-09-14 19:19:09 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-10-19 13:34:55 +03:30
|
|
|
|
async function onLogout() {
|
2026-09-11 17:37:24 +03:30
|
|
|
|
closeHub();
|
2026-08-29 21:06:30 +03:30
|
|
|
|
closeMenu();
|
|
|
|
|
|
closeNotif();
|
2026-10-19 13:34:55 +03:30
|
|
|
|
await auth.logout();
|
|
|
|
|
|
await router.push({ name: 'login' });
|
2026-08-29 21:06:30 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-01 15:21:54 +03:30
|
|
|
|
async function refreshNotifs() {
|
2026-08-29 21:06:30 +03:30
|
|
|
|
if (!auth.isAuthenticated) return;
|
|
|
|
|
|
loading.value = true;
|
|
|
|
|
|
try {
|
|
|
|
|
|
const { data } = await api.get<NotificationsListDto>('/notifications', {
|
|
|
|
|
|
params: { limit: 20 },
|
|
|
|
|
|
});
|
|
|
|
|
|
items.value = data.items;
|
|
|
|
|
|
unreadCount.value = data.unreadCount;
|
|
|
|
|
|
} catch {
|
|
|
|
|
|
// keep previous
|
|
|
|
|
|
} finally {
|
|
|
|
|
|
loading.value = false;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-01 15:21:54 +03:30
|
|
|
|
async function loadActivityBadge() {
|
|
|
|
|
|
try {
|
2026-10-17 18:56:44 +03:30
|
|
|
|
const { data } = await api.get<ActivitySummaryDto>('/activities/summary', {
|
|
|
|
|
|
params: { desk: 'mine' },
|
|
|
|
|
|
});
|
2026-10-06 12:44:09 +03:30
|
|
|
|
activityBadge.value = data.todayCount;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
} catch {
|
|
|
|
|
|
activityBadge.value = 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-10-06 19:54:38 +03:30
|
|
|
|
async function loadRoutineBadge() {
|
|
|
|
|
|
if (!moduleAllowed('routines')) return;
|
|
|
|
|
|
try {
|
|
|
|
|
|
const { data } = await api.get<{ remaining: number; overdue: number }>('/routine-tasks/badge');
|
|
|
|
|
|
routineBadge.value = data.remaining + data.overdue;
|
|
|
|
|
|
} catch {
|
|
|
|
|
|
routineBadge.value = 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-29 16:22:37 +03:30
|
|
|
|
async function loadChatBadge() {
|
|
|
|
|
|
if (!moduleAllowed('conversations')) return;
|
|
|
|
|
|
try {
|
|
|
|
|
|
await refreshUnreadTotal();
|
|
|
|
|
|
await ensureChatConnected();
|
|
|
|
|
|
} catch {
|
|
|
|
|
|
// keep previous
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-08-29 21:06:30 +03:30
|
|
|
|
async function markRead(item: NotificationDto) {
|
|
|
|
|
|
if (!item.readAt) {
|
|
|
|
|
|
await api.patch(`/notifications/${item.id}/read`);
|
|
|
|
|
|
item.readAt = new Date().toISOString();
|
|
|
|
|
|
unreadCount.value = Math.max(0, unreadCount.value - 1);
|
|
|
|
|
|
}
|
|
|
|
|
|
closeNotif();
|
|
|
|
|
|
closeMenu();
|
2026-09-01 15:39:18 +03:30
|
|
|
|
if (item.link) await router.push(item.link);
|
2026-08-29 21:06:30 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
async function markAll() {
|
|
|
|
|
|
await api.patch('/notifications/read-all');
|
|
|
|
|
|
items.value = items.value.map((n) => ({
|
|
|
|
|
|
...n,
|
|
|
|
|
|
readAt: n.readAt ?? new Date().toISOString(),
|
|
|
|
|
|
}));
|
|
|
|
|
|
unreadCount.value = 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-14 19:19:09 +03:30
|
|
|
|
function toggleMore() {
|
2026-08-29 21:06:30 +03:30
|
|
|
|
notifOpen.value = false;
|
2026-09-14 19:19:09 +03:30
|
|
|
|
if (moreOpen.value) {
|
|
|
|
|
|
moreOpen.value = false;
|
|
|
|
|
|
return;
|
|
|
|
|
|
}
|
|
|
|
|
|
closeHub();
|
|
|
|
|
|
moreOpen.value = true;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function toggleNotif() {
|
2026-09-14 19:19:09 +03:30
|
|
|
|
moreOpen.value = false;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
notifOpen.value = !notifOpen.value;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
if (notifOpen.value) void refreshNotifs();
|
2026-08-29 21:06:30 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function formatTime(iso: string) {
|
2026-10-13 18:04:53 +03:30
|
|
|
|
const d = new Date(iso);
|
|
|
|
|
|
if (Number.isNaN(d.getTime())) return iso;
|
|
|
|
|
|
return formatJalaliDateTime(d);
|
2026-08-29 21:06:30 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-01 15:21:54 +03:30
|
|
|
|
function submitSearch() {
|
|
|
|
|
|
const q = globalSearch.value.trim();
|
|
|
|
|
|
if (!q) return;
|
|
|
|
|
|
void router.push({ name: 'contacts', query: { q } });
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-11 17:37:24 +03:30
|
|
|
|
function syncBodyLock() {
|
2026-09-14 19:19:09 +03:30
|
|
|
|
const overlay = moreOpen.value || Boolean(openHubKey.value);
|
2026-09-11 17:37:24 +03:30
|
|
|
|
document.body.style.overflow =
|
2026-09-14 19:19:09 +03:30
|
|
|
|
overlay || notifOpen.value ? 'hidden' : '';
|
|
|
|
|
|
document.body.classList.toggle('mobile-nav-overlay', overlay);
|
2026-09-11 17:37:24 +03:30
|
|
|
|
}
|
2026-09-14 19:19:09 +03:30
|
|
|
|
watch(moreOpen, syncBodyLock);
|
2026-09-11 17:37:24 +03:30
|
|
|
|
watch(notifOpen, syncBodyLock);
|
|
|
|
|
|
watch(openHubKey, syncBodyLock);
|
2026-08-29 21:06:30 +03:30
|
|
|
|
watch(
|
|
|
|
|
|
() => route.fullPath,
|
|
|
|
|
|
() => {
|
|
|
|
|
|
closeMenu();
|
|
|
|
|
|
closeNotif();
|
2026-09-11 17:37:24 +03:30
|
|
|
|
closeHub();
|
2026-08-29 21:06:30 +03:30
|
|
|
|
},
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
onMounted(() => {
|
2026-09-09 17:51:40 +03:30
|
|
|
|
try {
|
|
|
|
|
|
collapsed.value = localStorage.getItem(SIDEBAR_KEY) === '1';
|
|
|
|
|
|
} catch {
|
|
|
|
|
|
collapsed.value = false;
|
|
|
|
|
|
}
|
2026-09-01 15:21:54 +03:30
|
|
|
|
void refreshNotifs();
|
|
|
|
|
|
void loadActivityBadge();
|
2026-10-06 19:54:38 +03:30
|
|
|
|
void loadRoutineBadge();
|
2026-09-29 16:22:37 +03:30
|
|
|
|
void loadChatBadge();
|
|
|
|
|
|
pollTimer = setInterval(() => {
|
|
|
|
|
|
void refreshNotifs();
|
2026-10-06 19:54:38 +03:30
|
|
|
|
void loadRoutineBadge();
|
2026-09-29 16:22:37 +03:30
|
|
|
|
void refreshUnreadTotal().catch(() => undefined);
|
|
|
|
|
|
}, 45000);
|
2026-09-14 19:19:09 +03:30
|
|
|
|
mobileMq = window.matchMedia('(max-width: 900px)');
|
2026-09-28 11:50:44 +03:30
|
|
|
|
isMobileNav.value = mobileMq.matches;
|
2026-09-14 19:19:09 +03:30
|
|
|
|
mobileMq.addEventListener('change', onMobileMqChange);
|
2026-08-29 21:06:30 +03:30
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
onUnmounted(() => {
|
|
|
|
|
|
if (pollTimer) clearInterval(pollTimer);
|
|
|
|
|
|
document.body.style.overflow = '';
|
2026-09-14 19:19:09 +03:30
|
|
|
|
document.body.classList.remove('mobile-nav-overlay');
|
|
|
|
|
|
mobileMq?.removeEventListener('change', onMobileMqChange);
|
2026-08-29 21:06:30 +03:30
|
|
|
|
});
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<template>
|
2026-10-25 20:21:33 +03:30
|
|
|
|
<div class="shell app-frame" :class="{ collapsed, 'hub-open': Boolean(openHub), 'more-open': moreOpen }">
|
2026-08-29 21:06:30 +03:30
|
|
|
|
|
2026-09-14 19:19:09 +03:30
|
|
|
|
<aside id="app-sidebar" class="sidebar" :class="{ collapsed }">
|
2026-09-01 15:39:18 +03:30
|
|
|
|
<div class="brand-row">
|
2026-09-09 17:51:40 +03:30
|
|
|
|
<div class="brand-cluster">
|
2026-09-28 17:35:03 +03:30
|
|
|
|
<MentoLogo class="sidebar-logo" :size="52" />
|
2026-09-09 17:51:40 +03:30
|
|
|
|
<RouterLink
|
2026-09-28 17:35:03 +03:30
|
|
|
|
class="profile-card profile-brand"
|
2026-09-09 17:51:40 +03:30
|
|
|
|
:to="{ name: 'profile' }"
|
|
|
|
|
|
:title="auth.user?.fullName || 'پروفایل'"
|
|
|
|
|
|
@click="closeMenu"
|
|
|
|
|
|
>
|
|
|
|
|
|
<span class="avatar-wrap">
|
|
|
|
|
|
<span class="avatar">
|
|
|
|
|
|
<img
|
2026-09-15 14:10:52 +03:30
|
|
|
|
:src="auth.avatarSrc"
|
2026-09-09 17:51:40 +03:30
|
|
|
|
:alt="auth.user?.fullName || 'کاربر'"
|
|
|
|
|
|
width="36"
|
|
|
|
|
|
height="36"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</span>
|
|
|
|
|
|
<i class="online-dot" title="آنلاین" aria-hidden="true" />
|
|
|
|
|
|
</span>
|
|
|
|
|
|
<span class="profile-meta">
|
2026-09-28 17:35:03 +03:30
|
|
|
|
<strong>{{ profileDisplayName }}</strong>
|
2026-09-09 17:51:40 +03:30
|
|
|
|
</span>
|
|
|
|
|
|
</RouterLink>
|
|
|
|
|
|
</div>
|
2026-09-01 15:39:18 +03:30
|
|
|
|
<button
|
|
|
|
|
|
class="icon-btn ghost mobile-only"
|
|
|
|
|
|
type="button"
|
|
|
|
|
|
aria-label="بستن منو"
|
|
|
|
|
|
@click="closeMenu"
|
|
|
|
|
|
>
|
2026-08-29 21:06:30 +03:30
|
|
|
|
✕
|
|
|
|
|
|
</button>
|
2026-09-28 17:35:03 +03:30
|
|
|
|
<button
|
|
|
|
|
|
class="collapse-btn desktop-only"
|
|
|
|
|
|
type="button"
|
|
|
|
|
|
:aria-pressed="collapsed"
|
|
|
|
|
|
:aria-label="collapsed ? 'باز کردن منو' : 'جمع کردن منو'"
|
|
|
|
|
|
:title="collapsed ? 'باز کردن منو' : 'جمع کردن منو'"
|
|
|
|
|
|
@click="toggleCollapsed"
|
|
|
|
|
|
>
|
|
|
|
|
|
<UiIcon name="chevron" :size="12" />
|
|
|
|
|
|
</button>
|
2026-08-29 21:06:30 +03:30
|
|
|
|
</div>
|
|
|
|
|
|
|
2026-09-09 17:51:40 +03:30
|
|
|
|
<div class="rail-stem">
|
2026-08-30 10:06:41 +03:30
|
|
|
|
<nav class="side-nav">
|
|
|
|
|
|
<div class="nav-primary">
|
2026-09-11 17:37:24 +03:30
|
|
|
|
<RouterLink to="/" class="nav-item" title="داشبورد" @click="closeHub(); closeMenu()">
|
2026-09-09 17:51:40 +03:30
|
|
|
|
<UiIcon name="home" :size="collapsed ? 20 : 18" />
|
2026-09-01 15:21:54 +03:30
|
|
|
|
<span>داشبورد</span>
|
|
|
|
|
|
</RouterLink>
|
2026-09-11 14:47:01 +03:30
|
|
|
|
|
2026-09-20 11:24:14 +03:30
|
|
|
|
<div class="nav-fold" v-if="hubVisible.customers" :class="{ active: customersActive || openHubKey === 'customers' }">
|
2026-09-11 14:47:01 +03:30
|
|
|
|
<button
|
|
|
|
|
|
class="nav-item nav-fold-btn"
|
|
|
|
|
|
type="button"
|
|
|
|
|
|
title="مشتریان"
|
2026-09-11 17:37:24 +03:30
|
|
|
|
:class="{ 'router-link-active': customersActive || openHubKey === 'customers', 'hub-on': openHubKey === 'customers' }"
|
|
|
|
|
|
:aria-expanded="openHubKey === 'customers'"
|
|
|
|
|
|
@click="onHubClick('customers')"
|
2026-09-11 14:47:01 +03:30
|
|
|
|
>
|
|
|
|
|
|
<UiIcon name="users" :size="collapsed ? 20 : 18" />
|
|
|
|
|
|
<span>مشتریان</span>
|
|
|
|
|
|
<i class="chev" aria-hidden="true" />
|
|
|
|
|
|
</button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
2026-09-27 18:00:59 +03:30
|
|
|
|
<div class="nav-fold" v-if="hubVisible.leads" :class="{ active: leadsActive || openHubKey === 'leads' }">
|
|
|
|
|
|
<button
|
|
|
|
|
|
class="nav-item nav-fold-btn"
|
|
|
|
|
|
type="button"
|
|
|
|
|
|
title="لیدها"
|
|
|
|
|
|
:class="{ 'router-link-active': leadsActive || openHubKey === 'leads', 'hub-on': openHubKey === 'leads' }"
|
|
|
|
|
|
:aria-expanded="openHubKey === 'leads'"
|
|
|
|
|
|
@click="onHubClick('leads')"
|
|
|
|
|
|
>
|
|
|
|
|
|
<UiIcon name="user-plus" :size="collapsed ? 20 : 18" />
|
|
|
|
|
|
<span>لیدها</span>
|
|
|
|
|
|
<i class="chev" aria-hidden="true" />
|
|
|
|
|
|
</button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
2026-09-20 11:24:14 +03:30
|
|
|
|
<div class="nav-fold" v-if="hubVisible.sales" :class="{ active: salesActive || openHubKey === 'sales' }">
|
2026-09-11 14:47:01 +03:30
|
|
|
|
<button
|
|
|
|
|
|
class="nav-item nav-fold-btn"
|
|
|
|
|
|
type="button"
|
|
|
|
|
|
title="فروش"
|
2026-09-11 17:37:24 +03:30
|
|
|
|
:class="{ 'router-link-active': salesActive || openHubKey === 'sales', 'hub-on': openHubKey === 'sales' }"
|
|
|
|
|
|
:aria-expanded="openHubKey === 'sales'"
|
|
|
|
|
|
@click="onHubClick('sales')"
|
2026-09-11 14:47:01 +03:30
|
|
|
|
>
|
|
|
|
|
|
<UiIcon name="briefcase" :size="collapsed ? 20 : 18" />
|
|
|
|
|
|
<span>فروش</span>
|
|
|
|
|
|
<i class="chev" aria-hidden="true" />
|
|
|
|
|
|
</button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
2026-09-20 11:24:14 +03:30
|
|
|
|
<div class="nav-fold" v-if="hubVisible.activities" :class="{ active: activitiesActive || openHubKey === 'activities' }">
|
2026-09-11 14:47:01 +03:30
|
|
|
|
<button
|
|
|
|
|
|
class="nav-item nav-fold-btn"
|
|
|
|
|
|
type="button"
|
2026-11-01 22:45:34 +03:30
|
|
|
|
title="فعالیتها"
|
2026-09-11 17:37:24 +03:30
|
|
|
|
:class="{ 'router-link-active': activitiesActive || openHubKey === 'activities', 'hub-on': openHubKey === 'activities' }"
|
|
|
|
|
|
:aria-expanded="openHubKey === 'activities'"
|
|
|
|
|
|
@click="onHubClick('activities')"
|
2026-09-11 14:47:01 +03:30
|
|
|
|
>
|
|
|
|
|
|
<UiIcon name="check" :size="collapsed ? 20 : 18" />
|
2026-11-01 22:45:34 +03:30
|
|
|
|
<span>فعالیتها</span>
|
2026-09-11 14:47:01 +03:30
|
|
|
|
<span v-if="activityBadge" class="nav-badge">{{ toFaDigits(activityBadge) }}</span>
|
|
|
|
|
|
<i class="chev" aria-hidden="true" />
|
|
|
|
|
|
</button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
2026-10-06 19:54:38 +03:30
|
|
|
|
<RouterLink
|
|
|
|
|
|
v-if="moduleAllowed('routines')"
|
|
|
|
|
|
to="/routines"
|
|
|
|
|
|
class="nav-item"
|
|
|
|
|
|
title="کارهای روتین"
|
|
|
|
|
|
:class="{ 'router-link-active': routinesActive }"
|
|
|
|
|
|
@click="closeHub(); closeMenu()"
|
|
|
|
|
|
>
|
|
|
|
|
|
<UiIcon name="refresh" :size="collapsed ? 20 : 18" />
|
|
|
|
|
|
<span>کارهای روتین</span>
|
|
|
|
|
|
<span v-if="routineBadge" class="nav-badge">{{ toFaDigits(routineBadge) }}</span>
|
|
|
|
|
|
</RouterLink>
|
|
|
|
|
|
|
2026-10-10 21:28:49 +03:30
|
|
|
|
<RouterLink
|
|
|
|
|
|
v-if="moduleAllowed('gamification')"
|
|
|
|
|
|
to="/club"
|
|
|
|
|
|
class="nav-item"
|
|
|
|
|
|
title="باشگاه امتیازات"
|
|
|
|
|
|
:class="{ 'router-link-active': clubActive }"
|
|
|
|
|
|
@click="closeHub(); closeMenu()"
|
|
|
|
|
|
>
|
|
|
|
|
|
<UiIcon name="trophy" :size="collapsed ? 20 : 18" />
|
|
|
|
|
|
<span>باشگاه امتیازات</span>
|
|
|
|
|
|
</RouterLink>
|
|
|
|
|
|
|
2026-09-29 14:45:19 +03:30
|
|
|
|
<RouterLink
|
|
|
|
|
|
v-if="moduleAllowed('conversations')"
|
|
|
|
|
|
to="/conversations"
|
|
|
|
|
|
class="nav-item"
|
|
|
|
|
|
title="گفتگو"
|
|
|
|
|
|
:class="{ 'router-link-active': conversationsActive }"
|
|
|
|
|
|
@click="closeHub(); closeMenu()"
|
|
|
|
|
|
>
|
|
|
|
|
|
<UiIcon name="chat" :size="collapsed ? 20 : 18" />
|
|
|
|
|
|
<span>گفتگو</span>
|
2026-09-29 16:22:37 +03:30
|
|
|
|
<span v-if="chatBadge" class="nav-badge">{{ toFaDigits(chatBadge) }}</span>
|
2026-09-29 14:45:19 +03:30
|
|
|
|
</RouterLink>
|
|
|
|
|
|
|
2026-08-30 10:06:41 +03:30
|
|
|
|
<RouterLink
|
2026-10-21 13:45:16 +03:30
|
|
|
|
v-if="canOpen('/notes')"
|
2026-09-11 14:47:01 +03:30
|
|
|
|
to="/notes"
|
2026-09-01 15:21:54 +03:30
|
|
|
|
class="nav-item"
|
2026-09-11 14:47:01 +03:30
|
|
|
|
title="یادداشتها"
|
|
|
|
|
|
:class="{ 'router-link-active': notesActive }"
|
2026-09-11 17:37:24 +03:30
|
|
|
|
@click="closeHub(); closeMenu()"
|
2026-08-30 10:06:41 +03:30
|
|
|
|
>
|
2026-09-11 14:47:01 +03:30
|
|
|
|
<UiIcon name="document" :size="collapsed ? 20 : 18" />
|
|
|
|
|
|
<span>یادداشتها</span>
|
2026-09-01 15:21:54 +03:30
|
|
|
|
</RouterLink>
|
2026-09-11 14:47:01 +03:30
|
|
|
|
|
2026-09-11 17:37:24 +03:30
|
|
|
|
<div class="nav-fold" :class="{ active: supportActive || openHubKey === 'support' }">
|
2026-09-11 14:47:01 +03:30
|
|
|
|
<button
|
|
|
|
|
|
class="nav-item nav-fold-btn"
|
|
|
|
|
|
type="button"
|
|
|
|
|
|
title="پشتیبانی"
|
2026-09-11 17:37:24 +03:30
|
|
|
|
:class="{ 'router-link-active': supportActive || openHubKey === 'support', 'hub-on': openHubKey === 'support' }"
|
|
|
|
|
|
:aria-expanded="openHubKey === 'support'"
|
|
|
|
|
|
@click="onHubClick('support')"
|
2026-09-11 14:47:01 +03:30
|
|
|
|
>
|
|
|
|
|
|
<UiIcon name="chat" :size="collapsed ? 20 : 18" />
|
|
|
|
|
|
<span>پشتیبانی</span>
|
|
|
|
|
|
<i class="chev" aria-hidden="true" />
|
|
|
|
|
|
</button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
2026-09-11 17:37:24 +03:30
|
|
|
|
<RouterLink to="/loyalty" class="nav-item" title="باشگاه مشتریان" @click="closeHub(); closeMenu()">
|
2026-09-11 14:47:01 +03:30
|
|
|
|
<UiIcon name="gift" :size="collapsed ? 20 : 18" />
|
|
|
|
|
|
<span>باشگاه مشتریان</span>
|
2026-09-01 15:21:54 +03:30
|
|
|
|
</RouterLink>
|
2026-10-21 13:45:16 +03:30
|
|
|
|
<RouterLink
|
|
|
|
|
|
v-if="canOpen('/reports')"
|
|
|
|
|
|
to="/reports"
|
|
|
|
|
|
class="nav-item"
|
|
|
|
|
|
title="گزارشها"
|
|
|
|
|
|
@click="closeHub(); closeMenu()"
|
|
|
|
|
|
>
|
2026-09-09 17:51:40 +03:30
|
|
|
|
<UiIcon name="chart" :size="collapsed ? 20 : 18" />
|
2026-09-01 15:21:54 +03:30
|
|
|
|
<span>گزارشها</span>
|
2026-08-30 10:06:41 +03:30
|
|
|
|
</RouterLink>
|
2026-09-14 16:49:43 +03:30
|
|
|
|
<div
|
2026-09-09 21:43:17 +03:30
|
|
|
|
v-if="canSettings"
|
2026-09-14 16:49:43 +03:30
|
|
|
|
class="nav-fold"
|
|
|
|
|
|
:class="{ active: automationsActive || openHubKey === 'automations' }"
|
2026-09-09 21:43:17 +03:30
|
|
|
|
>
|
2026-09-14 16:49:43 +03:30
|
|
|
|
<button
|
|
|
|
|
|
class="nav-item nav-fold-btn"
|
|
|
|
|
|
type="button"
|
|
|
|
|
|
title="اتوماسیون"
|
|
|
|
|
|
:class="{ 'router-link-active': automationsActive || openHubKey === 'automations', 'hub-on': openHubKey === 'automations' }"
|
|
|
|
|
|
:aria-expanded="openHubKey === 'automations'"
|
|
|
|
|
|
@click="onHubClick('automations')"
|
|
|
|
|
|
>
|
|
|
|
|
|
<UiIcon name="layers" :size="collapsed ? 20 : 18" />
|
|
|
|
|
|
<span>اتوماسیون</span>
|
|
|
|
|
|
<i class="chev" aria-hidden="true" />
|
|
|
|
|
|
</button>
|
|
|
|
|
|
</div>
|
2026-08-30 10:06:41 +03:30
|
|
|
|
</div>
|
|
|
|
|
|
|
2026-09-11 14:47:01 +03:30
|
|
|
|
<div class="nav-sep" aria-hidden="true" />
|
2026-09-09 17:51:40 +03:30
|
|
|
|
|
2026-09-11 14:47:01 +03:30
|
|
|
|
<div class="nav-utility">
|
2026-09-11 17:37:24 +03:30
|
|
|
|
<div class="nav-fold" :class="{ active: toolsActive || openHubKey === 'tools' }">
|
2026-09-11 14:47:01 +03:30
|
|
|
|
<button
|
|
|
|
|
|
class="nav-item nav-fold-btn"
|
|
|
|
|
|
type="button"
|
|
|
|
|
|
title="ابزارها"
|
2026-09-11 17:37:24 +03:30
|
|
|
|
:class="{ 'router-link-active': toolsActive || openHubKey === 'tools', 'hub-on': openHubKey === 'tools' }"
|
|
|
|
|
|
:aria-expanded="openHubKey === 'tools'"
|
|
|
|
|
|
@click="onHubClick('tools')"
|
2026-09-11 14:47:01 +03:30
|
|
|
|
>
|
|
|
|
|
|
<UiIcon name="apps-plus" :size="collapsed ? 20 : 18" />
|
|
|
|
|
|
<span>ابزارها</span>
|
|
|
|
|
|
<i class="chev" aria-hidden="true" />
|
|
|
|
|
|
</button>
|
2026-08-30 10:06:41 +03:30
|
|
|
|
</div>
|
|
|
|
|
|
|
2026-09-11 14:47:01 +03:30
|
|
|
|
<div
|
2026-10-17 19:57:26 +03:30
|
|
|
|
v-if="showSettingsNav"
|
2026-09-11 14:47:01 +03:30
|
|
|
|
class="nav-fold"
|
2026-09-11 17:37:24 +03:30
|
|
|
|
:class="{ active: settingsActive || openHubKey === 'settings' }"
|
2026-08-30 10:06:41 +03:30
|
|
|
|
>
|
2026-09-11 14:47:01 +03:30
|
|
|
|
<button
|
|
|
|
|
|
class="nav-item nav-fold-btn"
|
|
|
|
|
|
type="button"
|
|
|
|
|
|
title="تنظیمات"
|
2026-09-11 17:37:24 +03:30
|
|
|
|
:class="{ 'router-link-active': settingsActive || openHubKey === 'settings', 'hub-on': openHubKey === 'settings' }"
|
|
|
|
|
|
:aria-expanded="openHubKey === 'settings'"
|
|
|
|
|
|
@click="onHubClick('settings')"
|
2026-09-11 14:47:01 +03:30
|
|
|
|
>
|
|
|
|
|
|
<UiIcon name="settings" :size="collapsed ? 20 : 18" />
|
|
|
|
|
|
<span>تنظیمات</span>
|
|
|
|
|
|
<i class="chev" aria-hidden="true" />
|
|
|
|
|
|
</button>
|
2026-08-30 10:06:41 +03:30
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2026-08-29 21:06:30 +03:30
|
|
|
|
</nav>
|
|
|
|
|
|
|
|
|
|
|
|
<p v-if="showOwnRecordsBanner" class="scope-banner">
|
|
|
|
|
|
فقط پروندههای خودتان را میبینید.
|
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="sidebar-foot">
|
2026-10-17 19:19:31 +03:30
|
|
|
|
<div v-if="auth.user?.priorArchive" class="prior-switch" role="group" aria-label="اطلاعات قبل">
|
2026-10-15 10:48:30 +03:30
|
|
|
|
<button
|
|
|
|
|
|
type="button"
|
|
|
|
|
|
:class="{ on: priorLens === 'current' }"
|
|
|
|
|
|
:disabled="priorSaving"
|
|
|
|
|
|
@click="setPriorLens('current')"
|
|
|
|
|
|
>
|
|
|
|
|
|
کار جاری
|
|
|
|
|
|
</button>
|
|
|
|
|
|
<button
|
|
|
|
|
|
type="button"
|
|
|
|
|
|
:class="{ on: priorLens === 'archive' }"
|
|
|
|
|
|
:disabled="priorSaving"
|
|
|
|
|
|
@click="setPriorLens('archive')"
|
|
|
|
|
|
>
|
2026-10-17 19:19:31 +03:30
|
|
|
|
اطلاعات قبل
|
2026-10-15 10:48:30 +03:30
|
|
|
|
</button>
|
|
|
|
|
|
</div>
|
2026-09-15 21:37:58 +03:30
|
|
|
|
<div class="foot-actions">
|
2026-09-28 17:35:03 +03:30
|
|
|
|
<RouterLink
|
|
|
|
|
|
class="profile-card profile-foot"
|
|
|
|
|
|
:to="{ name: 'profile' }"
|
|
|
|
|
|
:title="auth.user?.fullName || 'پروفایل'"
|
|
|
|
|
|
@click="closeMenu"
|
|
|
|
|
|
>
|
|
|
|
|
|
<span class="avatar-wrap">
|
|
|
|
|
|
<span class="avatar">
|
|
|
|
|
|
<img
|
|
|
|
|
|
:src="auth.avatarSrc"
|
|
|
|
|
|
:alt="auth.user?.fullName || 'کاربر'"
|
|
|
|
|
|
width="36"
|
|
|
|
|
|
height="36"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</span>
|
|
|
|
|
|
<i class="online-dot" title="آنلاین" aria-hidden="true" />
|
|
|
|
|
|
</span>
|
|
|
|
|
|
<span class="profile-meta">
|
|
|
|
|
|
<strong>{{ profileDisplayName }}</strong>
|
|
|
|
|
|
</span>
|
|
|
|
|
|
</RouterLink>
|
|
|
|
|
|
<div class="foot-meta">
|
|
|
|
|
|
<OrgSwitcher :compact="collapsed" />
|
|
|
|
|
|
<button
|
|
|
|
|
|
class="logout-link"
|
|
|
|
|
|
type="button"
|
|
|
|
|
|
title="خروج از حساب"
|
|
|
|
|
|
aria-label="خروج از حساب"
|
|
|
|
|
|
@click="onLogout"
|
|
|
|
|
|
>
|
|
|
|
|
|
<UiIcon name="logout" :size="18" />
|
|
|
|
|
|
<span>خروج از حساب</span>
|
|
|
|
|
|
</button>
|
|
|
|
|
|
</div>
|
2026-09-15 21:37:58 +03:30
|
|
|
|
</div>
|
2026-09-09 17:51:40 +03:30
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
2026-08-29 21:06:30 +03:30
|
|
|
|
</aside>
|
|
|
|
|
|
|
2026-09-01 15:21:54 +03:30
|
|
|
|
<div class="workspace">
|
2026-09-01 15:39:18 +03:30
|
|
|
|
<header class="mobile-topbar mobile-only">
|
2026-09-01 15:21:54 +03:30
|
|
|
|
<div class="top-brand">
|
2026-09-01 16:05:29 +03:30
|
|
|
|
<MentoLogo :size="32" :show-text="false" variant="mark" />
|
2026-09-07 11:49:54 +03:30
|
|
|
|
<BrandName lang="en" />
|
2026-09-01 15:21:54 +03:30
|
|
|
|
</div>
|
2026-09-14 19:19:09 +03:30
|
|
|
|
<div class="top-tools">
|
2026-10-19 15:55:48 +03:30
|
|
|
|
<SmsHeaderWallet />
|
2026-09-14 19:19:09 +03:30
|
|
|
|
<button class="round-btn" type="button" aria-label="اعلانها" @click="toggleNotif">
|
|
|
|
|
|
<UiIcon name="bell" :size="18" />
|
|
|
|
|
|
<span v-if="hasUnread" class="badge">{{ toFaDigits(unreadCount) }}</span>
|
|
|
|
|
|
</button>
|
|
|
|
|
|
<RouterLink
|
|
|
|
|
|
class="top-avatar"
|
|
|
|
|
|
:to="{ name: 'profile' }"
|
|
|
|
|
|
:title="auth.user?.fullName || 'پروفایل'"
|
|
|
|
|
|
:aria-label="auth.user?.fullName || 'پروفایل'"
|
|
|
|
|
|
>
|
|
|
|
|
|
<span class="avatar-wrap">
|
|
|
|
|
|
<span class="avatar">
|
|
|
|
|
|
<img
|
2026-09-15 14:10:52 +03:30
|
|
|
|
:src="auth.avatarSrc"
|
2026-09-14 19:19:09 +03:30
|
|
|
|
:alt="auth.user?.fullName || 'کاربر'"
|
|
|
|
|
|
width="36"
|
|
|
|
|
|
height="36"
|
|
|
|
|
|
/>
|
|
|
|
|
|
</span>
|
|
|
|
|
|
<i class="online-dot" title="آنلاین" aria-hidden="true" />
|
|
|
|
|
|
</span>
|
|
|
|
|
|
</RouterLink>
|
|
|
|
|
|
</div>
|
2026-09-01 15:21:54 +03:30
|
|
|
|
</header>
|
2026-08-29 21:06:30 +03:30
|
|
|
|
|
2026-09-01 15:21:54 +03:30
|
|
|
|
<header class="desktop-topbar desktop-only">
|
|
|
|
|
|
<form class="global-search" @submit.prevent="submitSearch">
|
2026-09-01 15:39:18 +03:30
|
|
|
|
<UiIcon name="search" :size="18" class="search-leading" />
|
2026-09-01 15:21:54 +03:30
|
|
|
|
<input
|
|
|
|
|
|
v-model="globalSearch"
|
|
|
|
|
|
type="search"
|
2026-09-01 15:39:18 +03:30
|
|
|
|
placeholder="جستجو در مشتریان، معاملات و..."
|
2026-09-01 15:21:54 +03:30
|
|
|
|
/>
|
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="topbar-actions">
|
2026-10-21 13:45:16 +03:30
|
|
|
|
<RouterLink
|
|
|
|
|
|
v-if="canOpen('/notes')"
|
|
|
|
|
|
class="round-btn accent"
|
|
|
|
|
|
:to="{ name: 'notes' }"
|
|
|
|
|
|
title="هوش مصنوعی"
|
|
|
|
|
|
>
|
2026-09-01 15:39:18 +03:30
|
|
|
|
<UiIcon name="sparkle" :size="18" />
|
|
|
|
|
|
</RouterLink>
|
|
|
|
|
|
<button class="round-btn" type="button" aria-label="اعلانها" @click="toggleNotif">
|
|
|
|
|
|
<UiIcon name="bell" :size="18" />
|
|
|
|
|
|
<span v-if="hasUnread" class="badge">{{ toFaDigits(unreadCount) }}</span>
|
2026-09-01 15:21:54 +03:30
|
|
|
|
</button>
|
2026-10-21 13:45:16 +03:30
|
|
|
|
<RouterLink
|
|
|
|
|
|
v-if="canOpen('/activities')"
|
|
|
|
|
|
class="round-btn"
|
|
|
|
|
|
:to="{ name: 'activities-calendar' }"
|
|
|
|
|
|
title="تقویم"
|
|
|
|
|
|
>
|
2026-09-01 15:39:18 +03:30
|
|
|
|
<UiIcon name="calendar" :size="18" />
|
|
|
|
|
|
</RouterLink>
|
|
|
|
|
|
<RouterLink class="round-btn" :to="{ name: 'tickets' }" title="پیامها">
|
|
|
|
|
|
<UiIcon name="mail" :size="18" />
|
|
|
|
|
|
</RouterLink>
|
2026-10-19 21:47:17 +03:30
|
|
|
|
<SmsHeaderWallet />
|
2026-09-20 11:24:14 +03:30
|
|
|
|
<div
|
|
|
|
|
|
v-if="subscription"
|
|
|
|
|
|
class="sub-chip"
|
|
|
|
|
|
:class="{ warn: subscription.warn }"
|
|
|
|
|
|
:title="`انقضا: ${subscription.expiresAt}`"
|
|
|
|
|
|
>
|
|
|
|
|
|
<UiIcon name="clock" :size="15" />
|
2026-10-06 19:54:38 +03:30
|
|
|
|
<span v-if="subscription.planCode === 'lifetime'">اشتراک دائمی</span>
|
|
|
|
|
|
<span v-else>
|
2026-09-20 11:24:14 +03:30
|
|
|
|
{{ toFaDigits(subscription.daysRemaining) }} روز باقیمانده
|
|
|
|
|
|
</span>
|
|
|
|
|
|
</div>
|
2026-09-01 15:39:18 +03:30
|
|
|
|
<div class="date-chip">
|
|
|
|
|
|
<UiIcon name="calendar" :size="16" />
|
|
|
|
|
|
<span>{{ todayLabel }}</span>
|
|
|
|
|
|
</div>
|
2026-09-01 15:21:54 +03:30
|
|
|
|
</div>
|
|
|
|
|
|
</header>
|
|
|
|
|
|
|
|
|
|
|
|
<div v-if="notifOpen" class="notif-layer">
|
|
|
|
|
|
<div class="notif-backdrop" @click="closeNotif" />
|
|
|
|
|
|
<div class="notif-panel" role="dialog" aria-label="اعلانها">
|
|
|
|
|
|
<header class="notif-head">
|
|
|
|
|
|
<strong>اعلانها</strong>
|
|
|
|
|
|
<div class="notif-head-actions">
|
|
|
|
|
|
<button v-if="hasUnread" class="linkish" type="button" @click="markAll">
|
|
|
|
|
|
همه خوانده شد
|
|
|
|
|
|
</button>
|
2026-09-01 15:39:18 +03:30
|
|
|
|
<button class="round-btn sm" type="button" aria-label="بستن" @click="closeNotif">
|
2026-09-01 15:21:54 +03:30
|
|
|
|
✕
|
|
|
|
|
|
</button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</header>
|
|
|
|
|
|
<p v-if="loading && !items.length" class="muted">در حال بارگذاری…</p>
|
|
|
|
|
|
<ul v-else-if="items.length" class="notif-list">
|
|
|
|
|
|
<li v-for="item in items" :key="item.id" :class="{ unread: !item.readAt }">
|
|
|
|
|
|
<button type="button" @click="markRead(item)">
|
|
|
|
|
|
<span class="title">{{ item.title }}</span>
|
|
|
|
|
|
<span v-if="item.body" class="body">{{ item.body }}</span>
|
|
|
|
|
|
<span class="time">{{ formatTime(item.createdAt) }}</span>
|
|
|
|
|
|
</button>
|
|
|
|
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
<p v-else class="muted">اعلانی نیست.</p>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
2026-11-02 15:44:36 +03:30
|
|
|
|
<p
|
|
|
|
|
|
v-if="storageBanner"
|
|
|
|
|
|
class="storage-banner"
|
|
|
|
|
|
:class="storageBanner.level === 'full' ? 'full' : 'warn'"
|
|
|
|
|
|
>
|
|
|
|
|
|
<template v-if="storageBanner.level === 'full'">
|
|
|
|
|
|
سقف حجم فایل پر شده است ({{ formatBytes(storageBanner.usedBytes) }} از
|
|
|
|
|
|
{{ formatBytes(storageBanner.quotaBytes ?? 0) }}). تا شارژ حجم، آپلود جدید ممکن نیست.
|
|
|
|
|
|
</template>
|
|
|
|
|
|
<template v-else>
|
|
|
|
|
|
حجم فایل به {{ toFaDigits(storageBanner.percent ?? 80) }}٪ رسیده
|
|
|
|
|
|
({{ formatBytes(storageBanner.usedBytes) }} از {{ formatBytes(storageBanner.quotaBytes ?? 0) }}).
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</p>
|
|
|
|
|
|
|
2026-09-01 15:21:54 +03:30
|
|
|
|
<main class="content">
|
|
|
|
|
|
<RouterView />
|
2026-10-10 21:28:49 +03:30
|
|
|
|
<GamificationToaster v-if="moduleAllowed('gamification')" />
|
2026-09-01 15:21:54 +03:30
|
|
|
|
</main>
|
|
|
|
|
|
</div>
|
2026-09-11 17:37:24 +03:30
|
|
|
|
|
|
|
|
|
|
<div v-if="openHub" class="hub-layer">
|
|
|
|
|
|
<button class="hub-dim" type="button" aria-label="بستن منو" @click="closeHub" />
|
2026-09-28 11:50:44 +03:30
|
|
|
|
<NavHubPanel
|
|
|
|
|
|
:hub="openHub"
|
|
|
|
|
|
:can-back="hubCanBack"
|
|
|
|
|
|
@close="closeHub"
|
|
|
|
|
|
@back="backHub"
|
|
|
|
|
|
@go="goHub"
|
|
|
|
|
|
@open-hub="openNestedHub"
|
|
|
|
|
|
/>
|
2026-09-11 17:37:24 +03:30
|
|
|
|
</div>
|
2026-09-14 19:19:09 +03:30
|
|
|
|
|
|
|
|
|
|
<nav class="mobile-tabbar mobile-only" aria-label="منوی اصلی">
|
|
|
|
|
|
<RouterLink
|
|
|
|
|
|
to="/"
|
|
|
|
|
|
class="tab"
|
|
|
|
|
|
:class="{ on: dashboardActive && !moreOpen }"
|
|
|
|
|
|
@click="closeHub(); closeMore()"
|
|
|
|
|
|
>
|
|
|
|
|
|
<UiIcon name="home" :size="20" />
|
|
|
|
|
|
<span>داشبورد</span>
|
|
|
|
|
|
</RouterLink>
|
|
|
|
|
|
<button
|
2026-10-21 13:45:16 +03:30
|
|
|
|
v-if="hubVisible.customers || hubVisible.leads"
|
2026-09-14 19:19:09 +03:30
|
|
|
|
class="tab"
|
|
|
|
|
|
type="button"
|
2026-09-28 11:50:44 +03:30
|
|
|
|
:class="{
|
|
|
|
|
|
on:
|
|
|
|
|
|
!moreOpen &&
|
|
|
|
|
|
(customersActive ||
|
|
|
|
|
|
openHubKey === 'customers' ||
|
|
|
|
|
|
(isMobileNav && openHubKey === 'leads')),
|
|
|
|
|
|
}"
|
|
|
|
|
|
:aria-expanded="
|
|
|
|
|
|
openHubKey === 'customers' || (isMobileNav && openHubKey === 'leads')
|
|
|
|
|
|
"
|
2026-09-14 19:19:09 +03:30
|
|
|
|
@click="openTabHub('customers')"
|
|
|
|
|
|
>
|
|
|
|
|
|
<UiIcon name="users" :size="20" />
|
|
|
|
|
|
<span>مشتریان</span>
|
|
|
|
|
|
</button>
|
|
|
|
|
|
<button
|
2026-10-21 13:45:16 +03:30
|
|
|
|
v-if="hubVisible.sales"
|
2026-09-14 19:19:09 +03:30
|
|
|
|
class="tab"
|
|
|
|
|
|
type="button"
|
|
|
|
|
|
:class="{ on: !moreOpen && (salesActive || openHubKey === 'sales') }"
|
|
|
|
|
|
:aria-expanded="openHubKey === 'sales'"
|
|
|
|
|
|
@click="openTabHub('sales')"
|
|
|
|
|
|
>
|
|
|
|
|
|
<UiIcon name="briefcase" :size="20" />
|
|
|
|
|
|
<span>فروش</span>
|
|
|
|
|
|
</button>
|
|
|
|
|
|
<button
|
2026-10-21 13:45:16 +03:30
|
|
|
|
v-if="hubVisible.activities"
|
2026-09-14 19:19:09 +03:30
|
|
|
|
class="tab"
|
|
|
|
|
|
type="button"
|
|
|
|
|
|
:class="{ on: !moreOpen && (activitiesActive || openHubKey === 'activities') }"
|
|
|
|
|
|
:aria-expanded="openHubKey === 'activities'"
|
2026-11-01 22:45:34 +03:30
|
|
|
|
title="فعالیتها"
|
2026-09-14 19:19:09 +03:30
|
|
|
|
@click="openTabHub('activities')"
|
|
|
|
|
|
>
|
|
|
|
|
|
<span class="tab-ico">
|
|
|
|
|
|
<UiIcon name="check" :size="20" />
|
|
|
|
|
|
<span v-if="activityBadge" class="tab-badge">{{ toFaDigits(activityBadge) }}</span>
|
|
|
|
|
|
</span>
|
2026-11-01 22:45:34 +03:30
|
|
|
|
<span>فعالیت</span>
|
2026-09-14 19:19:09 +03:30
|
|
|
|
</button>
|
|
|
|
|
|
<button
|
|
|
|
|
|
class="tab"
|
|
|
|
|
|
type="button"
|
|
|
|
|
|
:class="{ on: moreTabActive }"
|
|
|
|
|
|
:aria-expanded="moreOpen"
|
|
|
|
|
|
aria-controls="mobile-more"
|
|
|
|
|
|
@click="toggleMore"
|
|
|
|
|
|
>
|
|
|
|
|
|
<UiIcon name="grid" :size="20" />
|
|
|
|
|
|
<span>بیشتر</span>
|
|
|
|
|
|
</button>
|
|
|
|
|
|
</nav>
|
|
|
|
|
|
|
|
|
|
|
|
<div
|
|
|
|
|
|
v-if="moreOpen"
|
|
|
|
|
|
id="mobile-more"
|
|
|
|
|
|
class="more-layer mobile-only"
|
|
|
|
|
|
role="dialog"
|
|
|
|
|
|
aria-modal="true"
|
|
|
|
|
|
aria-label="منو"
|
|
|
|
|
|
>
|
|
|
|
|
|
<header class="more-head">
|
|
|
|
|
|
<h2>منو</h2>
|
|
|
|
|
|
<button class="round-btn sm" type="button" aria-label="بستن" @click="closeMore">✕</button>
|
|
|
|
|
|
</header>
|
|
|
|
|
|
<nav class="more-body">
|
2026-10-06 19:54:38 +03:30
|
|
|
|
<RouterLink
|
|
|
|
|
|
v-if="moduleAllowed('routines')"
|
|
|
|
|
|
to="/routines"
|
|
|
|
|
|
class="nav-item"
|
|
|
|
|
|
:class="{ 'router-link-active': routinesActive }"
|
|
|
|
|
|
@click="closeHub(); closeMore()"
|
|
|
|
|
|
>
|
|
|
|
|
|
<UiIcon name="refresh" :size="18" />
|
|
|
|
|
|
<span>کارهای روتین</span>
|
|
|
|
|
|
<span v-if="routineBadge" class="nav-badge">{{ toFaDigits(routineBadge) }}</span>
|
|
|
|
|
|
</RouterLink>
|
2026-10-10 21:28:49 +03:30
|
|
|
|
<RouterLink
|
|
|
|
|
|
v-if="moduleAllowed('gamification')"
|
|
|
|
|
|
to="/club"
|
|
|
|
|
|
class="nav-item"
|
|
|
|
|
|
:class="{ 'router-link-active': clubActive }"
|
|
|
|
|
|
@click="closeHub(); closeMore()"
|
|
|
|
|
|
>
|
|
|
|
|
|
<UiIcon name="trophy" :size="18" />
|
|
|
|
|
|
<span>باشگاه امتیازات</span>
|
|
|
|
|
|
</RouterLink>
|
2026-10-21 13:45:16 +03:30
|
|
|
|
<RouterLink v-if="canOpen('/notes')" to="/notes" class="nav-item" @click="closeHub(); closeMore()">
|
2026-09-14 19:19:09 +03:30
|
|
|
|
<UiIcon name="document" :size="18" />
|
|
|
|
|
|
<span>یادداشتها</span>
|
|
|
|
|
|
</RouterLink>
|
2026-09-29 14:45:19 +03:30
|
|
|
|
<RouterLink
|
|
|
|
|
|
v-if="moduleAllowed('conversations')"
|
|
|
|
|
|
to="/conversations"
|
|
|
|
|
|
class="nav-item"
|
|
|
|
|
|
:class="{ 'router-link-active': conversationsActive }"
|
|
|
|
|
|
@click="closeHub(); closeMore()"
|
|
|
|
|
|
>
|
|
|
|
|
|
<UiIcon name="chat" :size="18" />
|
|
|
|
|
|
<span>گفتگو</span>
|
2026-09-29 16:22:37 +03:30
|
|
|
|
<span v-if="chatBadge" class="nav-badge">{{ toFaDigits(chatBadge) }}</span>
|
2026-09-29 14:45:19 +03:30
|
|
|
|
</RouterLink>
|
2026-09-14 19:19:09 +03:30
|
|
|
|
<button
|
|
|
|
|
|
class="nav-item nav-fold-btn"
|
|
|
|
|
|
type="button"
|
|
|
|
|
|
:class="{
|
|
|
|
|
|
'router-link-active': supportActive || openHubKey === 'support',
|
|
|
|
|
|
'hub-on': openHubKey === 'support',
|
|
|
|
|
|
}"
|
|
|
|
|
|
:aria-expanded="openHubKey === 'support'"
|
|
|
|
|
|
@click="openMoreHub('support')"
|
|
|
|
|
|
>
|
|
|
|
|
|
<UiIcon name="chat" :size="18" />
|
|
|
|
|
|
<span>پشتیبانی</span>
|
|
|
|
|
|
<i class="chev" aria-hidden="true" />
|
|
|
|
|
|
</button>
|
|
|
|
|
|
<RouterLink to="/loyalty" class="nav-item" @click="closeHub(); closeMore()">
|
|
|
|
|
|
<UiIcon name="gift" :size="18" />
|
|
|
|
|
|
<span>باشگاه مشتریان</span>
|
|
|
|
|
|
</RouterLink>
|
2026-10-21 13:45:16 +03:30
|
|
|
|
<RouterLink v-if="canOpen('/reports')" to="/reports" class="nav-item" @click="closeHub(); closeMore()">
|
2026-09-14 19:19:09 +03:30
|
|
|
|
<UiIcon name="chart" :size="18" />
|
|
|
|
|
|
<span>گزارشها</span>
|
|
|
|
|
|
</RouterLink>
|
|
|
|
|
|
<button
|
|
|
|
|
|
v-if="canSettings"
|
|
|
|
|
|
class="nav-item nav-fold-btn"
|
|
|
|
|
|
type="button"
|
|
|
|
|
|
:class="{
|
|
|
|
|
|
'router-link-active': automationsActive || openHubKey === 'automations',
|
|
|
|
|
|
'hub-on': openHubKey === 'automations',
|
|
|
|
|
|
}"
|
|
|
|
|
|
:aria-expanded="openHubKey === 'automations'"
|
|
|
|
|
|
@click="openMoreHub('automations')"
|
|
|
|
|
|
>
|
|
|
|
|
|
<UiIcon name="layers" :size="18" />
|
|
|
|
|
|
<span>اتوماسیون</span>
|
|
|
|
|
|
<i class="chev" aria-hidden="true" />
|
|
|
|
|
|
</button>
|
|
|
|
|
|
<button
|
|
|
|
|
|
class="nav-item nav-fold-btn"
|
|
|
|
|
|
type="button"
|
|
|
|
|
|
:class="{
|
|
|
|
|
|
'router-link-active': toolsActive || openHubKey === 'tools',
|
|
|
|
|
|
'hub-on': openHubKey === 'tools',
|
|
|
|
|
|
}"
|
|
|
|
|
|
:aria-expanded="openHubKey === 'tools'"
|
|
|
|
|
|
@click="openMoreHub('tools')"
|
|
|
|
|
|
>
|
|
|
|
|
|
<UiIcon name="apps-plus" :size="18" />
|
|
|
|
|
|
<span>ابزارها</span>
|
|
|
|
|
|
<i class="chev" aria-hidden="true" />
|
|
|
|
|
|
</button>
|
|
|
|
|
|
<button
|
2026-10-17 19:57:26 +03:30
|
|
|
|
v-if="showSettingsNav"
|
2026-09-14 19:19:09 +03:30
|
|
|
|
class="nav-item nav-fold-btn"
|
|
|
|
|
|
type="button"
|
|
|
|
|
|
:class="{
|
|
|
|
|
|
'router-link-active': settingsActive || openHubKey === 'settings',
|
|
|
|
|
|
'hub-on': openHubKey === 'settings',
|
|
|
|
|
|
}"
|
|
|
|
|
|
:aria-expanded="openHubKey === 'settings'"
|
|
|
|
|
|
@click="openMoreHub('settings')"
|
|
|
|
|
|
>
|
|
|
|
|
|
<UiIcon name="settings" :size="18" />
|
|
|
|
|
|
<span>تنظیمات</span>
|
|
|
|
|
|
<i class="chev" aria-hidden="true" />
|
|
|
|
|
|
</button>
|
|
|
|
|
|
</nav>
|
|
|
|
|
|
<button class="logout-link more-logout" type="button" @click="onLogout">
|
|
|
|
|
|
<UiIcon name="logout" :size="18" />
|
|
|
|
|
|
<span>خروج از حساب</span>
|
|
|
|
|
|
</button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
2026-09-03 14:20:55 +03:30
|
|
|
|
<QuickCreate />
|
2026-08-29 21:06:30 +03:30
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
|
.shell {
|
2026-09-09 17:51:40 +03:30
|
|
|
|
--sidebar-card: 220px;
|
|
|
|
|
|
--sidebar-gutter-start: 14px;
|
|
|
|
|
|
--sidebar-gutter-end: 10px;
|
2026-09-11 17:37:24 +03:30
|
|
|
|
--hub-offset: calc(var(--sidebar-card) + var(--sidebar-gutter-start));
|
2026-08-29 21:06:30 +03:30
|
|
|
|
display: grid;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
grid-template-columns: calc(var(--sidebar-card) + var(--sidebar-gutter-start) + var(--sidebar-gutter-end)) minmax(0, 1fr);
|
2026-08-29 21:06:30 +03:30
|
|
|
|
min-height: 100vh;
|
|
|
|
|
|
min-height: 100dvh;
|
2026-09-10 01:22:24 +03:30
|
|
|
|
background: var(--bg);
|
2026-09-02 16:06:17 +03:30
|
|
|
|
gap: 0;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
transition: grid-template-columns 0.2s ease;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.workspace {
|
|
|
|
|
|
min-width: 0;
|
2026-10-18 19:39:59 +03:30
|
|
|
|
min-height: 100dvh;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
position: relative;
|
|
|
|
|
|
z-index: 1;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-01 15:39:18 +03:30
|
|
|
|
.backdrop,
|
2026-08-29 21:06:30 +03:30
|
|
|
|
.mobile-only {
|
|
|
|
|
|
display: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-01 15:39:18 +03:30
|
|
|
|
.desktop-only {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-08-29 21:06:30 +03:30
|
|
|
|
.sidebar {
|
2026-08-30 10:28:38 +03:30
|
|
|
|
position: sticky;
|
2026-09-02 16:06:17 +03:30
|
|
|
|
top: 14px;
|
2026-08-30 10:28:38 +03:30
|
|
|
|
align-self: start;
|
2026-09-11 17:37:24 +03:30
|
|
|
|
z-index: 20;
|
2026-09-02 16:06:17 +03:30
|
|
|
|
height: calc(100dvh - 28px);
|
|
|
|
|
|
margin: 14px;
|
|
|
|
|
|
margin-inline-end: 10px;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
background: #fff;
|
2026-09-02 16:06:17 +03:30
|
|
|
|
border: 0;
|
|
|
|
|
|
border-radius: 28px;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
padding: 0.35rem 0.85rem 1.1rem;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
2026-09-28 17:35:03 +03:30
|
|
|
|
gap: 0.65rem;
|
2026-08-30 10:06:41 +03:30
|
|
|
|
overflow: hidden;
|
2026-08-30 10:28:38 +03:30
|
|
|
|
box-sizing: border-box;
|
2026-09-02 16:06:17 +03:30
|
|
|
|
box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
|
2026-08-29 21:06:30 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-09 17:51:40 +03:30
|
|
|
|
.rail-stem {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
flex: 1;
|
2026-11-02 19:43:47 +03:30
|
|
|
|
min-width: 0;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
min-height: 0;
|
2026-09-28 17:35:03 +03:30
|
|
|
|
gap: 0.85rem;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-01 15:39:18 +03:30
|
|
|
|
.brand-row {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: space-between;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
gap: 0.45rem;
|
|
|
|
|
|
padding: 0.1rem 0.2rem 0.2rem;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
flex-shrink: 0;
|
2026-08-30 10:16:03 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-09 17:51:40 +03:30
|
|
|
|
.brand-cluster {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 1.5rem;
|
|
|
|
|
|
min-width: 0;
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.brand-cluster :deep(.brand-logo.full) {
|
2026-09-28 17:35:03 +03:30
|
|
|
|
gap: 0.55rem;
|
2026-09-11 14:47:01 +03:30
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
min-width: max-content;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar-logo {
|
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.brand-cluster :deep(.text) {
|
|
|
|
|
|
flex-shrink: 0;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.brand-cluster :deep(.text strong) {
|
2026-09-28 17:35:03 +03:30
|
|
|
|
font-size: 1.28rem;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.brand-cluster :deep(.text small) {
|
2026-09-28 17:35:03 +03:30
|
|
|
|
font-size: 0.82rem;
|
2026-09-11 14:47:01 +03:30
|
|
|
|
white-space: nowrap;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-08-30 10:06:41 +03:30
|
|
|
|
.side-nav {
|
2026-08-29 21:06:30 +03:30
|
|
|
|
display: grid;
|
2026-09-28 17:35:03 +03:30
|
|
|
|
gap: 0.18rem;
|
|
|
|
|
|
align-content: start;
|
2026-08-30 10:06:41 +03:30
|
|
|
|
overflow-y: auto;
|
|
|
|
|
|
min-height: 0;
|
|
|
|
|
|
flex: 1;
|
2026-08-30 10:16:03 +03:30
|
|
|
|
scrollbar-width: none;
|
2026-09-02 16:06:17 +03:30
|
|
|
|
padding-inline: 0.15rem;
|
2026-08-30 10:16:03 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.side-nav::-webkit-scrollbar {
|
|
|
|
|
|
display: none;
|
2026-08-30 10:06:41 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.nav-primary,
|
|
|
|
|
|
.nav-sub {
|
|
|
|
|
|
display: grid;
|
2026-09-28 17:35:03 +03:30
|
|
|
|
gap: 0.2rem;
|
|
|
|
|
|
align-content: start;
|
2026-08-30 10:06:41 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-01 15:39:18 +03:30
|
|
|
|
.nav-item {
|
2026-09-01 15:21:54 +03:30
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
2026-09-28 17:35:03 +03:30
|
|
|
|
gap: 0.65rem;
|
|
|
|
|
|
padding: 0.62rem 0.9rem;
|
|
|
|
|
|
border-radius: 16px;
|
2026-09-02 16:06:17 +03:30
|
|
|
|
color: #334155;
|
2026-08-30 10:06:41 +03:30
|
|
|
|
text-decoration: none;
|
2026-09-01 15:39:18 +03:30
|
|
|
|
font-weight: 600;
|
2026-09-28 17:35:03 +03:30
|
|
|
|
font-size: 0.9rem;
|
2026-09-01 15:39:18 +03:30
|
|
|
|
transition: background 0.15s ease, color 0.15s ease;
|
2026-08-30 10:06:41 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-01 15:39:18 +03:30
|
|
|
|
.nav-item:hover {
|
|
|
|
|
|
background: #f8fafc;
|
|
|
|
|
|
color: #0f172a;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-01 15:39:18 +03:30
|
|
|
|
.nav-item.router-link-active {
|
2026-09-02 16:06:17 +03:30
|
|
|
|
background: #d8faf3;
|
2026-09-01 16:05:29 +03:30
|
|
|
|
color: #0f766e;
|
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.nav-item.router-link-active :deep(.ico) {
|
|
|
|
|
|
color: #0f766e;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-11 17:37:24 +03:30
|
|
|
|
.shell.hub-open .nav-item.router-link-active:not(.hub-on) {
|
|
|
|
|
|
background: transparent;
|
|
|
|
|
|
color: #334155;
|
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.shell.hub-open .nav-item.router-link-active:not(.hub-on) :deep(.ico) {
|
|
|
|
|
|
color: inherit;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.shell.hub-open .sidebar {
|
|
|
|
|
|
z-index: 70;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.hub-layer {
|
|
|
|
|
|
position: fixed;
|
|
|
|
|
|
inset: 0;
|
|
|
|
|
|
z-index: 60;
|
|
|
|
|
|
pointer-events: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.hub-dim {
|
|
|
|
|
|
pointer-events: auto;
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
inset: 0;
|
|
|
|
|
|
border: 0;
|
|
|
|
|
|
padding: 0;
|
|
|
|
|
|
background: rgba(15, 23, 42, 0.28);
|
|
|
|
|
|
cursor: default;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.hub-layer :deep(.hub) {
|
|
|
|
|
|
pointer-events: auto;
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
top: 42px;
|
|
|
|
|
|
inset-inline-start: var(--hub-offset);
|
|
|
|
|
|
inset-inline-end: auto;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-01 15:21:54 +03:30
|
|
|
|
.nav-badge {
|
|
|
|
|
|
margin-inline-start: auto;
|
|
|
|
|
|
min-width: 1.35rem;
|
|
|
|
|
|
height: 1.35rem;
|
|
|
|
|
|
border-radius: 999px;
|
2026-09-01 15:39:18 +03:30
|
|
|
|
background: #14b8a6;
|
2026-08-30 10:06:41 +03:30
|
|
|
|
color: #fff;
|
2026-09-01 15:39:18 +03:30
|
|
|
|
font-size: 0.7rem;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
display: grid;
|
|
|
|
|
|
place-items: center;
|
2026-09-01 15:39:18 +03:30
|
|
|
|
padding: 0 0.3rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.nav-item.router-link-active .nav-badge {
|
2026-09-01 16:05:29 +03:30
|
|
|
|
background: #14b8a6;
|
|
|
|
|
|
color: #fff;
|
2026-08-30 10:06:41 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-11 14:47:01 +03:30
|
|
|
|
.nav-fold {
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
gap: 0.15rem;
|
2026-08-30 10:06:41 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-11 14:47:01 +03:30
|
|
|
|
.nav-fold-btn {
|
2026-08-30 10:06:41 +03:30
|
|
|
|
width: 100%;
|
|
|
|
|
|
border: 0;
|
|
|
|
|
|
background: transparent;
|
|
|
|
|
|
cursor: pointer;
|
2026-09-11 14:47:01 +03:30
|
|
|
|
font: inherit;
|
2026-08-30 10:06:41 +03:30
|
|
|
|
text-align: right;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-11 14:47:01 +03:30
|
|
|
|
.nav-fold-btn .chev {
|
|
|
|
|
|
margin-inline-start: auto;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.nav-sep {
|
|
|
|
|
|
height: 1px;
|
2026-09-28 17:35:03 +03:30
|
|
|
|
margin: 0.35rem 0.85rem;
|
2026-09-11 14:47:01 +03:30
|
|
|
|
background: #e8eef4;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.nav-utility {
|
|
|
|
|
|
display: grid;
|
2026-09-28 17:35:03 +03:30
|
|
|
|
gap: 0.2rem;
|
|
|
|
|
|
align-content: start;
|
2026-09-11 14:47:01 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-08-30 10:06:41 +03:30
|
|
|
|
.chev {
|
2026-09-01 15:39:18 +03:30
|
|
|
|
width: 0.42rem;
|
|
|
|
|
|
height: 0.42rem;
|
|
|
|
|
|
border-right: 1.6px solid currentColor;
|
|
|
|
|
|
border-bottom: 1.6px solid currentColor;
|
2026-09-11 17:37:24 +03:30
|
|
|
|
transform: rotate(135deg);
|
2026-08-30 10:06:41 +03:30
|
|
|
|
transition: transform 0.15s ease;
|
2026-09-11 14:47:01 +03:30
|
|
|
|
flex-shrink: 0;
|
2026-08-30 10:06:41 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-11 17:37:24 +03:30
|
|
|
|
.nav-fold-btn.hub-on .chev {
|
|
|
|
|
|
transform: rotate(-45deg);
|
2026-08-30 10:06:41 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.nav-sub {
|
2026-09-02 16:06:17 +03:30
|
|
|
|
margin-inline-end: 0.55rem;
|
|
|
|
|
|
padding-inline-end: 0.25rem;
|
2026-09-01 15:39:18 +03:30
|
|
|
|
border-inline-end: 1px solid #eef2f7;
|
2026-08-30 10:06:41 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.nav-sub a {
|
2026-09-01 15:39:18 +03:30
|
|
|
|
display: block;
|
2026-09-02 16:06:17 +03:30
|
|
|
|
padding: 0.58rem 0.9rem;
|
|
|
|
|
|
border-radius: 14px;
|
2026-09-01 15:39:18 +03:30
|
|
|
|
color: #64748b;
|
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
font-size: 0.88rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.nav-sub a.router-link-active {
|
|
|
|
|
|
background: #ecfdf8;
|
|
|
|
|
|
color: #0f766e;
|
|
|
|
|
|
font-weight: 700;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.scope-banner {
|
|
|
|
|
|
margin: 0;
|
|
|
|
|
|
padding: 0.55rem 0.75rem;
|
2026-09-01 15:39:18 +03:30
|
|
|
|
border-radius: 12px;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
background: #f8fafc;
|
2026-09-01 15:39:18 +03:30
|
|
|
|
color: #94a3b8;
|
|
|
|
|
|
font-size: 0.75rem;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-11-02 15:44:36 +03:30
|
|
|
|
.storage-banner {
|
|
|
|
|
|
margin: 0 0 0.75rem;
|
|
|
|
|
|
padding: 0.7rem 0.9rem;
|
|
|
|
|
|
border-radius: 12px;
|
|
|
|
|
|
font-size: 0.88rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.storage-banner.warn {
|
|
|
|
|
|
background: #fff7ed;
|
|
|
|
|
|
color: #9a3412;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.storage-banner.full {
|
|
|
|
|
|
background: #fef2f2;
|
|
|
|
|
|
color: #991b1b;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-08-29 21:06:30 +03:30
|
|
|
|
.sidebar-foot {
|
|
|
|
|
|
margin-top: auto;
|
|
|
|
|
|
display: grid;
|
2026-09-02 16:06:17 +03:30
|
|
|
|
gap: 0.85rem;
|
2026-08-30 10:28:38 +03:30
|
|
|
|
flex-shrink: 0;
|
2026-11-02 19:43:47 +03:30
|
|
|
|
min-width: 0;
|
2026-09-02 16:06:17 +03:30
|
|
|
|
padding-top: 0.35rem;
|
2026-08-30 10:28:38 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-15 21:37:58 +03:30
|
|
|
|
.foot-actions {
|
2026-09-28 17:35:03 +03:30
|
|
|
|
display: grid;
|
|
|
|
|
|
gap: 0.55rem;
|
2026-11-02 19:43:47 +03:30
|
|
|
|
min-width: 0;
|
2026-09-28 17:35:03 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-10-15 10:48:30 +03:30
|
|
|
|
.prior-switch {
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
grid-template-columns: 1fr 1fr;
|
|
|
|
|
|
gap: 0.3rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.prior-switch button {
|
|
|
|
|
|
border: 1px solid #e2e8f0;
|
|
|
|
|
|
background: #fff;
|
|
|
|
|
|
color: #475569;
|
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
|
padding: 0.35rem 0.3rem;
|
|
|
|
|
|
font: inherit;
|
|
|
|
|
|
font-size: 0.68rem;
|
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.prior-switch button.on {
|
|
|
|
|
|
background: #f0fdfa;
|
|
|
|
|
|
border-color: #99f6e4;
|
|
|
|
|
|
color: #0f766e;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.prior-switch button:disabled {
|
|
|
|
|
|
opacity: 0.6;
|
|
|
|
|
|
cursor: wait;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-28 17:35:03 +03:30
|
|
|
|
.foot-meta {
|
2026-09-15 21:37:58 +03:30
|
|
|
|
display: grid;
|
|
|
|
|
|
gap: 0.15rem;
|
2026-11-02 19:43:47 +03:30
|
|
|
|
min-width: 0;
|
|
|
|
|
|
max-width: 100%;
|
2026-09-15 21:37:58 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-01 15:21:54 +03:30
|
|
|
|
.profile-card {
|
|
|
|
|
|
display: flex;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
flex-direction: column;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
align-items: center;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
gap: 0.22rem;
|
|
|
|
|
|
padding: 0.15rem 0.2rem;
|
|
|
|
|
|
border-radius: 12px;
|
|
|
|
|
|
background: transparent;
|
2026-09-02 21:29:00 +03:30
|
|
|
|
color: inherit;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
text-decoration: none;
|
2026-09-11 14:47:01 +03:30
|
|
|
|
flex: 1 1 0;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
min-width: 0;
|
|
|
|
|
|
max-width: 4.8rem;
|
2026-09-02 21:29:00 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-28 17:35:03 +03:30
|
|
|
|
.profile-foot {
|
|
|
|
|
|
display: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-02 21:29:00 +03:30
|
|
|
|
.profile-card:hover {
|
|
|
|
|
|
background: #f0fdfa;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.profile-card.router-link-active {
|
|
|
|
|
|
background: #ecfdf5;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-09 17:51:40 +03:30
|
|
|
|
.avatar-wrap {
|
2026-09-02 21:29:00 +03:30
|
|
|
|
position: relative;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
width: 36px;
|
|
|
|
|
|
height: 36px;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
flex-shrink: 0;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.avatar {
|
|
|
|
|
|
width: 36px;
|
|
|
|
|
|
height: 36px;
|
|
|
|
|
|
border-radius: 999px;
|
2026-09-02 21:29:00 +03:30
|
|
|
|
overflow: hidden;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
box-shadow: 0 3px 8px rgba(15, 23, 42, 0.1);
|
|
|
|
|
|
display: block;
|
2026-09-02 21:29:00 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.avatar img {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
object-fit: cover;
|
|
|
|
|
|
display: block;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.profile-meta {
|
|
|
|
|
|
min-width: 0;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
width: 100%;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
display: grid;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
text-align: center;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.profile-meta strong {
|
2026-09-09 17:51:40 +03:30
|
|
|
|
font-size: 0.78rem;
|
|
|
|
|
|
font-weight: 800;
|
|
|
|
|
|
line-height: 1.25;
|
2026-08-30 10:16:03 +03:30
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-01 15:21:54 +03:30
|
|
|
|
.online-dot {
|
2026-09-09 17:51:40 +03:30
|
|
|
|
position: absolute;
|
|
|
|
|
|
bottom: 0;
|
|
|
|
|
|
inset-inline-start: 0;
|
|
|
|
|
|
width: 10px;
|
|
|
|
|
|
height: 10px;
|
2026-08-30 10:16:03 +03:30
|
|
|
|
border-radius: 999px;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
background: #22c55e;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
border: 2px solid #fff;
|
|
|
|
|
|
box-sizing: border-box;
|
2026-09-01 15:39:18 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.logout-link {
|
2026-09-09 17:51:40 +03:30
|
|
|
|
display: inline-flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 0.4rem;
|
2026-09-01 15:39:18 +03:30
|
|
|
|
border: 0;
|
|
|
|
|
|
background: transparent;
|
|
|
|
|
|
color: #94a3b8;
|
|
|
|
|
|
font: inherit;
|
2026-09-02 16:06:17 +03:30
|
|
|
|
font-size: 0.78rem;
|
2026-09-01 15:39:18 +03:30
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
text-align: right;
|
2026-09-02 16:06:17 +03:30
|
|
|
|
padding: 0 0.45rem 0.15rem;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-09 17:51:40 +03:30
|
|
|
|
.collapse-btn {
|
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: center;
|
2026-09-28 17:35:03 +03:30
|
|
|
|
width: 22px;
|
|
|
|
|
|
height: 22px;
|
|
|
|
|
|
min-height: 0;
|
|
|
|
|
|
padding: 0;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
border: 1px solid #e2e8f0;
|
|
|
|
|
|
background: #fff;
|
2026-09-28 17:35:03 +03:30
|
|
|
|
color: #94a3b8;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
font: inherit;
|
|
|
|
|
|
cursor: pointer;
|
2026-09-28 17:35:03 +03:30
|
|
|
|
border-radius: 999px;
|
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
|
|
|
|
|
|
transition:
|
|
|
|
|
|
background 0.15s ease,
|
|
|
|
|
|
color 0.15s ease,
|
|
|
|
|
|
border-color 0.15s ease,
|
|
|
|
|
|
box-shadow 0.15s ease;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.collapse-btn:hover {
|
|
|
|
|
|
background: #f8fafc;
|
|
|
|
|
|
color: #0f172a;
|
|
|
|
|
|
border-color: #cbd5e1;
|
|
|
|
|
|
box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
|
2026-09-09 17:51:40 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.collapse-btn :deep(.ico) {
|
2026-09-28 17:35:03 +03:30
|
|
|
|
width: 12px;
|
|
|
|
|
|
height: 12px;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
transition: transform 0.15s ease;
|
|
|
|
|
|
transform: scaleX(-1);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.more-btn {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
border: 0;
|
|
|
|
|
|
background: transparent;
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
font: inherit;
|
|
|
|
|
|
color: inherit;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.more-flyout {
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
top: 4.6rem;
|
|
|
|
|
|
inset-inline-start: calc(100% + 8px);
|
|
|
|
|
|
inset-inline-end: auto;
|
|
|
|
|
|
width: 13.5rem;
|
|
|
|
|
|
max-height: min(70vh, 28rem);
|
|
|
|
|
|
overflow: auto;
|
|
|
|
|
|
background: #fff;
|
|
|
|
|
|
border: 1px solid #e8eef3;
|
|
|
|
|
|
border-radius: 16px;
|
|
|
|
|
|
box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
|
|
|
|
|
|
padding: 0.55rem;
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
gap: 0.15rem;
|
|
|
|
|
|
z-index: 40;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.more-flyout p {
|
|
|
|
|
|
margin: 0.35rem 0 0.15rem;
|
|
|
|
|
|
padding: 0 0.55rem;
|
|
|
|
|
|
color: #94a3b8;
|
|
|
|
|
|
font-size: 0.72rem;
|
|
|
|
|
|
font-weight: 800;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.more-flyout p:first-child {
|
|
|
|
|
|
margin-top: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.more-flyout a {
|
|
|
|
|
|
display: block;
|
|
|
|
|
|
padding: 0.48rem 0.55rem;
|
|
|
|
|
|
border-radius: 10px;
|
|
|
|
|
|
color: #334155;
|
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
font-size: 0.84rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.more-flyout a.router-link-active {
|
|
|
|
|
|
background: #ecfdf8;
|
|
|
|
|
|
color: #0f766e;
|
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@media (min-width: 901px) {
|
2026-09-28 17:35:03 +03:30
|
|
|
|
.sidebar:not(.collapsed) .profile-brand {
|
|
|
|
|
|
display: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar:not(.collapsed) .brand-cluster {
|
|
|
|
|
|
gap: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar:not(.collapsed) .profile-foot {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: row;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 0.65rem;
|
|
|
|
|
|
max-width: none;
|
|
|
|
|
|
flex: 1 1 auto;
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
padding: 0.45rem 0.55rem;
|
|
|
|
|
|
border-radius: 14px;
|
|
|
|
|
|
background: #f8fafc;
|
|
|
|
|
|
border: 1px solid #eef2f7;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar:not(.collapsed) .profile-foot:hover {
|
|
|
|
|
|
background: #f0fdfa;
|
|
|
|
|
|
border-color: #ccfbf1;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar:not(.collapsed) .profile-foot .profile-meta {
|
|
|
|
|
|
text-align: start;
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
min-width: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar:not(.collapsed) .profile-foot .profile-meta strong {
|
|
|
|
|
|
font-size: 0.84rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar:not(.collapsed) .foot-meta {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
2026-11-02 19:43:47 +03:30
|
|
|
|
gap: 0.35rem;
|
|
|
|
|
|
min-width: 0;
|
|
|
|
|
|
max-width: 100%;
|
2026-09-28 17:35:03 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-11-02 19:43:47 +03:30
|
|
|
|
.sidebar:not(.collapsed) .foot-meta :deep(.org-switch),
|
|
|
|
|
|
.sidebar:not(.collapsed) .foot-meta :deep(.org-btn) {
|
|
|
|
|
|
flex: 1 1 auto;
|
2026-09-28 17:35:03 +03:30
|
|
|
|
min-width: 0;
|
2026-11-02 19:43:47 +03:30
|
|
|
|
max-width: 100%;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar:not(.collapsed) .foot-meta :deep(.org-btn) {
|
|
|
|
|
|
align-items: flex-start;
|
|
|
|
|
|
height: auto;
|
|
|
|
|
|
padding: 0.2rem 0.15rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar:not(.collapsed) .foot-meta :deep(.org-btn span) {
|
|
|
|
|
|
white-space: normal;
|
|
|
|
|
|
overflow: visible;
|
|
|
|
|
|
text-overflow: unset;
|
|
|
|
|
|
line-height: 1.35;
|
|
|
|
|
|
overflow-wrap: anywhere;
|
2026-09-28 17:35:03 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar:not(.collapsed) .logout-link {
|
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
width: 36px;
|
|
|
|
|
|
height: 36px;
|
|
|
|
|
|
padding: 0;
|
|
|
|
|
|
border-radius: 12px;
|
|
|
|
|
|
background: #fff;
|
|
|
|
|
|
border: 1px solid #e2e8f0;
|
|
|
|
|
|
color: #64748b;
|
|
|
|
|
|
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
|
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
transition:
|
|
|
|
|
|
background 0.15s ease,
|
|
|
|
|
|
color 0.15s ease,
|
|
|
|
|
|
border-color 0.15s ease,
|
|
|
|
|
|
box-shadow 0.15s ease;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar:not(.collapsed) .logout-link:hover {
|
|
|
|
|
|
background: #fef2f2;
|
|
|
|
|
|
border-color: #fecaca;
|
|
|
|
|
|
color: #dc2626;
|
|
|
|
|
|
box-shadow: 0 4px 12px rgba(220, 38, 38, 0.12);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar:not(.collapsed) .logout-link span {
|
|
|
|
|
|
display: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-09 17:51:40 +03:30
|
|
|
|
.shell.collapsed {
|
2026-09-11 17:37:24 +03:30
|
|
|
|
--hub-offset: 72px;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
grid-template-columns: 80px minmax(0, 1fr);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar.collapsed {
|
|
|
|
|
|
width: 64px;
|
|
|
|
|
|
margin-inline: 8px;
|
|
|
|
|
|
padding: 0;
|
|
|
|
|
|
gap: 0;
|
|
|
|
|
|
align-items: flex-start;
|
|
|
|
|
|
overflow: visible;
|
|
|
|
|
|
background: transparent;
|
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
|
z-index: 24;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar.collapsed .brand-row {
|
|
|
|
|
|
width: max-content;
|
|
|
|
|
|
max-width: none;
|
2026-09-10 23:45:11 +03:30
|
|
|
|
height: var(--control-h);
|
|
|
|
|
|
min-height: var(--control-h);
|
2026-09-09 17:51:40 +03:30
|
|
|
|
box-sizing: border-box;
|
2026-09-10 23:45:11 +03:30
|
|
|
|
overflow: hidden;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
align-self: flex-start;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: flex-start;
|
|
|
|
|
|
z-index: 3;
|
2026-09-10 23:45:11 +03:30
|
|
|
|
padding: 0 0.5rem;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
background: #fff;
|
2026-09-10 23:45:11 +03:30
|
|
|
|
border-radius: var(--radius);
|
2026-09-09 17:51:40 +03:30
|
|
|
|
box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar.collapsed .brand-cluster {
|
|
|
|
|
|
flex: 0 0 auto;
|
|
|
|
|
|
width: max-content;
|
|
|
|
|
|
flex-direction: row;
|
|
|
|
|
|
align-items: center;
|
2026-09-10 23:45:11 +03:30
|
|
|
|
gap: 0.55rem;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar.collapsed .sidebar-logo,
|
|
|
|
|
|
.sidebar.collapsed .brand-cluster :deep(.brand-logo) {
|
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar.collapsed .brand-cluster :deep(.mark) {
|
2026-09-28 17:35:03 +03:30
|
|
|
|
width: 34px !important;
|
|
|
|
|
|
height: 34px !important;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar.collapsed .brand-cluster :deep(.text strong) {
|
2026-09-28 17:35:03 +03:30
|
|
|
|
font-size: 1rem;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
line-height: 1.05;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar.collapsed .brand-cluster :deep(.text small) {
|
2026-09-28 17:35:03 +03:30
|
|
|
|
font-size: 0.7rem;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
line-height: 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar.collapsed .profile-card {
|
2026-09-10 23:45:11 +03:30
|
|
|
|
flex-direction: row;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
align-items: center;
|
2026-09-10 23:45:11 +03:30
|
|
|
|
max-width: none;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
flex: 0 0 auto;
|
2026-09-10 23:45:11 +03:30
|
|
|
|
gap: 0;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
padding: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar.collapsed .profile-meta {
|
2026-09-10 23:45:11 +03:30
|
|
|
|
display: none;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar.collapsed .avatar-wrap,
|
|
|
|
|
|
.sidebar.collapsed .avatar {
|
|
|
|
|
|
width: 28px;
|
|
|
|
|
|
height: 28px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar.collapsed .online-dot {
|
|
|
|
|
|
width: 8px;
|
|
|
|
|
|
height: 8px;
|
|
|
|
|
|
border-width: 1.5px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.shell.collapsed .desktop-topbar {
|
|
|
|
|
|
padding-inline-start: 8rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.shell.collapsed .global-search {
|
|
|
|
|
|
margin-inline-start: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar.collapsed .rail-stem {
|
|
|
|
|
|
width: 64px;
|
|
|
|
|
|
align-self: flex-start;
|
|
|
|
|
|
flex: 1 1 0;
|
|
|
|
|
|
min-height: 0;
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
margin-top: 8px;
|
|
|
|
|
|
padding: 0.7rem 0.2rem 0.3rem;
|
|
|
|
|
|
background: #fff;
|
|
|
|
|
|
border-radius: 16px;
|
|
|
|
|
|
box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
|
|
|
|
|
|
gap: 0.1rem;
|
|
|
|
|
|
z-index: 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar.collapsed .side-nav {
|
|
|
|
|
|
overflow-x: hidden;
|
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
|
min-height: 0;
|
|
|
|
|
|
flex: 1 1 0;
|
|
|
|
|
|
gap: 0.08rem;
|
|
|
|
|
|
padding-inline: 0;
|
|
|
|
|
|
scrollbar-width: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar.collapsed .nav-primary,
|
2026-09-11 14:47:01 +03:30
|
|
|
|
.sidebar.collapsed .nav-utility {
|
2026-09-09 17:51:40 +03:30
|
|
|
|
display: grid;
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
gap: 0.08rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-11 14:47:01 +03:30
|
|
|
|
.sidebar.collapsed .nav-sep {
|
|
|
|
|
|
margin: 0.25rem 0.55rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar.collapsed .nav-fold {
|
|
|
|
|
|
gap: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar.collapsed .nav-sub,
|
|
|
|
|
|
.sidebar.collapsed .nav-fold-btn .chev {
|
|
|
|
|
|
display: none;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar.collapsed .nav-item {
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
place-items: center;
|
|
|
|
|
|
flex-shrink: 0;
|
2026-09-10 23:45:11 +03:30
|
|
|
|
min-height: var(--control-h);
|
|
|
|
|
|
height: var(--control-h);
|
2026-09-09 17:51:40 +03:30
|
|
|
|
padding: 0;
|
2026-09-10 23:45:11 +03:30
|
|
|
|
border-radius: var(--radius);
|
2026-09-09 17:51:40 +03:30
|
|
|
|
position: relative;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar.collapsed .nav-item :deep(.ico) {
|
|
|
|
|
|
width: 20px;
|
|
|
|
|
|
height: 20px;
|
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar.collapsed .nav-item > span:not(.nav-badge) {
|
|
|
|
|
|
display: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar.collapsed .nav-item.router-link-active {
|
|
|
|
|
|
background: #d8faf3;
|
|
|
|
|
|
color: #0f766e;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar.collapsed .nav-badge {
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
top: 0.18rem;
|
|
|
|
|
|
inset-inline-end: 0.1rem;
|
|
|
|
|
|
margin: 0;
|
|
|
|
|
|
min-width: 0.95rem;
|
|
|
|
|
|
height: 0.95rem;
|
|
|
|
|
|
font-size: 0.58rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar.collapsed .scope-banner {
|
|
|
|
|
|
display: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar.collapsed .sidebar-foot {
|
|
|
|
|
|
margin-top: 0.15rem;
|
|
|
|
|
|
padding-top: 0;
|
|
|
|
|
|
gap: 0.1rem;
|
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-10-15 10:48:30 +03:30
|
|
|
|
.sidebar.collapsed .prior-switch {
|
|
|
|
|
|
display: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-09 17:51:40 +03:30
|
|
|
|
.sidebar.collapsed .logout-link {
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
place-items: center;
|
|
|
|
|
|
width: 100%;
|
2026-09-10 23:45:11 +03:30
|
|
|
|
min-height: var(--control-h);
|
2026-09-09 17:51:40 +03:30
|
|
|
|
padding: 0;
|
2026-09-10 23:45:11 +03:30
|
|
|
|
border-radius: var(--radius);
|
2026-09-09 17:51:40 +03:30
|
|
|
|
color: #94a3b8;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar.collapsed .logout-link:hover {
|
|
|
|
|
|
background: #f8fafc;
|
|
|
|
|
|
color: #0f172a;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar.collapsed .logout-link span {
|
|
|
|
|
|
display: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar.collapsed .collapse-btn {
|
2026-09-28 17:35:03 +03:30
|
|
|
|
width: 20px;
|
|
|
|
|
|
height: 20px;
|
|
|
|
|
|
margin-inline-start: 0.15rem;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar.collapsed .collapse-btn :deep(.ico) {
|
|
|
|
|
|
transform: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-01 15:21:54 +03:30
|
|
|
|
.global-search {
|
2026-09-02 16:06:17 +03:30
|
|
|
|
width: min(100%, 420px);
|
|
|
|
|
|
max-width: 420px;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
min-width: 0;
|
2026-09-02 16:06:17 +03:30
|
|
|
|
justify-self: start;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
margin: 0;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
2026-09-01 15:39:18 +03:30
|
|
|
|
gap: 0.7rem;
|
2026-09-02 16:06:17 +03:30
|
|
|
|
background: #fff;
|
2026-09-10 01:22:24 +03:30
|
|
|
|
border-radius: var(--radius);
|
|
|
|
|
|
min-height: var(--control-h);
|
|
|
|
|
|
padding: 0 0.95rem;
|
2026-09-01 15:39:18 +03:30
|
|
|
|
border: 1px solid transparent;
|
2026-09-02 16:06:17 +03:30
|
|
|
|
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
|
2026-09-09 17:51:40 +03:30
|
|
|
|
box-sizing: border-box;
|
2026-09-01 15:39:18 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-01 16:28:45 +03:30
|
|
|
|
.desktop-topbar {
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
grid-template-columns: minmax(0, 1fr) auto;
|
2026-09-10 23:45:11 +03:30
|
|
|
|
align-items: center;
|
2026-10-18 19:39:59 +03:30
|
|
|
|
gap: 16px;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
min-width: 0;
|
2026-10-18 19:39:59 +03:30
|
|
|
|
/* همتراز با پدینگ ۱۶px محتوای workspace */
|
|
|
|
|
|
padding: 16px;
|
2026-09-01 16:28:45 +03:30
|
|
|
|
position: sticky;
|
|
|
|
|
|
top: 0;
|
|
|
|
|
|
z-index: 20;
|
2026-09-10 01:22:24 +03:30
|
|
|
|
background: color-mix(in srgb, var(--bg) 92%, transparent);
|
2026-09-01 16:28:45 +03:30
|
|
|
|
backdrop-filter: blur(10px);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-02 16:06:17 +03:30
|
|
|
|
.topbar-actions {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 0.5rem;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
flex-shrink: 0;
|
2026-09-02 16:06:17 +03:30
|
|
|
|
/* مرکز عمودی نسبت به ارتفاع جستجو (~49px) */
|
2026-09-10 01:22:24 +03:30
|
|
|
|
min-height: var(--control-h);
|
2026-09-02 16:06:17 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-01 15:39:18 +03:30
|
|
|
|
.global-search:focus-within {
|
|
|
|
|
|
background: #fff;
|
2026-09-02 16:06:17 +03:30
|
|
|
|
border-color: #e2e8f0;
|
|
|
|
|
|
box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
|
2026-09-01 15:21:54 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.global-search input {
|
|
|
|
|
|
border: 0;
|
|
|
|
|
|
background: transparent;
|
|
|
|
|
|
width: 100%;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
min-width: 0;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
outline: none;
|
2026-09-01 15:39:18 +03:30
|
|
|
|
font-size: 0.92rem;
|
|
|
|
|
|
color: #0f172a;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-01 15:39:18 +03:30
|
|
|
|
.global-search input::placeholder {
|
|
|
|
|
|
color: #94a3b8;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.search-leading {
|
|
|
|
|
|
color: #94a3b8;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.round-btn {
|
2026-09-01 15:21:54 +03:30
|
|
|
|
position: relative;
|
2026-09-10 23:45:11 +03:30
|
|
|
|
width: var(--control-h);
|
|
|
|
|
|
height: var(--control-h);
|
|
|
|
|
|
border-radius: var(--radius);
|
2026-09-01 15:39:18 +03:30
|
|
|
|
border: 0;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
background: #fff;
|
2026-09-01 15:39:18 +03:30
|
|
|
|
color: #64748b;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
display: grid;
|
|
|
|
|
|
place-items: center;
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
text-decoration: none;
|
2026-09-01 15:39:18 +03:30
|
|
|
|
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.round-btn.accent {
|
|
|
|
|
|
color: #14b8a6;
|
|
|
|
|
|
background: #ecfdf8;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.round-btn.sm {
|
|
|
|
|
|
width: 34px;
|
|
|
|
|
|
height: 34px;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-20 11:24:14 +03:30
|
|
|
|
.sub-chip {
|
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 0.35rem;
|
|
|
|
|
|
padding: 0.35rem 0.7rem;
|
|
|
|
|
|
border-radius: 999px;
|
|
|
|
|
|
background: var(--accent-subtle);
|
|
|
|
|
|
color: var(--accent-deep);
|
|
|
|
|
|
font-size: 0.78rem;
|
|
|
|
|
|
font-weight: 800;
|
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sub-chip.warn {
|
|
|
|
|
|
background: color-mix(in srgb, var(--danger) 12%, white);
|
|
|
|
|
|
color: var(--danger);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-01 15:21:54 +03:30
|
|
|
|
.date-chip {
|
2026-09-01 15:39:18 +03:30
|
|
|
|
display: inline-flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 0.45rem;
|
2026-09-10 23:45:11 +03:30
|
|
|
|
height: var(--control-h);
|
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
padding: 0 0.75rem;
|
|
|
|
|
|
border-radius: var(--radius);
|
2026-09-01 15:21:54 +03:30
|
|
|
|
background: #fff;
|
2026-09-01 15:39:18 +03:30
|
|
|
|
color: #64748b;
|
|
|
|
|
|
font-size: 0.84rem;
|
|
|
|
|
|
font-weight: 600;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
white-space: nowrap;
|
2026-09-01 15:39:18 +03:30
|
|
|
|
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
|
2026-08-29 21:06:30 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.badge {
|
2026-09-01 15:21:54 +03:30
|
|
|
|
position: absolute;
|
2026-09-01 15:39:18 +03:30
|
|
|
|
top: -2px;
|
|
|
|
|
|
inset-inline-start: -2px;
|
|
|
|
|
|
min-width: 1.05rem;
|
|
|
|
|
|
height: 1.05rem;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
border-radius: 999px;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
background: #ef4444;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
color: #fff;
|
2026-09-01 15:39:18 +03:30
|
|
|
|
font-size: 0.65rem;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
display: grid;
|
|
|
|
|
|
place-items: center;
|
2026-09-01 15:39:18 +03:30
|
|
|
|
padding: 0 0.22rem;
|
|
|
|
|
|
border: 2px solid #fff;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.notif-layer {
|
|
|
|
|
|
position: fixed;
|
|
|
|
|
|
inset: 0;
|
|
|
|
|
|
z-index: 40;
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
place-items: start end;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
padding: 5rem 1rem 1rem;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
pointer-events: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.notif-backdrop {
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
inset: 0;
|
2026-09-01 15:39:18 +03:30
|
|
|
|
background: rgba(15, 23, 42, 0.22);
|
2026-08-29 21:06:30 +03:30
|
|
|
|
pointer-events: auto;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.notif-panel {
|
|
|
|
|
|
position: relative;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
width: min(360px, calc(100vw - 2rem));
|
2026-08-29 21:06:30 +03:30
|
|
|
|
max-height: min(70vh, 480px);
|
|
|
|
|
|
overflow: auto;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
background: #fff;
|
2026-09-01 15:39:18 +03:30
|
|
|
|
border: 1px solid #e8eef3;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
border-radius: 18px;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
padding: 0.85rem;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
|
2026-08-29 21:06:30 +03:30
|
|
|
|
pointer-events: auto;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.notif-head {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
margin-bottom: 0.55rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.notif-head-actions {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 0.35rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.linkish {
|
|
|
|
|
|
border: 0;
|
|
|
|
|
|
background: transparent;
|
2026-09-01 15:39:18 +03:30
|
|
|
|
color: #14b8a6;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
font: inherit;
|
|
|
|
|
|
font-size: 0.82rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.notif-list {
|
|
|
|
|
|
list-style: none;
|
|
|
|
|
|
margin: 0;
|
|
|
|
|
|
padding: 0;
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
gap: 0.35rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.notif-list button {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
text-align: right;
|
|
|
|
|
|
border: 0;
|
2026-09-01 15:21:54 +03:30
|
|
|
|
background: #f8fafc;
|
|
|
|
|
|
border-radius: 12px;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
padding: 0.65rem 0.7rem;
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
gap: 0.2rem;
|
|
|
|
|
|
font: inherit;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.notif-list li.unread button {
|
2026-09-01 15:39:18 +03:30
|
|
|
|
background: #ecfdf8;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.title {
|
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
|
font-size: 0.9rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.body,
|
|
|
|
|
|
.time,
|
|
|
|
|
|
.muted {
|
2026-09-01 15:39:18 +03:30
|
|
|
|
color: #94a3b8;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
font-size: 0.8rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.content {
|
2026-10-18 19:39:59 +03:30
|
|
|
|
flex: 1 1 auto;
|
|
|
|
|
|
min-height: 0;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
min-width: 0;
|
2026-10-18 19:39:59 +03:30
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
padding: 16px;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
overflow-x: clip;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-10-18 19:39:59 +03:30
|
|
|
|
/* ریشهٔ RouterView ارتفاع workspace را پر کند */
|
|
|
|
|
|
.content > *:first-child {
|
|
|
|
|
|
flex: 1 1 auto;
|
|
|
|
|
|
min-height: 0;
|
|
|
|
|
|
min-width: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-09 13:12:13 +03:30
|
|
|
|
@media (max-width: 1280px) and (min-width: 901px) {
|
|
|
|
|
|
.content {
|
2026-10-18 19:39:59 +03:30
|
|
|
|
padding: 16px;
|
2026-09-09 13:12:13 +03:30
|
|
|
|
}
|
2026-09-09 17:51:40 +03:30
|
|
|
|
|
|
|
|
|
|
.desktop-topbar {
|
2026-10-18 19:39:59 +03:30
|
|
|
|
padding: 16px;
|
2026-09-09 17:51:40 +03:30
|
|
|
|
}
|
2026-09-09 13:12:13 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-08-29 21:06:30 +03:30
|
|
|
|
.burger {
|
2026-09-01 15:39:18 +03:30
|
|
|
|
width: 16px;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
height: 2px;
|
|
|
|
|
|
background: currentColor;
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
display: block;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.burger::before,
|
|
|
|
|
|
.burger::after {
|
|
|
|
|
|
content: '';
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
inset-inline: 0;
|
|
|
|
|
|
height: 2px;
|
|
|
|
|
|
background: currentColor;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.burger::before {
|
2026-09-01 15:39:18 +03:30
|
|
|
|
top: -5px;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.burger::after {
|
2026-09-01 15:39:18 +03:30
|
|
|
|
top: 5px;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.burger.open {
|
|
|
|
|
|
background: transparent;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.burger.open::before {
|
2026-09-01 15:39:18 +03:30
|
|
|
|
transform: translateY(5px) rotate(45deg);
|
2026-08-29 21:06:30 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.burger.open::after {
|
2026-09-01 15:39:18 +03:30
|
|
|
|
transform: translateY(-5px) rotate(-45deg);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.mobile-topbar {
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
gap: 0.75rem;
|
|
|
|
|
|
padding: 0.75rem 0.9rem;
|
|
|
|
|
|
background: #fff;
|
|
|
|
|
|
border-bottom: 1px solid #e8eef3;
|
|
|
|
|
|
position: sticky;
|
|
|
|
|
|
top: 0;
|
|
|
|
|
|
z-index: 30;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.top-brand {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 0.5rem;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-14 19:19:09 +03:30
|
|
|
|
.top-tools {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 0.45rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.top-avatar {
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
place-items: center;
|
|
|
|
|
|
width: var(--control-h);
|
|
|
|
|
|
height: var(--control-h);
|
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.top-avatar .avatar-wrap,
|
|
|
|
|
|
.top-avatar .avatar {
|
|
|
|
|
|
width: 36px;
|
|
|
|
|
|
height: 36px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.mobile-tabbar,
|
|
|
|
|
|
.more-layer {
|
|
|
|
|
|
display: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-08-29 21:06:30 +03:30
|
|
|
|
@media (max-width: 900px) {
|
|
|
|
|
|
.shell {
|
2026-09-14 19:19:09 +03:30
|
|
|
|
--mobile-tabbar-h: calc(3.65rem + env(safe-area-inset-bottom, 0px));
|
2026-08-29 21:06:30 +03:30
|
|
|
|
grid-template-columns: minmax(0, 1fr);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.desktop-only {
|
|
|
|
|
|
display: none !important;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.mobile-only {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sidebar {
|
2026-09-14 19:19:09 +03:30
|
|
|
|
display: none;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2026-09-11 17:37:24 +03:30
|
|
|
|
.hub-layer {
|
|
|
|
|
|
z-index: 80;
|
2026-09-14 19:19:09 +03:30
|
|
|
|
bottom: var(--mobile-tabbar-h);
|
2026-09-11 17:37:24 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.hub-layer :deep(.hub) {
|
|
|
|
|
|
top: auto;
|
|
|
|
|
|
bottom: 0;
|
|
|
|
|
|
inset-inline: 0;
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
margin: 0;
|
2026-09-14 19:19:09 +03:30
|
|
|
|
padding-bottom: 0.9rem;
|
|
|
|
|
|
max-height: min(86dvh, calc(100dvh - var(--mobile-tabbar-h) - 2rem));
|
2026-09-11 17:37:24 +03:30
|
|
|
|
animation: hub-sheet-up 0.28s ease;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@keyframes hub-sheet-up {
|
|
|
|
|
|
from {
|
|
|
|
|
|
transform: translateY(100%);
|
|
|
|
|
|
}
|
|
|
|
|
|
to {
|
|
|
|
|
|
transform: translateY(0);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-08-29 21:06:30 +03:30
|
|
|
|
.content {
|
2026-10-18 19:39:59 +03:30
|
|
|
|
padding: 16px 16px calc(16px + var(--mobile-tabbar-h));
|
2026-08-29 21:06:30 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.notif-layer {
|
2026-09-14 19:19:09 +03:30
|
|
|
|
padding: 4.25rem 0.65rem calc(1rem + var(--mobile-tabbar-h));
|
2026-08-29 21:06:30 +03:30
|
|
|
|
place-items: start stretch;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.notif-panel {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
}
|
2026-09-14 19:19:09 +03:30
|
|
|
|
|
|
|
|
|
|
.mobile-tabbar {
|
|
|
|
|
|
position: fixed;
|
|
|
|
|
|
inset-inline: 0;
|
|
|
|
|
|
bottom: 0;
|
|
|
|
|
|
z-index: 45;
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
grid-template-columns: repeat(5, minmax(0, 1fr));
|
|
|
|
|
|
align-items: stretch;
|
|
|
|
|
|
height: var(--mobile-tabbar-h);
|
|
|
|
|
|
min-height: var(--mobile-tabbar-h);
|
|
|
|
|
|
padding: 0.28rem 0.2rem calc(0.28rem + env(safe-area-inset-bottom, 0px));
|
|
|
|
|
|
background: #fff;
|
|
|
|
|
|
border-top: 1px solid #e8eef3;
|
|
|
|
|
|
box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.06);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.tab {
|
|
|
|
|
|
appearance: none;
|
|
|
|
|
|
border: 0;
|
|
|
|
|
|
background: transparent;
|
|
|
|
|
|
color: #334155;
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
justify-items: center;
|
|
|
|
|
|
align-content: center;
|
|
|
|
|
|
gap: 0.12rem;
|
|
|
|
|
|
min-width: 0;
|
|
|
|
|
|
margin: 0.12rem;
|
|
|
|
|
|
padding: 0.28rem 0.1rem;
|
|
|
|
|
|
border-radius: 14px;
|
|
|
|
|
|
font: inherit;
|
|
|
|
|
|
font-size: 0.68rem;
|
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
line-height: 1.15;
|
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
-webkit-tap-highlight-color: transparent;
|
|
|
|
|
|
transition: background 0.15s ease, color 0.15s ease;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.tab > span:not(.tab-ico) {
|
|
|
|
|
|
max-width: 100%;
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.tab:hover {
|
|
|
|
|
|
background: #f8fafc;
|
|
|
|
|
|
color: #0f172a;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.tab:active,
|
|
|
|
|
|
.tab.on {
|
|
|
|
|
|
background: #d8faf3;
|
|
|
|
|
|
color: #0f766e;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.tab:active :deep(.ico),
|
|
|
|
|
|
.tab.on :deep(.ico) {
|
|
|
|
|
|
color: #0f766e;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.tab-ico {
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
place-items: center;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.tab-badge {
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
top: -0.35rem;
|
|
|
|
|
|
inset-inline-start: 0.85rem;
|
|
|
|
|
|
min-width: 1rem;
|
|
|
|
|
|
height: 1rem;
|
|
|
|
|
|
padding: 0 0.2rem;
|
|
|
|
|
|
border-radius: 999px;
|
|
|
|
|
|
background: #14b8a6;
|
|
|
|
|
|
color: #fff;
|
|
|
|
|
|
font-size: 0.62rem;
|
|
|
|
|
|
font-weight: 800;
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
place-items: center;
|
|
|
|
|
|
border: 2px solid #fff;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.more-layer {
|
|
|
|
|
|
position: fixed;
|
|
|
|
|
|
inset: 0 0 var(--mobile-tabbar-h) 0;
|
|
|
|
|
|
z-index: 40;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
background: #fff;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.more-head {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
gap: 0.75rem;
|
|
|
|
|
|
padding: calc(0.75rem + env(safe-area-inset-top, 0px)) 1rem 0.85rem;
|
|
|
|
|
|
background: #fff;
|
|
|
|
|
|
border-bottom: 1px solid #e8eef3;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.more-head h2 {
|
|
|
|
|
|
margin: 0;
|
|
|
|
|
|
font-size: 1.05rem;
|
|
|
|
|
|
font-weight: 800;
|
|
|
|
|
|
color: #0f172a;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.more-body {
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
overflow: auto;
|
|
|
|
|
|
display: grid;
|
|
|
|
|
|
align-content: start;
|
|
|
|
|
|
gap: 0.35rem;
|
|
|
|
|
|
padding: 0.45rem 0.55rem 0.5rem;
|
|
|
|
|
|
-webkit-tap-highlight-color: transparent;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.more-body .nav-item:active {
|
|
|
|
|
|
background: #d8faf3;
|
|
|
|
|
|
color: #0f766e;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.more-logout {
|
|
|
|
|
|
justify-self: start;
|
|
|
|
|
|
margin: 0.15rem 0.85rem 0.85rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
|
body.mobile-nav-overlay .qc {
|
|
|
|
|
|
display: none;
|
2026-08-29 21:06:30 +03:30
|
|
|
|
}
|
|
|
|
|
|
</style>
|