Skip to content

Commit cb1d756

Browse files
committed
Merge branch 'fork/ffgenius/antd-vue-next'
2 parents 22ed522 + 1d9b640 commit cb1d756

File tree

94 files changed

+4535
-12
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+4535
-12
lines changed

apps/web-antd/src/locales/langs/en-US/demos.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"about": "About",
77
"document": "Document",
88
"antdv": "Ant Design Vue Version",
9+
"antdv-next": "Antdv Next Version",
910
"naive-ui": "Naive UI Version",
1011
"element-plus": "Element Plus Version",
1112
"tdesign": "TDesign Vue Version"

apps/web-antd/src/locales/langs/zh-CN/demos.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"about": "关于",
77
"document": "文档",
88
"antdv": "Ant Design Vue 版本",
9+
"antdv-next": "Antdv Next 版本",
910
"naive-ui": "Naive UI 版本",
1011
"element-plus": "Element Plus 版本",
1112
"tdesign": "TDesign Vue 版本"

apps/web-antd/src/router/routes/modules/vben.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
import type { RouteRecordRaw } from 'vue-router';
22

33
import {
4+
VBEN_ANTDV_NEXT_PREVIEW_URL,
45
VBEN_DOC_URL,
56
VBEN_ELE_PREVIEW_URL,
67
VBEN_GITHUB_URL,
78
VBEN_LOGO_URL,
89
VBEN_NAIVE_PREVIEW_URL,
910
VBEN_TD_PREVIEW_URL,
1011
} from '@vben/constants';
11-
import { SvgTDesignIcon } from '@vben/icons';
12+
import { SvgAntdvNextLogoIcon, SvgTDesignIcon } from '@vben/icons';
1213

