Refactor routing in App component to enhance navigation and improve error handling by integrating dynamic routes and updating the NotFound route.

This commit is contained in:
becarta
2025-05-23 12:43:00 +02:00
parent f40db0f5c9
commit a544759a3b
11127 changed files with 1647032 additions and 0 deletions

28
node_modules/astro/dist/cli/docs/open.js generated vendored Normal file
View File

@@ -0,0 +1,28 @@
import { exec } from "../exec.js";
const getPlatformSpecificCommand = () => {
const isGitPod = Boolean(process.env.GITPOD_REPO_ROOT);
const platform = isGitPod ? "gitpod" : process.platform;
switch (platform) {
case "android":
case "linux":
return ["xdg-open"];
case "darwin":
return ["open"];
case "win32":
return ["cmd", ["/c", "start"]];
case "gitpod":
return ["/ide/bin/remote-cli/gitpod-code", ["--openExternal"]];
default:
throw new Error(
`It looks like your platform ("${platform}") isn't supported!
To view Astro's docs, please visit https://docs.astro.build`
);
}
};
async function openInBrowser(url) {
const [command, args = []] = getPlatformSpecificCommand();
return exec(command, [...args, encodeURI(url)]);
}
export {
openInBrowser
};