zetan-cli-dev-template-vue-element-admin 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +8 -0
- package/template/.editorconfig +14 -0
- package/template/.env.development +5 -0
- package/template/.env.production +6 -0
- package/template/.env.staging +8 -0
- package/template/.eslintignore +4 -0
- package/template/.eslintrc.js +198 -0
- package/template/.travis.yml +5 -0
- package/template/LICENSE +21 -0
- package/template/README.es.md +228 -0
- package/template/README.ja.md +224 -0
- package/template/README.md +250 -0
- package/template/README.zh-CN.md +273 -0
- package/template/babel.config.js +14 -0
- package/template/build/index.js +35 -0
- package/template/jest.config.js +24 -0
- package/template/jsconfig.json +9 -0
- package/template/mock/article.js +116 -0
- package/template/mock/index.js +60 -0
- package/template/mock/mock-server.js +81 -0
- package/template/mock/remote-search.js +51 -0
- package/template/mock/role/index.js +98 -0
- package/template/mock/role/routes.js +530 -0
- package/template/mock/user.js +84 -0
- package/template/mock/utils.js +48 -0
- package/template/package.json +111 -0
- package/template/plop-templates/component/index.hbs +26 -0
- package/template/plop-templates/component/prompt.js +55 -0
- package/template/plop-templates/store/index.hbs +16 -0
- package/template/plop-templates/store/prompt.js +62 -0
- package/template/plop-templates/utils.js +2 -0
- package/template/plop-templates/view/index.hbs +26 -0
- package/template/plop-templates/view/prompt.js +55 -0
- package/template/plopfile.js +9 -0
- package/template/postcss.config.js +5 -0
- package/template/public/favicon.ico +0 -0
- package/template/public/index.html +15 -0
- package/template/src/App.vue +11 -0
- package/template/src/api/article.js +41 -0
- package/template/src/api/qiniu.js +8 -0
- package/template/src/api/remote-search.js +17 -0
- package/template/src/api/role.js +38 -0
- package/template/src/api/user.js +24 -0
- package/template/src/assets/401_images/401.gif +0 -0
- package/template/src/assets/404_images/404.png +0 -0
- package/template/src/assets/404_images/404_cloud.png +0 -0
- package/template/src/assets/custom-theme/fonts/element-icons.ttf +0 -0
- package/template/src/assets/custom-theme/fonts/element-icons.woff +0 -0
- package/template/src/assets/custom-theme/index.css +1 -0
- package/template/src/components/BackToTop/index.vue +111 -0
- package/template/src/components/Breadcrumb/index.vue +82 -0
- package/template/src/components/Charts/Keyboard.vue +155 -0
- package/template/src/components/Charts/LineMarker.vue +227 -0
- package/template/src/components/Charts/MixChart.vue +271 -0
- package/template/src/components/Charts/mixins/resize.js +56 -0
- package/template/src/components/DndList/index.vue +166 -0
- package/template/src/components/DragSelect/index.vue +65 -0
- package/template/src/components/Dropzone/index.vue +297 -0
- package/template/src/components/ErrorLog/index.vue +78 -0
- package/template/src/components/GithubCorner/index.vue +54 -0
- package/template/src/components/Hamburger/index.vue +44 -0
- package/template/src/components/HeaderSearch/index.vue +180 -0
- package/template/src/components/ImageCropper/index.vue +1779 -0
- package/template/src/components/ImageCropper/utils/data2blob.js +19 -0
- package/template/src/components/ImageCropper/utils/effectRipple.js +39 -0
- package/template/src/components/ImageCropper/utils/language.js +232 -0
- package/template/src/components/ImageCropper/utils/mimes.js +7 -0
- package/template/src/components/JsonEditor/index.vue +77 -0
- package/template/src/components/Kanban/index.vue +99 -0
- package/template/src/components/MDinput/index.vue +360 -0
- package/template/src/components/MarkdownEditor/default-options.js +31 -0
- package/template/src/components/MarkdownEditor/index.vue +118 -0
- package/template/src/components/Pagination/index.vue +101 -0
- package/template/src/components/PanThumb/index.vue +142 -0
- package/template/src/components/RightPanel/index.vue +145 -0
- package/template/src/components/Screenfull/index.vue +60 -0
- package/template/src/components/Share/DropdownMenu.vue +103 -0
- package/template/src/components/SizeSelect/index.vue +57 -0
- package/template/src/components/Sticky/index.vue +91 -0
- package/template/src/components/SvgIcon/index.vue +62 -0
- package/template/src/components/TextHoverEffect/Mallki.vue +113 -0
- package/template/src/components/ThemePicker/index.vue +175 -0
- package/template/src/components/Tinymce/components/EditorImage.vue +111 -0
- package/template/src/components/Tinymce/dynamicLoadScript.js +59 -0
- package/template/src/components/Tinymce/index.vue +247 -0
- package/template/src/components/Tinymce/plugins.js +7 -0
- package/template/src/components/Tinymce/toolbar.js +6 -0
- package/template/src/components/Upload/SingleImage.vue +134 -0
- package/template/src/components/Upload/SingleImage2.vue +130 -0
- package/template/src/components/Upload/SingleImage3.vue +157 -0
- package/template/src/components/UploadExcel/index.vue +138 -0
- package/template/src/directive/clipboard/clipboard.js +49 -0
- package/template/src/directive/clipboard/index.js +13 -0
- package/template/src/directive/el-drag-dialog/drag.js +77 -0
- package/template/src/directive/el-drag-dialog/index.js +13 -0
- package/template/src/directive/el-table/adaptive.js +41 -0
- package/template/src/directive/el-table/index.js +13 -0
- package/template/src/directive/permission/index.js +13 -0
- package/template/src/directive/permission/permission.js +31 -0
- package/template/src/directive/sticky.js +91 -0
- package/template/src/directive/waves/index.js +13 -0
- package/template/src/directive/waves/waves.css +26 -0
- package/template/src/directive/waves/waves.js +72 -0
- package/template/src/filters/index.js +68 -0
- package/template/src/icons/index.js +9 -0
- package/template/src/icons/svg/404.svg +1 -0
- package/template/src/icons/svg/bug.svg +1 -0
- package/template/src/icons/svg/chart.svg +1 -0
- package/template/src/icons/svg/clipboard.svg +1 -0
- package/template/src/icons/svg/component.svg +1 -0
- package/template/src/icons/svg/dashboard.svg +1 -0
- package/template/src/icons/svg/documentation.svg +1 -0
- package/template/src/icons/svg/drag.svg +1 -0
- package/template/src/icons/svg/edit.svg +1 -0
- package/template/src/icons/svg/education.svg +1 -0
- package/template/src/icons/svg/email.svg +1 -0
- package/template/src/icons/svg/example.svg +1 -0
- package/template/src/icons/svg/excel.svg +1 -0
- package/template/src/icons/svg/exit-fullscreen.svg +1 -0
- package/template/src/icons/svg/eye-open.svg +1 -0
- package/template/src/icons/svg/eye.svg +1 -0
- package/template/src/icons/svg/form.svg +1 -0
- package/template/src/icons/svg/fullscreen.svg +1 -0
- package/template/src/icons/svg/guide.svg +1 -0
- package/template/src/icons/svg/icon.svg +1 -0
- package/template/src/icons/svg/international.svg +1 -0
- package/template/src/icons/svg/language.svg +1 -0
- package/template/src/icons/svg/link.svg +1 -0
- package/template/src/icons/svg/list.svg +1 -0
- package/template/src/icons/svg/lock.svg +1 -0
- package/template/src/icons/svg/message.svg +1 -0
- package/template/src/icons/svg/money.svg +1 -0
- package/template/src/icons/svg/nested.svg +1 -0
- package/template/src/icons/svg/password.svg +1 -0
- package/template/src/icons/svg/pdf.svg +1 -0
- package/template/src/icons/svg/people.svg +1 -0
- package/template/src/icons/svg/peoples.svg +1 -0
- package/template/src/icons/svg/qq.svg +1 -0
- package/template/src/icons/svg/search.svg +1 -0
- package/template/src/icons/svg/shopping.svg +1 -0
- package/template/src/icons/svg/size.svg +1 -0
- package/template/src/icons/svg/skill.svg +1 -0
- package/template/src/icons/svg/star.svg +1 -0
- package/template/src/icons/svg/tab.svg +1 -0
- package/template/src/icons/svg/table.svg +1 -0
- package/template/src/icons/svg/theme.svg +1 -0
- package/template/src/icons/svg/tree-table.svg +1 -0
- package/template/src/icons/svg/tree.svg +1 -0
- package/template/src/icons/svg/user.svg +1 -0
- package/template/src/icons/svg/wechat.svg +1 -0
- package/template/src/icons/svg/zip.svg +1 -0
- package/template/src/icons/svgo.yml +22 -0
- package/template/src/layout/components/AppMain.vue +57 -0
- package/template/src/layout/components/Navbar.vue +167 -0
- package/template/src/layout/components/Settings/index.vue +108 -0
- package/template/src/layout/components/Sidebar/FixiOSBug.js +26 -0
- package/template/src/layout/components/Sidebar/Item.vue +41 -0
- package/template/src/layout/components/Sidebar/Link.vue +43 -0
- package/template/src/layout/components/Sidebar/Logo.vue +82 -0
- package/template/src/layout/components/Sidebar/SidebarItem.vue +95 -0
- package/template/src/layout/components/Sidebar/index.vue +54 -0
- package/template/src/layout/components/TagsView/ScrollPane.vue +94 -0
- package/template/src/layout/components/TagsView/index.vue +292 -0
- package/template/src/layout/components/index.js +5 -0
- package/template/src/layout/index.vue +102 -0
- package/template/src/layout/mixin/ResizeHandler.js +45 -0
- package/template/src/main.js +53 -0
- package/template/src/permission.js +74 -0
- package/template/src/router/index.js +404 -0
- package/template/src/router/modules/charts.js +36 -0
- package/template/src/router/modules/components.js +102 -0
- package/template/src/router/modules/nested.js +66 -0
- package/template/src/router/modules/table.js +41 -0
- package/template/src/settings.js +35 -0
- package/template/src/store/getters.js +15 -0
- package/template/src/store/index.js +25 -0
- package/template/src/store/modules/app.js +56 -0
- package/template/src/store/modules/errorLog.js +28 -0
- package/template/src/store/modules/permission.js +69 -0
- package/template/src/store/modules/settings.js +35 -0
- package/template/src/store/modules/tagsView.js +160 -0
- package/template/src/store/modules/user.js +131 -0
- package/template/src/styles/btn.scss +99 -0
- package/template/src/styles/element-ui.scss +84 -0
- package/template/src/styles/element-variables.scss +31 -0
- package/template/src/styles/index.scss +191 -0
- package/template/src/styles/mixin.scss +66 -0
- package/template/src/styles/sidebar.scss +226 -0
- package/template/src/styles/transition.scss +48 -0
- package/template/src/styles/variables.scss +35 -0
- package/template/src/utils/auth.js +15 -0
- package/template/src/utils/clipboard.js +32 -0
- package/template/src/utils/error-log.js +35 -0
- package/template/src/utils/get-page-title.js +10 -0
- package/template/src/utils/index.js +357 -0
- package/template/src/utils/open-window.js +25 -0
- package/template/src/utils/permission.js +21 -0
- package/template/src/utils/request.js +85 -0
- package/template/src/utils/scroll-to.js +58 -0
- package/template/src/utils/validate.js +87 -0
- package/template/src/vendor/Export2Excel.js +220 -0
- package/template/src/vendor/Export2Zip.js +24 -0
- package/template/src/views/charts/keyboard.vue +23 -0
- package/template/src/views/charts/line.vue +23 -0
- package/template/src/views/charts/mix-chart.vue +23 -0
- package/template/src/views/clipboard/index.vue +49 -0
- package/template/src/views/components-demo/avatar-upload.vue +61 -0
- package/template/src/views/components-demo/back-to-top.vue +154 -0
- package/template/src/views/components-demo/count-to.vue +218 -0
- package/template/src/views/components-demo/dnd-list.vue +39 -0
- package/template/src/views/components-demo/drag-dialog.vue +61 -0
- package/template/src/views/components-demo/drag-kanban.vue +66 -0
- package/template/src/views/components-demo/drag-select.vue +43 -0
- package/template/src/views/components-demo/dropzone.vue +31 -0
- package/template/src/views/components-demo/json-editor.vue +36 -0
- package/template/src/views/components-demo/markdown.vue +101 -0
- package/template/src/views/components-demo/mixin.vue +169 -0
- package/template/src/views/components-demo/split-pane.vue +67 -0
- package/template/src/views/components-demo/sticky.vue +135 -0
- package/template/src/views/components-demo/tinymce.vue +36 -0
- package/template/src/views/dashboard/admin/components/BarChart.vue +102 -0
- package/template/src/views/dashboard/admin/components/BoxCard.vue +118 -0
- package/template/src/views/dashboard/admin/components/LineChart.vue +135 -0
- package/template/src/views/dashboard/admin/components/PanelGroup.vue +181 -0
- package/template/src/views/dashboard/admin/components/PieChart.vue +79 -0
- package/template/src/views/dashboard/admin/components/RaddarChart.vue +116 -0
- package/template/src/views/dashboard/admin/components/TodoList/Todo.vue +81 -0
- package/template/src/views/dashboard/admin/components/TodoList/index.scss +320 -0
- package/template/src/views/dashboard/admin/components/TodoList/index.vue +127 -0
- package/template/src/views/dashboard/admin/components/TransactionTable.vue +55 -0
- package/template/src/views/dashboard/admin/components/mixins/resize.js +55 -0
- package/template/src/views/dashboard/admin/index.vue +124 -0
- package/template/src/views/dashboard/editor/index.vue +74 -0
- package/template/src/views/dashboard/index.vue +31 -0
- package/template/src/views/documentation/index.vue +57 -0
- package/template/src/views/error-log/components/ErrorTestA.vue +13 -0
- package/template/src/views/error-log/components/ErrorTestB.vue +11 -0
- package/template/src/views/error-log/index.vue +32 -0
- package/template/src/views/error-page/401.vue +99 -0
- package/template/src/views/error-page/404.vue +228 -0
- package/template/src/views/example/components/ArticleDetail.vue +289 -0
- package/template/src/views/example/components/Dropdown/Comment.vue +41 -0
- package/template/src/views/example/components/Dropdown/Platform.vue +46 -0
- package/template/src/views/example/components/Dropdown/SourceUrl.vue +38 -0
- package/template/src/views/example/components/Dropdown/index.js +3 -0
- package/template/src/views/example/components/Warning.vue +13 -0
- package/template/src/views/example/create.vue +13 -0
- package/template/src/views/example/edit.vue +13 -0
- package/template/src/views/example/list.vue +112 -0
- package/template/src/views/excel/components/AutoWidthOption.vue +34 -0
- package/template/src/views/excel/components/BookTypeOption.vue +39 -0
- package/template/src/views/excel/components/FilenameOption.vue +27 -0
- package/template/src/views/excel/export-excel.vue +116 -0
- package/template/src/views/excel/merge-header.vue +101 -0
- package/template/src/views/excel/select-excel.vue +107 -0
- package/template/src/views/excel/upload-excel.vue +42 -0
- package/template/src/views/guide/index.vue +36 -0
- package/template/src/views/guide/steps.js +53 -0
- package/template/src/views/icons/element-icons.js +3 -0
- package/template/src/views/icons/index.vue +101 -0
- package/template/src/views/icons/svg-icons.js +10 -0
- package/template/src/views/login/auth-redirect.vue +15 -0
- package/template/src/views/login/components/SocialSignin.vue +72 -0
- package/template/src/views/login/index.vue +324 -0
- package/template/src/views/nested/menu1/index.vue +7 -0
- package/template/src/views/nested/menu1/menu1-1/index.vue +7 -0
- package/template/src/views/nested/menu1/menu1-2/index.vue +7 -0
- package/template/src/views/nested/menu1/menu1-2/menu1-2-1/index.vue +5 -0
- package/template/src/views/nested/menu1/menu1-2/menu1-2-2/index.vue +5 -0
- package/template/src/views/nested/menu1/menu1-3/index.vue +5 -0
- package/template/src/views/nested/menu2/index.vue +5 -0
- package/template/src/views/pdf/content.js +58 -0
- package/template/src/views/pdf/download.vue +201 -0
- package/template/src/views/pdf/index.vue +13 -0
- package/template/src/views/permission/components/SwitchRoles.vue +32 -0
- package/template/src/views/permission/directive.vue +111 -0
- package/template/src/views/permission/page.vue +19 -0
- package/template/src/views/permission/role.vue +270 -0
- package/template/src/views/profile/components/Account.vue +38 -0
- package/template/src/views/profile/components/Activity.vue +185 -0
- package/template/src/views/profile/components/Timeline.vue +43 -0
- package/template/src/views/profile/components/UserCard.vue +134 -0
- package/template/src/views/profile/index.vue +68 -0
- package/template/src/views/qiniu/upload.vue +41 -0
- package/template/src/views/redirect/index.vue +12 -0
- package/template/src/views/tab/components/TabPane.vue +103 -0
- package/template/src/views/tab/index.vue +57 -0
- package/template/src/views/table/complex-table.vue +379 -0
- package/template/src/views/table/drag-table.vue +153 -0
- package/template/src/views/table/dynamic-table/components/FixedThead.vue +62 -0
- package/template/src/views/table/dynamic-table/components/UnfixedThead.vue +50 -0
- package/template/src/views/table/dynamic-table/index.vue +24 -0
- package/template/src/views/table/inline-edit-table.vue +149 -0
- package/template/src/views/theme/index.vue +120 -0
- package/template/src/views/zip/index.vue +77 -0
- package/template/tests/unit/.eslintrc.js +5 -0
- package/template/tests/unit/components/Hamburger.spec.js +18 -0
- package/template/tests/unit/components/SvgIcon.spec.js +22 -0
- package/template/tests/unit/utils/formatTime.spec.js +29 -0
- package/template/tests/unit/utils/param2Obj.spec.js +14 -0
- package/template/tests/unit/utils/parseTime.spec.js +37 -0
- package/template/tests/unit/utils/validate.spec.js +28 -0
- package/template/vue.config.js +124 -0
@@ -0,0 +1,74 @@
|
|
1
|
+
<template>
|
2
|
+
<div class="dashboard-editor-container">
|
3
|
+
<div class=" clearfix">
|
4
|
+
<pan-thumb :image="avatar" style="float: left">
|
5
|
+
Your roles:
|
6
|
+
<span v-for="item in roles" :key="item" class="pan-info-roles">{{ item }}</span>
|
7
|
+
</pan-thumb>
|
8
|
+
<github-corner style="position: absolute; top: 0px; border: 0; right: 0;" />
|
9
|
+
<div class="info-container">
|
10
|
+
<span class="display_name">{{ name }}</span>
|
11
|
+
<span style="font-size:20px;padding-top:20px;display:inline-block;">Editor's Dashboard</span>
|
12
|
+
</div>
|
13
|
+
</div>
|
14
|
+
<div>
|
15
|
+
<img :src="emptyGif" class="emptyGif">
|
16
|
+
</div>
|
17
|
+
</div>
|
18
|
+
</template>
|
19
|
+
|
20
|
+
<script>
|
21
|
+
import { mapGetters } from 'vuex'
|
22
|
+
import PanThumb from '@/components/PanThumb'
|
23
|
+
import GithubCorner from '@/components/GithubCorner'
|
24
|
+
|
25
|
+
export default {
|
26
|
+
name: 'DashboardEditor',
|
27
|
+
components: { PanThumb, GithubCorner },
|
28
|
+
data() {
|
29
|
+
return {
|
30
|
+
emptyGif: 'https://wpimg.wallstcn.com/0e03b7da-db9e-4819-ba10-9016ddfdaed3'
|
31
|
+
}
|
32
|
+
},
|
33
|
+
computed: {
|
34
|
+
...mapGetters([
|
35
|
+
'name',
|
36
|
+
'avatar',
|
37
|
+
'roles'
|
38
|
+
])
|
39
|
+
}
|
40
|
+
}
|
41
|
+
</script>
|
42
|
+
|
43
|
+
<style lang="scss" scoped>
|
44
|
+
.emptyGif {
|
45
|
+
display: block;
|
46
|
+
width: 45%;
|
47
|
+
margin: 0 auto;
|
48
|
+
}
|
49
|
+
|
50
|
+
.dashboard-editor-container {
|
51
|
+
background-color: #e3e3e3;
|
52
|
+
min-height: 100vh;
|
53
|
+
padding: 50px 60px 0px;
|
54
|
+
.pan-info-roles {
|
55
|
+
font-size: 12px;
|
56
|
+
font-weight: 700;
|
57
|
+
color: #333;
|
58
|
+
display: block;
|
59
|
+
}
|
60
|
+
.info-container {
|
61
|
+
position: relative;
|
62
|
+
margin-left: 190px;
|
63
|
+
height: 150px;
|
64
|
+
line-height: 200px;
|
65
|
+
.display_name {
|
66
|
+
font-size: 48px;
|
67
|
+
line-height: 48px;
|
68
|
+
color: #212121;
|
69
|
+
position: absolute;
|
70
|
+
top: 25px;
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
74
|
+
</style>
|
@@ -0,0 +1,31 @@
|
|
1
|
+
<template>
|
2
|
+
<div class="dashboard-container">
|
3
|
+
<component :is="currentRole" />
|
4
|
+
</div>
|
5
|
+
</template>
|
6
|
+
|
7
|
+
<script>
|
8
|
+
import { mapGetters } from 'vuex'
|
9
|
+
import adminDashboard from './admin'
|
10
|
+
import editorDashboard from './editor'
|
11
|
+
|
12
|
+
export default {
|
13
|
+
name: 'Dashboard',
|
14
|
+
components: { adminDashboard, editorDashboard },
|
15
|
+
data() {
|
16
|
+
return {
|
17
|
+
currentRole: 'adminDashboard'
|
18
|
+
}
|
19
|
+
},
|
20
|
+
computed: {
|
21
|
+
...mapGetters([
|
22
|
+
'roles'
|
23
|
+
])
|
24
|
+
},
|
25
|
+
created() {
|
26
|
+
if (!this.roles.includes('admin')) {
|
27
|
+
this.currentRole = 'editorDashboard'
|
28
|
+
}
|
29
|
+
}
|
30
|
+
}
|
31
|
+
</script>
|
@@ -0,0 +1,57 @@
|
|
1
|
+
<template>
|
2
|
+
<div class="app-container documentation-container">
|
3
|
+
<a class="document-btn" target="_blank" href="https://store.akveo.com/products/vue-java-admin-dashboard-spring?utm_campaign=akveo_store-Vue-Vue_demo%2Fgithub&utm_source=vue_admin&utm_medium=referral&utm_content=demo_English_button">Java backend integration</a>
|
4
|
+
<a class="document-btn" target="_blank" href="https://panjiachen.github.io/vue-element-admin-site/">Documentation</a>
|
5
|
+
<a class="document-btn" target="_blank" href="https://github.com/PanJiaChen/vue-element-admin/">Github Repository</a>
|
6
|
+
<a class="document-btn" target="_blank" href="https://panjiachen.gitee.io/vue-element-admin-site/zh/">国内文档</a>
|
7
|
+
<dropdown-menu class="document-btn" :items="articleList" title="系列文章" />
|
8
|
+
<a class="document-btn" target="_blank" href="https://panjiachen.github.io/vue-element-admin-site/zh/job/">内推招聘</a>
|
9
|
+
</div>
|
10
|
+
</template>
|
11
|
+
|
12
|
+
<script>
|
13
|
+
import DropdownMenu from '@/components/Share/DropdownMenu'
|
14
|
+
|
15
|
+
export default {
|
16
|
+
name: 'Documentation',
|
17
|
+
components: { DropdownMenu },
|
18
|
+
data() {
|
19
|
+
return {
|
20
|
+
articleList: [
|
21
|
+
{ title: '基础篇', href: 'https://juejin.im/post/59097cd7a22b9d0065fb61d2' },
|
22
|
+
{ title: '登录权限篇', href: 'https://juejin.im/post/591aa14f570c35006961acac' },
|
23
|
+
{ title: '实战篇', href: 'https://juejin.im/post/593121aa0ce4630057f70d35' },
|
24
|
+
{ title: 'vue-admin-template 篇', href: 'https://juejin.im/post/595b4d776fb9a06bbe7dba56' },
|
25
|
+
{ title: 'v4.0 篇', href: 'https://juejin.im/post/5c92ff94f265da6128275a85' },
|
26
|
+
{ title: '自行封装 component', href: 'https://segmentfault.com/a/1190000009090836' },
|
27
|
+
{ title: '优雅的使用 icon', href: 'https://juejin.im/post/59bb864b5188257e7a427c09' },
|
28
|
+
{ title: 'webpack4(上)', href: 'https://juejin.im/post/59bb864b5188257e7a427c09' },
|
29
|
+
{ title: 'webpack4(下)', href: 'https://juejin.im/post/5b5d6d6f6fb9a04fea58aabc' }
|
30
|
+
]
|
31
|
+
}
|
32
|
+
}
|
33
|
+
}
|
34
|
+
</script>
|
35
|
+
|
36
|
+
<style lang="scss" scoped>
|
37
|
+
.documentation-container {
|
38
|
+
margin: 50px;
|
39
|
+
display: flex;
|
40
|
+
flex-wrap: wrap;
|
41
|
+
justify-content: flex-start;
|
42
|
+
|
43
|
+
.document-btn {
|
44
|
+
flex-shrink: 0;
|
45
|
+
display: block;
|
46
|
+
cursor: pointer;
|
47
|
+
background: black;
|
48
|
+
color: white;
|
49
|
+
height: 60px;
|
50
|
+
padding: 0 16px;
|
51
|
+
margin: 16px;
|
52
|
+
line-height: 60px;
|
53
|
+
font-size: 20px;
|
54
|
+
text-align: center;
|
55
|
+
}
|
56
|
+
}
|
57
|
+
</style>
|
@@ -0,0 +1,32 @@
|
|
1
|
+
<template>
|
2
|
+
<div class="errPage-container">
|
3
|
+
<ErrorA />
|
4
|
+
<ErrorB />
|
5
|
+
<h3>Please click the bug icon in the upper right corner</h3>
|
6
|
+
<aside>
|
7
|
+
Now the management system are basically the form of the spa, it enhances the user experience, but it also increases the possibility of page problems, a small negligence may lead to the entire page deadlock. Fortunately Vue provides a way to catch handling exceptions, where you can handle errors or report exceptions.
|
8
|
+
<a target="_blank" class="link-type" href="https://panjiachen.github.io/vue-element-admin-site/guide/advanced/error.html">
|
9
|
+
Document introduction
|
10
|
+
</a>
|
11
|
+
</aside>
|
12
|
+
<a href="#">
|
13
|
+
<img src="https://wpimg.wallstcn.com/360e4842-4db5-42d0-b078-f9a84a825546.gif">
|
14
|
+
</a>
|
15
|
+
</div>
|
16
|
+
</template>
|
17
|
+
|
18
|
+
<script>
|
19
|
+
import ErrorA from './components/ErrorTestA'
|
20
|
+
import ErrorB from './components/ErrorTestB'
|
21
|
+
|
22
|
+
export default {
|
23
|
+
name: 'ErrorLog',
|
24
|
+
components: { ErrorA, ErrorB }
|
25
|
+
}
|
26
|
+
</script>
|
27
|
+
|
28
|
+
<style scoped>
|
29
|
+
.errPage-container {
|
30
|
+
padding: 30px;
|
31
|
+
}
|
32
|
+
</style>
|
@@ -0,0 +1,99 @@
|
|
1
|
+
<template>
|
2
|
+
<div class="errPage-container">
|
3
|
+
<el-button icon="el-icon-arrow-left" class="pan-back-btn" @click="back">
|
4
|
+
返回
|
5
|
+
</el-button>
|
6
|
+
<el-row>
|
7
|
+
<el-col :span="12">
|
8
|
+
<h1 class="text-jumbo text-ginormous">
|
9
|
+
Oops!
|
10
|
+
</h1>
|
11
|
+
gif来源<a href="https://zh.airbnb.com/" target="_blank">airbnb</a> 页面
|
12
|
+
<h2>你没有权限去该页面</h2>
|
13
|
+
<h6>如有不满请联系你领导</h6>
|
14
|
+
<ul class="list-unstyled">
|
15
|
+
<li>或者你可以去:</li>
|
16
|
+
<li class="link-type">
|
17
|
+
<router-link to="/dashboard">
|
18
|
+
回首页
|
19
|
+
</router-link>
|
20
|
+
</li>
|
21
|
+
<li class="link-type">
|
22
|
+
<a href="https://www.taobao.com/">随便看看</a>
|
23
|
+
</li>
|
24
|
+
<li><a href="#" @click.prevent="dialogVisible=true">点我看图</a></li>
|
25
|
+
</ul>
|
26
|
+
</el-col>
|
27
|
+
<el-col :span="12">
|
28
|
+
<img :src="errGif" width="313" height="428" alt="Girl has dropped her ice cream.">
|
29
|
+
</el-col>
|
30
|
+
</el-row>
|
31
|
+
<el-dialog :visible.sync="dialogVisible" title="随便看">
|
32
|
+
<img :src="ewizardClap" class="pan-img">
|
33
|
+
</el-dialog>
|
34
|
+
</div>
|
35
|
+
</template>
|
36
|
+
|
37
|
+
<script>
|
38
|
+
import errGif from '@/assets/401_images/401.gif'
|
39
|
+
|
40
|
+
export default {
|
41
|
+
name: 'Page401',
|
42
|
+
data() {
|
43
|
+
return {
|
44
|
+
errGif: errGif + '?' + +new Date(),
|
45
|
+
ewizardClap: 'https://wpimg.wallstcn.com/007ef517-bafd-4066-aae4-6883632d9646',
|
46
|
+
dialogVisible: false
|
47
|
+
}
|
48
|
+
},
|
49
|
+
methods: {
|
50
|
+
back() {
|
51
|
+
if (this.$route.query.noGoBack) {
|
52
|
+
this.$router.push({ path: '/dashboard' })
|
53
|
+
} else {
|
54
|
+
this.$router.go(-1)
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
}
|
59
|
+
</script>
|
60
|
+
|
61
|
+
<style lang="scss" scoped>
|
62
|
+
.errPage-container {
|
63
|
+
width: 800px;
|
64
|
+
max-width: 100%;
|
65
|
+
margin: 100px auto;
|
66
|
+
.pan-back-btn {
|
67
|
+
background: #008489;
|
68
|
+
color: #fff;
|
69
|
+
border: none!important;
|
70
|
+
}
|
71
|
+
.pan-gif {
|
72
|
+
margin: 0 auto;
|
73
|
+
display: block;
|
74
|
+
}
|
75
|
+
.pan-img {
|
76
|
+
display: block;
|
77
|
+
margin: 0 auto;
|
78
|
+
width: 100%;
|
79
|
+
}
|
80
|
+
.text-jumbo {
|
81
|
+
font-size: 60px;
|
82
|
+
font-weight: 700;
|
83
|
+
color: #484848;
|
84
|
+
}
|
85
|
+
.list-unstyled {
|
86
|
+
font-size: 14px;
|
87
|
+
li {
|
88
|
+
padding-bottom: 5px;
|
89
|
+
}
|
90
|
+
a {
|
91
|
+
color: #008489;
|
92
|
+
text-decoration: none;
|
93
|
+
&:hover {
|
94
|
+
text-decoration: underline;
|
95
|
+
}
|
96
|
+
}
|
97
|
+
}
|
98
|
+
}
|
99
|
+
</style>
|
@@ -0,0 +1,228 @@
|
|
1
|
+
<template>
|
2
|
+
<div class="wscn-http404-container">
|
3
|
+
<div class="wscn-http404">
|
4
|
+
<div class="pic-404">
|
5
|
+
<img class="pic-404__parent" src="@/assets/404_images/404.png" alt="404">
|
6
|
+
<img class="pic-404__child left" src="@/assets/404_images/404_cloud.png" alt="404">
|
7
|
+
<img class="pic-404__child mid" src="@/assets/404_images/404_cloud.png" alt="404">
|
8
|
+
<img class="pic-404__child right" src="@/assets/404_images/404_cloud.png" alt="404">
|
9
|
+
</div>
|
10
|
+
<div class="bullshit">
|
11
|
+
<div class="bullshit__oops">OOPS!</div>
|
12
|
+
<div class="bullshit__info">All rights reserved
|
13
|
+
<a style="color:#20a0ff" href="https://wallstreetcn.com" target="_blank">wallstreetcn</a>
|
14
|
+
</div>
|
15
|
+
<div class="bullshit__headline">{{ message }}</div>
|
16
|
+
<div class="bullshit__info">Please check that the URL you entered is correct, or click the button below to return to the homepage.</div>
|
17
|
+
<a href="" class="bullshit__return-home">Back to home</a>
|
18
|
+
</div>
|
19
|
+
</div>
|
20
|
+
</div>
|
21
|
+
</template>
|
22
|
+
|
23
|
+
<script>
|
24
|
+
|
25
|
+
export default {
|
26
|
+
name: 'Page404',
|
27
|
+
computed: {
|
28
|
+
message() {
|
29
|
+
return 'The webmaster said that you can not enter this page...'
|
30
|
+
}
|
31
|
+
}
|
32
|
+
}
|
33
|
+
</script>
|
34
|
+
|
35
|
+
<style lang="scss" scoped>
|
36
|
+
.wscn-http404-container{
|
37
|
+
transform: translate(-50%,-50%);
|
38
|
+
position: absolute;
|
39
|
+
top: 40%;
|
40
|
+
left: 50%;
|
41
|
+
}
|
42
|
+
.wscn-http404 {
|
43
|
+
position: relative;
|
44
|
+
width: 1200px;
|
45
|
+
padding: 0 50px;
|
46
|
+
overflow: hidden;
|
47
|
+
.pic-404 {
|
48
|
+
position: relative;
|
49
|
+
float: left;
|
50
|
+
width: 600px;
|
51
|
+
overflow: hidden;
|
52
|
+
&__parent {
|
53
|
+
width: 100%;
|
54
|
+
}
|
55
|
+
&__child {
|
56
|
+
position: absolute;
|
57
|
+
&.left {
|
58
|
+
width: 80px;
|
59
|
+
top: 17px;
|
60
|
+
left: 220px;
|
61
|
+
opacity: 0;
|
62
|
+
animation-name: cloudLeft;
|
63
|
+
animation-duration: 2s;
|
64
|
+
animation-timing-function: linear;
|
65
|
+
animation-fill-mode: forwards;
|
66
|
+
animation-delay: 1s;
|
67
|
+
}
|
68
|
+
&.mid {
|
69
|
+
width: 46px;
|
70
|
+
top: 10px;
|
71
|
+
left: 420px;
|
72
|
+
opacity: 0;
|
73
|
+
animation-name: cloudMid;
|
74
|
+
animation-duration: 2s;
|
75
|
+
animation-timing-function: linear;
|
76
|
+
animation-fill-mode: forwards;
|
77
|
+
animation-delay: 1.2s;
|
78
|
+
}
|
79
|
+
&.right {
|
80
|
+
width: 62px;
|
81
|
+
top: 100px;
|
82
|
+
left: 500px;
|
83
|
+
opacity: 0;
|
84
|
+
animation-name: cloudRight;
|
85
|
+
animation-duration: 2s;
|
86
|
+
animation-timing-function: linear;
|
87
|
+
animation-fill-mode: forwards;
|
88
|
+
animation-delay: 1s;
|
89
|
+
}
|
90
|
+
@keyframes cloudLeft {
|
91
|
+
0% {
|
92
|
+
top: 17px;
|
93
|
+
left: 220px;
|
94
|
+
opacity: 0;
|
95
|
+
}
|
96
|
+
20% {
|
97
|
+
top: 33px;
|
98
|
+
left: 188px;
|
99
|
+
opacity: 1;
|
100
|
+
}
|
101
|
+
80% {
|
102
|
+
top: 81px;
|
103
|
+
left: 92px;
|
104
|
+
opacity: 1;
|
105
|
+
}
|
106
|
+
100% {
|
107
|
+
top: 97px;
|
108
|
+
left: 60px;
|
109
|
+
opacity: 0;
|
110
|
+
}
|
111
|
+
}
|
112
|
+
@keyframes cloudMid {
|
113
|
+
0% {
|
114
|
+
top: 10px;
|
115
|
+
left: 420px;
|
116
|
+
opacity: 0;
|
117
|
+
}
|
118
|
+
20% {
|
119
|
+
top: 40px;
|
120
|
+
left: 360px;
|
121
|
+
opacity: 1;
|
122
|
+
}
|
123
|
+
70% {
|
124
|
+
top: 130px;
|
125
|
+
left: 180px;
|
126
|
+
opacity: 1;
|
127
|
+
}
|
128
|
+
100% {
|
129
|
+
top: 160px;
|
130
|
+
left: 120px;
|
131
|
+
opacity: 0;
|
132
|
+
}
|
133
|
+
}
|
134
|
+
@keyframes cloudRight {
|
135
|
+
0% {
|
136
|
+
top: 100px;
|
137
|
+
left: 500px;
|
138
|
+
opacity: 0;
|
139
|
+
}
|
140
|
+
20% {
|
141
|
+
top: 120px;
|
142
|
+
left: 460px;
|
143
|
+
opacity: 1;
|
144
|
+
}
|
145
|
+
80% {
|
146
|
+
top: 180px;
|
147
|
+
left: 340px;
|
148
|
+
opacity: 1;
|
149
|
+
}
|
150
|
+
100% {
|
151
|
+
top: 200px;
|
152
|
+
left: 300px;
|
153
|
+
opacity: 0;
|
154
|
+
}
|
155
|
+
}
|
156
|
+
}
|
157
|
+
}
|
158
|
+
.bullshit {
|
159
|
+
position: relative;
|
160
|
+
float: left;
|
161
|
+
width: 300px;
|
162
|
+
padding: 30px 0;
|
163
|
+
overflow: hidden;
|
164
|
+
&__oops {
|
165
|
+
font-size: 32px;
|
166
|
+
font-weight: bold;
|
167
|
+
line-height: 40px;
|
168
|
+
color: #1482f0;
|
169
|
+
opacity: 0;
|
170
|
+
margin-bottom: 20px;
|
171
|
+
animation-name: slideUp;
|
172
|
+
animation-duration: 0.5s;
|
173
|
+
animation-fill-mode: forwards;
|
174
|
+
}
|
175
|
+
&__headline {
|
176
|
+
font-size: 20px;
|
177
|
+
line-height: 24px;
|
178
|
+
color: #222;
|
179
|
+
font-weight: bold;
|
180
|
+
opacity: 0;
|
181
|
+
margin-bottom: 10px;
|
182
|
+
animation-name: slideUp;
|
183
|
+
animation-duration: 0.5s;
|
184
|
+
animation-delay: 0.1s;
|
185
|
+
animation-fill-mode: forwards;
|
186
|
+
}
|
187
|
+
&__info {
|
188
|
+
font-size: 13px;
|
189
|
+
line-height: 21px;
|
190
|
+
color: grey;
|
191
|
+
opacity: 0;
|
192
|
+
margin-bottom: 30px;
|
193
|
+
animation-name: slideUp;
|
194
|
+
animation-duration: 0.5s;
|
195
|
+
animation-delay: 0.2s;
|
196
|
+
animation-fill-mode: forwards;
|
197
|
+
}
|
198
|
+
&__return-home {
|
199
|
+
display: block;
|
200
|
+
float: left;
|
201
|
+
width: 110px;
|
202
|
+
height: 36px;
|
203
|
+
background: #1482f0;
|
204
|
+
border-radius: 100px;
|
205
|
+
text-align: center;
|
206
|
+
color: #ffffff;
|
207
|
+
opacity: 0;
|
208
|
+
font-size: 14px;
|
209
|
+
line-height: 36px;
|
210
|
+
cursor: pointer;
|
211
|
+
animation-name: slideUp;
|
212
|
+
animation-duration: 0.5s;
|
213
|
+
animation-delay: 0.3s;
|
214
|
+
animation-fill-mode: forwards;
|
215
|
+
}
|
216
|
+
@keyframes slideUp {
|
217
|
+
0% {
|
218
|
+
transform: translateY(60px);
|
219
|
+
opacity: 0;
|
220
|
+
}
|
221
|
+
100% {
|
222
|
+
transform: translateY(0);
|
223
|
+
opacity: 1;
|
224
|
+
}
|
225
|
+
}
|
226
|
+
}
|
227
|
+
}
|
228
|
+
</style>
|