From 27d9eee9d6296e30e622d6dc7085e4a2ec25566d Mon Sep 17 00:00:00 2001 From: QIANGLU <598505651@qq.com> Date: Fri, 13 Nov 2020 16:34:07 +0800 Subject: [PATCH 1/5] add v2 --- .gitignore | 1 + cubic-demo/pom.xml | 56 +++++++++++++++++++ .../matrix/agent/demo/AgentDemoStartup.java | 26 +++++++++ .../matrix/agent/demo/config/AsyncConfig.java | 44 +++++++++++++++ cubic-demo/src/main/resources/application.yml | 6 ++ cubic-ui-v2 | 1 + cubic-ui/package.json | 1 + pom.xml | 2 +- 8 files changed, 136 insertions(+), 1 deletion(-) create mode 100644 cubic-demo/pom.xml create mode 100755 cubic-demo/src/main/java/com/matrix/agent/demo/AgentDemoStartup.java create mode 100644 cubic-demo/src/main/java/com/matrix/agent/demo/config/AsyncConfig.java create mode 100644 cubic-demo/src/main/resources/application.yml create mode 160000 cubic-ui-v2 diff --git a/.gitignore b/.gitignore index feb9bda..40d92dc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /agent-dist/ *.iml /agent-proxy-dist/ +/cubic-ui-v2/node_modules/ diff --git a/cubic-demo/pom.xml b/cubic-demo/pom.xml new file mode 100644 index 0000000..8afd0e6 --- /dev/null +++ b/cubic-demo/pom.xml @@ -0,0 +1,56 @@ + + + + cubic + matrix.cubic + 1.2.0.RELEASE + + 4.0.0 + + cubic-demo + + + + org.springframework.boot + spring-boot-starter-test + + + org.springframework.boot + spring-boot-starter-web + + + org.springframework.boot + spring-boot-starter-aop + + + + org.springframework.boot + spring-boot-autoconfigure + + + org.springframework.boot + spring-boot-starter-actuator + + + org.springframework.boot + spring-boot-starter + + + + mysql + mysql-connector-java + + + org.projectlombok + lombok + 1.18.8 + + + com.alibaba + fastjson + + + + diff --git a/cubic-demo/src/main/java/com/matrix/agent/demo/AgentDemoStartup.java b/cubic-demo/src/main/java/com/matrix/agent/demo/AgentDemoStartup.java new file mode 100755 index 0000000..cece608 --- /dev/null +++ b/cubic-demo/src/main/java/com/matrix/agent/demo/AgentDemoStartup.java @@ -0,0 +1,26 @@ +package com.matrix.agent.demo; + + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.boot.builder.SpringApplicationBuilder; +import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; + +/** + * @author qianglu + */ +@SpringBootApplication +public class AgentDemoStartup extends SpringBootServletInitializer { + + @Override + protected SpringApplicationBuilder configure(SpringApplicationBuilder application) { + return application.sources(AgentDemoStartup.class); + } + + public static void main(String[] args) { + +// + SpringApplication.run(AgentDemoStartup.class, args); + + } +} diff --git a/cubic-demo/src/main/java/com/matrix/agent/demo/config/AsyncConfig.java b/cubic-demo/src/main/java/com/matrix/agent/demo/config/AsyncConfig.java new file mode 100644 index 0000000..560180b --- /dev/null +++ b/cubic-demo/src/main/java/com/matrix/agent/demo/config/AsyncConfig.java @@ -0,0 +1,44 @@ +package com.matrix.agent.demo.config; + +import org.springframework.beans.factory.annotation.Value; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; +import org.springframework.scheduling.annotation.EnableAsync; +import org.springframework.scheduling.annotation.EnableScheduling; +import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor; + +import java.util.concurrent.Executor; +import java.util.concurrent.ThreadPoolExecutor; + +/** + * 异步线程配置 + * + * @author QIANGLU on 2019/9/26 + */ +@Configuration +@EnableAsync +@EnableScheduling +public class AsyncConfig { + + @Value("${sms.executor.corePoolSize:5}") + private int corePoolSize; + + @Value("${sms.executor.maxPoolSize:10}") + private int maxPoolSize; + + @Value("${sms.executor.queueCapacity:200}") + private int queueCapacity; + + @Bean(name = "mailAsync") + public Executor mailAsync() { + ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor(); + executor.setCorePoolSize(corePoolSize); + executor.setMaxPoolSize(maxPoolSize); + executor.setQueueCapacity(queueCapacity); + executor.setRejectedExecutionHandler(new ThreadPoolExecutor.CallerRunsPolicy()); + executor.setThreadNamePrefix("MailExecutor-"); + executor.initialize(); + return executor; + } + +} \ No newline at end of file diff --git a/cubic-demo/src/main/resources/application.yml b/cubic-demo/src/main/resources/application.yml new file mode 100644 index 0000000..850b0f5 --- /dev/null +++ b/cubic-demo/src/main/resources/application.yml @@ -0,0 +1,6 @@ +spring: + application: + name: agent-demo +server: + port: 6080 + diff --git a/cubic-ui-v2 b/cubic-ui-v2 new file mode 160000 index 0000000..56b9634 --- /dev/null +++ b/cubic-ui-v2 @@ -0,0 +1 @@ +Subproject commit 56b9634553bfb2f2680ed9fa88d16db4787f5b3c diff --git a/cubic-ui/package.json b/cubic-ui/package.json index da5c566..e294621 100644 --- a/cubic-ui/package.json +++ b/cubic-ui/package.json @@ -19,6 +19,7 @@ "clipboard": "2.0.4", "codemirror": "5.45.0", "core-js": "^3.6.5", + "driver.js": "0.9.5", "dropzone": "5.5.1", "echarts": "4.2.1", diff --git a/pom.xml b/pom.xml index 30fca3e..ddf65a1 100644 --- a/pom.xml +++ b/pom.xml @@ -12,6 +12,7 @@ cubic-agent cubic-core cubic-proxy + cubic-demo @@ -34,7 +35,6 @@ 1.2.0.RELEASE - com.google.guava guava -- Gitee From d1d1e6d751b0abd08f41e741ed5ae8160fa175b4 Mon Sep 17 00:00:00 2001 From: QIANGLU <598505651@qq.com> Date: Fri, 13 Nov 2020 16:58:49 +0800 Subject: [PATCH 2/5] add v2 --- .gitignore | 1 - cubic-ui-v2 | 1 - cubic-ui/README.es.md | 219 -- cubic-ui/README.ja.md | 215 -- cubic-ui/README.md | 273 +-- cubic-ui/README.zh-CN.md | 242 --- cubic-ui/babel.config.js | 2 +- cubic-ui/jsconfig.json | 4 +- cubic-ui/mock/article.js | 116 -- cubic-ui/mock/index.js | 24 +- cubic-ui/mock/mock-server.js | 20 +- cubic-ui/mock/remote-search.js | 51 - cubic-ui/mock/role/index.js | 98 - cubic-ui/mock/role/routes.js | 525 ----- cubic-ui/mock/table.js | 29 + cubic-ui/mock/user.js | 11 +- cubic-ui/package.json | 101 +- cubic-ui/plop-templates/component/index.hbs | 26 - cubic-ui/plop-templates/component/prompt.js | 55 - cubic-ui/plop-templates/store/index.hbs | 16 - cubic-ui/plop-templates/store/prompt.js | 62 - cubic-ui/plop-templates/utils.js | 9 - cubic-ui/plop-templates/view/index.hbs | 26 - cubic-ui/plop-templates/view/prompt.js | 55 - cubic-ui/plopfile.js | 9 - cubic-ui/postcss.config.js | 7 +- cubic-ui/public/index.html | 4 +- cubic-ui/src/api/example.js | 28 + cubic-ui/src/api/index.js | 10 + cubic-ui/src/api/table.js | 9 + cubic-ui/src/assets/401_images/401.gif | Bin 164227 -> 0 bytes .../custom-theme/fonts/element-icons.ttf | Bin 11028 -> 0 bytes .../custom-theme/fonts/element-icons.woff | Bin 6124 -> 0 bytes cubic-ui/src/assets/custom-theme/index.css | 1 - cubic-ui/src/components/BackToTop/index.vue | 111 - cubic-ui/src/components/Breadcrumb/index.vue | 9 +- cubic-ui/src/components/Charts/Keyboard.vue | 155 -- cubic-ui/src/components/Charts/LineMarker.vue | 227 --- cubic-ui/src/components/Charts/MixChart.vue | 271 --- .../src/components/Charts/mixins/resize.js | 56 - cubic-ui/src/components/DndList/index.vue | 166 -- cubic-ui/src/components/DragSelect/index.vue | 61 - cubic-ui/src/components/Dropzone/index.vue | 297 --- cubic-ui/src/components/ErrorLog/index.vue | 78 - .../src/components/GithubCorner/index.vue | 54 - .../src/components/HeaderSearch/index.vue | 180 -- .../src/components/ImageCropper/index.vue | 1778 ----------------- .../ImageCropper/utils/data2blob.js | 19 - .../ImageCropper/utils/effectRipple.js | 39 - .../components/ImageCropper/utils/language.js | 232 --- .../components/ImageCropper/utils/mimes.js | 7 - cubic-ui/src/components/JsonEditor/index.vue | 72 - cubic-ui/src/components/Kanban/index.vue | 99 - cubic-ui/src/components/MDinput/index.vue | 360 ---- .../MarkdownEditor/default-options.js | 31 - .../src/components/MarkdownEditor/index.vue | 118 -- cubic-ui/src/components/Pagination/index.vue | 4 +- cubic-ui/src/components/PanThumb/index.vue | 142 -- cubic-ui/src/components/RightPanel/index.vue | 145 -- cubic-ui/src/components/Screenfull/index.vue | 60 - .../src/components/Share/DropdownMenu.vue | 103 - cubic-ui/src/components/SizeSelect/index.vue | 57 - cubic-ui/src/components/Sticky/index.vue | 91 - cubic-ui/src/components/SvgIcon/index.vue | 2 +- .../src/components/TextHoverEffect/Mallki.vue | 113 -- cubic-ui/src/components/ThemePicker/index.vue | 175 -- .../Tinymce/components/EditorImage.vue | 111 - .../components/Tinymce/dynamicLoadScript.js | 60 - cubic-ui/src/components/Tinymce/index.vue | 241 --- cubic-ui/src/components/Tinymce/plugins.js | 7 - cubic-ui/src/components/Tinymce/toolbar.js | 6 - .../src/components/Upload/SingleImage.vue | 134 -- .../src/components/Upload/SingleImage2.vue | 130 -- .../src/components/Upload/SingleImage3.vue | 157 -- cubic-ui/src/components/UploadExcel/index.vue | 138 -- cubic-ui/src/directive/clipboard/clipboard.js | 57 - cubic-ui/src/directive/clipboard/index.js | 13 - cubic-ui/src/directive/el-drag-dialog/drag.js | 77 - .../src/directive/el-drag-dialog/index.js | 13 - cubic-ui/src/directive/el-table/adaptive.js | 41 - cubic-ui/src/directive/el-table/index.js | 13 - cubic-ui/src/directive/permission/index.js | 13 - .../src/directive/permission/permission.js | 22 - cubic-ui/src/directive/sticky.js | 91 - cubic-ui/src/directive/waves/index.js | 13 - cubic-ui/src/directive/waves/waves.css | 26 - cubic-ui/src/directive/waves/waves.js | 72 - cubic-ui/src/filters/index.js | 68 - cubic-ui/src/icons/svg/404.svg | 4 - cubic-ui/src/icons/svg/bug.svg | 4 - cubic-ui/src/icons/svg/chart.svg | 3 - cubic-ui/src/icons/svg/clipboard.svg | 4 - cubic-ui/src/icons/svg/component.svg | 4 - cubic-ui/src/icons/svg/dashboard.svg | 5 +- cubic-ui/src/icons/svg/documentation.svg | 4 - cubic-ui/src/icons/svg/drag.svg | 4 - cubic-ui/src/icons/svg/edit.svg | 6 - cubic-ui/src/icons/svg/education.svg | 4 - cubic-ui/src/icons/svg/email.svg | 5 - cubic-ui/src/icons/svg/example.svg | 5 +- cubic-ui/src/icons/svg/excel.svg | 6 - cubic-ui/src/icons/svg/exit-fullscreen.svg | 4 - cubic-ui/src/icons/svg/eye-open.svg | 8 +- cubic-ui/src/icons/svg/eye.svg | 5 +- cubic-ui/src/icons/svg/form.svg | 5 +- cubic-ui/src/icons/svg/fullscreen.svg | 4 - cubic-ui/src/icons/svg/guide.svg | 4 - cubic-ui/src/icons/svg/icon.svg | 4 - cubic-ui/src/icons/svg/international.svg | 4 - cubic-ui/src/icons/svg/language.svg | 6 - cubic-ui/src/icons/svg/link.svg | 6 +- cubic-ui/src/icons/svg/list.svg | 4 - cubic-ui/src/icons/svg/lock.svg | 4 - cubic-ui/src/icons/svg/message.svg | 4 - cubic-ui/src/icons/svg/money.svg | 4 - cubic-ui/src/icons/svg/nested.svg | 5 +- cubic-ui/src/icons/svg/password.svg | 5 +- cubic-ui/src/icons/svg/pdf.svg | 4 - cubic-ui/src/icons/svg/people.svg | 4 - cubic-ui/src/icons/svg/peoples.svg | 6 - cubic-ui/src/icons/svg/qq.svg | 4 - cubic-ui/src/icons/svg/search.svg | 4 - cubic-ui/src/icons/svg/shopping.svg | 4 - cubic-ui/src/icons/svg/size.svg | 4 - cubic-ui/src/icons/svg/skill.svg | 4 - cubic-ui/src/icons/svg/star.svg | 4 - cubic-ui/src/icons/svg/tab.svg | 4 - cubic-ui/src/icons/svg/table.svg | 7 +- cubic-ui/src/icons/svg/theme.svg | 4 - cubic-ui/src/icons/svg/tree-table.svg | 4 - cubic-ui/src/icons/svg/tree.svg | 5 +- cubic-ui/src/icons/svg/user.svg | 6 +- cubic-ui/src/icons/svg/wechat.svg | 6 - cubic-ui/src/icons/svg/zip.svg | 4 - cubic-ui/src/icons/svgo.yml | 8 +- cubic-ui/src/layout/components/AppMain.vue | 25 +- cubic-ui/src/layout/components/Navbar.vue | 116 +- .../src/layout/components/Settings/index.vue | 108 - .../src/layout/components/Sidebar/Link.vue | 25 +- .../src/layout/components/Sidebar/Logo.vue | 2 +- .../layout/components/Sidebar/SidebarItem.vue | 5 +- .../src/layout/components/Sidebar/index.vue | 7 +- .../layout/components/TagsView/ScrollPane.vue | 94 - .../src/layout/components/TagsView/index.vue | 292 --- cubic-ui/src/layout/components/Topbar.vue | 172 ++ cubic-ui/src/layout/components/index.js | 7 +- cubic-ui/src/layout/index.vue | 42 +- cubic-ui/src/main.js | 31 +- cubic-ui/src/permission.js | 22 +- cubic-ui/src/router/index.js | 475 +---- cubic-ui/src/router/modules/charts.js | 36 - cubic-ui/src/router/modules/components.js | 102 - cubic-ui/src/router/modules/nested.js | 66 - cubic-ui/src/router/modules/table.js | 41 - cubic-ui/src/settings.js | 23 +- cubic-ui/src/store/getters.js | 9 +- cubic-ui/src/store/index.js | 24 +- cubic-ui/src/store/modules/app.js | 17 +- cubic-ui/src/store/modules/errorLog.js | 28 - cubic-ui/src/store/modules/permission.js | 60 +- cubic-ui/src/store/modules/settings.js | 5 +- cubic-ui/src/store/modules/tagsView.js | 160 -- cubic-ui/src/store/modules/user.js | 77 +- cubic-ui/src/styles/btn.scss | 99 - cubic-ui/src/styles/element-ui.scss | 35 - cubic-ui/src/styles/element-variables.scss | 31 - cubic-ui/src/styles/index.scss | 133 +- cubic-ui/src/styles/mixin.scss | 32 - cubic-ui/src/styles/sidebar.scss | 30 +- cubic-ui/src/styles/topbar.scss | 89 + cubic-ui/src/styles/variables.scss | 26 +- cubic-ui/src/utils/auth.js | 2 +- cubic-ui/src/utils/clipboard.js | 32 - cubic-ui/src/utils/error-log.js | 35 - cubic-ui/src/utils/get-page-title.js | 2 +- cubic-ui/src/utils/index.js | 270 +-- cubic-ui/src/utils/open-window.js | 25 - cubic-ui/src/utils/permission.js | 25 - cubic-ui/src/utils/request.js | 4 +- cubic-ui/src/utils/scroll-to.js | 60 - cubic-ui/src/utils/validate.js | 67 - cubic-ui/src/views/{error-page => }/404.vue | 0 cubic-ui/src/views/charts/keyboard.vue | 23 - cubic-ui/src/views/charts/line.vue | 23 - cubic-ui/src/views/charts/mix-chart.vue | 23 - cubic-ui/src/views/clipboard/index.vue | 49 - .../views/components-demo/avatar-upload.vue | 61 - .../src/views/components-demo/back-to-top.vue | 154 -- .../src/views/components-demo/count-to.vue | 218 -- .../src/views/components-demo/dnd-list.vue | 39 - .../src/views/components-demo/drag-dialog.vue | 61 - .../src/views/components-demo/drag-kanban.vue | 66 - .../src/views/components-demo/drag-select.vue | 43 - .../src/views/components-demo/dropzone.vue | 31 - .../src/views/components-demo/json-editor.vue | 36 - .../src/views/components-demo/markdown.vue | 101 - cubic-ui/src/views/components-demo/mixin.vue | 169 -- .../src/views/components-demo/split-pane.vue | 67 - cubic-ui/src/views/components-demo/sticky.vue | 135 -- .../src/views/components-demo/tinymce.vue | 36 - .../dashboard/admin/components/BarChart.vue | 102 - .../dashboard/admin/components/BoxCard.vue | 118 -- .../dashboard/admin/components/LineChart.vue | 135 -- .../dashboard/admin/components/PanelGroup.vue | 181 -- .../dashboard/admin/components/PieChart.vue | 79 - .../admin/components/RaddarChart.vue | 116 -- .../admin/components/TodoList/Todo.vue | 81 - .../admin/components/TodoList/index.scss | 369 ---- .../admin/components/TodoList/index.vue | 127 -- .../admin/components/TransactionTable.vue | 55 - .../admin/components/mixins/resize.js | 55 - cubic-ui/src/views/dashboard/admin/index.vue | 124 -- cubic-ui/src/views/dashboard/editor/index.vue | 74 - cubic-ui/src/views/dashboard/index.vue | 246 ++- cubic-ui/src/views/dashboard/list.vue | 249 --- cubic-ui/src/views/documentation/index.vue | 56 - .../views/error-log/components/ErrorTestA.vue | 13 - .../views/error-log/components/ErrorTestB.vue | 11 - cubic-ui/src/views/error-log/index.vue | 32 - cubic-ui/src/views/error-page/401.vue | 99 - .../example/components/ArticleDetail.vue | 289 --- .../example/components/Dropdown/Comment.vue | 41 - .../example/components/Dropdown/Platform.vue | 46 - .../example/components/Dropdown/SourceUrl.vue | 38 - .../example/components/Dropdown/index.js | 3 - .../src/views/example/components/Warning.vue | 13 - cubic-ui/src/views/example/create.vue | 13 - cubic-ui/src/views/example/edit.vue | 13 - cubic-ui/src/views/example/list.vue | 112 -- .../excel/components/AutoWidthOption.vue | 34 - .../views/excel/components/BookTypeOption.vue | 39 - .../views/excel/components/FilenameOption.vue | 27 - cubic-ui/src/views/excel/export-excel.vue | 116 -- cubic-ui/src/views/excel/merge-header.vue | 101 - cubic-ui/src/views/excel/select-excel.vue | 107 - cubic-ui/src/views/excel/upload-excel.vue | 42 - cubic-ui/src/views/form/index.vue | 85 + cubic-ui/src/views/guide/index.vue | 36 - cubic-ui/src/views/guide/steps.js | 53 - cubic-ui/src/views/icons/element-icons.js | 3 - cubic-ui/src/views/icons/index.vue | 101 - cubic-ui/src/views/icons/svg-icons.js | 10 - cubic-ui/src/views/listTable/index.vue | 384 ---- cubic-ui/src/views/login/auth-redirect.vue | 15 - .../views/login/components/SocialSignin.vue | 72 - cubic-ui/src/views/login/index.vue | 155 +- cubic-ui/src/views/logs/audit.vue | 22 - .../src/views/logs/components/ErrorTestA.vue | 13 - .../src/views/logs/components/ErrorTestB.vue | 11 - cubic-ui/src/views/logs/error.vue | 22 - cubic-ui/src/views/nested/menu2/index.vue | 2 +- cubic-ui/src/views/pdf/content.js | 58 - cubic-ui/src/views/pdf/download.vue | 201 -- cubic-ui/src/views/pdf/index.vue | 13 - .../permission/components/SwitchRoles.vue | 32 - cubic-ui/src/views/permission/directive.vue | 111 - cubic-ui/src/views/permission/page.vue | 19 - cubic-ui/src/views/permission/role.vue | 270 --- .../src/views/profile/components/Account.vue | 38 - .../src/views/profile/components/Activity.vue | 185 -- .../src/views/profile/components/Timeline.vue | 43 - .../src/views/profile/components/UserCard.vue | 134 -- cubic-ui/src/views/profile/index.vue | 68 - cubic-ui/src/views/qiniu/upload.vue | 41 - cubic-ui/src/views/redirect/index.vue | 12 - cubic-ui/src/views/tab/components/TabPane.vue | 103 - cubic-ui/src/views/tab/index.vue | 57 - cubic-ui/src/views/table/complex-table.vue | 379 ---- cubic-ui/src/views/table/drag-table.vue | 153 -- .../dynamic-table/components/FixedThead.vue | 62 - .../dynamic-table/components/UnfixedThead.vue | 50 - .../src/views/table/dynamic-table/index.vue | 24 - cubic-ui/src/views/{zip => table}/index.vue | 64 +- .../src/views/table/inline-edit-table.vue | 149 -- cubic-ui/src/views/theme/index.vue | 120 -- cubic-ui/src/views/threads/index.vue | 23 - cubic-ui/src/views/tree/index.vue | 78 + .../tests/unit/components/Breadcrumb.spec.js | 98 + cubic-ui/tests/unit/utils/formatTime.spec.js | 1 + cubic-ui/tests/unit/utils/parseTime.spec.js | 9 - cubic-ui/tests/unit/utils/validate.spec.js | 29 +- cubic-ui/vue.config.js | 40 +- 282 files changed, 1372 insertions(+), 19319 deletions(-) delete mode 160000 cubic-ui-v2 delete mode 100644 cubic-ui/README.es.md delete mode 100644 cubic-ui/README.ja.md delete mode 100644 cubic-ui/README.zh-CN.md delete mode 100644 cubic-ui/mock/article.js delete mode 100644 cubic-ui/mock/remote-search.js delete mode 100644 cubic-ui/mock/role/index.js delete mode 100644 cubic-ui/mock/role/routes.js create mode 100644 cubic-ui/mock/table.js delete mode 100644 cubic-ui/plop-templates/component/index.hbs delete mode 100644 cubic-ui/plop-templates/component/prompt.js delete mode 100644 cubic-ui/plop-templates/store/index.hbs delete mode 100644 cubic-ui/plop-templates/store/prompt.js delete mode 100644 cubic-ui/plop-templates/utils.js delete mode 100644 cubic-ui/plop-templates/view/index.hbs delete mode 100644 cubic-ui/plop-templates/view/prompt.js delete mode 100644 cubic-ui/plopfile.js create mode 100644 cubic-ui/src/api/example.js create mode 100644 cubic-ui/src/api/index.js create mode 100644 cubic-ui/src/api/table.js delete mode 100644 cubic-ui/src/assets/401_images/401.gif delete mode 100644 cubic-ui/src/assets/custom-theme/fonts/element-icons.ttf delete mode 100644 cubic-ui/src/assets/custom-theme/fonts/element-icons.woff delete mode 100644 cubic-ui/src/assets/custom-theme/index.css delete mode 100644 cubic-ui/src/components/BackToTop/index.vue delete mode 100644 cubic-ui/src/components/Charts/Keyboard.vue delete mode 100644 cubic-ui/src/components/Charts/LineMarker.vue delete mode 100644 cubic-ui/src/components/Charts/MixChart.vue delete mode 100644 cubic-ui/src/components/Charts/mixins/resize.js delete mode 100644 cubic-ui/src/components/DndList/index.vue delete mode 100644 cubic-ui/src/components/DragSelect/index.vue delete mode 100644 cubic-ui/src/components/Dropzone/index.vue delete mode 100644 cubic-ui/src/components/ErrorLog/index.vue delete mode 100644 cubic-ui/src/components/GithubCorner/index.vue delete mode 100644 cubic-ui/src/components/HeaderSearch/index.vue delete mode 100644 cubic-ui/src/components/ImageCropper/index.vue delete mode 100755 cubic-ui/src/components/ImageCropper/utils/data2blob.js delete mode 100755 cubic-ui/src/components/ImageCropper/utils/effectRipple.js delete mode 100755 cubic-ui/src/components/ImageCropper/utils/language.js delete mode 100755 cubic-ui/src/components/ImageCropper/utils/mimes.js delete mode 100644 cubic-ui/src/components/JsonEditor/index.vue delete mode 100644 cubic-ui/src/components/Kanban/index.vue delete mode 100644 cubic-ui/src/components/MDinput/index.vue delete mode 100644 cubic-ui/src/components/MarkdownEditor/default-options.js delete mode 100644 cubic-ui/src/components/MarkdownEditor/index.vue delete mode 100644 cubic-ui/src/components/PanThumb/index.vue delete mode 100644 cubic-ui/src/components/RightPanel/index.vue delete mode 100644 cubic-ui/src/components/Screenfull/index.vue delete mode 100644 cubic-ui/src/components/Share/DropdownMenu.vue delete mode 100644 cubic-ui/src/components/SizeSelect/index.vue delete mode 100644 cubic-ui/src/components/Sticky/index.vue delete mode 100644 cubic-ui/src/components/TextHoverEffect/Mallki.vue delete mode 100644 cubic-ui/src/components/ThemePicker/index.vue delete mode 100644 cubic-ui/src/components/Tinymce/components/EditorImage.vue delete mode 100644 cubic-ui/src/components/Tinymce/dynamicLoadScript.js delete mode 100644 cubic-ui/src/components/Tinymce/index.vue delete mode 100644 cubic-ui/src/components/Tinymce/plugins.js delete mode 100644 cubic-ui/src/components/Tinymce/toolbar.js delete mode 100644 cubic-ui/src/components/Upload/SingleImage.vue delete mode 100644 cubic-ui/src/components/Upload/SingleImage2.vue delete mode 100644 cubic-ui/src/components/Upload/SingleImage3.vue delete mode 100644 cubic-ui/src/components/UploadExcel/index.vue delete mode 100644 cubic-ui/src/directive/clipboard/clipboard.js delete mode 100644 cubic-ui/src/directive/clipboard/index.js delete mode 100644 cubic-ui/src/directive/el-drag-dialog/drag.js delete mode 100644 cubic-ui/src/directive/el-drag-dialog/index.js delete mode 100644 cubic-ui/src/directive/el-table/adaptive.js delete mode 100644 cubic-ui/src/directive/el-table/index.js delete mode 100644 cubic-ui/src/directive/permission/index.js delete mode 100644 cubic-ui/src/directive/permission/permission.js delete mode 100644 cubic-ui/src/directive/sticky.js delete mode 100644 cubic-ui/src/directive/waves/index.js delete mode 100644 cubic-ui/src/directive/waves/waves.css delete mode 100644 cubic-ui/src/directive/waves/waves.js delete mode 100644 cubic-ui/src/filters/index.js delete mode 100644 cubic-ui/src/icons/svg/404.svg delete mode 100644 cubic-ui/src/icons/svg/bug.svg delete mode 100644 cubic-ui/src/icons/svg/chart.svg delete mode 100644 cubic-ui/src/icons/svg/clipboard.svg delete mode 100644 cubic-ui/src/icons/svg/component.svg delete mode 100644 cubic-ui/src/icons/svg/documentation.svg delete mode 100644 cubic-ui/src/icons/svg/drag.svg delete mode 100644 cubic-ui/src/icons/svg/edit.svg delete mode 100644 cubic-ui/src/icons/svg/education.svg delete mode 100644 cubic-ui/src/icons/svg/email.svg delete mode 100644 cubic-ui/src/icons/svg/excel.svg delete mode 100644 cubic-ui/src/icons/svg/exit-fullscreen.svg delete mode 100644 cubic-ui/src/icons/svg/fullscreen.svg delete mode 100644 cubic-ui/src/icons/svg/guide.svg delete mode 100644 cubic-ui/src/icons/svg/icon.svg delete mode 100644 cubic-ui/src/icons/svg/international.svg delete mode 100644 cubic-ui/src/icons/svg/language.svg delete mode 100644 cubic-ui/src/icons/svg/list.svg delete mode 100644 cubic-ui/src/icons/svg/lock.svg delete mode 100644 cubic-ui/src/icons/svg/message.svg delete mode 100644 cubic-ui/src/icons/svg/money.svg delete mode 100644 cubic-ui/src/icons/svg/pdf.svg delete mode 100644 cubic-ui/src/icons/svg/people.svg delete mode 100644 cubic-ui/src/icons/svg/peoples.svg delete mode 100644 cubic-ui/src/icons/svg/qq.svg delete mode 100644 cubic-ui/src/icons/svg/search.svg delete mode 100644 cubic-ui/src/icons/svg/shopping.svg delete mode 100644 cubic-ui/src/icons/svg/size.svg delete mode 100644 cubic-ui/src/icons/svg/skill.svg delete mode 100644 cubic-ui/src/icons/svg/star.svg delete mode 100644 cubic-ui/src/icons/svg/tab.svg delete mode 100644 cubic-ui/src/icons/svg/theme.svg delete mode 100644 cubic-ui/src/icons/svg/tree-table.svg delete mode 100644 cubic-ui/src/icons/svg/wechat.svg delete mode 100644 cubic-ui/src/icons/svg/zip.svg delete mode 100644 cubic-ui/src/layout/components/Settings/index.vue delete mode 100644 cubic-ui/src/layout/components/TagsView/ScrollPane.vue delete mode 100644 cubic-ui/src/layout/components/TagsView/index.vue create mode 100644 cubic-ui/src/layout/components/Topbar.vue delete mode 100644 cubic-ui/src/router/modules/charts.js delete mode 100644 cubic-ui/src/router/modules/components.js delete mode 100644 cubic-ui/src/router/modules/nested.js delete mode 100644 cubic-ui/src/router/modules/table.js delete mode 100644 cubic-ui/src/store/modules/errorLog.js delete mode 100644 cubic-ui/src/store/modules/tagsView.js delete mode 100644 cubic-ui/src/styles/btn.scss delete mode 100644 cubic-ui/src/styles/element-variables.scss create mode 100644 cubic-ui/src/styles/topbar.scss delete mode 100644 cubic-ui/src/utils/clipboard.js delete mode 100644 cubic-ui/src/utils/error-log.js delete mode 100644 cubic-ui/src/utils/open-window.js delete mode 100644 cubic-ui/src/utils/permission.js delete mode 100644 cubic-ui/src/utils/scroll-to.js rename cubic-ui/src/views/{error-page => }/404.vue (100%) delete mode 100644 cubic-ui/src/views/charts/keyboard.vue delete mode 100644 cubic-ui/src/views/charts/line.vue delete mode 100644 cubic-ui/src/views/charts/mix-chart.vue delete mode 100644 cubic-ui/src/views/clipboard/index.vue delete mode 100644 cubic-ui/src/views/components-demo/avatar-upload.vue delete mode 100644 cubic-ui/src/views/components-demo/back-to-top.vue delete mode 100644 cubic-ui/src/views/components-demo/count-to.vue delete mode 100644 cubic-ui/src/views/components-demo/dnd-list.vue delete mode 100644 cubic-ui/src/views/components-demo/drag-dialog.vue delete mode 100644 cubic-ui/src/views/components-demo/drag-kanban.vue delete mode 100644 cubic-ui/src/views/components-demo/drag-select.vue delete mode 100644 cubic-ui/src/views/components-demo/dropzone.vue delete mode 100644 cubic-ui/src/views/components-demo/json-editor.vue delete mode 100644 cubic-ui/src/views/components-demo/markdown.vue delete mode 100644 cubic-ui/src/views/components-demo/mixin.vue delete mode 100644 cubic-ui/src/views/components-demo/split-pane.vue delete mode 100644 cubic-ui/src/views/components-demo/sticky.vue delete mode 100644 cubic-ui/src/views/components-demo/tinymce.vue delete mode 100644 cubic-ui/src/views/dashboard/admin/components/BarChart.vue delete mode 100644 cubic-ui/src/views/dashboard/admin/components/BoxCard.vue delete mode 100644 cubic-ui/src/views/dashboard/admin/components/LineChart.vue delete mode 100644 cubic-ui/src/views/dashboard/admin/components/PanelGroup.vue delete mode 100644 cubic-ui/src/views/dashboard/admin/components/PieChart.vue delete mode 100644 cubic-ui/src/views/dashboard/admin/components/RaddarChart.vue delete mode 100644 cubic-ui/src/views/dashboard/admin/components/TodoList/Todo.vue delete mode 100644 cubic-ui/src/views/dashboard/admin/components/TodoList/index.scss delete mode 100644 cubic-ui/src/views/dashboard/admin/components/TodoList/index.vue delete mode 100644 cubic-ui/src/views/dashboard/admin/components/TransactionTable.vue delete mode 100644 cubic-ui/src/views/dashboard/admin/components/mixins/resize.js delete mode 100644 cubic-ui/src/views/dashboard/admin/index.vue delete mode 100644 cubic-ui/src/views/dashboard/editor/index.vue delete mode 100644 cubic-ui/src/views/dashboard/list.vue delete mode 100644 cubic-ui/src/views/documentation/index.vue delete mode 100644 cubic-ui/src/views/error-log/components/ErrorTestA.vue delete mode 100644 cubic-ui/src/views/error-log/components/ErrorTestB.vue delete mode 100644 cubic-ui/src/views/error-log/index.vue delete mode 100644 cubic-ui/src/views/error-page/401.vue delete mode 100644 cubic-ui/src/views/example/components/ArticleDetail.vue delete mode 100644 cubic-ui/src/views/example/components/Dropdown/Comment.vue delete mode 100644 cubic-ui/src/views/example/components/Dropdown/Platform.vue delete mode 100644 cubic-ui/src/views/example/components/Dropdown/SourceUrl.vue delete mode 100644 cubic-ui/src/views/example/components/Dropdown/index.js delete mode 100644 cubic-ui/src/views/example/components/Warning.vue delete mode 100644 cubic-ui/src/views/example/create.vue delete mode 100644 cubic-ui/src/views/example/edit.vue delete mode 100644 cubic-ui/src/views/example/list.vue delete mode 100644 cubic-ui/src/views/excel/components/AutoWidthOption.vue delete mode 100644 cubic-ui/src/views/excel/components/BookTypeOption.vue delete mode 100644 cubic-ui/src/views/excel/components/FilenameOption.vue delete mode 100644 cubic-ui/src/views/excel/export-excel.vue delete mode 100644 cubic-ui/src/views/excel/merge-header.vue delete mode 100644 cubic-ui/src/views/excel/select-excel.vue delete mode 100644 cubic-ui/src/views/excel/upload-excel.vue create mode 100644 cubic-ui/src/views/form/index.vue delete mode 100644 cubic-ui/src/views/guide/index.vue delete mode 100644 cubic-ui/src/views/guide/steps.js delete mode 100644 cubic-ui/src/views/icons/element-icons.js delete mode 100644 cubic-ui/src/views/icons/index.vue delete mode 100644 cubic-ui/src/views/icons/svg-icons.js delete mode 100644 cubic-ui/src/views/listTable/index.vue delete mode 100644 cubic-ui/src/views/login/auth-redirect.vue delete mode 100644 cubic-ui/src/views/login/components/SocialSignin.vue delete mode 100644 cubic-ui/src/views/logs/audit.vue delete mode 100644 cubic-ui/src/views/logs/components/ErrorTestA.vue delete mode 100644 cubic-ui/src/views/logs/components/ErrorTestB.vue delete mode 100644 cubic-ui/src/views/logs/error.vue delete mode 100644 cubic-ui/src/views/pdf/content.js delete mode 100644 cubic-ui/src/views/pdf/download.vue delete mode 100644 cubic-ui/src/views/pdf/index.vue delete mode 100644 cubic-ui/src/views/permission/components/SwitchRoles.vue delete mode 100644 cubic-ui/src/views/permission/directive.vue delete mode 100644 cubic-ui/src/views/permission/page.vue delete mode 100644 cubic-ui/src/views/permission/role.vue delete mode 100644 cubic-ui/src/views/profile/components/Account.vue delete mode 100644 cubic-ui/src/views/profile/components/Activity.vue delete mode 100644 cubic-ui/src/views/profile/components/Timeline.vue delete mode 100644 cubic-ui/src/views/profile/components/UserCard.vue delete mode 100644 cubic-ui/src/views/profile/index.vue delete mode 100644 cubic-ui/src/views/qiniu/upload.vue delete mode 100644 cubic-ui/src/views/redirect/index.vue delete mode 100644 cubic-ui/src/views/tab/components/TabPane.vue delete mode 100644 cubic-ui/src/views/tab/index.vue delete mode 100644 cubic-ui/src/views/table/complex-table.vue delete mode 100644 cubic-ui/src/views/table/drag-table.vue delete mode 100644 cubic-ui/src/views/table/dynamic-table/components/FixedThead.vue delete mode 100644 cubic-ui/src/views/table/dynamic-table/components/UnfixedThead.vue delete mode 100644 cubic-ui/src/views/table/dynamic-table/index.vue rename cubic-ui/src/views/{zip => table}/index.vue (39%) delete mode 100644 cubic-ui/src/views/table/inline-edit-table.vue delete mode 100644 cubic-ui/src/views/theme/index.vue delete mode 100644 cubic-ui/src/views/threads/index.vue create mode 100644 cubic-ui/src/views/tree/index.vue create mode 100644 cubic-ui/tests/unit/components/Breadcrumb.spec.js diff --git a/.gitignore b/.gitignore index 40d92dc..feb9bda 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ /agent-dist/ *.iml /agent-proxy-dist/ -/cubic-ui-v2/node_modules/ diff --git a/cubic-ui-v2 b/cubic-ui-v2 deleted file mode 160000 index 56b9634..0000000 --- a/cubic-ui-v2 +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 56b9634553bfb2f2680ed9fa88d16db4787f5b3c diff --git a/cubic-ui/README.es.md b/cubic-ui/README.es.md deleted file mode 100644 index 3e054ce..0000000 --- a/cubic-ui/README.es.md +++ /dev/null @@ -1,219 +0,0 @@ -

- -

- -

- - vue - - - element-ui - - - Estado de Construcción - - - Licencia - - - Liberación Github - - - Gitter - - - Donación - -

- -Español | [English](./README.md) | [简体中文](./README.zh-CN.md) | [日本語](./README.ja.md) - -## Introducción - -[vue-element-admin](https://panjiachen.github.io/vue-element-admin) es una interfáz de administración preparada para producción. Está basada en [vue](https://github.com/vuejs/vue) y usa [element-ui](https://github.com/ElemeFE/element) como conjunto de herramientas de interfáz de usuario. - -Vue Element Admin es una solución práctica basada en la nueva plataforma de desarrollo de vue, construida con soporte a i18 para el manejo de múltiples lenguajes, plantillas estándares para aplicaciones de negocio y un conjunto de asombrosas características. Esta herramienta ayuda a construir largas y complejas Aplicacones de una sola página (SPA). Creo que lo que necesites hacer, este proyecto te ayudará. - -- [Vista Prévia de la Aplicación](https://panjiachen.github.io/vue-element-admin) - -- [Documentación](https://panjiachen.github.io/vue-element-admin-site/) - -- [Canal de Gitter](https://gitter.im/vue-element-admin/discuss) - -- [Para Donaciones](https://panjiachen.github.io/vue-element-admin-site/donate/) - -- [Enlace de Wiki](https://github.com/PanJiaChen/vue-element-admin/wiki) - -- [Canal de Gitee](https://panjiachen.gitee.io/vue-element-admin/) - -- Plantilla base recomendada para usar: [vue-admin-template](https://github.com/PanJiaChen/vue-admin-template) -- Aplicación de Escritorio: [electron-vue-admin](https://github.com/PanJiaChen/electron-vue-admin) -- Plantilla de Typescript: [vue-typescript-admin-template](https://github.com/Armour/vue-typescript-admin-template) (Créditos: [@Armour](https://github.com/Armour)) -- [awesome-project](https://github.com/PanJiaChen/vue-element-admin/issues/2312) - -**Después de la versión `v4.1.0+`, la rama por defecto master no tendrá soporte para i18n. Por favor use [i18n](https://github.com/PanJiaChen/vue-element-admin/tree/i18n), los cambios serán incluidos en la rama master** - -**la versión actual es `v4.0+` construida con `vue-cli`. Si encuentra algún problema, por favor coloque un [issue](https://github.com/PanJiaChen/vue-element-admin/issues/new). Si desea usar la versión anterior, puede cambiar de rama a [tag/3.11.0](https://github.com/PanJiaChen/vue-element-admin/tree/tag/3.11.0), no relacionado con `vue-cli`** - -**Este proyecto no está soportado para versiones muy viejas de navegadores (e.g. IE).** - -## Preparación - -Necesita instalar [node](https://nodejs.org/) y [git](https://git-scm.com/) localmente. El proyecto es basado en [ES2015+](https://es6.ruanyifeng.com/), [vue](https://cn.vuejs.org/index.html), [vuex](https://vuex.vuejs.org/zh-cn/), [vue-router](https://router.vuejs.org/zh-cn/), [vue-cli](https://github.com/vuejs/vue-cli) , [axios](https://github.com/axios/axios) and [element-ui](https://github.com/ElemeFE/element), toda la solicitud de datos simulada se realiza a través de [Mock.js](https://github.com/nuysoft/Mock). -Entendiendo y aprendiendo esto pudiera ayudarle con su proyecto. - -[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/github/PanJiaChen/vue-element-admin/tree/CodeSandbox) - -

- -

- -## Patrocinantes - -Se un patrocinante y pon tu logo en nuestro README on GitHub con un enlace directo a tu sitio web. [[Se un Patrocinante]](https://www.patreon.com/panjiachen) - -

Plantilla de Dashboard de administración hecha con Vue, React y Angular.

- -## Características - -``` -- Iniciar / Cerrar Sesión - -- Permisos de Authentication - - Página de Permisos - - Directivas de permisos - - Página de configuración de permisos - - Autenticación por dos pasos - -- Construcción Multi-entorno - - dev sit stage producción - -- Características Globales - - I18n - - Temas dinámicos - - Dynamic sidebar (soporte a rutas multi-nivel) - - Barra de rutas dinámica - - Tags-view (Tab page Support right-click operation) - - Svg Sprite - - Datos de simulación con Mock - - Pantalla completa - - Responsive Sidebar - -- Editor - - Editor de Texto Enriquecido - - Editor Markdown - - Editor JSON - -- Excel - - Exportación a Excel - - Carga de Excel - - Visualización de Excel - - Exportación como zip - -- Tabla - - Tabla Dinámica - - Tabla con Arrastrar y Soltar - - Tabla de edición en línea - -- Páginas de Error - - 401 - - 404 - -- Componentes - - Carga de Avatar - - Botón para subir al inicio - - Arrastrar y Soltar (Diaglogo) - - Arrastrar y Soltar (Seleccionar) - - Arrastrar y Soltar (Kanban) - - Arrastrar y Soltar (Lista) - - Panel de división - - Componente para soltar archivos - - Adhesión de objetos - - Contador hasta - -- Ejemplo Avanzado -- Registro de Errores -- Tablero de indicadores -- Página de Guías -- ECharts (Gráficos) -- Portapapeles -- Convertidor de Markdown a html -``` - -## Iniciando - -```bash -# clone el proyecto -git clone https://github.com/PanJiaChen/vue-element-admin.git - -# vaya al directorio clonado -cd vue-element-admin - -# instale las dependencias -npm install - -# corra el proyecto como desarrollador -npm run dev -``` - -Automáticamente se abrirá el siguiente enlace en su navegador http://localhost:9527 - -## Construcción - -```bash -# Construcción para entornos de prueba -npm run build:stage - -# Construcción para entornos de producción -npm run build:prod -``` - -## Avanzado - -```bash -# Vista previa con efectos de entorno -npm run preview - -# Vista previa con efectos + análisis de recursos estáticos -npm run preview -- --report - -# Chequeo de formato de código -npm run lint - -# Chequeo de formato de código y auto-corrección -npm run lint -- --fix -``` - -Vaya a [Documentación](https://panjiachen.github.io/vue-element-admin-site/guide/essentials/deploy.html) para mayor información - -## Registro de Cambios - -Los cambios detallados por cada liberación se encuentran en [notas de liberación](https://github.com/PanJiaChen/vue-element-admin/releases). - -## Demostración en línea - -[Vista Prévia de la Aplicación](https://panjiachen.github.io/vue-element-admin) - -## Donación - -Si este proyecto es de mucha ayuda para ti, puedes comprarle al autor un vaso de jugo :tropical_drink: - -![Donar](https://wpimg.wallstcn.com/bd273f0d-83a0-4ef2-92e1-9ac8ed3746b9.png) - -[dona por Paypal](https://www.paypal.me/panfree23) - -[Comprame un Café](https://www.buymeacoffee.com/Pan) - -## Navegadores Soportados - -Navegadores modernos e Internet Explorer 10+. - -| [IE / Edge](https://godban.github.io/browsers-support-badges/)
IE / Edge | [Firefox](https://godban.github.io/browsers-support-badges/)
Firefox | [Chrome](https://godban.github.io/browsers-support-badges/)
Chrome | [Safari](https://godban.github.io/browsers-support-badges/)
Safari | -| --------- | --------- | --------- | --------- | -| IE10, IE11, Edge| últimas 2 versiones| últimas 2 versiones| últimas 2 versiones - -## Licencia - -[MIT](https://github.com/PanJiaChen/vue-element-admin/blob/master/LICENSE) - -Copyright (c) 2017-presente PanJiaChen diff --git a/cubic-ui/README.ja.md b/cubic-ui/README.ja.md deleted file mode 100644 index a20a4d7..0000000 --- a/cubic-ui/README.ja.md +++ /dev/null @@ -1,215 +0,0 @@ -

- -

- -

- - vue - - - element-ui - - - Build Status - - - license - - - GitHub release - - - gitter - - - donate - -

- -日本語 | [English](./README.md) | [简体中文](./README.zh-CN.md) | [Spanish](./README.es.md) - -## 概要 - -[vue-element-admin](https://panjiachen.github.io/vue-element-admin) は管理画面のフロントエンドのインタフェースで、[vue](https://github.com/vuejs/vue) と [element-ui](https://github.com/ElemeFE/element)を使っています。i18nの多言語対応、可変ルート、権限、典型的なビジネスアプリテンプレートであり、豊富なコンポーネントを提供しています。素早くビジネス用の管理画面の現型を構築に役立ちます。 - -- [デモページ](https://panjiachen.github.io/vue-element-admin) - -- [ドキュメント](https://panjiachen.github.io/vue-element-admin-site/) - -- [Gitter](https://gitter.im/vue-element-admin/discuss) - -- [Donate](https://panjiachen.gitee.io/vue-element-admin-site/zh/donate) - -- [Wiki](https://github.com/PanJiaChen/vue-element-admin/wiki) - -- おすすめシンプルテンプレート: [vue-admin-template](https://github.com/PanJiaChen/vue-admin-template) -- デスクトップバージョン: [electron-vue-admin](https://github.com/PanJiaChen/electron-vue-admin) -- Typescriptバージョン: [vue-typescript-admin-template](https://github.com/Armour/vue-typescript-admin-template) (感謝: [@Armour](https://github.com/Armour)) -- [awesome-project](https://github.com/PanJiaChen/vue-element-admin/issues/2312) - -**バージョン`v4.1.0+`以降について、デフォルトのmasterブランチではi18nをサポートしていません。masterブランチと共にアップデートされる[i18n Branch](https://github.com/PanJiaChen/vue-element-admin/tree/i18n)を使用してください。 ** - -**現在のバージョン `v4.0+` は `vue-cli` で構築していて、バグ報告は[issue](https://github.com/PanJiaChen/vue-element-admin/issues/new)のissueでお願いします。旧バージョン[tag/3.11.0](https://github.com/PanJiaChen/vue-element-admin/tree/tag/3.11.0)もあります。こちらは`vue-cli`に依存しないです。** - -**低いバージョンのブラウザはサーポートしないです(例えば ie),必要があれば polyfill を追加してください。 [詳細はこちら](https://github.com/PanJiaChen/vue-element-admin/wiki#babel-polyfill)** - -## 前準備 - -ローカル環境に [node](http://nodejs.org/) と [git](https://git-scm.com/)のインストールが必要です。[ES2015+](http://es6.ruanyifeng.com/)、[vue](https://cn.vuejs.org/index.html)、[vuex](https://vuex.vuejs.org/zh-cn/)、[vue-router](https://router.vuejs.org/zh-cn/) 、[vue-cli](https://github.com/vuejs/vue-cli) 、[axios](https://github.com/axios/axios) と [element-ui](https://github.com/ElemeFE/element)で開発しています。Requestは[Mock.js](https://github.com/nuysoft/Mock)のモックデータを使っています。 - -**バグ修正や新規機能追加のissue と pull requestは大歓迎です。** - -[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/github/PanJiaChen/vue-element-admin/tree/CodeSandbox) - -

- -

- -## Sponsors - -Become a sponsor and get your logo on our README on GitHub with a link to your site. [[Become a sponsor]](https://www.patreon.com/panjiachen) - -

Admin Dashboard Templates made with Vue, React and Angular.

- -## 機能一覧 - -``` -- ログイン / ログアウト - -- Auth認証 - - ページ権限 - - 権限パーミッション - - 権限設定 - - 外部IDでログイン - -- 複数環境デプロイ - - dev sit stage prod - -- 共通機能 - - 多言語切替 - - テーマ切替 - - サイトメニュー(ルートから生成) - - パンくずリストナビゲーション - - タブナビゲーション - - Svg Sprite アイコン - - ローカル/バックエンド モック データ - - Screenfull - -- WYSIWYG - - TinyMCE - - Markdown - - JSON - -- Excel - - エクスポート - - インポート - - リード - - Zip - -- テーブル - - ダイナミックテーブル - - ドラッグアンドドロップテーブル - - インラインエディットテーブル - -- エラーページ - - 401 - - 404 - -- コンポーネント - - アバターアップロード - - トップに戻る - - ドラッグダイアログ - - ドラッグ選択 - - ドラッグKanban - - ドラッグリスト - - ペインの分割 - - Dropzone - - スティッキー - - CountTo - -- 高度なサンプル -- エラーログ -- ダッシュボード -- ガイドページ -- ECharts -- クリップボード -- Markdown to html -``` - -## Getting started - -```bash -# clone the project -git clone https://github.com/PanJiaChen/vue-element-admin.git - -# enter the project directory -cd vue-element-admin - -# install dependency -npm install - -# develop -npm run dev -``` - -http://localhost:9527 が自動的に開きます。 - -## Build - -```bash -# build for test environment -npm run build:stage - -# build for production environment -npm run build:prod -``` - -## Advanced - -```bash -# preview the release environment effect -npm run preview - -# preview the release environment effect + static resource analysis -npm run preview -- --report - -# code format check -npm run lint - -# code format check and auto fix -npm run lint -- --fix -``` - -詳細は [Documentation](https://panjiachen.github.io/vue-element-admin-site/guide/essentials/deploy.html) を参照してください。 - -## Changelog - -各リリースの詳細は [release notes](https://github.com/PanJiaChen/vue-element-admin/releases) にあります。 - -## Online Demo - -[Preview](https://panjiachen.github.io/vue-element-admin) - -## Donate - -If you find this project useful, you can buy author a glass of juice :tropical_drink: - -![donate](https://wpimg.wallstcn.com/bd273f0d-83a0-4ef2-92e1-9ac8ed3746b9.png) - -[Paypal Me](https://www.paypal.me/panfree23) - -[Buy me a coffee](https://www.buymeacoffee.com/Pan) - -## Browsers support - -Modern browsers and Internet Explorer 10+. - -| [IE / Edge](https://godban.github.io/browsers-support-badges/)
IE / Edge | [Firefox](https://godban.github.io/browsers-support-badges/)
Firefox | [Chrome](https://godban.github.io/browsers-support-badges/)
Chrome | [Safari](https://godban.github.io/browsers-support-badges/)
Safari | -| --------- | --------- | --------- | --------- | -| IE10, IE11, Edge| last 2 versions| last 2 versions| last 2 versions - -## License - -[MIT](https://github.com/PanJiaChen/vue-element-admin/blob/master/LICENSE) - -Copyright (c) 2017-present PanJiaChen diff --git a/cubic-ui/README.md b/cubic-ui/README.md index 458ae97..c1b8d92 100644 --- a/cubic-ui/README.md +++ b/cubic-ui/README.md @@ -1,219 +1,128 @@ -

- -

- -

- - vue - - - element-ui - - - Build Status - - - license - - - GitHub release - - - gitter - - - donate - -

- -English | [简体中文](./README.zh-CN.md) | [日本語](./README.ja.md) | [Spanish](./README.es.md) - -## Introduction - -[vue-element-admin](https://panjiachen.github.io/vue-element-admin) is a production-ready front-end solution for admin interfaces. It is based on [vue](https://github.com/vuejs/vue) and uses the UI Toolkit [element-ui](https://github.com/ElemeFE/element). - -[vue-element-admin](https://panjiachen.github.io/vue-element-admin) is based on the newest development stack of vue and it has a built-in i18n solution, typical templates for enterprise applications, and lots of awesome features. It helps you build large and complex Single-Page Applications. I believe whatever your needs are, this project will help you. - -- [Preview](https://panjiachen.github.io/vue-element-admin) - -- [Documentation](https://panjiachen.github.io/vue-element-admin-site/) - -- [Gitter](https://gitter.im/vue-element-admin/discuss) - -- [Donate](https://panjiachen.github.io/vue-element-admin-site/donate/) - -- [Wiki](https://github.com/PanJiaChen/vue-element-admin/wiki) - -- [Gitee](https://panjiachen.gitee.io/vue-element-admin/) 国内用户可访问该地址在线预览 - -- Base template recommends using: [vue-admin-template](https://github.com/PanJiaChen/vue-admin-template) -- Desktop: [electron-vue-admin](https://github.com/PanJiaChen/electron-vue-admin) -- Typescript: [vue-typescript-admin-template](https://github.com/Armour/vue-typescript-admin-template) (Credits: [@Armour](https://github.com/Armour)) -- [awesome-project](https://github.com/PanJiaChen/vue-element-admin/issues/2312) - -**After the `v4.1.0+` version, the default master branch will not support i18n. Please use [i18n Branch](https://github.com/PanJiaChen/vue-element-admin/tree/i18n), it will keep up with the master update** - -**The current version is `v4.0+` build on `vue-cli`. If you find a problem, please put [issue](https://github.com/PanJiaChen/vue-element-admin/issues/new). If you want to use the old version , you can switch branch to [tag/3.11.0](https://github.com/PanJiaChen/vue-element-admin/tree/tag/3.11.0), it does not rely on `vue-cli`** - -**This project does not support low version browsers (e.g. IE). Please add polyfill by yourself.** - -## Preparation - -You need to install [node](https://nodejs.org/) and [git](https://git-scm.com/) locally. The project is based on [ES2015+](https://es6.ruanyifeng.com/), [vue](https://cn.vuejs.org/index.html), [vuex](https://vuex.vuejs.org/zh-cn/), [vue-router](https://router.vuejs.org/zh-cn/), [vue-cli](https://github.com/vuejs/vue-cli) , [axios](https://github.com/axios/axios) and [element-ui](https://github.com/ElemeFE/element), all request data is simulated using [Mock.js](https://github.com/nuysoft/Mock). -Understanding and learning this knowledge in advance will greatly help the use of this project. - -[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/github/PanJiaChen/vue-element-admin/tree/CodeSandbox) - -

- -

+# 项目说明 + +> 这是一个极简的 vue admin 管理后台,基于vue-admin-template进行了细节改造,主要是把侧边导航改造为了顶部和侧边两个导航。 +> +> 本项目默认开启了css:sourceMap和devtool('source-map'),便于在开发中调试,除非编译速度过慢,否则开发环境不建议修改。 + +## IDE + +编辑器建议使用VS Code,格式化时可以统一代码风格,配置项建议统一设置为默认不自动保存,手动保存后自动修复部分错误。具体参数如下: + +```js +{ + "emmet.triggerExpansionOnTab": true, + "files.autoSave": "off", + "vetur.format.defaultFormatterOptions": { + "js-beautify-html": { + "wrap_attributes": "force-aligned" + }, + "prettyhtml": { + "printWidth": 100, + "singleQuote": false, + "wrapAttributes": false, + "sortAttributes": true + }, + "prettier": { + "semi": false, + "singleQuote": true + } + }, + "eslint.run": "onSave", + "editor.codeActionsOnSave": { + "source.fixAll.eslint": true + } +} +``` -## Sponsors -Become a sponsor and get your logo on our README on GitHub with a link to your site. [[Become a sponsor]](https://www.patreon.com/panjiachen) +## 目录结构 -

Admin Dashboard Templates made with Vue, React and Angular.

+```bash +├── build # 构建相关 +├── mock # 项目mock 模拟数据 +├── public # 静态资源 +│ │── favicon.ico # favicon图标 +│ └── index.html # html模板 +├── src # 源代码 +│ ├── api # 所有请求 +│ ├── assets # 主题 字体等静态资源 +│ ├── components # 全局公用组件 +│ ├── directive # 全局指令 +│ ├── filters # 全局 filter +│ ├── icons # 项目所有 svg icons +│ ├── lang # 国际化 language +│ ├── layout # 全局 layout +│ ├── router # 路由 +│ ├── store # 全局 store管理 +│ ├── styles # 全局样式 +│ ├── utils # 全局公用方法 +│ ├── vendor # 公用vendor +│ ├── views # views 所有页面 +│ ├── App.vue # 入口页面 +│ ├── main.js # 入口文件 加载组件 初始化等 +│ └── permission.js # 权限管理 +├── tests # 测试 +├── .env.xxx # 环境变量配置 +├── .eslintrc.js # eslint 配置项 +├── .babelrc # babel-loader 配置 +├── .travis.yml # 自动化CI配置 +├── vue.config.js # vue-cli 配置 +├── postcss.config.js # postcss 配置 +└── package.json # package.json +``` -## Features -``` -- Login / Logout - -- Permission Authentication - - Page permission - - Directive permission - - Permission configuration page - - Two-step login - -- Multi-environment build - - dev sit stage prod - -- Global Features - - I18n - - Multiple dynamic themes - - Dynamic sidebar (supports multi-level routing) - - Dynamic breadcrumb - - Tags-view (Tab page Support right-click operation) - - Svg Sprite - - Mock data - - Screenfull - - Responsive Sidebar - -- Editor - - Rich Text Editor - - Markdown Editor - - JSON Editor - -- Excel - - Export Excel - - Upload Excel - - Visualization Excel - - Export zip - -- Table - - Dynamic Table - - Drag And Drop Table - - Inline Edit Table - -- Error Page - - 401 - - 404 - -- Components - - Avatar Upload - - Back To Top - - Drag Dialog - - Drag Select - - Drag Kanban - - Drag List - - SplitPane - - Dropzone - - Sticky - - CountTo - -- Advanced Example -- Error Log -- Dashboard -- Guide Page -- ECharts -- Clipboard -- Markdown to html -``` -## Getting started +## 构建步骤 ```bash -# clone the project -git clone https://github.com/PanJiaChen/vue-element-admin.git +# 克隆项目 +git clone 项目地址 -# enter the project directory -cd vue-element-admin +# 进入项目目录 +cd admin-web -# install dependency +# 安装依赖 npm install -# develop +# 建议不要直接使用 cnpm 安装依赖,会有各种诡异的 bug。可以通过如下操作解决 npm 下载速度慢的问题 +npm install --registry=https://registry.npm.taobao.org + +# 启动服务 npm run dev ``` -This will automatically open http://localhost:9527 +浏览器访问 [http://localhost:9528](http://localhost:9528) -## Build +## 发布 ```bash -# build for test environment +# 构建测试环境 npm run build:stage -# build for production environment +# 构建生产环境 npm run build:prod ``` -## Advanced +## 其它 ```bash -# preview the release environment effect +# 预览发布环境效果 npm run preview -# preview the release environment effect + static resource analysis +# 预览发布环境效果 + 静态资源分析 npm run preview -- --report -# code format check +# 代码格式检查 npm run lint -# code format check and auto fix +# 代码格式检查并自动修复 npm run lint -- --fix ``` -Refer to [Documentation](https://panjiachen.github.io/vue-element-admin-site/guide/essentials/deploy.html) for more information - -## Changelog - -Detailed changes for each release are documented in the [release notes](https://github.com/PanJiaChen/vue-element-admin/releases). - -## Online Demo - -[Preview](https://panjiachen.github.io/vue-element-admin) - -## Donate - -If you find this project useful, you can buy author a glass of juice :tropical_drink: - -![donate](https://wpimg.wallstcn.com/bd273f0d-83a0-4ef2-92e1-9ac8ed3746b9.png) - -[Paypal Me](https://www.paypal.me/panfree23) - -[Buy me a coffee](https://www.buymeacoffee.com/Pan) - -## Browsers support - -Modern browsers and Internet Explorer 10+. - -| [IE / Edge](https://godban.github.io/browsers-support-badges/)
IE / Edge | [Firefox](https://godban.github.io/browsers-support-badges/)
Firefox | [Chrome](https://godban.github.io/browsers-support-badges/)
Chrome | [Safari](https://godban.github.io/browsers-support-badges/)
Safari | -| --------- | --------- | --------- | --------- | -| IE10, IE11, Edge| last 2 versions| last 2 versions| last 2 versions +更多信息请参考花裤衩大佬的vue-element-admin [使用文档](https://panjiachen.github.io/vue-element-admin-site/zh/) -## License +[线上地址](http://panjiachen.github.io/vue-admin-template) -[MIT](https://github.com/PanJiaChen/vue-element-admin/blob/master/LICENSE) +[国内访问](https://panjiachen.gitee.io/vue-admin-template) -Copyright (c) 2017-present PanJiaChen diff --git a/cubic-ui/README.zh-CN.md b/cubic-ui/README.zh-CN.md deleted file mode 100644 index e842411..0000000 --- a/cubic-ui/README.zh-CN.md +++ /dev/null @@ -1,242 +0,0 @@ -

- -

- -

- - vue - - - element-ui - - - Build Status - - - license - - - GitHub release - - - gitter - - - donate - -

- -简体中文 | [English](./README.md) | [日本語](./README.ja.md) | [Spanish](./README.es.md) - -## 简介 - -[vue-element-admin](https://panjiachen.github.io/vue-element-admin) 是一个后台前端解决方案,它基于 [vue](https://github.com/vuejs/vue) 和 [element-ui](https://github.com/ElemeFE/element)实现。它使用了最新的前端技术栈,内置了 i18n 国际化解决方案,动态路由,权限验证,提炼了典型的业务模型,提供了丰富的功能组件,它可以帮助你快速搭建企业级中后台产品原型。相信不管你的需求是什么,本项目都能帮助到你。 - -- [在线预览](https://panjiachen.github.io/vue-element-admin) - -- [使用文档](https://panjiachen.github.io/vue-element-admin-site/zh/) - -- [Gitter 讨论组](https://gitter.im/vue-element-admin/discuss) - -- [Donate](https://panjiachen.gitee.io/vue-element-admin-site/zh/donate) - -- [Wiki](https://github.com/PanJiaChen/vue-element-admin/wiki) - -- [Gitee](https://panjiachen.gitee.io/vue-element-admin/) 在线预览(国内用户可访问该地址) - -- [国内访问文档](https://panjiachen.gitee.io/vue-element-admin-site/zh/) 文档(方便没翻墙的用户查看) - -- 基础模板建议使用: [vue-admin-template](https://github.com/PanJiaChen/vue-admin-template) -- 桌面端: [electron-vue-admin](https://github.com/PanJiaChen/electron-vue-admin) -- Typescript 版: [vue-typescript-admin-template](https://github.com/Armour/vue-typescript-admin-template) (鸣谢: [@Armour](https://github.com/Armour)) -- [awesome-project](https://github.com/PanJiaChen/vue-element-admin/issues/2312) - -**`v4.1.0+`版本之后默认 master 分支将不支持国际化,有需要的请使用[i18n](https://github.com/PanJiaChen/vue-element-admin/tree/i18n)分支,它会和 master 保持同步更新** - -**该项目不支持低版本浏览器(如 ie),有需求请自行添加 polyfill [详情](https://github.com/PanJiaChen/vue-element-admin/wiki#babel-polyfill)** - -**目前版本为 `v4.0+` 基于 `vue-cli` 进行构建,若发现问题,欢迎提[issue](https://github.com/PanJiaChen/vue-element-admin/issues/new)。若你想使用旧版本,可以切换分支到[tag/3.11.0](https://github.com/PanJiaChen/vue-element-admin/tree/tag/3.11.0),它不依赖 `vue-cli`** - -群主 **[圈子](https://jianshiapp.com/circles/1209)** 群主会经常分享一些技术相关的东西,或者加入 [qq 群](https://github.com/PanJiaChen/vue-element-admin/issues/602) 或者关注 [微博](https://weibo.com/u/3423485724?is_all=1) - -## 前序准备 - -你需要在本地安装 [node](http://nodejs.org/) 和 [git](https://git-scm.com/)。本项目技术栈基于 [ES2015+](http://es6.ruanyifeng.com/)、[vue](https://cn.vuejs.org/index.html)、[vuex](https://vuex.vuejs.org/zh-cn/)、[vue-router](https://router.vuejs.org/zh-cn/) 、[vue-cli](https://github.com/vuejs/vue-cli) 、[axios](https://github.com/axios/axios) 和 [element-ui](https://github.com/ElemeFE/element),所有的请求数据都使用[Mock.js](https://github.com/nuysoft/Mock)进行模拟,提前了解和学习这些知识会对使用本项目有很大的帮助。 - -同时配套了系列教程文章,如何从零构建后一个完整的后台项目,建议大家先看完这些文章再来实践本项目 - -- [手摸手,带你用 vue 撸后台 系列一(基础篇)](https://juejin.im/post/59097cd7a22b9d0065fb61d2) -- [手摸手,带你用 vue 撸后台 系列二(登录权限篇)](https://juejin.im/post/591aa14f570c35006961acac) -- [手摸手,带你用 vue 撸后台 系列三 (实战篇)](https://juejin.im/post/593121aa0ce4630057f70d35) -- [手摸手,带你用 vue 撸后台 系列四(vueAdmin 一个极简的后台基础模板)](https://juejin.im/post/595b4d776fb9a06bbe7dba56) -- [手摸手,带你用vue撸后台 系列五(v4.0新版本)](https://juejin.im/post/5c92ff94f265da6128275a85) -- [手摸手,带你封装一个 vue component](https://segmentfault.com/a/1190000009090836) -- [手摸手,带你优雅的使用 icon](https://juejin.im/post/59bb864b5188257e7a427c09) -- [手摸手,带你用合理的姿势使用 webpack4(上)](https://juejin.im/post/5b56909a518825195f499806) -- [手摸手,带你用合理的姿势使用 webpack4(下)](https://juejin.im/post/5b5d6d6f6fb9a04fea58aabc) - -**如有问题请先看上述使用文档和文章,若不能满足,欢迎 issue 和 pr** - -[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/github/PanJiaChen/vue-element-admin/tree/CodeSandbox) - -

- -

- -## Sponsors - -Become a sponsor and get your logo on our README on GitHub with a link to your site. [[Become a sponsor]](https://www.patreon.com/panjiachen) - -

Admin Dashboard Templates made with Vue, React and Angular.

- -## 功能 - -``` -- 登录 / 注销 - -- 权限验证 - - 页面权限 - - 指令权限 - - 权限配置 - - 二步登录 - -- 多环境发布 - - dev sit stage prod - -- 全局功能 - - 国际化多语言 - - 多种动态换肤 - - 动态侧边栏(支持多级路由嵌套) - - 动态面包屑 - - 快捷导航(标签页) - - Svg Sprite 图标 - - 本地/后端 mock 数据 - - Screenfull全屏 - - 自适应收缩侧边栏 - -- 编辑器 - - 富文本 - - Markdown - - JSON 等多格式 - -- Excel - - 导出excel - - 导入excel - - 前端可视化excel - - 导出zip - -- 表格 - - 动态表格 - - 拖拽表格 - - 内联编辑 - -- 错误页面 - - 401 - - 404 - -- 組件 - - 头像上传 - - 返回顶部 - - 拖拽Dialog - - 拖拽Select - - 拖拽看板 - - 列表拖拽 - - SplitPane - - Dropzone - - Sticky - - CountTo - -- 综合实例 -- 错误日志 -- Dashboard -- 引导页 -- ECharts 图表 -- Clipboard(剪贴复制) -- Markdown2html -``` - -## 开发 - -```bash -# 克隆项目 -git clone https://github.com/PanJiaChen/vue-element-admin.git - -# 进入项目目录 -cd vue-element-admin - -# 安装依赖 -npm install - -# 建议不要直接使用 cnpm 安装依赖,会有各种诡异的 bug。可以通过如下操作解决 npm 下载速度慢的问题 -npm install --registry=https://registry.npm.taobao.org - -# 启动服务 -npm run dev -``` - -浏览器访问 http://localhost:9527 - -## 发布 - -```bash -# 构建测试环境 -npm run build:stage - -# 构建生产环境 -npm run build:prod -``` - -## 其它 - -```bash -# 预览发布环境效果 -npm run preview - -# 预览发布环境效果 + 静态资源分析 -npm run preview -- --report - -# 代码格式检查 -npm run lint - -# 代码格式检查并自动修复 -npm run lint -- --fix -``` - -更多信息请参考 [使用文档](https://panjiachen.github.io/vue-element-admin-site/zh/) - -## Changelog - -Detailed changes for each release are documented in the [release notes](https://github.com/PanJiaChen/vue-element-admin/releases). - -## Online Demo - -[在线 Demo](https://panjiachen.github.io/vue-element-admin) - -## Donate - -如果你觉得这个项目帮助到了你,你可以帮作者买一杯果汁表示鼓励 :tropical_drink: -![donate](https://panjiachen.github.io/donate/donation.png) - -[更多捐赠方式](https://panjiachen.gitee.io/vue-element-admin-site/zh/donate) - -[Paypal Me](https://www.paypal.me/panfree23) - -[Buy me a coffee](https://www.buymeacoffee.com/Pan) - -## 购买贴纸 - -你也可以通过 购买[官方授权的贴纸](https://smallsticker.com/product/vue-element-admin) 的方式来支持 vue-element-admin - 每售出一张贴纸,本项目将获得 2 元的捐赠。 - -## Browsers support - -Modern browsers and Internet Explorer 10+. - -| [IE / Edge](https://godban.github.io/browsers-support-badges/)
IE / Edge | [Firefox](https://godban.github.io/browsers-support-badges/)
Firefox | [Chrome](https://godban.github.io/browsers-support-badges/)
Chrome | [Safari](https://godban.github.io/browsers-support-badges/)
Safari | -| --------- | --------- | --------- | --------- | -| IE10, IE11, Edge| last 2 versions| last 2 versions| last 2 versions - -## License - -[MIT](https://github.com/PanJiaChen/vue-element-admin/blob/master/LICENSE) - -Copyright (c) 2017-present PanJiaChen diff --git a/cubic-ui/babel.config.js b/cubic-ui/babel.config.js index e955840..ba17966 100644 --- a/cubic-ui/babel.config.js +++ b/cubic-ui/babel.config.js @@ -1,5 +1,5 @@ module.exports = { presets: [ - '@vue/cli-plugin-babel/preset' + '@vue/app' ] } diff --git a/cubic-ui/jsconfig.json b/cubic-ui/jsconfig.json index 958df04..ed079e2 100644 --- a/cubic-ui/jsconfig.json +++ b/cubic-ui/jsconfig.json @@ -1,4 +1,4 @@ -{ +{ "compilerOptions": { "baseUrl": "./", "paths": { @@ -6,4 +6,4 @@ } }, "exclude": ["node_modules", "dist"] -} \ No newline at end of file +} diff --git a/cubic-ui/mock/article.js b/cubic-ui/mock/article.js deleted file mode 100644 index 50218ae..0000000 --- a/cubic-ui/mock/article.js +++ /dev/null @@ -1,116 +0,0 @@ -import Mock from 'mockjs' - -const List = [] -const count = 100 - -const baseContent = '

I am testing data, I am testing data.

' -const image_uri = 'https://wpimg.wallstcn.com/e4558086-631c-425c-9430-56ffb46e70b3' - -for (let i = 0; i < count; i++) { - List.push(Mock.mock({ - id: '@increment', - timestamp: +Mock.Random.date('T'), - author: '@first', - reviewer: '@first', - title: '@title(5, 10)', - content_short: 'mock data', - content: baseContent, - forecast: '@float(0, 100, 2, 2)', - importance: '@integer(1, 3)', - 'type|1': ['CN', 'US', 'JP', 'EU'], - 'status|1': ['published', 'draft'], - display_time: '@datetime', - comment_disabled: true, - pageviews: '@integer(300, 5000)', - image_uri, - platforms: ['a-platform'] - })) -} - -export default [ - { - url: '/vue-element-admin/article/list', - type: 'get', - response: config => { - const { importance, type, title, page = 1, limit = 20, sort } = config.query - - let mockList = List.filter(item => { - if (importance && item.importance !== +importance) return false - if (type && item.type !== type) return false - if (title && item.title.indexOf(title) < 0) return false - return true - }) - - if (sort === '-id') { - mockList = mockList.reverse() - } - - const pageList = mockList.filter((item, index) => index < limit * page && index >= limit * (page - 1)) - - return { - code: 20000, - data: { - total: mockList.length, - items: pageList - } - } - } - }, - - { - url: '/vue-element-admin/article/detail', - type: 'get', - response: config => { - const { id } = config.query - for (const article of List) { - if (article.id === +id) { - return { - code: 20000, - data: article - } - } - } - } - }, - - { - url: '/vue-element-admin/article/pv', - type: 'get', - response: _ => { - return { - code: 20000, - data: { - pvData: [ - { key: 'PC', pv: 1024 }, - { key: 'mobile', pv: 1024 }, - { key: 'ios', pv: 1024 }, - { key: 'android', pv: 1024 } - ] - } - } - } - }, - - { - url: '/vue-element-admin/article/create', - type: 'post', - response: _ => { - return { - code: 20000, - data: 'success' - } - } - }, - - { - url: '/vue-element-admin/article/update', - type: 'post', - response: _ => { - return { - code: 20000, - data: 'success' - } - } - } -] - diff --git a/cubic-ui/mock/index.js b/cubic-ui/mock/index.js index 196e292..90e2ffe 100644 --- a/cubic-ui/mock/index.js +++ b/cubic-ui/mock/index.js @@ -2,15 +2,11 @@ import Mock from 'mockjs' import { param2Obj } from '../src/utils' import user from './user' -import role from './role' -import article from './article' -import search from './remote-search' +import table from './table' const mocks = [ ...user, - ...role, - ...article, - ...search + ...table ] // for front mock @@ -54,4 +50,18 @@ export function mockXHR() { } } -export default mocks +// for mock server +const responseFake = (url, type, respond) => { + return { + url: new RegExp(`${process.env.VUE_APP_BASE_API}${url}`), + type: type || 'get', + response(req, res) { + console.log('request invoke:' + req.path) + res.json(Mock.mock(respond instanceof Function ? respond(req, res) : respond)) + } + } +} + +export default mocks.map(route => { + return responseFake(route.url, route.type, route.response) +}) diff --git a/cubic-ui/mock/mock-server.js b/cubic-ui/mock/mock-server.js index 806fdac..4c4cb2a 100644 --- a/cubic-ui/mock/mock-server.js +++ b/cubic-ui/mock/mock-server.js @@ -2,21 +2,17 @@ const chokidar = require('chokidar') const bodyParser = require('body-parser') const chalk = require('chalk') const path = require('path') -const Mock = require('mockjs') const mockDir = path.join(process.cwd(), 'mock') function registerRoutes(app) { let mockLastIndex const { default: mocks } = require('./index.js') - const mocksForServer = mocks.map(route => { - return responseFake(route.url, route.type, route.response) - }) - for (const mock of mocksForServer) { + for (const mock of mocks) { app[mock.type](mock.url, mock.response) mockLastIndex = app._router.stack.length } - const mockRoutesLength = Object.keys(mocksForServer).length + const mockRoutesLength = Object.keys(mocks).length return { mockRoutesLength: mockRoutesLength, mockStartIndex: mockLastIndex - mockRoutesLength @@ -31,18 +27,6 @@ function unregisterRoutes() { }) } -// for mock server -const responseFake = (url, type, respond) => { - return { - url: new RegExp(`${process.env.VUE_APP_BASE_API}${url}`), - type: type || 'get', - response(req, res) { - console.log('request invoke:' + req.path) - res.json(Mock.mock(respond instanceof Function ? respond(req, res) : respond)) - } - } -} - module.exports = app => { // es6 polyfill require('@babel/register') diff --git a/cubic-ui/mock/remote-search.js b/cubic-ui/mock/remote-search.js deleted file mode 100644 index 60809cb..0000000 --- a/cubic-ui/mock/remote-search.js +++ /dev/null @@ -1,51 +0,0 @@ -import Mock from 'mockjs' - -const NameList = [] -const count = 100 - -for (let i = 0; i < count; i++) { - NameList.push(Mock.mock({ - name: '@first' - })) -} -NameList.push({ name: 'mock-Pan' }) - -export default [ - // username search - { - url: '/vue-element-admin/search/user', - type: 'get', - response: config => { - const { name } = config.query - const mockNameList = NameList.filter(item => { - const lowerCaseName = item.name.toLowerCase() - return !(name && lowerCaseName.indexOf(name.toLowerCase()) < 0) - }) - return { - code: 20000, - data: { items: mockNameList } - } - } - }, - - // transaction list - { - url: '/vue-element-admin/transaction/list', - type: 'get', - response: _ => { - return { - code: 20000, - data: { - total: 20, - 'items|20': [{ - order_no: '@guid()', - timestamp: +Mock.Random.date('T'), - username: '@name()', - price: '@float(1000, 15000, 0, 2)', - 'status|1': ['success', 'pending'] - }] - } - } - } - } -] diff --git a/cubic-ui/mock/role/index.js b/cubic-ui/mock/role/index.js deleted file mode 100644 index 7e539dd..0000000 --- a/cubic-ui/mock/role/index.js +++ /dev/null @@ -1,98 +0,0 @@ -import Mock from 'mockjs' -import {deepClone} from '../../src/utils/index.js' -import {asyncRoutes, constantRoutes} from './routes.js' - -const routes = deepClone([...constantRoutes, ...asyncRoutes]) - -const roles = [ - { - key: 'admin', - name: 'admin', - description: 'Super Administrator. Have access to view all pages.', - routes: routes - }, - { - key: 'editor', - name: 'editor', - description: 'Normal Editor. Can see all pages except permission page', - routes: routes.filter(i => i.path !== '/permission')// just a mock - }, - { - key: 'visitor', - name: 'visitor', - description: 'Just a visitor. Can only see the home page and the document page', - routes: [{ - path: '', - redirect: 'dashboard', - children: [ - { - path: 'dashboard', - name: 'Dashboard', - meta: {title: 'dashboard', icon: 'dashboard'} - } - ] - }] - } -] - -export default [ - // mock get all routes form server - { - url: '/vue-element-admin/routes', - type: 'get', - response: _ => { - return { - code: 20000, - data: routes - } - } - }, - - // mock get all roles form server - { - url: '/vue-element-admin/roles', - type: 'get', - response: _ => { - return { - code: 20000, - data: roles - } - } - }, - - // add role - { - url: '/vue-element-admin/role', - type: 'post', - response: { - code: 20000, - data: { - key: Mock.mock('@integer(300, 5000)') - } - } - }, - - // update role - { - url: '/vue-element-admin/role/[A-Za-z0-9]', - type: 'put', - response: { - code: 20000, - data: { - status: 'success' - } - } - }, - - // delete role - { - url: '/vue-element-admin/role/[A-Za-z0-9]', - type: 'delete', - response: { - code: 20000, - data: { - status: 'success' - } - } - } -] diff --git a/cubic-ui/mock/role/routes.js b/cubic-ui/mock/role/routes.js deleted file mode 100644 index 179b843..0000000 --- a/cubic-ui/mock/role/routes.js +++ /dev/null @@ -1,525 +0,0 @@ -// Just a mock data - -export const constantRoutes = [ - { - path: '/redirect', - component: 'layout/Layout', - hidden: true, - children: [ - { - path: '/redirect/:path*', - component: 'views/redirect/index' - } - ] - }, - { - path: '/login', - component: 'views/login/index', - hidden: true - }, - { - path: '/auth-redirect', - component: 'views/login/auth-redirect', - hidden: true - }, - { - path: '/404', - component: 'views/error-page/404', - hidden: true - }, - { - path: '/401', - component: 'views/error-page/401', - hidden: true - }, - { - path: '', - component: 'layout/Layout', - redirect: 'dashboard', - children: [ - { - path: 'dashboard', - component: 'views/dashboard/index', - name: 'Dashboard', - meta: {title: 'Dashboard', icon: 'dashboard', affix: true} - } - ] - }, - { - path: '/documentation', - component: 'layout/Layout', - children: [ - { - path: 'index', - component: 'views/documentation/index', - name: 'Documentation', - meta: {title: 'Documentation', icon: 'documentation', affix: true} - } - ] - }, - { - path: '/guide', - component: 'layout/Layout', - redirect: '/guide/index', - children: [ - { - path: 'index', - component: 'views/guide/index', - name: 'Guide', - meta: {title: 'Guide', icon: 'guide', noCache: true} - } - ] - } -] - -export const asyncRoutes = [ - { - path: '/permission', - component: 'layout/Layout', - redirect: '/permission/index', - alwaysShow: true, - meta: { - title: 'Permission', - icon: 'lock', - roles: ['admin', 'editor'] - }, - children: [ - { - path: 'page', - component: 'views/permission/page', - name: 'PagePermission', - meta: { - title: 'Page Permission', - roles: ['admin'] - } - }, - { - path: 'directive', - component: 'views/permission/directive', - name: 'DirectivePermission', - meta: { - title: 'Directive Permission' - } - }, - { - path: 'role', - component: 'views/permission/role', - name: 'RolePermission', - meta: { - title: 'Role Permission', - roles: ['admin'] - } - } - ] - }, - - { - path: '/icon', - component: 'layout/Layout', - children: [ - { - path: 'index', - component: 'views/icons/index', - name: 'Icons', - meta: {title: 'Icons', icon: 'icon', noCache: true} - } - ] - }, - - { - path: '/components', - component: 'layout/Layout', - redirect: 'noRedirect', - name: 'ComponentDemo', - meta: { - title: 'Components', - icon: 'component' - }, - children: [ - { - path: 'tinymce', - component: 'views/components-demo/tinymce', - name: 'TinymceDemo', - meta: {title: 'Tinymce'} - }, - { - path: 'markdown', - component: 'views/components-demo/markdown', - name: 'MarkdownDemo', - meta: {title: 'Markdown'} - }, - { - path: 'json-editor', - component: 'views/components-demo/json-editor', - name: 'JsonEditorDemo', - meta: {title: 'Json Editor'} - }, - { - path: 'split-pane', - component: 'views/components-demo/split-pane', - name: 'SplitpaneDemo', - meta: {title: 'SplitPane'} - }, - { - path: 'avatar-upload', - component: 'views/components-demo/avatar-upload', - name: 'AvatarUploadDemo', - meta: {title: 'Avatar Upload'} - }, - { - path: 'dropzone', - component: 'views/components-demo/dropzone', - name: 'DropzoneDemo', - meta: {title: 'Dropzone'} - }, - { - path: 'sticky', - component: 'views/components-demo/sticky', - name: 'StickyDemo', - meta: {title: 'Sticky'} - }, - { - path: 'count-to', - component: 'views/components-demo/count-to', - name: 'CountToDemo', - meta: {title: 'Count To'} - }, - { - path: 'mixin', - component: 'views/components-demo/mixin', - name: 'ComponentMixinDemo', - meta: {title: 'componentMixin'} - }, - { - path: 'back-to-top', - component: 'views/components-demo/back-to-top', - name: 'BackToTopDemo', - meta: {title: 'Back To Top'} - }, - { - path: 'drag-dialog', - component: 'views/components-demo/drag-dialog', - name: 'DragDialogDemo', - meta: {title: 'Drag Dialog'} - }, - { - path: 'drag-select', - component: 'views/components-demo/drag-select', - name: 'DragSelectDemo', - meta: {title: 'Drag Select'} - }, - { - path: 'dnd-list', - component: 'views/components-demo/dnd-list', - name: 'DndListDemo', - meta: {title: 'Dnd List'} - }, - { - path: 'drag-kanban', - component: 'views/components-demo/drag-kanban', - name: 'DragKanbanDemo', - meta: {title: 'Drag Kanban'} - } - ] - }, - { - path: '/charts', - component: 'layout/Layout', - redirect: 'noRedirect', - name: 'Charts', - meta: { - title: 'Charts', - icon: 'chart' - }, - children: [ - { - path: 'keyboard', - component: 'views/charts/keyboard', - name: 'KeyboardChart', - meta: {title: 'Keyboard Chart', noCache: true} - }, - { - path: 'line', - component: 'views/charts/line', - name: 'LineChart', - meta: {title: 'Line Chart', noCache: true} - }, - { - path: 'mixchart', - component: 'views/charts/mixChart', - name: 'MixChart', - meta: {title: 'Mix Chart', noCache: true} - } - ] - }, - { - path: '/nested', - component: 'layout/Layout', - redirect: '/nested/menu1/menu1-1', - name: 'Nested', - meta: { - title: 'Nested', - icon: 'nested' - }, - children: [ - { - path: 'menu1', - component: 'views/nested/menu1/index', - name: 'Menu1', - meta: {title: 'Menu1'}, - redirect: '/nested/menu1/menu1-1', - children: [ - { - path: 'menu1-1', - component: 'views/nested/menu1/menu1-1', - name: 'Menu1-1', - meta: {title: 'Menu1-1'} - }, - { - path: 'menu1-2', - component: 'views/nested/menu1/menu1-2', - name: 'Menu1-2', - redirect: '/nested/menu1/menu1-2/menu1-2-1', - meta: {title: 'Menu1-2'}, - children: [ - { - path: 'menu1-2-1', - component: 'views/nested/menu1/menu1-2/menu1-2-1', - name: 'Menu1-2-1', - meta: {title: 'Menu1-2-1'} - }, - { - path: 'menu1-2-2', - component: 'views/nested/menu1/menu1-2/menu1-2-2', - name: 'Menu1-2-2', - meta: {title: 'Menu1-2-2'} - } - ] - }, - { - path: 'menu1-3', - component: 'views/nested/menu1/menu1-3', - name: 'Menu1-3', - meta: {title: 'Menu1-3'} - } - ] - }, - { - path: 'menu2', - name: 'Menu2', - component: 'views/nested/menu2/index', - meta: {title: 'Menu2'} - } - ] - }, - - { - path: '/example', - component: 'layout/Layout', - redirect: '/example/list', - name: 'Example', - meta: { - title: 'Example', - icon: 'example' - }, - children: [ - { - path: 'create', - component: 'views/example/create', - name: 'CreateArticle', - meta: {title: 'Create Article', icon: 'edit'} - }, - { - path: 'edit/:id(\\d+)', - component: 'views/example/edit', - name: 'EditArticle', - meta: {title: 'Edit Article', noCache: true}, - hidden: true - }, - { - path: 'list', - component: 'views/example/list', - name: 'ArticleList', - meta: {title: 'Article List', icon: 'list'} - } - ] - }, - - { - path: '/tab', - component: 'layout/Layout', - children: [ - { - path: 'index', - component: 'views/tab/index', - name: 'Tab', - meta: {title: 'Tab', icon: 'tab'} - } - ] - }, - - { - path: '/error', - component: 'layout/Layout', - redirect: 'noRedirect', - name: 'ErrorPages', - meta: { - title: 'Error Pages', - icon: '404' - }, - children: [ - { - path: '401', - component: 'views/error-page/401', - name: 'Page401', - meta: {title: 'Page 401', noCache: true} - }, - { - path: '404', - component: 'views/error-page/404', - name: 'Page404', - meta: {title: 'Page 404', noCache: true} - } - ] - }, - - { - path: '/error-log', - component: 'layout/Layout', - redirect: 'noRedirect', - children: [ - { - path: 'log', - component: 'views/error-log/index', - name: 'ErrorLog', - meta: {title: 'Error Log', icon: 'bug'} - } - ] - }, - - { - path: '/excel', - component: 'layout/Layout', - redirect: '/excel/export-excel', - name: 'Excel', - meta: { - title: 'Excel', - icon: 'excel' - }, - children: [ - { - path: 'export-excel', - component: 'views/excel/export-excel', - name: 'ExportExcel', - meta: {title: 'Export Excel'} - }, - { - path: 'export-selected-excel', - component: 'views/excel/select-excel', - name: 'SelectExcel', - meta: {title: 'Select Excel'} - }, - { - path: 'export-merge-header', - component: 'views/excel/merge-header', - name: 'MergeHeader', - meta: {title: 'Merge Header'} - }, - { - path: 'upload-excel', - component: 'views/excel/upload-excel', - name: 'UploadExcel', - meta: {title: 'Upload Excel'} - } - ] - }, - - { - path: '/zip', - component: 'layout/Layout', - redirect: '/zip/download', - alwaysShow: true, - meta: {title: 'Zip', icon: 'zip'}, - children: [ - { - path: 'download', - component: 'views/zip/index', - name: 'ExportZip', - meta: {title: 'Export Zip'} - } - ] - }, - - { - path: '/pdf', - component: 'layout/Layout', - redirect: '/pdf/index', - children: [ - { - path: 'index', - component: 'views/pdf/index', - name: 'PDF', - meta: {title: 'PDF', icon: 'pdf'} - } - ] - }, - { - path: '/pdf/download', - component: 'views/pdf/download', - hidden: true - }, - - { - path: '/theme', - component: 'layout/Layout', - redirect: 'noRedirect', - children: [ - { - path: 'index', - component: 'views/theme/index', - name: 'Theme', - meta: {title: 'Theme', icon: 'theme'} - } - ] - }, - - { - path: '/clipboard', - component: 'layout/Layout', - redirect: 'noRedirect', - children: [ - { - path: 'index', - component: 'views/clipboard/index', - name: 'ClipboardDemo', - meta: {title: 'Clipboard Demo', icon: 'clipboard'} - } - ] - }, - - { - path: '/i18n', - component: 'layout/Layout', - children: [ - { - path: 'index', - component: 'views/i18n-demo/index', - name: 'I18n', - meta: {title: 'I18n', icon: 'international'} - } - ] - }, - - { - path: 'external-link', - component: 'layout/Layout', - children: [ - { - path: 'https://github.com/PanJiaChen/vue-element-admin', - meta: {title: 'External Link', icon: 'link'} - } - ] - }, - - {path: '*', redirect: '/404', hidden: true} -] diff --git a/cubic-ui/mock/table.js b/cubic-ui/mock/table.js new file mode 100644 index 0000000..ba95f76 --- /dev/null +++ b/cubic-ui/mock/table.js @@ -0,0 +1,29 @@ +import Mock from 'mockjs' + +const data = Mock.mock({ + 'items|30': [{ + id: '@id', + title: '@sentence(10, 20)', + 'status|1': ['published', 'draft', 'deleted'], + author: 'name', + display_time: '@datetime', + pageviews: '@integer(300, 5000)' + }] +}) + +export default [ + { + url: '/vue-admin-template/table/list', + type: 'get', + response: config => { + const items = data.items + return { + code: 20000, + data: { + total: items.length, + items: items + } + } + } + } +] diff --git a/cubic-ui/mock/user.js b/cubic-ui/mock/user.js index 99b1bfd..f007cd9 100644 --- a/cubic-ui/mock/user.js +++ b/cubic-ui/mock/user.js @@ -1,3 +1,4 @@ + const tokens = { admin: { token: 'admin-token' @@ -25,10 +26,10 @@ const users = { export default [ // user login { - url: '/vue-element-admin/user/login', + url: '/vue-admin-template/user/login', type: 'post', response: config => { - const {username} = config.body + const { username } = config.body const token = tokens[username] // mock error @@ -48,10 +49,10 @@ export default [ // get user info { - url: '/vue-element-admin/user/info\.*', + url: '/vue-admin-template/user/info\.*', type: 'get', response: config => { - const {token} = config.query + const { token } = config.query const info = users[token] // mock error @@ -71,7 +72,7 @@ export default [ // user logout { - url: '/vue-element-admin/user/logout', + url: '/vue-admin-template/user/logout', type: 'post', response: _ => { return { diff --git a/cubic-ui/package.json b/cubic-ui/package.json index e294621..e6c32a4 100644 --- a/cubic-ui/package.json +++ b/cubic-ui/package.json @@ -1,118 +1,67 @@ { - "name": "vue-element-admin", + "name": "vue-admin-template", "version": "4.2.1", - "description": "A magical vue admin. An out-of-box UI solution for enterprise applications. Newest development stack of vue. Lots of awesome features", + "description": "A vue admin template with Element UI & axios & iconfont & permission control & lint", "author": "Pan ", + "license": "MIT", "scripts": { - "test:unit": "jest --clearCache && vue-cli-service test:unit", - "lint": "eslint --ext .js,.vue src", + "dev": "vue-cli-service serve", "build:prod": "vue-cli-service build", "build:stage": "vue-cli-service build --mode staging", - "dev": "vue-cli-service serve", - "new": "plop", "preview": "node build/index.js --preview", - "svgo": "svgo -f src/icons/svg --config=src/icons/svgo.yml", - "test:ci": "npm run lint && npm run test:unit" + "lint": "eslint --ext .js,.vue src", + "test:unit": "jest --clearCache && vue-cli-service test:unit", + "test:ci": "npm run lint && npm run test:unit", + "svgo": "svgo -f src/icons/svg --config=src/icons/svgo.yml" }, "dependencies": { "axios": "0.18.1", - "clipboard": "2.0.4", - "codemirror": "5.45.0", - "core-js": "^3.6.5", - - "driver.js": "0.9.5", - "dropzone": "5.5.1", - "echarts": "4.2.1", "element-ui": "2.13.0", - "file-saver": "2.0.1", - "fuse.js": "3.4.4", + "file-saver": "^2.0.2", "js-cookie": "2.2.0", - "jsonlint": "1.6.3", - "jszip": "3.2.1", "normalize.css": "7.0.0", "nprogress": "0.2.0", "path-to-regexp": "2.4.0", - "screenfull": "4.2.0", - "script-loader": "0.7.2", - "showdown": "1.9.0", - "sortablejs": "1.8.4", - "tui-editor": "1.3.3", "vue": "2.6.10", - "vue-count-to": "1.0.13", - "vue-router": "3.0.2", - "vue-splitpane": "1.0.4", - "vuedraggable": "2.20.0", + "vue-router": "3.0.6", "vuex": "3.1.0", - "xlsx": "0.14.1", - "xterm": "^4.6.0", - "xterm-addon-attach": "^0.6.0", - "xterm-addon-fit": "^0.4.0" + "xlsx": "^0.16.8" }, "devDependencies": { "@babel/core": "7.0.0", "@babel/register": "7.0.0", - "@vue/cli-plugin-babel": "^4.4.4", - "@vue/cli-plugin-eslint": "^4.4.4", - "@vue/cli-plugin-unit-jest": "^4.4.4", - "@vue/cli-service": "^4.4.4", + "@vue/cli-plugin-babel": "3.6.0", + "@vue/cli-plugin-eslint": "^3.9.1", + "@vue/cli-plugin-unit-jest": "3.6.3", + "@vue/cli-service": "3.6.0", "@vue/test-utils": "1.0.0-beta.29", "autoprefixer": "^9.5.1", "babel-core": "7.0.0-bridge.0", - "babel-eslint": "^10.1.0", + "babel-eslint": "10.0.1", "babel-jest": "23.6.0", "chalk": "2.4.2", - "chokidar": "2.1.5", "connect": "3.6.6", - "eslint": "^6.7.2", - "eslint-plugin-vue": "^6.2.2", + "eslint": "5.15.3", + "eslint-plugin-vue": "5.2.2", "html-webpack-plugin": "3.2.0", - "husky": "1.3.1", - "lint-staged": "8.1.5", + "http-proxy-middleware": "^1.0.6", "mockjs": "1.0.1-beta3", "node-sass": "^4.9.0", - "plop": "2.3.0", "runjs": "^4.3.2", "sass-loader": "^7.1.0", "script-ext-html-webpack-plugin": "2.1.3", + "script-loader": "^0.7.2", "serve-static": "^1.13.2", "svg-sprite-loader": "4.1.3", - "svgo": "1.2.0", + "svgo": "1.2.2", "vue-template-compiler": "2.6.10" }, - "browserslist": [ - "> 1%", - "last 2 versions" - ], - "bugs": { - "url": "https://github.com/PanJiaChen/vue-element-admin/issues" - }, "engines": { "node": ">=8.9", "npm": ">= 3.0.0" }, - "husky": { - "hooks": { - "pre-commit": "lint-staged" - } - }, - "keywords": [ - "vue", - "admin", - "dashboard", - "element-ui", - "boilerplate", - "admin-template", - "management-system" - ], - "license": "MIT", - "lint-staged": { - "src/**/*.{js,vue}": [ - "eslint --fix", - "git add" - ] - }, - "repository": { - "type": "git", - "url": "git+https://github.com/PanJiaChen/vue-element-admin.git" - } + "browserslist": [ + "> 1%", + "last 2 versions" + ] } diff --git a/cubic-ui/plop-templates/component/index.hbs b/cubic-ui/plop-templates/component/index.hbs deleted file mode 100644 index 7661055..0000000 --- a/cubic-ui/plop-templates/component/index.hbs +++ /dev/null @@ -1,26 +0,0 @@ -{{#if template}} - -{{/if}} - -{{#if script}} - -{{/if}} - -{{#if style}} - -{{/if}} diff --git a/cubic-ui/plop-templates/component/prompt.js b/cubic-ui/plop-templates/component/prompt.js deleted file mode 100644 index 3723e8e..0000000 --- a/cubic-ui/plop-templates/component/prompt.js +++ /dev/null @@ -1,55 +0,0 @@ -const { notEmpty } = require('../utils.js') - -module.exports = { - description: 'generate vue component', - prompts: [{ - type: 'input', - name: 'name', - message: 'component name please', - validate: notEmpty('name') - }, - { - type: 'checkbox', - name: 'blocks', - message: 'Blocks:', - choices: [{ - name: '