feat: cache delete + empty snapshot + route page

This commit is contained in:
2026-04-28 03:50:29 +03:00
parent 248eea6f85
commit 60c6840db4
21 changed files with 770 additions and 361 deletions

View File

@@ -1,4 +1,4 @@
import { authStore } from "@shared";
import { authStore, snapshotStore } from "@shared";
import {
Power,
LucideIcon,
@@ -12,7 +12,9 @@ import {
Split,
PersonStanding,
Cpu,
RefreshCcw,
} from "lucide-react";
import { toast } from "react-toastify";
import carrierIcon from "./carrier.svg";
@@ -165,6 +167,15 @@ export const NAVIGATION_ITEMS: {
},
],
secondary: [
{
id: "clear-cache",
label: "Очистить кэш",
icon: RefreshCcw,
onClick: () => {
snapshotStore.clearStoreCache();
toast.success("Кэш очищен");
},
},
{
id: "logout",
label: "Выйти",