@lavida/vue-element-admin-template 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (303) hide show
  1. package/package.json +15 -0
  2. package/template/.editorconfig +14 -0
  3. package/template/.env.development +5 -0
  4. package/template/.env.production +6 -0
  5. package/template/.env.staging +8 -0
  6. package/template/.eslintignore +4 -0
  7. package/template/.eslintrc.js +198 -0
  8. package/template/.travis.yml +5 -0
  9. package/template/LICENSE +21 -0
  10. package/template/README.es.md +222 -0
  11. package/template/README.ja.md +218 -0
  12. package/template/README.md +222 -0
  13. package/template/README.zh-CN.md +245 -0
  14. package/template/babel.config.js +14 -0
  15. package/template/build/index.js +35 -0
  16. package/template/jest.config.js +24 -0
  17. package/template/jsconfig.json +9 -0
  18. package/template/mock/article.js +116 -0
  19. package/template/mock/index.js +60 -0
  20. package/template/mock/mock-server.js +81 -0
  21. package/template/mock/remote-search.js +51 -0
  22. package/template/mock/role/index.js +98 -0
  23. package/template/mock/role/routes.js +530 -0
  24. package/template/mock/user.js +84 -0
  25. package/template/mock/utils.js +48 -0
  26. package/template/package.json +111 -0
  27. package/template/plop-templates/component/index.hbs +26 -0
  28. package/template/plop-templates/component/prompt.js +55 -0
  29. package/template/plop-templates/store/index.hbs +16 -0
  30. package/template/plop-templates/store/prompt.js +62 -0
  31. package/template/plop-templates/utils.js +2 -0
  32. package/template/plop-templates/view/index.hbs +26 -0
  33. package/template/plop-templates/view/prompt.js +55 -0
  34. package/template/plopfile.js +9 -0
  35. package/template/postcss.config.js +5 -0
  36. package/template/public/favicon.ico +0 -0
  37. package/template/public/index.html +15 -0
  38. package/template/src/App.vue +11 -0
  39. package/template/src/api/article.js +41 -0
  40. package/template/src/api/qiniu.js +8 -0
  41. package/template/src/api/remote-search.js +17 -0
  42. package/template/src/api/role.js +38 -0
  43. package/template/src/api/user.js +24 -0
  44. package/template/src/assets/401_images/401.gif +0 -0
  45. package/template/src/assets/404_images/404.png +0 -0
  46. package/template/src/assets/404_images/404_cloud.png +0 -0
  47. package/template/src/assets/custom-theme/fonts/element-icons.ttf +0 -0
  48. package/template/src/assets/custom-theme/fonts/element-icons.woff +0 -0
  49. package/template/src/assets/custom-theme/index.css +1 -0
  50. package/template/src/components/BackToTop/index.vue +111 -0
  51. package/template/src/components/Breadcrumb/index.vue +82 -0
  52. package/template/src/components/Charts/Keyboard.vue +155 -0
  53. package/template/src/components/Charts/LineMarker.vue +227 -0
  54. package/template/src/components/Charts/MixChart.vue +271 -0
  55. package/template/src/components/Charts/mixins/resize.js +56 -0
  56. package/template/src/components/DndList/index.vue +166 -0
  57. package/template/src/components/DragSelect/index.vue +65 -0
  58. package/template/src/components/Dropzone/index.vue +297 -0
  59. package/template/src/components/ErrorLog/index.vue +78 -0
  60. package/template/src/components/GithubCorner/index.vue +54 -0
  61. package/template/src/components/Hamburger/index.vue +44 -0
  62. package/template/src/components/HeaderSearch/index.vue +180 -0
  63. package/template/src/components/ImageCropper/index.vue +1779 -0
  64. package/template/src/components/ImageCropper/utils/data2blob.js +19 -0
  65. package/template/src/components/ImageCropper/utils/effectRipple.js +39 -0
  66. package/template/src/components/ImageCropper/utils/language.js +232 -0
  67. package/template/src/components/ImageCropper/utils/mimes.js +7 -0
  68. package/template/src/components/JsonEditor/index.vue +77 -0
  69. package/template/src/components/Kanban/index.vue +99 -0
  70. package/template/src/components/MDinput/index.vue +360 -0
  71. package/template/src/components/MarkdownEditor/default-options.js +31 -0
  72. package/template/src/components/MarkdownEditor/index.vue +118 -0
  73. package/template/src/components/Pagination/index.vue +101 -0
  74. package/template/src/components/PanThumb/index.vue +142 -0
  75. package/template/src/components/RightPanel/index.vue +145 -0
  76. package/template/src/components/Screenfull/index.vue +60 -0
  77. package/template/src/components/Share/DropdownMenu.vue +103 -0
  78. package/template/src/components/SizeSelect/index.vue +57 -0
  79. package/template/src/components/Sticky/index.vue +91 -0
  80. package/template/src/components/SvgIcon/index.vue +62 -0
  81. package/template/src/components/TextHoverEffect/Mallki.vue +113 -0
  82. package/template/src/components/ThemePicker/index.vue +175 -0
  83. package/template/src/components/Tinymce/components/EditorImage.vue +111 -0
  84. package/template/src/components/Tinymce/dynamicLoadScript.js +59 -0
  85. package/template/src/components/Tinymce/index.vue +250 -0
  86. package/template/src/components/Tinymce/plugins.js +7 -0
  87. package/template/src/components/Tinymce/toolbar.js +6 -0
  88. package/template/src/components/Upload/SingleImage.vue +134 -0
  89. package/template/src/components/Upload/SingleImage2.vue +130 -0
  90. package/template/src/components/Upload/SingleImage3.vue +157 -0
  91. package/template/src/components/UploadExcel/index.vue +138 -0
  92. package/template/src/directive/clipboard/clipboard.js +49 -0
  93. package/template/src/directive/clipboard/index.js +13 -0
  94. package/template/src/directive/el-drag-dialog/drag.js +77 -0
  95. package/template/src/directive/el-drag-dialog/index.js +13 -0
  96. package/template/src/directive/el-table/adaptive.js +41 -0
  97. package/template/src/directive/el-table/index.js +13 -0
  98. package/template/src/directive/permission/index.js +13 -0
  99. package/template/src/directive/permission/permission.js +31 -0
  100. package/template/src/directive/sticky.js +91 -0
  101. package/template/src/directive/waves/index.js +13 -0
  102. package/template/src/directive/waves/waves.css +26 -0
  103. package/template/src/directive/waves/waves.js +72 -0
  104. package/template/src/filters/index.js +68 -0
  105. package/template/src/icons/index.js +9 -0
  106. package/template/src/icons/svg/404.svg +1 -0
  107. package/template/src/icons/svg/bug.svg +1 -0
  108. package/template/src/icons/svg/chart.svg +1 -0
  109. package/template/src/icons/svg/clipboard.svg +1 -0
  110. package/template/src/icons/svg/component.svg +1 -0
  111. package/template/src/icons/svg/dashboard.svg +1 -0
  112. package/template/src/icons/svg/documentation.svg +1 -0
  113. package/template/src/icons/svg/drag.svg +1 -0
  114. package/template/src/icons/svg/edit.svg +1 -0
  115. package/template/src/icons/svg/education.svg +1 -0
  116. package/template/src/icons/svg/email.svg +1 -0
  117. package/template/src/icons/svg/example.svg +1 -0
  118. package/template/src/icons/svg/excel.svg +1 -0
  119. package/template/src/icons/svg/exit-fullscreen.svg +1 -0
  120. package/template/src/icons/svg/eye-open.svg +1 -0
  121. package/template/src/icons/svg/eye.svg +1 -0
  122. package/template/src/icons/svg/form.svg +1 -0
  123. package/template/src/icons/svg/fullscreen.svg +1 -0
  124. package/template/src/icons/svg/guide.svg +1 -0
  125. package/template/src/icons/svg/icon.svg +1 -0
  126. package/template/src/icons/svg/international.svg +1 -0
  127. package/template/src/icons/svg/language.svg +1 -0
  128. package/template/src/icons/svg/link.svg +1 -0
  129. package/template/src/icons/svg/list.svg +1 -0
  130. package/template/src/icons/svg/lock.svg +1 -0
  131. package/template/src/icons/svg/message.svg +1 -0
  132. package/template/src/icons/svg/money.svg +1 -0
  133. package/template/src/icons/svg/nested.svg +1 -0
  134. package/template/src/icons/svg/password.svg +1 -0
  135. package/template/src/icons/svg/pdf.svg +1 -0
  136. package/template/src/icons/svg/people.svg +1 -0
  137. package/template/src/icons/svg/peoples.svg +1 -0
  138. package/template/src/icons/svg/qq.svg +1 -0
  139. package/template/src/icons/svg/search.svg +1 -0
  140. package/template/src/icons/svg/shopping.svg +1 -0
  141. package/template/src/icons/svg/size.svg +1 -0
  142. package/template/src/icons/svg/skill.svg +1 -0
  143. package/template/src/icons/svg/star.svg +1 -0
  144. package/template/src/icons/svg/tab.svg +1 -0
  145. package/template/src/icons/svg/table.svg +1 -0
  146. package/template/src/icons/svg/theme.svg +1 -0
  147. package/template/src/icons/svg/tree-table.svg +1 -0
  148. package/template/src/icons/svg/tree.svg +1 -0
  149. package/template/src/icons/svg/user.svg +1 -0
  150. package/template/src/icons/svg/wechat.svg +1 -0
  151. package/template/src/icons/svg/zip.svg +1 -0
  152. package/template/src/icons/svgo.yml +22 -0
  153. package/template/src/layout/components/AppMain.vue +57 -0
  154. package/template/src/layout/components/Navbar.vue +167 -0
  155. package/template/src/layout/components/Settings/index.vue +108 -0
  156. package/template/src/layout/components/Sidebar/FixiOSBug.js +26 -0
  157. package/template/src/layout/components/Sidebar/Item.vue +41 -0
  158. package/template/src/layout/components/Sidebar/Link.vue +43 -0
  159. package/template/src/layout/components/Sidebar/Logo.vue +82 -0
  160. package/template/src/layout/components/Sidebar/SidebarItem.vue +95 -0
  161. package/template/src/layout/components/Sidebar/index.vue +54 -0
  162. package/template/src/layout/components/TagsView/ScrollPane.vue +94 -0
  163. package/template/src/layout/components/TagsView/index.vue +292 -0
  164. package/template/src/layout/components/index.js +5 -0
  165. package/template/src/layout/index.vue +102 -0
  166. package/template/src/layout/mixin/ResizeHandler.js +45 -0
  167. package/template/src/main.js +53 -0
  168. package/template/src/permission.js +74 -0
  169. package/template/src/router/index.js +404 -0
  170. package/template/src/router/modules/charts.js +36 -0
  171. package/template/src/router/modules/components.js +102 -0
  172. package/template/src/router/modules/nested.js +66 -0
  173. package/template/src/router/modules/table.js +41 -0
  174. package/template/src/settings.js +35 -0
  175. package/template/src/store/getters.js +15 -0
  176. package/template/src/store/index.js +25 -0
  177. package/template/src/store/modules/app.js +56 -0
  178. package/template/src/store/modules/errorLog.js +28 -0
  179. package/template/src/store/modules/permission.js +69 -0
  180. package/template/src/store/modules/settings.js +35 -0
  181. package/template/src/store/modules/tagsView.js +160 -0
  182. package/template/src/store/modules/user.js +131 -0
  183. package/template/src/styles/btn.scss +99 -0
  184. package/template/src/styles/element-ui.scss +84 -0
  185. package/template/src/styles/element-variables.scss +31 -0
  186. package/template/src/styles/index.scss +191 -0
  187. package/template/src/styles/mixin.scss +66 -0
  188. package/template/src/styles/sidebar.scss +226 -0
  189. package/template/src/styles/transition.scss +48 -0
  190. package/template/src/styles/variables.scss +35 -0
  191. package/template/src/utils/auth.js +15 -0
  192. package/template/src/utils/clipboard.js +32 -0
  193. package/template/src/utils/error-log.js +35 -0
  194. package/template/src/utils/get-page-title.js +10 -0
  195. package/template/src/utils/index.js +357 -0
  196. package/template/src/utils/open-window.js +25 -0
  197. package/template/src/utils/permission.js +25 -0
  198. package/template/src/utils/request.js +85 -0
  199. package/template/src/utils/scroll-to.js +58 -0
  200. package/template/src/utils/validate.js +87 -0
  201. package/template/src/vendor/Export2Excel.js +220 -0
  202. package/template/src/vendor/Export2Zip.js +24 -0
  203. package/template/src/views/charts/keyboard.vue +23 -0
  204. package/template/src/views/charts/line.vue +23 -0
  205. package/template/src/views/charts/mix-chart.vue +23 -0
  206. package/template/src/views/clipboard/index.vue +49 -0
  207. package/template/src/views/components-demo/avatar-upload.vue +61 -0
  208. package/template/src/views/components-demo/back-to-top.vue +154 -0
  209. package/template/src/views/components-demo/count-to.vue +218 -0
  210. package/template/src/views/components-demo/dnd-list.vue +39 -0
  211. package/template/src/views/components-demo/drag-dialog.vue +61 -0
  212. package/template/src/views/components-demo/drag-kanban.vue +66 -0
  213. package/template/src/views/components-demo/drag-select.vue +43 -0
  214. package/template/src/views/components-demo/dropzone.vue +31 -0
  215. package/template/src/views/components-demo/json-editor.vue +36 -0
  216. package/template/src/views/components-demo/markdown.vue +101 -0
  217. package/template/src/views/components-demo/mixin.vue +169 -0
  218. package/template/src/views/components-demo/split-pane.vue +67 -0
  219. package/template/src/views/components-demo/sticky.vue +135 -0
  220. package/template/src/views/components-demo/tinymce.vue +36 -0
  221. package/template/src/views/dashboard/admin/components/BarChart.vue +102 -0
  222. package/template/src/views/dashboard/admin/components/BoxCard.vue +118 -0
  223. package/template/src/views/dashboard/admin/components/LineChart.vue +135 -0
  224. package/template/src/views/dashboard/admin/components/PanelGroup.vue +181 -0
  225. package/template/src/views/dashboard/admin/components/PieChart.vue +79 -0
  226. package/template/src/views/dashboard/admin/components/RaddarChart.vue +116 -0
  227. package/template/src/views/dashboard/admin/components/TodoList/Todo.vue +81 -0
  228. package/template/src/views/dashboard/admin/components/TodoList/index.scss +320 -0
  229. package/template/src/views/dashboard/admin/components/TodoList/index.vue +127 -0
  230. package/template/src/views/dashboard/admin/components/TransactionTable.vue +55 -0
  231. package/template/src/views/dashboard/admin/components/mixins/resize.js +55 -0
  232. package/template/src/views/dashboard/admin/index.vue +124 -0
  233. package/template/src/views/dashboard/editor/index.vue +74 -0
  234. package/template/src/views/dashboard/index.vue +31 -0
  235. package/template/src/views/documentation/index.vue +56 -0
  236. package/template/src/views/error-log/components/ErrorTestA.vue +13 -0
  237. package/template/src/views/error-log/components/ErrorTestB.vue +11 -0
  238. package/template/src/views/error-log/index.vue +32 -0
  239. package/template/src/views/error-page/401.vue +99 -0
  240. package/template/src/views/error-page/404.vue +228 -0
  241. package/template/src/views/example/components/ArticleDetail.vue +289 -0
  242. package/template/src/views/example/components/Dropdown/Comment.vue +41 -0
  243. package/template/src/views/example/components/Dropdown/Platform.vue +46 -0
  244. package/template/src/views/example/components/Dropdown/SourceUrl.vue +38 -0
  245. package/template/src/views/example/components/Dropdown/index.js +3 -0
  246. package/template/src/views/example/components/Warning.vue +13 -0
  247. package/template/src/views/example/create.vue +13 -0
  248. package/template/src/views/example/edit.vue +13 -0
  249. package/template/src/views/example/list.vue +112 -0
  250. package/template/src/views/excel/components/AutoWidthOption.vue +34 -0
  251. package/template/src/views/excel/components/BookTypeOption.vue +39 -0
  252. package/template/src/views/excel/components/FilenameOption.vue +27 -0
  253. package/template/src/views/excel/export-excel.vue +116 -0
  254. package/template/src/views/excel/merge-header.vue +101 -0
  255. package/template/src/views/excel/select-excel.vue +107 -0
  256. package/template/src/views/excel/upload-excel.vue +42 -0
  257. package/template/src/views/guide/index.vue +36 -0
  258. package/template/src/views/guide/steps.js +53 -0
  259. package/template/src/views/icons/element-icons.js +3 -0
  260. package/template/src/views/icons/index.vue +101 -0
  261. package/template/src/views/icons/svg-icons.js +10 -0
  262. package/template/src/views/login/auth-redirect.vue +15 -0
  263. package/template/src/views/login/components/SocialSignin.vue +72 -0
  264. package/template/src/views/login/index.vue +324 -0
  265. package/template/src/views/nested/menu1/index.vue +7 -0
  266. package/template/src/views/nested/menu1/menu1-1/index.vue +7 -0
  267. package/template/src/views/nested/menu1/menu1-2/index.vue +7 -0
  268. package/template/src/views/nested/menu1/menu1-2/menu1-2-1/index.vue +5 -0
  269. package/template/src/views/nested/menu1/menu1-2/menu1-2-2/index.vue +5 -0
  270. package/template/src/views/nested/menu1/menu1-3/index.vue +5 -0
  271. package/template/src/views/nested/menu2/index.vue +5 -0
  272. package/template/src/views/pdf/content.js +58 -0
  273. package/template/src/views/pdf/download.vue +201 -0
  274. package/template/src/views/pdf/index.vue +13 -0
  275. package/template/src/views/permission/components/SwitchRoles.vue +32 -0
  276. package/template/src/views/permission/directive.vue +111 -0
  277. package/template/src/views/permission/page.vue +19 -0
  278. package/template/src/views/permission/role.vue +270 -0
  279. package/template/src/views/profile/components/Account.vue +38 -0
  280. package/template/src/views/profile/components/Activity.vue +185 -0
  281. package/template/src/views/profile/components/Timeline.vue +43 -0
  282. package/template/src/views/profile/components/UserCard.vue +134 -0
  283. package/template/src/views/profile/index.vue +68 -0
  284. package/template/src/views/qiniu/upload.vue +41 -0
  285. package/template/src/views/redirect/index.vue +12 -0
  286. package/template/src/views/tab/components/TabPane.vue +103 -0
  287. package/template/src/views/tab/index.vue +57 -0
  288. package/template/src/views/table/complex-table.vue +379 -0
  289. package/template/src/views/table/drag-table.vue +153 -0
  290. package/template/src/views/table/dynamic-table/components/FixedThead.vue +62 -0
  291. package/template/src/views/table/dynamic-table/components/UnfixedThead.vue +50 -0
  292. package/template/src/views/table/dynamic-table/index.vue +24 -0
  293. package/template/src/views/table/inline-edit-table.vue +149 -0
  294. package/template/src/views/theme/index.vue +120 -0
  295. package/template/src/views/zip/index.vue +77 -0
  296. package/template/tests/unit/.eslintrc.js +5 -0
  297. package/template/tests/unit/components/Hamburger.spec.js +18 -0
  298. package/template/tests/unit/components/SvgIcon.spec.js +22 -0
  299. package/template/tests/unit/utils/formatTime.spec.js +29 -0
  300. package/template/tests/unit/utils/param2Obj.spec.js +14 -0
  301. package/template/tests/unit/utils/parseTime.spec.js +37 -0
  302. package/template/tests/unit/utils/validate.spec.js +28 -0
  303. package/template/vue.config.js +125 -0
