(feat): improve local storage security (feat): move settings to dedicated settings package
37 lines
1 KiB
TypeScript
37 lines
1 KiB
TypeScript
import Cache from "./pages/cache";
|
|
import Chat from "./pages/chat";
|
|
import Index from "./pages/index";
|
|
import Licenses from "./pages/licenses";
|
|
import Profile from "./pages/profile";
|
|
import Security from "./pages/security";
|
|
import Theme from "./pages/theme";
|
|
|
|
export const settingsPages = [
|
|
{ path: "/", component: Index },
|
|
{ category: "general", path: "chat", label: "Chat", component: Chat },
|
|
{
|
|
category: "account",
|
|
path: "profile",
|
|
label: "Profile",
|
|
component: Profile,
|
|
},
|
|
{
|
|
category: "account",
|
|
path: "security",
|
|
label: "Security",
|
|
component: Security,
|
|
},
|
|
{ category: "application", path: "cache", label: "Cache", component: Cache },
|
|
{ category: "application", path: "theme", label: "Theme", component: Theme },
|
|
{
|
|
category: "application",
|
|
path: "licenses",
|
|
label: "Licenses",
|
|
component: Licenses,
|
|
},
|
|
] as const;
|
|
|
|
export const settingsNavigation = settingsPages.filter(
|
|
(page): page is Exclude<(typeof settingsPages)[number], { path: "/" }> =>
|
|
page.path !== "/",
|
|
);
|