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

21
node_modules/which-pm/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2017-2025 Zoltan Kochan <z@kochan.io>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

34
node_modules/which-pm/README.md generated vendored Normal file
View File

@@ -0,0 +1,34 @@
# which-pm
> Detects what package manager was used for installation
[![npm version](https://img.shields.io/npm/v/which-pm.svg)](https://www.npmjs.com/package/which-pm)
Can detect [npm](https://github.com/npm/cli), [pnpm](https://github.com/pnpm/pnpm) and [yarn](https://github.com/yarnpkg/yarn).
## Installation
```bash
<pnpm|yarn|npm> add which-pm
```
## Usage
```js
'use strict'
const whichpm = require('which-pm')
whichpm(process.cwd())
.then(pm => console.log(pm))
.catch(err => console.error(err))
//> {name: "pnpm", version: "0.64.2"}
```
## Related
* [preferred-pm](https://github.com/zkochan/packages/tree/main/preferred-pm) - Returns the preferred package manager of a project
* [which-pm-runs](https://github.com/zkochan/packages/tree/main/which-pm-runs) - Detects what package manager executes the process
## License
[MIT](LICENSE) © [Zoltan Kochan](https://kochan.io)

29
node_modules/which-pm/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,29 @@
declare function whichpm (pkgPath: string): Promise<whichpm.Result | null>
declare namespace whichpm {
type Result = NPM | YARN | PNPM | BUN | Other
interface NPM {
readonly name: 'npm'
}
interface YARN {
readonly name: 'yarn'
}
interface PNPM {
readonly name: 'pnpm'
readonly version: string
}
interface BUN {
readonly name: 'bun'
}
interface Other {
readonly name: string
readonly version?: string
}
}
export = whichpm

38
node_modules/which-pm/index.js generated vendored Normal file
View File

@@ -0,0 +1,38 @@
'use strict'
const path = require('path')
const fs = require('fs')
const loadYamlFile = require('load-yaml-file')
module.exports = async function (pkgPath) {
const modulesPath = path.join(pkgPath, 'node_modules')
const exists = fs.existsSync(path.join(modulesPath, '.yarn-integrity'))
if (exists) return { name: 'yarn' }
try {
const modules = await loadYamlFile(path.join(modulesPath, '.modules.yaml'))
return toNameAndVersion(modules.packageManager)
} catch (err) {
if (err.code !== 'ENOENT') throw err
}
if (fs.existsSync(path.join(pkgPath, 'bun.lockb'))) return { name: 'bun' }
const modulesExists = fs.existsSync(modulesPath)
return modulesExists ? { name: 'npm' } : null
}
function toNameAndVersion (pkgSpec) {
if (pkgSpec[0] === '@') {
const woPrefix = pkgSpec.substr(1)
const parts = woPrefix.split('@')
return {
name: `@${parts[0]}`,
version: parts[1]
}
}
const parts = pkgSpec.split('@')
return {
name: parts[0],
version: parts[1]
}
}

42
node_modules/which-pm/package.json generated vendored Normal file
View File

@@ -0,0 +1,42 @@
{
"name": "which-pm",
"version": "3.0.1",
"description": "Detects what package manager was used for installation",
"main": "index.js",
"types": "index.d.ts",
"files": [
"index.js",
"index.d.ts"
],
"engines": {
"node": ">=18.12"
},
"repository": "https://github.com/zkochan/packages/tree/main/which-pm",
"bugs": {
"url": "https://github.com/zkochan/packages/labels/package%3A%20which-pm"
},
"keywords": [
"npm",
"pnpm",
"bun",
"yarn"
],
"author": "Zoltan Kochan",
"license": "MIT",
"dependenciesMeta": {
"which-pm": {
"injected": true
}
},
"dependencies": {
"load-yaml-file": "^0.2.0"
},
"devDependencies": {
"standard": "^16.0.4",
"tape": "^5.3.2",
"which-pm": "file:"
},
"scripts": {
"test": "standard && node test"
}
}