diff --git a/mock/controller/ad.js b/mock/controller/ad.js deleted file mode 100644 index 66475ef..0000000 --- a/mock/controller/ad.js +++ /dev/null @@ -1,40 +0,0 @@ -const data = [ - { - title: '建党百年惊喜福利,付费版本买一得二全年最低价,点我购买', - url: 'https://vue-admin-beautiful.com/authorization', - }, - /* { - title: 'Admin Pro 3.0付费版本已发布,增加多项贴心功能,点我提前体验', - url: 'https://chu1204505056.gitee.io/admin-pro?hmsr=homeAd&hmpl=&hmcu=&hmkw=&hmci=', - }, - { - title: 'Admin Plus 3.0内测版本已发布,增加多项贴心功能,点我提前体验', - url: 'https://chu1204505056.gitee.io/admin-plus?hmsr=homeAd&hmpl=&hmcu=&hmkw=&hmci=', - }, - { - title: 'vue-admin-beautiful(antdv) vue3.0版本已发布,点我提前体验', - url: 'https://vue-admin-beautiful.com/vue-admin-beautiful-antdv?hmsr=homeAd&hmpl=&hmcu=&hmkw=&hmci=', - }, - { - title: 'vue-admin-beautiful(element-plus) vue3.0版本已发布,点我提前体验', - url: 'https://chu1204505056.gitee.io/admin-plus?hmsr=homeAd&hmpl=&hmcu=&hmkw=&hmci=', - }, - { - title: - '程序无国界,但程序员有国界,中国国家尊严不容挑衅,如果您在特殊时期继续购买HM、耐克、阿迪达斯等品牌那么您将无权继续使用Vab', - url: 'https://chu1204505056.gitee.io/admin-pro?hmsr=homeAd&hmpl=&hmcu=&hmkw=&hmci=', - }, */ -] -module.exports = [ - { - url: '/ad/getList', - type: 'get', - response() { - return { - code: 200, - msg: 'success', - data, - } - }, - }, -] diff --git a/mock/controller/changeLog.js b/mock/controller/changeLog.js deleted file mode 100644 index ea22882..0000000 --- a/mock/controller/changeLog.js +++ /dev/null @@ -1,248 +0,0 @@ -const data = [ - { - content: '在github上获得了第一个star,感恩一位名叫Bequiet2014的github用户', - timestamp: '2020-03-23', - }, - { - content: '增加更换主题功能', - timestamp: '2020-04-10', - }, - { - content: '大幅精简代码', - timestamp: '2020-04-14', - }, - { - content: '修复群友反馈的bug', - timestamp: '2020-04-16', - }, - { - content: '剔除maptalks', - timestamp: '2020-04-17', - }, - { - content: - '换行符统一修改为lf 支持苹果 linux windows协同开发 强制开启最严格eslint规则 不要哭 严格是有好处的', - timestamp: '2020-04-17', - }, - { - content: '彻底完成手机端适配,记录这一天熬夜到了晚上三点', - timestamp: '2020-04-18', - }, - { - content: '删除babel-polyfill 提高打包速度 减少压缩体积(放弃ie是这个项目做出的最伟大的决定)', - timestamp: '2020-04-18', - }, - { - content: '源码精简至800k', - timestamp: '2020-04-19', - }, - { - content: '添加视频播放器组件', - timestamp: '2020-04-20', - }, - { - content: '修复路由懒加载 完善主题配色', - timestamp: '2020-04-22', - }, - { - content: '修复全局axios拦截 加快动画展示效果 修改登录页样式', - timestamp: '2020-04-24', - }, - { - content: '简化权限与登录逻辑 更新mockServer', - timestamp: '2020-04-25', - }, - { - content: '优化登录退出逻辑 代码更清晰 退出不再重载网页 改为重载路由形式', - timestamp: '2020-04-26', - }, - { - content: '无端的指责只会让我更加努力 修复sidebar 简化permission', - timestamp: '2020-04-28', - }, - { - content: '又是一个深夜 实现了表格增删改查的一键生成', - timestamp: '2020-04-30', - }, - { - content: '大幅优化tagsview标签动画', - timestamp: '2020-05-02', - }, - { - content: '三种图标组件实现mock模拟分页', - timestamp: '2020-05-03', - }, - { - content: '添加了markdown编辑器组件', - timestamp: '2020-05-04', - }, - { - content: '添加stylelint-plus自动规整排序样式', - timestamp: '2020-05-06', - }, - { - content: '添加商城模板', - timestamp: '2020-05-12', - }, - { - content: 'github标星超过1000 感恩', - timestamp: '2020-05-13', - }, - { - content: '添加验证码组件', - timestamp: '2020-05-14', - }, - { - content: '修复横向菜单bug', - timestamp: '2020-05-16', - }, - { - content: '又被人骂了 挺好的 让我下定决心重写了tabsBar', - timestamp: '2020-05-20', - }, - { - content: '仿ant-design 添加雪花屏', - timestamp: '2020-05-26', - }, - { - content: '添加人员管理模块', - timestamp: '2020-06-02', - }, - { - content: 'github标星超过2000 感恩', - timestamp: '2020-06-03', - }, - { - content: '添加炫酷地图组件', - timestamp: '2020-06-11', - }, - { - content: '抽离更多公共配置,框架使用更顺手', - timestamp: '2020-06-19', - }, - { - content: '彻底完成了tabsBar多标签页的重构', - timestamp: '2020-06-22', - }, - { - content: '感恩github标星过3.0K 祝大家端午节快乐', - timestamp: '2020-06-25', - }, - { - content: '彻底重构了SideBar与TopBar 大幅精简dom渲染逻辑 全球首发', - timestamp: '2020-06-25', - }, - { - content: '添加菜单管理', - timestamp: '2020-07-7', - }, - { - content: '首次采用sass-loader 9.0写法,感谢github用户 shaonialife', - timestamp: '2020-07-7', - }, - { - content: '添加vue-amap组件', - timestamp: '2020-07-11', - }, - { - content: '修改layouts引入方式', - timestamp: '2020-07-15', - }, - { - content: '记录这一天vue-admin-beautiful在插件市场、百度已花费超过1万元广告费用,希望一切都值得', - timestamp: '2020-07-18', - }, - { - content: '主题配置添加绿荫草场、荣耀典藏、暗黑之子模式', - timestamp: '2020-07-18', - }, - { - content: '全局axios请求全面支持Status Code拦截处理', - timestamp: '2020-07-29', - }, - { - content: '重构全局loadding加载代码', - timestamp: '2020-07-31', - }, - { - content: '升级stylelint自动排序功能', - timestamp: '2020-08-25', - }, - { - content: '修复视频播放器组件重载路由失效的bug', - timestamp: '2020-09-03', - }, - { - content: '修复极个别情况image-loader打包报错', - timestamp: '2020-09-18', - }, - { - content: '全网首个基于vue3.0开发的admin框架已发布,具体请访问github', - timestamp: '2020-09-22', - }, - { - content: '完善路由后端渲染方案,弃用之前写法', - timestamp: '2020-09-30', - }, - { - content: '大版本迭代,请关注github tag', - timestamp: '2020-09-30', - }, - /* { - content: - "面对自称加拿大华人的捕蛇者说作者laike9m的发帖诋毁,和人身攻击,本想去知乎找他理论,可奈何他的知乎已经由于经常发布错误言论被官方封号了https://www.zhihu.com/people/laike9m,既然自己都不是中国人了,就不要妄加揣测国产的开源项目了,一切都交给时间吧,后来我释怀了,laike9m、Cruii这群人不止是抹黑我的框架,甚至还去抹黑中国民营企业的佼佼者华为,充满了无奈啊,也许只有发布这样的言论,他们的目的才能达到把 https://github.com/evil-huawei/evil-huawei", - timestamp: "2020-10-01", - }, */ - { - content: '凌晨两点,我累了,移除无用组件,精简package', - timestamp: '2020-10-02', - }, - { - content: '富文本编辑器支持精细化配置', - timestamp: '2020-10-20', - }, - { - content: '公共布局支持自动导出', - timestamp: '2020-10-23', - }, - { - content: '遮罩添加高斯模糊', - timestamp: '2020-10-25', - }, - { - content: 'vue3.0 + element-plus版本正式上线', - timestamp: '2020-12-5', - }, - { - content: '完成首页重构,跟进echarts 5.0', - timestamp: '2020-12-7', - }, - { - content: '更新sass版本至最新', - timestamp: '2021-1-7', - }, - { - content: '更新vue-echarts版本至最新,options变更为option', - timestamp: '2021-2-23', - }, - { - content: - '开源版品牌名升级为vue-admin-better,付费版vue2.x品牌升级为Admin Pro,付费版vue3.x品牌名升级为Admin Plus', - timestamp: '最近更新', - }, -] - -module.exports = [ - { - url: '/changeLog/getList', - type: 'post', - response() { - return { - code: 200, - msg: 'success', - totalCount: 999, - data: data, - } - }, - }, -] diff --git a/mock/controller/colorfulIcon.js b/mock/controller/colorfulIcon.js index e5b678a..306c28d 100644 --- a/mock/controller/colorfulIcon.js +++ b/mock/controller/colorfulIcon.js @@ -309,9 +309,7 @@ module.exports = [ if (title && item.indexOf(title) < 0) return false return true }) - const pageList = mockList.filter( - (item, index) => index < pageSize * pageNo && index >= pageSize * (pageNo - 1) - ) + const pageList = mockList.filter((item, index) => index < pageSize * pageNo && index >= pageSize * (pageNo - 1)) return { code: 200, msg: 'success', diff --git a/mock/controller/goodsList.js b/mock/controller/goodsList.js index dbe03cc..ccb5603 100644 --- a/mock/controller/goodsList.js +++ b/mock/controller/goodsList.js @@ -28,9 +28,7 @@ module.exports = [ if (title && item.title.indexOf(title) < 0) return false return true }) - const pageList = mockList.filter( - (item, index) => index < pageSize * pageNo && index >= pageSize * (pageNo - 1) - ) + const pageList = mockList.filter((item, index) => index < pageSize * pageNo && index >= pageSize * (pageNo - 1)) return { code: 200, msg: 'success', diff --git a/mock/controller/icon.js b/mock/controller/icon.js index a4b417d..f108a43 100644 --- a/mock/controller/icon.js +++ b/mock/controller/icon.js @@ -970,9 +970,7 @@ module.exports = [ if (title && item.indexOf(title) < 0) return false return true }) - const pageList = mockList.filter( - (item, index) => index < pageSize * pageNo && index >= pageSize * (pageNo - 1) - ) + const pageList = mockList.filter((item, index) => index < pageSize * pageNo && index >= pageSize * (pageNo - 1)) return { code: 200, msg: 'success', diff --git a/mock/controller/notice.js b/mock/controller/notice.js deleted file mode 100644 index 1a7e5dd..0000000 --- a/mock/controller/notice.js +++ /dev/null @@ -1,33 +0,0 @@ -const data = [ - { - title: - '温馨提示:集成版虽功能丰富,但冗余依赖过多,建议开发时使用基础版进行开发, 建党百年惊喜福利,买一得二,全年最低价,一年仅此一次:点我获取优惠福利', - closable: false, - type: 'success', - }, - { - title: - '作者寄语:感谢Star,感恩相遇,愿世间美好与我们环环相扣,加油!屏幕前的我们,打破桎梏,坚守初心。其实人生改变命运的机会并没有太多,我们并不是不优秀,我们也并不是一无是处,我们也希望驻足山巅被众人仰望,也许我们缺少的只是一个机会,缺少的只是生命中的导师,我希望这个框架帮助到更多的人,希望有一天,我们面试的时候不再胆怯,希望有一天别人看到的不仅仅是你的努力,还有你的功成名就,出人头地。', - closable: false, - type: 'warning', - }, - { - title: - '随笔:我一直在寻找开源的真谛,我一直再想什么是开源,我一开始觉得免费就是开源,好像又不是。我理解的开源是:你也开源,我也开源,大家一起贡献,相互帮助。我最担心的事情是:我一个小人物,去伺候一众的伸手党,我想,这不是开源该有的氛围。我还太年轻,不懂什么是格局,我只知道,无私的帮助他人,能给我带来快乐,却不能给我带来收入,当然,有时候,快乐对我来说就已经足够了。可惜我是一个人,没有精力帮助到每一个人,可惜这个世界需要赚钱,才能过上平凡的生活,可惜了我的梦想,这个物欲横流的时代,理想主义的我们,即使内心坚决如铁,也似乎寸步难行。', - closable: false, - type: 'success', - }, -] -module.exports = [ - { - url: '/notice/getList', - type: 'post', - response() { - return { - code: 200, - msg: 'success', - data, - } - }, - }, -] diff --git a/mock/controller/roleManagement.js b/mock/controller/roleManagement.js index d641b5d..aab83d2 100644 --- a/mock/controller/roleManagement.js +++ b/mock/controller/roleManagement.js @@ -18,9 +18,7 @@ module.exports = [ let mockList = List.filter((item) => { return !(title && item.title.indexOf(title) < 0) }) - const pageList = mockList.filter( - (item, index) => index < pageSize * pageNo && index >= pageSize * (pageNo - 1) - ) + const pageList = mockList.filter((item, index) => index < pageSize * pageNo && index >= pageSize * (pageNo - 1)) return { code: 200, msg: 'success', diff --git a/mock/controller/table.js b/mock/controller/table.js index fa356e8..325c3d4 100644 --- a/mock/controller/table.js +++ b/mock/controller/table.js @@ -53,9 +53,7 @@ module.exports = [ let mockList = List.filter((item) => { return !(title && item.title.indexOf(title) < 0) }) - const pageList = mockList.filter( - (item, index) => index < pageSize * pageNo && index >= pageSize * (pageNo - 1) - ) + const pageList = mockList.filter((item, index) => index < pageSize * pageNo && index >= pageSize * (pageNo - 1)) return { code: 200, msg: 'success', diff --git a/mock/controller/user.js b/mock/controller/user.js index 637c7c9..e6c5494 100644 --- a/mock/controller/user.js +++ b/mock/controller/user.js @@ -74,10 +74,7 @@ module.exports = [ data: { permissions, username, - 'avatar|1': [ - 'https://i.gtimg.cn/club/item/face/img/2/15922_100.gif', - 'https://i.gtimg.cn/club/item/face/img/8/15918_100.gif', - ], + 'avatar|1': ['https://i.gtimg.cn/club/item/face/img/2/15922_100.gif', 'https://i.gtimg.cn/club/item/face/img/8/15918_100.gif'], }, } }, diff --git a/mock/controller/userManagement.js b/mock/controller/userManagement.js index da0ba45..a9269ef 100644 --- a/mock/controller/userManagement.js +++ b/mock/controller/userManagement.js @@ -35,9 +35,7 @@ module.exports = [ if (title && item.title.indexOf(title) < 0) return false return true }) - const pageList = mockList.filter( - (item, index) => index < pageSize * pageNo && index >= pageSize * (pageNo - 1) - ) + const pageList = mockList.filter((item, index) => index < pageSize * pageNo && index >= pageSize * (pageNo - 1)) return { code: 200, msg: 'success', diff --git a/package.json b/package.json index 5a8d40a..891236f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue-admin-better", - "version": "2.3.5", + "version": "2.4.0", "author": "vue-admin-better", "participants": [], "homepage": "https://chu1204505056.gitee.io/vue-admin-better", @@ -35,7 +35,7 @@ "core-js": "^3.32.1", "dayjs": "^1.11.9", "echarts": "5.4.3", - "element-ui": "^2.15.13", + "element-ui": "^2.15.14", "jsencrypt": "^3.3.2", "layouts": "file:layouts", "lodash": "^4.17.21",