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

26
node_modules/remark-stringify/lib/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,26 @@
/**
* Add support for serializing to markdown.
*
* @param {Readonly<Options> | null | undefined} [options]
* Configuration (optional).
* @returns {undefined}
* Nothing.
*/
export default function remarkStringify(options?: Readonly<Options> | null | undefined): undefined;
export default class remarkStringify {
/**
* Add support for serializing to markdown.
*
* @param {Readonly<Options> | null | undefined} [options]
* Configuration (optional).
* @returns {undefined}
* Nothing.
*/
constructor(options?: Readonly<Options> | null | undefined);
compiler: (tree: import("mdast").Root, file: import("vfile").VFile) => string;
}
export type Root = import('mdast').Root;
export type ToMarkdownOptions = import('mdast-util-to-markdown').Options;
export type Compiler = import('unified').Compiler<Root, string>;
export type Processor = import('unified').Processor<undefined, undefined, undefined, Root, string>;
export type Options = Omit<ToMarkdownOptions, 'extensions'>;

42
node_modules/remark-stringify/lib/index.js generated vendored Normal file
View File

@@ -0,0 +1,42 @@
/**
* @typedef {import('mdast').Root} Root
* @typedef {import('mdast-util-to-markdown').Options} ToMarkdownOptions
* @typedef {import('unified').Compiler<Root, string>} Compiler
* @typedef {import('unified').Processor<undefined, undefined, undefined, Root, string>} Processor
*/
/**
* @typedef {Omit<ToMarkdownOptions, 'extensions'>} Options
*/
import {toMarkdown} from 'mdast-util-to-markdown'
/**
* Add support for serializing to markdown.
*
* @param {Readonly<Options> | null | undefined} [options]
* Configuration (optional).
* @returns {undefined}
* Nothing.
*/
export default function remarkStringify(options) {
/** @type {Processor} */
// @ts-expect-error: TS in JSDoc generates wrong types if `this` is typed regularly.
const self = this
self.compiler = compiler
/**
* @type {Compiler}
*/
function compiler(tree) {
return toMarkdown(tree, {
...self.data('settings'),
...options,
// Note: this option is not in the readme.
// The goal is for it to be set by plugins on `data` instead of being
// passed by users.
extensions: self.data('toMarkdownExtensions') || []
})
}
}