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