完成世界书、骰子、apiconfig页面处理

This commit is contained in:
2026-04-30 01:35:10 +08:00
parent a3e3711b2b
commit ba9b925c32
4602 changed files with 785225 additions and 23 deletions

107
frontend/node_modules/mdast-util-math/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,107 @@
import type {Data, Literal} from 'mdast'
export {mathFromMarkdown, mathToMarkdown} from './lib/index.js'
export type {ToOptions} from './lib/index.js'
/**
* Math (flow).
*/
export interface Math extends Literal {
/**
* Node type of math (flow).
*/
type: 'math'
/**
* Custom information relating to the node.
*/
meta?: string | null | undefined
/**
* Data associated with the mdast math (flow).
*/
data?: MathData | undefined
}
/**
* Info associated with mdast math (flow) nodes by the ecosystem.
*/
export interface MathData extends Data {}
/**
* Math (text).
*/
export interface InlineMath extends Literal {
/**
* Node type of math (text).
*/
type: 'inlineMath'
/**
* Data associated with the mdast math (text).
*/
data?: InlineMathData | undefined
}
/**
* Info associated with mdast math (text) nodes by the ecosystem.
*/
export interface InlineMathData extends Data {}
// Add custom data tracked to turn markdown into a tree.
declare module 'mdast-util-from-markdown' {
interface CompileData {
/**
* Whether were in math (flow).
*/
mathFlowInside?: boolean | undefined
}
}
// Add custom data tracked to turn a tree into markdown.
declare module 'mdast-util-to-markdown' {
interface ConstructNameMap {
/**
* Math (flow).
*
* ```markdown
* > | $$
* ^^
* > | a
* ^
* > | $$
* ^^
* ```
*/
mathFlow: 'mathFlow'
/**
* Math (flow) meta flag.
*
* ```markdown
* > | $$a
* ^
* | b
* | $$
* ```
*/
mathFlowMeta: 'mathFlowMeta'
}
}
// Add nodes to tree.
declare module 'mdast' {
interface BlockContentMap {
math: Math
}
interface PhrasingContentMap {
inlineMath: InlineMath
}
interface RootContentMap {
inlineMath: InlineMath
math: Math
}
}

22
frontend/node_modules/mdast-util-math/license generated vendored Normal file
View File

@@ -0,0 +1,22 @@
(The MIT License)
Copyright (c) 2020 Titus Wormer <tituswormer@gmail.com>
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.

104
frontend/node_modules/mdast-util-math/package.json generated vendored Normal file
View File

@@ -0,0 +1,104 @@
{
"name": "mdast-util-math",
"version": "3.0.0",
"description": "mdast extension to parse and serialize math",
"license": "MIT",
"keywords": [
"unist",
"mdast",
"mdast-util",
"util",
"utility",
"markdown",
"markup",
"math",
"katex",
"latex",
"tex"
],
"repository": "syntax-tree/mdast-util-math",
"bugs": "https://github.com/syntax-tree/mdast-util-math/issues",
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/unified"
},
"author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
"contributors": [
"Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)"
],
"sideEffects": false,
"type": "module",
"exports": "./index.js",
"files": [
"lib/",
"index.d.ts",
"index.js"
],
"dependencies": {
"@types/hast": "^3.0.0",
"@types/mdast": "^4.0.0",
"devlop": "^1.0.0",
"longest-streak": "^3.0.0",
"mdast-util-from-markdown": "^2.0.0",
"mdast-util-to-markdown": "^2.1.0",
"unist-util-remove-position": "^5.0.0"
},
"devDependencies": {
"@types/node": "^20.0.0",
"c8": "^8.0.0",
"micromark-extension-math": "^3.0.0",
"prettier": "^3.0.0",
"remark-cli": "^11.0.0",
"remark-preset-wooorm": "^9.0.0",
"type-coverage": "^2.0.0",
"typescript": "^5.0.0",
"xo": "^0.55.0"
},
"scripts": {
"prepack": "npm run build && npm run format",
"build": "tsc --build --clean && tsc --build && type-coverage",
"format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
"test-api-dev": "node --conditions development test.js",
"test-api-prod": "node --conditions production test.js",
"test-api": "npm run test-api-dev && npm run test-api-prod",
"test-coverage": "c8 --100 --reporter lcov npm run test-api",
"test": "npm run build && npm run format && npm run test-coverage"
},
"prettier": {
"bracketSpacing": false,
"semi": false,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "none",
"useTabs": false
},
"remarkConfig": {
"plugins": [
"remark-preset-wooorm"
]
},
"typeCoverage": {
"atLeast": 100,
"detail": true,
"ignoreCatch": true,
"strict": true
},
"xo": {
"overrides": [
{
"files": [
"**/*.ts"
],
"rules": {
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/consistent-type-definitions": "off"
}
}
],
"prettier": true,
"rules": {
"unicorn/prefer-at": "off",
"unicorn/prefer-string-replace-all": "off"
}
}
}