package/package.json ADDED
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "@lavida/vue-element-admin-template",
3
+ "version": "1.0.0",
4
+ "main": "index.js",
5
+ "scripts": {
6
+ "test": "echo \"Error: no test specified\" && exit 1"
7
+ },
8
+ "keywords": [],
9
+ "author": "",
10
+ "license": "ISC",
11
+ "description": "",
12
+ "publishConfig": {
13
+ "access": "public"
14
+ }
15
+ }
@@ -0,0 +1,14 @@
1
+ # https://editorconfig.org
2
+ root = true
3
+
4
+ [*]
5
+ charset = utf-8
6
+ indent_style = space
7
+ indent_size = 2
8
+ end_of_line = lf
9
+ insert_final_newline = true
10
+ trim_trailing_whitespace = true
11
+
12
+ [*.md]
13
+ insert_final_newline = false
14
+ trim_trailing_whitespace = false
@@ -0,0 +1,5 @@
1
+ # just a flag
2
+ ENV = 'development'
3
+
4
+ # base api
5
+ VUE_APP_BASE_API = '/dev-api'
@@ -0,0 +1,6 @@
1
+ # just a flag
2
+ ENV = 'production'
3
+
4
+ # base api
5
+ VUE_APP_BASE_API = '/prod-api'
6
+
@@ -0,0 +1,8 @@
1
+ NODE_ENV = production
2
+
3
+ # just a flag
4
+ ENV = 'staging'
5
+
6
+ # base api
7
+ VUE_APP_BASE_API = '/stage-api'
8
+
@@ -0,0 +1,4 @@
1
+ build/*.js
2
+ src/assets
3
+ public
4
+ dist
@@ -0,0 +1,198 @@
1
+ module.exports = {
2
+ root: true,
3
+ parserOptions: {
4
+ parser: 'babel-eslint',
5
+ sourceType: 'module'
6
+ },
7
+ env: {
8
+ browser: true,
9
+ node: true,
10
+ es6: true,
11
+ },
12
+ extends: ['plugin:vue/recommended', 'eslint:recommended'],
13
+
14
+ // add your custom rules here
15
+ //it is base on https://github.com/vuejs/eslint-config-vue
16
+ rules: {
17
+ "vue/max-attributes-per-line": [2, {
18
+ "singleline": 10,
19
+ "multiline": {
20
+ "max": 1,
21
+ "allowFirstLine": false
22
+ }
23
+ }],
24
+ "vue/singleline-html-element-content-newline": "off",
25
+ "vue/multiline-html-element-content-newline":"off",
26
+ "vue/name-property-casing": ["error", "PascalCase"],
27
+ "vue/no-v-html": "off",
28
+ 'accessor-pairs': 2,
29
+ 'arrow-spacing': [2, {
30
+ 'before': true,
31
+ 'after': true
32
+ }],
33
+ 'block-spacing': [2, 'always'],
34
+ 'brace-style': [2, '1tbs', {
35
+ 'allowSingleLine': true
36
+ }],
37
+ 'camelcase': [0, {
38
+ 'properties': 'always'
39
+ }],
40
+ 'comma-dangle': [2, 'never'],
41
+ 'comma-spacing': [2, {
42
+ 'before': false,
43
+ 'after': true
44
+ }],
45
+ 'comma-style': [2, 'last'],
46
+ 'constructor-super': 2,
47
+ 'curly': [2, 'multi-line'],
48
+ 'dot-location': [2, 'property'],
49
+ 'eol-last': 2,
50
+ 'eqeqeq': ["error", "always", {"null": "ignore"}],
51
+ 'generator-star-spacing': [2, {
52
+ 'before': true,
53
+ 'after': true
54
+ }],
55
+ 'handle-callback-err': [2, '^(err|error)$'],
56
+ 'indent': [2, 2, {
57
+ 'SwitchCase': 1
58
+ }],
59
+ 'jsx-quotes': [2, 'prefer-single'],
60
+ 'key-spacing': [2, {
61
+ 'beforeColon': false,
62
+ 'afterColon': true
63
+ }],
64
+ 'keyword-spacing': [2, {
65
+ 'before': true,
66
+ 'after': true
67
+ }],
68
+ 'new-cap': [2, {
69
+ 'newIsCap': true,
70
+ 'capIsNew': false
71
+ }],
72
+ 'new-parens': 2,
73
+ 'no-array-constructor': 2,
74
+ 'no-caller': 2,
75
+ 'no-console': 'off',
76
+ 'no-class-assign': 2,
77
+ 'no-cond-assign': 2,
78
+ 'no-const-assign': 2,
79
+ 'no-control-regex': 0,
80
+ 'no-delete-var': 2,
81
+ 'no-dupe-args': 2,
82
+ 'no-dupe-class-members': 2,
83
+ 'no-dupe-keys': 2,
84
+ 'no-duplicate-case': 2,
85
+ 'no-empty-character-class': 2,
86
+ 'no-empty-pattern': 2,
87
+ 'no-eval': 2,
88
+ 'no-ex-assign': 2,
89
+ 'no-extend-native': 2,
90
+ 'no-extra-bind': 2,
91
+ 'no-extra-boolean-cast': 2,
92
+ 'no-extra-parens': [2, 'functions'],
93
+ 'no-fallthrough': 2,
94
+ 'no-floating-decimal': 2,
95
+ 'no-func-assign': 2,
96
+ 'no-implied-eval': 2,
97
+ 'no-inner-declarations': [2, 'functions'],
98
+ 'no-invalid-regexp': 2,
99
+ 'no-irregular-whitespace': 2,
100
+ 'no-iterator': 2,
101
+ 'no-label-var': 2,
102
+ 'no-labels': [2, {
103
+ 'allowLoop': false,
104
+ 'allowSwitch': false
105
+ }],
106
+ 'no-lone-blocks': 2,
107
+ 'no-mixed-spaces-and-tabs': 2,
108
+ 'no-multi-spaces': 2,
109
+ 'no-multi-str': 2,
110
+ 'no-multiple-empty-lines': [2, {
111
+ 'max': 1
112
+ }],
113
+ 'no-native-reassign': 2,
114
+ 'no-negated-in-lhs': 2,
115
+ 'no-new-object': 2,
116
+ 'no-new-require': 2,
117
+ 'no-new-symbol': 2,
118
+ 'no-new-wrappers': 2,
119
+ 'no-obj-calls': 2,
120
+ 'no-octal': 2,
121
+ 'no-octal-escape': 2,
122
+ 'no-path-concat': 2,
123
+ 'no-proto': 2,
124
+ 'no-redeclare': 2,
125
+ 'no-regex-spaces': 2,
126
+ 'no-return-assign': [2, 'except-parens'],
127
+ 'no-self-assign': 2,
128
+ 'no-self-compare': 2,
129
+ 'no-sequences': 2,
130
+ 'no-shadow-restricted-names': 2,
131
+ 'no-spaced-func': 2,
132
+ 'no-sparse-arrays': 2,
133
+ 'no-this-before-super': 2,
134
+ 'no-throw-literal': 2,
135
+ 'no-trailing-spaces': 2,
136
+ 'no-undef': 2,
137
+ 'no-undef-init': 2,
138
+ 'no-unexpected-multiline': 2,
139
+ 'no-unmodified-loop-condition': 2,
140
+ 'no-unneeded-ternary': [2, {
141
+ 'defaultAssignment': false
142
+ }],
143
+ 'no-unreachable': 2,
144
+ 'no-unsafe-finally': 2,
145
+ 'no-unused-vars': [2, {
146
+ 'vars': 'all',
147
+ 'args': 'none'
148
+ }],
149
+ 'no-useless-call': 2,
150
+ 'no-useless-computed-key': 2,
151
+ 'no-useless-constructor': 2,
152
+ 'no-useless-escape': 0,
153
+ 'no-whitespace-before-property': 2,
154
+ 'no-with': 2,
155
+ 'one-var': [2, {
156
+ 'initialized': 'never'
157
+ }],
158
+ 'operator-linebreak': [2, 'after', {
159
+ 'overrides': {
160
+ '?': 'before',
161
+ ':': 'before'
162
+ }
163
+ }],
164
+ 'padded-blocks': [2, 'never'],
165
+ 'quotes': [2, 'single', {
166
+ 'avoidEscape': true,
167
+ 'allowTemplateLiterals': true
168
+ }],
169
+ 'semi': [2, 'never'],
170
+ 'semi-spacing': [2, {
171
+ 'before': false,
172
+ 'after': true
173
+ }],
174
+ 'space-before-blocks': [2, 'always'],
175
+ 'space-before-function-paren': [2, 'never'],
176
+ 'space-in-parens': [2, 'never'],
177
+ 'space-infix-ops': 2,
178
+ 'space-unary-ops': [2, {
179
+ 'words': true,
180
+ 'nonwords': false
181
+ }],
182
+ 'spaced-comment': [2, 'always', {
183
+ 'markers': ['global', 'globals', 'eslint', 'eslint-disable', '*package', '!', ',']
184
+ }],
185
+ 'template-curly-spacing': [2, 'never'],
186
+ 'use-isnan': 2,
187
+ 'valid-typeof': 2,
188
+ 'wrap-iife': [2, 'any'],
189
+ 'yield-star-spacing': [2, 'both'],
190
+ 'yoda': [2, 'never'],
191
+ 'prefer-const': 2,
192
+ 'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
193
+ 'object-curly-spacing': [2, 'always', {
194
+ objectsInObjects: false
195
+ }],
196
+ 'array-bracket-spacing': [2, 'never']
197
+ }
198
+ }
@@ -0,0 +1,5 @@
1
+ language: node_js
2
+ node_js: 10
3
+ script: npm run test
4
+ notifications:
5
+ email: false
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2017-present PanJiaChen
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,222 @@
1
+ <p align="center">
2
+ <img width="320" src="https://wpimg.wallstcn.com/ecc53a42-d79b-42e2-8852-5126b810a4c8.svg">
3
+ </p>
4
+
5
+ <p align="center">
6
+ <a href="https://github.com/vuejs/vue">
7
+ <img src="https://img.shields.io/badge/vue-2.6.10-brightgreen.svg" alt="vue">
8
+ </a>
9
+ <a href="https://github.com/ElemeFE/element">
10
+ <img src="https://img.shields.io/badge/element--ui-2.7.0-brightgreen.svg" alt="element-ui">
11
+ </a>
12
+ <a href="https://travis-ci.org/PanJiaChen/vue-element-admin" rel="nofollow">
13
+ <img src="https://travis-ci.org/PanJiaChen/vue-element-admin.svg?branch=master" alt="Estado de Construcción">
14
+ </a>
15
+ <a href="https://github.com/PanJiaChen/vue-element-admin/blob/master/LICENSE">
16
+ <img src="https://img.shields.io/github/license/mashape/apistatus.svg" alt="Licencia">
17
+ </a>
18
+ <a href="https://github.com/PanJiaChen/vue-element-admin/releases">
19
+ <img src="https://img.shields.io/github/release/PanJiaChen/vue-element-admin.svg" alt="Liberación Github">
20
+ </a>
21
+ <a href="https://gitter.im/vue-element-admin/discuss">
22
+ <img src="https://badges.gitter.im/Join%20Chat.svg" alt="Gitter">
23
+ </a>
24
+ <a href="https://panjiachen.github.io/vue-element-admin-site/donate">
25
+ <img src="https://img.shields.io/badge/%24-donate-ff69b4.svg" alt="Donación">
26
+ </a>
27
+ </p>
28
+
29
+ Español | [English](./README.md) | [简体中文](./README.zh-CN.md) | [日本語](./README.ja.md)
30
+
31
+ ## Introducción
32
+
33
+ [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.
34
+
35
+ 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á.
36
+
37
+ - [Vista Prévia de la Aplicación](https://panjiachen.github.io/vue-element-admin)
38
+
39
+ - [Documentación](https://panjiachen.github.io/vue-element-admin-site/)
40
+
41
+ - [Canal de Gitter](https://gitter.im/vue-element-admin/discuss)
42
+
43
+ - [Para Donaciones](https://panjiachen.github.io/vue-element-admin-site/donate/)
44
+
45
+ - [Enlace de Wiki](https://github.com/PanJiaChen/vue-element-admin/wiki)
46
+
47
+ - [Canal de Gitee](https://panjiachen.gitee.io/vue-element-admin/)
48
+
49
+ - Plantilla base recomendada para usar: [vue-admin-template](https://github.com/PanJiaChen/vue-admin-template)
50
+ - Aplicación de Escritorio: [electron-vue-admin](https://github.com/PanJiaChen/electron-vue-admin)
51
+ - Plantilla de Typescript: [vue-typescript-admin-template](https://github.com/Armour/vue-typescript-admin-template) (Créditos: [@Armour](https://github.com/Armour))
52
+ - [awesome-project](https://github.com/PanJiaChen/vue-element-admin/issues/2312)
53
+
54
+ **Después de la versión `v4.1.0+`, la rama por defecto master no tendrá soporte para i18n. Por favor utilice la rama [i18n](https://github.com/PanJiaChen/vue-element-admin/tree/i18n), los cambios serán incluidos en la rama master**
55
+
56
+ **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`**
57
+
58
+ **Este proyecto no está soportado para versiones antigüas de navegadores (ej. IE).**
59
+
60
+ ## Preparación
61
+
62
+ 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).
63
+ Entendiendo y aprendiendo esto pudiera ayudarle con su proyecto.
64
+
65
+ [![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/github/PanJiaChen/vue-element-admin/tree/CodeSandbox)
66
+
67
+ <p align="center">
68
+ <img width="900" src="https://wpimg.wallstcn.com/a5894c1b-f6af-456e-82df-1151da0839bf.png">
69
+ </p>
70
+
71
+ ## Patrocinantes
72
+
73
+ Sea un patrocinante y coloque su logo en nuestro LEEME en GitHub con un enlace directo a su sitio web. [[Se un Patrocinante]](https://www.patreon.com/panjiachen)
74
+
75
+ <a href="https://flatlogic.com/admin-dashboards?from=vue-element-admin"><img width="150px" src="https://wpimg.wallstcn.com/9c0b719b-5551-4c1e-b776-63994632d94a.png" /></a><p>Plantilla de Dashboard de administración hecha con Vue, React y Angular.</p>
76
+
77
+ ## Características
78
+
79
+ ```
80
+ - Iniciar / Cerrar Sesión
81
+
82
+ - Permisos de Autenticación
83
+ - Página de Permisos
84
+ - Directivas de permisos
85
+ - Página de configuración de permisos
86
+ - Autenticación por dos pasos
87
+
88
+ - Construcción Multi-entorno
89
+ - Desarrollo (dev)
90
+ - sit
91
+ - Escenario de pruebas (stage),
92
+ - Producción (prod)
93
+
94
+ - Características Globales
95
+ - I18n
96
+ - Temas dinámicos
97
+ - Menu lateral dinámico (soporte a rutas multi-nivel)
98
+ - Barra de rutas dinámica
99
+ - Tags-view (Pestañas de página, Soporta operación de clic derecho)
100
+ - Svg Sprite
101
+ - Datos de simulación con Mock
102
+ - Pantalla completa
103
+ - Menu lateral responsivo
104
+
105
+ - Editor
106
+ - Editor de Texto Enriquecido
107
+ - Editor Markdown
108
+ - Editor JSON
109
+
110
+ - Excel
111
+ - Exportación a Excel
112
+ - Carga de Excel
113
+ - Visualización de Excel
114
+ - Exportación como ZIP
115
+
116
+ - Tabla
117
+ - Tabla Dinámica
118
+ - Tabla con Arrastrar y Soltar
119
+ - Tabla de edición en línea
120
+
121
+ - Páginas de Error
122
+ - 401
123
+ - 404
124
+
125
+ - Componentes
126
+ - Carga de Avatar
127
+ - Botón para subir al inicio
128
+ - Arrastrar y Soltar (Diaglogo)
129
+ - Arrastrar y Soltar (Seleccionar)
130
+ - Arrastrar y Soltar (Kanban)
131
+ - Arrastrar y Soltar (Lista)
132
+ - Panel de división
133
+ - Componente para soltar archivos
134
+ - Adhesión de objetos
135
+ - Contador hasta
136
+
137
+ - Ejemplo Avanzado
138
+ - Registro de Errores
139
+ - Tablero de indicadores
140
+ - Página de Guías
141
+ - ECharts (Gráficos)
142
+ - Portapapeles
143
+ - Convertidor de Markdown a HTML
144
+ ```
145
+
146
+ ## Iniciando
147
+
148
+ ```bash
149
+ # clone el proyecto
150
+ git clone https://github.com/PanJiaChen/vue-element-admin.git
151
+
152
+ # vaya al directorio clonado
153
+ cd vue-element-admin
154
+
155
+ # instale las dependencias
156
+ npm install
157
+
158
+ # corra el proyecto como desarrollador
159
+ npm run dev
160
+ ```
161
+
162
+ Automáticamente se abrirá el siguiente enlace en su navegador http://localhost:9527
163
+
164
+ ## Construcción
165
+
166
+ ```bash
167
+ # Construcción para entornos de prueba
168
+ npm run build:stage
169
+
170
+ # Construcción para entornos de producción
171
+ npm run build:prod
172
+ ```
173
+
174
+ ## Avanzado
175
+
176
+ ```bash
177
+ # Vista previa con efectos de entorno
178
+ npm run preview
179
+
180
+ # Vista previa con efectos + análisis de recursos estáticos
181
+ npm run preview -- --report
182
+
183
+ # Chequeo de formato de código
184
+ npm run lint
185
+
186
+ # Chequeo de formato de código y auto-corrección
187
+ npm run lint -- --fix
188
+ ```
189
+
190
+ Vaya a [Documentación](https://panjiachen.github.io/vue-element-admin-site/guide/essentials/deploy.html) para mayor información
191
+
192
+ ## Registro de Cambios
193
+
194
+ Los cambios detallados por cada liberación se encuentran en [notas de liberación](https://github.com/PanJiaChen/vue-element-admin/releases).
195
+
196
+ ## Demostración en línea
197
+
198
+ [Vista Prévia de la Aplicación](https://panjiachen.github.io/vue-element-admin)
199
+
200
+ ## Donación
201
+
202
+ Si este proyecto es de mucha ayuda para ti, puedes comprarle al autor un vaso de jugo :tropical_drink:
203
+
204
+ ![Donar](https://wpimg.wallstcn.com/bd273f0d-83a0-4ef2-92e1-9ac8ed3746b9.png)
205
+
206
+ [dona por Paypal](https://www.paypal.me/panfree23)
207
+
208
+ [Comprame un Café](https://www.buymeacoffee.com/Pan)
209
+
210
+ ## Navegadores Soportados
211
+
212
+ Navegadores modernos e Internet Explorer 10+.
213
+
214
+ | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png" alt="IE / Edge" width="24px" height="24px" />](https://godban.github.io/browsers-support-badges/)</br>IE / Edge | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png" alt="Firefox" width="24px" height="24px" />](https://godban.github.io/browsers-support-badges/)</br>Firefox | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png" alt="Chrome" width="24px" height="24px" />](https://godban.github.io/browsers-support-badges/)</br>Chrome | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png" alt="Safari" width="24px" height="24px" />](https://godban.github.io/browsers-support-badges/)</br>Safari |
215
+ | --------- | --------- | --------- | --------- |
216
+ | IE10, IE11, Edge | últimas 2 versiones | últimas 2 versiones | últimas 2 versiones |
217
+
218
+ ## Licencia
219
+
220
+ [MIT](https://github.com/PanJiaChen/vue-element-admin/blob/master/LICENSE)
221
+
222
+ Copyright (c) 2017-presente PanJiaChen