更新前端静态网页获取方式,放弃使用后端获取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

7
frontend/node_modules/source-list-map/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,7 @@
Copyright 2017 JS Foundation
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.

91
frontend/node_modules/source-list-map/README.md generated vendored Normal file
View File

@@ -0,0 +1,91 @@
# source-list-map
## API
### Example
``` js
var SourceListMap = require("source-list-map").SourceListMap;
// Create a new map
var map = new SourceListMap();
// Add generated code that is map line to line to some soure
map.add("Generated\ncode1\n", "source-code.js", "Orginal\nsource");
// Add generated code that isn't mapped
map.add("Generated\ncode2\n");
// Get SourceMap and generated source
map.toStringWithSourceMap({ file: "generated-code.js" });
// {
// source: 'Generated\ncode1\nGenerated\ncode2\n',
// map: {
// version: 3,
// file: 'generated-code.js',
// sources: [ 'source-code.js' ],
// sourcesContent: [ 'Orginal\nsource' ],
// mappings: 'AAAA;AACA;;;'
// }
// }
// Convert existing SourceMap into SourceListMap
// (Only the first mapping per line is preserved)
var fromStringWithSourceMap = require("source-list-map").fromStringWithSourceMap;
var map = fromStringWithSourceMap("Generated\ncode", { version: 3, ... });
```
### `new SourceListMap()`
### `SourceListMap.prototype.add`
``` js
SourceListMap.prototype.add(generatedCode: string)
SourceListMap.prototype.add(generatedCode: string, source: string, originalSource: string)
SourceListMap.prototype.add(sourceListMap: SourceListMap)
```
Append some stuff.
### `SourceListMap.prototype.prepend`
``` js
SourceListMap.prototype.prepend(generatedCode: string)
SourceListMap.prototype.prepend(generatedCode: string, source: string, originalSource: string)
SourceListMap.prototype.prepend(sourceListMap: SourceListMap)
```
Prepend some stuff.
### `SourceListMap.prototype.toString()`
Get generated code.
### `SourceListMap.prototype.toStringWithSourceMap`
``` js
SourceListMap.prototype.toStringWithSourceMap(options: object)
```
Get generated code and SourceMap. `options` can contains `file` property which defines the `file` property of the SourceMap.
### `SourceListMap.prototype.mapGeneratedCode`
``` js
SourceListMap.prototype.mapGeneratedCode(fn: function) : SourceListMap
```
Applies `fn` to each generated code block (per line). The returned value is set as new generated code. Returns a new SourceListMap.
Removing and adding lines is supported. The SourceMap complexity will increase when doing this.
## Test
[![Build Status](https://travis-ci.org/webpack/source-list-map.svg)](https://travis-ci.org/webpack/source-list-map)
## License
Copyright (c) 2017 JS Foundation
MIT (http://www.opensource.org/licenses/mit-license.php)

29
frontend/node_modules/source-list-map/package.json generated vendored Normal file
View File

@@ -0,0 +1,29 @@
{
"name": "source-list-map",
"version": "2.0.1",
"description": "Fast line to line SourceMap generator.",
"author": "Tobias Koppers @sokra",
"main": "lib/index.js",
"scripts": {
"test": "mocha -R spec"
},
"repository": {
"type": "git",
"url": "https://github.com/webpack/source-list-map.git"
},
"keywords": [
"source-map"
],
"files": [
"lib"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/webpack/source-list-map/issues"
},
"homepage": "https://github.com/webpack/source-list-map",
"devDependencies": {
"mocha": "^2.2.1",
"should": "^5.2.0"
}
}