-
Notifications
You must be signed in to change notification settings - Fork 905
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
226 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
{ | ||
"name": "vue3-antd-admin", | ||
"version": "0.1.4", | ||
"private": true, | ||
"author": { | ||
"name": "buqiyuan", | ||
"email": "[email protected]", | ||
"url": "https://github.com/buqiyuan" | ||
}, | ||
"scripts": { | ||
"dev": "npm run serve", | ||
"serve": "vue-cli-service serve", | ||
|
@@ -18,8 +22,8 @@ | |
"prepare": "husky install", | ||
"version": "conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md", | ||
"postversion": "git push && git push origin --tags", | ||
"test prod cors": "npx http-server dist --cors --gzip -P http://29135jo738.zicp.vip", | ||
"test prod gzip": "npx http-server dist --cors --gzip -c-1" | ||
"test:gzip": "npx http-server dist --cors --gzip -c-1", | ||
"test:br": "npx http-server dist --cors --brotli -c-1" | ||
}, | ||
"dependencies": { | ||
"@vueuse/core": "^7.5.4", | ||
|
@@ -68,11 +72,11 @@ | |
"husky": "^7.0.4", | ||
"less": "^4.1.2", | ||
"less-loader": "10.2.0", | ||
"lint-staged": "^12.3.0", | ||
"lint-staged": "^12.3.1", | ||
"path-browserify": "^1.0.1", | ||
"postcss-html": "^1.3.0", | ||
"prettier": "^2.5.1", | ||
"stylelint": "^14.2.0", | ||
"stylelint": "^14.3.0", | ||
"stylelint-config-html": "^1.0.0", | ||
"stylelint-config-prettier": "^9.0.3", | ||
"stylelint-config-recommended": "^6.0.0", | ||
|
@@ -81,10 +85,14 @@ | |
"svg-sprite-loader": "^6.0.11", | ||
"typescript": "^4.5.5", | ||
"vue-cli-plugin-windicss": "^1.1.3", | ||
"vue-eslint-parser": "^8.1.0" | ||
"vue-eslint-parser": "^8.2.0" | ||
}, | ||
"__npminstall_done": false, | ||
"homepage": "[email protected]/vue3-antd-admin", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/buqiyuan/vue3-antd-admin" | ||
}, | ||
"homepage": "https://buqiyuan.gitee.io/vue3-antd-admin", | ||
"keywords": [ | ||
"vue", | ||
"ant-design-vue", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export default { | ||
settings: 'settings', | ||
about: 'about', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export default { | ||
settings: '个人设置', | ||
about: '关于', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { type RouteRecordRaw } from 'vue-router'; | ||
import RouterView from '@/layout/routerView/index.vue'; | ||
import { t } from '@/hooks/useI18n'; | ||
|
||
const moduleName = 'account'; | ||
|
||
const routes: Array<RouteRecordRaw> = [ | ||
{ | ||
path: '/account', | ||
component: RouterView, | ||
redirect: '/account/settings', | ||
meta: { | ||
title: '个人中心', | ||
hideInMenu: true, | ||
}, | ||
children: [ | ||
{ | ||
path: 'settings', | ||
name: `${moduleName}-settings`, | ||
component: () => import('@/views/account/settings.vue'), | ||
meta: { title: t('routes.account.settings'), hideInMenu: true }, | ||
}, | ||
{ | ||
path: 'about', | ||
name: `${moduleName}-about`, | ||
component: () => import('@/views/account/about.vue'), | ||
meta: { title: t('routes.account.about'), hideInMenu: true }, | ||
}, | ||
], | ||
}, | ||
]; | ||
|
||
export default routes; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
import dashboard from './dashboard'; | ||
import demos from './demos'; | ||
import externaLink from './externa-link'; | ||
import account from './account'; | ||
|
||
export default [...dashboard, ...demos, ...externaLink]; | ||
export default [...dashboard, ...demos, ...externaLink, ...account]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<template> | ||
<div> | ||
<Card> | ||
<Card.Meta title="关于"> | ||
<template #description> | ||
<BlankLink :url="pkg.author.url" :text="pkg.name" />的前端项目是基于Vue3.x、Vue-CLI5.x、 | ||
Ant-Design-Vue3.x 、TypeScript4.x开发, | ||
内置了动态路由、权限验证、并提供了常用的功能组件,帮助你快速搭建企业级中后台产品原型。 | ||
原则上不会限制任何代码用于商用。 | ||
</template> | ||
</Card.Meta> | ||
</Card> | ||
<Card class="mt-3"> | ||
<Descriptions title="项目信息" :column="2" bordered> | ||
<Descriptions.Item label="版本"> | ||
<Tag color="processing">{{ pkg.version }}</Tag> | ||
</Descriptions.Item> | ||
<Descriptions.Item label="最后编译时间"> | ||
<Tag color="processing">{{ lastBuildTime }}</Tag> | ||
</Descriptions.Item> | ||
<Descriptions.Item label="GitHub"> | ||
<BlankLink :url="pkg.repository.url" text="GitHub" /> | ||
</Descriptions.Item> | ||
<Descriptions.Item label="预览地址"> | ||
<BlankLink :url="pkg.homepage" text="预览地址" /> | ||
</Descriptions.Item> | ||
</Descriptions> | ||
</Card> | ||
<Card class="mt-3"> | ||
<Descriptions title="生产环境依赖" bordered> | ||
<template v-for="(value, key) in pkg.dependencies" :key="key"> | ||
<Descriptions.Item :label="key"> | ||
<BlankLink :url="value.url" :text="value.version" /> | ||
</Descriptions.Item> | ||
</template> | ||
</Descriptions> | ||
</Card> | ||
<Card class="mt-3"> | ||
<Descriptions title="开发环境依赖" bordered> | ||
<template v-for="(value, key) in pkg.devDependencies" :key="key"> | ||
<Descriptions.Item :label="key"> | ||
<BlankLink :url="value.url" :text="value.version" /> | ||
</Descriptions.Item> | ||
</template> | ||
</Descriptions> | ||
</Card> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="tsx"> | ||
import { Descriptions, Card, Tag } from 'ant-design-vue'; | ||
const { pkg, lastBuildTime } = __APP_INFO__; | ||
const BlankLink = ({ url = '', text }) => ( | ||
<a href={url.replace('git+', '')} target="_blank"> | ||
{text} | ||
</a> | ||
); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<template> <div> 个人中心 </div> </template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.