chore: update frontend build for v1.1.81 [skip ci]

This commit is contained in:
github-actions[bot]
2025-08-06 02:24:54 +00:00
commit 2fd90c5620
19335 changed files with 2351769 additions and 0 deletions

21
web/admin-spa/node_modules/strip-literal/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2022 Anthony Fu <https://github.com/antfu>
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.

29
web/admin-spa/node_modules/strip-literal/README.md generated vendored Normal file
View File

@@ -0,0 +1,29 @@
# strip-literal
[![NPM version](https://img.shields.io/npm/v/strip-literal?color=a1b858&label=)](https://www.npmjs.com/package/strip-literal)
Strip comments and string literals from JavaScript code. Powered by [`js-tokens`](https://github.com/lydell/js-tokens).
## Usage
<!-- eslint-disable no-template-curly-in-string -->
```ts
import { stripLiteral } from 'strip-literal'
stripLiteral('const foo = `//foo ${bar}`') // 'const foo = ` ${bar}`'
```
Comments, string literals will be replaced by spaces with the same length to keep the source map untouched.
## Sponsors
<p align="center">
<a href="https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg">
<img src='https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg'/>
</a>
</p>
## License
[MIT](./LICENSE) License © 2022 [Anthony Fu](https://github.com/antfu)

View File

@@ -0,0 +1,88 @@
'use strict';
const jsTokens = require('js-tokens');
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
const jsTokens__default = /*#__PURE__*/_interopDefaultCompat(jsTokens);
function stripLiteralJsTokens(code, options) {
const FILL = options?.fillChar ?? " ";
const FILL_COMMENT = " ";
let result = "";
const filter = options?.filter ?? (() => true);
const tokens = [];
for (const token of jsTokens__default(code, { jsx: false })) {
tokens.push(token);
if (token.type === "SingleLineComment") {
result += FILL_COMMENT.repeat(token.value.length);
continue;
}
if (token.type === "MultiLineComment") {
result += token.value.replace(/[^\n]/g, FILL_COMMENT);
continue;
}
if (token.type === "StringLiteral") {
if (!token.closed) {
result += token.value;
continue;
}
const body = token.value.slice(1, -1);
if (filter(body)) {
result += token.value[0] + FILL.repeat(body.length) + token.value[token.value.length - 1];
continue;
}
}
if (token.type === "NoSubstitutionTemplate") {
const body = token.value.slice(1, -1);
if (filter(body)) {
result += `\`${body.replace(/[^\n]/g, FILL)}\``;
continue;
}
}
if (token.type === "RegularExpressionLiteral") {
const body = token.value;
if (filter(body)) {
result += body.replace(/\/(.*)\/(\w?)$/g, (_, $1, $2) => `/${FILL.repeat($1.length)}/${$2}`);
continue;
}
}
if (token.type === "TemplateHead") {
const body = token.value.slice(1, -2);
if (filter(body)) {
result += `\`${body.replace(/[^\n]/g, FILL)}\${`;
continue;
}
}
if (token.type === "TemplateTail") {
const body = token.value.slice(0, -2);
if (filter(body)) {
result += `}${body.replace(/[^\n]/g, FILL)}\``;
continue;
}
}
if (token.type === "TemplateMiddle") {
const body = token.value.slice(1, -2);
if (filter(body)) {
result += `}${body.replace(/[^\n]/g, FILL)}\${`;
continue;
}
}
result += token.value;
}
return {
result,
tokens
};
}
function stripLiteral(code, options) {
return stripLiteralDetailed(code, options).result;
}
function stripLiteralDetailed(code, options) {
return stripLiteralJsTokens(code, options);
}
exports.stripLiteral = stripLiteral;
exports.stripLiteralDetailed = stripLiteralDetailed;
exports.stripLiteralJsTokens = stripLiteralJsTokens;

View File

@@ -0,0 +1,35 @@
import * as js_tokens from 'js-tokens';
import { Token } from 'js-tokens';
interface StripLiteralOptions {
/**
* Will be called for each string literal. Return false to skip stripping.
*/
filter?: (s: string) => boolean;
/**
* Fill the stripped literal with this character.
* It must be a single character.
*
* @default ' '
*/
fillChar?: string;
}
declare function stripLiteralJsTokens(code: string, options?: StripLiteralOptions): {
result: string;
tokens: Token[];
};
/**
* Strip literal from code.
*/
declare function stripLiteral(code: string, options?: StripLiteralOptions): string;
/**
* Strip literal from code, return more detailed information.
*/
declare function stripLiteralDetailed(code: string, options?: StripLiteralOptions): {
result: string;
tokens: js_tokens.Token[];
};
export { type StripLiteralOptions, stripLiteral, stripLiteralDetailed, stripLiteralJsTokens };

View File

