Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
剑九 六千里
vue-vben-admin
提交
af6ab989
V
vue-vben-admin
项目概览
剑九 六千里
/
vue-vben-admin
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
1
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vue-vben-admin
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
af6ab989
编写于
2月 28, 2022
作者:
V
vben
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: build error
上级
ecc2135b
变更
11
展开全部
隐藏空白更改
内联
并排
Showing
11 changed file
with
1809 addition
and
1596 deletion
+1809
-1596
build/vite/plugin/compress.ts
build/vite/plugin/compress.ts
+3
-3
build/vite/plugin/html.ts
build/vite/plugin/html.ts
+3
-3
build/vite/plugin/index.ts
build/vite/plugin/index.ts
+2
-1
build/vite/plugin/styleImport.ts
build/vite/plugin/styleImport.ts
+2
-2
build/vite/plugin/svgSprite.ts
build/vite/plugin/svgSprite.ts
+2
-2
build/vite/plugin/theme.ts
build/vite/plugin/theme.ts
+3
-3
package.json
package.json
+63
-62
pnpm-lock.yaml
pnpm-lock.yaml
+1724
-1513
src/components/Excel/src/Export2Excel.ts
src/components/Excel/src/Export2Excel.ts
+1
-1
src/components/Excel/src/ImportExcel.vue
src/components/Excel/src/ImportExcel.vue
+1
-1
tests/server/package.json
tests/server/package.json
+5
-5
未找到文件。
build/vite/plugin/compress.ts
浏览文件 @
af6ab989
...
...
@@ -2,16 +2,16 @@
* Used to package and output gzip. Note that this does not work properly in Vite, the specific reason is still being investigated
* https://github.com/anncwb/vite-plugin-compression
*/
import
type
{
Plugin
}
from
'
vite
'
;
import
type
{
Plugin
Option
}
from
'
vite
'
;
import
compressPlugin
from
'
vite-plugin-compression
'
;
export
function
configCompressPlugin
(
compress
:
'
gzip
'
|
'
brotli
'
|
'
none
'
,
deleteOriginFile
=
false
,
):
Plugin
|
Plugi
n
[]
{
):
Plugin
Option
|
PluginOptio
n
[]
{
const
compressList
=
compress
.
split
(
'
,
'
);
const
plugins
:
Plugin
[]
=
[];
const
plugins
:
Plugin
Option
[]
=
[];
if
(
compressList
.
includes
(
'
gzip
'
))
{
plugins
.
push
(
...
...
build/vite/plugin/html.ts
浏览文件 @
af6ab989
...
...
@@ -2,8 +2,8 @@
* Plugin to minimize and use ejs template syntax in index.html.
* https://github.com/anncwb/vite-plugin-html
*/
import
type
{
Plugin
}
from
'
vite
'
;
import
html
from
'
vite-plugin-html
'
;
import
type
{
Plugin
Option
}
from
'
vite
'
;
import
{
createHtmlPlugin
}
from
'
vite-plugin-html
'
;
import
pkg
from
'
../../../package.json
'
;
import
{
GLOB_CONFIG_FILE_NAME
}
from
'
../../constant
'
;
...
...
@@ -16,7 +16,7 @@ export function configHtmlPlugin(env: ViteEnv, isBuild: boolean) {
return
`
${
path
||
'
/
'
}${
GLOB_CONFIG_FILE_NAME
}
?v=
${
pkg
.
version
}
-
${
new
Date
().
getTime
()}
`
;
};
const
htmlPlugin
:
Plugin
[]
=
html
({
const
htmlPlugin
:
Plugin
Option
[]
=
createHtmlPlugin
({
minify
:
isBuild
,
inject
:
{
// Inject data into ejs template
...
...
build/vite/plugin/index.ts
浏览文件 @
af6ab989
import
{
PluginOption
}
from
'
vite
'
;
import
vue
from
'
@vitejs/plugin-vue
'
;
import
vueJsx
from
'
@vitejs/plugin-vue-jsx
'
;
import
legacy
from
'
@vitejs/plugin-legacy
'
;
...
...
@@ -24,7 +25,7 @@ export function createVitePlugins(viteEnv: ViteEnv, isBuild: boolean) {
VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE
,
}
=
viteEnv
;
const
vitePlugins
=
[
const
vitePlugins
:
(
PluginOption
|
PluginOption
[])[]
=
[
// have to
vue
(),
// have to
...
...
build/vite/plugin/styleImport.ts
浏览文件 @
af6ab989
...
...
@@ -2,13 +2,13 @@
* Introduces component library styles on demand.
* https://github.com/anncwb/vite-plugin-style-import
*/
import
styleImport
from
'
vite-plugin-style-import
'
;
import
{
createStyleImportPlugin
}
from
'
vite-plugin-style-import
'
;
export
function
configStyleImportPlugin
(
_isBuild
:
boolean
)
{
// if (!isBuild) {
// return [];
// }
const
styleImportPlugin
=
styleImport
({
const
styleImportPlugin
=
createStyleImportPlugin
({
libs
:
[
{
libraryName
:
'
ant-design-vue
'
,
...
...
build/vite/plugin/svgSprite.ts
浏览文件 @
af6ab989
...
...
@@ -3,11 +3,11 @@
* https://github.com/anncwb/vite-plugin-svg-icons
*/
import
SvgIconsPlugin
from
'
vite-plugin-svg-icons
'
;
import
{
createSvgIconsPlugin
}
from
'
vite-plugin-svg-icons
'
;
import
path
from
'
path
'
;
export
function
configSvgIconsPlugin
(
isBuild
:
boolean
)
{
const
svgIconsPlugin
=
SvgIconsPlugin
({
const
svgIconsPlugin
=
create
SvgIconsPlugin
({
iconDirs
:
[
path
.
resolve
(
process
.
cwd
(),
'
src/assets/icons
'
)],
svgoOptions
:
isBuild
,
// default
...
...
build/vite/plugin/theme.ts
浏览文件 @
af6ab989
...
...
@@ -2,7 +2,7 @@
* Vite plugin for website theme color switching
* https://github.com/anncwb/vite-plugin-theme
*/
import
type
{
Plugin
}
from
'
vite
'
;
import
type
{
Plugin
Option
}
from
'
vite
'
;
import
path
from
'
path
'
;
import
{
viteThemePlugin
,
...
...
@@ -14,7 +14,7 @@ import {
import
{
getThemeColors
,
generateColors
}
from
'
../../config/themeConfig
'
;
import
{
generateModifyVars
}
from
'
../../generate/generateModifyVars
'
;
export
function
configThemePlugin
(
isBuild
:
boolean
):
Plugin
[]
{
export
function
configThemePlugin
(
isBuild
:
boolean
):
Plugin
Option
[]
{
const
colors
=
generateColors
({
mixDarken
,
mixLighten
,
...
...
@@ -85,5 +85,5 @@ export function configThemePlugin(isBuild: boolean): Plugin[] {
}),
];
return
plugin
as
unknown
as
Plugin
[];
return
plugin
as
unknown
as
Plugin
Option
[];
}
package.json
浏览文件 @
af6ab989
...
...
@@ -35,117 +35,118 @@
"dependencies"
:
{
"
@ant-design/colors
"
:
"
^6.0.0
"
,
"
@ant-design/icons-vue
"
:
"
^6.0.1
"
,
"
@iconify/iconify
"
:
"
^2.1.
1
"
,
"
@logicflow/core
"
:
"
^1.
0.7
"
,
"
@logicflow/extension
"
:
"
^1.
0.7
"
,
"
@vue/runtime-core
"
:
"
^3.2.
29
"
,
"
@vue/shared
"
:
"
^3.2.
29
"
,
"
@vueuse/core
"
:
"
^7.
5.4
"
,
"
@vueuse/shared
"
:
"
^7.
5.4
"
,
"
@zxcvbn-ts/core
"
:
"
^
1.2
.0
"
,
"
ant-design-vue
"
:
"
3.0.0-beta.
8
"
,
"
axios
"
:
"
^0.2
5
.0
"
,
"
codemirror
"
:
"
^5.65.
1
"
,
"
@iconify/iconify
"
:
"
^2.1.
2
"
,
"
@logicflow/core
"
:
"
^1.
1.4
"
,
"
@logicflow/extension
"
:
"
^1.
1.4
"
,
"
@vue/runtime-core
"
:
"
^3.2.
31
"
,
"
@vue/shared
"
:
"
^3.2.
31
"
,
"
@vueuse/core
"
:
"
^7.
7.0
"
,
"
@vueuse/shared
"
:
"
^7.
7.0
"
,
"
@zxcvbn-ts/core
"
:
"
^
2.0
.0
"
,
"
ant-design-vue
"
:
"
3.0.0-beta.
10
"
,
"
axios
"
:
"
^0.2
6
.0
"
,
"
codemirror
"
:
"
^5.65.
2
"
,
"
cropperjs
"
:
"
^1.5.12
"
,
"
crypto-js
"
:
"
^4.1.1
"
,
"
dayjs
"
:
"
^1.10.7
"
,
"
echarts
"
:
"
^5.
2.2
"
,
"
intro.js
"
:
"
^
4.3
.0
"
,
"
echarts
"
:
"
^5.
3.0
"
,
"
intro.js
"
:
"
^
5.0
.0
"
,
"
lodash-es
"
:
"
^4.17.21
"
,
"
mockjs
"
:
"
^1.1.0
"
,
"
nprogress
"
:
"
^0.2.0
"
,
"
path-to-regexp
"
:
"
^6.2.0
"
,
"
pinia
"
:
"
2.0.
9
"
,
"
pinia
"
:
"
2.0.
11
"
,
"
print-js
"
:
"
^1.6.0
"
,
"
qrcode
"
:
"
^1.5.0
"
,
"
qs
"
:
"
^6.10.3
"
,
"
resize-observer-polyfill
"
:
"
^1.5.1
"
,
"
showdown
"
:
"
^
1.9.1
"
,
"
showdown
"
:
"
^
2.0.0
"
,
"
sortablejs
"
:
"
^1.14.0
"
,
"
tinymce
"
:
"
^5.10.
2
"
,
"
tinymce
"
:
"
^5.10.
3
"
,
"
vditor
"
:
"
^3.8.11
"
,
"
vue
"
:
"
^3.2.
29
"
,
"
vue
"
:
"
^3.2.
31
"
,
"
vue-i18n
"
:
"
^9.1.9
"
,
"
vue-json-pretty
"
:
"
^
1.8.2
"
,
"
vue-json-pretty
"
:
"
^
2.0.6
"
,
"
vue-router
"
:
"
^4.0.12
"
,
"
vue-types
"
:
"
^4.1.1
"
,
"
xlsx
"
:
"
^0.1
7.5
"
"
xlsx
"
:
"
^0.1
8.2
"
},
"devDependencies"
:
{
"
@commitlint/cli
"
:
"
^16.
1.0
"
,
"
@commitlint/config-conventional
"
:
"
^16.
0.0
"
,
"
@iconify/json
"
:
"
^2.
0.28
"
,
"
@purge-icons/generated
"
:
"
^0.
7
.0
"
,
"
@commitlint/cli
"
:
"
^16.
2.1
"
,
"
@commitlint/config-conventional
"
:
"
^16.
2.1
"
,
"
@iconify/json
"
:
"
^2.
1.7
"
,
"
@purge-icons/generated
"
:
"
^0.
8
.0
"
,
"
@types/codemirror
"
:
"
^5.60.5
"
,
"
@types/crypto-js
"
:
"
^4.1.
0
"
,
"
@types/crypto-js
"
:
"
^4.1.
1
"
,
"
@types/fs-extra
"
:
"
^9.0.13
"
,
"
@types/inquirer
"
:
"
^8.
1.3
"
,
"
@types/inquirer
"
:
"
^8.
2.0
"
,
"
@types/intro.js
"
:
"
^3.0.2
"
,
"
@types/jest
"
:
"
^27.4.
0
"
,
"
@types/lodash-es
"
:
"
^4.17.
5
"
,
"
@types/jest
"
:
"
^27.4.
1
"
,
"
@types/lodash-es
"
:
"
^4.17.
6
"
,
"
@types/mockjs
"
:
"
^1.0.6
"
,
"
@types/node
"
:
"
^17.0.
10
"
,
"
@types/node
"
:
"
^17.0.
21
"
,
"
@types/nprogress
"
:
"
^0.2.0
"
,
"
@types/qrcode
"
:
"
^1.4.2
"
,
"
@types/qs
"
:
"
^6.9.7
"
,
"
@types/showdown
"
:
"
^1.9.4
"
,
"
@types/sortablejs
"
:
"
^1.10.7
"
,
"
@typescript-eslint/eslint-plugin
"
:
"
^5.1
0.0
"
,
"
@typescript-eslint/parser
"
:
"
^5.1
0.0
"
,
"
@vitejs/plugin-legacy
"
:
"
^1.
6.4
"
,
"
@vitejs/plugin-vue
"
:
"
^2.
1.0
"
,
"
@vitejs/plugin-vue-jsx
"
:
"
^1.3.
3
"
,
"
@vue/compiler-sfc
"
:
"
3.2.
29
"
,
"
@typescript-eslint/eslint-plugin
"
:
"
^5.1
2.1
"
,
"
@typescript-eslint/parser
"
:
"
^5.1
2.1
"
,
"
@vitejs/plugin-legacy
"
:
"
^1.
7.1
"
,
"
@vitejs/plugin-vue
"
:
"
^2.
2.2
"
,
"
@vitejs/plugin-vue-jsx
"
:
"
^1.3.
7
"
,
"
@vue/compiler-sfc
"
:
"
3.2.
31
"
,
"
@vue/test-utils
"
:
"
^2.0.0-rc.18
"
,
"
autoprefixer
"
:
"
^10.4.2
"
,
"
commitizen
"
:
"
^4.2.4
"
,
"
conventional-changelog-cli
"
:
"
^2.2.2
"
,
"
cross-env
"
:
"
^7.0.3
"
,
"
dotenv
"
:
"
^1
4.2
.0
"
,
"
eslint
"
:
"
^8.
7
.0
"
,
"
eslint-config-prettier
"
:
"
^8.
3
.0
"
,
"
eslint-define-config
"
:
"
^1.2.
3
"
,
"
eslint-plugin-jest
"
:
"
^2
5.7.0
"
,
"
dotenv
"
:
"
^1
6.0
.0
"
,
"
eslint
"
:
"
^8.
10
.0
"
,
"
eslint-config-prettier
"
:
"
^8.
4
.0
"
,
"
eslint-define-config
"
:
"
^1.2.
5
"
,
"
eslint-plugin-jest
"
:
"
^2
6.1.1
"
,
"
eslint-plugin-prettier
"
:
"
^4.0.0
"
,
"
eslint-plugin-vue
"
:
"
^8.
3
.0
"
,
"
esno
"
:
"
^0.14.
0
"
,
"
fs-extra
"
:
"
^10.0.
0
"
,
"
eslint-plugin-vue
"
:
"
^8.
5
.0
"
,
"
esno
"
:
"
^0.14.
1
"
,
"
fs-extra
"
:
"
^10.0.
1
"
,
"
husky
"
:
"
^7.0.4
"
,
"
inquirer
"
:
"
^8.2.0
"
,
"
jest
"
:
"
^27.
4.7
"
,
"
jest
"
:
"
^27.
5.1
"
,
"
less
"
:
"
^4.1.2
"
,
"
lint-staged
"
:
"
12.3.
1
"
,
"
lint-staged
"
:
"
12.3.
4
"
,
"
npm-run-all
"
:
"
^4.1.5
"
,
"
postcss
"
:
"
^8.4.
5
"
,
"
postcss
"
:
"
^8.4.
7
"
,
"
postcss-html
"
:
"
^1.3.0
"
,
"
postcss-less
"
:
"
^6.0.0
"
,
"
prettier
"
:
"
^2.5.1
"
,
"
rimraf
"
:
"
^3.0.2
"
,
"
rollup-plugin-visualizer
"
:
"
^5.5.4
"
,
"
stylelint
"
:
"
^14.3.0
"
,
"
rollup
"
:
"
^2.68.0
"
,
"
rollup-plugin-visualizer
"
:
"
^5.6.0
"
,
"
stylelint
"
:
"
^14.5.3
"
,
"
stylelint-config-html
"
:
"
^1.0.0
"
,
"
stylelint-config-prettier
"
:
"
^9.0.3
"
,
"
stylelint-config-recommended
"
:
"
^
6
.0.0
"
,
"
stylelint-config-standard
"
:
"
^2
4
.0.0
"
,
"
stylelint-config-recommended
"
:
"
^
7
.0.0
"
,
"
stylelint-config-standard
"
:
"
^2
5
.0.0
"
,
"
stylelint-order
"
:
"
^5.0.0
"
,
"
ts-jest
"
:
"
^27.1.3
"
,
"
ts-node
"
:
"
^10.
4
.0
"
,
"
ts-node
"
:
"
^10.
5
.0
"
,
"
typescript
"
:
"
^4.5.5
"
,
"
vite
"
:
"
^2.8.
0-beta.3
"
,
"
vite-plugin-compression
"
:
"
^0.
4.0
"
,
"
vite-plugin-html
"
:
"
^
2.1.2
"
,
"
vite-plugin-imagemin
"
:
"
^0.
5.2
"
,
"
vite-plugin-mkcert
"
:
"
^1.
5.2
"
,
"
vite
"
:
"
^2.8.
4
"
,
"
vite-plugin-compression
"
:
"
^0.
5.1
"
,
"
vite-plugin-html
"
:
"
^
3.1.0
"
,
"
vite-plugin-imagemin
"
:
"
^0.
6.1
"
,
"
vite-plugin-mkcert
"
:
"
^1.
6.0
"
,
"
vite-plugin-mock
"
:
"
^2.9.6
"
,
"
vite-plugin-purge-icons
"
:
"
^0.
7
.0
"
,
"
vite-plugin-purge-icons
"
:
"
^0.
8
.0
"
,
"
vite-plugin-pwa
"
:
"
^0.11.13
"
,
"
vite-plugin-style-import
"
:
"
^
1.4.1
"
,
"
vite-plugin-svg-icons
"
:
"
^
1.1.0
"
,
"
vite-plugin-style-import
"
:
"
^
2.0.0
"
,
"
vite-plugin-svg-icons
"
:
"
^
2.0.1
"
,
"
vite-plugin-theme
"
:
"
^0.8.1
"
,
"
vite-plugin-vue-setup-extend
"
:
"
^0.
3
.0
"
,
"
vite-plugin-windicss
"
:
"
^1.
6.3
"
,
"
vue-eslint-parser
"
:
"
^8.
2
.0
"
,
"
vue-tsc
"
:
"
^0.3
1.1
"
"
vite-plugin-vue-setup-extend
"
:
"
^0.
4
.0
"
,
"
vite-plugin-windicss
"
:
"
^1.
8.1
"
,
"
vue-eslint-parser
"
:
"
^8.
3
.0
"
,
"
vue-tsc
"
:
"
^0.3
2.0
"
},
"resolutions"
:
{
"bin-wrapper"
:
"npm:bin-wrapper-china"
,
...
...
pnpm-lock.yaml
浏览文件 @
af6ab989
此差异已折叠。
点击以展开。
src/components/Excel/src/Export2Excel.ts
浏览文件 @
af6ab989
import
xlsx
from
'
xlsx
'
;
import
*
as
xlsx
from
'
xlsx
'
;
import
type
{
WorkBook
}
from
'
xlsx
'
;
import
type
{
JsonToSheet
,
AoAToSheet
}
from
'
./typing
'
;
...
...
src/components/Excel/src/ImportExcel.vue
浏览文件 @
af6ab989
...
...
@@ -14,7 +14,7 @@
</
template
>
<
script
lang=
"ts"
>
import
{
defineComponent
,
ref
,
unref
}
from
'
vue
'
;
import
XLSX
from
'
xlsx
'
;
import
*
as
XLSX
from
'
xlsx
'
;
import
{
dateUtil
}
from
'
/@/utils/dateUtil
'
;
import
type
{
ExcelData
}
from
'
./typing
'
;
...
...
tests/server/package.json
浏览文件 @
af6ab989
...
...
@@ -10,7 +10,7 @@
"stop"
:
"npx pm2 stop ecosystem.config.js"
},
"dependencies"
:
{
"fs-extra"
:
"^10.0.
0
"
,
"fs-extra"
:
"^10.0.
1
"
,
"koa"
:
"^2.13.4"
,
"koa-body"
:
"^4.2.0"
,
"koa-bodyparser"
:
"^4.3.0"
,
...
...
@@ -24,13 +24,13 @@
"@types/koa"
:
"^2.13.4"
,
"@types/koa-bodyparser"
:
"^5.0.2"
,
"@types/koa-router"
:
"^7.4.4"
,
"@types/node"
:
"^17.0.
10
"
,
"@types/node"
:
"^17.0.
21
"
,
"nodemon"
:
"^2.0.15"
,
"pm2"
:
"^5.
1.2
"
,
"pm2"
:
"^5.
2.0
"
,
"rimraf"
:
"^3.0.2"
,
"ts-node"
:
"^10.
4
.0"
,
"ts-node"
:
"^10.
5
.0"
,
"tsconfig-paths"
:
"^3.12.0"
,
"tsup"
:
"^5.11.1
1
"
,
"tsup"
:
"^5.11.1
3
"
,
"typescript"
:
"^4.5.5"
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录