From 995ab69b1e990c838597d26a6a5a4fea2c7ea5f1 Mon Sep 17 00:00:00 2001
From: lin-xin <2981207131@qq.com>
Date: Sun, 21 Aug 2022 16:59:12 +0800
Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E4=B8=BAtypescript=EF=BC=9B=E5=8D=87?=
=?UTF-8?q?=E7=BA=A7elementplus?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
LICENSE | 2 +-
README.md | 89 +-
README_EN.md | 67 +-
auto-imports.d.ts | 5 +
components.d.ts | 52 ++
index.html | 2 +-
package-lock.json | 1237 ++++++++++++++++++++++++++
package.json | 65 +-
src/App.vue | 10 +-
src/api/{index.js => index.ts} | 5 +-
src/assets/css/main.css | 24 +
src/components/Header.vue | 243 +++--
src/components/Sidebar.vue | 284 +++---
src/components/Tags.vue | 278 +++---
src/main.js | 11 -
src/main.ts | 31 +
src/plugins/element.js | 17 -
src/router/{index.js => index.ts} | 296 +++---
src/store/permiss.ts | 23 +
src/store/sidebar.js | 17 -
src/store/sidebar.ts | 15 +
src/store/tags.js | 48 -
src/store/tags.ts | 53 ++
src/utils/i18n.js | 24 -
src/utils/{request.js => request.ts} | 17 +-
src/views/403.vue | 76 +-
src/views/404.vue | 76 +-
src/views/BaseCharts.vue | 158 ----
src/views/BaseForm.vue | 174 ----
src/views/BaseTable.vue | 196 ----
src/views/Dashboard.vue | 506 +++++------
src/views/Donate.vue | 32 +-
src/views/Editor.vue | 83 +-
src/views/Home.vue | 61 +-
src/views/I18n.vue | 40 -
src/views/Icon.vue | 393 ++++----
src/views/Login.vue | 206 ++---
src/views/Markdown.vue | 39 +-
src/views/Permission.vue | 159 +++-
src/views/Tabs.vue | 225 +++--
src/views/Upload.vue | 171 ++--
src/views/User.vue | 306 +++----
src/views/charts.vue | 127 +++
src/views/form.vue | 156 ++++
src/views/table.vue | 191 ++++
src/vite-env.d.ts | 10 +
tsconfig.json | 18 +
tsconfig.node.json | 9 +
vite.config.js | 9 -
vite.config.ts | 22 +
50 files changed, 3728 insertions(+), 2630 deletions(-)
create mode 100644 auto-imports.d.ts
create mode 100644 components.d.ts
create mode 100644 package-lock.json
rename src/api/{index.js => index.ts} (55%)
delete mode 100644 src/main.js
create mode 100644 src/main.ts
delete mode 100644 src/plugins/element.js
rename src/router/{index.js => index.ts} (58%)
create mode 100644 src/store/permiss.ts
delete mode 100644 src/store/sidebar.js
create mode 100644 src/store/sidebar.ts
delete mode 100644 src/store/tags.js
create mode 100644 src/store/tags.ts
delete mode 100644 src/utils/i18n.js
rename src/utils/{request.js => request.ts} (52%)
delete mode 100644 src/views/BaseCharts.vue
delete mode 100644 src/views/BaseForm.vue
delete mode 100644 src/views/BaseTable.vue
delete mode 100644 src/views/I18n.vue
create mode 100644 src/views/charts.vue
create mode 100644 src/views/form.vue
create mode 100644 src/views/table.vue
create mode 100644 src/vite-env.d.ts
create mode 100644 tsconfig.json
create mode 100644 tsconfig.node.json
delete mode 100644 vite.config.js
create mode 100644 vite.config.ts
diff --git a/LICENSE b/LICENSE
index 5120b59..f33b1ee 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,6 +1,6 @@
MIT License
-Copyright (c) 2016-2021 vue-manage-system
+Copyright (c) 2016-2023 vue-manage-system
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
diff --git a/README.md b/README.md
index 5d07c72..a46951a 100644
--- a/README.md
+++ b/README.md
@@ -22,16 +22,6 @@
[English document](https://github.com/lin-xin/manage-system/blob/master/README_EN.md)
-## 项目截图
-
-### 登录
-
-
-
-### 首页
-
-
-
## 赞助商
### 好问
@@ -40,7 +30,7 @@
专业问卷服务,一对一客服,按需定制
-## 赞赏
+## 支持作者
请作者喝杯咖啡吧!(微信号:linxin_20)
@@ -48,26 +38,25 @@
## 前言
-该方案作为一套多功能的后台框架模板,适用于绝大部分的后台管理系统(Web Management System)开发。基于 Vue3 + pinia,引用 Element Plus 组件库,方便开发快速简洁好看的组件。分离颜色样式,支持手动切换主题色,而且很方便使用自定义主题色。
+该方案作为一套多功能的后台框架模板,适用于绝大部分的后台管理系统开发。基于 Vue3 + pinia,引用 Element Plus 组件库,方便开发。
## 功能
- [x] Element Plus
+- [x] vite
+- [x] pinia
- [x] 登录/注销
- [x] Dashboard
- [x] 表格
- [x] Tab 选项卡
- [x] 表单
- [x] 图表 :bar_chart:
-- [x] 富文本编辑器
+- [x] 富文本/markdown编辑器
- [x] 图片拖拽/裁剪上传
-- [x] 权限测试
-- [x] 404 / 403
+- [x] 权限管理
- [x] 三级菜单
- [x] 自定义图标
-- [x] 国际化
-- [x] vite
-- [x] pinia
+
## 安装步骤
@@ -76,7 +65,7 @@ git clone https://github.com/lin-xin/vue-manage-system.git // 把模板下
cd vue-manage-system // 进入模板目录
npm install // 安装项目依赖,等待安装完成之后,安装失败可用 cnpm 或 yarn
-// 开启服务器,浏览器访问 http://localhost:8080
+// 运行
npm run dev
// 执行构建命令,生成的dist文件夹放在服务器下即可访问
@@ -98,38 +87,30 @@ vue.js 封装 sChart.js 的图表组件。访问地址:[vue-schart](https://gi
-
```
+## 项目截图
+
+### 登录
+
+
+
+### 首页
+
+
+
## License
[MIT](https://github.com/lin-xin/vue-manage-system/blob/master/LICENSE)
diff --git a/README_EN.md b/README_EN.md
index e28b3ab..438d22f 100644
--- a/README_EN.md
+++ b/README_EN.md
@@ -37,13 +37,10 @@ The scheme as a set of multi-function background frame templates, suitable for m
- [x] Tabs
- [x] From
- [x] Chart :bar_chart:
-- [ ] Editor
-- [ ] Markdown
+- [x] Editor
+- [x] Markdown
- [x] Upload pictures by clipping or dragging
-- [ ] Support manual switch themes :sparkles:
-- [ ] List drag sort
- [x] Permission
-- [x] 404 / 403
- [x] Three level menu
- [x] Custom icon
@@ -55,8 +52,7 @@ The scheme as a set of multi-function background frame templates, suitable for m
## Local development
- // Open server and access http://localhost:8080 in browser
- npm run serve
+ npm run dev
## Constructing production
@@ -75,39 +71,30 @@ Vue.js wrapper for sChart.js. Github : [vue-schart](https://github.com/lin-xin/v