mirror of
https://github.com/VERT-sh/VERT
synced 2026-04-25 17:15:10 +02:00
@@ -39,21 +39,20 @@
|
||||
},
|
||||
{
|
||||
name: "Convert",
|
||||
url: "/convert/",
|
||||
activeMatch: (pathname) =>
|
||||
pathname === "/convert/" || pathname === "/convert",
|
||||
url: "/convert",
|
||||
activeMatch: (pathname) => pathname === "/convert",
|
||||
icon: RefreshCw,
|
||||
badge: files.files.length,
|
||||
},
|
||||
{
|
||||
name: "Settings",
|
||||
url: "/settings/",
|
||||
url: "/settings",
|
||||
activeMatch: (pathname) => pathname.startsWith("/settings"),
|
||||
icon: SettingsIcon,
|
||||
},
|
||||
{
|
||||
name: "About",
|
||||
url: "/about/",
|
||||
url: "/about",
|
||||
activeMatch: (pathname) => pathname.startsWith("/about"),
|
||||
icon: InfoIcon,
|
||||
},
|
||||
@@ -79,7 +78,6 @@
|
||||
const newIndex = items.findIndex((i) =>
|
||||
i.activeMatch(e.to?.url.pathname || ""),
|
||||
);
|
||||
console.log(oldIndex, newIndex);
|
||||
if (newIndex < oldIndex) {
|
||||
goingLeft.set(true);
|
||||
} else {
|
||||
|
||||
@@ -14,4 +14,3 @@ export const load = ({ data }) => {
|
||||
};
|
||||
|
||||
export const prerender = true;
|
||||
export const trailingSlash = "always";
|
||||
|
||||
@@ -12,9 +12,6 @@ const config = {
|
||||
// If your environment is not supported, or you settled on a specific environment, switch out the adapter.
|
||||
// See https://svelte.dev/docs/kit/adapters for more information about adapters.
|
||||
adapter: adapter(),
|
||||
paths: {
|
||||
relative: false,
|
||||
},
|
||||
env: {
|
||||
publicPrefix: "PUB_",
|
||||
privatePrefix: "PRI_",
|
||||
|
||||
Reference in New Issue
Block a user