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

13
frontend/node_modules/abab/LICENSE.md generated vendored Normal file
View File

@@ -0,0 +1,13 @@
Copyright © 2019 W3C and Jeff Carpenter \<jeffcarp@chromium.org\>
Both the original source code and new contributions in this repository are released under the [3-Clause BSD license](https://opensource.org/licenses/BSD-3-Clause).
# The 3-Clause BSD License
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

51
frontend/node_modules/abab/README.md generated vendored Normal file
View File

@@ -0,0 +1,51 @@
# abab [![npm version](https://badge.fury.io/js/abab.svg)](https://www.npmjs.com/package/abab) [![Build Status](https://travis-ci.org/jsdom/abab.svg?branch=master)](https://travis-ci.org/jsdom/abab)
A JavaScript module that implements `window.atob` and `window.btoa` according the forgiving-base64 algorithm in the [Infra Standard](https://infra.spec.whatwg.org/#forgiving-base64). The original code was forked from [w3c/web-platform-tests](https://github.com/w3c/web-platform-tests/blob/master/html/webappapis/atob/base64.html).
Compatibility: Node.js version 3+ and all major browsers.
Install with `npm`:
```sh
npm install abab
```
## API
### `btoa` (base64 encode)
```js
const { btoa } = require('abab');
btoa('Hello, world!'); // 'SGVsbG8sIHdvcmxkIQ=='
```
### `atob` (base64 decode)
```js
const { atob } = require('abab');
atob('SGVsbG8sIHdvcmxkIQ=='); // 'Hello, world!'
```
#### Valid characters
[Per the spec](https://html.spec.whatwg.org/multipage/webappapis.html#atob:dom-windowbase64-btoa-3), `btoa` will accept strings "containing only characters in the range `U+0000` to `U+00FF`." If passed a string with characters above `U+00FF`, `btoa` will return `null`. If `atob` is passed a string that is not base64-valid, it will also return `null`. In both cases when `null` is returned, the spec calls for throwing a `DOMException` of type `InvalidCharacterError`.
## Browsers
If you want to include just one of the methods to save bytes in your client-side code, you can `require` the desired module directly.
```js
const atob = require('abab/lib/atob');
const btoa = require('abab/lib/btoa');
```
## Development
If you're **submitting a PR** or **deploying to npm**, please use the [checklists in CONTRIBUTING.md](CONTRIBUTING.md#checklists).
## Remembering what `atob` and `btoa` stand for
Base64 comes from IETF [RFC 4648](https://tools.ietf.org/html/rfc4648#section-4) (2006).
- **`btoa`**, the encoder function, stands for **binary** to **ASCII**, meaning it converts any binary input into a subset of **ASCII** (Base64).
- **`atob`**, the decoder function, converts **ASCII** (or Base64) to its original **binary** format.

2
frontend/node_modules/abab/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,2 @@
export function atob(encodedData: string): string | null
export function btoa(stringToEncode: string): string | null

9
frontend/node_modules/abab/index.js generated vendored Normal file
View File

@@ -0,0 +1,9 @@
"use strict";
const atob = require("./lib/atob");
const btoa = require("./lib/btoa");
module.exports = {
atob,
btoa
};

42
frontend/node_modules/abab/package.json generated vendored Normal file
View File

@@ -0,0 +1,42 @@
{
"name": "abab",
"version": "2.0.6",
"description": "WHATWG spec-compliant implementations of window.atob and window.btoa.",
"main": "index.js",
"files": [
"index.d.ts",
"index.js",
"lib/"
],
"scripts": {
"mocha": "mocha test/node",
"karma": "karma start",
"test": "npm run lint && npm run mocha && npm run karma",
"lint": "eslint ."
},
"repository": {
"type": "git",
"url": "git+https://github.com/jsdom/abab.git"
},
"keywords": [
"atob",
"btoa",
"browser"
],
"author": "Jeff Carpenter <gcarpenterv@gmail.com>",
"license": "BSD-3-Clause",
"bugs": {
"url": "https://github.com/jsdom/abab/issues"
},
"homepage": "https://github.com/jsdom/abab#readme",
"devDependencies": {
"eslint": "^4.19.1",
"karma": "^2.0.0",
"karma-cli": "^1.0.1",
"karma-firefox-launcher": "^1.1.0",
"karma-mocha": "^1.3.0",
"karma-webpack": "^3.0.0",
"mocha": "^5.1.0",
"webpack": "^4.5.0"
}
}