-
Notifications
You must be signed in to change notification settings - Fork 8
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
725 changed files
with
53,513 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
quote_type = single |
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,43 @@ | ||
# 运行环境 | ||
MICRO_NODE_ENV = 'development' | ||
|
||
# 开发环境是否启动所有主框架 all或/scripts/config/index.ts 主框架配置下标 | ||
MICRO_SERVE_MAIN=all | ||
|
||
# 构建子项目上级目录名 | ||
MICRO_BUILD_CHILD_NAME=child | ||
|
||
|
||
# 子项目 system | ||
# 子项目目录名 | ||
MICRO_SYSTEM_ROOT_DIR=system | ||
# 开发环境端口 | ||
MICRO_SYSTEM_PORT=8076 | ||
# 开发localhost或者ip | ||
MICRO_SYSTEM_HOST=localhost | ||
|
||
|
||
# 子项目 article | ||
# 子项目目录名 | ||
MICRO_ARTICLE_ROOT_DIR=article | ||
# 开发环境端口 | ||
MICRO_ARTICLE_PORT=8077 | ||
# 开发localhost或者ip | ||
MICRO_ARTICLE_HOST=localhost | ||
|
||
|
||
# 子项目 links | ||
# 子项目目录名 | ||
MICRO_LINKS_ROOT_DIR=links | ||
# 开发环境端口 | ||
MICRO_LINKS_PORT=8078 | ||
# 开发localhost或者ip | ||
MICRO_LINKS_HOST=localhost | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
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,39 @@ | ||
# 运行环境 | ||
MICRO_NODE_ENV = 'production' | ||
|
||
# 生成环境是否构建所有主框架 all或/scripts/config/index.ts 主框架配置下标 | ||
MICRO_BUILD_MAIN=all | ||
|
||
# 构建子项目上级目录名 | ||
MICRO_BUILD_CHILD_NAME=child | ||
|
||
|
||
# 子项目 system | ||
# 子项目目录名 | ||
MICRO_SYSTEM_ROOT_DIR=system | ||
# 开发环境端口 | ||
MICRO_SYSTEM_PORT=8076 | ||
# 开发localhost或者ip | ||
MICRO_SYSTEM_HOST=localhost | ||
|
||
|
||
# 子项目 article | ||
# 子项目目录名 | ||
MICRO_ARTICLE_ROOT_DIR=article | ||
# 开发环境端口 | ||
MICRO_ARTICLE_PORT=8077 | ||
# 开发localhost或者ip | ||
MICRO_ARTICLE_HOST=localhost | ||
|
||
|
||
# 子项目 links | ||
# 子项目目录名 | ||
MICRO_LINKS_ROOT_DIR=links | ||
# 开发环境端口 | ||
MICRO_LINKS_PORT=8078 | ||
# 开发localhost或者ip | ||
MICRO_LINKS_HOST=localhost | ||
|
||
|
||
|
||
|
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,16 @@ | ||
# Editor directories and files | ||
.idea | ||
|
||
# Package Manager | ||
node_modules | ||
.pnpm-debug.log* | ||
|
||
# System | ||
.DS_Store | ||
|
||
# Bundle | ||
dist | ||
coverage | ||
|
||
# local env files | ||
*.local |
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 @@ | ||
shamefully-hoist = true |
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,22 @@ | ||
MIT License | ||
|
||
Copyright (c) 2022 LiQingSong | ||
|
||
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. | ||
|
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,2 +1,125 @@ | ||
# admin-vue3-micro-qiankun | ||
Micro front-end Admin based on Qiankun, vue3.x, admin-element-vue, admin-antd-vue project architecture | ||
|
||
`admin-vue3-micro-qiankun`是一个微前端后台解决方案,它基于 [Qiankun.js](https://qiankun.umijs.org/) 结合 [admin-element-vue](http://admin-element-vue.liqingsong.cc/) 和 [admin-antd-vue](http://admin-antd-vue.liqingsong.cc)实现。 | ||
|
||
|
||
## Demo | ||
|
||
| [main-demo](http://main-demo.admin-vue3-micro-qiankun.liqingsong.cc/) | | ||
:-------------------------: | ||
| [main-antd-demo](http://main-antd-demo.admin-vue3-micro-qiankun.liqingsong.cc/) | | ||
|  | | ||
|
||
## 使用文档 | ||
|
||
- [http://admin-vue3-micro-qiankun.liqingsong.cc](http://admin-vue3-micro-qiankun.liqingsong.cc) | ||
- [Github](https://github.com/lqsong/admin-vue3-micro-qiankun) | ||
- [Gitee](https://gitee.com/lqsong/admin-vue3-micro-qiankun) | ||
- [http://admin-element-vue.liqingsong.cc/tsv2/](http://admin-element-vue.liqingsong.cc/tsv2/) | ||
- [http://admin-antd-vue.liqingsong.cc](http://dmin-antd-vue.liqingsong.cc) | ||
|
||
## 后台前端解决方案列表 | ||
|
||
- admin-element-vue([GitHub](https://github.com/lqsong/admin-element-vue)、[Gitee](https://gitee.com/lqsong/admin-element-vue)) | ||
- admin-antd-vue([GitHub](https://github.com/lqsong/admin-antd-vue)、[Gitee](https://gitee.com/lqsong/admin-antd-vue)) | ||
- admin-antd-react([GitHub](https://github.com/lqsong/admin-antd-react)、[Gitee](https://gitee.com/lqsong/admin-antd-react)) | ||
- electron-admin-element-vue([GitHub](https://github.com/lqsong/electron-admin-element-vue)、[Gitee](https://gitee.com/lqsong/electron-admin-element-vue)) | ||
- electron-admin-antd-vue([GitHub](https://github.com/lqsong/electron-admin-antd-vue)、[Gitee](https://gitee.com/lqsong/electron-admin-antd-vue)) | ||
- electron-admin-antd-react([GitHub](https://github.com/lqsong/electron-admin-antd-react)、[Gitee](https://gitee.com/lqsong/electron-admin-antd-react)) | ||
- admin-vue3-micro-qiankun([GitHub](https://github.com/lqsong/admin-vue3-micro-qiankun)、[Gitee](https://gitee.com/lqsong/admin-vue3-micro-qiankun)) | ||
|
||
## 功能 | ||
|
||
``` | ||
- 登录 / 注销 / 注册 | ||
- 权限验证 | ||
- 页面权限 | ||
- 按钮操作 | ||
- 权限配置 | ||
- 全局功能 | ||
- 国际化多语言 | ||
- 黑白主题 | ||
- 动态侧边栏(支持多级路由嵌套) | ||
- 动态面包屑(支持自定义配置) | ||
- tabNav | ||
- Svg Sprite 图标 | ||
- Mock 数据 | ||
- 权限验证 | ||
- 综合实例 | ||
- 引导页 | ||
- main主框架(基于admin-element-vue调整) | ||
- main-antd主框架(基于admin-antd-vue调整) | ||
- System子项目(基于admin-element-vue调整) | ||
- Article子项目(基于admin-element-vue调整) | ||
- Links子项目 (基于admin-antd-vue调整) | ||
``` | ||
|
||
|
||
## 项目设置 | ||
|
||
### 一、Install dependencies, | ||
|
||
``` | ||
$ pnpm install | ||
``` | ||
|
||
> 请使用 pnpm , **[pnpm的安装与使用](http://liqingsong.cc/article/detail/26)** 。 | ||
|
||
### 二、Compiles and hot-reloads for development | ||
|
||
``` | ||
$ pnpm run serve | ||
# or | ||
$ pnpm run serve:main | ||
$ pnpm run serve:article | ||
``` | ||
|
||
|
||
### 三、构建与发布 | ||
|
||
1、构建: | ||
|
||
```sh | ||
pnpm run build | ||
``` | ||
|
||
|
||
2、上传到服务器,以`nginx`配置为例: | ||
|
||
```sh | ||
server { | ||
listen 8080; | ||
server_name localhost; | ||
|
||
location / { | ||
# root html; | ||
# index index.html index.htm; | ||
try_files $uri $uri/ /index.html; | ||
} | ||
|
||
location /child/system { | ||
# root html; | ||
# index index.html index.htm; | ||
try_files $uri $uri/ /child/system/index.html; | ||
} | ||
# article 和 links 等其他子模块的history 配置同上 | ||
} | ||
|
||
``` | ||
|
||
|
||
## 捐赠 | ||
|
||
如果你觉得这个项目帮助到了你,请帮助点击 Star,你也可以请作者喝咖啡表示鼓励. | ||
|
||
**ALIPAY** | **WECHAT** | ||
:-------------------------:|:-------------------------: | ||
 |  | ||
|
||
|
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,2 @@ | ||
# Components | ||
components |
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,3 @@ | ||
> 1% | ||
last 2 versions | ||
not dead |
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,10 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
quote_type = single |
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,11 @@ | ||
#运行环境 | ||
NODE_ENV = 'development' | ||
|
||
# devServer port | ||
VUE_APP_PORT=9090 | ||
|
||
# mock 是否开启 true|false , development环境有效 | ||
VUE_APP_MOCK = true | ||
|
||
#api接口域名 | ||
VUE_APP_APIHOST = http://rap2api.taobao.org/app/mock/247994/admin |
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,11 @@ | ||
#运行环境 | ||
NODE_ENV = 'production' | ||
|
||
# devServer port | ||
VUE_APP_PORT=9090 | ||
|
||
# mock 是否开启 true|false , development环境有效 | ||
VUE_APP_MOCK = false | ||
|
||
#api接口域名 | ||
VUE_APP_APIHOST = http://rap2api.taobao.org/app/mock/247994/admin |
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 @@ | ||
../scripts |
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,42 @@ | ||
module.exports = { | ||
root: true, | ||
env: { | ||
node: true | ||
}, | ||
'extends': [ | ||
'plugin:vue/vue3-essential', | ||
'eslint:recommended', | ||
'@vue/typescript/recommended' | ||
], | ||
parserOptions: { | ||
ecmaVersion: 2020 | ||
}, | ||
rules: { | ||
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off', | ||
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off', | ||
'@typescript-eslint/no-explicit-any': ['off'], | ||
'@typescript-eslint/no-unused-vars': ['off'], | ||
'@typescript-eslint/ban-types': ['off'] | ||
}, | ||
overrides: [ | ||
{ | ||
files: [ | ||
'**/__tests__/*.{j,t}s?(x)', | ||
'**/tests/unit/**/*.spec.{j,t}s?(x)' | ||
], | ||
env: { | ||
jest: true | ||
} | ||
}, | ||
{ | ||
files: [ | ||
'./mock/*.{j,t}s?(x)', | ||
'./src/utils/mock/*.{j,t}s?(x)' | ||
], | ||
rules: { | ||
'no-var': ['off'], | ||
'@typescript-eslint/no-var-requires': ['off'], | ||
} | ||
} | ||
] | ||
} |
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,24 @@ | ||
.DS_Store | ||
node_modules | ||
/dist | ||
|
||
|
||
# local env files | ||
.env.local | ||
.env.*.local | ||
|
||
# Log files | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
yarn.lock | ||
|
||
# Editor directories and files | ||
.idea | ||
.vscode | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? |
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,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2020 LiQingSong | ||
|
||
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. |
Oops, something went wrong.