mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-23 21:17:30 +00:00
chore: update frontend build for v1.1.81 [skip ci]
This commit is contained in:
21
web/admin-spa/node_modules/unplugin-element-plus/LICENSE
generated
vendored
Normal file
21
web/admin-spa/node_modules/unplugin-element-plus/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2021-PRESENT Element Plus (https://github.com/element-plus)
|
||||
|
||||
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.
|
||||
249
web/admin-spa/node_modules/unplugin-element-plus/README.md
generated
vendored
Normal file
249
web/admin-spa/node_modules/unplugin-element-plus/README.md
generated
vendored
Normal file
@@ -0,0 +1,249 @@
|
||||
<p align="center">
|
||||
<img width="300px" src="https://user-images.githubusercontent.com/10731096/95823103-9ce15780-0d5f-11eb-8010-1bd1b5910d4f.png">
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<a href="https://www.npmjs.org/package/unplugin-element-plus">
|
||||
<img src="https://img.shields.io/npm/v/unplugin-element-plus.svg">
|
||||
</a>
|
||||
<a href="https://npmcharts.com/compare/unplugin-element-plus?minimal=true">
|
||||
<img src="http://img.shields.io/npm/dm/unplugin-element-plus.svg">
|
||||
</a>
|
||||
<br>
|
||||
</p>
|
||||
|
||||
# unplugin-element-plus
|
||||
|
||||
[](https://github.com/element-plus/unplugin-element-plus/actions/workflows/unit-test.yml)
|
||||
|
||||
[English](README.md) | [中文](README.zh-CN.md)
|
||||
|
||||
This repo is for element-plus related [unplugin](https://github.com/unjs/unplugin). Thanks [@antfu](https://github.com/antfu).
|
||||
|
||||
###### Features
|
||||
|
||||
- 💚 On-demand import style for Element Plus.
|
||||
- 🌎 Replace default locale.
|
||||
- ⚡️ Supports Vite, Webpack, Vue CLI, Rollup, esbuild and more, powered by <a href="https://github.com/unjs/unplugin">unplugin</a>.
|
||||
|
||||
## Installation
|
||||
|
||||
```bash
|
||||
npm i unplugin-element-plus -D
|
||||
```
|
||||
|
||||
<details>
|
||||
<summary>Vite</summary><br>
|
||||
|
||||
```ts
|
||||
// vite.config.ts
|
||||
import ElementPlus from 'unplugin-element-plus/vite'
|
||||
|
||||
export default {
|
||||
plugins: [
|
||||
ElementPlus({
|
||||
// options
|
||||
}),
|
||||
],
|
||||
}
|
||||
```
|
||||
|
||||
<br></details>
|
||||
|
||||
<details>
|
||||
<summary>Rollup</summary><br>
|
||||
|
||||
```ts
|
||||
// rollup.config.js
|
||||
import ElementPlus from 'unplugin-element-plus/rollup'
|
||||
|
||||
export default {
|
||||
plugins: [
|
||||
ElementPlus({
|
||||
// options
|
||||
}),
|
||||
],
|
||||
}
|
||||
```
|
||||
|
||||
<br></details>
|
||||
|
||||
<details>
|
||||
<summary>esbuild</summary><br>
|
||||
|
||||
```ts
|
||||
// esbuild.config.js
|
||||
import { build } from 'esbuild'
|
||||
|
||||
build({
|
||||
plugins: [
|
||||
require('unplugin-element-plus/esbuild')({
|
||||
// options
|
||||
}),
|
||||
],
|
||||
})
|
||||
```
|
||||
|
||||
<br></details>
|
||||
|
||||
<details>
|
||||
<summary>Webpack</summary><br>
|
||||
|
||||
```ts
|
||||
// webpack.config.js
|
||||
module.exports = {
|
||||
/* ... */
|
||||
plugins: [
|
||||
require('unplugin-element-plus/webpack')({
|
||||
// options
|
||||
}),
|
||||
],
|
||||
}
|
||||
```
|
||||
|
||||
<br></details>
|
||||
|
||||
<details>
|
||||
<summary>Vue CLI</summary><br>
|
||||
|
||||
```ts
|
||||
// vue.config.js
|
||||
module.exports = {
|
||||
configureWebpack: {
|
||||
plugins: [
|
||||
require('unplugin-element-plus/webpack')({
|
||||
// options
|
||||
}),
|
||||
],
|
||||
},
|
||||
}
|
||||
```
|
||||
|
||||
<br></details>
|
||||
|
||||
## Usage
|
||||
|
||||
It will automatically transform:
|
||||
|
||||
```javascript
|
||||
import { ElButton } from 'element-plus'
|
||||
|
||||
// ↓ ↓ ↓ ↓ ↓ ↓
|
||||
|
||||
import { ElButton } from 'element-plus'
|
||||
import 'element-plus/es/components/button/style/css'
|
||||
```
|
||||
|
||||
## Options
|
||||
|
||||
### `useSource`
|
||||
|
||||
```ts
|
||||
type UseSource = boolean
|
||||
```
|
||||
|
||||
default: `false`
|
||||
|
||||
```javascript
|
||||
// useSource: false
|
||||
import { ElButton } from 'element-plus'
|
||||
|
||||
// ↓ ↓ ↓ ↓ ↓ ↓
|
||||
|
||||
import { ElButton } from 'element-plus'
|
||||
import 'element-plus/es/components/button/style/css'
|
||||
|
||||
// useSource: true
|
||||
import { ElButton } from 'element-plus'
|
||||
|
||||
// ↓ ↓ ↓ ↓ ↓ ↓
|
||||
|
||||
import { ElButton } from 'element-plus'
|
||||
import 'element-plus/es/components/button/style/index'
|
||||
```
|
||||
|
||||
### `lib`
|
||||
|
||||
Normally you wouldn't use this option but as a general option we exposed it anyway.
|
||||
When using this your bundle structure should be the same as ElementPlus.
|
||||
See [unpkg.com](https://unpkg.com/element-plus) for more information.
|
||||
|
||||
```ts
|
||||
type Lib = string
|
||||
```
|
||||
|
||||
default: 'element-plus'
|
||||
|
||||
```javascript
|
||||
// lib: 'other-lib'
|
||||
import { ElButton } from 'other-lib'
|
||||
|
||||
// ↓ ↓ ↓ ↓ ↓ ↓
|
||||
|
||||
import { ElButton } from 'other-lib'
|
||||
import 'other-lib/es/components/button/style/css'
|
||||
```
|
||||
|
||||
### `format`
|
||||
|
||||
```ts
|
||||
type Format = 'esm' | 'cjs'
|
||||
```
|
||||
|
||||
default: 'esm'
|
||||
|
||||
`esm` for `element-plus/es/components/*`
|
||||
|
||||
`cjs` for `element-plus/lib/components/*`
|
||||
|
||||
- `/es` for ES Module
|
||||
- `/lib` for CommonJS
|
||||
|
||||
This option is for which format to use
|
||||
|
||||
```javascript
|
||||
// format: 'cjs'
|
||||
import { ElButton } from 'element-plus'
|
||||
|
||||
// ↓ ↓ ↓ ↓ ↓ ↓
|
||||
|
||||
import { ElButton } from 'element-plus'
|
||||
import 'element-plus/lib/components/button/style/css'
|
||||
```
|
||||
|
||||
### `prefix`
|
||||
|
||||
```ts
|
||||
type Prefix = string
|
||||
```
|
||||
|
||||
```javascript
|
||||
// prefix = Al
|
||||
import { AlButton } from 'xx-lib'
|
||||
```
|
||||
|
||||
### `ignoreComponents`
|
||||
|
||||
```ts
|
||||
type IgnoreComponents = string[]
|
||||
```
|
||||
|
||||
Skip style imports for a list of components. Useful for Element Plus components which do not have a style file.
|
||||
At the time of writing, this is only the `AutoResizer` component.
|
||||
|
||||
```javascript
|
||||
// format: 'cjs'
|
||||
import { ElAutoResizer } from 'element-plus'
|
||||
|
||||
// ↓ ↓ ↓ ↓ ↓ ↓
|
||||
|
||||
import { ElAutoResizer } from 'element-plus'
|
||||
```
|
||||
|
||||
### `defaultLocale`
|
||||
|
||||
Replace default locale, you can find locale list [here](https://github.com/element-plus/element-plus/tree/dev/packages/locale/lang).
|
||||
|
||||
## Alternate
|
||||
|
||||
- [unplugin-vue-components](https://github.com/antfu/unplugin-vue-components)
|
||||
228
web/admin-spa/node_modules/unplugin-element-plus/README.zh-CN.md
generated
vendored
Normal file
228
web/admin-spa/node_modules/unplugin-element-plus/README.zh-CN.md
generated
vendored
Normal file
@@ -0,0 +1,228 @@
|
||||
<p align="center">
|
||||
<img width="300px" src="https://user-images.githubusercontent.com/10731096/95823103-9ce15780-0d5f-11eb-8010-1bd1b5910d4f.png">
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<a href="https://www.npmjs.org/package/unplugin-element-plus">
|
||||
<img src="https://img.shields.io/npm/v/unplugin-element-plus.svg">
|
||||
</a>
|
||||
<a href="https://npmcharts.com/compare/unplugin-element-plus?minimal=true">
|
||||
<img src="http://img.shields.io/npm/dm/unplugin-element-plus.svg">
|
||||
</a>
|
||||
<br>
|
||||
</p>
|
||||
|
||||
# unplugin-element-plus
|
||||
|
||||
[](https://github.com/element-plus/unplugin-element-plus/actions/workflows/unit-test.yml)
|
||||
|
||||
[English](README.md) | [中文](README.zh-CN.md)
|
||||
|
||||
这个仓库是用于 `Element Plus` 相关的 [unplugin](https://github.com/unjs/unplugin) 插件工具。感谢 [@antfu](https://github.com/antfu)。
|
||||
|
||||
###### 功能
|
||||
|
||||
- 💚 为 Element Plus 按需引入样式。
|
||||
- 🌎 替换默认语言。
|
||||
- ⚡️ 使用 <a href="https://github.com/unjs/unplugin">unplugin</a> 以支持 Vite, Webpack, Vue CLI, Rollup, esbuild 等。
|
||||
|
||||
## 安装
|
||||
|
||||
```bash
|
||||
npm i unplugin-element-plus -D
|
||||
```
|
||||
|
||||
<details>
|
||||
<summary>Vite</summary><br>
|
||||
|
||||
```ts
|
||||
// vite.config.ts
|
||||
import ElementPlus from 'unplugin-element-plus/vite'
|
||||
|
||||
export default {
|
||||
plugins: [
|
||||
ElementPlus({
|
||||
// options
|
||||
}),
|
||||
],
|
||||
}
|
||||
```
|
||||
|
||||
<br></details>
|
||||
|
||||
<details>
|
||||
<summary>Rollup</summary><br>
|
||||
|
||||
```ts
|
||||
// rollup.config.js
|
||||
import ElementPlus from 'unplugin-element-plus/rollup'
|
||||
|
||||
export default {
|
||||
plugins: [
|
||||
ElementPlus({
|
||||
// options
|
||||
}),
|
||||
],
|
||||
}
|
||||
```
|
||||
|
||||
<br></details>
|
||||
|
||||
<details>
|
||||
<summary>esbuild</summary><br>
|
||||
|
||||
```ts
|
||||
// esbuild.config.js
|
||||
import { build } from 'esbuild'
|
||||
|
||||
build({
|
||||
plugins: [
|
||||
require('unplugin-element-plus/esbuild')({
|
||||
// options
|
||||
}),
|
||||
],
|
||||
})
|
||||
```
|
||||
|
||||
<br></details>
|
||||
|
||||
<details>
|
||||
<summary>Webpack</summary><br>
|
||||
|
||||
```ts
|
||||
// webpack.config.js
|
||||
module.exports = {
|
||||
/* ... */
|
||||
plugins: [
|
||||
require('unplugin-element-plus/webpack')({
|
||||
// options
|
||||
}),
|
||||
],
|
||||
}
|
||||
```
|
||||
|
||||
<br></details>
|
||||
|
||||
<details>
|
||||
<summary>Vue CLI</summary><br>
|
||||
|
||||
```ts
|
||||
// vue.config.js
|
||||
module.exports = {
|
||||
configureWebpack: {
|
||||
plugins: [
|
||||
require('unplugin-element-plus/webpack')({
|
||||
// options
|
||||
}),
|
||||
],
|
||||
},
|
||||
}
|
||||
```
|
||||
|
||||
<br></details>
|
||||
|
||||
## 使用
|
||||
|
||||
插件会自动转换:
|
||||
|
||||
```javascript
|
||||
import { ElButton } from 'element-plus'
|
||||
|
||||
// ↓ ↓ ↓ ↓ ↓ ↓
|
||||
|
||||
import { ElButton } from 'element-plus'
|
||||
import 'element-plus/es/components/button/style/css'
|
||||
```
|
||||
|
||||
## 选项
|
||||
|
||||
### `useSource`
|
||||
|
||||
```ts
|
||||
type UseSource = boolean
|
||||
```
|
||||
|
||||
```javascript
|
||||
// useSource: false
|
||||
import { ElButton } from 'element-plus'
|
||||
|
||||
// ↓ ↓ ↓ ↓ ↓ ↓
|
||||
|
||||
import { ElButton } from 'element-plus'
|
||||
import 'element-plus/es/components/button/style/css'
|
||||
|
||||
// useSource: true
|
||||
import { ElButton } from 'element-plus'
|
||||
|
||||
// ↓ ↓ ↓ ↓ ↓ ↓
|
||||
|
||||
import { ElButton } from 'element-plus'
|
||||
import 'element-plus/es/components/button/style/index'
|
||||
```
|
||||
|
||||
### `lib`
|
||||
|
||||
一般这个是用不到的,不过作为一个通用选项,还是暴露了出来,如果有用到这个的结构一定要和
|
||||
ElementPlus 的输出包结构一致,详见 [unpkg.com](https://unpkg.com/element-plus)
|
||||
|
||||
```ts
|
||||
type Lib = string
|
||||
```
|
||||
|
||||
default: 'element-plus'
|
||||
|
||||
```javascript
|
||||
// lib: 'other-lib'
|
||||
import { ElButton } from 'other-lib'
|
||||
|
||||
// ↓ ↓ ↓ ↓ ↓ ↓
|
||||
|
||||
import { ElButton } from 'other-lib'
|
||||
import 'other-lib/es/components/button/style/css'
|
||||
```
|
||||
|
||||
### format
|
||||
|
||||
```ts
|
||||
type Format = 'esm' | 'cjs'
|
||||
```
|
||||
|
||||
default: 'esm'
|
||||
|
||||
`esm` 对应 `[lib]/es/components/*`
|
||||
|
||||
`cjs` 对应 `[lib]/lib/components/*`
|
||||
|
||||
- `/es` 对应 ES Module 输出
|
||||
- `/lib` 对应 CommonJS 的输出
|
||||
|
||||
使用该选项来选择使用哪一个包。
|
||||
|
||||
```javascript
|
||||
// format: 'cjs'
|
||||
import { ElButton } from 'element-plus'
|
||||
|
||||
// ↓ ↓ ↓ ↓ ↓ ↓
|
||||
|
||||
import { ElButton } from 'element-plus'
|
||||
import 'element-plus/lib/components/button/style/css'
|
||||
```
|
||||
|
||||
### prefix
|
||||
|
||||
```ts
|
||||
type Prefix = string
|
||||
```
|
||||
|
||||
```javascript
|
||||
// prefix = Al
|
||||
import { AlButton } from 'xx-lib'
|
||||
```
|
||||
|
||||
### `defaultLocale`
|
||||
|
||||
替换默认语言,你可以 [在这](https://github.com/element-plus/element-plus/tree/dev/packages/locale/lang) 查看所有语言列表。
|
||||
|
||||
## 其他插件
|
||||
|
||||
- [unplugin-vue-components](https://github.com/antfu/unplugin-vue-components)
|
||||
188
web/admin-spa/node_modules/unplugin-element-plus/dist/chunk-G5M4GEJP.mjs
generated
vendored
Normal file
188
web/admin-spa/node_modules/unplugin-element-plus/dist/chunk-G5M4GEJP.mjs
generated
vendored
Normal file
@@ -0,0 +1,188 @@
|
||||
// src/index.ts
|
||||
import { createFilter } from "@rollup/pluginutils";
|
||||
import { createUnplugin } from "unplugin";
|
||||
|
||||
// src/core/style.ts
|
||||
import { init, parse } from "es-module-lexer";
|
||||
import MagicString from "magic-string";
|
||||
var hyphenateRE = /\B([A-Z])/g;
|
||||
var hyphenate = (str) => str.replaceAll(hyphenateRE, "-$1").toLowerCase();
|
||||
var formatMap = {
|
||||
cjs: "lib",
|
||||
esm: "es"
|
||||
};
|
||||
var multilineCommentsRE = /\/\*\s(.|[\n\r])*?\*\//gm;
|
||||
var singlelineCommentsRE = /\/\/\s.*/g;
|
||||
function stripeComments(code) {
|
||||
return code.replaceAll(multilineCommentsRE, "").replaceAll(singlelineCommentsRE, "");
|
||||
}
|
||||
var transformImportStyle = (specifier, source, useSource = false, options) => {
|
||||
const { prefix, lib, format, ignoreComponents } = options;
|
||||
const statement = stripeComments(source.slice(specifier.ss, specifier.se));
|
||||
const leftBracket = statement.indexOf("{");
|
||||
if (leftBracket > -1) {
|
||||
const identifiers = statement.slice(leftBracket + 1, statement.indexOf("}"));
|
||||
const components = identifiers.split(",");
|
||||
const styleImports = [];
|
||||
components.forEach((c) => {
|
||||
const trimmed = c.replace(/\sas\s.+/, "").trim();
|
||||
if (trimmed.startsWith(prefix)) {
|
||||
const component = trimmed.slice(prefix.length);
|
||||
if (ignoreComponents.includes(component))
|
||||
return;
|
||||
if (useSource) {
|
||||
styleImports.push(
|
||||
`import '${lib}/${formatMap[format]}/components/${hyphenate(
|
||||
component
|
||||
)}/style/index'`
|
||||
);
|
||||
} else {
|
||||
styleImports.push(
|
||||
`import '${lib}/${formatMap[format]}/components/${hyphenate(
|
||||
component
|
||||
)}/style/css'`
|
||||
);
|
||||
}
|
||||
}
|
||||
});
|
||||
return styleImports.join("\n");
|
||||
}
|
||||
};
|
||||
var transformStyle = async (source, options) => {
|
||||
const { useSource, lib, prefix, format, ignoreComponents } = options;
|
||||
if (!source)
|
||||
return;
|
||||
await init;
|
||||
const specifiers = parse(source)[0].filter(({ n }) => {
|
||||
return n === lib || n === `${lib}/es/components` || n === `${lib}/lib/components`;
|
||||
});
|
||||
if (specifiers.length === 0)
|
||||
return;
|
||||
const styleImports = specifiers.map((s2) => {
|
||||
const ret = transformImportStyle(s2, source, useSource, {
|
||||
lib,
|
||||
prefix,
|
||||
format,
|
||||
ignoreComponents
|
||||
});
|
||||
return ret;
|
||||
}).filter((s2) => s2).join("\n");
|
||||
const lastSpecifier = specifiers.at(-1);
|
||||
const s = new MagicString(source);
|
||||
s.appendLeft(lastSpecifier.se + 1, `
|
||||
${styleImports}
|
||||
`);
|
||||
return {
|
||||
code: s.toString(),
|
||||
get map() {
|
||||
return s.generateMap({ hires: true, includeContent: true });
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
// node_modules/.pnpm/escape-string-regexp@5.0.0/node_modules/escape-string-regexp/index.js
|
||||
function escapeStringRegexp(string) {
|
||||
if (typeof string !== "string") {
|
||||
throw new TypeError("Expected a string");
|
||||
}
|
||||
return string.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
||||
}
|
||||
|
||||
// src/core/default-locale.ts
|
||||
var getLocaleRE = (options) => new RegExp(
|
||||
`${escapeStringRegexp(`${options.lib}/`)}(es|lib)${escapeStringRegexp(
|
||||
"/hooks/use-locale/index"
|
||||
)}`
|
||||
);
|
||||
var transformDefaultLocale = (options, source, id) => {
|
||||
if (!id.match(getLocaleRE(options)))
|
||||
return;
|
||||
return source.replace(
|
||||
"locale/lang/en",
|
||||
`locale/lang/${options.defaultLocale}`
|
||||
);
|
||||
};
|
||||
var getViteDepPlugin = (options) => {
|
||||
const localeImporterRE = new RegExp(
|
||||
`${escapeStringRegexp(
|
||||
`node_modules/${options.lib}/`
|
||||
)}(es|lib)${escapeStringRegexp("/hooks/use-locale/index")}`
|
||||
);
|
||||
const localePath = "/locale/lang/en";
|
||||
const localePathFixed = `/locale/lang/${options.defaultLocale}`;
|
||||
return {
|
||||
name: "unplugin-element-plus:default-locale",
|
||||
setup(build) {
|
||||
build.onResolve(
|
||||
{
|
||||
filter: new RegExp(escapeStringRegexp(localePath)),
|
||||
namespace: "file"
|
||||
},
|
||||
({ path, importer, kind, resolveDir }) => {
|
||||
if (localeImporterRE.test(importer))
|
||||
return build.resolve(path.replace(localePath, localePathFixed), {
|
||||
importer,
|
||||
kind,
|
||||
resolveDir
|
||||
});
|
||||
}
|
||||
);
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
// src/index.ts
|
||||
var defaultOptions = {
|
||||
include: [
|
||||
"**/*.vue",
|
||||
"**/*.ts",
|
||||
"**/*.js",
|
||||
"**/*.tsx",
|
||||
"**/*.jsx",
|
||||
"**/*.vue?vue&type=script*"
|
||||
],
|
||||
exclude: [/[/\\]node_modules[/\\]/, /[/\\]\.git[/\\]/, /[/\\]\.nuxt[/\\]/],
|
||||
lib: "element-plus",
|
||||
ignoreComponents: [],
|
||||
useSource: false,
|
||||
defaultLocale: "",
|
||||
format: "esm",
|
||||
prefix: "El",
|
||||
sourceMap: false
|
||||
};
|
||||
var src_default = createUnplugin((userOptions = {}) => {
|
||||
const options = Object.assign(defaultOptions, userOptions);
|
||||
const filter = createFilter(options.include, options.exclude);
|
||||
return {
|
||||
name: "unplugin-element-plus",
|
||||
enforce: "post",
|
||||
transformInclude(id) {
|
||||
return getLocaleRE(options).test(id) || filter(id);
|
||||
},
|
||||
transform(source, id) {
|
||||
if (options.defaultLocale) {
|
||||
const result = transformDefaultLocale(options, source, id);
|
||||
if (result)
|
||||
return result;
|
||||
}
|
||||
return transformStyle(source, options);
|
||||
},
|
||||
vite: {
|
||||
config() {
|
||||
if (options.defaultLocale) {
|
||||
return {
|
||||
optimizeDeps: {
|
||||
esbuildOptions: {
|
||||
plugins: [getViteDepPlugin(options)]
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
export {
|
||||
src_default
|
||||
};
|
||||
188
web/admin-spa/node_modules/unplugin-element-plus/dist/chunk-VTB3FEKN.js
generated
vendored
Normal file
188
web/admin-spa/node_modules/unplugin-element-plus/dist/chunk-VTB3FEKN.js
generated
vendored
Normal file
@@ -0,0 +1,188 @@
|
||||
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }// src/index.ts
|
||||
var _pluginutils = require('@rollup/pluginutils');
|
||||
var _unplugin = require('unplugin');
|
||||
|
||||
// src/core/style.ts
|
||||
var _esmodulelexer = require('es-module-lexer');
|
||||
var _magicstring = require('magic-string'); var _magicstring2 = _interopRequireDefault(_magicstring);
|
||||
var hyphenateRE = /\B([A-Z])/g;
|
||||
var hyphenate = (str) => str.replaceAll(hyphenateRE, "-$1").toLowerCase();
|
||||
var formatMap = {
|
||||
cjs: "lib",
|
||||
esm: "es"
|
||||
};
|
||||
var multilineCommentsRE = /\/\*\s(.|[\n\r])*?\*\//gm;
|
||||
var singlelineCommentsRE = /\/\/\s.*/g;
|
||||
function stripeComments(code) {
|
||||
return code.replaceAll(multilineCommentsRE, "").replaceAll(singlelineCommentsRE, "");
|
||||
}
|
||||
var transformImportStyle = (specifier, source, useSource = false, options) => {
|
||||
const { prefix, lib, format, ignoreComponents } = options;
|
||||
const statement = stripeComments(source.slice(specifier.ss, specifier.se));
|
||||
const leftBracket = statement.indexOf("{");
|
||||
if (leftBracket > -1) {
|
||||
const identifiers = statement.slice(leftBracket + 1, statement.indexOf("}"));
|
||||
const components = identifiers.split(",");
|
||||
const styleImports = [];
|
||||
components.forEach((c) => {
|
||||
const trimmed = c.replace(/\sas\s.+/, "").trim();
|
||||
if (trimmed.startsWith(prefix)) {
|
||||
const component = trimmed.slice(prefix.length);
|
||||
if (ignoreComponents.includes(component))
|
||||
return;
|
||||
if (useSource) {
|
||||
styleImports.push(
|
||||
`import '${lib}/${formatMap[format]}/components/${hyphenate(
|
||||
component
|
||||
)}/style/index'`
|
||||
);
|
||||
} else {
|
||||
styleImports.push(
|
||||
`import '${lib}/${formatMap[format]}/components/${hyphenate(
|
||||
component
|
||||
)}/style/css'`
|
||||
);
|
||||
}
|
||||
}
|
||||
});
|
||||
return styleImports.join("\n");
|
||||
}
|
||||
};
|
||||
var transformStyle = async (source, options) => {
|
||||
const { useSource, lib, prefix, format, ignoreComponents } = options;
|
||||
if (!source)
|
||||
return;
|
||||
await _esmodulelexer.init;
|
||||
const specifiers = _esmodulelexer.parse.call(void 0, source)[0].filter(({ n }) => {
|
||||
return n === lib || n === `${lib}/es/components` || n === `${lib}/lib/components`;
|
||||
});
|
||||
if (specifiers.length === 0)
|
||||
return;
|
||||
const styleImports = specifiers.map((s2) => {
|
||||
const ret = transformImportStyle(s2, source, useSource, {
|
||||
lib,
|
||||
prefix,
|
||||
format,
|
||||
ignoreComponents
|
||||
});
|
||||
return ret;
|
||||
}).filter((s2) => s2).join("\n");
|
||||
const lastSpecifier = specifiers.at(-1);
|
||||
const s = new (0, _magicstring2.default)(source);
|
||||
s.appendLeft(lastSpecifier.se + 1, `
|
||||
${styleImports}
|
||||
`);
|
||||
return {
|
||||
code: s.toString(),
|
||||
get map() {
|
||||
return s.generateMap({ hires: true, includeContent: true });
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
// node_modules/.pnpm/escape-string-regexp@5.0.0/node_modules/escape-string-regexp/index.js
|
||||
function escapeStringRegexp(string) {
|
||||
if (typeof string !== "string") {
|
||||
throw new TypeError("Expected a string");
|
||||
}
|
||||
return string.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
||||
}
|
||||
|
||||
// src/core/default-locale.ts
|
||||
var getLocaleRE = (options) => new RegExp(
|
||||
`${escapeStringRegexp(`${options.lib}/`)}(es|lib)${escapeStringRegexp(
|
||||
"/hooks/use-locale/index"
|
||||
)}`
|
||||
);
|
||||
var transformDefaultLocale = (options, source, id) => {
|
||||
if (!id.match(getLocaleRE(options)))
|
||||
return;
|
||||
return source.replace(
|
||||
"locale/lang/en",
|
||||
`locale/lang/${options.defaultLocale}`
|
||||
);
|
||||
};
|
||||
var getViteDepPlugin = (options) => {
|
||||
const localeImporterRE = new RegExp(
|
||||
`${escapeStringRegexp(
|
||||
`node_modules/${options.lib}/`
|
||||
)}(es|lib)${escapeStringRegexp("/hooks/use-locale/index")}`
|
||||
);
|
||||
const localePath = "/locale/lang/en";
|
||||
const localePathFixed = `/locale/lang/${options.defaultLocale}`;
|
||||
return {
|
||||
name: "unplugin-element-plus:default-locale",
|
||||
setup(build) {
|
||||
build.onResolve(
|
||||
{
|
||||
filter: new RegExp(escapeStringRegexp(localePath)),
|
||||
namespace: "file"
|
||||
},
|
||||
({ path, importer, kind, resolveDir }) => {
|
||||
if (localeImporterRE.test(importer))
|
||||
return build.resolve(path.replace(localePath, localePathFixed), {
|
||||
importer,
|
||||
kind,
|
||||
resolveDir
|
||||
});
|
||||
}
|
||||
);
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
// src/index.ts
|
||||
var defaultOptions = {
|
||||
include: [
|
||||
"**/*.vue",
|
||||
"**/*.ts",
|
||||
"**/*.js",
|
||||
"**/*.tsx",
|
||||
"**/*.jsx",
|
||||
"**/*.vue?vue&type=script*"
|
||||
],
|
||||
exclude: [/[/\\]node_modules[/\\]/, /[/\\]\.git[/\\]/, /[/\\]\.nuxt[/\\]/],
|
||||
lib: "element-plus",
|
||||
ignoreComponents: [],
|
||||
useSource: false,
|
||||
defaultLocale: "",
|
||||
format: "esm",
|
||||
prefix: "El",
|
||||
sourceMap: false
|
||||
};
|
||||
var src_default = _unplugin.createUnplugin.call(void 0, (userOptions = {}) => {
|
||||
const options = Object.assign(defaultOptions, userOptions);
|
||||
const filter = _pluginutils.createFilter.call(void 0, options.include, options.exclude);
|
||||
return {
|
||||
name: "unplugin-element-plus",
|
||||
enforce: "post",
|
||||
transformInclude(id) {
|
||||
return getLocaleRE(options).test(id) || filter(id);
|
||||
},
|
||||
transform(source, id) {
|
||||
if (options.defaultLocale) {
|
||||
const result = transformDefaultLocale(options, source, id);
|
||||
if (result)
|
||||
return result;
|
||||
}
|
||||
return transformStyle(source, options);
|
||||
},
|
||||
vite: {
|
||||
config() {
|
||||
if (options.defaultLocale) {
|
||||
return {
|
||||
optimizeDeps: {
|
||||
esbuildOptions: {
|
||||
plugins: [getViteDepPlugin(options)]
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
|
||||
exports.src_default = src_default;
|
||||
7
web/admin-spa/node_modules/unplugin-element-plus/dist/esbuild.d.mts
generated
vendored
Normal file
7
web/admin-spa/node_modules/unplugin-element-plus/dist/esbuild.d.mts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import * as esbuild from 'esbuild';
|
||||
import { O as Options } from './types-8f2a7b6a.js';
|
||||
import '@rollup/pluginutils';
|
||||
|
||||
declare const _default: (options: Partial<Options>) => esbuild.Plugin;
|
||||
|
||||
export { _default as default };
|
||||
7
web/admin-spa/node_modules/unplugin-element-plus/dist/esbuild.d.ts
generated
vendored
Normal file
7
web/admin-spa/node_modules/unplugin-element-plus/dist/esbuild.d.ts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import * as esbuild from 'esbuild';
|
||||
import { O as Options } from './types-8f2a7b6a.js';
|
||||
import '@rollup/pluginutils';
|
||||
|
||||
declare const _default: (options: Partial<Options>) => esbuild.Plugin;
|
||||
|
||||
export = _default;
|
||||
11
web/admin-spa/node_modules/unplugin-element-plus/dist/esbuild.js
generated
vendored
Normal file
11
web/admin-spa/node_modules/unplugin-element-plus/dist/esbuild.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
||||
|
||||
var _chunkVTB3FEKNjs = require('./chunk-VTB3FEKN.js');
|
||||
|
||||
// src/esbuild.ts
|
||||
var esbuild_default = _chunkVTB3FEKNjs.src_default.esbuild;
|
||||
|
||||
|
||||
exports.default = esbuild_default;
|
||||
|
||||
module.exports = exports.default
|
||||
9
web/admin-spa/node_modules/unplugin-element-plus/dist/esbuild.mjs
generated
vendored
Normal file
9
web/admin-spa/node_modules/unplugin-element-plus/dist/esbuild.mjs
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
import {
|
||||
src_default
|
||||
} from "./chunk-G5M4GEJP.mjs";
|
||||
|
||||
// src/esbuild.ts
|
||||
var esbuild_default = src_default.esbuild;
|
||||
export {
|
||||
esbuild_default as default
|
||||
};
|
||||
7
web/admin-spa/node_modules/unplugin-element-plus/dist/index.d.mts
generated
vendored
Normal file
7
web/admin-spa/node_modules/unplugin-element-plus/dist/index.d.mts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import * as unplugin from 'unplugin';
|
||||
import { O as Options } from './types-8f2a7b6a.js';
|
||||
import '@rollup/pluginutils';
|
||||
|
||||
declare const _default: unplugin.UnpluginInstance<Partial<Options>, boolean>;
|
||||
|
||||
export { Options, _default as default };
|
||||
7
web/admin-spa/node_modules/unplugin-element-plus/dist/index.d.ts
generated
vendored
Normal file
7
web/admin-spa/node_modules/unplugin-element-plus/dist/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import * as unplugin from 'unplugin';
|
||||
import { O as Options } from './types-8f2a7b6a.js';
|
||||
import '@rollup/pluginutils';
|
||||
|
||||
declare const _default: unplugin.UnpluginInstance<Partial<Options>, boolean>;
|
||||
|
||||
export { Options, _default as default };
|
||||
8
web/admin-spa/node_modules/unplugin-element-plus/dist/index.js
generated
vendored
Normal file
8
web/admin-spa/node_modules/unplugin-element-plus/dist/index.js
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
||||
|
||||
var _chunkVTB3FEKNjs = require('./chunk-VTB3FEKN.js');
|
||||
|
||||
|
||||
exports.default = _chunkVTB3FEKNjs.src_default;
|
||||
|
||||
module.exports = exports.default
|
||||
6
web/admin-spa/node_modules/unplugin-element-plus/dist/index.mjs
generated
vendored
Normal file
6
web/admin-spa/node_modules/unplugin-element-plus/dist/index.mjs
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
import {
|
||||
src_default
|
||||
} from "./chunk-G5M4GEJP.mjs";
|
||||
export {
|
||||
src_default as default
|
||||
};
|
||||
6
web/admin-spa/node_modules/unplugin-element-plus/dist/nuxt.d.mts
generated
vendored
Normal file
6
web/admin-spa/node_modules/unplugin-element-plus/dist/nuxt.d.mts
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
import { O as Options } from './types-8f2a7b6a.js';
|
||||
import '@rollup/pluginutils';
|
||||
|
||||
declare function export_default(this: any, options: Options): void;
|
||||
|
||||
export { export_default as default };
|
||||
6
web/admin-spa/node_modules/unplugin-element-plus/dist/nuxt.d.ts
generated
vendored
Normal file
6
web/admin-spa/node_modules/unplugin-element-plus/dist/nuxt.d.ts
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
import { O as Options } from './types-8f2a7b6a.js';
|
||||
import '@rollup/pluginutils';
|
||||
|
||||
declare function export_default(this: any, options: Options): void;
|
||||
|
||||
export = export_default;
|
||||
20
web/admin-spa/node_modules/unplugin-element-plus/dist/nuxt.js
generated
vendored
Normal file
20
web/admin-spa/node_modules/unplugin-element-plus/dist/nuxt.js
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
||||
|
||||
var _chunkVTB3FEKNjs = require('./chunk-VTB3FEKN.js');
|
||||
|
||||
// src/nuxt.ts
|
||||
function nuxt_default(options) {
|
||||
this.extendBuild((config) => {
|
||||
config.plugins = config.plugins || [];
|
||||
config.plugins.unshift(_chunkVTB3FEKNjs.src_default.webpack(options));
|
||||
});
|
||||
this.nuxt.hook("vite:extend", (vite) => {
|
||||
vite.config.plugins = vite.config.plugins || [];
|
||||
vite.config.plugins.push(_chunkVTB3FEKNjs.src_default.vite(options));
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
exports.default = nuxt_default;
|
||||
|
||||
module.exports = exports.default
|
||||
18
web/admin-spa/node_modules/unplugin-element-plus/dist/nuxt.mjs
generated
vendored
Normal file
18
web/admin-spa/node_modules/unplugin-element-plus/dist/nuxt.mjs
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
import {
|
||||
src_default
|
||||
} from "./chunk-G5M4GEJP.mjs";
|
||||
|
||||
// src/nuxt.ts
|
||||
function nuxt_default(options) {
|
||||
this.extendBuild((config) => {
|
||||
config.plugins = config.plugins || [];
|
||||
config.plugins.unshift(src_default.webpack(options));
|
||||
});
|
||||
this.nuxt.hook("vite:extend", (vite) => {
|
||||
vite.config.plugins = vite.config.plugins || [];
|
||||
vite.config.plugins.push(src_default.vite(options));
|
||||
});
|
||||
}
|
||||
export {
|
||||
nuxt_default as default
|
||||
};
|
||||
7
web/admin-spa/node_modules/unplugin-element-plus/dist/rollup.d.mts
generated
vendored
Normal file
7
web/admin-spa/node_modules/unplugin-element-plus/dist/rollup.d.mts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import * as rollup from 'rollup';
|
||||
import { O as Options } from './types-8f2a7b6a.js';
|
||||
import '@rollup/pluginutils';
|
||||
|
||||
declare const _default: (options: Partial<Options>) => rollup.Plugin | rollup.Plugin[];
|
||||
|
||||
export { _default as default };
|
||||
7
web/admin-spa/node_modules/unplugin-element-plus/dist/rollup.d.ts
generated
vendored
Normal file
7
web/admin-spa/node_modules/unplugin-element-plus/dist/rollup.d.ts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import * as rollup from 'rollup';
|
||||
import { O as Options } from './types-8f2a7b6a.js';
|
||||
import '@rollup/pluginutils';
|
||||
|
||||
declare const _default: (options: Partial<Options>) => rollup.Plugin | rollup.Plugin[];
|
||||
|
||||
export = _default;
|
||||
11
web/admin-spa/node_modules/unplugin-element-plus/dist/rollup.js
generated
vendored
Normal file
11
web/admin-spa/node_modules/unplugin-element-plus/dist/rollup.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
||||
|
||||
var _chunkVTB3FEKNjs = require('./chunk-VTB3FEKN.js');
|
||||
|
||||
// src/rollup.ts
|
||||
var rollup_default = _chunkVTB3FEKNjs.src_default.rollup;
|
||||
|
||||
|
||||
exports.default = rollup_default;
|
||||
|
||||
module.exports = exports.default
|
||||
9
web/admin-spa/node_modules/unplugin-element-plus/dist/rollup.mjs
generated
vendored
Normal file
9
web/admin-spa/node_modules/unplugin-element-plus/dist/rollup.mjs
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
import {
|
||||
src_default
|
||||
} from "./chunk-G5M4GEJP.mjs";
|
||||
|
||||
// src/rollup.ts
|
||||
var rollup_default = src_default.rollup;
|
||||
export {
|
||||
rollup_default as default
|
||||
};
|
||||
27
web/admin-spa/node_modules/unplugin-element-plus/dist/types-8f2a7b6a.d.ts
generated
vendored
Normal file
27
web/admin-spa/node_modules/unplugin-element-plus/dist/types-8f2a7b6a.d.ts
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
import { FilterPattern } from '@rollup/pluginutils';
|
||||
|
||||
type Options = {
|
||||
/**
|
||||
* RegExp or glob to match files to be transformed
|
||||
*/
|
||||
include: FilterPattern;
|
||||
/**
|
||||
* RegExp or glob to match files to NOT be transformed
|
||||
*/
|
||||
exclude: FilterPattern;
|
||||
useSource: boolean;
|
||||
/** replace default locale */
|
||||
defaultLocale: string;
|
||||
/**
|
||||
* Array of component names that will not be transformed.
|
||||
* Can be useful for components that do not have an associated style file.
|
||||
* Do not include the prefix in the name.
|
||||
*/
|
||||
ignoreComponents: string[];
|
||||
lib: string;
|
||||
prefix: string;
|
||||
format: 'cjs' | 'esm';
|
||||
sourceMap: boolean;
|
||||
};
|
||||
|
||||
export { Options as O };
|
||||
7
web/admin-spa/node_modules/unplugin-element-plus/dist/vite.d.mts
generated
vendored
Normal file
7
web/admin-spa/node_modules/unplugin-element-plus/dist/vite.d.mts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import * as vite from 'vite';
|
||||
import { O as Options } from './types-8f2a7b6a.js';
|
||||
import '@rollup/pluginutils';
|
||||
|
||||
declare const _default: (options: Partial<Options>) => vite.Plugin | vite.Plugin[];
|
||||
|
||||
export { _default as default };
|
||||
7
web/admin-spa/node_modules/unplugin-element-plus/dist/vite.d.ts
generated
vendored
Normal file
7
web/admin-spa/node_modules/unplugin-element-plus/dist/vite.d.ts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import * as vite from 'vite';
|
||||
import { O as Options } from './types-8f2a7b6a.js';
|
||||
import '@rollup/pluginutils';
|
||||
|
||||
declare const _default: (options: Partial<Options>) => vite.Plugin | vite.Plugin[];
|
||||
|
||||
export = _default;
|
||||
11
web/admin-spa/node_modules/unplugin-element-plus/dist/vite.js
generated
vendored
Normal file
11
web/admin-spa/node_modules/unplugin-element-plus/dist/vite.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
||||
|
||||
var _chunkVTB3FEKNjs = require('./chunk-VTB3FEKN.js');
|
||||
|
||||
// src/vite.ts
|
||||
var vite_default = _chunkVTB3FEKNjs.src_default.vite;
|
||||
|
||||
|
||||
exports.default = vite_default;
|
||||
|
||||
module.exports = exports.default
|
||||
9
web/admin-spa/node_modules/unplugin-element-plus/dist/vite.mjs
generated
vendored
Normal file
9
web/admin-spa/node_modules/unplugin-element-plus/dist/vite.mjs
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
import {
|
||||
src_default
|
||||
} from "./chunk-G5M4GEJP.mjs";
|
||||
|
||||
// src/vite.ts
|
||||
var vite_default = src_default.vite;
|
||||
export {
|
||||
vite_default as default
|
||||
};
|
||||
6
web/admin-spa/node_modules/unplugin-element-plus/dist/webpack.d.mts
generated
vendored
Normal file
6
web/admin-spa/node_modules/unplugin-element-plus/dist/webpack.d.mts
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
import { O as Options } from './types-8f2a7b6a.js';
|
||||
import '@rollup/pluginutils';
|
||||
|
||||
declare const _default: (options: Partial<Options>) => WebpackPluginInstance;
|
||||
|
||||
export { _default as default };
|
||||
6
web/admin-spa/node_modules/unplugin-element-plus/dist/webpack.d.ts
generated
vendored
Normal file
6
web/admin-spa/node_modules/unplugin-element-plus/dist/webpack.d.ts
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
import { O as Options } from './types-8f2a7b6a.js';
|
||||
import '@rollup/pluginutils';
|
||||
|
||||
declare const _default: (options: Partial<Options>) => WebpackPluginInstance;
|
||||
|
||||
export = _default;
|
||||
11
web/admin-spa/node_modules/unplugin-element-plus/dist/webpack.js
generated
vendored
Normal file
11
web/admin-spa/node_modules/unplugin-element-plus/dist/webpack.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
||||
|
||||
var _chunkVTB3FEKNjs = require('./chunk-VTB3FEKN.js');
|
||||
|
||||
// src/webpack.ts
|
||||
var webpack_default = _chunkVTB3FEKNjs.src_default.webpack;
|
||||
|
||||
|
||||
exports.default = webpack_default;
|
||||
|
||||
module.exports = exports.default
|
||||
9
web/admin-spa/node_modules/unplugin-element-plus/dist/webpack.mjs
generated
vendored
Normal file
9
web/admin-spa/node_modules/unplugin-element-plus/dist/webpack.mjs
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
import {
|
||||
src_default
|
||||
} from "./chunk-G5M4GEJP.mjs";
|
||||
|
||||
// src/webpack.ts
|
||||
var webpack_default = src_default.webpack;
|
||||
export {
|
||||
webpack_default as default
|
||||
};
|
||||
130
web/admin-spa/node_modules/unplugin-element-plus/package.json
generated
vendored
Normal file
130
web/admin-spa/node_modules/unplugin-element-plus/package.json
generated
vendored
Normal file
@@ -0,0 +1,130 @@
|
||||
{
|
||||
"name": "unplugin-element-plus",
|
||||
"version": "0.8.0",
|
||||
"packageManager": "pnpm@8.6.6",
|
||||
"keywords": [
|
||||
"element-plus",
|
||||
"unplugin",
|
||||
"vite",
|
||||
"webpack",
|
||||
"rollup",
|
||||
"esbuild",
|
||||
"plugin"
|
||||
],
|
||||
"homepage": "https://github.com/element-plus/unplugin-element-plus/tree/main/#readme",
|
||||
"bugs": {
|
||||
"url": "https://github.com/element-plus/unplugin-element-plus/issues"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/element-plus/unplugin-element-plus"
|
||||
},
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"main": "dist/index.js",
|
||||
"module": "dist/index.mjs",
|
||||
"types": "dist/index.d.ts",
|
||||
"exports": {
|
||||
".": {
|
||||
"types": {
|
||||
"require": "./dist/index.d.ts",
|
||||
"import": "./dist/index.d.mts"
|
||||
},
|
||||
"require": "./dist/index.js",
|
||||
"import": "./dist/index.mjs"
|
||||
},
|
||||
"./vite": {
|
||||
"types": {
|
||||
"require": "./dist/vite.d.ts",
|
||||
"import": "./dist/vite.d.mts"
|
||||
},
|
||||
"require": "./dist/vite.js",
|
||||
"import": "./dist/vite.mjs"
|
||||
},
|
||||
"./webpack": {
|
||||
"types": {
|
||||
"require": "./dist/webpack.d.ts",
|
||||
"import": "./dist/webpack.d.mts"
|
||||
},
|
||||
"require": "./dist/webpack.js",
|
||||
"import": "./dist/webpack.mjs"
|
||||
},
|
||||
"./rollup": {
|
||||
"types": {
|
||||
"require": "./dist/rollup.d.ts",
|
||||
"import": "./dist/rollup.d.mts"
|
||||
},
|
||||
"require": "./dist/rollup.js",
|
||||
"import": "./dist/rollup.mjs"
|
||||
},
|
||||
"./esbuild": {
|
||||
"types": {
|
||||
"require": "./dist/esbuild.d.ts",
|
||||
"import": "./dist/esbuild.d.mts"
|
||||
},
|
||||
"require": "./dist/esbuild.js",
|
||||
"import": "./dist/esbuild.mjs"
|
||||
},
|
||||
"./nuxt": {
|
||||
"types": {
|
||||
"require": "./dist/nuxt.d.ts",
|
||||
"import": "./dist/nuxt.d.mts"
|
||||
},
|
||||
"require": "./dist/nuxt.js",
|
||||
"import": "./dist/nuxt.mjs"
|
||||
},
|
||||
"./*": "./*"
|
||||
},
|
||||
"typesVersions": {
|
||||
"*": {
|
||||
"*": [
|
||||
"./dist/*",
|
||||
"./*"
|
||||
]
|
||||
}
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"scripts": {
|
||||
"lint": "eslint .",
|
||||
"lint:fix": "pnpm run lint --fix",
|
||||
"build": "tsup",
|
||||
"build:examples": "pnpm --filter \"./examples/*\" build",
|
||||
"dev": "tsup --watch",
|
||||
"release": "bumpp",
|
||||
"vite:build": "npm -C examples/vite run build",
|
||||
"vite:dev": "npm -C examples/vite run dev",
|
||||
"test": "vitest"
|
||||
},
|
||||
"dependencies": {
|
||||
"@rollup/pluginutils": "^5.0.2",
|
||||
"es-module-lexer": "^1.3.0",
|
||||
"magic-string": "^0.30.1",
|
||||
"unplugin": "^1.3.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@sxzz/eslint-config": "^3.1.0",
|
||||
"@sxzz/prettier-config": "^1.0.3",
|
||||
"@types/node": "^20.4.0",
|
||||
"@vitest/ui": "^0.33.0",
|
||||
"bumpp": "^9.1.1",
|
||||
"esbuild": "~0.18.11",
|
||||
"escape-string-regexp": "^5.0.0",
|
||||
"eslint": "^8.44.0",
|
||||
"fast-glob": "^3.3.0",
|
||||
"prettier": "^3.0.0",
|
||||
"rollup": "^3.26.2",
|
||||
"rollup-plugin-esbuild": "^5.0.0",
|
||||
"tsup": "^7.2.0",
|
||||
"tsx": "^3.12.7",
|
||||
"typescript": "^5.1.6",
|
||||
"vite": "^4.4.1",
|
||||
"vitest": "^0.33.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=14.19.0"
|
||||
},
|
||||
"prettier": "@sxzz/prettier-config"
|
||||
}
|
||||
Reference in New Issue
Block a user