Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Simoje丶
vue-vben-admin
提交
ee4829c1
V
vue-vben-admin
项目概览
Simoje丶
/
vue-vben-admin
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
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,发现更多精彩内容 >>
提交
ee4829c1
编写于
4月 01, 2021
作者:
V
Vben
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(server): grammatical errors
上级
c030567b
变更
9
展开全部
隐藏空白更改
内联
并排
Showing
9 changed file
with
67 addition
and
276 deletion
+67
-276
.husky/lintstagedrc.js
.husky/lintstagedrc.js
+1
-1
build/vite/plugin/html.ts
build/vite/plugin/html.ts
+1
-1
build/vite/plugin/visualizer.ts
build/vite/plugin/visualizer.ts
+0
-2
package.json
package.json
+6
-6
src/main.ts
src/main.ts
+8
-8
src/views/dashboard/analysis/components/GrowCard.vue
src/views/dashboard/analysis/components/GrowCard.vue
+1
-1
src/views/sys/about/index.vue
src/views/sys/about/index.vue
+8
-3
src/views/sys/redirect/index.vue
src/views/sys/redirect/index.vue
+1
-1
yarn.lock
yarn.lock
+41
-253
未找到文件。
.husky/lintstagedrc.js
浏览文件 @
ee4829c1
...
...
@@ -3,6 +3,6 @@ module.exports = {
'
{!(package)*.json,*.code-snippets,.!(browserslist)*rc}
'
:
[
'
prettier --write--parser json
'
],
'
package.json
'
:
[
'
prettier --write
'
],
'
*.vue
'
:
[
'
eslint --fix
'
,
'
prettier --write
'
,
'
stylelint --fix
'
],
'
*.{scss,less,styl,
css,
html}
'
:
[
'
stylelint --fix
'
,
'
prettier --write
'
],
'
*.{scss,less,styl,html}
'
:
[
'
stylelint --fix
'
,
'
prettier --write
'
],
'
*.md
'
:
[
'
prettier --write
'
],
};
build/vite/plugin/html.ts
浏览文件 @
ee4829c1
...
...
@@ -12,7 +12,7 @@ import { GLOB_CONFIG_FILE_NAME } from '../../constant';
export
function
configHtmlPlugin
(
env
:
ViteEnv
,
isBuild
:
boolean
)
{
const
{
VITE_GLOB_APP_TITLE
,
VITE_PUBLIC_PATH
}
=
env
;
const
path
=
VITE_PUBLIC_PATH
?
.
endsWith
(
'
/
'
)
?
VITE_PUBLIC_PATH
:
`
${
VITE_PUBLIC_PATH
}
/`
;
const
path
=
VITE_PUBLIC_PATH
.
endsWith
(
'
/
'
)
?
VITE_PUBLIC_PATH
:
`
${
VITE_PUBLIC_PATH
}
/`
;
const
getAppConfigSrc
=
()
=>
{
return
`
${
path
||
'
/
'
}${
GLOB_CONFIG_FILE_NAME
}
?v=
${
pkg
.
version
}
-
${
new
Date
().
getTime
()}
`
;
...
...
build/vite/plugin/visualizer.ts
浏览文件 @
ee4829c1
...
...
@@ -9,9 +9,7 @@ export function configVisualizerConfig() {
return
visualizer
({
filename
:
'
./node_modules/.cache/visualizer/stats.html
'
,
open
:
true
,
// @ts-ignore
gzipSize
:
true
,
// @ts-ignore
brotliSize
:
true
,
})
as
Plugin
;
}
...
...
package.json
浏览文件 @
ee4829c1
...
...
@@ -70,13 +70,12 @@
"
@types/nprogress
"
:
"
^0.2.0
"
,
"
@types/qrcode
"
:
"
^1.4.0
"
,
"
@types/qs
"
:
"
^6.9.6
"
,
"
@types/rollup-plugin-visualizer
"
:
"
^2.6.0
"
,
"
@types/sortablejs
"
:
"
^1.10.6
"
,
"
@typescript-eslint/eslint-plugin
"
:
"
^4.20.0
"
,
"
@typescript-eslint/parser
"
:
"
^4.20.0
"
,
"
@vitejs/plugin-legacy
"
:
"
^1.3.2
"
,
"
@vitejs/plugin-vue
"
:
"
^1.2.1
"
,
"
@vitejs/plugin-vue-jsx
"
:
"
^1.1.
2
"
,
"
@vitejs/plugin-vue-jsx
"
:
"
^1.1.
3
"
,
"
@vue/compiler-sfc
"
:
"
3.0.10
"
,
"
autoprefixer
"
:
"
^10.2.5
"
,
"
commitizen
"
:
"
^4.2.3
"
,
...
...
@@ -100,7 +99,7 @@
"
prettier
"
:
"
^2.2.1
"
,
"
pretty-quick
"
:
"
^3.1.0
"
,
"
rimraf
"
:
"
^3.0.2
"
,
"
rollup-plugin-visualizer
"
:
"
4.2.2
"
,
"
rollup-plugin-visualizer
"
:
"
5.0.4
"
,
"
stylelint
"
:
"
^13.12.0
"
,
"
stylelint-config-prettier
"
:
"
^8.0.2
"
,
"
stylelint-config-standard
"
:
"
^21.0.0
"
,
...
...
@@ -111,18 +110,19 @@
"
vite-plugin-compression
"
:
"
^0.2.3
"
,
"
vite-plugin-html
"
:
"
^2.0.3
"
,
"
vite-plugin-imagemin
"
:
"
^0.2.9
"
,
"
vite-plugin-mock
"
:
"
^2.4.
1
"
,
"
vite-plugin-mock
"
:
"
^2.4.
2
"
,
"
vite-plugin-purge-icons
"
:
"
^0.7.0
"
,
"
vite-plugin-pwa
"
:
"
^0.6.4
"
,
"
vite-plugin-style-import
"
:
"
^0.9.1
"
,
"
vite-plugin-svg-icons
"
:
"
^0.4.0
"
,
"
vite-plugin-theme
"
:
"
^0.5.0
"
,
"
vite-plugin-windicss
"
:
"
0.1
0
.4
"
,
"
vite-plugin-windicss
"
:
"
0.1
1
.4
"
,
"
vue-eslint-parser
"
:
"
^7.6.0
"
},
"resolutions"
:
{
"//"
:
"Used to install imagemin dependencies, because imagemin may not be installed in China.If it is abroad, you can delete it"
,
"bin-wrapper"
:
"npm:bin-wrapper-china"
"bin-wrapper"
:
"npm:bin-wrapper-china"
,
"rollup"
:
"^2.44.0"
},
"repository"
:
{
"type"
:
"git"
,
...
...
src/main.ts
浏览文件 @
ee4829c1
import
'
/@/design/index.less
'
;
import
'
@virtual/windi.css
'
;
// Do not introduce` on-demand in local development?
// In the local development for on-demand introduction, the number of browser requests will increase by about 20%.
// Which may slow down the browser refresh.
// Therefore, all are introduced in local development, and only introduced on demand in the production environment
if
(
import
.
meta
.
env
.
DEV
)
{
import
(
'
ant-design-vue/dist/antd.less
'
);
}
import
{
createApp
}
from
'
vue
'
;
import
App
from
'
./App.vue
'
;
...
...
@@ -25,6 +17,14 @@ import '/@/router/guard';
// Register icon Sprite
import
'
vite-plugin-svg-icons/register
'
;
// Do not introduce` on-demand in local development?
// In the local development for on-demand introduction, the number of browser requests will increase by about 20%.
// Which may slow down the browser refresh.
// Therefore, all are introduced in local development, and only introduced on demand in the production environment
if
(
import
.
meta
.
env
.
DEV
)
{
import
(
'
ant-design-vue/dist/antd.less
'
);
}
(
async
()
=>
{
const
app
=
createApp
(
App
);
// Register global components
...
...
src/views/dashboard/analysis/components/GrowCard.vue
浏览文件 @
ee4829c1
...
...
@@ -5,7 +5,7 @@
size=
"small"
:loading=
"$attrs.loading"
:title=
"item.title"
class=
"md:w-1/4 w-full md:mt-0 !mt-4"
class=
"md:w-1/4 w-full
!
md:mt-0 !mt-4"
:class=
"[index + 1
<
4
&&
'!
md:mr-4
']"
:canExpan=
"false"
>
...
...
src/views/sys/about/index.vue
浏览文件 @
ee4829c1
...
...
@@ -9,9 +9,9 @@
</span>
</div>
</
template
>
<Description
@
register=
"infoRegister"
/>
<Description
@
register=
"register"
class=
"my-4"
/>
<Description
@
register=
"registerDev"
/>
<Description
@
register=
"infoRegister"
class=
"enter-y"
/>
<Description
@
register=
"register"
class=
"my-4
enter-y
"
/>
<Description
@
register=
"registerDev"
class=
"enter-y"
/>
</PageWrapper>
</template>
<
script
lang=
"ts"
>
...
...
@@ -32,8 +32,10 @@
const
schema
:
DescItem
[]
=
[];
const
devSchema
:
DescItem
[]
=
[];
const
commonTagRender
=
(
color
:
string
)
=>
(
curVal
)
=>
h
(
Tag
,
{
color
},
()
=>
curVal
);
const
commonLinkRender
=
(
text
:
string
)
=>
(
href
)
=>
h
(
'
a
'
,
{
href
,
target
:
'
_blank
'
},
text
);
const
infoSchema
:
DescItem
[]
=
[
{
label
:
'
版本
'
,
...
...
@@ -77,18 +79,21 @@
Object
.
keys
(
devDependencies
).
forEach
((
key
)
=>
{
devSchema
.
push
({
field
:
key
,
label
:
key
});
});
const
[
register
]
=
useDescription
({
title
:
'
生产环境依赖
'
,
data
:
dependencies
,
schema
:
schema
,
column
:
3
,
});
const
[
registerDev
]
=
useDescription
({
title
:
'
开发环境依赖
'
,
data
:
devDependencies
,
schema
:
devSchema
,
column
:
3
,
});
const
[
infoRegister
]
=
useDescription
({
title
:
'
项目信息
'
,
data
:
infoData
,
...
...
src/views/sys/redirect/index.vue
浏览文件 @
ee4829c1
...
...
@@ -3,8 +3,8 @@
</
template
>
<
script
lang=
"ts"
>
import
{
defineComponent
,
unref
}
from
'
vue
'
;
import
{
useRouter
}
from
'
vue-router
'
;
export
default
defineComponent
({
name
:
'
Redirect
'
,
setup
()
{
...
...
yarn.lock
浏览文件 @
ee4829c1
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录