(feat): add cache package
(feat): improve local storage security (feat): move settings to dedicated settings package
This commit is contained in:
parent
fb095db7a6
commit
790a1db788
54 changed files with 1984 additions and 947 deletions
37
packages/settings/src/manifest.ts
Normal file
37
packages/settings/src/manifest.ts
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
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 !== "/",
|
||||
);
|
||||
Loading…
Reference in a new issue