1314
import { IFrameView } from '#/layouts';
1415
import { $t } from '#/locales';
@@ -44,6 +45,17 @@ const routes: RouteRecordRaw[] = [
4445
title: 'Github',
4546
},
4647
},
48+
{
49+
name: 'VbenAntdVNext',
50+
path: '/vben-admin/antdv-next',
51+
component: IFrameView,
52+
meta: {
53+
badgeType: 'dot',
54+
icon: SvgAntdvNextLogoIcon,
55+
link: VBEN_ANTDV_NEXT_PREVIEW_URL,
56+
title: $t('demos.vben.antdv-next'),
57+
},
58+
},
4759
{
4860
name: 'VbenNaive',
4961
path: '/vben-admin/naive',

apps/web-antdv-next/.env

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# 应用标题
2+
VITE_APP_TITLE=Vben Admin Antdv Next
3+
4+
# 应用命名空间,用于缓存、store等功能的前缀,确保隔离
5+
VITE_APP_NAMESPACE=vben-web-antdv-next
6+
7+
# 对store进行加密的密钥,在将store持久化到localStorage时会使用该密钥进行加密
8+
VITE_APP_STORE_SECURE_KEY=please-replace-me-with-your-own-key

apps/web-antdv-next/.env.analyze

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# public path
2+
VITE_BASE=/
3+
4+
# Basic interface address SPA
5+
VITE_GLOB_API_URL=/api
6+
7+
VITE_VISUALIZER=true
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# 端口号
2+
VITE_PORT=5999
3+
4+
VITE_BASE=/
5+
6+
# 接口地址
7+
VITE_GLOB_API_URL=/api
8+
9+
# 是否开启 Nitro Mock服务,true 为开启,false 为关闭
10+
VITE_NITRO_MOCK=true
11+
12+
# 是否打开 devtools,true 为打开,false 为关闭
13+
VITE_DEVTOOLS=false
14+
15+
# 是否注入全局loading
16+
VITE_INJECT_APP_LOADING=true
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
VITE_BASE=/
2+
3+
# 接口地址
4+
VITE_GLOB_API_URL=https://mock-napi.vben.pro/api
5+
6+
# 是否开启压缩,可以设置为 none, brotli, gzip
7+
VITE_COMPRESS=none
8+
9+
# 是否开启 PWA
10+
VITE_PWA=false
11+
12+
# vue-router 的模式
13+
VITE_ROUTER_HISTORY=hash
14+
15+
# 是否注入全局loading
16+
VITE_INJECT_APP_LOADING=true
17+
18+
# 打包后是否生成dist.zip
19+
VITE_ARCHIVER=true

apps/web-antdv-next/index.html

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<!doctype html>
2+
<html lang="zh">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
6+
<meta name="renderer" content="webkit" />
7+
<meta name="description" content="A Modern Back-end Management System" />
8+
<meta name="keywords" content="Vben Admin Vue3 Vite" />
9+
<meta name="author" content="Vben" />
10+
<meta
11+
name="viewport"
12+
content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0"
13+
/>
14+
<!-- 由 vite 注入 VITE_APP_TITLE 变量,在 .env 文件内配置 -->
15+
<title><%= VITE_APP_TITLE %></title>
16+
<link rel="icon" href="/favicon.ico" />
17+
<script>
18+
// 生产环境下注入百度统计
19+
if (window._VBEN_ADMIN_PRO_APP_CONF_) {
20+
var _hmt = _hmt || [];
21+
(function () {
22+
var hm = document.createElement('script');
23+
hm.src =
24+
'https://hm.baidu.com/hm.js?b38e689f40558f20a9a686d7f6f33edf';
25+
var s = document.getElementsByTagName('script')[0];
26+
s.parentNode.insertBefore(hm, s);
27+
})();
28+
}
29+
</script>
30+
</head>
31+
<body>
32+
<div id="app"></div>
33+
<script type="module" src="/src/main.ts"></script>
34+
</body>
35+
</html>

apps/web-antdv-next/package.json

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"name": "@vben/web-antdv-next",
3+
"version": "5.5.9",
4+
"homepage": "https://vben.pro",
5+
"bugs": "https://github.com/vbenjs/vue-vben-admin/issues",
6+
"repository": {
7+
"type": "git",
8+
"url": "git+https://github.com/vbenjs/vue-vben-admin.git",
9+
"directory": "apps/web-antdv-next"
10+
},
11+
"license": "MIT",
12+
"author": {
13+
"name": "vben",
14+
"email": "ann.vben@gmail.com",
15+
"url": "https://github.com/anncwb"
16+
},
17+
"type": "module",
18+
"scripts": {
19+
"build": "pnpm vite build --mode production",
20+
"build:analyze": "pnpm vite build --mode analyze",
21+
"dev": "pnpm vite --mode development",
22+
"preview": "vite preview",
23+
"typecheck": "vue-tsc --noEmit --skipLibCheck"
24+
},
25+
"imports": {
26+
"#/*": "./src/*"
27+
},
28+
"dependencies": {
29+
"@vben/access": "workspace:*",
30+
"@vben/common-ui": "workspace:*",
31+
"@vben/constants": "workspace:*",
32+
"@vben/hooks": "workspace:*",
33+
"@vben/icons": "workspace:*",
34+
"@vben/layouts": "workspace:*",
35+
"@vben/locales": "workspace:*",
36+
"@vben/plugins": "workspace:*",
37+
"@vben/preferences": "workspace:*",
38+
"@vben/request": "workspace:*",
39+
"@vben/stores": "workspace:*",
40+
"@vben/styles": "workspace:*",
41+
"@vben/types": "workspace:*",
42+
"@vben/utils": "workspace:*",
43+
"@vueuse/core": "catalog:",
44+
"antdv-next": "catalog:",
45+
"dayjs": "catalog:",
46+
"pinia": "catalog:",
47+
"vue": "catalog:",
48+
"vue-router": "catalog:"
49+
}
50+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default } from '@vben/tailwind-config/postcss';

0 commit comments

Comments
 (0)