更新前端静态网页获取方式,放弃使用后端获取api

This commit is contained in:
2025-09-09 10:47:51 +08:00
parent 6889ca37e5
commit 44a4f1bae1
25558 changed files with 2463152 additions and 153 deletions

46
frontend/node_modules/svg-parser/CHANGELOG.md generated vendored Normal file
View File

@@ -0,0 +1,46 @@
# svg-parser changelog
## 2.0.3
* Fix reported error location ([#9](https://github.com/Rich-Harris/svg-parser/issues/9))
## 2.0.2
* Allow underscores in attribute names ([#4](https://github.com/Rich-Harris/svg-parser/issues/4))
## 2.0.1
* Fix empty/space attributes
## 2.0.0
* Migrate to HAST
## 1.0.6
* Remove unused dependency
## 1.0.5
* Handle doctype and CDATA
## 1.0.4
* Handle unexpected end of input
## 1.0.3
* Prevent infinite loops on bad final closing tag
## 1.0.2
* Prevent `""=true` attributes
## 1.0.1
* Allow attributes with numbers (e.g. `x1`)
* Fix error messages
## 1.0.0
* First release

41
frontend/node_modules/svg-parser/README.md generated vendored Normal file
View File

@@ -0,0 +1,41 @@
# svg-parser
Take a string representing an SVG document or fragment, turn it into [HAST](https://github.com/syntax-tree/hast) JavaScript object.
## Installation
`npm install svg-parser`, or grab it from [npmcdn.com/svg-parser](https://npmcdn.com/svg-parser).
## Usage
```js
import { parse } from 'svg-parser';
const parsed = parse( `
<svg viewBox='0 0 100 100'>
<!-- stuff goes here... -->
</svg>
` );
/*
{
type: 'root',
children: [
{
type: 'element',
tagName: 'svg',
properties: {
viewBox: '0 0 100 100'
},
children: [...]
}
]
}
*/
```
## License
MIT

50
frontend/node_modules/svg-parser/package.json generated vendored Normal file
View File

@@ -0,0 +1,50 @@
{
"name": "svg-parser",
"version": "2.0.4",
"description": "Create a JSON-friendly object from an SVG string",
"main": "dist/svg-parser.umd.js",
"jsnext:main": "dist/svg-parser.esm.js",
"module": "dist/svg-parser.esm.js",
"files": [
"dist",
"README.md"
],
"scripts": {
"test": "mocha",
"build": "rm -rf dist && rollup -c",
"pretest": "npm run build",
"prepublish": "npm run lint && npm test",
"lint": "eslint src"
},
"prettier": {
"singleQuote": true,
"useTabs": true,
"printWidth": 100
},
"repository": {
"type": "git",
"url": "git+https://github.com/Rich-Harris/svg-parser.git"
},
"keywords": [
"SVG",
"parser",
"JSON",
"object"
],
"author": "Rich Harris",
"license": "MIT",
"bugs": {
"url": "https://github.com/Rich-Harris/svg-parser/issues"
},
"homepage": "https://github.com/Rich-Harris/svg-parser#README",
"devDependencies": {
"@rollup/plugin-buble": "^0.21.0",
"@rollup/plugin-node-resolve": "^7.0.0",
"eslint": "^3.2.2",
"locate-character": "^2.0.5",
"mocha": "^3.0.1",
"prettier": "^1.18.2",
"rollup": "^1.29.0",
"source-map-support": "^0.4.2"
}
}