diff --git a/web/src/App.vue b/web/src/App.vue new file mode 100644 index 0000000..ec9032c --- /dev/null +++ b/web/src/App.vue @@ -0,0 +1,11 @@ + + + diff --git a/web/src/main.js b/web/src/main.js new file mode 100644 index 0000000..2277dac --- /dev/null +++ b/web/src/main.js @@ -0,0 +1,52 @@ +import Vue from 'vue' + +import Cookies from 'js-cookie' + +import 'normalize.css/normalize.css' + +import Element from 'element-ui' +// +import mavonEditor from 'mavon-editor' +import 'mavon-editor/dist/css/index.css' + +// 数据字典 +import dict from './components/Dict' + +// 权限指令 +import permission from './components/Permission' +import './assets/styles/element-variables.scss' +// global css +import './assets/styles/index.scss' + +// 代码高亮 +import VueHighlightJS from 'vue-highlightjs' +import 'highlight.js/styles/atom-one-dark.css' + +import App from './App' +import store from './store' +import router from './router/routers' + +import './assets/icons' // icon +import './router/index' // permission control + +import { VueJsonp } from 'vue-jsonp' +// Vue.use(VueJsonp) + +Vue.use(VueHighlightJS) +Vue.use(mavonEditor) +Vue.use(permission) +Vue.use(dict) +Vue.use(Element, { + size: Cookies.get('size') || 'small' // set element-ui default size +}) + +Vue.use(VueJsonp) + +Vue.config.productionTip = false + +new Vue({ + el: '#app', + router, + store, + render: h => h(App) +}) diff --git a/web/src/settings.js b/web/src/settings.js new file mode 100644 index 0000000..8ecf6cf --- /dev/null +++ b/web/src/settings.js @@ -0,0 +1,50 @@ +module.exports = { + /** + * @description 网站标题 + */ + title: 'VIVIB-V1.0', + /** + * @description 是否显示 tagsView + */ + tagsView: true, + /** + * @description 固定头部 + */ + fixedHeader: true, + /** + * @description 记住密码状态下的token在Cookie中存储的天数,默认1天 + */ + tokenCookieExpires: 1, + /** + * @description 记住密码状态下的密码在Cookie中存储的天数,默认1天s + */ + passCookieExpires: 1, + /** + * @description 是否只保持一个子菜单的展开 + */ + uniqueOpened: true, + /** + * @description token key + */ + TokenKey: 'YSHOP-TOEKN', + /** + * @description 请求超时时间,毫秒(默认2分钟) + */ + timeout: 1200000, + /** + * @description 是否显示logo + */ + sidebarLogo: true, + /** + * 是否显示设置的底部信息 + */ + showFooter: true, + /** + * 底部文字,支持html语法 + */ + footerTxt: '© 2019-2020 YSHOP All Rights Reserved', + /** + * 备案号 + */ + caseNumber: '豫ICP备17049587-2号' +} diff --git a/web/src/views/components/Echarts.vue b/web/src/views/components/Echarts.vue new file mode 100644 index 0000000..d70a8a3 --- /dev/null +++ b/web/src/views/components/Echarts.vue @@ -0,0 +1,124 @@ + + + + + diff --git a/web/src/views/components/Editor.vue b/web/src/views/components/Editor.vue new file mode 100644 index 0000000..a9f9d6b --- /dev/null +++ b/web/src/views/components/Editor.vue @@ -0,0 +1,73 @@ + + + + + diff --git a/web/src/views/components/MarkDown.vue b/web/src/views/components/MarkDown.vue new file mode 100644 index 0000000..ed734a5 --- /dev/null +++ b/web/src/views/components/MarkDown.vue @@ -0,0 +1,44 @@ + + + + + diff --git a/web/src/views/components/YamlEdit.vue b/web/src/views/components/YamlEdit.vue new file mode 100644 index 0000000..9455fde --- /dev/null +++ b/web/src/views/components/YamlEdit.vue @@ -0,0 +1,207 @@ + + + + + diff --git a/web/src/views/components/icons/element-icons.js b/web/src/views/components/icons/element-icons.js new file mode 100644 index 0000000..df72201 --- /dev/null +++ b/web/src/views/components/icons/element-icons.js @@ -0,0 +1,74 @@ +const elementIcons = [ + 'info', + 'error', + 'success', + 'warning', + 'question', + 'back', + 'arrow-left', + 'arrow-down', + 'arrow-right', + 'arrow-up', + 'caret-left', + 'caret-bottom', + 'caret-top', + 'caret-right', + 'd-arrow-left', + 'd-arrow-right', + 'minus', + 'plus', + 'remove', + 'circle-plus', + 'remove-outline', + 'circle-plus-outline', + 'close', + 'check', + 'circle-close', + 'circle-check', + 'circle-close-outline', + 'circle-check-outline', + 'zoom-out', + 'zoom-in', + 'd-caret', + 'sort', + 'sort-down', + 'sort-up', + 'tickets', + 'document', + 'goods', + 'sold-out', + 'news', + 'message', + 'date', + 'printer', + 'time', + 'bell', + 'mobile-phone', + 'service', + 'view', + 'menu', + 'more', + 'more-outline', + 'star-on', + 'star-off', + 'location', + 'location-outline', + 'phone', + 'phone-outline', + 'picture', + 'picture-outline', + 'delete', + 'search', + 'edit', + 'edit-outline', + 'rank', + 'refresh', + 'share', + 'setting', + 'upload', + 'upload2', + 'download', + 'loading' +] + +export default elementIcons diff --git a/web/src/views/components/icons/index.vue b/web/src/views/components/icons/index.vue new file mode 100644 index 0000000..3677afd --- /dev/null +++ b/web/src/views/components/icons/index.vue @@ -0,0 +1,91 @@ + + + + + diff --git a/web/src/views/components/icons/svg-icons.js b/web/src/views/components/icons/svg-icons.js new file mode 100644 index 0000000..724cd8e --- /dev/null +++ b/web/src/views/components/icons/svg-icons.js @@ -0,0 +1,10 @@ +const req = require.context('../../../assets/icons/svg', false, /\.svg$/) +const requireAll = requireContext => requireContext.keys() + +const re = /\.\/(.*)\.svg/ + +const svgIcons = requireAll(req).map(i => { + return i.match(re)[1] +}) + +export default svgIcons diff --git a/web/src/views/dashboard/BarChart.vue b/web/src/views/dashboard/BarChart.vue new file mode 100644 index 0000000..817c98d --- /dev/null +++ b/web/src/views/dashboard/BarChart.vue @@ -0,0 +1,108 @@ + + + diff --git a/web/src/views/dashboard/BarChartT.vue b/web/src/views/dashboard/BarChartT.vue new file mode 100644 index 0000000..3008845 --- /dev/null +++ b/web/src/views/dashboard/BarChartT.vue @@ -0,0 +1,111 @@ + + + diff --git a/web/src/views/dashboard/LineChart.vue b/web/src/views/dashboard/LineChart.vue new file mode 100644 index 0000000..0a3f34e --- /dev/null +++ b/web/src/views/dashboard/LineChart.vue @@ -0,0 +1,155 @@ + + + diff --git a/web/src/views/dashboard/OrderCount.vue b/web/src/views/dashboard/OrderCount.vue new file mode 100644 index 0000000..eee7d18 --- /dev/null +++ b/web/src/views/dashboard/OrderCount.vue @@ -0,0 +1,121 @@ + + + + + + + diff --git a/web/src/views/dashboard/PanelGroup.vue b/web/src/views/dashboard/PanelGroup.vue new file mode 100644 index 0000000..3ae0d9b --- /dev/null +++ b/web/src/views/dashboard/PanelGroup.vue @@ -0,0 +1,233 @@ + + + + diff --git a/web/src/views/dashboard/PanelGroupT.vue b/web/src/views/dashboard/PanelGroupT.vue new file mode 100644 index 0000000..6308144 --- /dev/null +++ b/web/src/views/dashboard/PanelGroupT.vue @@ -0,0 +1,188 @@ + + + + diff --git a/web/src/views/dashboard/PieChart.vue b/web/src/views/dashboard/PieChart.vue new file mode 100644 index 0000000..ab082d0 --- /dev/null +++ b/web/src/views/dashboard/PieChart.vue @@ -0,0 +1,91 @@ + + + diff --git a/web/src/views/dashboard/RaddarChart.vue b/web/src/views/dashboard/RaddarChart.vue new file mode 100644 index 0000000..de70e52 --- /dev/null +++ b/web/src/views/dashboard/RaddarChart.vue @@ -0,0 +1,120 @@ + + + diff --git a/web/src/views/dashboard/YshopInfo.vue b/web/src/views/dashboard/YshopInfo.vue new file mode 100644 index 0000000..c200e13 --- /dev/null +++ b/web/src/views/dashboard/YshopInfo.vue @@ -0,0 +1,107 @@ + + + + diff --git a/web/src/views/features/401.vue b/web/src/views/features/401.vue new file mode 100644 index 0000000..8a3b69e --- /dev/null +++ b/web/src/views/features/401.vue @@ -0,0 +1,89 @@ + + + + + diff --git a/web/src/views/features/404.vue b/web/src/views/features/404.vue new file mode 100644 index 0000000..237d81f --- /dev/null +++ b/web/src/views/features/404.vue @@ -0,0 +1,225 @@ + + + + + diff --git a/web/src/views/features/redirect.vue b/web/src/views/features/redirect.vue new file mode 100644 index 0000000..db4c1d6 --- /dev/null +++ b/web/src/views/features/redirect.vue @@ -0,0 +1,12 @@ + diff --git a/web/src/views/home.vue b/web/src/views/home.vue new file mode 100644 index 0000000..fa320b5 --- /dev/null +++ b/web/src/views/home.vue @@ -0,0 +1,138 @@ + + + + + diff --git a/web/src/views/login.vue b/web/src/views/login.vue new file mode 100644 index 0000000..871dbf1 --- /dev/null +++ b/web/src/views/login.vue @@ -0,0 +1,198 @@ + + + + + diff --git a/web/src/views/nested/menu1/index.vue b/web/src/views/nested/menu1/index.vue new file mode 100644 index 0000000..98240ae --- /dev/null +++ b/web/src/views/nested/menu1/index.vue @@ -0,0 +1,3 @@ + diff --git a/web/src/views/nested/menu1/menu1-1/index.vue b/web/src/views/nested/menu1/menu1-1/index.vue new file mode 100644 index 0000000..8c323ec --- /dev/null +++ b/web/src/views/nested/menu1/menu1-1/index.vue @@ -0,0 +1,5 @@ + diff --git a/web/src/views/nested/menu1/menu1-2/index.vue b/web/src/views/nested/menu1/menu1-2/index.vue new file mode 100644 index 0000000..8508f4a --- /dev/null +++ b/web/src/views/nested/menu1/menu1-2/index.vue @@ -0,0 +1,5 @@ + diff --git a/web/src/views/nested/menu2/index.vue b/web/src/views/nested/menu2/index.vue new file mode 100644 index 0000000..b8283a2 --- /dev/null +++ b/web/src/views/nested/menu2/index.vue @@ -0,0 +1,5 @@ + diff --git a/web/src/views/system/dept/index.vue b/web/src/views/system/dept/index.vue new file mode 100644 index 0000000..3c5119f --- /dev/null +++ b/web/src/views/system/dept/index.vue @@ -0,0 +1,228 @@ + + + + + + diff --git a/web/src/views/system/dict/dictDetail.vue b/web/src/views/system/dict/dictDetail.vue new file mode 100644 index 0000000..d865da6 --- /dev/null +++ b/web/src/views/system/dict/dictDetail.vue @@ -0,0 +1,114 @@ + + + + + diff --git a/web/src/views/system/dict/index.vue b/web/src/views/system/dict/index.vue new file mode 100644 index 0000000..8716219 --- /dev/null +++ b/web/src/views/system/dict/index.vue @@ -0,0 +1,160 @@ + + + + + diff --git a/web/src/views/system/job/index.vue b/web/src/views/system/job/index.vue new file mode 100644 index 0000000..30610cb --- /dev/null +++ b/web/src/views/system/job/index.vue @@ -0,0 +1,120 @@ + + + + + diff --git a/web/src/views/system/job/module/form.vue b/web/src/views/system/job/module/form.vue new file mode 100644 index 0000000..23234e4 --- /dev/null +++ b/web/src/views/system/job/module/form.vue @@ -0,0 +1,149 @@ + + + + + diff --git a/web/src/views/system/job/module/header.vue b/web/src/views/system/job/module/header.vue new file mode 100644 index 0000000..1c5c5bc --- /dev/null +++ b/web/src/views/system/job/module/header.vue @@ -0,0 +1,32 @@ + + + diff --git a/web/src/views/system/menu/index.vue b/web/src/views/system/menu/index.vue new file mode 100644 index 0000000..2fb2147 --- /dev/null +++ b/web/src/views/system/menu/index.vue @@ -0,0 +1,206 @@ + + + + + diff --git a/web/src/views/system/role/index.vue b/web/src/views/system/role/index.vue new file mode 100644 index 0000000..e57a958 --- /dev/null +++ b/web/src/views/system/role/index.vue @@ -0,0 +1,279 @@ + + + + + + + diff --git a/web/src/views/system/user/center.vue b/web/src/views/system/user/center.vue new file mode 100644 index 0000000..0df2daa --- /dev/null +++ b/web/src/views/system/user/center.vue @@ -0,0 +1,218 @@ + + + + + diff --git a/web/src/views/system/user/center/updatePass.vue b/web/src/views/system/user/center/updatePass.vue new file mode 100644 index 0000000..078ed17 --- /dev/null +++ b/web/src/views/system/user/center/updatePass.vue @@ -0,0 +1,95 @@ + + + + + diff --git a/web/src/views/system/user/index.vue b/web/src/views/system/user/index.vue new file mode 100644 index 0000000..e9fa540 --- /dev/null +++ b/web/src/views/system/user/index.vue @@ -0,0 +1,425 @@ + + + + + diff --git a/web/src/views/tools/swagger/index.vue b/web/src/views/tools/swagger/index.vue new file mode 100644 index 0000000..5162cd9 --- /dev/null +++ b/web/src/views/tools/swagger/index.vue @@ -0,0 +1,16 @@ + +