@@ -0,0 +1,35 @@
import * as js_tokens from 'js-tokens';
import { Token } from 'js-tokens';
interface StripLiteralOptions {
/**
* Will be called for each string literal. Return false to skip stripping.
*/
filter?: (s: string) => boolean;
/**
* Fill the stripped literal with this character.
* It must be a single character.
*
* @default ' '
*/
fillChar?: string;
}
declare function stripLiteralJsTokens(code: string, options?: StripLiteralOptions): {
result: string;
tokens: Token[];
};
/**
* Strip literal from code.
*/
declare function stripLiteral(code: string, options?: StripLiteralOptions): string;
/**
* Strip literal from code, return more detailed information.
*/
declare function stripLiteralDetailed(code: string, options?: StripLiteralOptions): {
result: string;
tokens: js_tokens.Token[];
};
export { type StripLiteralOptions, stripLiteral, stripLiteralDetailed, stripLiteralJsTokens };

View File

@@ -0,0 +1,35 @@
import * as js_tokens from 'js-tokens';
import { Token } from 'js-tokens';
interface StripLiteralOptions {
/**
* Will be called for each string literal. Return false to skip stripping.
*/
filter?: (s: string) => boolean;
/**
* Fill the stripped literal with this character.
* It must be a single character.
*
* @default ' '
*/
fillChar?: string;
}
declare function stripLiteralJsTokens(code: string, options?: StripLiteralOptions): {
result: string;
tokens: Token[];
};
/**
* Strip literal from code.
*/
declare function stripLiteral(code: string, options?: StripLiteralOptions): string;
/**
* Strip literal from code, return more detailed information.
*/
declare function stripLiteralDetailed(code: string, options?: StripLiteralOptions): {
result: string;
tokens: js_tokens.Token[];
};
export { type StripLiteralOptions, stripLiteral, stripLiteralDetailed, stripLiteralJsTokens };

View File

@@ -0,0 +1,80 @@
import jsTokens from 'js-tokens';
function stripLiteralJsTokens(code, options) {
const FILL = options?.fillChar ?? " ";
const FILL_COMMENT = " ";
let result = "";
const filter = options?.filter ?? (() => true);
const tokens = [];
for (const token of jsTokens(code, { jsx: false })) {
tokens.push(token);
if (token.type === "SingleLineComment") {
result += FILL_COMMENT.repeat(token.value.length);
continue;
}
if (token.type === "MultiLineComment") {
result += token.value.replace(/[^\n]/g, FILL_COMMENT);
continue;
}
if (token.type === "StringLiteral") {
if (!token.closed) {
result += token.value;
continue;
}
const body = token.value.slice(1, -1);
if (filter(body)) {
result += token.value[0] + FILL.repeat(body.length) + token.value[token.value.length - 1];
continue;
}
}
if (token.type === "NoSubstitutionTemplate") {
const body = token.value.slice(1, -1);
if (filter(body)) {
result += `\`${body.replace(/[^\n]/g, FILL)}\``;
continue;
}
}
if (token.type === "RegularExpressionLiteral") {
const body = token.value;
if (filter(body)) {
result += body.replace(/\/(.*)\/(\w?)$/g, (_, $1, $2) => `/${FILL.repeat($1.length)}/${$2}`);
continue;
}
}
if (token.type === "TemplateHead") {
const body = token.value.slice(1, -2);
if (filter(body)) {
result += `\`${body.replace(/[^\n]/g, FILL)}\${`;
continue;
}
}
if (token.type === "TemplateTail") {
const body = token.value.slice(0, -2);
if (filter(body)) {
result += `}${body.replace(/[^\n]/g, FILL)}\``;
continue;
}
}
if (token.type === "TemplateMiddle") {
const body = token.value.slice(1, -2);
if (filter(body)) {
result += `}${body.replace(/[^\n]/g, FILL)}\${`;
continue;
}
}
result += token.value;
}
return {
result,
tokens
};
}
function stripLiteral(code, options) {
return stripLiteralDetailed(code, options).result;
}
function stripLiteralDetailed(code, options) {
return stripLiteralJsTokens(code, options);
}
export { stripLiteral, stripLiteralDetailed, stripLiteralJsTokens };

62
web/admin-spa/node_modules/strip-literal/package.json generated vendored Normal file
View File

@@ -0,0 +1,62 @@
{
"name": "strip-literal",
"version": "2.1.1",
"packageManager": "pnpm@9.14.2",
"description": "Strip comments and string literals from JavaScript code",
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
"license": "MIT",
"funding": "https://github.com/sponsors/antfu",
"homepage": "https://github.com/antfu/strip-literal#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/antfu/strip-literal.git"
},
"bugs": {
"url": "https://github.com/antfu/strip-literal/issues"
},
"keywords": [],
"sideEffects": false,
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
}
},
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"build": "unbuild",
"dev": "unbuild --stub",
"lint": "eslint .",
"prepublishOnly": "nr build",
"release": "bumpp --commit --push --tag && npm publish",
"start": "esmo src/index.ts",
"test": "vitest",
"bench": "vitest bench",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"js-tokens": "^9.0.1"
},
"devDependencies": {
"@antfu/eslint-config": "^3.9.2",
"@antfu/ni": "^0.23.1",
"@types/node": "^22.9.3",
"bumpp": "^9.8.1",
"eslint": "^9.15.0",
"esmo": "^4.8.0",
"pnpm": "^9.14.2",
"rimraf": "^6.0.1",
"three": "^0.170.0",
"typescript": "^5.7.2",
"unbuild": "^2.0.0",
"vite": "^5.4.11",
"vitest": "^2.1.5",
"vue": "^3.5.13"
}
}