fix:优化试题内容和样式排版

This commit is contained in:
Daniel
2026-04-18 20:20:38 +08:00
parent 15e71a9231
commit 7cb9b89cb0
644 changed files with 152784 additions and 621 deletions

81
frontend/node_modules/victory-vendor/CHANGELOG 2.md generated vendored Normal file
View File

@@ -0,0 +1,81 @@
# victory-vendor
## 36.9.2
## 36.9.1
## 36.9.0
## 36.8.6
## 36.8.5
### Patch Changes
- Replace instances of lodash.assign with Object.assign ([#2757](https://github.com/FormidableLabs/victory/pull/2757))
## 36.8.4
## 36.8.3
## 36.8.2
## 36.8.1
## 36.8.0
## 36.7.0
## 36.6.12
## 36.6.11
## 36.6.10
### Patch Changes
- Setup NPM Provenance ([#2590](https://github.com/FormidableLabs/victory/pull/2590))
## 36.6.9
### Patch Changes
- Setup NPM Provenance ([#2587](https://github.com/FormidableLabs/victory/pull/2587))
## 36.6.8
## 36.6.7
## 36.6.6
## 36.6.5
### Patch Changes
- Export types directly from d3-\* (fixes [#2439](https://github.com/FormidableLabs/victory/issues/2439)) ([#2440](https://github.com/FormidableLabs/victory/pull/2440))
## 36.6.4
### Patch Changes
- Allow data accessors to accept any data types (fixes [#2360](https://github.com/FormidableLabs/victory/issues/2360)) ([#2436](https://github.com/FormidableLabs/victory/pull/2436))
## 36.6.3
### Patch Changes
- Do not generate \*.js.map sourcemaps (fixes [#2346](https://github.com/FormidableLabs/victory/issues/2346)) ([#2432](https://github.com/FormidableLabs/victory/pull/2432))
## 36.6.2
## 36.6.1
## 36.6.0
### Patch Changes
- Update source code with minor lint-based improvements (see [#2236](https://github.com/FormidableLabs/victory/issues/2236)). ([#2403](https://github.com/FormidableLabs/victory/pull/2403))
## 36.5.3 and earlier
Change history for version 36.5.3 and earlier can be found in our root [CHANGELOG.md](https://github.com/FormidableLabs/victory/blob/main/CHANGELOG.md).

70
frontend/node_modules/victory-vendor/README 2.md generated vendored Normal file
View File

@@ -0,0 +1,70 @@
# VictoryVendor
Vendored dependencies for Victory.
## Background
D3 has released most of its libraries as ESM-only. This means that consumers in Node.js applications can no longer just `require()` anything with a d3 transitive dependency, including much of Victory.
To help provide an easy path to folks still using CommonJS in their Node.js applications that consume Victory, we now provide this package to vendor in various d3-related packages.
## Packages
We presently provide the following top-level libraries:
<!-- cat packages/victory-vendor/package.json | egrep '"d3-' | egrep -o 'd3-[^"]*'| sor t-->
- d3-ease
- d3-interpolate
- d3-scale
- d3-shape
- d3-timer
This is the total list of top and transitive libraries we vendor:
<!-- ls packages/victory-vendor/lib-vendor | sort -->
- d3-array
- d3-color
- d3-ease
- d3-format
- d3-interpolate
- d3-path
- d3-scale
- d3-shape
- d3-time
- d3-time-format
- d3-timer
- internmap
Note that this does _not_ include the following D3 libraries that still support CommonJS:
- d3-voronoi
## How it works
We provide two alternate paths and behaviors -- for ESM and CommonJS
### ESM
If you do a Node.js import like:
```js
import { interpolate } from "victory-vendor/d3-interpolate";
```
under the hood it's going to just re-export and pass you through to `node_modules/d3-interpolate`, the **real** ESM library from D3.
### CommonJS
If you do a Node.js import like:
```js
const { interpolate } = require("victory-vendor/d3-interpolate");
```
under the hood it's going to will go to an alternate path that contains the transpiled version of the underlying d3 library to be found at `victory-vendor/lib-vendor/d3-interpolate/**/*.js`. This futher has internally consistent import references to other `victory-vendor/lib-vendor/<pkg-name>` paths.
Note that for some tooling (like Jest) that doesn't play well with `package.json:exports` routing to this CommonJS path, we **also** output a root file in the form of `victory-vendor/d3-interpolate.js`.
## Licenses
This project is released under the MIT license, but the vendor'ed in libraries include other licenses (e.g. ISC) that we enumerate in our `package.json:license` field.

7
frontend/node_modules/victory-vendor/d3-array 2.js generated vendored Normal file
View File

@@ -0,0 +1,7 @@
// `victory-vendor/d3-array` (CommonJS)
// See upstream license: https://github.com/d3/d3-array/blob/main/LICENSE
//
// This file only exists for tooling that doesn't work yet with package.json:exports
// by proxying through the CommonJS version.
module.exports = require("./lib/d3-array");

5
frontend/node_modules/victory-vendor/d3-array.d 2.ts generated vendored Normal file
View File

@@ -0,0 +1,5 @@
// `victory-vendor/d3-array` (TypeScript)
//
// Export the type definitions for this package:
export * from "d3-array";

7
frontend/node_modules/victory-vendor/d3-ease 2.js generated vendored Normal file
View File

@@ -0,0 +1,7 @@
// `victory-vendor/d3-ease` (CommonJS)
// See upstream license: https://github.com/d3/d3-ease/blob/main/LICENSE
//
// This file only exists for tooling that doesn't work yet with package.json:exports
// by proxying through the CommonJS version.
module.exports = require("./lib/d3-ease");

5
frontend/node_modules/victory-vendor/d3-ease.d 2.ts generated vendored Normal file
View File

@@ -0,0 +1,5 @@
// `victory-vendor/d3-ease` (TypeScript)
//
// Export the type definitions for this package:
export * from "d3-ease";

View File

@@ -0,0 +1,7 @@
// `victory-vendor/d3-interpolate` (CommonJS)
// See upstream license: https://github.com/d3/d3-interpolate/blob/main/LICENSE
//
// This file only exists for tooling that doesn't work yet with package.json:exports
// by proxying through the CommonJS version.
module.exports = require("./lib/d3-interpolate");

View File

@@ -0,0 +1,5 @@
// `victory-vendor/d3-interpolate` (TypeScript)
//
// Export the type definitions for this package:
export * from "d3-interpolate";

7
frontend/node_modules/victory-vendor/d3-scale 2.js generated vendored Normal file
View File

@@ -0,0 +1,7 @@
// `victory-vendor/d3-scale` (CommonJS)
// See upstream license: https://github.com/d3/d3-scale/blob/main/LICENSE
//
// This file only exists for tooling that doesn't work yet with package.json:exports
// by proxying through the CommonJS version.
module.exports = require("./lib/d3-scale");

5
frontend/node_modules/victory-vendor/d3-scale.d 2.ts generated vendored Normal file
View File

@@ -0,0 +1,5 @@
// `victory-vendor/d3-scale` (TypeScript)
//
// Export the type definitions for this package:
export * from "d3-scale";

7
frontend/node_modules/victory-vendor/d3-shape 2.js generated vendored Normal file
View File

@@ -0,0 +1,7 @@
// `victory-vendor/d3-shape` (CommonJS)
// See upstream license: https://github.com/d3/d3-shape/blob/main/LICENSE
//
// This file only exists for tooling that doesn't work yet with package.json:exports
// by proxying through the CommonJS version.
module.exports = require("./lib/d3-shape");

5
frontend/node_modules/victory-vendor/d3-shape.d 2.ts generated vendored Normal file
View File

@@ -0,0 +1,5 @@
// `victory-vendor/d3-shape` (TypeScript)
//
// Export the type definitions for this package:
export * from "d3-shape";

7
frontend/node_modules/victory-vendor/d3-time 2.js generated vendored Normal file
View File

@@ -0,0 +1,7 @@
// `victory-vendor/d3-time` (CommonJS)
// See upstream license: https://github.com/d3/d3-time/blob/main/LICENSE
//
// This file only exists for tooling that doesn't work yet with package.json:exports
// by proxying through the CommonJS version.
module.exports = require("./lib/d3-time");

5
frontend/node_modules/victory-vendor/d3-time.d 2.ts generated vendored Normal file
View File

@@ -0,0 +1,5 @@
// `victory-vendor/d3-time` (TypeScript)
//
// Export the type definitions for this package:
export * from "d3-time";

7
frontend/node_modules/victory-vendor/d3-timer 2.js generated vendored Normal file
View File

@@ -0,0 +1,7 @@
// `victory-vendor/d3-timer` (CommonJS)
// See upstream license: https://github.com/d3/d3-timer/blob/main/LICENSE
//
// This file only exists for tooling that doesn't work yet with package.json:exports
// by proxying through the CommonJS version.
module.exports = require("./lib/d3-timer");

5
frontend/node_modules/victory-vendor/d3-timer.d 2.ts generated vendored Normal file
View File

@@ -0,0 +1,5 @@
// `victory-vendor/d3-timer` (TypeScript)
//
// Export the type definitions for this package:
export * from "d3-timer";

187
frontend/node_modules/victory-vendor/package 2.json generated vendored Normal file
View File

@@ -0,0 +1,187 @@
{
"name": "victory-vendor",
"version": "36.9.2",
"description": "Vendored dependencies for Victory",
"keywords": [
"data visualization",
"React",
"d3",
"charting"
],
"repository": {
"type": "git",
"url": "https://github.com/FormidableLabs/victory"
},
"homepage": "https://commerce.nearform.com/open-source/victory",
"author": "Formidable",
"license": "MIT AND ISC",
"exports": {
"./package.json": "./package.json",
"./d3-*": {
"types": "./d3-*.d.ts",
"import": "./es/d3-*.js",
"default": "./lib/d3-*.js"
}
},
"dependencies": {
"@types/d3-array": "^3.0.3",
"@types/d3-ease": "^3.0.0",
"@types/d3-interpolate": "^3.0.1",
"@types/d3-scale": "^4.0.2",
"@types/d3-shape": "^3.1.0",
"@types/d3-time": "^3.0.0",
"@types/d3-timer": "^3.0.0",
"d3-array": "^3.1.6",
"d3-ease": "^3.0.1",
"d3-interpolate": "^3.0.1",
"d3-scale": "^4.0.2",
"d3-shape": "^3.1.0",
"d3-time": "^3.0.0",
"d3-timer": "^3.0.1"
},
"devDependencies": {
"d3-color": "^3.1.0",
"d3-format": "^3.1.0",
"d3-path": "^3.0.1",
"d3-time-format": "^4.1.0",
"d3-voronoi": "^1.1.4",
"internmap": "^2.0.3",
"execa": "^6.1.0",
"rimraf": "^3.0.2"
},
"publishConfig": {
"provenance": true
},
"wireit": {
"build": {
"command": "node ./scripts/build.js",
"files": [
".babelrc.js",
"scripts/build.js",
"node_modules/**"
],
"output": [
"es/**",
"lib/**",
"lib-vendor/**",
"d3-*"
],
"packageLocks": [
"pnpm-lock.yaml"
]
},
"build:lib:esm": {
"dependencies": [
"build"
]
},
"build:lib:cjs": {
"dependencies": [
"build"
]
},
"build:dist": {
"dependencies": [
"build"
]
},
"build:dist:dev": {
"dependencies": [
"build"
]
},
"build:dist:min": {
"dependencies": [
"build"
]
},
"check": {
"dependencies": [
"types:check",
"jest",
"format",
"lint"
]
},
"types:check": {
"command": "echo \"No types to check here\"",
"files": [],
"output": []
},
"types:create": {
"dependencies": [
"build"
]
},
"format": {
"command": "nps format:pkg",
"files": [
"scripts/**",
"*.json",
"../../.prettierignore",
"../../.prettierrc.json"
],
"output": [],
"packageLocks": [
"pnpm-lock.yaml"
]
},
"format:fix": {
"command": "pnpm run format || nps format:pkg:fix",
"files": [
"scripts/**",
"*.json",
"../../.prettierignore",
"../../.prettierrc.json"
],
"output": [],
"packageLocks": [
"pnpm-lock.yaml"
]
},
"lint": {
"command": "nps \"lint:base scripts\"",
"files": [
"scripts/**",
"../../.eslintrc.js"
],
"output": [],
"packageLocks": [
"pnpm-lock.yaml"
]
},
"lint:fix": {
"command": "pnpm run lint || nps \"lint:base --fix scripts\"",
"files": [
"scripts/**",
"../../.eslintrc.js"
],
"output": [],
"packageLocks": [
"pnpm-lock.yaml"
]
},
"jest": {
"command": "echo victory-vendor has no tests",
"files": [],
"output": []
}
},
"scripts": {
"build": "wireit",
"build:lib": "wireit",
"build:lib:esm": "wireit",
"build:lib:cjs": "wireit",
"build:dist": "wireit",
"build:dist:dev": "wireit",
"build:dist:min": "wireit",
"check": "wireit",
"types:check": "wireit",
"types:create": "wireit",
"format": "wireit",
"format:fix": "wireit",
"lint": "wireit",
"lint:fix": "wireit",
"jest": "wireit"
}
}