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

31
node_modules/rehype-stringify/lib/index.js generated vendored Normal file
View File

@@ -0,0 +1,31 @@
/**
* @import {Root} from 'hast'
* @import {Options} from 'hast-util-to-html'
* @import {Compiler, Processor} from 'unified'
*/
import {toHtml} from 'hast-util-to-html'
/**
* Plugin to add support for serializing as HTML.
*
* @param {Options | null | undefined} [options]
* Configuration (optional).
* @returns {undefined}
* Nothing.
*/
export default function rehypeStringify(options) {
/** @type {Processor<undefined, undefined, undefined, Root, string>} */
// @ts-expect-error: TS in JSDoc generates wrong types if `this` is typed regularly.
const self = this
const settings = {...self.data('settings'), ...options}
self.compiler = compiler
/**
* @type {Compiler<Root, string>}
*/
function compiler(tree) {
return toHtml(tree, settings)
}
}