From c956a5e68f2c103409b58c77885e52e8adfa63e8 Mon Sep 17 00:00:00 2001 From: TastSong Date: Tue, 19 Sep 2023 14:49:50 +0800 Subject: [PATCH] =?UTF-8?q?=C3=A4=C2=BFbuild=20tool?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CrazyCarBackground/.env.production | 2 +- CrazyCarBackground/crazy_car_background/index.html | 2 +- ...nk-78c78430.dd5d68b0.css => chunk-106c4c98.ecb1015f.css} | 2 +- .../static/css/chunk-84a47a64.6e3591bf.css | 1 + ...nk-18180937.ecf236a0.css => chunk-b356edba.f37c0de6.css} | 2 +- .../crazy_car_background/static/js/app.ac050d4d.js | 1 + .../crazy_car_background/static/js/app.bc61137e.js | 1 - .../static/js/chunk-106c4c98.ba77252c.js | 1 + .../static/js/chunk-18180937.b531a5df.js | 1 - .../static/js/chunk-78c78430.b029e8c3.js | 1 - .../static/js/chunk-84a47a64.28802994.js | 1 + .../static/js/chunk-b356edba.2244dcc9.js | 1 + ...hunk-dbac9424.094f7fc1.js => chunk-dbac9424.5490d716.js} | 2 +- CrazyCarBackground/{publish-mac.sh => publish.sh} | 6 +++--- 14 files changed, 13 insertions(+), 11 deletions(-) rename CrazyCarBackground/crazy_car_background/static/css/{chunk-78c78430.dd5d68b0.css => chunk-106c4c98.ecb1015f.css} (93%) create mode 100644 CrazyCarBackground/crazy_car_background/static/css/chunk-84a47a64.6e3591bf.css rename CrazyCarBackground/crazy_car_background/static/css/{chunk-18180937.ecf236a0.css => chunk-b356edba.f37c0de6.css} (64%) create mode 100644 CrazyCarBackground/crazy_car_background/static/js/app.ac050d4d.js delete mode 100644 CrazyCarBackground/crazy_car_background/static/js/app.bc61137e.js create mode 100644 CrazyCarBackground/crazy_car_background/static/js/chunk-106c4c98.ba77252c.js delete mode 100644 CrazyCarBackground/crazy_car_background/static/js/chunk-18180937.b531a5df.js delete mode 100644 CrazyCarBackground/crazy_car_background/static/js/chunk-78c78430.b029e8c3.js create mode 100644 CrazyCarBackground/crazy_car_background/static/js/chunk-84a47a64.28802994.js create mode 100644 CrazyCarBackground/crazy_car_background/static/js/chunk-b356edba.2244dcc9.js rename CrazyCarBackground/crazy_car_background/static/js/{chunk-dbac9424.094f7fc1.js => chunk-dbac9424.5490d716.js} (99%) rename CrazyCarBackground/{publish-mac.sh => publish.sh} (60%) diff --git a/CrazyCarBackground/.env.production b/CrazyCarBackground/.env.production index c70888512..6255bfa27 100644 --- a/CrazyCarBackground/.env.production +++ b/CrazyCarBackground/.env.production @@ -2,5 +2,5 @@ ENV = 'production' # base api -VUE_APP_BASE_API = 'http://tastsong.top/' +VUE_APP_BASE_API = 'http://tastsong.xyz/' diff --git a/CrazyCarBackground/crazy_car_background/index.html b/CrazyCarBackground/crazy_car_background/index.html index 0d56f3fed..261f12b1f 100644 --- a/CrazyCarBackground/crazy_car_background/index.html +++ b/CrazyCarBackground/crazy_car_background/index.html @@ -1 +1 @@ -Crazy Car Background
\ No newline at end of file +Crazy Car Background
\ No newline at end of file diff --git a/CrazyCarBackground/crazy_car_background/static/css/chunk-78c78430.dd5d68b0.css b/CrazyCarBackground/crazy_car_background/static/css/chunk-106c4c98.ecb1015f.css similarity index 93% rename from CrazyCarBackground/crazy_car_background/static/css/chunk-78c78430.dd5d68b0.css rename to CrazyCarBackground/crazy_car_background/static/css/chunk-106c4c98.ecb1015f.css index 1447c0744..9e5115063 100644 --- a/CrazyCarBackground/crazy_car_background/static/css/chunk-78c78430.dd5d68b0.css +++ b/CrazyCarBackground/crazy_car_background/static/css/chunk-106c4c98.ecb1015f.css @@ -1 +1 @@ -.wscn-http404-container[data-v-c095f994]{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);position:absolute;top:40%;left:50%}.wscn-http404[data-v-c095f994]{position:relative;width:1200px;padding:0 50px;overflow:hidden}.wscn-http404 .pic-404[data-v-c095f994]{position:relative;float:left;width:600px;overflow:hidden}.wscn-http404 .pic-404__parent[data-v-c095f994]{width:100%}.wscn-http404 .pic-404__child[data-v-c095f994]{position:absolute}.wscn-http404 .pic-404__child.left[data-v-c095f994]{width:80px;top:17px;left:220px;opacity:0;-webkit-animation-name:cloudLeft-data-v-c095f994;animation-name:cloudLeft-data-v-c095f994;-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-delay:1s;animation-delay:1s}.wscn-http404 .pic-404__child.mid[data-v-c095f994]{width:46px;top:10px;left:420px;opacity:0;-webkit-animation-name:cloudMid-data-v-c095f994;animation-name:cloudMid-data-v-c095f994;-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-delay:1.2s;animation-delay:1.2s}.wscn-http404 .pic-404__child.right[data-v-c095f994]{width:62px;top:100px;left:500px;opacity:0;-webkit-animation-name:cloudRight-data-v-c095f994;animation-name:cloudRight-data-v-c095f994;-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-delay:1s;animation-delay:1s}@-webkit-keyframes cloudLeft-data-v-c095f994{0%{top:17px;left:220px;opacity:0}20%{top:33px;left:188px;opacity:1}80%{top:81px;left:92px;opacity:1}to{top:97px;left:60px;opacity:0}}@keyframes cloudLeft-data-v-c095f994{0%{top:17px;left:220px;opacity:0}20%{top:33px;left:188px;opacity:1}80%{top:81px;left:92px;opacity:1}to{top:97px;left:60px;opacity:0}}@-webkit-keyframes cloudMid-data-v-c095f994{0%{top:10px;left:420px;opacity:0}20%{top:40px;left:360px;opacity:1}70%{top:130px;left:180px;opacity:1}to{top:160px;left:120px;opacity:0}}@keyframes cloudMid-data-v-c095f994{0%{top:10px;left:420px;opacity:0}20%{top:40px;left:360px;opacity:1}70%{top:130px;left:180px;opacity:1}to{top:160px;left:120px;opacity:0}}@-webkit-keyframes cloudRight-data-v-c095f994{0%{top:100px;left:500px;opacity:0}20%{top:120px;left:460px;opacity:1}80%{top:180px;left:340px;opacity:1}to{top:200px;left:300px;opacity:0}}@keyframes cloudRight-data-v-c095f994{0%{top:100px;left:500px;opacity:0}20%{top:120px;left:460px;opacity:1}80%{top:180px;left:340px;opacity:1}to{top:200px;left:300px;opacity:0}}.wscn-http404 .bullshit[data-v-c095f994]{position:relative;float:left;width:300px;padding:30px 0;overflow:hidden}.wscn-http404 .bullshit__oops[data-v-c095f994]{font-size:32px;line-height:40px;color:#1482f0;margin-bottom:20px;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.wscn-http404 .bullshit__headline[data-v-c095f994],.wscn-http404 .bullshit__oops[data-v-c095f994]{font-weight:700;opacity:0;-webkit-animation-name:slideUp-data-v-c095f994;animation-name:slideUp-data-v-c095f994;-webkit-animation-duration:.5s;animation-duration:.5s}.wscn-http404 .bullshit__headline[data-v-c095f994]{font-size:20px;line-height:24px;color:#222;margin-bottom:10px;-webkit-animation-delay:.1s;animation-delay:.1s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.wscn-http404 .bullshit__info[data-v-c095f994]{font-size:13px;line-height:21px;color:grey;margin-bottom:30px;-webkit-animation-delay:.2s;animation-delay:.2s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.wscn-http404 .bullshit__info[data-v-c095f994],.wscn-http404 .bullshit__return-home[data-v-c095f994]{opacity:0;-webkit-animation-name:slideUp-data-v-c095f994;animation-name:slideUp-data-v-c095f994;-webkit-animation-duration:.5s;animation-duration:.5s}.wscn-http404 .bullshit__return-home[data-v-c095f994]{display:block;float:left;width:110px;height:36px;background:#1482f0;border-radius:100px;text-align:center;color:#fff;font-size:14px;line-height:36px;cursor:pointer;-webkit-animation-delay:.3s;animation-delay:.3s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@-webkit-keyframes slideUp-data-v-c095f994{0%{-webkit-transform:translateY(60px);transform:translateY(60px);opacity:0}to{-webkit-transform:translateY(0);transform:translateY(0);opacity:1}}@keyframes slideUp-data-v-c095f994{0%{-webkit-transform:translateY(60px);transform:translateY(60px);opacity:0}to{-webkit-transform:translateY(0);transform:translateY(0);opacity:1}}.panel-group[data-v-e7433d3c]{margin-top:18px}.panel-group .card-panel-col[data-v-e7433d3c]{margin-bottom:32px}.panel-group .card-panel[data-v-e7433d3c]{height:108px;cursor:pointer;font-size:12px;position:relative;overflow:hidden;color:#666;background:#fff;-webkit-box-shadow:4px 4px 40px rgba(0,0,0,.05);box-shadow:4px 4px 40px rgba(0,0,0,.05);border-color:rgba(0,0,0,.05)}.panel-group .card-panel:hover .card-panel-icon-wrapper[data-v-e7433d3c]{color:#fff}.panel-group .card-panel:hover .icon-people[data-v-e7433d3c]{background:#40c9c6}.panel-group .card-panel:hover .icon-message[data-v-e7433d3c]{background:#36a3f7}.panel-group .card-panel:hover .icon-money[data-v-e7433d3c]{background:#f4516c}.panel-group .card-panel:hover .icon-shopping[data-v-e7433d3c]{background:#34bfa3}.panel-group .card-panel .icon-people[data-v-e7433d3c]{color:#40c9c6}.panel-group .card-panel .icon-message[data-v-e7433d3c]{color:#36a3f7}.panel-group .card-panel .icon-money[data-v-e7433d3c]{color:#f4516c}.panel-group .card-panel .icon-shopping[data-v-e7433d3c]{color:#34bfa3}.panel-group .card-panel .card-panel-icon-wrapper[data-v-e7433d3c]{float:left;margin:14px 0 0 14px;padding:16px;-webkit-transition:all .38s ease-out;transition:all .38s ease-out;border-radius:6px}.panel-group .card-panel .card-panel-icon[data-v-e7433d3c]{float:left;font-size:48px}.panel-group .card-panel .card-panel-description[data-v-e7433d3c]{float:right;font-weight:700;margin:26px;margin-left:0}.panel-group .card-panel .card-panel-description .card-panel-text[data-v-e7433d3c]{line-height:18px;color:rgba(0,0,0,.45);font-size:16px;margin-bottom:12px}.panel-group .card-panel .card-panel-description .card-panel-num[data-v-e7433d3c]{font-size:20px}@media(max-width:550px){.card-panel-description[data-v-e7433d3c]{display:none}.card-panel-icon-wrapper[data-v-e7433d3c]{float:none!important;width:100%;height:100%;margin:0!important}.card-panel-icon-wrapper .svg-icon[data-v-e7433d3c]{display:block;margin:14px auto!important;float:none!important}}.todoapp{font:14px Helvetica Neue,Helvetica,Arial,sans-serif;line-height:1.4em;color:#4d4d4d;min-width:230px;max-width:550px;margin:0 auto;font-weight:300;background:#fff;z-index:1;position:relative}.todoapp,.todoapp button{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.todoapp button{margin:0;padding:0;border:0;background:none;font-size:100%;vertical-align:baseline;font-family:inherit;font-weight:inherit;color:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none}.todoapp :focus{outline:0}.todoapp .hidden{display:none}.todoapp .todoapp{background:#fff;margin:130px 0 40px 0;position:relative;-webkit-box-shadow:0 2px 4px 0 rgba(0,0,0,.2),0 25px 50px 0 rgba(0,0,0,.1);box-shadow:0 2px 4px 0 rgba(0,0,0,.2),0 25px 50px 0 rgba(0,0,0,.1)}.todoapp .todoapp input::-webkit-input-placeholder{font-style:italic;font-weight:300;color:#e6e6e6}.todoapp .todoapp input::-moz-placeholder{font-style:italic;font-weight:300;color:#e6e6e6}.todoapp .todoapp input::input-placeholder{font-style:italic;font-weight:300;color:#e6e6e6}.todoapp .todoapp h1{position:absolute;top:-155px;width:100%;font-size:100px;font-weight:100;text-align:center;color:rgba(175,47,47,.15);-webkit-text-rendering:optimizeLegibility;-moz-text-rendering:optimizeLegibility;text-rendering:optimizeLegibility}.todoapp .edit,.todoapp .new-todo{position:relative;margin:0;width:100%;font-size:18px;font-family:inherit;font-weight:inherit;line-height:1.4em;border:0;color:inherit;padding:6px;border:1px solid #999;-webkit-box-shadow:inset 0 -1px 5px 0 rgba(0,0,0,.2);box-shadow:inset 0 -1px 5px 0 rgba(0,0,0,.2);-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.todoapp .new-todo{padding:10px 16px 16px 60px;border:none;background:rgba(0,0,0,.003);-webkit-box-shadow:inset 0 -2px 1px rgba(0,0,0,.03);box-shadow:inset 0 -2px 1px rgba(0,0,0,.03)}.todoapp .main{position:relative;z-index:2;border-top:1px solid #e6e6e6}.todoapp .toggle-all{text-align:center;border:none;opacity:0;position:absolute}.todoapp .toggle-all+label{width:60px;height:34px;font-size:0;position:absolute;top:-52px;left:-13px;-webkit-transform:rotate(90deg);transform:rotate(90deg)}.todoapp .toggle-all+label:before{content:"❯";font-size:22px;color:#e6e6e6;padding:10px 27px 10px 27px}.todoapp .toggle-all:checked+label:before{color:#737373}.todoapp .todo-list{margin:0;padding:0;list-style:none}.todoapp .todo-list li{position:relative;font-size:24px;border-bottom:1px solid #ededed}.todoapp .todo-list li:last-child{border-bottom:none}.todoapp .todo-list li.editing{border-bottom:none;padding:0}.todoapp .todo-list li.editing .edit{display:block;width:506px;padding:12px 16px;margin:0 0 0 43px}.todoapp .todo-list li.editing .view{display:none}.todoapp .todo-list li .toggle{text-align:center;width:40px;height:auto;position:absolute;top:0;bottom:0;margin:auto 0;border:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;opacity:0}.todoapp .todo-list li .toggle+label{background-image:url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2240%22%20height%3D%2240%22%20viewBox%3D%22-10%20-18%20100%20135%22%3E%3Ccircle%20cx%3D%2250%22%20cy%3D%2250%22%20r%3D%2250%22%20fill%3D%22none%22%20stroke%3D%22%23ededed%22%20stroke-width%3D%223%22/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:0;background-size:36px}.todoapp .todo-list li .toggle:checked+label{background-size:36px;background-image:url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2240%22%20height%3D%2240%22%20viewBox%3D%22-10%20-18%20100%20135%22%3E%3Ccircle%20cx%3D%2250%22%20cy%3D%2250%22%20r%3D%2250%22%20fill%3D%22none%22%20stroke%3D%22%23bddad5%22%20stroke-width%3D%223%22/%3E%3Cpath%20fill%3D%22%235dc2af%22%20d%3D%22M72%2025L42%2071%2027%2056l-4%204%2020%2020%2034-52z%22/%3E%3C/svg%3E")}.todoapp .todo-list li label{word-break:break-all;padding:15px 15px 15px 50px;display:block;line-height:1;font-size:14px;-webkit-transition:color .4s;transition:color .4s}.todoapp .todo-list li.completed label{color:#d9d9d9;text-decoration:line-through}.todoapp .todo-list li .destroy{display:none;position:absolute;top:0;right:10px;bottom:0;width:40px;height:40px;margin:auto 0;font-size:30px;color:#cc9a9a;-webkit-transition:color .2s ease-out;transition:color .2s ease-out;cursor:pointer}.todoapp .todo-list li .destroy:hover{color:#af5b5e}.todoapp .todo-list li .destroy:after{content:"×"}.todoapp .todo-list li:hover .destroy{display:block}.todoapp .todo-list li .edit{display:none}.todoapp .todo-list li.editing:last-child{margin-bottom:-1px}.todoapp .footer{color:#777;position:relative;padding:10px 15px;height:40px;text-align:center;border-top:1px solid #e6e6e6}.todoapp .footer:before{content:"";position:absolute;right:0;bottom:0;left:0;height:40px;overflow:hidden;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.2),0 8px 0 -3px #f6f6f6,0 9px 1px -3px rgba(0,0,0,.2),0 16px 0 -6px #f6f6f6,0 17px 2px -6px rgba(0,0,0,.2);box-shadow:0 1px 1px rgba(0,0,0,.2),0 8px 0 -3px #f6f6f6,0 9px 1px -3px rgba(0,0,0,.2),0 16px 0 -6px #f6f6f6,0 17px 2px -6px rgba(0,0,0,.2)}.todoapp .todo-count{float:left;text-align:left}.todoapp .todo-count strong{font-weight:300}.todoapp .filters{margin:0;padding:0;position:relative;z-index:1;list-style:none}.todoapp .filters li{display:inline}.todoapp .filters li a{color:inherit;font-size:12px;padding:3px 7px;text-decoration:none;border:1px solid transparent;border-radius:3px}.todoapp .filters li a:hover{border-color:rgba(175,47,47,.1)}.todoapp .filters li a.selected{border-color:rgba(175,47,47,.2)}.todoapp .clear-completed,.todoapp html .clear-completed:active{float:right;position:relative;line-height:20px;text-decoration:none;cursor:pointer}.todoapp .clear-completed:hover{text-decoration:underline}.todoapp .info{margin:65px auto 0;color:#bfbfbf;font-size:10px;text-shadow:0 1px 0 hsla(0,0%,100%,.5);text-align:center}.todoapp .info p{line-height:1}.todoapp .info a{color:inherit;text-decoration:none;font-weight:400}.todoapp .info a:hover{text-decoration:underline}@media screen and (-webkit-min-device-pixel-ratio:0){.todoapp .todo-list li .toggle,.todoapp .toggle-all{background:none}.todoapp .todo-list li .toggle{height:40px}}@media(max-width:430px){.todoapp .footer{height:50px}.todoapp .filters{bottom:10px}}.dashboard-editor-container[data-v-c9446d16]{padding:32px;background-color:#f0f2f5;position:relative}.dashboard-editor-container .github-corner[data-v-c9446d16]{position:absolute;top:0;border:0;right:0}.dashboard-editor-container .chart-wrapper[data-v-c9446d16]{background:#fff;padding:16px 16px 0;margin-bottom:32px}@media(max-width:1024px){.chart-wrapper[data-v-c9446d16]{padding:8px}}.line[data-v-32c0383a]{text-align:center}@supports(-webkit-mask:none) and (not (cater-color:#fff)){.login-container .el-input input{color:#fff}}.login-container .el-input{display:inline-block;height:47px;width:85%}.login-container .el-input input{background:transparent;border:0;border-radius:0;padding:12px 5px 12px 15px;color:#fff;height:47px;caret-color:#fff}.login-container .el-input input:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px #283443 inset!important;box-shadow:inset 0 0 0 1000px #283443!important;-webkit-text-fill-color:#fff!important}.login-container .el-form-item{border:1px solid hsla(0,0%,100%,.1);background:rgba(0,0,0,.1);border-radius:5px;color:#454545}.login-container[data-v-18bd9fc3]{min-height:100%;width:100%;background-color:#2d3a4b;overflow:hidden}.login-container .login-form[data-v-18bd9fc3]{position:relative;width:520px;max-width:100%;padding:160px 35px 0;margin:0 auto;overflow:hidden}.login-container .tips[data-v-18bd9fc3]{font-size:14px;color:#fff;margin-bottom:10px}.login-container .tips span[data-v-18bd9fc3]:first-of-type{margin-right:16px}.login-container .svg-container[data-v-18bd9fc3]{padding:6px 5px 6px 15px;color:#889aa4;vertical-align:middle;width:30px;display:inline-block}.login-container .title-container[data-v-18bd9fc3]{position:relative}.login-container .title-container .title[data-v-18bd9fc3]{font-size:26px;color:#eee;margin:0 auto 40px auto;text-align:center;font-weight:700}.login-container .show-pwd[data-v-18bd9fc3]{position:absolute;right:10px;top:7px;font-size:16px;color:#889aa4;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.app-container .roles-table[data-v-012659d4]{margin-top:30px}.app-container .permission-tree[data-v-012659d4]{margin-bottom:30px} \ No newline at end of file +.wscn-http404-container[data-v-c095f994]{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);position:absolute;top:40%;left:50%}.wscn-http404[data-v-c095f994]{position:relative;width:1200px;padding:0 50px;overflow:hidden}.wscn-http404 .pic-404[data-v-c095f994]{position:relative;float:left;width:600px;overflow:hidden}.wscn-http404 .pic-404__parent[data-v-c095f994]{width:100%}.wscn-http404 .pic-404__child[data-v-c095f994]{position:absolute}.wscn-http404 .pic-404__child.left[data-v-c095f994]{width:80px;top:17px;left:220px;opacity:0;-webkit-animation-name:cloudLeft-data-v-c095f994;animation-name:cloudLeft-data-v-c095f994;-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-delay:1s;animation-delay:1s}.wscn-http404 .pic-404__child.mid[data-v-c095f994]{width:46px;top:10px;left:420px;opacity:0;-webkit-animation-name:cloudMid-data-v-c095f994;animation-name:cloudMid-data-v-c095f994;-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-delay:1.2s;animation-delay:1.2s}.wscn-http404 .pic-404__child.right[data-v-c095f994]{width:62px;top:100px;left:500px;opacity:0;-webkit-animation-name:cloudRight-data-v-c095f994;animation-name:cloudRight-data-v-c095f994;-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-delay:1s;animation-delay:1s}@-webkit-keyframes cloudLeft-data-v-c095f994{0%{top:17px;left:220px;opacity:0}20%{top:33px;left:188px;opacity:1}80%{top:81px;left:92px;opacity:1}to{top:97px;left:60px;opacity:0}}@keyframes cloudLeft-data-v-c095f994{0%{top:17px;left:220px;opacity:0}20%{top:33px;left:188px;opacity:1}80%{top:81px;left:92px;opacity:1}to{top:97px;left:60px;opacity:0}}@-webkit-keyframes cloudMid-data-v-c095f994{0%{top:10px;left:420px;opacity:0}20%{top:40px;left:360px;opacity:1}70%{top:130px;left:180px;opacity:1}to{top:160px;left:120px;opacity:0}}@keyframes cloudMid-data-v-c095f994{0%{top:10px;left:420px;opacity:0}20%{top:40px;left:360px;opacity:1}70%{top:130px;left:180px;opacity:1}to{top:160px;left:120px;opacity:0}}@-webkit-keyframes cloudRight-data-v-c095f994{0%{top:100px;left:500px;opacity:0}20%{top:120px;left:460px;opacity:1}80%{top:180px;left:340px;opacity:1}to{top:200px;left:300px;opacity:0}}@keyframes cloudRight-data-v-c095f994{0%{top:100px;left:500px;opacity:0}20%{top:120px;left:460px;opacity:1}80%{top:180px;left:340px;opacity:1}to{top:200px;left:300px;opacity:0}}.wscn-http404 .bullshit[data-v-c095f994]{position:relative;float:left;width:300px;padding:30px 0;overflow:hidden}.wscn-http404 .bullshit__oops[data-v-c095f994]{font-size:32px;line-height:40px;color:#1482f0;margin-bottom:20px;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.wscn-http404 .bullshit__headline[data-v-c095f994],.wscn-http404 .bullshit__oops[data-v-c095f994]{font-weight:700;opacity:0;-webkit-animation-name:slideUp-data-v-c095f994;animation-name:slideUp-data-v-c095f994;-webkit-animation-duration:.5s;animation-duration:.5s}.wscn-http404 .bullshit__headline[data-v-c095f994]{font-size:20px;line-height:24px;color:#222;margin-bottom:10px;-webkit-animation-delay:.1s;animation-delay:.1s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.wscn-http404 .bullshit__info[data-v-c095f994]{font-size:13px;line-height:21px;color:grey;margin-bottom:30px;-webkit-animation-delay:.2s;animation-delay:.2s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}.wscn-http404 .bullshit__info[data-v-c095f994],.wscn-http404 .bullshit__return-home[data-v-c095f994]{opacity:0;-webkit-animation-name:slideUp-data-v-c095f994;animation-name:slideUp-data-v-c095f994;-webkit-animation-duration:.5s;animation-duration:.5s}.wscn-http404 .bullshit__return-home[data-v-c095f994]{display:block;float:left;width:110px;height:36px;background:#1482f0;border-radius:100px;text-align:center;color:#fff;font-size:14px;line-height:36px;cursor:pointer;-webkit-animation-delay:.3s;animation-delay:.3s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}@-webkit-keyframes slideUp-data-v-c095f994{0%{-webkit-transform:translateY(60px);transform:translateY(60px);opacity:0}to{-webkit-transform:translateY(0);transform:translateY(0);opacity:1}}@keyframes slideUp-data-v-c095f994{0%{-webkit-transform:translateY(60px);transform:translateY(60px);opacity:0}to{-webkit-transform:translateY(0);transform:translateY(0);opacity:1}}.panel-group[data-v-e7433d3c]{margin-top:18px}.panel-group .card-panel-col[data-v-e7433d3c]{margin-bottom:32px}.panel-group .card-panel[data-v-e7433d3c]{height:108px;cursor:pointer;font-size:12px;position:relative;overflow:hidden;color:#666;background:#fff;-webkit-box-shadow:4px 4px 40px rgba(0,0,0,.05);box-shadow:4px 4px 40px rgba(0,0,0,.05);border-color:rgba(0,0,0,.05)}.panel-group .card-panel:hover .card-panel-icon-wrapper[data-v-e7433d3c]{color:#fff}.panel-group .card-panel:hover .icon-people[data-v-e7433d3c]{background:#40c9c6}.panel-group .card-panel:hover .icon-message[data-v-e7433d3c]{background:#36a3f7}.panel-group .card-panel:hover .icon-money[data-v-e7433d3c]{background:#f4516c}.panel-group .card-panel:hover .icon-shopping[data-v-e7433d3c]{background:#34bfa3}.panel-group .card-panel .icon-people[data-v-e7433d3c]{color:#40c9c6}.panel-group .card-panel .icon-message[data-v-e7433d3c]{color:#36a3f7}.panel-group .card-panel .icon-money[data-v-e7433d3c]{color:#f4516c}.panel-group .card-panel .icon-shopping[data-v-e7433d3c]{color:#34bfa3}.panel-group .card-panel .card-panel-icon-wrapper[data-v-e7433d3c]{float:left;margin:14px 0 0 14px;padding:16px;-webkit-transition:all .38s ease-out;transition:all .38s ease-out;border-radius:6px}.panel-group .card-panel .card-panel-icon[data-v-e7433d3c]{float:left;font-size:48px}.panel-group .card-panel .card-panel-description[data-v-e7433d3c]{float:right;font-weight:700;margin:26px;margin-left:0}.panel-group .card-panel .card-panel-description .card-panel-text[data-v-e7433d3c]{line-height:18px;color:rgba(0,0,0,.45);font-size:16px;margin-bottom:12px}.panel-group .card-panel .card-panel-description .card-panel-num[data-v-e7433d3c]{font-size:20px}@media(max-width:550px){.card-panel-description[data-v-e7433d3c]{display:none}.card-panel-icon-wrapper[data-v-e7433d3c]{float:none!important;width:100%;height:100%;margin:0!important}.card-panel-icon-wrapper .svg-icon[data-v-e7433d3c]{display:block;margin:14px auto!important;float:none!important}}.todoapp{font:14px Helvetica Neue,Helvetica,Arial,sans-serif;line-height:1.4em;color:#4d4d4d;min-width:230px;max-width:550px;margin:0 auto;font-weight:300;background:#fff;z-index:1;position:relative}.todoapp,.todoapp button{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.todoapp button{margin:0;padding:0;border:0;background:none;font-size:100%;vertical-align:baseline;font-family:inherit;font-weight:inherit;color:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none}.todoapp :focus{outline:0}.todoapp .hidden{display:none}.todoapp .todoapp{background:#fff;margin:130px 0 40px 0;position:relative;-webkit-box-shadow:0 2px 4px 0 rgba(0,0,0,.2),0 25px 50px 0 rgba(0,0,0,.1);box-shadow:0 2px 4px 0 rgba(0,0,0,.2),0 25px 50px 0 rgba(0,0,0,.1)}.todoapp .todoapp input::-webkit-input-placeholder{font-style:italic;font-weight:300;color:#e6e6e6}.todoapp .todoapp input::-moz-placeholder{font-style:italic;font-weight:300;color:#e6e6e6}.todoapp .todoapp input::input-placeholder{font-style:italic;font-weight:300;color:#e6e6e6}.todoapp .todoapp h1{position:absolute;top:-155px;width:100%;font-size:100px;font-weight:100;text-align:center;color:rgba(175,47,47,.15);-webkit-text-rendering:optimizeLegibility;-moz-text-rendering:optimizeLegibility;text-rendering:optimizeLegibility}.todoapp .edit,.todoapp .new-todo{position:relative;margin:0;width:100%;font-size:18px;font-family:inherit;font-weight:inherit;line-height:1.4em;border:0;color:inherit;padding:6px;border:1px solid #999;-webkit-box-shadow:inset 0 -1px 5px 0 rgba(0,0,0,.2);box-shadow:inset 0 -1px 5px 0 rgba(0,0,0,.2);-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.todoapp .new-todo{padding:10px 16px 16px 60px;border:none;background:rgba(0,0,0,.003);-webkit-box-shadow:inset 0 -2px 1px rgba(0,0,0,.03);box-shadow:inset 0 -2px 1px rgba(0,0,0,.03)}.todoapp .main{position:relative;z-index:2;border-top:1px solid #e6e6e6}.todoapp .toggle-all{text-align:center;border:none;opacity:0;position:absolute}.todoapp .toggle-all+label{width:60px;height:34px;font-size:0;position:absolute;top:-52px;left:-13px;-webkit-transform:rotate(90deg);transform:rotate(90deg)}.todoapp .toggle-all+label:before{content:"❯";font-size:22px;color:#e6e6e6;padding:10px 27px 10px 27px}.todoapp .toggle-all:checked+label:before{color:#737373}.todoapp .todo-list{margin:0;padding:0;list-style:none}.todoapp .todo-list li{position:relative;font-size:24px;border-bottom:1px solid #ededed}.todoapp .todo-list li:last-child{border-bottom:none}.todoapp .todo-list li.editing{border-bottom:none;padding:0}.todoapp .todo-list li.editing .edit{display:block;width:506px;padding:12px 16px;margin:0 0 0 43px}.todoapp .todo-list li.editing .view{display:none}.todoapp .todo-list li .toggle{text-align:center;width:40px;height:auto;position:absolute;top:0;bottom:0;margin:auto 0;border:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;opacity:0}.todoapp .todo-list li .toggle+label{background-image:url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2240%22%20height%3D%2240%22%20viewBox%3D%22-10%20-18%20100%20135%22%3E%3Ccircle%20cx%3D%2250%22%20cy%3D%2250%22%20r%3D%2250%22%20fill%3D%22none%22%20stroke%3D%22%23ededed%22%20stroke-width%3D%223%22/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:0;background-size:36px}.todoapp .todo-list li .toggle:checked+label{background-size:36px;background-image:url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2240%22%20height%3D%2240%22%20viewBox%3D%22-10%20-18%20100%20135%22%3E%3Ccircle%20cx%3D%2250%22%20cy%3D%2250%22%20r%3D%2250%22%20fill%3D%22none%22%20stroke%3D%22%23bddad5%22%20stroke-width%3D%223%22/%3E%3Cpath%20fill%3D%22%235dc2af%22%20d%3D%22M72%2025L42%2071%2027%2056l-4%204%2020%2020%2034-52z%22/%3E%3C/svg%3E")}.todoapp .todo-list li label{word-break:break-all;padding:15px 15px 15px 50px;display:block;line-height:1;font-size:14px;-webkit-transition:color .4s;transition:color .4s}.todoapp .todo-list li.completed label{color:#d9d9d9;text-decoration:line-through}.todoapp .todo-list li .destroy{display:none;position:absolute;top:0;right:10px;bottom:0;width:40px;height:40px;margin:auto 0;font-size:30px;color:#cc9a9a;-webkit-transition:color .2s ease-out;transition:color .2s ease-out;cursor:pointer}.todoapp .todo-list li .destroy:hover{color:#af5b5e}.todoapp .todo-list li .destroy:after{content:"×"}.todoapp .todo-list li:hover .destroy{display:block}.todoapp .todo-list li .edit{display:none}.todoapp .todo-list li.editing:last-child{margin-bottom:-1px}.todoapp .footer{color:#777;position:relative;padding:10px 15px;height:40px;text-align:center;border-top:1px solid #e6e6e6}.todoapp .footer:before{content:"";position:absolute;right:0;bottom:0;left:0;height:40px;overflow:hidden;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.2),0 8px 0 -3px #f6f6f6,0 9px 1px -3px rgba(0,0,0,.2),0 16px 0 -6px #f6f6f6,0 17px 2px -6px rgba(0,0,0,.2);box-shadow:0 1px 1px rgba(0,0,0,.2),0 8px 0 -3px #f6f6f6,0 9px 1px -3px rgba(0,0,0,.2),0 16px 0 -6px #f6f6f6,0 17px 2px -6px rgba(0,0,0,.2)}.todoapp .todo-count{float:left;text-align:left}.todoapp .todo-count strong{font-weight:300}.todoapp .filters{margin:0;padding:0;position:relative;z-index:1;list-style:none}.todoapp .filters li{display:inline}.todoapp .filters li a{color:inherit;font-size:12px;padding:3px 7px;text-decoration:none;border:1px solid transparent;border-radius:3px}.todoapp .filters li a:hover{border-color:rgba(175,47,47,.1)}.todoapp .filters li a.selected{border-color:rgba(175,47,47,.2)}.todoapp .clear-completed,.todoapp html .clear-completed:active{float:right;position:relative;line-height:20px;text-decoration:none;cursor:pointer}.todoapp .clear-completed:hover{text-decoration:underline}.todoapp .info{margin:65px auto 0;color:#bfbfbf;font-size:10px;text-shadow:0 1px 0 hsla(0,0%,100%,.5);text-align:center}.todoapp .info p{line-height:1}.todoapp .info a{color:inherit;text-decoration:none;font-weight:400}.todoapp .info a:hover{text-decoration:underline}@media screen and (-webkit-min-device-pixel-ratio:0){.todoapp .todo-list li .toggle,.todoapp .toggle-all{background:none}.todoapp .todo-list li .toggle{height:40px}}@media(max-width:430px){.todoapp .footer{height:50px}.todoapp .filters{bottom:10px}}.dashboard-editor-container[data-v-c9446d16]{padding:32px;background-color:#f0f2f5;position:relative}.dashboard-editor-container .github-corner[data-v-c9446d16]{position:absolute;top:0;border:0;right:0}.dashboard-editor-container .chart-wrapper[data-v-c9446d16]{background:#fff;padding:16px 16px 0;margin-bottom:32px}@media(max-width:1024px){.chart-wrapper[data-v-c9446d16]{padding:8px}}.line[data-v-32c0383a]{text-align:center}@supports(-webkit-mask:none) and (not (cater-color:#fff)){.login-container .el-input input{color:#fff}}.login-container .el-input{display:inline-block;height:47px;width:85%}.login-container .el-input input{background:transparent;border:0;border-radius:0;padding:12px 5px 12px 15px;color:#fff;height:47px;caret-color:#fff}.login-container .el-input input:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px #283443 inset!important;box-shadow:inset 0 0 0 1000px #283443!important;-webkit-text-fill-color:#fff!important}.login-container .el-form-item{border:1px solid hsla(0,0%,100%,.1);background:rgba(0,0,0,.1);border-radius:5px;color:#454545}.login-container[data-v-47c362bf]{min-height:100%;width:100%;background-color:#2d3a4b;overflow:hidden}.login-container .login-form[data-v-47c362bf]{position:relative;width:520px;max-width:100%;padding:160px 35px 0;margin:0 auto;overflow:hidden}.login-container .tips[data-v-47c362bf]{font-size:14px;color:#fff;margin-bottom:10px}.login-container .tips span[data-v-47c362bf]:first-of-type{margin-right:16px}.login-container .svg-container[data-v-47c362bf]{padding:6px 5px 6px 15px;color:#889aa4;vertical-align:middle;width:30px;display:inline-block}.login-container .title-container[data-v-47c362bf]{position:relative}.login-container .title-container .title[data-v-47c362bf]{font-size:26px;color:#eee;margin:0 auto 40px auto;text-align:center;font-weight:700}.login-container .show-pwd[data-v-47c362bf]{position:absolute;right:10px;top:7px;font-size:16px;color:#889aa4;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.app-container .roles-table[data-v-2693cb34]{margin-top:30px}.app-container .permission-tree[data-v-2693cb34]{margin-bottom:30px}.centered-container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:100vh}.centered-content{text-align:center} \ No newline at end of file diff --git a/CrazyCarBackground/crazy_car_background/static/css/chunk-84a47a64.6e3591bf.css b/CrazyCarBackground/crazy_car_background/static/css/chunk-84a47a64.6e3591bf.css new file mode 100644 index 000000000..4053df9f0 --- /dev/null +++ b/CrazyCarBackground/crazy_car_background/static/css/chunk-84a47a64.6e3591bf.css @@ -0,0 +1 @@ +.centered-container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:100vh}.centered-content{text-align:center} \ No newline at end of file diff --git a/CrazyCarBackground/crazy_car_background/static/css/chunk-18180937.ecf236a0.css b/CrazyCarBackground/crazy_car_background/static/css/chunk-b356edba.f37c0de6.css similarity index 64% rename from CrazyCarBackground/crazy_car_background/static/css/chunk-18180937.ecf236a0.css rename to CrazyCarBackground/crazy_car_background/static/css/chunk-b356edba.f37c0de6.css index f0c73b42d..f5250e754 100644 --- a/CrazyCarBackground/crazy_car_background/static/css/chunk-18180937.ecf236a0.css +++ b/CrazyCarBackground/crazy_car_background/static/css/chunk-b356edba.f37c0de6.css @@ -1 +1 @@ -@supports(-webkit-mask:none) and (not (cater-color:#fff)){.login-container .el-input input{color:#fff}}.login-container .el-input{display:inline-block;height:47px;width:85%}.login-container .el-input input{background:transparent;border:0;border-radius:0;padding:12px 5px 12px 15px;color:#fff;height:47px;caret-color:#fff}.login-container .el-input input:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px #283443 inset!important;box-shadow:inset 0 0 0 1000px #283443!important;-webkit-text-fill-color:#fff!important}.login-container .el-form-item{border:1px solid hsla(0,0%,100%,.1);background:rgba(0,0,0,.1);border-radius:5px;color:#454545}.login-container[data-v-18bd9fc3]{min-height:100%;width:100%;background-color:#2d3a4b;overflow:hidden}.login-container .login-form[data-v-18bd9fc3]{position:relative;width:520px;max-width:100%;padding:160px 35px 0;margin:0 auto;overflow:hidden}.login-container .tips[data-v-18bd9fc3]{font-size:14px;color:#fff;margin-bottom:10px}.login-container .tips span[data-v-18bd9fc3]:first-of-type{margin-right:16px}.login-container .svg-container[data-v-18bd9fc3]{padding:6px 5px 6px 15px;color:#889aa4;vertical-align:middle;width:30px;display:inline-block}.login-container .title-container[data-v-18bd9fc3]{position:relative}.login-container .title-container .title[data-v-18bd9fc3]{font-size:26px;color:#eee;margin:0 auto 40px auto;text-align:center;font-weight:700}.login-container .show-pwd[data-v-18bd9fc3]{position:absolute;right:10px;top:7px;font-size:16px;color:#889aa4;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none} \ No newline at end of file +@supports(-webkit-mask:none) and (not (cater-color:#fff)){.login-container .el-input input{color:#fff}}.login-container .el-input{display:inline-block;height:47px;width:85%}.login-container .el-input input{background:transparent;border:0;border-radius:0;padding:12px 5px 12px 15px;color:#fff;height:47px;caret-color:#fff}.login-container .el-input input:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px #283443 inset!important;box-shadow:inset 0 0 0 1000px #283443!important;-webkit-text-fill-color:#fff!important}.login-container .el-form-item{border:1px solid hsla(0,0%,100%,.1);background:rgba(0,0,0,.1);border-radius:5px;color:#454545}.login-container[data-v-47c362bf]{min-height:100%;width:100%;background-color:#2d3a4b;overflow:hidden}.login-container .login-form[data-v-47c362bf]{position:relative;width:520px;max-width:100%;padding:160px 35px 0;margin:0 auto;overflow:hidden}.login-container .tips[data-v-47c362bf]{font-size:14px;color:#fff;margin-bottom:10px}.login-container .tips span[data-v-47c362bf]:first-of-type{margin-right:16px}.login-container .svg-container[data-v-47c362bf]{padding:6px 5px 6px 15px;color:#889aa4;vertical-align:middle;width:30px;display:inline-block}.login-container .title-container[data-v-47c362bf]{position:relative}.login-container .title-container .title[data-v-47c362bf]{font-size:26px;color:#eee;margin:0 auto 40px auto;text-align:center;font-weight:700}.login-container .show-pwd[data-v-47c362bf]{position:absolute;right:10px;top:7px;font-size:16px;color:#889aa4;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none} \ No newline at end of file diff --git a/CrazyCarBackground/crazy_car_background/static/js/app.ac050d4d.js b/CrazyCarBackground/crazy_car_background/static/js/app.ac050d4d.js new file mode 100644 index 000000000..c4fdf4d40 --- /dev/null +++ b/CrazyCarBackground/crazy_car_background/static/js/app.ac050d4d.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["app"],{0:function(e,t,n){e.exports=n("56d7")},"036d":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));n("99af");var a=n("83d6"),i=n.n(a),c=i.a.title||"Vue Admin Template";function o(e){return e?"".concat(e," - ").concat(c):"".concat(c)}},"096e":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-skill",use:"icon-skill-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"0fca":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-match",use:"icon-match-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);t["default"]=s},"119c":function(e,t,n){"use strict";var a,i,c=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.item.hidden?e._e():n("div",[!e.hasOneShowingChild(e.item.children,e.item)||e.onlyOneChild.children&&!e.onlyOneChild.noShowingChildren||e.item.alwaysShow?n("el-submenu",{ref:"subMenu",attrs:{index:e.resolvePath(e.item.path),"popper-append-to-body":""}},[n("template",{slot:"title"},[e.item.meta?n("item",{attrs:{icon:e.item.meta&&e.item.meta.icon,title:e.item.meta.title}}):e._e()],1),e._l(e.item.children,(function(t){return n("sidebar-item",{key:t.path,staticClass:"nest-menu",attrs:{"is-nest":!0,item:t,"base-path":e.resolvePath(t.path)}})}))],2):[e.onlyOneChild.meta?n("app-link",{attrs:{to:e.resolvePath(e.onlyOneChild.path)}},[n("el-menu-item",{class:{"submenu-title-noDropdown":!e.isNest},attrs:{index:e.resolvePath(e.onlyOneChild.path)}},[n("item",{attrs:{icon:e.onlyOneChild.meta.icon||e.item.meta&&e.item.meta.icon,title:e.onlyOneChild.meta.title}})],1)],1):e._e()]],2)},o=[],s=n("5530"),r=(n("4de4"),n("d3b7"),n("df7c")),l=n.n(r),d=n("61f7"),u=(n("caad"),n("2532"),{name:"MenuItem",functional:!0,props:{icon:{type:String,default:""},title:{type:String,default:""}},render:function(e,t){var n=t.props,a=n.icon,i=n.title,c=[];return a&&(a.includes("el-icon")?c.push(e("i",{class:[a,"sub-el-icon"]})):c.push(e("svg-icon",{attrs:{"icon-class":a}}))),i&&c.push(e("span",{slot:"title"},[i])),c}}),h=u,v=(n("f15b"),n("2877")),m=Object(v["a"])(h,a,i,!1,null,"18eeea00",null),f=m.exports,p=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n(e.type,e._b({tag:"component"},"component",e.linkProps(e.to),!1),[e._t("default")],2)},w=[],g={props:{to:{type:String,required:!0}},computed:{isExternal:function(){return Object(d["a"])(this.to)},type:function(){return this.isExternal?"a":"router-link"}},methods:{linkProps:function(e){return this.isExternal?{href:e,target:"_blank",rel:"noopener"}:{to:e}}}},b=g,x=Object(v["a"])(b,p,w,!1,null,null,null),y=x.exports,z={computed:{device:function(){return this.$store.state.app.device}},mounted:function(){this.fixBugIniOS()},methods:{fixBugIniOS:function(){var e=this,t=this.$refs.subMenu;if(t){var n=t.handleMouseleave;t.handleMouseleave=function(t){"mobile"!==e.device&&n(t)}}}}},M={name:"SidebarItem",components:{Item:f,AppLink:y},mixins:[z],props:{item:{type:Object,required:!0},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},data:function(){return this.onlyOneChild=null,{}},methods:{hasOneShowingChild:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,a=t.filter((function(t){return!t.hidden&&(e.onlyOneChild=t,!0)}));return 1===a.length||0===a.length&&(this.onlyOneChild=Object(s["a"])(Object(s["a"])({},n),{},{path:"",noShowingChildren:!0}),!0)},resolvePath:function(e){return Object(d["a"])(e)?e:Object(d["a"])(this.basePath)?this.basePath:l.a.resolve(this.basePath,e)}}},k=M,B=Object(v["a"])(k,c,o,!1,null,null,null);t["a"]=B.exports},"127c":function(e,t,n){"use strict";n("3b8e")},"12a5":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-shopping",use:"icon-shopping-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},1430:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-qq",use:"icon-qq-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},1779:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-bug",use:"icon-bug-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"17df":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-international",use:"icon-international-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"18f0":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-link",use:"icon-link-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"223d":function(e,t,n){"use strict";(function(e){var t=n("c7eb"),a=n("5530"),i=n("1da1"),c=(n("b0c0"),n("e9c4"),n("4de4"),n("d3b7"),n("a18c")),o=n("4360"),s=n("5c96"),r=n("323e"),l=n.n(r),d=(n("a5d8"),n("5f87")),u=n("036d"),h=n("c1f7");l.a.configure({showSpinner:!1});var v=["/login"];c["a"].beforeEach(function(){var n=Object(i["a"])(Object(t["a"])().mark((function n(i,r,h){var m,p,w;return Object(t["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(l.a.start(),document.title=Object(u["a"])(i.meta.title),m=Object(d["a"])(),!m){t.next=37;break}if("/login"!==i.path){t.next=9;break}h({path:"/"}),l.a.done(),t.next=35;break;case 9:if(p=o["a"].getters.name,!p){t.next=14;break}h(),t.next=35;break;case 14:return t.prev=14,t.next=17,o["a"].dispatch("user/getInfo");case 17:return t.next=19,o["a"].dispatch("user/getRoutes");case 19:o["a"].getters.menus.length<1&&(e.antRouter=[],h()),w=f(o["a"].getters.menus),console.log(" ==="+JSON.stringify(w)),c["a"].push({path:"*",redirect:"/404",hidden:!0}),c["a"].addRoutes(w),e.antRouter=w,h(Object(a["a"])(Object(a["a"])({},i),{},{replace:!0})),t.next=35;break;case 28:return t.prev=28,t.t0=t["catch"](14),t.next=32,o["a"].dispatch("user/resetToken");case 32:s["Message"].error(t.t0||"Has Error"),h("/login?redirect=".concat(i.path)),l.a.done();case 35:t.next=38;break;case 37:-1!==v.indexOf(i.path)?h():(h("/login?redirect=".concat(i.path)),l.a.done());case 38:case"end":return t.stop()}}),n,null,[[14,28]])})));return function(e,t,a){return n.apply(this,arguments)}}()),c["a"].afterEach((function(){l.a.done()}));var m=function(e){return function(t){return Promise.all([n.e("chunk-049e0741"),n.e("chunk-b4b350c8"),n.e("chunk-106c4c98")]).then(function(){var a=[n("feca")("./".concat(e,".vue"))];t.apply(null,a)}.bind(this)).catch(n.oe)}};function f(e){var t=e.filter((function(e){if("Layout"===e.component)e.component=h["a"];else try{e.component=m(e.component)}catch(t){e.component=m("system/menu/index"),s["Message"].error("请查看控制台修改或者删除不存在的组件路径")}return e.children&&e.children.length&&(e.children=f(e.children)),!0}));return t}}).call(this,n("c8ba"))},2580:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-language",use:"icon-language-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"28e8":function(e,t,n){},"2a3d":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-password",use:"icon-password-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"2f11":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-peoples",use:"icon-peoples-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},3046:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-money",use:"icon-money-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"30c3":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-example",use:"icon-example-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},3289:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-list",use:"icon-list-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"331a":function(e,t){var n={admin:{token:"admin-token"},editor:{token:"editor-token"}},a={"admin-token":{roles:["admin"],introduction:"I am a super administrator",avatar:"https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif",name:"Super Admin"},"editor-token":{roles:["editor"],introduction:"I am an editor",avatar:"https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif",name:"Normal Editor"}};e.exports=[{url:"/vue-admin-template/user/login",type:"post",response:function(e){var t=e.body.username,a=n[t];return a?{code:2e4,data:a}:{code:60204,message:"Account and password are incorrect."}}},{url:"/vue-admin-template/user/info.*",type:"get",response:function(e){var t=e.query.token,n=a[t];return n?{code:2e4,data:n}:{code:50008,message:"Login failed, unable to get user details."}}},{url:"/vue-admin-template/user/logout",type:"post",response:function(e){return{code:2e4,data:"success"}}}]},3387:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-avatar0",use:"icon-avatar0-usage",viewBox:"0 0 1040 1024",content:''});o.a.add(s);t["default"]=s},"3b8e":function(e,t,n){},"3bdc":function(e,t,n){"use strict";n("f43a")},"3bea":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-user-icon",use:"icon-user-icon-usage",viewBox:"0 0 130 130",content:''});o.a.add(s);t["default"]=s},"404c":function(e,t,n){e.exports=n.p+"static/img/CrazyCarIcon.ed8a8aec.png"},"40d3":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-user-group-fill",use:"icon-user-group-fill-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);t["default"]=s},"42c8":function(e,t,n){"use strict";n("9d9b")},4360:function(e,t,n){"use strict";var a=n("2b0e"),i=n("2f62"),c=(n("b0c0"),{sidebar:function(e){return e.app.sidebar},device:function(e){return e.app.device},token:function(e){return e.user.token},avatar:function(e){return e.user.avatar},name:function(e){return e.user.name},menus:function(e){return e.user.menus}}),o=c,s=n("a78e"),r=n.n(s),l={sidebar:{opened:!r.a.get("sidebarStatus")||!!+r.a.get("sidebarStatus"),withoutAnimation:!1},device:"desktop"},d={TOGGLE_SIDEBAR:function(e){e.sidebar.opened=!e.sidebar.opened,e.sidebar.withoutAnimation=!1,e.sidebar.opened?r.a.set("sidebarStatus",1):r.a.set("sidebarStatus",0)},CLOSE_SIDEBAR:function(e,t){r.a.set("sidebarStatus",0),e.sidebar.opened=!1,e.sidebar.withoutAnimation=t},TOGGLE_DEVICE:function(e,t){e.device=t}},u={toggleSideBar:function(e){var t=e.commit;t("TOGGLE_SIDEBAR")},closeSideBar:function(e,t){var n=e.commit,a=t.withoutAnimation;n("CLOSE_SIDEBAR",a)},toggleDevice:function(e,t){var n=e.commit;n("TOGGLE_DEVICE",t)}},h={namespaced:!0,state:l,mutations:d,actions:u},v=n("83d6"),m=n.n(v),f=m.a.showSettings,p=m.a.fixedHeader,w=m.a.sidebarLogo,g={showSettings:f,fixedHeader:p,sidebarLogo:w},b={CHANGE_SETTING:function(e,t){var n=t.key,a=t.value;e.hasOwnProperty(n)&&(e[n]=a)}},x={changeSetting:function(e,t){var n=e.commit;n("CHANGE_SETTING",t)}},y={namespaced:!0,state:g,mutations:b,actions:x},z=(n("d3b7"),n("498a"),n("e9c4"),n("c24f")),M=n("5f87"),k=n("a18c"),B=function(){return{token:Object(M["a"])(),name:"",avatar:"",menus:""}},C=B(),H={RESET_STATE:function(e){Object.assign(e,B())},SET_TOKEN:function(e,t){e.token=t},SET_NAME:function(e,t){e.name=t},SET_AVATAR:function(e,t){e.avatar=t},SET_MENUS:function(e,t){e.menus=t}},V={login:function(e,t){var n=e.commit,a=t.username,i=t.password;return new Promise((function(e,t){Object(z["g"])({username:a.trim(),password:i}).then((function(t){n("SET_TOKEN",t.token),Object(M["c"])(t.token),e()})).catch((function(e){t(e)}))}))},getInfo:function(e){var t=e.commit,n=e.state;return new Promise((function(e,a){Object(z["b"])(n.token).then((function(n){if(!n)return a("Verification failed, please Login again.");console.log("++++++++ "+n);var i=n.roles,c=n.name,o=n.avatar;(!i||i.length<=0)&&a("getInfo: roles must be a non-null array!"),t("SET_NAME",c),t("SET_AVATAR",o),e(n)})).catch((function(e){a(e)}))}))},logout:function(e){var t=e.commit,n=e.state;return new Promise((function(e,a){Object(z["h"])(n.token).then((function(){Object(M["b"])(),Object(k["b"])(),t("RESET_STATE"),e()})).catch((function(e){a(e)}))}))},resetToken:function(e){var t=e.commit;return new Promise((function(e){Object(M["b"])(),t("RESET_STATE"),e()}))},getRoutes:function(e){var t=e.commit;e.state;return new Promise((function(e,n){Object(z["d"])().then((function(n){var a=n;console.log("++++++++ "+JSON.stringify(a)),t("SET_MENUS",a),e()})).catch((function(e){n(e)}))}))}},L={namespaced:!0,state:C,mutations:H,actions:V};a["default"].use(i["a"]);var S=new i["a"].Store({modules:{app:h,settings:y,user:L},getters:o});t["a"]=S},"47f1":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-table",use:"icon-table-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"47ff":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-message",use:"icon-message-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"4ad1":function(e,t,n){"use strict";n("f3da")},"4b0f":function(e,t,n){var a=n("6374").default,i=n("448a").default;n("99af"),n("b64b"),n("4d63"),n("ac1f"),n("2c3e"),n("25f0");var c=n("96eb"),o=n("8a60"),s=o.param2Obj,r=n("331a"),l=n("a0bc"),d=[].concat(i(r),i(l));function u(){function e(e){return function(t){var n=null;if(e instanceof Function){var a=t.body,i=t.type,o=t.url;n=e({method:i,body:JSON.parse(a),query:s(o)})}else n=e;return c.mock(n)}}c.XHR.prototype.proxy_send=c.XHR.prototype.send,c.XHR.prototype.send=function(){this.custom.xhr&&(this.custom.xhr.withCredentials=this.withCredentials||!1,this.responseType&&(this.custom.xhr.responseType=this.responseType)),this.proxy_send.apply(this,arguments)};var t,n=a(d);try{for(n.s();!(t=n.n()).done;){var i=t.value;c.mock(new RegExp(i.url),i.type||"get",e(i.response))}}catch(o){n.e(o)}finally{n.f()}}e.exports={mocks:d,mockXHR:u}},"4df5":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-eye",use:"icon-eye-usage",viewBox:"0 0 128 64",content:''});o.a.add(s);t["default"]=s},"51ff":function(e,t,n){var a={"./404.svg":"a14a","./assets.svg":"db03","./avatar.svg":"bec7","./avatar0.svg":"3387","./bug.svg":"1779","./car.svg":"ec2f","./chart.svg":"c829","./clipboard.svg":"bc35","./component.svg":"56d6","./dashboard.svg":"f782","./documentation.svg":"90fb","./drag.svg":"9bbf","./edit.svg":"aa46","./education.svg":"ad1c","./email.svg":"cbb7","./equipment.svg":"b596","./example.svg":"30c3","./excel.svg":"6599","./exit-fullscreen.svg":"dbc7","./eye-open.svg":"d7ec","./eye.svg":"4df5","./form.svg":"eb1b","./fullscreen.svg":"9921","./guide.svg":"6683","./icon.svg":"9d91","./international.svg":"17df","./language.svg":"2580","./link.svg":"18f0","./list.svg":"3289","./lock.svg":"ab00","./map.svg":"a13f","./match.svg":"0fca","./message.svg":"47ff","./money.svg":"3046","./nested.svg":"dcf8","./password.svg":"2a3d","./pdf.svg":"f9a1","./people.svg":"d056","./peoples.svg":"2f11","./qq.svg":"1430","./search.svg":"8e8d","./shopping.svg":"12a5","./size.svg":"8644","./skill.svg":"096e","./star.svg":"708a","./tab.svg":"8fb7","./table.svg":"47f1","./theme.svg":"e534","./tree-table.svg":"e7c8","./tree.svg":"93cd","./trial.svg":"533b","./user-group-fill.svg":"40d3","./user-icon.svg":"3bea","./user.svg":"b3b5","./version.svg":"8e37","./wechat.svg":"80da","./zip.svg":"8aa6"};function i(e){var t=c(e);return n(t)}function c(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}i.keys=function(){return Object.keys(a)},i.resolve=c,e.exports=i,i.id="51ff"},"533b":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-trial",use:"icon-trial-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);t["default"]=s},"56d6":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-component",use:"icon-component-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"56d7":function(e,t,n){"use strict";n.r(t);n("e260"),n("e6cf"),n("cca6"),n("a79d");var a=n("2b0e"),i=(n("f5df1"),n("5c96")),c=n.n(i),o=(n("0fae"),n("b2d6")),s=n.n(o),r=(n("b20f"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"}},[n("router-view")],1)}),l=[],d={name:"App"},u=d,h=n("2877"),v=Object(h["a"])(u,r,l,!1,null,null,null),m=v.exports,f=n("4360"),p=n("a18c"),w=(n("d81d"),n("d3b7"),n("ddb0"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.isExternal?n("div",e._g({staticClass:"svg-external-icon svg-icon",style:e.styleExternalIcon},e.$listeners)):n("svg",e._g({class:e.svgClass,attrs:{"aria-hidden":"true"}},e.$listeners),[n("use",{attrs:{"xlink:href":e.iconName}})])}),g=[],b=n("61f7"),x={name:"SvgIcon",props:{iconClass:{type:String,required:!0},className:{type:String,default:""}},computed:{isExternal:function(){return Object(b["a"])(this.iconClass)},iconName:function(){return"#icon-".concat(this.iconClass)},svgClass:function(){return this.className?"svg-icon "+this.className:"svg-icon"},styleExternalIcon:function(){return{mask:"url(".concat(this.iconClass,") no-repeat 50% 50%"),"-webkit-mask":"url(".concat(this.iconClass,") no-repeat 50% 50%")}}}},y=x,z=(n("64df"),Object(h["a"])(y,w,g,!1,null,"f9f7fefc",null)),M=z.exports;a["default"].component("svg-icon",M);var k=n("51ff"),B=function(e){return e.keys().map(e)};B(k);n("223d");var C=n("4b0f"),H=C.mockXHR;H(),a["default"].use(c.a,{locale:s.a}),a["default"].config.productionTip=!1,new a["default"]({el:"#app",router:p["a"],store:f["a"],render:function(e){return e(m)}})},"5af5":function(e,t,n){"use strict";(function(e){var a=n("5530"),i=(n("99af"),n("2f62")),c=n("c463"),o=n("119c"),s=n("cf1e"),r=n.n(s);t["a"]={components:{SidebarItem:o["a"],Logo:c["a"]},computed:Object(a["a"])(Object(a["a"])({},Object(i["b"])(["sidebar"])),{},{routes:function(){return this.$router.options.routes.concat(e.antRouter)},activeMenu:function(){var e=this.$route,t=e.meta,n=e.path;return t.activeMenu?t.activeMenu:n},showLogo:function(){return this.$store.state.settings.sidebarLogo},variables:function(){return r.a},isCollapse:function(){return!this.sidebar.opened}})}}).call(this,n("c8ba"))},"5f87":function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return r}));var a=n("a78e"),i=n.n(a),c="vue_admin_template_token";function o(){return i.a.get(c)}function s(e){return i.a.set(c,e)}function r(){return i.a.remove(c)}},"61f7":function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return i}));n("ac1f"),n("00b4");function a(e){return/^(https?:|mailto:|tel:)/.test(e)}function i(e){return e.length>=0}},"64df":function(e,t,n){"use strict";n("7046")},6599:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-excel",use:"icon-excel-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},6683:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-guide",use:"icon-guide-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},7046:function(e,t,n){},"708a":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-star",use:"icon-star-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"80da":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-wechat",use:"icon-wechat-usage",viewBox:"0 0 128 110",content:''});o.a.add(s);t["default"]=s},"83d6":function(e,t){e.exports={title:"Crazy Car Background",fixedHeader:!1,sidebarLogo:!1}},8644:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-size",use:"icon-size-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"8a60":function(e,t,n){function a(e){var t=decodeURIComponent(e.split("?")[1]).replace(/\+/g," ");if(!t)return{};var n={},a=t.split("&");return a.forEach((function(e){var t=e.indexOf("=");if(-1!==t){var a=e.substring(0,t),i=e.substring(t+1,e.length);n[a]=i}})),n}n("ac1f"),n("5319"),n("d3b7"),n("159b"),e.exports={param2Obj:a}},"8aa6":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-zip",use:"icon-zip-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"8ccb":function(e,t,n){"use strict";n("a3b8")},"8e37":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-version",use:"icon-version-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);t["default"]=s},"8e8d":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-search",use:"icon-search-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"8fb7":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-tab",use:"icon-tab-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"90fb":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-documentation",use:"icon-documentation-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"93cd":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-tree",use:"icon-tree-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},9921:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-fullscreen",use:"icon-fullscreen-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"9bbf":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-drag",use:"icon-drag-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"9d91":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-icon",use:"icon-icon-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"9d9b":function(e,t,n){},a0bc:function(e,t,n){var a=n("96eb"),i=a.mock({"items|30":[{id:"@id",title:"@sentence(10, 20)","status|1":["published","draft","deleted"],author:"name",display_time:"@datetime",pageviews:"@integer(300, 5000)"}]});e.exports=[{url:"/vue-admin-template/table/list",type:"get",response:function(e){var t=i.items;return{code:2e4,data:{total:t.length,items:t}}}}]},a13f:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-map",use:"icon-map-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);t["default"]=s},a14a:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-404",use:"icon-404-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},a18c:function(e,t,n){"use strict";n.d(t,"b",(function(){return l}));n("d3b7"),n("3ca3"),n("ddb0");var a=n("2b0e"),i=n("8c4f"),c=n("c1f7");a["default"].use(i["a"]);var o=[{path:"/login",component:function(){return n.e("chunk-b356edba").then(n.bind(null,"9ed6"))},hidden:!0},{path:"/404",component:function(){return n.e("chunk-94d3c3c4").then(n.bind(null,"8cdb"))},hidden:!0},{path:"/",component:c["a"],redirect:"/welcome",children:[{path:"welcome",name:"Welcome",component:function(){return n.e("chunk-84a47a64").then(n.bind(null,"b9ec"))},meta:{title:"Welcome",icon:"education"}}]},{path:"/dashboard",component:c["a"],redirect:"/dashboard",children:[{path:"dashboard",name:"Dashboard",component:function(){return Promise.all([n.e("chunk-049e0741"),n.e("chunk-dbcc2fac")]).then(n.bind(null,"9406"))},meta:{title:"Dashboard",icon:"dashboard"}}]},{path:"/user",component:c["a"],children:[{path:"index",name:"User",component:function(){return n.e("chunk-dbac9424").then(n.bind(null,"e382"))},meta:{title:"User",icon:"user-icon"}}]},{path:"/version",component:c["a"],children:[{path:"index",name:"Version",component:function(){return Promise.all([n.e("chunk-b4b350c8"),n.e("chunk-42649637")]).then(n.bind(null,"9fe8"))},meta:{title:"Version",icon:"version"}}]},{path:"/assets",component:c["a"],children:[{path:"index",name:"Assets",component:function(){return n.e("chunk-1270eb89").then(n.bind(null,"a185"))},meta:{title:"Assets",icon:"assets"}}]},{path:"/avatar",component:c["a"],children:[{path:"index",name:"Avatar",component:function(){return n.e("chunk-ee464786").then(n.bind(null,"f201"))},meta:{title:"Avatar",icon:"avatar0"}}]},{path:"/equip",component:c["a"],children:[{path:"index",name:"Equip",component:function(){return n.e("chunk-5eb322d4").then(n.bind(null,"5d49"))},meta:{title:"Equip",icon:"equipment"}}]},{path:"/trial",component:c["a"],children:[{path:"index",name:"Trial",component:function(){return n.e("chunk-77c89dc1").then(n.bind(null,"42f1"))},meta:{title:"Trial",icon:"trial"}}]},{path:"/match",component:c["a"],children:[{path:"index",name:"Match",component:function(){return n.e("chunk-0e7c7202").then(n.bind(null,"9f50"))},meta:{title:"Match",icon:"match"}}]},{path:"external-link",component:c["a"],children:[{path:"https://github.com/TastSong/CrazyCar",meta:{title:"External Link",icon:"link"}}]}],s=function(){return new i["a"]({scrollBehavior:function(){return{y:0}},routes:o})},r=s();function l(){var e=s();r.matcher=e.matcher}t["a"]=r},a3b8:function(e,t,n){},aa46:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-edit",use:"icon-edit-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},ab00:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-lock",use:"icon-lock-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},ad1c:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-education",use:"icon-education-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},b20f:function(e,t,n){e.exports={menuText:"#bfcbd9",menuActiveText:"#409eff",subMenuActiveText:"#f4f4f5",menuBg:"#304156",menuHover:"#263445",subMenuBg:"#1f2d3d",subMenuHover:"#001528",sideBarWidth:"210px"}},b3b5:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-user",use:"icon-user-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);t["default"]=s},b596:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-equipment",use:"icon-equipment-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);t["default"]=s},b775:function(e,t,n){"use strict";n("d3b7"),n("e9c4");var a=n("bc3a"),i=n.n(a),c=n("5c96"),o=n("4360"),s=n("5f87"),r=i.a.create({baseURL:"http://tastsong.xyz/",timeout:5e3});r.interceptors.request.use((function(e){return o["a"].getters.token&&(e.headers["Authorization"]=Object(s["a"])()),e}),(function(e){return console.log(e),Promise.reject(e)})),r.interceptors.response.use((function(e){var t=e.data;return 200!==t.code?(Object(c["Message"])({message:t.msg||"Error",type:"error",duration:5e3}),203!==t.code&&204!==t.code||c["MessageBox"].confirm("You have been logged out, you can cancel to stay on this page, or log in again","Confirm logout",{confirmButtonText:"Re-Login",cancelButtonText:"Cancel",type:"warning"}).then((function(){o["a"].dispatch("user/resetToken").then((function(){location.reload()}))})),Promise.reject(new Error(t.message||"Error"))):(console.log("response : "+JSON.stringify(t.data)),t.data)}),(function(e){return console.log("err"+e),Object(c["Message"])({message:e.message,type:"error",duration:5e3}),Promise.reject(e)})),t["a"]=r},bc35:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-clipboard",use:"icon-clipboard-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},bec7:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-avatar",use:"icon-avatar-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);t["default"]=s},c1f7:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-wrapper",class:e.classObj},["mobile"===e.device&&e.sidebar.opened?n("div",{staticClass:"drawer-bg",on:{click:e.handleClickOutside}}):e._e(),n("sidebar",{staticClass:"sidebar-container"}),n("div",{staticClass:"main-container"},[n("div",{class:{"fixed-header":e.fixedHeader}},[n("navbar")],1),n("app-main")],1)],1)},i=[],c=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"navbar"},[a("hamburger",{staticClass:"hamburger-container",attrs:{"is-active":e.sidebar.opened},on:{toggleClick:e.toggleSideBar}}),a("breadcrumb",{staticClass:"breadcrumb-container"}),a("div",{staticClass:"right-menu"},[a("el-dropdown",{staticClass:"avatar-container",attrs:{trigger:"click"}},[a("div",{staticClass:"avatar-wrapper"},[a("img",{staticClass:"user-avatar",attrs:{src:n("404c")}}),a("i",{staticClass:"el-icon-caret-bottom"})]),a("el-dropdown-menu",{staticClass:"user-dropdown",attrs:{slot:"dropdown"},slot:"dropdown"},[a("router-link",{attrs:{to:"/"}},[a("el-dropdown-item",[e._v(" Home ")])],1),a("el-dropdown-item",{attrs:{divided:""},nativeOn:{click:function(t){return e.logout(t)}}},[a("span",{staticStyle:{display:"block"}},[e._v("Log Out")])])],1)],1)],1)],1)},o=[],s=n("c7eb"),r=n("1da1"),l=n("5530"),d=n("2f62"),u=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-breadcrumb",{staticClass:"app-breadcrumb",attrs:{separator:"/"}},[n("transition-group",{attrs:{name:"breadcrumb"}},e._l(e.levelList,(function(t,a){return n("el-breadcrumb-item",{key:t.path},["noRedirect"===t.redirect||a==e.levelList.length-1?n("span",{staticClass:"no-redirect"},[e._v(e._s(t.meta.title))]):n("a",{on:{click:function(n){return n.preventDefault(),e.handleLink(t)}}},[e._v(e._s(t.meta.title))])])})),1)],1)},h=[],v=(n("4de4"),n("d3b7"),n("99af"),n("b0c0"),n("498a"),n("bd11")),m=n.n(v),f={data:function(){return{levelList:null}},watch:{$route:function(){this.getBreadcrumb()}},created:function(){this.getBreadcrumb()},methods:{getBreadcrumb:function(){var e=this.$route.matched.filter((function(e){return e.meta&&e.meta.title})),t=e[0];this.isDashboard(t)||(e=[{path:"/dashboard",meta:{title:"Dashboard"}}].concat(e)),this.levelList=e.filter((function(e){return e.meta&&e.meta.title&&!1!==e.meta.breadcrumb}))},isDashboard:function(e){var t=e&&e.name;return!!t&&t.trim().toLocaleLowerCase()==="Dashboard".toLocaleLowerCase()},pathCompile:function(e){var t=this.$route.params,n=m.a.compile(e);return n(t)},handleLink:function(e){var t=e.redirect,n=e.path;t?this.$router.push(t):this.$router.push(this.pathCompile(n))}}},p=f,w=(n("ee1f"),n("2877")),g=Object(w["a"])(p,u,h,!1,null,"62cc9144",null),b=g.exports,x=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{padding:"0 15px"},on:{click:e.toggleClick}},[n("svg",{staticClass:"hamburger",class:{"is-active":e.isActive},attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64"}},[n("path",{attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 0 0 0-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0 0 14.4 7z"}})])])},y=[],z={name:"Hamburger",props:{isActive:{type:Boolean,default:!1}},methods:{toggleClick:function(){this.$emit("toggleClick")}}},M=z,k=(n("d49d"),Object(w["a"])(M,x,y,!1,null,"49e15297",null)),B=k.exports,C={components:{Breadcrumb:b,Hamburger:B},computed:Object(l["a"])({},Object(d["b"])(["sidebar","avatar"])),methods:{toggleSideBar:function(){this.$store.dispatch("app/toggleSideBar")},logout:function(){var e=this;return Object(r["a"])(Object(s["a"])().mark((function t(){return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch("user/logout");case 2:e.$router.push("/login?redirect=".concat(e.$route.fullPath));case 3:case"end":return t.stop()}}),t)})))()}}},H=C,V=(n("4ad1"),Object(w["a"])(H,c,o,!1,null,"43db5b55",null)),L=V.exports,S=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:{"has-logo":e.showLogo}},[e.showLogo?n("logo",{attrs:{collapse:e.isCollapse}}):e._e(),n("el-scrollbar",{attrs:{"wrap-class":"scrollbar-wrapper"}},[n("el-menu",{attrs:{"default-active":e.activeMenu,collapse:e.isCollapse,"background-color":e.variables.menuBg,"text-color":e.variables.menuText,"unique-opened":!1,"active-text-color":e.variables.menuActiveText,"collapse-transition":!1,mode:"vertical"}},e._l(e.routes,(function(e){return n("sidebar-item",{key:e.path,attrs:{item:e,"base-path":e.path}})})),1)],1)],1)},O=[],E=n("5af5"),_=E["a"],j=Object(w["a"])(_,S,O,!1,null,null,null),T=j.exports,A=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("section",{staticClass:"app-main"},[n("transition",{attrs:{name:"fade-transform",mode:"out-in"}},[n("router-view",{key:e.key})],1)],1)},F=[],$={name:"AppMain",computed:{key:function(){return this.$route.path}}},q=$,R=(n("42c8"),n("8ccb"),Object(w["a"])(q,A,F,!1,null,"64cf4d83",null)),D=R.exports,I=n("4360"),N=document,P=N.body,U=992,G={watch:{$route:function(e){"mobile"===this.device&&this.sidebar.opened&&I["a"].dispatch("app/closeSideBar",{withoutAnimation:!1})}},beforeMount:function(){window.addEventListener("resize",this.$_resizeHandler)},beforeDestroy:function(){window.removeEventListener("resize",this.$_resizeHandler)},mounted:function(){var e=this.$_isMobile();e&&(I["a"].dispatch("app/toggleDevice","mobile"),I["a"].dispatch("app/closeSideBar",{withoutAnimation:!0}))},methods:{$_isMobile:function(){var e=P.getBoundingClientRect();return e.width-1'});o.a.add(s);t["default"]=s},cb7f:function(e,t,n){},cbb7:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-email",use:"icon-email-usage",viewBox:"0 0 128 96",content:''});o.a.add(s);t["default"]=s},cf1e:function(e,t,n){e.exports={menuText:"#bfcbd9",menuActiveText:"#409eff",subMenuActiveText:"#f4f4f5",menuBg:"#304156",menuHover:"#263445",subMenuBg:"#1f2d3d",subMenuHover:"#001528",sideBarWidth:"210px"}},d056:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-people",use:"icon-people-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},d49d:function(e,t,n){"use strict";n("da64")},d7ec:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-eye-open",use:"icon-eye-open-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);t["default"]=s},da64:function(e,t,n){},db03:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-assets",use:"icon-assets-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);t["default"]=s},dbc7:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-exit-fullscreen",use:"icon-exit-fullscreen-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},dcf8:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-nested",use:"icon-nested-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},e534:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-theme",use:"icon-theme-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},e7c8:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-tree-table",use:"icon-tree-table-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},eb1b:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-form",use:"icon-form-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},ec2f:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-car",use:"icon-car-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);t["default"]=s},ee1f:function(e,t,n){"use strict";n("cb7f")},f15b:function(e,t,n){"use strict";n("28e8")},f3da:function(e,t,n){},f43a:function(e,t,n){},f782:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-dashboard",use:"icon-dashboard-usage",viewBox:"0 0 128 100",content:''});o.a.add(s);t["default"]=s},f9a1:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-pdf",use:"icon-pdf-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);t["default"]=s}},[[0,"runtime","chunk-elementUI","chunk-libs"]]]); \ No newline at end of file diff --git a/CrazyCarBackground/crazy_car_background/static/js/app.bc61137e.js b/CrazyCarBackground/crazy_car_background/static/js/app.bc61137e.js deleted file mode 100644 index e2982d408..000000000 --- a/CrazyCarBackground/crazy_car_background/static/js/app.bc61137e.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["app"],{0:function(e,t,n){e.exports=n("56d7")},"036d":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));n("99af");var a=n("83d6"),i=n.n(a),c=i.a.title||"Vue Admin Template";function o(e){return e?"".concat(e," - ").concat(c):"".concat(c)}},"096e":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-skill",use:"icon-skill-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"0fca":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-match",use:"icon-match-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);t["default"]=s},"119c":function(e,t,n){"use strict";var a,i,c=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.item.hidden?e._e():n("div",[!e.hasOneShowingChild(e.item.children,e.item)||e.onlyOneChild.children&&!e.onlyOneChild.noShowingChildren||e.item.alwaysShow?n("el-submenu",{ref:"subMenu",attrs:{index:e.resolvePath(e.item.path),"popper-append-to-body":""}},[n("template",{slot:"title"},[e.item.meta?n("item",{attrs:{icon:e.item.meta&&e.item.meta.icon,title:e.item.meta.title}}):e._e()],1),e._l(e.item.children,(function(t){return n("sidebar-item",{key:t.path,staticClass:"nest-menu",attrs:{"is-nest":!0,item:t,"base-path":e.resolvePath(t.path)}})}))],2):[e.onlyOneChild.meta?n("app-link",{attrs:{to:e.resolvePath(e.onlyOneChild.path)}},[n("el-menu-item",{class:{"submenu-title-noDropdown":!e.isNest},attrs:{index:e.resolvePath(e.onlyOneChild.path)}},[n("item",{attrs:{icon:e.onlyOneChild.meta.icon||e.item.meta&&e.item.meta.icon,title:e.onlyOneChild.meta.title}})],1)],1):e._e()]],2)},o=[],s=n("5530"),r=(n("4de4"),n("d3b7"),n("df7c")),l=n.n(r),d=n("61f7"),u=(n("caad"),n("2532"),{name:"MenuItem",functional:!0,props:{icon:{type:String,default:""},title:{type:String,default:""}},render:function(e,t){var n=t.props,a=n.icon,i=n.title,c=[];return a&&(a.includes("el-icon")?c.push(e("i",{class:[a,"sub-el-icon"]})):c.push(e("svg-icon",{attrs:{"icon-class":a}}))),i&&c.push(e("span",{slot:"title"},[i])),c}}),h=u,v=(n("f15b"),n("2877")),m=Object(v["a"])(h,a,i,!1,null,"18eeea00",null),f=m.exports,p=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n(e.type,e._b({tag:"component"},"component",e.linkProps(e.to),!1),[e._t("default")],2)},w=[],g={props:{to:{type:String,required:!0}},computed:{isExternal:function(){return Object(d["a"])(this.to)},type:function(){return this.isExternal?"a":"router-link"}},methods:{linkProps:function(e){return this.isExternal?{href:e,target:"_blank",rel:"noopener"}:{to:e}}}},b=g,x=Object(v["a"])(b,p,w,!1,null,null,null),y=x.exports,z={computed:{device:function(){return this.$store.state.app.device}},mounted:function(){this.fixBugIniOS()},methods:{fixBugIniOS:function(){var e=this,t=this.$refs.subMenu;if(t){var n=t.handleMouseleave;t.handleMouseleave=function(t){"mobile"!==e.device&&n(t)}}}}},M={name:"SidebarItem",components:{Item:f,AppLink:y},mixins:[z],props:{item:{type:Object,required:!0},isNest:{type:Boolean,default:!1},basePath:{type:String,default:""}},data:function(){return this.onlyOneChild=null,{}},methods:{hasOneShowingChild:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,a=t.filter((function(t){return!t.hidden&&(e.onlyOneChild=t,!0)}));return 1===a.length||0===a.length&&(this.onlyOneChild=Object(s["a"])(Object(s["a"])({},n),{},{path:"",noShowingChildren:!0}),!0)},resolvePath:function(e){return Object(d["a"])(e)?e:Object(d["a"])(this.basePath)?this.basePath:l.a.resolve(this.basePath,e)}}},k=M,B=Object(v["a"])(k,c,o,!1,null,null,null);t["a"]=B.exports},"127c":function(e,t,n){"use strict";n("3b8e")},"12a5":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-shopping",use:"icon-shopping-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},1430:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-qq",use:"icon-qq-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},1779:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-bug",use:"icon-bug-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"17df":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-international",use:"icon-international-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"18f0":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-link",use:"icon-link-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"223d":function(e,t,n){"use strict";(function(e){var t=n("c7eb"),a=n("5530"),i=n("1da1"),c=(n("b0c0"),n("e9c4"),n("4de4"),n("d3b7"),n("a18c")),o=n("4360"),s=n("5c96"),r=n("323e"),l=n.n(r),d=(n("a5d8"),n("5f87")),u=n("036d"),h=n("c1f7");l.a.configure({showSpinner:!1});var v=["/login"];c["a"].beforeEach(function(){var n=Object(i["a"])(Object(t["a"])().mark((function n(i,r,h){var m,p,w;return Object(t["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(l.a.start(),document.title=Object(u["a"])(i.meta.title),m=Object(d["a"])(),!m){t.next=36;break}if("/login"!==i.path){t.next=9;break}h({path:"/"}),l.a.done(),t.next=34;break;case 9:if(p=o["a"].getters.name,!p){t.next=14;break}h(),t.next=34;break;case 14:return t.prev=14,t.next=17,o["a"].dispatch("user/getInfo");case 17:return t.next=19,o["a"].dispatch("user/getRoutes");case 19:o["a"].getters.menus.length<1&&(e.antRouter=[],h()),w=f(o["a"].getters.menus),console.log(" ==="+JSON.stringify(w)),c["a"].addRoutes(w),e.antRouter=w,h(Object(a["a"])(Object(a["a"])({},i),{},{replace:!0})),t.next=34;break;case 27:return t.prev=27,t.t0=t["catch"](14),t.next=31,o["a"].dispatch("user/resetToken");case 31:s["Message"].error(t.t0||"Has Error"),h("/login?redirect=".concat(i.path)),l.a.done();case 34:t.next=37;break;case 36:-1!==v.indexOf(i.path)?h():(h("/login?redirect=".concat(i.path)),l.a.done());case 37:case"end":return t.stop()}}),n,null,[[14,27]])})));return function(e,t,a){return n.apply(this,arguments)}}()),c["a"].afterEach((function(){l.a.done()}));var m=function(e){return function(t){return Promise.all([n.e("chunk-049e0741"),n.e("chunk-b4b350c8"),n.e("chunk-78c78430")]).then(function(){var a=[n("feca")("./".concat(e,".vue"))];t.apply(null,a)}.bind(this)).catch(n.oe)}};function f(e){var t=e.filter((function(e){if("Layout"===e.component)e.component=h["a"];else try{e.component=m(e.component)}catch(t){e.component=m("system/menu/index"),s["Message"].error("请查看控制台修改或者删除不存在的组件路径")}return e.children&&e.children.length&&(e.children=f(e.children)),!0}));return t}}).call(this,n("c8ba"))},2580:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-language",use:"icon-language-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"28e8":function(e,t,n){},"2a3d":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-password",use:"icon-password-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"2f11":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-peoples",use:"icon-peoples-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},3046:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-money",use:"icon-money-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"30c3":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-example",use:"icon-example-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},3289:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-list",use:"icon-list-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"331a":function(e,t){var n={admin:{token:"admin-token"},editor:{token:"editor-token"}},a={"admin-token":{roles:["admin"],introduction:"I am a super administrator",avatar:"https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif",name:"Super Admin"},"editor-token":{roles:["editor"],introduction:"I am an editor",avatar:"https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif",name:"Normal Editor"}};e.exports=[{url:"/vue-admin-template/user/login",type:"post",response:function(e){var t=e.body.username,a=n[t];return a?{code:2e4,data:a}:{code:60204,message:"Account and password are incorrect."}}},{url:"/vue-admin-template/user/info.*",type:"get",response:function(e){var t=e.query.token,n=a[t];return n?{code:2e4,data:n}:{code:50008,message:"Login failed, unable to get user details."}}},{url:"/vue-admin-template/user/logout",type:"post",response:function(e){return{code:2e4,data:"success"}}}]},3387:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-avatar0",use:"icon-avatar0-usage",viewBox:"0 0 1040 1024",content:''});o.a.add(s);t["default"]=s},"3b8e":function(e,t,n){},"3bdc":function(e,t,n){"use strict";n("f43a")},"3bea":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-user-icon",use:"icon-user-icon-usage",viewBox:"0 0 130 130",content:''});o.a.add(s);t["default"]=s},"404c":function(e,t,n){e.exports=n.p+"static/img/CrazyCarIcon.ed8a8aec.png"},"40d3":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-user-group-fill",use:"icon-user-group-fill-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);t["default"]=s},"42c8":function(e,t,n){"use strict";n("9d9b")},4360:function(e,t,n){"use strict";var a=n("2b0e"),i=n("2f62"),c=(n("b0c0"),{sidebar:function(e){return e.app.sidebar},device:function(e){return e.app.device},token:function(e){return e.user.token},avatar:function(e){return e.user.avatar},name:function(e){return e.user.name},menus:function(e){return e.user.menus}}),o=c,s=n("a78e"),r=n.n(s),l={sidebar:{opened:!r.a.get("sidebarStatus")||!!+r.a.get("sidebarStatus"),withoutAnimation:!1},device:"desktop"},d={TOGGLE_SIDEBAR:function(e){e.sidebar.opened=!e.sidebar.opened,e.sidebar.withoutAnimation=!1,e.sidebar.opened?r.a.set("sidebarStatus",1):r.a.set("sidebarStatus",0)},CLOSE_SIDEBAR:function(e,t){r.a.set("sidebarStatus",0),e.sidebar.opened=!1,e.sidebar.withoutAnimation=t},TOGGLE_DEVICE:function(e,t){e.device=t}},u={toggleSideBar:function(e){var t=e.commit;t("TOGGLE_SIDEBAR")},closeSideBar:function(e,t){var n=e.commit,a=t.withoutAnimation;n("CLOSE_SIDEBAR",a)},toggleDevice:function(e,t){var n=e.commit;n("TOGGLE_DEVICE",t)}},h={namespaced:!0,state:l,mutations:d,actions:u},v=n("83d6"),m=n.n(v),f=m.a.showSettings,p=m.a.fixedHeader,w=m.a.sidebarLogo,g={showSettings:f,fixedHeader:p,sidebarLogo:w},b={CHANGE_SETTING:function(e,t){var n=t.key,a=t.value;e.hasOwnProperty(n)&&(e[n]=a)}},x={changeSetting:function(e,t){var n=e.commit;n("CHANGE_SETTING",t)}},y={namespaced:!0,state:g,mutations:b,actions:x},z=(n("d3b7"),n("498a"),n("e9c4"),n("c24f")),M=n("5f87"),k=n("a18c"),B=function(){return{token:Object(M["a"])(),name:"",avatar:"",menus:""}},C=B(),H={RESET_STATE:function(e){Object.assign(e,B())},SET_TOKEN:function(e,t){e.token=t},SET_NAME:function(e,t){e.name=t},SET_AVATAR:function(e,t){e.avatar=t},SET_MENUS:function(e,t){e.menus=t}},V={login:function(e,t){var n=e.commit,a=t.username,i=t.password;return new Promise((function(e,t){Object(z["h"])({username:a.trim(),password:i}).then((function(t){n("SET_TOKEN",t.token),Object(M["c"])(t.token),e()})).catch((function(e){t(e)}))}))},getInfo:function(e){var t=e.commit,n=e.state;return new Promise((function(e,a){Object(z["c"])(n.token).then((function(n){if(!n)return a("Verification failed, please Login again.");console.log("++++++++ "+n);var i=n.roles,c=n.name,o=n.avatar;(!i||i.length<=0)&&a("getInfo: roles must be a non-null array!"),t("SET_NAME",c),t("SET_AVATAR",o),e(n)})).catch((function(e){a(e)}))}))},logout:function(e){var t=e.commit,n=e.state;return new Promise((function(e,a){Object(z["i"])(n.token).then((function(){Object(M["b"])(),Object(k["b"])(),t("RESET_STATE"),e()})).catch((function(e){a(e)}))}))},resetToken:function(e){var t=e.commit;return new Promise((function(e){Object(M["b"])(),t("RESET_STATE"),e()}))},getRoutes:function(e){var t=e.commit;e.state;return new Promise((function(e,n){Object(z["e"])().then((function(n){var a=n;console.log("++++++++ "+JSON.stringify(a)),t("SET_MENUS",a),e()})).catch((function(e){n(e)}))}))}},L={namespaced:!0,state:C,mutations:H,actions:V};a["default"].use(i["a"]);var S=new i["a"].Store({modules:{app:h,settings:y,user:L},getters:o});t["a"]=S},"47f1":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-table",use:"icon-table-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"47ff":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-message",use:"icon-message-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"4ad1":function(e,t,n){"use strict";n("f3da")},"4b0f":function(e,t,n){var a=n("6374").default,i=n("448a").default;n("99af"),n("b64b"),n("4d63"),n("ac1f"),n("2c3e"),n("25f0");var c=n("96eb"),o=n("8a60"),s=o.param2Obj,r=n("331a"),l=n("a0bc"),d=[].concat(i(r),i(l));function u(){function e(e){return function(t){var n=null;if(e instanceof Function){var a=t.body,i=t.type,o=t.url;n=e({method:i,body:JSON.parse(a),query:s(o)})}else n=e;return c.mock(n)}}c.XHR.prototype.proxy_send=c.XHR.prototype.send,c.XHR.prototype.send=function(){this.custom.xhr&&(this.custom.xhr.withCredentials=this.withCredentials||!1,this.responseType&&(this.custom.xhr.responseType=this.responseType)),this.proxy_send.apply(this,arguments)};var t,n=a(d);try{for(n.s();!(t=n.n()).done;){var i=t.value;c.mock(new RegExp(i.url),i.type||"get",e(i.response))}}catch(o){n.e(o)}finally{n.f()}}e.exports={mocks:d,mockXHR:u}},"4df5":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-eye",use:"icon-eye-usage",viewBox:"0 0 128 64",content:''});o.a.add(s);t["default"]=s},"51ff":function(e,t,n){var a={"./404.svg":"a14a","./assets.svg":"db03","./avatar.svg":"bec7","./avatar0.svg":"3387","./bug.svg":"1779","./car.svg":"ec2f","./chart.svg":"c829","./clipboard.svg":"bc35","./component.svg":"56d6","./dashboard.svg":"f782","./documentation.svg":"90fb","./drag.svg":"9bbf","./edit.svg":"aa46","./education.svg":"ad1c","./email.svg":"cbb7","./equipment.svg":"b596","./example.svg":"30c3","./excel.svg":"6599","./exit-fullscreen.svg":"dbc7","./eye-open.svg":"d7ec","./eye.svg":"4df5","./form.svg":"eb1b","./fullscreen.svg":"9921","./guide.svg":"6683","./icon.svg":"9d91","./international.svg":"17df","./language.svg":"2580","./link.svg":"18f0","./list.svg":"3289","./lock.svg":"ab00","./map.svg":"a13f","./match.svg":"0fca","./message.svg":"47ff","./money.svg":"3046","./nested.svg":"dcf8","./password.svg":"2a3d","./pdf.svg":"f9a1","./people.svg":"d056","./peoples.svg":"2f11","./qq.svg":"1430","./search.svg":"8e8d","./shopping.svg":"12a5","./size.svg":"8644","./skill.svg":"096e","./star.svg":"708a","./tab.svg":"8fb7","./table.svg":"47f1","./theme.svg":"e534","./tree-table.svg":"e7c8","./tree.svg":"93cd","./trial.svg":"533b","./user-group-fill.svg":"40d3","./user-icon.svg":"3bea","./user.svg":"b3b5","./version.svg":"8e37","./wechat.svg":"80da","./zip.svg":"8aa6"};function i(e){var t=c(e);return n(t)}function c(e){if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}i.keys=function(){return Object.keys(a)},i.resolve=c,e.exports=i,i.id="51ff"},"533b":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-trial",use:"icon-trial-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);t["default"]=s},"56d6":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-component",use:"icon-component-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"56d7":function(e,t,n){"use strict";n.r(t);n("e260"),n("e6cf"),n("cca6"),n("a79d");var a=n("2b0e"),i=(n("f5df1"),n("5c96")),c=n.n(i),o=(n("0fae"),n("b2d6")),s=n.n(o),r=(n("b20f"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"}},[n("router-view")],1)}),l=[],d={name:"App"},u=d,h=n("2877"),v=Object(h["a"])(u,r,l,!1,null,null,null),m=v.exports,f=n("4360"),p=n("a18c"),w=(n("d81d"),n("d3b7"),n("ddb0"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.isExternal?n("div",e._g({staticClass:"svg-external-icon svg-icon",style:e.styleExternalIcon},e.$listeners)):n("svg",e._g({class:e.svgClass,attrs:{"aria-hidden":"true"}},e.$listeners),[n("use",{attrs:{"xlink:href":e.iconName}})])}),g=[],b=n("61f7"),x={name:"SvgIcon",props:{iconClass:{type:String,required:!0},className:{type:String,default:""}},computed:{isExternal:function(){return Object(b["a"])(this.iconClass)},iconName:function(){return"#icon-".concat(this.iconClass)},svgClass:function(){return this.className?"svg-icon "+this.className:"svg-icon"},styleExternalIcon:function(){return{mask:"url(".concat(this.iconClass,") no-repeat 50% 50%"),"-webkit-mask":"url(".concat(this.iconClass,") no-repeat 50% 50%")}}}},y=x,z=(n("64df"),Object(h["a"])(y,w,g,!1,null,"f9f7fefc",null)),M=z.exports;a["default"].component("svg-icon",M);var k=n("51ff"),B=function(e){return e.keys().map(e)};B(k);n("223d");var C=n("4b0f"),H=C.mockXHR;H(),a["default"].use(c.a,{locale:s.a}),a["default"].config.productionTip=!1,new a["default"]({el:"#app",router:p["a"],store:f["a"],render:function(e){return e(m)}})},"5af5":function(e,t,n){"use strict";(function(e){var a=n("5530"),i=(n("99af"),n("2f62")),c=n("c463"),o=n("119c"),s=n("cf1e"),r=n.n(s);t["a"]={components:{SidebarItem:o["a"],Logo:c["a"]},computed:Object(a["a"])(Object(a["a"])({},Object(i["b"])(["sidebar"])),{},{routes:function(){return this.$router.options.routes.concat(e.antRouter)},activeMenu:function(){var e=this.$route,t=e.meta,n=e.path;return t.activeMenu?t.activeMenu:n},showLogo:function(){return this.$store.state.settings.sidebarLogo},variables:function(){return r.a},isCollapse:function(){return!this.sidebar.opened}})}}).call(this,n("c8ba"))},"5f87":function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return r}));var a=n("a78e"),i=n.n(a),c="vue_admin_template_token";function o(){return i.a.get(c)}function s(e){return i.a.set(c,e)}function r(){return i.a.remove(c)}},"61f7":function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return i}));n("ac1f"),n("00b4");function a(e){return/^(https?:|mailto:|tel:)/.test(e)}function i(e){return e.length>=0}},"64df":function(e,t,n){"use strict";n("7046")},6599:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-excel",use:"icon-excel-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},6683:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-guide",use:"icon-guide-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},7046:function(e,t,n){},"708a":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-star",use:"icon-star-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"80da":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-wechat",use:"icon-wechat-usage",viewBox:"0 0 128 110",content:''});o.a.add(s);t["default"]=s},"83d6":function(e,t){e.exports={title:"Crazy Car Background",fixedHeader:!1,sidebarLogo:!1}},8644:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-size",use:"icon-size-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"8a60":function(e,t,n){function a(e){var t=decodeURIComponent(e.split("?")[1]).replace(/\+/g," ");if(!t)return{};var n={},a=t.split("&");return a.forEach((function(e){var t=e.indexOf("=");if(-1!==t){var a=e.substring(0,t),i=e.substring(t+1,e.length);n[a]=i}})),n}n("ac1f"),n("5319"),n("d3b7"),n("159b"),e.exports={param2Obj:a}},"8aa6":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-zip",use:"icon-zip-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"8ccb":function(e,t,n){"use strict";n("a3b8")},"8e37":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-version",use:"icon-version-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);t["default"]=s},"8e8d":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-search",use:"icon-search-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"8fb7":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-tab",use:"icon-tab-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"90fb":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-documentation",use:"icon-documentation-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"93cd":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-tree",use:"icon-tree-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},9921:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-fullscreen",use:"icon-fullscreen-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"9bbf":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-drag",use:"icon-drag-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"9d91":function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-icon",use:"icon-icon-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},"9d9b":function(e,t,n){},a0bc:function(e,t,n){var a=n("96eb"),i=a.mock({"items|30":[{id:"@id",title:"@sentence(10, 20)","status|1":["published","draft","deleted"],author:"name",display_time:"@datetime",pageviews:"@integer(300, 5000)"}]});e.exports=[{url:"/vue-admin-template/table/list",type:"get",response:function(e){var t=i.items;return{code:2e4,data:{total:t.length,items:t}}}}]},a13f:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-map",use:"icon-map-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);t["default"]=s},a14a:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-404",use:"icon-404-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},a18c:function(e,t,n){"use strict";n.d(t,"b",(function(){return l}));n("d3b7"),n("3ca3"),n("ddb0");var a=n("2b0e"),i=n("8c4f"),c=n("c1f7");a["default"].use(i["a"]);var o=[{path:"/login",component:function(){return n.e("chunk-18180937").then(n.bind(null,"9ed6"))},hidden:!0},{path:"/404",component:function(){return n.e("chunk-94d3c3c4").then(n.bind(null,"8cdb"))},hidden:!0},{path:"/",component:c["a"],redirect:"/dashboard",children:[{path:"dashboard",name:"Dashboard",component:function(){return Promise.all([n.e("chunk-049e0741"),n.e("chunk-dbcc2fac")]).then(n.bind(null,"9406"))},meta:{title:"Dashboard",icon:"dashboard"}}]},{path:"/user",component:c["a"],children:[{path:"index",name:"User",component:function(){return n.e("chunk-dbac9424").then(n.bind(null,"e382"))},meta:{title:"User",icon:"user-icon"}}]},{path:"/version",component:c["a"],children:[{path:"index",name:"Version",component:function(){return Promise.all([n.e("chunk-b4b350c8"),n.e("chunk-42649637")]).then(n.bind(null,"9fe8"))},meta:{title:"Version",icon:"version"}}]},{path:"/assets",component:c["a"],children:[{path:"index",name:"Assets",component:function(){return n.e("chunk-1270eb89").then(n.bind(null,"a185"))},meta:{title:"Assets",icon:"assets"}}]},{path:"/avatar",component:c["a"],children:[{path:"index",name:"Avatar",component:function(){return n.e("chunk-ee464786").then(n.bind(null,"f201"))},meta:{title:"Avatar",icon:"avatar0"}}]},{path:"/equip",component:c["a"],children:[{path:"index",name:"Equip",component:function(){return n.e("chunk-5eb322d4").then(n.bind(null,"5d49"))},meta:{title:"Equip",icon:"equipment"}}]},{path:"/trial",component:c["a"],children:[{path:"index",name:"Trial",component:function(){return n.e("chunk-77c89dc1").then(n.bind(null,"42f1"))},meta:{title:"Trial",icon:"trial"}}]},{path:"/match",component:c["a"],children:[{path:"index",name:"Match",component:function(){return n.e("chunk-0e7c7202").then(n.bind(null,"9f50"))},meta:{title:"Match",icon:"match"}}]},{path:"external-link",component:c["a"],children:[{path:"https://github.com/TastSong/CrazyCar",meta:{title:"External Link",icon:"link"}}]},{path:"*",redirect:"/404",hidden:!0}],s=function(){return new i["a"]({scrollBehavior:function(){return{y:0}},routes:o})},r=s();function l(){var e=s();r.matcher=e.matcher}t["a"]=r},a3b8:function(e,t,n){},aa46:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-edit",use:"icon-edit-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},ab00:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-lock",use:"icon-lock-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},ad1c:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-education",use:"icon-education-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},b20f:function(e,t,n){e.exports={menuText:"#bfcbd9",menuActiveText:"#409eff",subMenuActiveText:"#f4f4f5",menuBg:"#304156",menuHover:"#263445",subMenuBg:"#1f2d3d",subMenuHover:"#001528",sideBarWidth:"210px"}},b3b5:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-user",use:"icon-user-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);t["default"]=s},b596:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-equipment",use:"icon-equipment-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);t["default"]=s},b775:function(e,t,n){"use strict";n("d3b7"),n("e9c4");var a=n("bc3a"),i=n.n(a),c=n("5c96"),o=n("4360"),s=n("5f87"),r=i.a.create({baseURL:"http://tastsong.top/",timeout:5e3});r.interceptors.request.use((function(e){return o["a"].getters.token&&(e.headers["Authorization"]=Object(s["a"])()),e}),(function(e){return console.log(e),Promise.reject(e)})),r.interceptors.response.use((function(e){var t=e.data;return 200!==t.code?(Object(c["Message"])({message:t.message||"Error",type:"error",duration:5e3}),203!==t.code&&204!==t.code||c["MessageBox"].confirm("You have been logged out, you can cancel to stay on this page, or log in again","Confirm logout",{confirmButtonText:"Re-Login",cancelButtonText:"Cancel",type:"warning"}).then((function(){o["a"].dispatch("user/resetToken").then((function(){location.reload()}))})),Promise.reject(new Error(t.message||"Error"))):(console.log("response : "+JSON.stringify(t.data)),t.data)}),(function(e){return console.log("err"+e),Object(c["Message"])({message:e.message,type:"error",duration:5e3}),Promise.reject(e)})),t["a"]=r},bc35:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-clipboard",use:"icon-clipboard-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},bec7:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-avatar",use:"icon-avatar-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);t["default"]=s},c1f7:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-wrapper",class:e.classObj},["mobile"===e.device&&e.sidebar.opened?n("div",{staticClass:"drawer-bg",on:{click:e.handleClickOutside}}):e._e(),n("sidebar",{staticClass:"sidebar-container"}),n("div",{staticClass:"main-container"},[n("div",{class:{"fixed-header":e.fixedHeader}},[n("navbar")],1),n("app-main")],1)],1)},i=[],c=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"navbar"},[a("hamburger",{staticClass:"hamburger-container",attrs:{"is-active":e.sidebar.opened},on:{toggleClick:e.toggleSideBar}}),a("breadcrumb",{staticClass:"breadcrumb-container"}),a("div",{staticClass:"right-menu"},[a("el-dropdown",{staticClass:"avatar-container",attrs:{trigger:"click"}},[a("div",{staticClass:"avatar-wrapper"},[a("img",{staticClass:"user-avatar",attrs:{src:n("404c")}}),a("i",{staticClass:"el-icon-caret-bottom"})]),a("el-dropdown-menu",{staticClass:"user-dropdown",attrs:{slot:"dropdown"},slot:"dropdown"},[a("router-link",{attrs:{to:"/"}},[a("el-dropdown-item",[e._v(" Home ")])],1),a("el-dropdown-item",{attrs:{divided:""},nativeOn:{click:function(t){return e.logout(t)}}},[a("span",{staticStyle:{display:"block"}},[e._v("Log Out")])])],1)],1)],1)],1)},o=[],s=n("c7eb"),r=n("1da1"),l=n("5530"),d=n("2f62"),u=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-breadcrumb",{staticClass:"app-breadcrumb",attrs:{separator:"/"}},[n("transition-group",{attrs:{name:"breadcrumb"}},e._l(e.levelList,(function(t,a){return n("el-breadcrumb-item",{key:t.path},["noRedirect"===t.redirect||a==e.levelList.length-1?n("span",{staticClass:"no-redirect"},[e._v(e._s(t.meta.title))]):n("a",{on:{click:function(n){return n.preventDefault(),e.handleLink(t)}}},[e._v(e._s(t.meta.title))])])})),1)],1)},h=[],v=(n("4de4"),n("d3b7"),n("99af"),n("b0c0"),n("498a"),n("bd11")),m=n.n(v),f={data:function(){return{levelList:null}},watch:{$route:function(){this.getBreadcrumb()}},created:function(){this.getBreadcrumb()},methods:{getBreadcrumb:function(){var e=this.$route.matched.filter((function(e){return e.meta&&e.meta.title})),t=e[0];this.isDashboard(t)||(e=[{path:"/dashboard",meta:{title:"Dashboard"}}].concat(e)),this.levelList=e.filter((function(e){return e.meta&&e.meta.title&&!1!==e.meta.breadcrumb}))},isDashboard:function(e){var t=e&&e.name;return!!t&&t.trim().toLocaleLowerCase()==="Dashboard".toLocaleLowerCase()},pathCompile:function(e){var t=this.$route.params,n=m.a.compile(e);return n(t)},handleLink:function(e){var t=e.redirect,n=e.path;t?this.$router.push(t):this.$router.push(this.pathCompile(n))}}},p=f,w=(n("ee1f"),n("2877")),g=Object(w["a"])(p,u,h,!1,null,"62cc9144",null),b=g.exports,x=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{padding:"0 15px"},on:{click:e.toggleClick}},[n("svg",{staticClass:"hamburger",class:{"is-active":e.isActive},attrs:{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64"}},[n("path",{attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 0 0 0-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0 0 14.4 7z"}})])])},y=[],z={name:"Hamburger",props:{isActive:{type:Boolean,default:!1}},methods:{toggleClick:function(){this.$emit("toggleClick")}}},M=z,k=(n("d49d"),Object(w["a"])(M,x,y,!1,null,"49e15297",null)),B=k.exports,C={components:{Breadcrumb:b,Hamburger:B},computed:Object(l["a"])({},Object(d["b"])(["sidebar","avatar"])),methods:{toggleSideBar:function(){this.$store.dispatch("app/toggleSideBar")},logout:function(){var e=this;return Object(r["a"])(Object(s["a"])().mark((function t(){return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$store.dispatch("user/logout");case 2:e.$router.push("/login?redirect=".concat(e.$route.fullPath));case 3:case"end":return t.stop()}}),t)})))()}}},H=C,V=(n("4ad1"),Object(w["a"])(H,c,o,!1,null,"43db5b55",null)),L=V.exports,S=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:{"has-logo":e.showLogo}},[e.showLogo?n("logo",{attrs:{collapse:e.isCollapse}}):e._e(),n("el-scrollbar",{attrs:{"wrap-class":"scrollbar-wrapper"}},[n("el-menu",{attrs:{"default-active":e.activeMenu,collapse:e.isCollapse,"background-color":e.variables.menuBg,"text-color":e.variables.menuText,"unique-opened":!1,"active-text-color":e.variables.menuActiveText,"collapse-transition":!1,mode:"vertical"}},e._l(e.routes,(function(e){return n("sidebar-item",{key:e.path,attrs:{item:e,"base-path":e.path}})})),1)],1)],1)},O=[],E=n("5af5"),_=E["a"],j=Object(w["a"])(_,S,O,!1,null,null,null),T=j.exports,A=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("section",{staticClass:"app-main"},[n("transition",{attrs:{name:"fade-transform",mode:"out-in"}},[n("router-view",{key:e.key})],1)],1)},F=[],$={name:"AppMain",computed:{key:function(){return this.$route.path}}},q=$,R=(n("42c8"),n("8ccb"),Object(w["a"])(q,A,F,!1,null,"64cf4d83",null)),D=R.exports,I=n("4360"),N=document,P=N.body,U=992,G={watch:{$route:function(e){"mobile"===this.device&&this.sidebar.opened&&I["a"].dispatch("app/closeSideBar",{withoutAnimation:!1})}},beforeMount:function(){window.addEventListener("resize",this.$_resizeHandler)},beforeDestroy:function(){window.removeEventListener("resize",this.$_resizeHandler)},mounted:function(){var e=this.$_isMobile();e&&(I["a"].dispatch("app/toggleDevice","mobile"),I["a"].dispatch("app/closeSideBar",{withoutAnimation:!0}))},methods:{$_isMobile:function(){var e=P.getBoundingClientRect();return e.width-1'});o.a.add(s);t["default"]=s},cb7f:function(e,t,n){},cbb7:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-email",use:"icon-email-usage",viewBox:"0 0 128 96",content:''});o.a.add(s);t["default"]=s},cf1e:function(e,t,n){e.exports={menuText:"#bfcbd9",menuActiveText:"#409eff",subMenuActiveText:"#f4f4f5",menuBg:"#304156",menuHover:"#263445",subMenuBg:"#1f2d3d",subMenuHover:"#001528",sideBarWidth:"210px"}},d056:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-people",use:"icon-people-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},d49d:function(e,t,n){"use strict";n("da64")},d7ec:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-eye-open",use:"icon-eye-open-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);t["default"]=s},da64:function(e,t,n){},db03:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-assets",use:"icon-assets-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);t["default"]=s},dbc7:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-exit-fullscreen",use:"icon-exit-fullscreen-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},dcf8:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-nested",use:"icon-nested-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},e534:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-theme",use:"icon-theme-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},e7c8:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-tree-table",use:"icon-tree-table-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},eb1b:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-form",use:"icon-form-usage",viewBox:"0 0 128 128",content:''});o.a.add(s);t["default"]=s},ec2f:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-car",use:"icon-car-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);t["default"]=s},ee1f:function(e,t,n){"use strict";n("cb7f")},f15b:function(e,t,n){"use strict";n("28e8")},f3da:function(e,t,n){},f43a:function(e,t,n){},f782:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-dashboard",use:"icon-dashboard-usage",viewBox:"0 0 128 100",content:''});o.a.add(s);t["default"]=s},f9a1:function(e,t,n){"use strict";n.r(t);var a=n("e017"),i=n.n(a),c=n("21a1"),o=n.n(c),s=new i.a({id:"icon-pdf",use:"icon-pdf-usage",viewBox:"0 0 1024 1024",content:''});o.a.add(s);t["default"]=s}},[[0,"runtime","chunk-elementUI","chunk-libs"]]]); \ No newline at end of file diff --git a/CrazyCarBackground/crazy_car_background/static/js/chunk-106c4c98.ba77252c.js b/CrazyCarBackground/crazy_car_background/static/js/chunk-106c4c98.ba77252c.js new file mode 100644 index 000000000..267a04547 --- /dev/null +++ b/CrazyCarBackground/crazy_car_background/static/js/chunk-106c4c98.ba77252c.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-106c4c98","chunk-b356edba","chunk-94d3c3c4","chunk-84a47a64"],{"0870":function(t,e,a){},"08a4":function(t,e,a){"use strict";a("3901")},"0a5f":function(t,e,a){"use strict";a("0870")},"0ed0":function(t,e,a){"use strict";a("423f")},"1e21":function(t,e,a){"use strict";var i=a("ed08");e["a"]={data:function(){return{$_sidebarElm:null,$_resizeHandler:null}},mounted:function(){var t=this;this.$_resizeHandler=Object(i["a"])((function(){t.chart&&t.chart.resize()}),100),this.$_initResizeEvent(),this.$_initSidebarResizeEvent()},beforeDestroy:function(){this.$_destroyResizeEvent(),this.$_destroySidebarResizeEvent()},activated:function(){this.$_initResizeEvent(),this.$_initSidebarResizeEvent()},deactivated:function(){this.$_destroyResizeEvent(),this.$_destroySidebarResizeEvent()},methods:{$_initResizeEvent:function(){window.addEventListener("resize",this.$_resizeHandler)},$_destroyResizeEvent:function(){window.removeEventListener("resize",this.$_resizeHandler)},$_sidebarResizeHandler:function(t){"width"===t.propertyName&&this.$_resizeHandler()},$_initSidebarResizeEvent:function(){this.$_sidebarElm=document.getElementsByClassName("sidebar-container")[0],this.$_sidebarElm&&this.$_sidebarElm.addEventListener("transitionend",this.$_sidebarResizeHandler)},$_destroySidebarResizeEvent:function(){this.$_sidebarElm&&this.$_sidebarElm.removeEventListener("transitionend",this.$_sidebarResizeHandler)}}}},"26fc":function(t,e,a){t.exports=a.p+"static/img/404_cloud.0f4bc32b.png"},2979:function(t,e,a){"use strict";a("34f8")},"32e7":function(t,e,a){"use strict";a("fbb1")},"34f8":function(t,e,a){},"371d":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("el-form",{ref:"form",attrs:{model:t.form,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"Activity name"}},[a("el-input",{model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}})],1),a("el-form-item",{attrs:{label:"Activity zone"}},[a("el-select",{attrs:{placeholder:"please select your zone"},model:{value:t.form.region,callback:function(e){t.$set(t.form,"region",e)},expression:"form.region"}},[a("el-option",{attrs:{label:"Zone one",value:"shanghai"}}),a("el-option",{attrs:{label:"Zone two",value:"beijing"}})],1)],1),a("el-form-item",{attrs:{label:"Activity time"}},[a("el-col",{attrs:{span:11}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"Pick a date"},model:{value:t.form.date1,callback:function(e){t.$set(t.form,"date1",e)},expression:"form.date1"}})],1),a("el-col",{staticClass:"line",attrs:{span:2}},[t._v("-")]),a("el-col",{attrs:{span:11}},[a("el-time-picker",{staticStyle:{width:"100%"},attrs:{type:"fixed-time",placeholder:"Pick a time"},model:{value:t.form.date2,callback:function(e){t.$set(t.form,"date2",e)},expression:"form.date2"}})],1)],1),a("el-form-item",{attrs:{label:"Instant delivery"}},[a("el-switch",{model:{value:t.form.delivery,callback:function(e){t.$set(t.form,"delivery",e)},expression:"form.delivery"}})],1),a("el-form-item",{attrs:{label:"Activity type"}},[a("el-checkbox-group",{model:{value:t.form.type,callback:function(e){t.$set(t.form,"type",e)},expression:"form.type"}},[a("el-checkbox",{attrs:{label:"Online activities",name:"type"}}),a("el-checkbox",{attrs:{label:"Promotion activities",name:"type"}}),a("el-checkbox",{attrs:{label:"Offline activities",name:"type"}}),a("el-checkbox",{attrs:{label:"Simple brand exposure",name:"type"}})],1)],1),a("el-form-item",{attrs:{label:"Resources"}},[a("el-radio-group",{model:{value:t.form.resource,callback:function(e){t.$set(t.form,"resource",e)},expression:"form.resource"}},[a("el-radio",{attrs:{label:"Sponsor"}}),a("el-radio",{attrs:{label:"Venue"}})],1)],1),a("el-form-item",{attrs:{label:"Activity form"}},[a("el-input",{attrs:{type:"textarea"},model:{value:t.form.desc,callback:function(e){t.$set(t.form,"desc",e)},expression:"form.desc"}})],1),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v("Create")]),a("el-button",{on:{click:t.onCancel}},[t._v("Cancel")])],1)],1)],1)},n=[],s={data:function(){return{form:{name:"",region:"",date1:"",date2:"",delivery:!1,type:[],resource:"",desc:""}}},methods:{onSubmit:function(){this.$message("submit!")},onCancel:function(){this.$message({message:"cancel!",type:"warning"})}}},r=s,o=(a("32e7"),a("2877")),l=Object(o["a"])(r,i,n,!1,null,"32c0383a",null);e["default"]=l.exports},3901:function(t,e,a){},"3e3b":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-row",{staticClass:"panel-group",attrs:{gutter:40}},[a("el-col",{staticClass:"card-panel-col",attrs:{xs:12,sm:12,lg:6}},[a("div",{staticClass:"card-panel"},[a("div",{staticClass:"card-panel-icon-wrapper icon-user"},[a("svg-icon",{attrs:{"icon-class":"user","class-name":"card-panel-icon"}})],1),a("div",{staticClass:"card-panel-description"},[a("div",{staticClass:"card-panel-text"},[t._v(" User Number ")]),a("count-to",{staticClass:"card-panel-num",attrs:{"start-val":0,"end-val":t.panelInfoData[0],duration:2600}})],1)])]),a("el-col",{staticClass:"card-panel-col",attrs:{xs:12,sm:12,lg:6}},[a("div",{staticClass:"card-panel"},[a("div",{staticClass:"card-panel-icon-wrapper icon-car"},[a("svg-icon",{attrs:{"icon-class":"car","class-name":"card-panel-icon"}})],1),a("div",{staticClass:"card-panel-description"},[a("div",{staticClass:"card-panel-text"},[t._v(" Equip Number ")]),a("count-to",{staticClass:"card-panel-num",attrs:{"start-val":0,"end-val":t.panelInfoData[1],duration:3e3}})],1)])]),a("el-col",{staticClass:"card-panel-col",attrs:{xs:12,sm:12,lg:6}},[a("div",{staticClass:"card-panel"},[a("div",{staticClass:"card-panel-icon-wrapper icon-avatar"},[a("svg-icon",{attrs:{"icon-class":"avatar","class-name":"card-panel-icon"}})],1),a("div",{staticClass:"card-panel-description"},[a("div",{staticClass:"card-panel-text"},[t._v(" Avatar Number ")]),a("count-to",{staticClass:"card-panel-num",attrs:{"start-val":0,"end-val":t.panelInfoData[2],duration:3200}})],1)])]),a("el-col",{staticClass:"card-panel-col",attrs:{xs:12,sm:12,lg:6}},[a("div",{staticClass:"card-panel"},[a("div",{staticClass:"card-panel-icon-wrapper icon-map"},[a("svg-icon",{attrs:{"icon-class":"map","class-name":"card-panel-icon"}})],1),a("div",{staticClass:"card-panel-description"},[a("div",{staticClass:"card-panel-text"},[t._v(" Map Number ")]),a("count-to",{staticClass:"card-panel-num",attrs:{"start-val":0,"end-val":t.panelInfoData[3],duration:3600}})],1)])])],1)},n=[],s=a("ec1b"),r=a.n(s),o={components:{CountTo:r.a},props:{panelInfoData:{type:Array,default:function(){return{}}}}},l=o,c=(a("08a4"),a("2877")),d=Object(c["a"])(l,i,n,!1,null,"e7433d3c",null);e["default"]=d.exports},"423f":function(t,e,a){},"42f1":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],key:t.tableKey,staticStyle:{width:"100%"},attrs:{data:t.list,border:"",fit:"","highlight-current-row":""},on:{"sort-change":t.sortChange}},[a("el-table-column",{attrs:{label:"Cid",prop:"cid",sortable:"custom",align:"center",width:"80","class-name":t.getSortClass("cid")},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(i.cid))])]}}])}),a("el-table-column",{attrs:{label:"Map Id","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(i.map_id))])]}}])}),a("el-table-column",{attrs:{label:"Class Name","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(i.class_name))])]}}])}),a("el-table-column",{attrs:{label:"Star","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(i.star))])]}}])}),a("el-table-column",{attrs:{label:"Limit Time","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(i.limit_time))])]}}])}),a("el-table-column",{attrs:{label:"Times","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(i.times))])]}}])}),a("el-table-column",{attrs:{label:"Water","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("el-switch",{on:{change:function(e){return t.handleHasWaterChange(i)}},model:{value:i.has_water,callback:function(e){t.$set(i,"has_water",e)},expression:"row.has_water"}})]}}])}),a("el-table-column",{attrs:{label:"Actions",align:"center",width:"230","class-name":"small-padding fixed-width"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.handleUpdate(i)}}},[t._v(" Edit ")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total>0"}],attrs:{total:t.total,page:t.listQuery.page,limit:t.listQuery.limit},on:{"update:page":function(e){return t.$set(t.listQuery,"page",e)},"update:limit":function(e){return t.$set(t.listQuery,"limit",e)},pagination:t.getList}}),a("el-dialog",{attrs:{title:"Update Time Trial",visible:t.dialogFormVisible},on:{"update:visible":function(e){t.dialogFormVisible=e}}},[a("el-form",{ref:"dataForm",staticStyle:{width:"400px","margin-left":"50px"},attrs:{rules:t.rules,model:t.temp,"label-position":"left","label-width":"108px"}},[a("el-form-item",{attrs:{label:"Class Name",prop:"class_name"}},[a("el-input",{model:{value:t.temp.class_name,callback:function(e){t.$set(t.temp,"class_name",e)},expression:"temp.class_name"}})],1),a("el-form-item",{attrs:{label:"Star",prop:"star"}},[a("el-input",{model:{value:t.temp.star,callback:function(e){t.$set(t.temp,"star",t._n(e))},expression:"temp.star"}})],1),a("el-form-item",{attrs:{label:"Map Id",prop:"map_id"}},[a("el-input",{model:{value:t.temp.map_id,callback:function(e){t.$set(t.temp,"map_id",t._n(e))},expression:"temp.map_id"}})],1),a("el-form-item",{attrs:{label:"Limit Time",prop:"limit_time"}},[a("el-input",{model:{value:t.temp.limit_time,callback:function(e){t.$set(t.temp,"limit_time",t._n(e))},expression:"temp.limit_time"}})],1),a("el-form-item",{attrs:{label:"Times",prop:"times"}},[a("el-input",{model:{value:t.temp.times,callback:function(e){t.$set(t.temp,"times",t._n(e))},expression:"temp.times"}})],1),a("el-form-item",{attrs:{label:"Water",prop:"has_water"}},[a("el-switch",{model:{value:t.temp.has_water,callback:function(e){t.$set(t.temp,"has_water",e)},expression:"temp.has_water"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.dialogFormVisible=!1}}},[t._v(" Cancel ")]),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.updateData()}}},[t._v(" Confirm ")])],1)],1),a("el-dialog",{attrs:{visible:t.dialogPvVisible,title:"Reading statistics"},on:{"update:visible":function(e){t.dialogPvVisible=e}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.pvData,border:"",fit:"","highlight-current-row":""}},[a("el-table-column",{attrs:{prop:"key",label:"Channel"}}),a("el-table-column",{attrs:{prop:"pv",label:"Pv"}})],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.dialogPvVisible=!1}}},[t._v("Confirm")])],1)],1)],1)},n=[],s=(a("4e82"),a("c740"),a("a434"),a("6724")),r=a("333d"),o=a("b775");function l(t){return Object(o["a"])({url:"/CrazyCarSpringBootServer/v2/Background/getTimeTrialInfos",method:"get",params:t})}function c(t){return Object(o["a"])({url:"/CrazyCarSpringBootServer/v2/Background/updtaeTimeTrialInfo",method:"post",data:t})}var d={name:"Trial",components:{Pagination:r["a"]},directives:{waves:s["a"]},filters:{},data:function(){return{tableKey:0,list:null,total:0,listLoading:!0,listQuery:{page:1,limit:20,importance:void 0,title:void 0,type:void 0,sort:"+cid"},sortOptions:[{label:"ID Ascending",key:"+cid"},{label:"ID Descending",key:"-cid"}],showReviewer:!1,temp:{cid:void 0,class_name:"",map_id:0,limit_time:0,star:0,times:0,has_water:!1},dialogFormVisible:!1,dialogPvVisible:!1,pvData:[],rules:{class_name:[{required:!0,message:"name is required",trigger:"change"}],star:[{required:!0,message:"star is required",type:"number",trigger:"change"}],map_id:[{required:!0,message:"map id is required",type:"number",trigger:"change"}],limit_time:[{required:!0,message:"limit time is required",type:"number",trigger:"change"}],times:[{required:!0,message:"times is required",type:"number",trigger:"change"}]},downloadLoading:!1}},created:function(){this.getList()},methods:{getList:function(){var t=this;this.listLoading=!0,l(this.listQuery).then((function(e){t.list=e.items,t.total=e.total,t.listLoading=!1}))},handleFilter:function(){this.listQuery.page=1,this.getList()},sortChange:function(t){var e=t.prop,a=t.order;"cid"===e&&this.sortByID(a)},sortByID:function(t){this.listQuery.sort="ascending"===t?"+cid":"-cid",this.handleFilter()},resetTemp:function(){this.temp={cid:void 0,class_name:"",map_id:0,limit_time:0,star:0,times:0,has_water:!1}},handleUpdate:function(t){var e=this;this.temp=Object.assign({},t),this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["dataForm"].clearValidate()}))},handleHasWaterChange:function(t){var e=this,a=Object.assign({},t);c(a).then((function(t){var a=e.list.findIndex((function(e){return e.cid===t.cid}));e.list.splice(a,1,t),e.$notify({title:"Success",message:"Update Successfully",type:"success",duration:2e3})}))},updateData:function(){var t=this;this.$refs["dataForm"].validate((function(e){if(e){var a=Object.assign({},t.temp);c(a).then((function(e){var a=t.list.findIndex((function(t){return t.cid===e.cid}));t.list.splice(a,1,e),t.dialogFormVisible=!1,t.$notify({title:"Success",message:"Update Successfully",type:"success",duration:2e3})}))}}))},getSortClass:function(t){var e=this.listQuery.sort;return e==="+".concat(t)?"ascending":"descending"}}},u=d,p=a("2877"),m=Object(p["a"])(u,i,n,!1,null,null,null);e["default"]=m.exports},"5d49":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],key:t.tableKey,staticStyle:{width:"100%"},attrs:{data:t.list,border:"",fit:"","highlight-current-row":""},on:{"sort-change":t.sortChange}},[a("el-table-column",{attrs:{label:"Eid",prop:"eid",sortable:"custom",align:"center",width:"80","class-name":t.getSortClass("eid")},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(i.eid))])]}}])}),a("el-table-column",{attrs:{label:"Rid","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(i.rid))])]}}])}),a("el-table-column",{attrs:{label:"Equip Name","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(i.equip_name))])]}}])}),a("el-table-column",{attrs:{label:"Star","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(i.star))])]}}])}),a("el-table-column",{attrs:{label:"Mass","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(i.mass))])]}}])}),a("el-table-column",{attrs:{label:"Power","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(i.power))])]}}])}),a("el-table-column",{attrs:{label:"Max Power","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(i.max_power))])]}}])}),a("el-table-column",{attrs:{label:"Wade","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("el-switch",{on:{change:function(e){return t.handleSwitchChange(i)}},model:{value:i.can_wade,callback:function(e){t.$set(i,"can_wade",e)},expression:"row.can_wade"}})]}}])}),a("el-table-column",{attrs:{label:"Show","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("el-switch",{on:{change:function(e){return t.handleSwitchChange(i)}},model:{value:i.is_show,callback:function(e){t.$set(i,"is_show",e)},expression:"row.is_show"}})]}}])}),a("el-table-column",{attrs:{label:"Actions",align:"center",width:"230","class-name":"small-padding fixed-width"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.handleUpdate(i)}}},[t._v(" Edit ")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total>0"}],attrs:{total:t.total,page:t.listQuery.page,limit:t.listQuery.limit},on:{"update:page":function(e){return t.$set(t.listQuery,"page",e)},"update:limit":function(e){return t.$set(t.listQuery,"limit",e)},pagination:t.getList}}),a("el-dialog",{attrs:{title:"Update Equip",visible:t.dialogFormVisible},on:{"update:visible":function(e){t.dialogFormVisible=e}}},[a("el-form",{ref:"dataForm",staticStyle:{width:"400px","margin-left":"50px"},attrs:{rules:t.rules,model:t.temp,"label-position":"left","label-width":"108px"}},[a("el-form-item",{attrs:{label:"Rid",prop:"rid"}},[a("el-input",{model:{value:t.temp.rid,callback:function(e){t.$set(t.temp,"rid",e)},expression:"temp.rid"}})],1),a("el-form-item",{attrs:{label:"Equip Name",prop:"equip_name"}},[a("el-input",{model:{value:t.temp.equip_name,callback:function(e){t.$set(t.temp,"equip_name",e)},expression:"temp.equip_name"}})],1),a("el-form-item",{attrs:{label:"Star",prop:"star"}},[a("el-input",{model:{value:t.temp.star,callback:function(e){t.$set(t.temp,"star",t._n(e))},expression:"temp.star"}})],1),a("el-form-item",{attrs:{label:"Mass",prop:"mass"}},[a("el-input",{model:{value:t.temp.mass,callback:function(e){t.$set(t.temp,"mass",t._n(e))},expression:"temp.mass"}})],1),a("el-form-item",{attrs:{label:"Power",prop:"power"}},[a("el-input",{model:{value:t.temp.power,callback:function(e){t.$set(t.temp,"power",t._n(e))},expression:"temp.power"}})],1),a("el-form-item",{attrs:{label:"Max Power",prop:"max_power"}},[a("el-input",{model:{value:t.temp.max_power,callback:function(e){t.$set(t.temp,"max_power",t._n(e))},expression:"temp.max_power"}})],1),a("el-form-item",{attrs:{label:"Wade",prop:"can_wade"}},[a("el-switch",{model:{value:t.temp.can_wade,callback:function(e){t.$set(t.temp,"can_wade",e)},expression:"temp.can_wade"}})],1),a("el-form-item",{attrs:{label:"Show",prop:"is_show"}},[a("el-switch",{model:{value:t.temp.is_show,callback:function(e){t.$set(t.temp,"is_show",e)},expression:"temp.is_show"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.dialogFormVisible=!1}}},[t._v(" Cancel ")]),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.updateData()}}},[t._v(" Confirm ")])],1)],1),a("el-dialog",{attrs:{visible:t.dialogPvVisible,title:"Reading statistics"},on:{"update:visible":function(e){t.dialogPvVisible=e}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.pvData,border:"",fit:"","highlight-current-row":""}},[a("el-table-column",{attrs:{prop:"key",label:"Channel"}}),a("el-table-column",{attrs:{prop:"pv",label:"Pv"}})],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.dialogPvVisible=!1}}},[t._v("Confirm")])],1)],1)],1)},n=[],s=(a("4e82"),a("c740"),a("a434"),a("6724")),r=a("333d"),o=a("b775");function l(t){return Object(o["a"])({url:"/CrazyCarSpringBootServer/v2/Background/getEqiupInfos",method:"get",params:t})}function c(t){return Object(o["a"])({url:"/CrazyCarSpringBootServer/v2/Background/updtaeEquipInfo",method:"post",data:t})}var d={name:"Equip",components:{Pagination:r["a"]},directives:{waves:s["a"]},filters:{},data:function(){return{tableKey:0,list:null,total:0,listLoading:!0,listQuery:{page:1,limit:20,importance:void 0,title:void 0,type:void 0,sort:"+eid"},sortOptions:[{label:"ID Ascending",key:"+eid"},{label:"ID Descending",key:"-eid"}],showReviewer:!1,temp:{eid:void 0,rid:"",equip_name:"",star:0,mass:0,power:0,max_power:0,can_wade:!1,is_show:!1},dialogFormVisible:!1,dialogPvVisible:!1,pvData:[],rules:{rid:[{required:!0,message:"rid is required",trigger:"change"}],equip_name:[{required:!0,message:"equip name is required",trigger:"change"}],star:[{required:!0,message:"star is required",type:"number",trigger:"change"}],mass:[{required:!0,message:"mass is required",type:"number",trigger:"change"}],max_power:[{required:!0,message:"max power is required",type:"number",trigger:"change"}],power:[{required:!0,message:"power is required",type:"number",trigger:"change"}]},downloadLoading:!1}},created:function(){this.getList()},methods:{getList:function(){var t=this;this.listLoading=!0,l(this.listQuery).then((function(e){t.list=e.items,t.total=e.total,t.listLoading=!1}))},handleFilter:function(){this.listQuery.page=1,this.getList()},sortChange:function(t){var e=t.prop,a=t.order;"eid"===e&&this.sortByID(a)},sortByID:function(t){this.listQuery.sort="ascending"===t?"+eid":"-eid",this.handleFilter()},resetTemp:function(){this.temp={eid:void 0,rid:"",equip_name:"",star:0,mass:0,power:0,max_power:0,can_wade:!1,is_show:!1}},handleUpdate:function(t){var e=this;this.temp=Object.assign({},t),this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["dataForm"].clearValidate()}))},handleSwitchChange:function(t){var e=this,a=Object.assign({},t);c(a).then((function(t){var a=e.list.findIndex((function(e){return e.eid===t.eid}));e.list.splice(a,1,t),e.$notify({title:"Success",message:"Update Successfully",type:"success",duration:2e3})}))},updateData:function(){var t=this;this.$refs["dataForm"].validate((function(e){if(e){var a=Object.assign({},t.temp);c(a).then((function(e){var a=t.list.findIndex((function(t){return t.eid===e.eid}));t.list.splice(a,1,e),t.dialogFormVisible=!1,t.$notify({title:"Success",message:"Update Successfully",type:"success",duration:2e3})}))}}))},getSortClass:function(t){var e=this.listQuery.sort;return e==="+".concat(t)?"ascending":"descending"}}},u=d,p=a("2877"),m=Object(p["a"])(u,i,n,!1,null,null,null);e["default"]=m.exports},"634d":function(t,e,a){"use strict";a("9344")},"79cf":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{class:t.className,style:{height:t.height,width:t.width}})},n=[],s=(a("b0c0"),a("313e")),r=a.n(s),o=a("1e21");a("817d");var l={mixins:[o["a"]],props:{className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"400px"},autoResize:{type:Boolean,default:!0},chartData:{type:Object,required:!0}},data:function(){return{chart:null}},watch:{chartData:{deep:!0,handler:function(t){this.setOptions(t)}}},mounted:function(){var t=this;this.$nextTick((function(){t.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=r.a.init(this.$el,"macarons"),this.setOptions(this.chartData)},setOptions:function(t){this.chart.clear(),this.chart.setOption({title:{text:t.name,x:"center",bottom:"-6"},xAxis:{data:t.date,boundaryGap:!1,axisTick:{show:!1}},grid:{left:10,right:10,bottom:20,top:30,containLabel:!0},tooltip:{trigger:"axis",axisPointer:{type:"cross"},padding:[5,10]},yAxis:{axisTick:{show:!1}},legend:{data:["data"]},series:[{smooth:!0,type:"line",itemStyle:{normal:{color:"#3888fa",lineStyle:{color:"#3888fa",width:2},areaStyle:{color:"#f3f8ff"}}},data:t.actualData,animationDuration:2800,animationEasing:"quadraticOut"}]})}}},c=l,d=a("2877"),u=Object(d["a"])(c,i,n,!1,null,null,null);e["default"]=u.exports},"8cdb":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"wscn-http404-container"},[a("div",{staticClass:"wscn-http404"},[t._m(0),a("div",{staticClass:"bullshit"},[a("div",{staticClass:"bullshit__oops"},[t._v("OOPS!")]),t._m(1),a("div",{staticClass:"bullshit__headline"},[t._v(t._s(t.message))]),a("div",{staticClass:"bullshit__info"},[t._v("Please check that the URL you entered is correct, or click the button below to return to the homepage.")]),a("a",{staticClass:"bullshit__return-home",attrs:{href:""}},[t._v("Back to home")])])])])},n=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"pic-404"},[i("img",{staticClass:"pic-404__parent",attrs:{src:a("a36b"),alt:"404"}}),i("img",{staticClass:"pic-404__child left",attrs:{src:a("26fc"),alt:"404"}}),i("img",{staticClass:"pic-404__child mid",attrs:{src:a("26fc"),alt:"404"}}),i("img",{staticClass:"pic-404__child right",attrs:{src:a("26fc"),alt:"404"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"bullshit__info"},[t._v("All rights reserved "),a("a",{staticStyle:{color:"#20a0ff"},attrs:{href:"https://wallstreetcn.com",target:"_blank"}},[t._v("wallstreetcn")])])}],s={name:"Page404",computed:{message:function(){return"The webmaster said that you can not enter this page..."}}},r=s,o=(a("0a5f"),a("2877")),l=Object(o["a"])(r,i,n,!1,null,"c095f994",null);e["default"]=l.exports},"8e8b":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{class:t.className,style:{height:t.height,width:t.width}})},n=[],s=a("313e"),r=a.n(s),o=a("1e21");a("817d");var l={mixins:[o["a"]],props:{className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"400px"},chartData:{type:Array,required:!0}},data:function(){return{chart:null}},watch:{chartData:{deep:!0,handler:function(t){this.setOptions(t)}}},mounted:function(){var t=this;this.$nextTick((function(){t.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=r.a.init(this.$el,"macarons"),this.setOptions(this.chartData)},setOptions:function(t){this.chart.setOption({title:{text:"计时赛和比赛近7天使用对比",x:"center",y:"bottom"},tooltip:{trigger:"item",formatter:"{a}
{b} : {c} ({d}%)"},legend:{left:"center",bottom:"40",data:["Time Trial","Match"]},series:[{name:"WEEKLY WRITE ARTICLES",type:"pie",roseType:"radius",radius:[34,140],center:["50%","38%"],data:[{value:t[0],name:"Time Trial"},{value:t[1],name:"Match"}],animationEasing:"cubicInOut",animationDuration:2600}]})}}},c=l,d=a("2877"),u=Object(d["a"])(c,i,n,!1,null,null,null);e["default"]=u.exports},9344:function(t,e,a){},9406:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"dashboard-editor-container"},[a("panel-group",{attrs:{"panel-info-data":t.panelInfoData}}),a("el-row",{staticStyle:{background:"#fff",padding:"16px 16px 0","margin-bottom":"32px"}},[a("line-chart",{attrs:{"chart-data":t.loginUserChartData}})],1),a("el-row",{attrs:{gutter:32}},[a("el-col",{attrs:{xs:24,sm:24,lg:8}},[a("div",{staticClass:"chart-wrapper"},[a("line-chart",{attrs:{"chart-data":t.timeTrialChartData}})],1)]),a("el-col",{attrs:{xs:24,sm:24,lg:8}},[a("div",{staticClass:"chart-wrapper"},[a("line-chart",{attrs:{"chart-data":t.matchChartData}})],1)]),a("el-col",{attrs:{xs:24,sm:24,lg:8}},[a("div",{staticClass:"chart-wrapper"},[a("pie-chart",{attrs:{"chart-data":t.timeTrialMatchData}})],1)])],1)],1)},n=[],s=a("79cf"),r=a("b775");function o(){return Object(r["a"])({url:"/CrazyCarSpringBootServer/v2/Background/getDashboardData",method:"get"})}var l=a("8e8b"),c=a("3e3b"),d={name:"DashboardAdmin",components:{LineChart:s["default"],PieChart:l["default"],PanelGroup:c["default"]},data:function(){return{loginUserChartData:{name:"",data:[0],actualData:[0]},timeTrialChartData:{name:"",data:[0],actualData:[0]},matchChartData:{name:"",data:[0],actualData:[0]},panelInfoData:[0,0,0,0],timeTrialMatchData:[0,0]}},created:function(){this.handleGetDashboardData()},methods:{handleGetDashboardData:function(){var t=this;this.loading=!0,o().then((function(e){var a=[];a.push(e.user_num),a.push(e.equip_num),a.push(e.avatar_num),a.push(e.map_num),t.panelInfoData=a;var i,n=e.login_user_num,s=[],r=[];for(i in n){var o=new Date(1e3*n[i].timestamp);s.push(o.getMonth()+1+"."+o.getDate()),r.push(n[i].count)}t.loginUserChartData={name:"用户登录数",date:s,actualData:r};var l,c=e.match_num,d=[],u=[];for(l in c){var p=new Date(1e3*c[l].timestamp);d.push(p.getMonth()+1+"."+p.getDate()),u.push(c[l].count)}t.timeTrialChartData={name:"比赛使用次数",date:d,actualData:u};var m,f=e.time_trial_num,h=[],g=[];for(m in f){var v=new Date(1e3*f[m].timestamp);h.push(v.getMonth()+1+"."+v.getDate()),g.push(f[m].count)}t.matchChartData={name:"计时赛使用次数",date:h,actualData:g};var b=[];b.push(e.time_trial_times),b.push(e.match_times),t.timeTrialMatchData=b}))},handleUpdate:function(){this.getDashboardData()}}},u=d,p=(a("e8c7"),a("2877")),m=Object(p["a"])(u,i,n,!1,null,"c9446d16",null);e["default"]=m.exports},"979f":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",{staticClass:"todoapp"},[a("header",{staticClass:"header"},[a("input",{staticClass:"new-todo",attrs:{autocomplete:"off",placeholder:"Todo List"},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.addTodo(e)}}})]),a("section",{directives:[{name:"show",rawName:"v-show",value:t.todos.length,expression:"todos.length"}],staticClass:"main"},[a("input",{staticClass:"toggle-all",attrs:{id:"toggle-all",type:"checkbox"},domProps:{checked:t.allChecked},on:{change:function(e){return t.toggleAll({done:!t.allChecked})}}}),a("label",{attrs:{for:"toggle-all"}}),a("ul",{staticClass:"todo-list"},t._l(t.filteredTodos,(function(e,i){return a("todo",{key:i,attrs:{todo:e},on:{toggleTodo:t.toggleTodo,editTodo:t.editTodo,deleteTodo:t.deleteTodo}})})),1)]),a("footer",{directives:[{name:"show",rawName:"v-show",value:t.todos.length,expression:"todos.length"}],staticClass:"footer"},[a("span",{staticClass:"todo-count"},[a("strong",[t._v(t._s(t.remaining))]),t._v(" "+t._s(t._f("pluralize")(t.remaining,"item"))+" left ")]),a("ul",{staticClass:"filters"},t._l(t.filters,(function(e,i){return a("li",{key:i},[a("a",{class:{selected:t.visibility===i},on:{click:function(e){e.preventDefault(),t.visibility=i}}},[t._v(t._s(t._f("capitalize")(i)))])])})),0)])])},n=[],s=(a("4de4"),a("d3b7"),a("fb6a"),a("e9c4"),a("498a"),a("a434"),a("159b"),a("c062")),r="todos",o={all:function(t){return t},active:function(t){return t.filter((function(t){return!t.done}))},completed:function(t){return t.filter((function(t){return t.done}))}},l=[{text:"star this repository",done:!1},{text:"fork this repository",done:!1},{text:"follow author",done:!1},{text:"vue-element-admin",done:!0},{text:"vue",done:!0},{text:"element-ui",done:!0},{text:"axios",done:!0},{text:"webpack",done:!0}],c={components:{Todo:s["default"]},filters:{pluralize:function(t,e){return 1===t?e:e+"s"},capitalize:function(t){return t.charAt(0).toUpperCase()+t.slice(1)}},data:function(){return{visibility:"all",filters:o,todos:l}},computed:{allChecked:function(){return this.todos.every((function(t){return t.done}))},filteredTodos:function(){return o[this.visibility](this.todos)},remaining:function(){return this.todos.filter((function(t){return!t.done})).length}},methods:{setLocalStorage:function(){window.localStorage.setItem(r,JSON.stringify(this.todos))},addTodo:function(t){var e=t.target.value;e.trim()&&(this.todos.push({text:e,done:!1}),this.setLocalStorage()),t.target.value=""},toggleTodo:function(t){t.done=!t.done,this.setLocalStorage()},deleteTodo:function(t){this.todos.splice(this.todos.indexOf(t),1),this.setLocalStorage()},editTodo:function(t){var e=t.todo,a=t.value;e.text=a,this.setLocalStorage()},clearCompleted:function(){this.todos=this.todos.filter((function(t){return!t.done})),this.setLocalStorage()},toggleAll:function(t){var e=this,a=t.done;this.todos.forEach((function(t){t.done=a,e.setLocalStorage()}))}}},d=c,u=(a("2979"),a("2877")),p=Object(u["a"])(d,i,n,!1,null,null,null);e["default"]=p.exports},"9ed6":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"login-container"},[a("el-form",{ref:"loginForm",staticClass:"login-form",attrs:{model:t.loginForm,rules:t.loginRules,"auto-complete":"on","label-position":"left"}},[a("div",{staticClass:"title-container"},[a("h3",{staticClass:"title"},[t._v("Crazy Car Background")])]),a("el-form-item",{attrs:{prop:"username"}},[a("span",{staticClass:"svg-container"},[a("svg-icon",{attrs:{"icon-class":"user-icon"}})],1),a("el-input",{ref:"username",attrs:{placeholder:"Username",name:"username",type:"text",tabindex:"1","auto-complete":"on"},model:{value:t.loginForm.username,callback:function(e){t.$set(t.loginForm,"username",e)},expression:"loginForm.username"}})],1),a("el-form-item",{attrs:{prop:"password"}},[a("span",{staticClass:"svg-container"},[a("svg-icon",{attrs:{"icon-class":"password"}})],1),a("el-input",{key:t.passwordType,ref:"password",attrs:{type:t.passwordType,placeholder:"Password",name:"password",tabindex:"2","auto-complete":"on"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleLogin(e)}},model:{value:t.loginForm.password,callback:function(e){t.$set(t.loginForm,"password",e)},expression:"loginForm.password"}}),a("span",{staticClass:"show-pwd",on:{click:t.showPwd}},[a("svg-icon",{attrs:{"icon-class":"password"===t.passwordType?"eye":"eye-open"}})],1)],1),a("el-button",{staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{loading:t.loading,type:"primary"},nativeOn:{click:function(e){return e.preventDefault(),t.handleLogin(e)}}},[t._v("Login")])],1)],1)},n=[],s=a("61f7"),r={name:"Login",data:function(){var t=function(t,e,a){Object(s["b"])(e)?a():a(new Error("Please enter the correct user name"))},e=function(t,e,a){e.length<6?a(new Error("The password can not be less than 6 digits")):a()};return{loginForm:{username:"",password:""},loginRules:{username:[{required:!0,trigger:"blur",validator:t}],password:[{required:!0,trigger:"blur",validator:e}]},loading:!1,passwordType:"password",redirect:void 0}},watch:{$route:{handler:function(t){this.redirect=t.query&&t.query.redirect},immediate:!0}},methods:{showPwd:function(){var t=this;"password"===this.passwordType?this.passwordType="":this.passwordType="password",this.$nextTick((function(){t.$refs.password.focus()}))},handleLogin:function(){var t=this;this.$refs.loginForm.validate((function(e){if(!e)return console.log("error submit!!"),!1;t.loading=!0,t.$store.dispatch("user/login",t.loginForm).then((function(){t.$router.push({path:"/welcome"}),t.loading=!1})).catch((function(){t.loading=!1}))}))}}},o=r,l=(a("634d"),a("c3c6"),a("2877")),c=Object(l["a"])(o,i,n,!1,null,"47c362bf",null);e["default"]=c.exports},"9f50":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],key:t.tableKey,staticStyle:{width:"100%"},attrs:{data:t.list,border:"",fit:"","highlight-current-row":""},on:{"sort-change":t.sortChange}},[a("el-table-column",{attrs:{label:"Cid",prop:"cid",sortable:"custom",align:"center",width:"80","class-name":t.getSortClass("cid")},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(i.cid))])]}}])}),a("el-table-column",{attrs:{label:"Map Id","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(i.map_id))])]}}])}),a("el-table-column",{attrs:{label:"Class Name","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(i.class_name))])]}}])}),a("el-table-column",{attrs:{label:"Star","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(i.star))])]}}])}),a("el-table-column",{attrs:{label:"Limit Time","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(i.limit_time))])]}}])}),a("el-table-column",{attrs:{label:"Times","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(i.times))])]}}])}),a("el-table-column",{attrs:{label:"Water","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("el-switch",{on:{change:function(e){return t.handleHasWaterChange(i)}},model:{value:i.has_water,callback:function(e){t.$set(i,"has_water",e)},expression:"row.has_water"}})]}}])}),a("el-table-column",{attrs:{label:"Actions",align:"center",width:"230","class-name":"small-padding fixed-width"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.handleUpdate(i)}}},[t._v(" Edit ")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total>0"}],attrs:{total:t.total,page:t.listQuery.page,limit:t.listQuery.limit},on:{"update:page":function(e){return t.$set(t.listQuery,"page",e)},"update:limit":function(e){return t.$set(t.listQuery,"limit",e)},pagination:t.getList}}),a("el-dialog",{attrs:{title:"Update Match",visible:t.dialogFormVisible},on:{"update:visible":function(e){t.dialogFormVisible=e}}},[a("el-form",{ref:"dataForm",staticStyle:{width:"400px","margin-left":"50px"},attrs:{rules:t.rules,model:t.temp,"label-position":"left","label-width":"108px"}},[a("el-form-item",{attrs:{label:"Class Name",prop:"class_name"}},[a("el-input",{model:{value:t.temp.class_name,callback:function(e){t.$set(t.temp,"class_name",e)},expression:"temp.class_name"}})],1),a("el-form-item",{attrs:{label:"Star",prop:"star"}},[a("el-input",{model:{value:t.temp.star,callback:function(e){t.$set(t.temp,"star",t._n(e))},expression:"temp.star"}})],1),a("el-form-item",{attrs:{label:"Map Id",prop:"map_id"}},[a("el-input",{model:{value:t.temp.map_id,callback:function(e){t.$set(t.temp,"map_id",t._n(e))},expression:"temp.map_id"}})],1),a("el-form-item",{attrs:{label:"Limit Time",prop:"limit_time"}},[a("el-input",{model:{value:t.temp.limit_time,callback:function(e){t.$set(t.temp,"limit_time",t._n(e))},expression:"temp.limit_time"}})],1),a("el-form-item",{attrs:{label:"Times",prop:"times"}},[a("el-input",{model:{value:t.temp.times,callback:function(e){t.$set(t.temp,"times",t._n(e))},expression:"temp.times"}})],1),a("el-form-item",{attrs:{label:"Water",prop:"has_water"}},[a("el-switch",{model:{value:t.temp.has_water,callback:function(e){t.$set(t.temp,"has_water",e)},expression:"temp.has_water"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.dialogFormVisible=!1}}},[t._v(" Cancel ")]),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.updateData()}}},[t._v(" Confirm ")])],1)],1),a("el-dialog",{attrs:{visible:t.dialogPvVisible,title:"Reading statistics"},on:{"update:visible":function(e){t.dialogPvVisible=e}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.pvData,border:"",fit:"","highlight-current-row":""}},[a("el-table-column",{attrs:{prop:"key",label:"Channel"}}),a("el-table-column",{attrs:{prop:"pv",label:"Pv"}})],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.dialogPvVisible=!1}}},[t._v("Confirm")])],1)],1)],1)},n=[],s=(a("4e82"),a("c740"),a("a434"),a("6724")),r=a("333d"),o=a("b775");function l(t){return Object(o["a"])({url:"/CrazyCarSpringBootServer/v2/Background/getMatchInfos",method:"get",params:t})}function c(t){return Object(o["a"])({url:"/CrazyCarSpringBootServer/v2/Background/updtaeMatchInfo",method:"post",data:t})}var d={name:"Match",components:{Pagination:r["a"]},directives:{waves:s["a"]},filters:{},data:function(){return{tableKey:0,list:null,total:0,listLoading:!0,listQuery:{page:1,limit:20,importance:void 0,title:void 0,type:void 0,sort:"+cid"},sortOptions:[{label:"ID Ascending",key:"+cid"},{label:"ID Descending",key:"-cid"}],showReviewer:!1,temp:{cid:void 0,class_name:"",map_id:0,limit_time:0,star:0,times:0,has_water:!1},dialogFormVisible:!1,dialogPvVisible:!1,pvData:[],rules:{class_name:[{required:!0,message:"name is required",trigger:"change"}],star:[{required:!0,message:"star is required",type:"number",trigger:"change"}],map_id:[{required:!0,message:"map id is required",type:"number",trigger:"change"}],limit_time:[{required:!0,message:"limit time is required",type:"number",trigger:"change"}],times:[{required:!0,message:"times is required",type:"number",trigger:"change"}]},downloadLoading:!1}},created:function(){this.getList()},methods:{getList:function(){var t=this;this.listLoading=!0,l(this.listQuery).then((function(e){t.list=e.items,t.total=e.total,t.listLoading=!1}))},handleFilter:function(){this.listQuery.page=1,this.getList()},sortChange:function(t){var e=t.prop,a=t.order;"cid"===e&&this.sortByID(a)},sortByID:function(t){this.listQuery.sort="ascending"===t?"+cid":"-cid",this.handleFilter()},resetTemp:function(){this.temp={cid:void 0,class_name:"",map_id:0,limit_time:0,star:0,times:0,has_water:!1}},handleUpdate:function(t){var e=this;this.temp=Object.assign({},t),this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["dataForm"].clearValidate()}))},handleHasWaterChange:function(t){var e=this,a=Object.assign({},t);c(a).then((function(t){var a=e.list.findIndex((function(e){return e.cid===t.cid}));e.list.splice(a,1,t),e.$notify({title:"Success",message:"Update Successfully",type:"success",duration:2e3})}))},updateData:function(){var t=this;this.$refs["dataForm"].validate((function(e){if(e){var a=Object.assign({},t.temp);c(a).then((function(e){var a=t.list.findIndex((function(t){return t.cid===e.cid}));t.list.splice(a,1,e),t.dialogFormVisible=!1,t.$notify({title:"Success",message:"Update Successfully",type:"success",duration:2e3})}))}}))},getSortClass:function(t){var e=this.listQuery.sort;return e==="+".concat(t)?"ascending":"descending"}}},u=d,p=a("2877"),m=Object(p["a"])(u,i,n,!1,null,null,null);e["default"]=m.exports},a185:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],key:t.tableKey,staticStyle:{width:"100%"},attrs:{data:t.list,border:"",fit:"","highlight-current-row":""},on:{"sort-change":t.sortChange}},[a("el-table-column",{attrs:{label:"ID",prop:"id",sortable:"custom",align:"center",width:"80","class-name":t.getSortClass("id")},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(i.id))])]}}])}),a("el-table-column",{attrs:{label:"Status",width:"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("el-switch",{on:{change:function(e){return t.handleIsOnChange(i)}},model:{value:i.is_on,callback:function(e){t.$set(i,"is_on",e)},expression:"row.is_on"}})]}}])}),a("el-table-column",{attrs:{label:"Url","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(i.url))])]}}])}),a("el-table-column",{attrs:{label:"Date",width:"150px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(t.parseTime(i.updata_time,"{y}-{m}-{d} {h}:{i}")))])]}}])}),a("el-table-column",{attrs:{label:"Actions",align:"center",width:"230","class-name":"small-padding fixed-width"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.handleUpdate(i)}}},[t._v(" Edit ")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total>0"}],attrs:{total:t.total,page:t.listQuery.page,limit:t.listQuery.limit},on:{"update:page":function(e){return t.$set(t.listQuery,"page",e)},"update:limit":function(e){return t.$set(t.listQuery,"limit",e)},pagination:t.getList}}),a("el-dialog",{attrs:{title:"Update Assets",visible:t.dialogFormVisible},on:{"update:visible":function(e){t.dialogFormVisible=e}}},[a("el-form",{ref:"dataForm",staticStyle:{width:"400px","margin-left":"50px"},attrs:{rules:t.rules,model:t.temp,"label-position":"left","label-width":"88px"}},[a("el-form-item",{attrs:{label:"Status",prop:"is_on"}},[a("el-switch",{model:{value:t.temp.is_on,callback:function(e){t.$set(t.temp,"is_on",e)},expression:"temp.is_on"}})],1),a("el-form-item",{attrs:{label:"Url",prop:"url"}},[a("el-input",{model:{value:t.temp.url,callback:function(e){t.$set(t.temp,"url",e)},expression:"temp.url"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.dialogFormVisible=!1}}},[t._v(" Cancel ")]),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.updateData()}}},[t._v(" Confirm ")])],1)],1),a("el-dialog",{attrs:{visible:t.dialogPvVisible,title:"Reading statistics"},on:{"update:visible":function(e){t.dialogPvVisible=e}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.pvData,border:"",fit:"","highlight-current-row":""}},[a("el-table-column",{attrs:{prop:"key",label:"Channel"}}),a("el-table-column",{attrs:{prop:"pv",label:"Pv"}})],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.dialogPvVisible=!1}}},[t._v("Confirm")])],1)],1)],1)},n=[],s=(a("4e82"),a("c740"),a("a434"),a("d81d"),a("6724")),r=a("ed08"),o=a("333d"),l=a("b775");function c(t){return Object(l["a"])({url:"/CrazyCarSpringBootServer/v2/Background/getAssetsInfo",method:"get",params:t})}function d(t){return Object(l["a"])({url:"/CrazyCarSpringBootServer/v2/Background/updateAssetsInfo",method:"post",data:t})}var u={name:"Assets",components:{Pagination:o["a"]},directives:{waves:s["a"]},filters:{},data:function(){return{tableKey:0,list:null,total:0,listLoading:!0,listQuery:{page:1,limit:20,importance:void 0,title:void 0,type:void 0,sort:"+id"},importanceOptions:[1,2,3],sortOptions:[{label:"ID Ascending",key:"+id"},{label:"ID Descending",key:"-id"}],platformOptions:["ios","Android","PC"],showReviewer:!1,temp:{id:void 0,url:"htt://",is_on:!1,updata_time:new Date},dialogFormVisible:!1,dialogPvVisible:!1,pvData:[],rules:{url:[{required:!0,message:"url is required",trigger:"change"}],is_on:[{required:!0,message:"status is required",trigger:"change"}],updata_time:[{required:!0,message:"time is required",trigger:"blur"}]},downloadLoading:!1,parseTime:r["c"]}},created:function(){this.getList()},methods:{getList:function(){var t=this;this.listLoading=!0,c(this.listQuery).then((function(e){t.list=e.items,t.total=e.total,t.listLoading=!1}))},handleFilter:function(){this.listQuery.page=1,this.getList()},sortChange:function(t){var e=t.prop,a=t.order;"id"===e&&this.sortByID(a)},sortByID:function(t){this.listQuery.sort="ascending"===t?"+id":"-id",this.handleFilter()},resetTemp:function(){this.temp={id:void 0,url:"http://",is_on:!1,updata_time:new Date}},handleUpdate:function(t){var e=this;this.temp=Object.assign({},t),this.temp.timestamp=new Date(this.temp.timestamp),this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["dataForm"].clearValidate()}))},handleIsOnChange:function(t){var e=this,a=Object.assign({},t);a.timestamp=+new Date(a.timestamp),d(a).then((function(t){var a=e.list.findIndex((function(e){return e.id===t.id}));e.list.splice(a,1,t),e.$notify({title:"Success",message:"Update Successfully",type:"success",duration:2e3})}))},updateData:function(){var t=this;this.$refs["dataForm"].validate((function(e){if(e){var a=Object.assign({},t.temp);a.timestamp=+new Date(a.timestamp),d(a).then((function(e){var a=t.list.findIndex((function(t){return t.id===e.id}));t.list.splice(a,1,e),t.dialogFormVisible=!1,t.$notify({title:"Success",message:"Update Successfully",type:"success",duration:2e3})}))}}))},formatJson:function(t){return this.list.map((function(e){return t.map((function(t){return"timestamp"===t?Object(r["c"])(e[t]):e[t]}))}))},getSortClass:function(t){var e=this.listQuery.sort;return e==="+".concat(t)?"ascending":"descending"}}},p=u,m=a("2877"),f=Object(m["a"])(p,i,n,!1,null,null,null);e["default"]=f.exports},a36b:function(t,e,a){t.exports=a.p+"static/img/404.a57b6f31.png"},b010:function(t,e,a){"use strict";a("f721")},b9ec:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},n=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"centered-container"},[a("div",{staticClass:"centered-content"},[a("h1",[t._v("Welcome to the Admin Panel")])])])}],s=(a("0ed0"),a("2877")),r={},o=Object(s["a"])(r,i,n,!1,null,null,null);e["default"]=o.exports},c062:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("li",{staticClass:"todo",class:{completed:t.todo.done,editing:t.editing}},[a("div",{staticClass:"view"},[a("input",{staticClass:"toggle",attrs:{type:"checkbox"},domProps:{checked:t.todo.done},on:{change:function(e){return t.toggleTodo(t.todo)}}}),a("label",{domProps:{textContent:t._s(t.todo.text)},on:{dblclick:function(e){t.editing=!0}}}),a("button",{staticClass:"destroy",on:{click:function(e){return t.deleteTodo(t.todo)}}})]),a("input",{directives:[{name:"show",rawName:"v-show",value:t.editing,expression:"editing"},{name:"focus",rawName:"v-focus",value:t.editing,expression:"editing"}],staticClass:"edit",domProps:{value:t.todo.text},on:{keyup:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.doneEdit(e)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:t.cancelEdit(e)}],blur:t.doneEdit}})])},n=[],s=(a("498a"),{name:"Todo",directives:{focus:function(t,e,a){var i=e.value,n=a.context;i&&n.$nextTick((function(){t.focus()}))}},props:{todo:{type:Object,default:function(){return{}}}},data:function(){return{editing:!1}},methods:{deleteTodo:function(t){this.$emit("deleteTodo",t)},editTodo:function(t){var e=t.todo,a=t.value;this.$emit("editTodo",{todo:e,value:a})},toggleTodo:function(t){this.$emit("toggleTodo",t)},doneEdit:function(t){var e=t.target.value.trim(),a=this.todo;e?this.editing&&(this.editTodo({todo:a,value:e}),this.editing=!1):this.deleteTodo({todo:a})},cancelEdit:function(t){t.target.value=this.todo.text,this.editing=!1}}}),r=s,o=a("2877"),l=Object(o["a"])(r,i,n,!1,null,null,null);e["default"]=l.exports},c3c6:function(t,e,a){"use strict";a("c88b")},c88b:function(t,e,a){},d78e:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("el-button",{attrs:{type:"primary"},on:{click:t.handleAddRole}},[t._v("New Role")]),a("el-table",{staticStyle:{width:"100%","margin-top":"30px"},attrs:{data:t.rolesList,border:""}},[a("el-table-column",{attrs:{align:"center",label:"Role Key",width:"220"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.uid)+" ")]}}])}),a("el-table-column",{attrs:{align:"center",label:"Role Name",width:"220"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.user_name)+" ")]}}])}),a("el-table-column",{attrs:{align:"header-center",label:"Description"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.des)+" ")]}}])}),a("el-table-column",{attrs:{align:"center",label:"Operations"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(a){return t.handleEdit(e)}}},[t._v("Edit")])]}}])})],1),a("el-dialog",{attrs:{visible:t.dialogVisible,title:"edit"===t.dialogType?"Edit Role":"New Role"},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("el-form",{attrs:{model:t.role,"label-width":"80px","label-position":"left"}},[a("el-form-item",{attrs:{label:"Name"}},[a("el-input",{attrs:{placeholder:"Role Name"},model:{value:t.role.user_name,callback:function(e){t.$set(t.role,"user_name",e)},expression:"role.user_name"}})],1),a("el-form-item",{attrs:{label:"Desc"}},[a("el-input",{attrs:{autosize:{minRows:2,maxRows:4},type:"textarea",placeholder:"Role Description"},model:{value:t.role.des,callback:function(e){t.$set(t.role,"des",e)},expression:"role.des"}})],1),a("el-form-item",{attrs:{label:"Menus"}},[a("el-tree",{ref:"tree",staticClass:"permission-tree",attrs:{"check-strictly":t.checkStrictly,data:t.routesData,props:t.defaultProps,"show-checkbox":"","node-key":"path"}})],1)],1),a("div",{staticStyle:{"text-align":"right"}},[a("el-button",{attrs:{type:"danger"},on:{click:function(e){t.dialogVisible=!1}}},[t._v("Cancel")]),a("el-button",{attrs:{type:"primary"},on:{click:t.confirmRole}},[t._v("Confirm")])],1)],1)],1)},n=[],s=a("5530");function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,i=new Array(e);a=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,r=!0,o=!1;return{s:function(){a=a.call(t)},n:function(){var t=a.next();return r=t.done,t},e:function(t){o=!0,s=t},f:function(){try{r||null==a["return"]||a["return"]()}finally{if(o)throw s}}}}var m=a("c7eb"),f=a("1da1"),h=(a("159b"),a("99af"),a("e9c4"),a("caad"),a("2532"),a("a434"),a("4de4"),a("df7c")),g=a.n(h),v=a("ed08"),b=[{redirect:"/form/index",level:0,parentId:0,path:"/form",component:"Layout",createTime:"2020-02-07T08:29:13.000+00:00",children:[{path:"form",component:"form/index",meta:{icon:"form",title:"Form"},name:"form"}],meta:{icon:"form",title:"Form"},id:68},{redirect:"/permission/role",path:"/permission",component:"Layout",children:[{path:"role",component:"permission/role",meta:{title:"Role Permission"},name:"RolePermission"}],meta:{icon:"lock",title:"Permission"},alwaysShow:!0}],y=b,_=a("c24f"),w={uid:"",user_name:"",des:"",routes:[]},x={data:function(){return{role:Object.assign({},w),routes:[],rolesList:[],dialogVisible:!1,dialogType:"new",checkStrictly:!1,defaultProps:{children:"children",label:"title"}}},computed:{routesData:function(){return this.generateRoutes(y)}},created:function(){this.getRoles()},methods:{getRoles:function(){var t=this;return Object(f["a"])(Object(m["a"])().mark((function e(){return Object(m["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(_["c"])();case 2:t.rolesList=e.sent;case 3:case"end":return e.stop()}}),e)})))()},generateRoutes:function(t){var e,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",i=[],n=p(t);try{for(n.s();!(e=n.n()).done;){var s=e.value;if(!s.hidden){var r=this.onlyOneShowingChild(s.children,s);s.children&&r&&!s.alwaysShow&&(s=r);var o={path:g.a.resolve(a,s.path),title:s.meta&&s.meta.title};s.children&&(o.children=this.generateRoutes(s.children,o.path)),i.push(o)}}}catch(l){n.e(l)}finally{n.f()}return i},generateArr:function(t){var e=this,a=[];return t.forEach((function(t){if(a.push(t),t.children){var i=e.generateArr(t.children);i.length>0&&(a=[].concat(u(a),u(i)))}})),a},handleAddRole:function(){this.role=Object.assign({},w),this.$refs.tree&&this.$refs.tree.setCheckedNodes([]),this.dialogType="new",this.dialogVisible=!0},handleEdit:function(t){var e=this;this.dialogType="edit",this.dialogVisible=!0,this.checkStrictly=!0,this.role=Object(v["b"])(t.row),console.log("+++++ handleEdit"+JSON.stringify(this.role)),this.$nextTick((function(){Object(_["e"])(e.role.uid).then((function(t){var a=t;console.log("+++++ getRoutes"+JSON.stringify(a));var i=e.generateRoutes(a);e.$refs.tree.setCheckedNodes(e.generateArr(i)),e.checkStrictly=!1}))}))},generateTree:function(t){var e,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",i=arguments.length>2?arguments[2]:void 0,n=[],s=p(t);try{for(s.s();!(e=s.n()).done;){var r=e.value,o=g.a.resolve(a,r.path);r.children&&(r.children=this.generateTree(r.children,o,i)),(i.includes(o)||r.children&&r.children.length>=1)&&n.push(r)}}catch(l){s.e(l)}finally{s.f()}return n},confirmRole:function(){var t=this;return Object(f["a"])(Object(m["a"])().mark((function e(){var a,i,n,s,r,o,l,c,d;return Object(m["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a="edit"===t.dialogType,i=t.$refs.tree.getCheckedKeys(),t.role.routes=t.generateTree(Object(v["b"])(t.serviceRoutes),"/",i),!a){e.next=19;break}return e.next=6,Object(_["i"])(t.role);case 6:n=e.sent,s=n.data,console.log("+++++ updateRole"+JSON.stringify(s)),r=0;case 10:if(!(rRole Key: ".concat(c,"\n
Role Name: ").concat(d,"
\n
Description: ").concat(l,"
\n "),type:"success"});case 26:case"end":return e.stop()}}),e)})))()},onlyOneShowingChild:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,a=null,i=t.filter((function(t){return!t.hidden}));return 1===i.length?(a=i[0],a.path=g.a.resolve(e.path,a.path),a):0===i.length&&(a=Object(s["a"])(Object(s["a"])({},e),{},{path:"",noShowingChildren:!0}),a)}}},k=x,C=(a("b010"),a("2877")),S=Object(C["a"])(k,i,n,!1,null,"2693cb34",null);e["default"]=S.exports},e382:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"User Name"},model:{value:t.listQuery.user_name,callback:function(e){t.$set(t.listQuery,"user_name",e)},expression:"listQuery.user_name"}}),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:t.handleFilter}},[t._v(" Search ")])],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],key:t.tableKey,staticStyle:{width:"100%"},attrs:{data:t.list,border:"",fit:"","highlight-current-row":""},on:{"sort-change":t.sortChange}},[a("el-table-column",{attrs:{label:"UID",prop:"uid",sortable:"custom",align:"center","min-width":"80","class-name":t.getSortClass("id")},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(i.uid))])]}}])}),a("el-table-column",{attrs:{label:"User Name","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(i.user_name))])]}}])}),a("el-table-column",{attrs:{label:"Star",align:"center","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(i.star))])]}}])}),a("el-table-column",{attrs:{label:"VIP",align:"center","class-name":"status-col","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v(" "+t._s(a.is_vip)+" ")]}}])}),a("el-table-column",{attrs:{label:"Actions",align:"center",width:"230","class-name":"small-padding fixed-width"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.handleUpdate(i)}}},[t._v(" Edit ")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total>0"}],attrs:{total:t.total,page:t.listQuery.page,limit:t.listQuery.limit},on:{"update:page":function(e){return t.$set(t.listQuery,"page",e)},"update:limit":function(e){return t.$set(t.listQuery,"limit",e)},pagination:t.getList}}),a("el-dialog",{attrs:{title:"Update User",visible:t.dialogFormVisible},on:{"update:visible":function(e){t.dialogFormVisible=e}}},[a("el-form",{ref:"dataForm",staticStyle:{"min-width":"140px","max-width":"400px","margin-left":"50px"},attrs:{rules:t.rules,model:t.temp,"label-position":"left","label-width":"70px"}},[a("el-form-item",{attrs:{label:"Name",prop:"user_name"}},[t._v(" "+t._s(t.temp.user_name)+" ")]),a("el-form-item",{attrs:{label:"Star",prop:"star"}},[a("el-input",{model:{value:t.temp.star,callback:function(e){t.$set(t.temp,"star",t._n(e))},expression:"temp.star"}})],1),a("el-form-item",{attrs:{label:"VIP",prop:"is_vip"}},[a("el-switch",{model:{value:t.temp.is_vip,callback:function(e){t.$set(t.temp,"is_vip",e)},expression:"temp.is_vip"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.dialogFormVisible=!1}}},[t._v(" Cancel ")]),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.updateData()}}},[t._v(" Confirm ")])],1)],1),a("el-dialog",{attrs:{visible:t.dialogPvVisible,title:"Reading statistics"},on:{"update:visible":function(e){t.dialogPvVisible=e}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.pvData,border:"",fit:"","highlight-current-row":""}},[a("el-table-column",{attrs:{prop:"key",label:"Channel"}}),a("el-table-column",{attrs:{prop:"pv",label:"Pv"}})],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.dialogPvVisible=!1}}},[t._v("Confirm")])],1)],1)],1)},n=[],s=(a("4e82"),a("c740"),a("a434"),a("d81d"),a("6724")),r=a("ed08"),o=a("333d"),l=a("c24f"),c={name:"User",components:{Pagination:o["a"]},directives:{waves:s["a"]},filters:{},data:function(){return{tableKey:0,list:null,total:0,listLoading:!1,listQuery:{page:1,limit:20,importance:void 0,title:void 0,user_name:void 0,sort:"+id"},importanceOptions:[1,2,3],sortOptions:[{label:"ID Ascending",key:"+id"},{label:"ID Descending",key:"-id"}],showReviewer:!1,temp:{uid:void 0,user_name:void 0,star:0,is_vip:!1},dialogFormVisible:!1,dialogPvVisible:!1,pvData:[],rules:{uid:[{required:!1,message:"type is not required",trigger:"change",readonly:!0}],user_name:[{required:!1,message:"type is not required",trigger:"change",readonly:!0}],star:[{required:!0,message:"star is required",type:"number",trigger:"change"}],is_vip:[{required:!0,message:"vip is required",trigger:"blur"}]},downloadLoading:!1,parseTime:r["c"]}},methods:{getList:function(){var t=this;this.listLoading=!0,this.list=null,this.total=0,Object(l["f"])(this.listQuery).then((function(e){t.list=e.items,t.total=e.total,t.listLoading=!1}))},handleFilter:function(){this.listQuery.page=1,this.getList()},sortChange:function(t){var e=t.prop,a=t.order;"id"===e&&this.sortByID(a)},sortByID:function(t){this.listQuery.sort="ascending"===t?"+id":"-id",this.handleFilter()},resetTemp:function(){this.temp={uid:void 0,user_name:"",star:0,is_vip:!1}},handleUpdate:function(t){var e=this;this.temp=Object.assign({},t),this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["dataForm"].clearValidate()}))},updateData:function(){var t=this;this.$refs["dataForm"].validate((function(e){if(e){var a=Object.assign({},t.temp);Object(l["j"])(a).then((function(e){var a=t.list.findIndex((function(t){return t.id===e.uid}));t.list.splice(a,1,e),t.dialogFormVisible=!1,t.$notify({title:"Success",message:"Update Successfully",type:"success",duration:2e3})}))}}))},formatJson:function(t){return this.list.map((function(e){return t.map((function(t){return"timestamp"===t?Object(r["c"])(e[t]):e[t]}))}))},getSortClass:function(t){var e=this.listQuery.sort;return e==="+".concat(t)?"ascending":"descending"}}},d=c,u=a("2877"),p=Object(u["a"])(d,i,n,!1,null,null,null);e["default"]=p.exports},e8c7:function(t,e,a){"use strict";a("fce2")},f201:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],key:t.tableKey,staticStyle:{width:"100%"},attrs:{data:t.list,border:"",fit:"","highlight-current-row":""},on:{"sort-change":t.sortChange}},[a("el-table-column",{attrs:{label:"Aid",prop:"aid",sortable:"custom",align:"center",width:"80","class-name":t.getSortClass("aid")},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(i.aid))])]}}])}),a("el-table-column",{attrs:{label:"Rid","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(i.rid))])]}}])}),a("el-table-column",{attrs:{label:"Avatar Name","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(i.avatar_name))])]}}])}),a("el-table-column",{attrs:{label:"Star","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(i.star))])]}}])}),a("el-table-column",{attrs:{label:"Actions",align:"center",width:"230","class-name":"small-padding fixed-width"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.handleUpdate(i)}}},[t._v(" Edit ")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total>0"}],attrs:{total:t.total,page:t.listQuery.page,limit:t.listQuery.limit},on:{"update:page":function(e){return t.$set(t.listQuery,"page",e)},"update:limit":function(e){return t.$set(t.listQuery,"limit",e)},pagination:t.getList}}),a("el-dialog",{attrs:{title:"Update Avatar",visible:t.dialogFormVisible},on:{"update:visible":function(e){t.dialogFormVisible=e}}},[a("el-form",{ref:"dataForm",staticStyle:{width:"400px","margin-left":"50px"},attrs:{rules:t.rules,model:t.temp,"label-position":"left","label-width":"108px"}},[a("el-form-item",{attrs:{label:"Rid",prop:"rid"}},[a("el-input",{model:{value:t.temp.rid,callback:function(e){t.$set(t.temp,"rid",e)},expression:"temp.rid"}})],1),a("el-form-item",{attrs:{label:"Avatar Name",prop:"avatar_name"}},[a("el-input",{model:{value:t.temp.avatar_name,callback:function(e){t.$set(t.temp,"avatar_name",e)},expression:"temp.avatar_name"}})],1),a("el-form-item",{attrs:{label:"Star",prop:"star"}},[a("el-input",{model:{value:t.temp.star,callback:function(e){t.$set(t.temp,"star",t._n(e))},expression:"temp.star"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.dialogFormVisible=!1}}},[t._v(" Cancel ")]),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.updateData()}}},[t._v(" Confirm ")])],1)],1),a("el-dialog",{attrs:{visible:t.dialogPvVisible,title:"Reading statistics"},on:{"update:visible":function(e){t.dialogPvVisible=e}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.pvData,border:"",fit:"","highlight-current-row":""}},[a("el-table-column",{attrs:{prop:"key",label:"Channel"}}),a("el-table-column",{attrs:{prop:"pv",label:"Pv"}})],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.dialogPvVisible=!1}}},[t._v("Confirm")])],1)],1)],1)},n=[],s=(a("4e82"),a("c740"),a("a434"),a("6724")),r=a("333d"),o=a("b775");function l(t){return Object(o["a"])({url:"/CrazyCarSpringBootServer/v2/Background/getAvatarInfos",method:"get",params:t})}function c(t){return Object(o["a"])({url:"/CrazyCarSpringBootServer/v2/Background/updateAvatarInfo",method:"post",data:t})}var d={name:"Avatar",components:{Pagination:r["a"]},directives:{waves:s["a"]},filters:{},data:function(){return{tableKey:0,list:null,total:0,listLoading:!0,listQuery:{page:1,limit:20,importance:void 0,title:void 0,type:void 0,sort:"+aid"},sortOptions:[{label:"ID Ascending",key:"+aid"},{label:"ID Descending",key:"-aid"}],showReviewer:!1,temp:{aid:void 0,rid:"",avatar_name:"",star:0},dialogFormVisible:!1,dialogPvVisible:!1,pvData:[],rules:{rid:[{required:!0,message:"rid is required",trigger:"change"}],avatar_name:[{required:!0,message:"avatar_name is required",trigger:"change"}],star:[{required:!0,message:"star is required",type:"number",trigger:"change"}]},downloadLoading:!1}},created:function(){this.getList()},methods:{getList:function(){var t=this;this.listLoading=!0,l(this.listQuery).then((function(e){t.list=e.items,t.total=e.total,t.listLoading=!1}))},handleFilter:function(){this.listQuery.page=1,this.getList()},sortChange:function(t){var e=t.prop,a=t.order;"aid"===e&&this.sortByID(a)},sortByID:function(t){this.listQuery.sort="ascending"===t?"+aid":"-aid",this.handleFilter()},resetTemp:function(){this.temp={aid:void 0,rid:"",avatar_name:"",star:0}},handleUpdate:function(t){var e=this;this.temp=Object.assign({},t),this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["dataForm"].clearValidate()}))},updateData:function(){var t=this;this.$refs["dataForm"].validate((function(e){if(e){var a=Object.assign({},t.temp);c(a).then((function(e){var a=t.list.findIndex((function(t){return t.aid===e.aid}));t.list.splice(a,1,e),t.dialogFormVisible=!1,t.$notify({title:"Success",message:"Update Successfully",type:"success",duration:2e3})}))}}))},getSortClass:function(t){var e=this.listQuery.sort;return e==="+".concat(t)?"ascending":"descending"}}},u=d,p=a("2877"),m=Object(p["a"])(u,i,n,!1,null,null,null);e["default"]=m.exports},f721:function(t,e,a){},fbb1:function(t,e,a){},fce2:function(t,e,a){},feca:function(t,e,a){var i={"./404.vue":"8cdb","./assets/index.vue":"a185","./avatar/index.vue":"f201","./dashboard/components/LineChart.vue":"79cf","./dashboard/components/PanelGroup.vue":"3e3b","./dashboard/components/PieChart.vue":"8e8b","./dashboard/components/TodoList/Todo.vue":"c062","./dashboard/components/TodoList/index.vue":"979f","./dashboard/index.vue":"9406","./equip/index.vue":"5d49","./form/index.vue":"371d","./login/index.vue":"9ed6","./match/index.vue":"9f50","./permission/role.vue":"d78e","./trial/index.vue":"42f1","./user/index.vue":"e382","./version/index.vue":"9fe8","./welcome/index.vue":"b9ec"};function n(t){var e=s(t);return a(e)}function s(t){if(!a.o(i,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return i[t]}n.keys=function(){return Object.keys(i)},n.resolve=s,t.exports=n,n.id="feca"}}]); \ No newline at end of file diff --git a/CrazyCarBackground/crazy_car_background/static/js/chunk-18180937.b531a5df.js b/CrazyCarBackground/crazy_car_background/static/js/chunk-18180937.b531a5df.js deleted file mode 100644 index bc3e822f1..000000000 --- a/CrazyCarBackground/crazy_car_background/static/js/chunk-18180937.b531a5df.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-18180937"],{"0bfe":function(e,t,n){},1262:function(e,t,n){},"4c5f":function(e,t,n){"use strict";n("1262")},"82b9":function(e,t,n){"use strict";n("0bfe")},"9ed6":function(e,t,n){"use strict";n.r(t);var s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"login-container"},[n("el-form",{ref:"loginForm",staticClass:"login-form",attrs:{model:e.loginForm,rules:e.loginRules,"auto-complete":"on","label-position":"left"}},[n("div",{staticClass:"title-container"},[n("h3",{staticClass:"title"},[e._v("Crazy Car Background")])]),n("el-form-item",{attrs:{prop:"username"}},[n("span",{staticClass:"svg-container"},[n("svg-icon",{attrs:{"icon-class":"user-icon"}})],1),n("el-input",{ref:"username",attrs:{placeholder:"Username",name:"username",type:"text",tabindex:"1","auto-complete":"on"},model:{value:e.loginForm.username,callback:function(t){e.$set(e.loginForm,"username",t)},expression:"loginForm.username"}})],1),n("el-form-item",{attrs:{prop:"password"}},[n("span",{staticClass:"svg-container"},[n("svg-icon",{attrs:{"icon-class":"password"}})],1),n("el-input",{key:e.passwordType,ref:"password",attrs:{type:e.passwordType,placeholder:"Password",name:"password",tabindex:"2","auto-complete":"on"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleLogin(t)}},model:{value:e.loginForm.password,callback:function(t){e.$set(e.loginForm,"password",t)},expression:"loginForm.password"}}),n("span",{staticClass:"show-pwd",on:{click:e.showPwd}},[n("svg-icon",{attrs:{"icon-class":"password"===e.passwordType?"eye":"eye-open"}})],1)],1),n("el-button",{staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{loading:e.loading,type:"primary"},nativeOn:{click:function(t){return t.preventDefault(),e.handleLogin(t)}}},[e._v("Login")])],1)],1)},o=[],r=n("61f7"),a={name:"Login",data:function(){var e=function(e,t,n){Object(r["b"])(t)?n():n(new Error("Please enter the correct user name"))},t=function(e,t,n){t.length<6?n(new Error("The password can not be less than 6 digits")):n()};return{loginForm:{username:"",password:""},loginRules:{username:[{required:!0,trigger:"blur",validator:e}],password:[{required:!0,trigger:"blur",validator:t}]},loading:!1,passwordType:"password",redirect:void 0}},watch:{$route:{handler:function(e){this.redirect=e.query&&e.query.redirect},immediate:!0}},methods:{showPwd:function(){var e=this;"password"===this.passwordType?this.passwordType="":this.passwordType="password",this.$nextTick((function(){e.$refs.password.focus()}))},handleLogin:function(){var e=this;this.$refs.loginForm.validate((function(t){if(!t)return console.log("error submit!!"),!1;e.loading=!0,e.$store.dispatch("user/login",e.loginForm).then((function(){e.$router.push({path:e.redirect||"/"}),e.loading=!1})).catch((function(){e.loading=!1}))}))}}},i=a,l=(n("4c5f"),n("82b9"),n("2877")),c=Object(l["a"])(i,s,o,!1,null,"18bd9fc3",null);t["default"]=c.exports}}]); \ No newline at end of file diff --git a/CrazyCarBackground/crazy_car_background/static/js/chunk-78c78430.b029e8c3.js b/CrazyCarBackground/crazy_car_background/static/js/chunk-78c78430.b029e8c3.js deleted file mode 100644 index 21992e7f5..000000000 --- a/CrazyCarBackground/crazy_car_background/static/js/chunk-78c78430.b029e8c3.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-78c78430","chunk-18180937","chunk-94d3c3c4"],{"0870":function(t,e,a){},"08a4":function(t,e,a){"use strict";a("3901")},"0a5f":function(t,e,a){"use strict";a("0870")},"0bfe":function(t,e,a){},1262:function(t,e,a){},"1e21":function(t,e,a){"use strict";var i=a("ed08");e["a"]={data:function(){return{$_sidebarElm:null,$_resizeHandler:null}},mounted:function(){var t=this;this.$_resizeHandler=Object(i["a"])((function(){t.chart&&t.chart.resize()}),100),this.$_initResizeEvent(),this.$_initSidebarResizeEvent()},beforeDestroy:function(){this.$_destroyResizeEvent(),this.$_destroySidebarResizeEvent()},activated:function(){this.$_initResizeEvent(),this.$_initSidebarResizeEvent()},deactivated:function(){this.$_destroyResizeEvent(),this.$_destroySidebarResizeEvent()},methods:{$_initResizeEvent:function(){window.addEventListener("resize",this.$_resizeHandler)},$_destroyResizeEvent:function(){window.removeEventListener("resize",this.$_resizeHandler)},$_sidebarResizeHandler:function(t){"width"===t.propertyName&&this.$_resizeHandler()},$_initSidebarResizeEvent:function(){this.$_sidebarElm=document.getElementsByClassName("sidebar-container")[0],this.$_sidebarElm&&this.$_sidebarElm.addEventListener("transitionend",this.$_sidebarResizeHandler)},$_destroySidebarResizeEvent:function(){this.$_sidebarElm&&this.$_sidebarElm.removeEventListener("transitionend",this.$_sidebarResizeHandler)}}}},"26fc":function(t,e,a){t.exports=a.p+"static/img/404_cloud.0f4bc32b.png"},2979:function(t,e,a){"use strict";a("34f8")},"32e7":function(t,e,a){"use strict";a("fbb1")},"34f8":function(t,e,a){},"371d":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("el-form",{ref:"form",attrs:{model:t.form,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"Activity name"}},[a("el-input",{model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}})],1),a("el-form-item",{attrs:{label:"Activity zone"}},[a("el-select",{attrs:{placeholder:"please select your zone"},model:{value:t.form.region,callback:function(e){t.$set(t.form,"region",e)},expression:"form.region"}},[a("el-option",{attrs:{label:"Zone one",value:"shanghai"}}),a("el-option",{attrs:{label:"Zone two",value:"beijing"}})],1)],1),a("el-form-item",{attrs:{label:"Activity time"}},[a("el-col",{attrs:{span:11}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"Pick a date"},model:{value:t.form.date1,callback:function(e){t.$set(t.form,"date1",e)},expression:"form.date1"}})],1),a("el-col",{staticClass:"line",attrs:{span:2}},[t._v("-")]),a("el-col",{attrs:{span:11}},[a("el-time-picker",{staticStyle:{width:"100%"},attrs:{type:"fixed-time",placeholder:"Pick a time"},model:{value:t.form.date2,callback:function(e){t.$set(t.form,"date2",e)},expression:"form.date2"}})],1)],1),a("el-form-item",{attrs:{label:"Instant delivery"}},[a("el-switch",{model:{value:t.form.delivery,callback:function(e){t.$set(t.form,"delivery",e)},expression:"form.delivery"}})],1),a("el-form-item",{attrs:{label:"Activity type"}},[a("el-checkbox-group",{model:{value:t.form.type,callback:function(e){t.$set(t.form,"type",e)},expression:"form.type"}},[a("el-checkbox",{attrs:{label:"Online activities",name:"type"}}),a("el-checkbox",{attrs:{label:"Promotion activities",name:"type"}}),a("el-checkbox",{attrs:{label:"Offline activities",name:"type"}}),a("el-checkbox",{attrs:{label:"Simple brand exposure",name:"type"}})],1)],1),a("el-form-item",{attrs:{label:"Resources"}},[a("el-radio-group",{model:{value:t.form.resource,callback:function(e){t.$set(t.form,"resource",e)},expression:"form.resource"}},[a("el-radio",{attrs:{label:"Sponsor"}}),a("el-radio",{attrs:{label:"Venue"}})],1)],1),a("el-form-item",{attrs:{label:"Activity form"}},[a("el-input",{attrs:{type:"textarea"},model:{value:t.form.desc,callback:function(e){t.$set(t.form,"desc",e)},expression:"form.desc"}})],1),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v("Create")]),a("el-button",{on:{click:t.onCancel}},[t._v("Cancel")])],1)],1)],1)},n=[],s={data:function(){return{form:{name:"",region:"",date1:"",date2:"",delivery:!1,type:[],resource:"",desc:""}}},methods:{onSubmit:function(){this.$message("submit!")},onCancel:function(){this.$message({message:"cancel!",type:"warning"})}}},r=s,o=(a("32e7"),a("2877")),l=Object(o["a"])(r,i,n,!1,null,"32c0383a",null);e["default"]=l.exports},3901:function(t,e,a){},"3e3b":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-row",{staticClass:"panel-group",attrs:{gutter:40}},[a("el-col",{staticClass:"card-panel-col",attrs:{xs:12,sm:12,lg:6}},[a("div",{staticClass:"card-panel"},[a("div",{staticClass:"card-panel-icon-wrapper icon-user"},[a("svg-icon",{attrs:{"icon-class":"user","class-name":"card-panel-icon"}})],1),a("div",{staticClass:"card-panel-description"},[a("div",{staticClass:"card-panel-text"},[t._v(" User Number ")]),a("count-to",{staticClass:"card-panel-num",attrs:{"start-val":0,"end-val":t.panelInfoData[0],duration:2600}})],1)])]),a("el-col",{staticClass:"card-panel-col",attrs:{xs:12,sm:12,lg:6}},[a("div",{staticClass:"card-panel"},[a("div",{staticClass:"card-panel-icon-wrapper icon-car"},[a("svg-icon",{attrs:{"icon-class":"car","class-name":"card-panel-icon"}})],1),a("div",{staticClass:"card-panel-description"},[a("div",{staticClass:"card-panel-text"},[t._v(" Equip Number ")]),a("count-to",{staticClass:"card-panel-num",attrs:{"start-val":0,"end-val":t.panelInfoData[1],duration:3e3}})],1)])]),a("el-col",{staticClass:"card-panel-col",attrs:{xs:12,sm:12,lg:6}},[a("div",{staticClass:"card-panel"},[a("div",{staticClass:"card-panel-icon-wrapper icon-avatar"},[a("svg-icon",{attrs:{"icon-class":"avatar","class-name":"card-panel-icon"}})],1),a("div",{staticClass:"card-panel-description"},[a("div",{staticClass:"card-panel-text"},[t._v(" Avatar Number ")]),a("count-to",{staticClass:"card-panel-num",attrs:{"start-val":0,"end-val":t.panelInfoData[2],duration:3200}})],1)])]),a("el-col",{staticClass:"card-panel-col",attrs:{xs:12,sm:12,lg:6}},[a("div",{staticClass:"card-panel"},[a("div",{staticClass:"card-panel-icon-wrapper icon-map"},[a("svg-icon",{attrs:{"icon-class":"map","class-name":"card-panel-icon"}})],1),a("div",{staticClass:"card-panel-description"},[a("div",{staticClass:"card-panel-text"},[t._v(" Map Number ")]),a("count-to",{staticClass:"card-panel-num",attrs:{"start-val":0,"end-val":t.panelInfoData[3],duration:3600}})],1)])])],1)},n=[],s=a("ec1b"),r=a.n(s),o={components:{CountTo:r.a},props:{panelInfoData:{type:Array,default:function(){return{}}}}},l=o,c=(a("08a4"),a("2877")),u=Object(c["a"])(l,i,n,!1,null,"e7433d3c",null);e["default"]=u.exports},"42f1":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],key:t.tableKey,staticStyle:{width:"100%"},attrs:{data:t.list,border:"",fit:"","highlight-current-row":""},on:{"sort-change":t.sortChange}},[a("el-table-column",{attrs:{label:"Cid",prop:"cid",sortable:"custom",align:"center",width:"80","class-name":t.getSortClass("cid")},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(i.cid))])]}}])}),a("el-table-column",{attrs:{label:"Map Id","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(i.map_id))])]}}])}),a("el-table-column",{attrs:{label:"Class Name","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(i.class_name))])]}}])}),a("el-table-column",{attrs:{label:"Star","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(i.star))])]}}])}),a("el-table-column",{attrs:{label:"Limit Time","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(i.limit_time))])]}}])}),a("el-table-column",{attrs:{label:"Times","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(i.times))])]}}])}),a("el-table-column",{attrs:{label:"Water","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("el-switch",{on:{change:function(e){return t.handleHasWaterChange(i)}},model:{value:i.has_water,callback:function(e){t.$set(i,"has_water",e)},expression:"row.has_water"}})]}}])}),a("el-table-column",{attrs:{label:"Actions",align:"center",width:"230","class-name":"small-padding fixed-width"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.handleUpdate(i)}}},[t._v(" Edit ")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total>0"}],attrs:{total:t.total,page:t.listQuery.page,limit:t.listQuery.limit},on:{"update:page":function(e){return t.$set(t.listQuery,"page",e)},"update:limit":function(e){return t.$set(t.listQuery,"limit",e)},pagination:t.getList}}),a("el-dialog",{attrs:{title:"Update Time Trial",visible:t.dialogFormVisible},on:{"update:visible":function(e){t.dialogFormVisible=e}}},[a("el-form",{ref:"dataForm",staticStyle:{width:"400px","margin-left":"50px"},attrs:{rules:t.rules,model:t.temp,"label-position":"left","label-width":"108px"}},[a("el-form-item",{attrs:{label:"Class Name",prop:"class_name"}},[a("el-input",{model:{value:t.temp.class_name,callback:function(e){t.$set(t.temp,"class_name",e)},expression:"temp.class_name"}})],1),a("el-form-item",{attrs:{label:"Star",prop:"star"}},[a("el-input",{model:{value:t.temp.star,callback:function(e){t.$set(t.temp,"star",t._n(e))},expression:"temp.star"}})],1),a("el-form-item",{attrs:{label:"Map Id",prop:"map_id"}},[a("el-input",{model:{value:t.temp.map_id,callback:function(e){t.$set(t.temp,"map_id",t._n(e))},expression:"temp.map_id"}})],1),a("el-form-item",{attrs:{label:"Limit Time",prop:"limit_time"}},[a("el-input",{model:{value:t.temp.limit_time,callback:function(e){t.$set(t.temp,"limit_time",t._n(e))},expression:"temp.limit_time"}})],1),a("el-form-item",{attrs:{label:"Times",prop:"times"}},[a("el-input",{model:{value:t.temp.times,callback:function(e){t.$set(t.temp,"times",t._n(e))},expression:"temp.times"}})],1),a("el-form-item",{attrs:{label:"Water",prop:"has_water"}},[a("el-switch",{model:{value:t.temp.has_water,callback:function(e){t.$set(t.temp,"has_water",e)},expression:"temp.has_water"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.dialogFormVisible=!1}}},[t._v(" Cancel ")]),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.updateData()}}},[t._v(" Confirm ")])],1)],1),a("el-dialog",{attrs:{visible:t.dialogPvVisible,title:"Reading statistics"},on:{"update:visible":function(e){t.dialogPvVisible=e}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.pvData,border:"",fit:"","highlight-current-row":""}},[a("el-table-column",{attrs:{prop:"key",label:"Channel"}}),a("el-table-column",{attrs:{prop:"pv",label:"Pv"}})],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.dialogPvVisible=!1}}},[t._v("Confirm")])],1)],1)],1)},n=[],s=(a("4e82"),a("c740"),a("a434"),a("6724")),r=a("333d"),o=a("b775");function l(t){return Object(o["a"])({url:"/CrazyCarSpringBootServer/v2/Background/getTimeTrialInfos",method:"get",params:t})}function c(t){return Object(o["a"])({url:"/CrazyCarSpringBootServer/v2/Background/updtaeTimeTrialInfo",method:"post",data:t})}var u={name:"Trial",components:{Pagination:r["a"]},directives:{waves:s["a"]},filters:{},data:function(){return{tableKey:0,list:null,total:0,listLoading:!0,listQuery:{page:1,limit:20,importance:void 0,title:void 0,type:void 0,sort:"+cid"},sortOptions:[{label:"ID Ascending",key:"+cid"},{label:"ID Descending",key:"-cid"}],showReviewer:!1,temp:{cid:void 0,class_name:"",map_id:0,limit_time:0,star:0,times:0,has_water:!1},dialogFormVisible:!1,dialogPvVisible:!1,pvData:[],rules:{class_name:[{required:!0,message:"name is required",trigger:"change"}],star:[{required:!0,message:"star is required",type:"number",trigger:"change"}],map_id:[{required:!0,message:"map id is required",type:"number",trigger:"change"}],limit_time:[{required:!0,message:"limit time is required",type:"number",trigger:"change"}],times:[{required:!0,message:"times is required",type:"number",trigger:"change"}]},downloadLoading:!1}},created:function(){this.getList()},methods:{getList:function(){var t=this;this.listLoading=!0,l(this.listQuery).then((function(e){t.list=e.items,t.total=e.total,t.listLoading=!1}))},handleFilter:function(){this.listQuery.page=1,this.getList()},sortChange:function(t){var e=t.prop,a=t.order;"cid"===e&&this.sortByID(a)},sortByID:function(t){this.listQuery.sort="ascending"===t?"+cid":"-cid",this.handleFilter()},resetTemp:function(){this.temp={cid:void 0,class_name:"",map_id:0,limit_time:0,star:0,times:0,has_water:!1}},handleUpdate:function(t){var e=this;this.temp=Object.assign({},t),this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["dataForm"].clearValidate()}))},handleHasWaterChange:function(t){var e=this,a=Object.assign({},t);c(a).then((function(t){var a=e.list.findIndex((function(e){return e.cid===t.cid}));e.list.splice(a,1,t),e.$notify({title:"Success",message:"Update Successfully",type:"success",duration:2e3})}))},updateData:function(){var t=this;this.$refs["dataForm"].validate((function(e){if(e){var a=Object.assign({},t.temp);c(a).then((function(e){var a=t.list.findIndex((function(t){return t.cid===e.cid}));t.list.splice(a,1,e),t.dialogFormVisible=!1,t.$notify({title:"Success",message:"Update Successfully",type:"success",duration:2e3})}))}}))},getSortClass:function(t){var e=this.listQuery.sort;return e==="+".concat(t)?"ascending":"descending"}}},d=u,p=a("2877"),m=Object(p["a"])(d,i,n,!1,null,null,null);e["default"]=m.exports},"4c5f":function(t,e,a){"use strict";a("1262")},"5d49":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],key:t.tableKey,staticStyle:{width:"100%"},attrs:{data:t.list,border:"",fit:"","highlight-current-row":""},on:{"sort-change":t.sortChange}},[a("el-table-column",{attrs:{label:"Eid",prop:"eid",sortable:"custom",align:"center",width:"80","class-name":t.getSortClass("eid")},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(i.eid))])]}}])}),a("el-table-column",{attrs:{label:"Rid","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(i.rid))])]}}])}),a("el-table-column",{attrs:{label:"Equip Name","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(i.equip_name))])]}}])}),a("el-table-column",{attrs:{label:"Star","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(i.star))])]}}])}),a("el-table-column",{attrs:{label:"Mass","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(i.mass))])]}}])}),a("el-table-column",{attrs:{label:"Power","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(i.power))])]}}])}),a("el-table-column",{attrs:{label:"Max Power","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(i.max_power))])]}}])}),a("el-table-column",{attrs:{label:"Wade","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("el-switch",{on:{change:function(e){return t.handleSwitchChange(i)}},model:{value:i.can_wade,callback:function(e){t.$set(i,"can_wade",e)},expression:"row.can_wade"}})]}}])}),a("el-table-column",{attrs:{label:"Show","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("el-switch",{on:{change:function(e){return t.handleSwitchChange(i)}},model:{value:i.is_show,callback:function(e){t.$set(i,"is_show",e)},expression:"row.is_show"}})]}}])}),a("el-table-column",{attrs:{label:"Actions",align:"center",width:"230","class-name":"small-padding fixed-width"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.handleUpdate(i)}}},[t._v(" Edit ")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total>0"}],attrs:{total:t.total,page:t.listQuery.page,limit:t.listQuery.limit},on:{"update:page":function(e){return t.$set(t.listQuery,"page",e)},"update:limit":function(e){return t.$set(t.listQuery,"limit",e)},pagination:t.getList}}),a("el-dialog",{attrs:{title:"Update Equip",visible:t.dialogFormVisible},on:{"update:visible":function(e){t.dialogFormVisible=e}}},[a("el-form",{ref:"dataForm",staticStyle:{width:"400px","margin-left":"50px"},attrs:{rules:t.rules,model:t.temp,"label-position":"left","label-width":"108px"}},[a("el-form-item",{attrs:{label:"Rid",prop:"rid"}},[a("el-input",{model:{value:t.temp.rid,callback:function(e){t.$set(t.temp,"rid",e)},expression:"temp.rid"}})],1),a("el-form-item",{attrs:{label:"Equip Name",prop:"equip_name"}},[a("el-input",{model:{value:t.temp.equip_name,callback:function(e){t.$set(t.temp,"equip_name",e)},expression:"temp.equip_name"}})],1),a("el-form-item",{attrs:{label:"Star",prop:"star"}},[a("el-input",{model:{value:t.temp.star,callback:function(e){t.$set(t.temp,"star",t._n(e))},expression:"temp.star"}})],1),a("el-form-item",{attrs:{label:"Mass",prop:"mass"}},[a("el-input",{model:{value:t.temp.mass,callback:function(e){t.$set(t.temp,"mass",t._n(e))},expression:"temp.mass"}})],1),a("el-form-item",{attrs:{label:"Power",prop:"power"}},[a("el-input",{model:{value:t.temp.power,callback:function(e){t.$set(t.temp,"power",t._n(e))},expression:"temp.power"}})],1),a("el-form-item",{attrs:{label:"Max Power",prop:"max_power"}},[a("el-input",{model:{value:t.temp.max_power,callback:function(e){t.$set(t.temp,"max_power",t._n(e))},expression:"temp.max_power"}})],1),a("el-form-item",{attrs:{label:"Wade",prop:"can_wade"}},[a("el-switch",{model:{value:t.temp.can_wade,callback:function(e){t.$set(t.temp,"can_wade",e)},expression:"temp.can_wade"}})],1),a("el-form-item",{attrs:{label:"Show",prop:"is_show"}},[a("el-switch",{model:{value:t.temp.is_show,callback:function(e){t.$set(t.temp,"is_show",e)},expression:"temp.is_show"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.dialogFormVisible=!1}}},[t._v(" Cancel ")]),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.updateData()}}},[t._v(" Confirm ")])],1)],1),a("el-dialog",{attrs:{visible:t.dialogPvVisible,title:"Reading statistics"},on:{"update:visible":function(e){t.dialogPvVisible=e}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.pvData,border:"",fit:"","highlight-current-row":""}},[a("el-table-column",{attrs:{prop:"key",label:"Channel"}}),a("el-table-column",{attrs:{prop:"pv",label:"Pv"}})],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.dialogPvVisible=!1}}},[t._v("Confirm")])],1)],1)],1)},n=[],s=(a("4e82"),a("c740"),a("a434"),a("6724")),r=a("333d"),o=a("b775");function l(t){return Object(o["a"])({url:"/CrazyCarSpringBootServer/v2/Background/getEqiupInfos",method:"get",params:t})}function c(t){return Object(o["a"])({url:"/CrazyCarSpringBootServer/v2/Background/updtaeEquipInfo",method:"post",data:t})}var u={name:"Equip",components:{Pagination:r["a"]},directives:{waves:s["a"]},filters:{},data:function(){return{tableKey:0,list:null,total:0,listLoading:!0,listQuery:{page:1,limit:20,importance:void 0,title:void 0,type:void 0,sort:"+eid"},sortOptions:[{label:"ID Ascending",key:"+eid"},{label:"ID Descending",key:"-eid"}],showReviewer:!1,temp:{eid:void 0,rid:"",equip_name:"",star:0,mass:0,power:0,max_power:0,can_wade:!1,is_show:!1},dialogFormVisible:!1,dialogPvVisible:!1,pvData:[],rules:{rid:[{required:!0,message:"rid is required",trigger:"change"}],equip_name:[{required:!0,message:"equip name is required",trigger:"change"}],star:[{required:!0,message:"star is required",type:"number",trigger:"change"}],mass:[{required:!0,message:"mass is required",type:"number",trigger:"change"}],max_power:[{required:!0,message:"max power is required",type:"number",trigger:"change"}],power:[{required:!0,message:"power is required",type:"number",trigger:"change"}]},downloadLoading:!1}},created:function(){this.getList()},methods:{getList:function(){var t=this;this.listLoading=!0,l(this.listQuery).then((function(e){t.list=e.items,t.total=e.total,t.listLoading=!1}))},handleFilter:function(){this.listQuery.page=1,this.getList()},sortChange:function(t){var e=t.prop,a=t.order;"eid"===e&&this.sortByID(a)},sortByID:function(t){this.listQuery.sort="ascending"===t?"+eid":"-eid",this.handleFilter()},resetTemp:function(){this.temp={eid:void 0,rid:"",equip_name:"",star:0,mass:0,power:0,max_power:0,can_wade:!1,is_show:!1}},handleUpdate:function(t){var e=this;this.temp=Object.assign({},t),this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["dataForm"].clearValidate()}))},handleSwitchChange:function(t){var e=this,a=Object.assign({},t);c(a).then((function(t){var a=e.list.findIndex((function(e){return e.eid===t.eid}));e.list.splice(a,1,t),e.$notify({title:"Success",message:"Update Successfully",type:"success",duration:2e3})}))},updateData:function(){var t=this;this.$refs["dataForm"].validate((function(e){if(e){var a=Object.assign({},t.temp);c(a).then((function(e){var a=t.list.findIndex((function(t){return t.eid===e.eid}));t.list.splice(a,1,e),t.dialogFormVisible=!1,t.$notify({title:"Success",message:"Update Successfully",type:"success",duration:2e3})}))}}))},getSortClass:function(t){var e=this.listQuery.sort;return e==="+".concat(t)?"ascending":"descending"}}},d=u,p=a("2877"),m=Object(p["a"])(d,i,n,!1,null,null,null);e["default"]=m.exports},"79cf":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{class:t.className,style:{height:t.height,width:t.width}})},n=[],s=(a("b0c0"),a("313e")),r=a.n(s),o=a("1e21");a("817d");var l={mixins:[o["a"]],props:{className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"400px"},autoResize:{type:Boolean,default:!0},chartData:{type:Object,required:!0}},data:function(){return{chart:null}},watch:{chartData:{deep:!0,handler:function(t){this.setOptions(t)}}},mounted:function(){var t=this;this.$nextTick((function(){t.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=r.a.init(this.$el,"macarons"),this.setOptions(this.chartData)},setOptions:function(t){this.chart.clear(),this.chart.setOption({title:{text:t.name,x:"center",bottom:"-6"},xAxis:{data:t.date,boundaryGap:!1,axisTick:{show:!1}},grid:{left:10,right:10,bottom:20,top:30,containLabel:!0},tooltip:{trigger:"axis",axisPointer:{type:"cross"},padding:[5,10]},yAxis:{axisTick:{show:!1}},legend:{data:["data"]},series:[{smooth:!0,type:"line",itemStyle:{normal:{color:"#3888fa",lineStyle:{color:"#3888fa",width:2},areaStyle:{color:"#f3f8ff"}}},data:t.actualData,animationDuration:2800,animationEasing:"quadraticOut"}]})}}},c=l,u=a("2877"),d=Object(u["a"])(c,i,n,!1,null,null,null);e["default"]=d.exports},"82b9":function(t,e,a){"use strict";a("0bfe")},"8cdb":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"wscn-http404-container"},[a("div",{staticClass:"wscn-http404"},[t._m(0),a("div",{staticClass:"bullshit"},[a("div",{staticClass:"bullshit__oops"},[t._v("OOPS!")]),t._m(1),a("div",{staticClass:"bullshit__headline"},[t._v(t._s(t.message))]),a("div",{staticClass:"bullshit__info"},[t._v("Please check that the URL you entered is correct, or click the button below to return to the homepage.")]),a("a",{staticClass:"bullshit__return-home",attrs:{href:""}},[t._v("Back to home")])])])])},n=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"pic-404"},[i("img",{staticClass:"pic-404__parent",attrs:{src:a("a36b"),alt:"404"}}),i("img",{staticClass:"pic-404__child left",attrs:{src:a("26fc"),alt:"404"}}),i("img",{staticClass:"pic-404__child mid",attrs:{src:a("26fc"),alt:"404"}}),i("img",{staticClass:"pic-404__child right",attrs:{src:a("26fc"),alt:"404"}})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"bullshit__info"},[t._v("All rights reserved "),a("a",{staticStyle:{color:"#20a0ff"},attrs:{href:"https://wallstreetcn.com",target:"_blank"}},[t._v("wallstreetcn")])])}],s={name:"Page404",computed:{message:function(){return"The webmaster said that you can not enter this page..."}}},r=s,o=(a("0a5f"),a("2877")),l=Object(o["a"])(r,i,n,!1,null,"c095f994",null);e["default"]=l.exports},"8e8b":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{class:t.className,style:{height:t.height,width:t.width}})},n=[],s=a("313e"),r=a.n(s),o=a("1e21");a("817d");var l={mixins:[o["a"]],props:{className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"400px"},chartData:{type:Array,required:!0}},data:function(){return{chart:null}},watch:{chartData:{deep:!0,handler:function(t){this.setOptions(t)}}},mounted:function(){var t=this;this.$nextTick((function(){t.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=r.a.init(this.$el,"macarons"),this.setOptions(this.chartData)},setOptions:function(t){this.chart.setOption({title:{text:"计时赛和比赛近7天使用对比",x:"center",y:"bottom"},tooltip:{trigger:"item",formatter:"{a}
{b} : {c} ({d}%)"},legend:{left:"center",bottom:"40",data:["Time Trial","Match"]},series:[{name:"WEEKLY WRITE ARTICLES",type:"pie",roseType:"radius",radius:[34,140],center:["50%","38%"],data:[{value:t[0],name:"Time Trial"},{value:t[1],name:"Match"}],animationEasing:"cubicInOut",animationDuration:2600}]})}}},c=l,u=a("2877"),d=Object(u["a"])(c,i,n,!1,null,null,null);e["default"]=d.exports},9406:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"dashboard-editor-container"},[a("panel-group",{attrs:{"panel-info-data":t.panelInfoData}}),a("el-row",{staticStyle:{background:"#fff",padding:"16px 16px 0","margin-bottom":"32px"}},[a("line-chart",{attrs:{"chart-data":t.loginUserChartData}})],1),a("el-row",{attrs:{gutter:32}},[a("el-col",{attrs:{xs:24,sm:24,lg:8}},[a("div",{staticClass:"chart-wrapper"},[a("line-chart",{attrs:{"chart-data":t.timeTrialChartData}})],1)]),a("el-col",{attrs:{xs:24,sm:24,lg:8}},[a("div",{staticClass:"chart-wrapper"},[a("line-chart",{attrs:{"chart-data":t.matchChartData}})],1)]),a("el-col",{attrs:{xs:24,sm:24,lg:8}},[a("div",{staticClass:"chart-wrapper"},[a("pie-chart",{attrs:{"chart-data":t.timeTrialMatchData}})],1)])],1)],1)},n=[],s=a("79cf"),r=a("b775");function o(){return Object(r["a"])({url:"/CrazyCarSpringBootServer/v2/Background/getDashboardData",method:"get"})}var l=a("8e8b"),c=a("3e3b"),u={name:"DashboardAdmin",components:{LineChart:s["default"],PieChart:l["default"],PanelGroup:c["default"]},data:function(){return{loginUserChartData:{name:"",data:[0],actualData:[0]},timeTrialChartData:{name:"",data:[0],actualData:[0]},matchChartData:{name:"",data:[0],actualData:[0]},panelInfoData:[0,0,0,0],timeTrialMatchData:[0,0]}},created:function(){this.handleGetDashboardData()},methods:{handleGetDashboardData:function(){var t=this;this.loading=!0,o().then((function(e){var a=[];a.push(e.user_num),a.push(e.equip_num),a.push(e.avatar_num),a.push(e.map_num),t.panelInfoData=a;var i,n=e.login_user_num,s=[],r=[];for(i in n){var o=new Date(1e3*n[i].timestamp);s.push(o.getMonth()+1+"."+o.getDate()),r.push(n[i].count)}t.loginUserChartData={name:"用户登录数",date:s,actualData:r};var l,c=e.match_num,u=[],d=[];for(l in c){var p=new Date(1e3*c[l].timestamp);u.push(p.getMonth()+1+"."+p.getDate()),d.push(c[l].count)}t.timeTrialChartData={name:"比赛使用次数",date:u,actualData:d};var m,f=e.time_trial_num,h=[],g=[];for(m in f){var v=new Date(1e3*f[m].timestamp);h.push(v.getMonth()+1+"."+v.getDate()),g.push(f[m].count)}t.matchChartData={name:"计时赛使用次数",date:h,actualData:g};var b=[];b.push(e.time_trial_times),b.push(e.match_times),t.timeTrialMatchData=b}))},handleUpdate:function(){this.getDashboardData()}}},d=u,p=(a("e8c7"),a("2877")),m=Object(p["a"])(d,i,n,!1,null,"c9446d16",null);e["default"]=m.exports},"979f":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",{staticClass:"todoapp"},[a("header",{staticClass:"header"},[a("input",{staticClass:"new-todo",attrs:{autocomplete:"off",placeholder:"Todo List"},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.addTodo(e)}}})]),a("section",{directives:[{name:"show",rawName:"v-show",value:t.todos.length,expression:"todos.length"}],staticClass:"main"},[a("input",{staticClass:"toggle-all",attrs:{id:"toggle-all",type:"checkbox"},domProps:{checked:t.allChecked},on:{change:function(e){return t.toggleAll({done:!t.allChecked})}}}),a("label",{attrs:{for:"toggle-all"}}),a("ul",{staticClass:"todo-list"},t._l(t.filteredTodos,(function(e,i){return a("todo",{key:i,attrs:{todo:e},on:{toggleTodo:t.toggleTodo,editTodo:t.editTodo,deleteTodo:t.deleteTodo}})})),1)]),a("footer",{directives:[{name:"show",rawName:"v-show",value:t.todos.length,expression:"todos.length"}],staticClass:"footer"},[a("span",{staticClass:"todo-count"},[a("strong",[t._v(t._s(t.remaining))]),t._v(" "+t._s(t._f("pluralize")(t.remaining,"item"))+" left ")]),a("ul",{staticClass:"filters"},t._l(t.filters,(function(e,i){return a("li",{key:i},[a("a",{class:{selected:t.visibility===i},on:{click:function(e){e.preventDefault(),t.visibility=i}}},[t._v(t._s(t._f("capitalize")(i)))])])})),0)])])},n=[],s=(a("4de4"),a("d3b7"),a("fb6a"),a("e9c4"),a("498a"),a("a434"),a("159b"),a("c062")),r="todos",o={all:function(t){return t},active:function(t){return t.filter((function(t){return!t.done}))},completed:function(t){return t.filter((function(t){return t.done}))}},l=[{text:"star this repository",done:!1},{text:"fork this repository",done:!1},{text:"follow author",done:!1},{text:"vue-element-admin",done:!0},{text:"vue",done:!0},{text:"element-ui",done:!0},{text:"axios",done:!0},{text:"webpack",done:!0}],c={components:{Todo:s["default"]},filters:{pluralize:function(t,e){return 1===t?e:e+"s"},capitalize:function(t){return t.charAt(0).toUpperCase()+t.slice(1)}},data:function(){return{visibility:"all",filters:o,todos:l}},computed:{allChecked:function(){return this.todos.every((function(t){return t.done}))},filteredTodos:function(){return o[this.visibility](this.todos)},remaining:function(){return this.todos.filter((function(t){return!t.done})).length}},methods:{setLocalStorage:function(){window.localStorage.setItem(r,JSON.stringify(this.todos))},addTodo:function(t){var e=t.target.value;e.trim()&&(this.todos.push({text:e,done:!1}),this.setLocalStorage()),t.target.value=""},toggleTodo:function(t){t.done=!t.done,this.setLocalStorage()},deleteTodo:function(t){this.todos.splice(this.todos.indexOf(t),1),this.setLocalStorage()},editTodo:function(t){var e=t.todo,a=t.value;e.text=a,this.setLocalStorage()},clearCompleted:function(){this.todos=this.todos.filter((function(t){return!t.done})),this.setLocalStorage()},toggleAll:function(t){var e=this,a=t.done;this.todos.forEach((function(t){t.done=a,e.setLocalStorage()}))}}},u=c,d=(a("2979"),a("2877")),p=Object(d["a"])(u,i,n,!1,null,null,null);e["default"]=p.exports},"9ed6":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"login-container"},[a("el-form",{ref:"loginForm",staticClass:"login-form",attrs:{model:t.loginForm,rules:t.loginRules,"auto-complete":"on","label-position":"left"}},[a("div",{staticClass:"title-container"},[a("h3",{staticClass:"title"},[t._v("Crazy Car Background")])]),a("el-form-item",{attrs:{prop:"username"}},[a("span",{staticClass:"svg-container"},[a("svg-icon",{attrs:{"icon-class":"user-icon"}})],1),a("el-input",{ref:"username",attrs:{placeholder:"Username",name:"username",type:"text",tabindex:"1","auto-complete":"on"},model:{value:t.loginForm.username,callback:function(e){t.$set(t.loginForm,"username",e)},expression:"loginForm.username"}})],1),a("el-form-item",{attrs:{prop:"password"}},[a("span",{staticClass:"svg-container"},[a("svg-icon",{attrs:{"icon-class":"password"}})],1),a("el-input",{key:t.passwordType,ref:"password",attrs:{type:t.passwordType,placeholder:"Password",name:"password",tabindex:"2","auto-complete":"on"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleLogin(e)}},model:{value:t.loginForm.password,callback:function(e){t.$set(t.loginForm,"password",e)},expression:"loginForm.password"}}),a("span",{staticClass:"show-pwd",on:{click:t.showPwd}},[a("svg-icon",{attrs:{"icon-class":"password"===t.passwordType?"eye":"eye-open"}})],1)],1),a("el-button",{staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{loading:t.loading,type:"primary"},nativeOn:{click:function(e){return e.preventDefault(),t.handleLogin(e)}}},[t._v("Login")])],1)],1)},n=[],s=a("61f7"),r={name:"Login",data:function(){var t=function(t,e,a){Object(s["b"])(e)?a():a(new Error("Please enter the correct user name"))},e=function(t,e,a){e.length<6?a(new Error("The password can not be less than 6 digits")):a()};return{loginForm:{username:"",password:""},loginRules:{username:[{required:!0,trigger:"blur",validator:t}],password:[{required:!0,trigger:"blur",validator:e}]},loading:!1,passwordType:"password",redirect:void 0}},watch:{$route:{handler:function(t){this.redirect=t.query&&t.query.redirect},immediate:!0}},methods:{showPwd:function(){var t=this;"password"===this.passwordType?this.passwordType="":this.passwordType="password",this.$nextTick((function(){t.$refs.password.focus()}))},handleLogin:function(){var t=this;this.$refs.loginForm.validate((function(e){if(!e)return console.log("error submit!!"),!1;t.loading=!0,t.$store.dispatch("user/login",t.loginForm).then((function(){t.$router.push({path:t.redirect||"/"}),t.loading=!1})).catch((function(){t.loading=!1}))}))}}},o=r,l=(a("4c5f"),a("82b9"),a("2877")),c=Object(l["a"])(o,i,n,!1,null,"18bd9fc3",null);e["default"]=c.exports},"9f50":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],key:t.tableKey,staticStyle:{width:"100%"},attrs:{data:t.list,border:"",fit:"","highlight-current-row":""},on:{"sort-change":t.sortChange}},[a("el-table-column",{attrs:{label:"Cid",prop:"cid",sortable:"custom",align:"center",width:"80","class-name":t.getSortClass("cid")},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(i.cid))])]}}])}),a("el-table-column",{attrs:{label:"Map Id","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(i.map_id))])]}}])}),a("el-table-column",{attrs:{label:"Class Name","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(i.class_name))])]}}])}),a("el-table-column",{attrs:{label:"Star","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(i.star))])]}}])}),a("el-table-column",{attrs:{label:"Limit Time","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(i.limit_time))])]}}])}),a("el-table-column",{attrs:{label:"Times","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(i.times))])]}}])}),a("el-table-column",{attrs:{label:"Water","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("el-switch",{on:{change:function(e){return t.handleHasWaterChange(i)}},model:{value:i.has_water,callback:function(e){t.$set(i,"has_water",e)},expression:"row.has_water"}})]}}])}),a("el-table-column",{attrs:{label:"Actions",align:"center",width:"230","class-name":"small-padding fixed-width"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.handleUpdate(i)}}},[t._v(" Edit ")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total>0"}],attrs:{total:t.total,page:t.listQuery.page,limit:t.listQuery.limit},on:{"update:page":function(e){return t.$set(t.listQuery,"page",e)},"update:limit":function(e){return t.$set(t.listQuery,"limit",e)},pagination:t.getList}}),a("el-dialog",{attrs:{title:"Update Match",visible:t.dialogFormVisible},on:{"update:visible":function(e){t.dialogFormVisible=e}}},[a("el-form",{ref:"dataForm",staticStyle:{width:"400px","margin-left":"50px"},attrs:{rules:t.rules,model:t.temp,"label-position":"left","label-width":"108px"}},[a("el-form-item",{attrs:{label:"Class Name",prop:"class_name"}},[a("el-input",{model:{value:t.temp.class_name,callback:function(e){t.$set(t.temp,"class_name",e)},expression:"temp.class_name"}})],1),a("el-form-item",{attrs:{label:"Star",prop:"star"}},[a("el-input",{model:{value:t.temp.star,callback:function(e){t.$set(t.temp,"star",t._n(e))},expression:"temp.star"}})],1),a("el-form-item",{attrs:{label:"Map Id",prop:"map_id"}},[a("el-input",{model:{value:t.temp.map_id,callback:function(e){t.$set(t.temp,"map_id",t._n(e))},expression:"temp.map_id"}})],1),a("el-form-item",{attrs:{label:"Limit Time",prop:"limit_time"}},[a("el-input",{model:{value:t.temp.limit_time,callback:function(e){t.$set(t.temp,"limit_time",t._n(e))},expression:"temp.limit_time"}})],1),a("el-form-item",{attrs:{label:"Times",prop:"times"}},[a("el-input",{model:{value:t.temp.times,callback:function(e){t.$set(t.temp,"times",t._n(e))},expression:"temp.times"}})],1),a("el-form-item",{attrs:{label:"Water",prop:"has_water"}},[a("el-switch",{model:{value:t.temp.has_water,callback:function(e){t.$set(t.temp,"has_water",e)},expression:"temp.has_water"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.dialogFormVisible=!1}}},[t._v(" Cancel ")]),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.updateData()}}},[t._v(" Confirm ")])],1)],1),a("el-dialog",{attrs:{visible:t.dialogPvVisible,title:"Reading statistics"},on:{"update:visible":function(e){t.dialogPvVisible=e}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.pvData,border:"",fit:"","highlight-current-row":""}},[a("el-table-column",{attrs:{prop:"key",label:"Channel"}}),a("el-table-column",{attrs:{prop:"pv",label:"Pv"}})],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.dialogPvVisible=!1}}},[t._v("Confirm")])],1)],1)],1)},n=[],s=(a("4e82"),a("c740"),a("a434"),a("6724")),r=a("333d"),o=a("b775");function l(t){return Object(o["a"])({url:"/CrazyCarSpringBootServer/v2/Background/getMatchInfos",method:"get",params:t})}function c(t){return Object(o["a"])({url:"/CrazyCarSpringBootServer/v2/Background/updtaeMatchInfo",method:"post",data:t})}var u={name:"Match",components:{Pagination:r["a"]},directives:{waves:s["a"]},filters:{},data:function(){return{tableKey:0,list:null,total:0,listLoading:!0,listQuery:{page:1,limit:20,importance:void 0,title:void 0,type:void 0,sort:"+cid"},sortOptions:[{label:"ID Ascending",key:"+cid"},{label:"ID Descending",key:"-cid"}],showReviewer:!1,temp:{cid:void 0,class_name:"",map_id:0,limit_time:0,star:0,times:0,has_water:!1},dialogFormVisible:!1,dialogPvVisible:!1,pvData:[],rules:{class_name:[{required:!0,message:"name is required",trigger:"change"}],star:[{required:!0,message:"star is required",type:"number",trigger:"change"}],map_id:[{required:!0,message:"map id is required",type:"number",trigger:"change"}],limit_time:[{required:!0,message:"limit time is required",type:"number",trigger:"change"}],times:[{required:!0,message:"times is required",type:"number",trigger:"change"}]},downloadLoading:!1}},created:function(){this.getList()},methods:{getList:function(){var t=this;this.listLoading=!0,l(this.listQuery).then((function(e){t.list=e.items,t.total=e.total,t.listLoading=!1}))},handleFilter:function(){this.listQuery.page=1,this.getList()},sortChange:function(t){var e=t.prop,a=t.order;"cid"===e&&this.sortByID(a)},sortByID:function(t){this.listQuery.sort="ascending"===t?"+cid":"-cid",this.handleFilter()},resetTemp:function(){this.temp={cid:void 0,class_name:"",map_id:0,limit_time:0,star:0,times:0,has_water:!1}},handleUpdate:function(t){var e=this;this.temp=Object.assign({},t),this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["dataForm"].clearValidate()}))},handleHasWaterChange:function(t){var e=this,a=Object.assign({},t);c(a).then((function(t){var a=e.list.findIndex((function(e){return e.cid===t.cid}));e.list.splice(a,1,t),e.$notify({title:"Success",message:"Update Successfully",type:"success",duration:2e3})}))},updateData:function(){var t=this;this.$refs["dataForm"].validate((function(e){if(e){var a=Object.assign({},t.temp);c(a).then((function(e){var a=t.list.findIndex((function(t){return t.cid===e.cid}));t.list.splice(a,1,e),t.dialogFormVisible=!1,t.$notify({title:"Success",message:"Update Successfully",type:"success",duration:2e3})}))}}))},getSortClass:function(t){var e=this.listQuery.sort;return e==="+".concat(t)?"ascending":"descending"}}},d=u,p=a("2877"),m=Object(p["a"])(d,i,n,!1,null,null,null);e["default"]=m.exports},a185:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],key:t.tableKey,staticStyle:{width:"100%"},attrs:{data:t.list,border:"",fit:"","highlight-current-row":""},on:{"sort-change":t.sortChange}},[a("el-table-column",{attrs:{label:"ID",prop:"id",sortable:"custom",align:"center",width:"80","class-name":t.getSortClass("id")},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(i.id))])]}}])}),a("el-table-column",{attrs:{label:"Status",width:"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("el-switch",{on:{change:function(e){return t.handleIsOnChange(i)}},model:{value:i.is_on,callback:function(e){t.$set(i,"is_on",e)},expression:"row.is_on"}})]}}])}),a("el-table-column",{attrs:{label:"Url","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(i.url))])]}}])}),a("el-table-column",{attrs:{label:"Date",width:"150px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(t.parseTime(i.updata_time,"{y}-{m}-{d} {h}:{i}")))])]}}])}),a("el-table-column",{attrs:{label:"Actions",align:"center",width:"230","class-name":"small-padding fixed-width"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.handleUpdate(i)}}},[t._v(" Edit ")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total>0"}],attrs:{total:t.total,page:t.listQuery.page,limit:t.listQuery.limit},on:{"update:page":function(e){return t.$set(t.listQuery,"page",e)},"update:limit":function(e){return t.$set(t.listQuery,"limit",e)},pagination:t.getList}}),a("el-dialog",{attrs:{title:"Update Assets",visible:t.dialogFormVisible},on:{"update:visible":function(e){t.dialogFormVisible=e}}},[a("el-form",{ref:"dataForm",staticStyle:{width:"400px","margin-left":"50px"},attrs:{rules:t.rules,model:t.temp,"label-position":"left","label-width":"88px"}},[a("el-form-item",{attrs:{label:"Status",prop:"is_on"}},[a("el-switch",{model:{value:t.temp.is_on,callback:function(e){t.$set(t.temp,"is_on",e)},expression:"temp.is_on"}})],1),a("el-form-item",{attrs:{label:"Url",prop:"url"}},[a("el-input",{model:{value:t.temp.url,callback:function(e){t.$set(t.temp,"url",e)},expression:"temp.url"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.dialogFormVisible=!1}}},[t._v(" Cancel ")]),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.updateData()}}},[t._v(" Confirm ")])],1)],1),a("el-dialog",{attrs:{visible:t.dialogPvVisible,title:"Reading statistics"},on:{"update:visible":function(e){t.dialogPvVisible=e}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.pvData,border:"",fit:"","highlight-current-row":""}},[a("el-table-column",{attrs:{prop:"key",label:"Channel"}}),a("el-table-column",{attrs:{prop:"pv",label:"Pv"}})],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.dialogPvVisible=!1}}},[t._v("Confirm")])],1)],1)],1)},n=[],s=(a("4e82"),a("c740"),a("a434"),a("d81d"),a("6724")),r=a("ed08"),o=a("333d"),l=a("b775");function c(t){return Object(l["a"])({url:"/CrazyCarSpringBootServer/v2/Background/getAssetsInfo",method:"get",params:t})}function u(t){return Object(l["a"])({url:"/CrazyCarSpringBootServer/v2/Background/updateAssetsInfo",method:"post",data:t})}var d={name:"Assets",components:{Pagination:o["a"]},directives:{waves:s["a"]},filters:{},data:function(){return{tableKey:0,list:null,total:0,listLoading:!0,listQuery:{page:1,limit:20,importance:void 0,title:void 0,type:void 0,sort:"+id"},importanceOptions:[1,2,3],sortOptions:[{label:"ID Ascending",key:"+id"},{label:"ID Descending",key:"-id"}],platformOptions:["ios","Android","PC"],showReviewer:!1,temp:{id:void 0,url:"htt://",is_on:!1,updata_time:new Date},dialogFormVisible:!1,dialogPvVisible:!1,pvData:[],rules:{url:[{required:!0,message:"url is required",trigger:"change"}],is_on:[{required:!0,message:"status is required",trigger:"change"}],updata_time:[{required:!0,message:"time is required",trigger:"blur"}]},downloadLoading:!1,parseTime:r["c"]}},created:function(){this.getList()},methods:{getList:function(){var t=this;this.listLoading=!0,c(this.listQuery).then((function(e){t.list=e.items,t.total=e.total,t.listLoading=!1}))},handleFilter:function(){this.listQuery.page=1,this.getList()},sortChange:function(t){var e=t.prop,a=t.order;"id"===e&&this.sortByID(a)},sortByID:function(t){this.listQuery.sort="ascending"===t?"+id":"-id",this.handleFilter()},resetTemp:function(){this.temp={id:void 0,url:"http://",is_on:!1,updata_time:new Date}},handleUpdate:function(t){var e=this;this.temp=Object.assign({},t),this.temp.timestamp=new Date(this.temp.timestamp),this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["dataForm"].clearValidate()}))},handleIsOnChange:function(t){var e=this,a=Object.assign({},t);a.timestamp=+new Date(a.timestamp),u(a).then((function(t){var a=e.list.findIndex((function(e){return e.id===t.id}));e.list.splice(a,1,t),e.$notify({title:"Success",message:"Update Successfully",type:"success",duration:2e3})}))},updateData:function(){var t=this;this.$refs["dataForm"].validate((function(e){if(e){var a=Object.assign({},t.temp);a.timestamp=+new Date(a.timestamp),u(a).then((function(e){var a=t.list.findIndex((function(t){return t.id===e.id}));t.list.splice(a,1,e),t.dialogFormVisible=!1,t.$notify({title:"Success",message:"Update Successfully",type:"success",duration:2e3})}))}}))},formatJson:function(t){return this.list.map((function(e){return t.map((function(t){return"timestamp"===t?Object(r["c"])(e[t]):e[t]}))}))},getSortClass:function(t){var e=this.listQuery.sort;return e==="+".concat(t)?"ascending":"descending"}}},p=d,m=a("2877"),f=Object(m["a"])(p,i,n,!1,null,null,null);e["default"]=f.exports},a36b:function(t,e,a){t.exports=a.p+"static/img/404.a57b6f31.png"},c062:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("li",{staticClass:"todo",class:{completed:t.todo.done,editing:t.editing}},[a("div",{staticClass:"view"},[a("input",{staticClass:"toggle",attrs:{type:"checkbox"},domProps:{checked:t.todo.done},on:{change:function(e){return t.toggleTodo(t.todo)}}}),a("label",{domProps:{textContent:t._s(t.todo.text)},on:{dblclick:function(e){t.editing=!0}}}),a("button",{staticClass:"destroy",on:{click:function(e){return t.deleteTodo(t.todo)}}})]),a("input",{directives:[{name:"show",rawName:"v-show",value:t.editing,expression:"editing"},{name:"focus",rawName:"v-focus",value:t.editing,expression:"editing"}],staticClass:"edit",domProps:{value:t.todo.text},on:{keyup:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.doneEdit(e)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:t.cancelEdit(e)}],blur:t.doneEdit}})])},n=[],s=(a("498a"),{name:"Todo",directives:{focus:function(t,e,a){var i=e.value,n=a.context;i&&n.$nextTick((function(){t.focus()}))}},props:{todo:{type:Object,default:function(){return{}}}},data:function(){return{editing:!1}},methods:{deleteTodo:function(t){this.$emit("deleteTodo",t)},editTodo:function(t){var e=t.todo,a=t.value;this.$emit("editTodo",{todo:e,value:a})},toggleTodo:function(t){this.$emit("toggleTodo",t)},doneEdit:function(t){var e=t.target.value.trim(),a=this.todo;e?this.editing&&(this.editTodo({todo:a,value:e}),this.editing=!1):this.deleteTodo({todo:a})},cancelEdit:function(t){t.target.value=this.todo.text,this.editing=!1}}}),r=s,o=a("2877"),l=Object(o["a"])(r,i,n,!1,null,null,null);e["default"]=l.exports},d78e:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("el-button",{attrs:{type:"primary"},on:{click:t.handleAddRole}},[t._v("New Role")]),a("el-table",{staticStyle:{width:"100%","margin-top":"30px"},attrs:{data:t.rolesList,border:""}},[a("el-table-column",{attrs:{align:"center",label:"Role Key",width:"220"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.uid)+" ")]}}])}),a("el-table-column",{attrs:{align:"center",label:"Role Name",width:"220"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.user_name)+" ")]}}])}),a("el-table-column",{attrs:{align:"header-center",label:"Description"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.des)+" ")]}}])}),a("el-table-column",{attrs:{align:"center",label:"Operations"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(a){return t.handleEdit(e)}}},[t._v("Edit")])]}}])})],1),a("el-dialog",{attrs:{visible:t.dialogVisible,title:"edit"===t.dialogType?"Edit Role":"New Role"},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("el-form",{attrs:{model:t.role,"label-width":"80px","label-position":"left"}},[a("el-form-item",{attrs:{label:"Name"}},[a("el-input",{attrs:{placeholder:"Role Name"},model:{value:t.role.user_name,callback:function(e){t.$set(t.role,"user_name",e)},expression:"role.user_name"}})],1),a("el-form-item",{attrs:{label:"Desc"}},[a("el-input",{attrs:{autosize:{minRows:2,maxRows:4},type:"textarea",placeholder:"Role Description"},model:{value:t.role.des,callback:function(e){t.$set(t.role,"des",e)},expression:"role.des"}})],1),a("el-form-item",{attrs:{label:"Menus"}},[a("el-tree",{ref:"tree",staticClass:"permission-tree",attrs:{"check-strictly":t.checkStrictly,data:t.routesData,props:t.defaultProps,"show-checkbox":"","node-key":"path"}})],1)],1),a("div",{staticStyle:{"text-align":"right"}},[a("el-button",{attrs:{type:"danger"},on:{click:function(e){t.dialogVisible=!1}}},[t._v("Cancel")]),a("el-button",{attrs:{type:"primary"},on:{click:t.confirmRole}},[t._v("Confirm")])],1)],1)],1)},n=[],s=a("5530");function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,i=new Array(e);a=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,r=!0,o=!1;return{s:function(){a=a.call(t)},n:function(){var t=a.next();return r=t.done,t},e:function(t){o=!0,s=t},f:function(){try{r||null==a["return"]||a["return"]()}finally{if(o)throw s}}}}var m=a("c7eb"),f=a("1da1"),h=(a("e9c4"),a("159b"),a("99af"),a("caad"),a("2532"),a("a434"),a("4de4"),a("df7c")),g=a.n(h),v=a("ed08"),b=a("c24f"),y={uid:"",user_name:"",des:"",routes:[]},_={data:function(){return{role:Object.assign({},y),routes:[],rolesList:[],dialogVisible:!1,dialogType:"new",checkStrictly:!1,defaultProps:{children:"children",label:"title"}}},computed:{routesData:function(){return this.routes}},created:function(){this.getAllRoutes(),this.getRoles()},methods:{getAllRoutes:function(){var t=this;return Object(f["a"])(Object(m["a"])().mark((function e(){return Object(m["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(b["b"])();case 2:t.serviceRoutes=e.sent,console.log("+++++ getAllRoutes"+JSON.stringify(t.serviceRoutes)),t.routes=t.generateRoutes(t.serviceRoutes);case 5:case"end":return e.stop()}}),e)})))()},getRoutes:function(){var t=this;return Object(f["a"])(Object(m["a"])().mark((function e(){return Object(m["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(b["e"])();case 2:t.serviceRoutes=e.sent,t.routes=t.generateRoutes(t.serviceRoutes);case 4:case"end":return e.stop()}}),e)})))()},getRoles:function(){var t=this;return Object(f["a"])(Object(m["a"])().mark((function e(){return Object(m["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(b["d"])();case 2:t.rolesList=e.sent;case 3:case"end":return e.stop()}}),e)})))()},generateRoutes:function(t){var e,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",i=[],n=p(t);try{for(n.s();!(e=n.n()).done;){var s=e.value;if(!s.hidden){var r=this.onlyOneShowingChild(s.children,s);s.children&&r&&!s.alwaysShow&&(s=r);var o={path:g.a.resolve(a,s.path),title:s.meta&&s.meta.title};s.children&&(o.children=this.generateRoutes(s.children,o.path)),i.push(o)}}}catch(l){n.e(l)}finally{n.f()}return i},generateArr:function(t){var e=this,a=[];return t.forEach((function(t){if(a.push(t),t.children){var i=e.generateArr(t.children);i.length>0&&(a=[].concat(d(a),d(i)))}})),a},handleAddRole:function(){this.role=Object.assign({},y),this.$refs.tree&&this.$refs.tree.setCheckedNodes([]),this.dialogType="new",this.dialogVisible=!0},handleEdit:function(t){var e=this;this.dialogType="edit",this.dialogVisible=!0,this.checkStrictly=!0,this.role=Object(v["b"])(t.row),console.log("+++++ handleEdit"+JSON.stringify(this.role)),this.$nextTick((function(){Object(b["f"])(e.role.uid).then((function(t){var a=t;console.log("+++++ getRoutes"+JSON.stringify(a));var i=e.generateRoutes(a);e.$refs.tree.setCheckedNodes(e.generateArr(i)),e.checkStrictly=!1}))}))},generateTree:function(t){var e,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",i=arguments.length>2?arguments[2]:void 0,n=[],s=p(t);try{for(s.s();!(e=s.n()).done;){var r=e.value,o=g.a.resolve(a,r.path);r.children&&(r.children=this.generateTree(r.children,o,i)),(i.includes(o)||r.children&&r.children.length>=1)&&n.push(r)}}catch(l){s.e(l)}finally{s.f()}return n},confirmRole:function(){var t=this;return Object(f["a"])(Object(m["a"])().mark((function e(){var a,i,n,s,r,o,l,c,u;return Object(m["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a="edit"===t.dialogType,i=t.$refs.tree.getCheckedKeys(),t.role.routes=t.generateTree(Object(v["b"])(t.serviceRoutes),"/",i),!a){e.next=19;break}return e.next=6,Object(b["j"])(t.role);case 6:n=e.sent,s=n.data,console.log("+++++ updateRole"+JSON.stringify(s)),r=0;case 10:if(!(rRole Key: ".concat(c,"\n
Role Name: ").concat(u,"
\n
Description: ").concat(l,"
\n "),type:"success"});case 26:case"end":return e.stop()}}),e)})))()},onlyOneShowingChild:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,a=null,i=t.filter((function(t){return!t.hidden}));return 1===i.length?(a=i[0],a.path=g.a.resolve(e.path,a.path),a):0===i.length&&(a=Object(s["a"])(Object(s["a"])({},e),{},{path:"",noShowingChildren:!0}),a)}}},w=_,x=(a("f504"),a("2877")),k=Object(x["a"])(w,i,n,!1,null,"012659d4",null);e["default"]=k.exports},e382:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"filter-container"},[a("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"User Name"},model:{value:t.listQuery.user_name,callback:function(e){t.$set(t.listQuery,"user_name",e)},expression:"listQuery.user_name"}}),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:t.handleFilter}},[t._v(" Search ")])],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],key:t.tableKey,staticStyle:{width:"100%"},attrs:{data:t.list,border:"",fit:"","highlight-current-row":""},on:{"sort-change":t.sortChange}},[a("el-table-column",{attrs:{label:"UID",prop:"uid",sortable:"custom",align:"center","min-width":"80","class-name":t.getSortClass("id")},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(i.uid))])]}}])}),a("el-table-column",{attrs:{label:"User Name","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(i.user_name))])]}}])}),a("el-table-column",{attrs:{label:"Star",align:"center","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(i.star))])]}}])}),a("el-table-column",{attrs:{label:"VIP",align:"center","class-name":"status-col","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v(" "+t._s(a.is_vip)+" ")]}}])}),a("el-table-column",{attrs:{label:"Actions",align:"center",width:"230","class-name":"small-padding fixed-width"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.handleUpdate(i)}}},[t._v(" Edit ")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total>0"}],attrs:{total:t.total,page:t.listQuery.page,limit:t.listQuery.limit},on:{"update:page":function(e){return t.$set(t.listQuery,"page",e)},"update:limit":function(e){return t.$set(t.listQuery,"limit",e)},pagination:t.getList}}),a("el-dialog",{attrs:{title:"Update User",visible:t.dialogFormVisible},on:{"update:visible":function(e){t.dialogFormVisible=e}}},[a("el-form",{ref:"dataForm",staticStyle:{"min-width":"140px","max-width":"400px","margin-left":"50px"},attrs:{rules:t.rules,model:t.temp,"label-position":"left","label-width":"70px"}},[a("el-form-item",{attrs:{label:"Name",prop:"user_name"}},[t._v(" "+t._s(t.temp.user_name)+" ")]),a("el-form-item",{attrs:{label:"Star",prop:"star"}},[a("el-input",{model:{value:t.temp.star,callback:function(e){t.$set(t.temp,"star",t._n(e))},expression:"temp.star"}})],1),a("el-form-item",{attrs:{label:"VIP",prop:"is_vip"}},[a("el-switch",{model:{value:t.temp.is_vip,callback:function(e){t.$set(t.temp,"is_vip",e)},expression:"temp.is_vip"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.dialogFormVisible=!1}}},[t._v(" Cancel ")]),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.updateData()}}},[t._v(" Confirm ")])],1)],1),a("el-dialog",{attrs:{visible:t.dialogPvVisible,title:"Reading statistics"},on:{"update:visible":function(e){t.dialogPvVisible=e}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.pvData,border:"",fit:"","highlight-current-row":""}},[a("el-table-column",{attrs:{prop:"key",label:"Channel"}}),a("el-table-column",{attrs:{prop:"pv",label:"Pv"}})],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.dialogPvVisible=!1}}},[t._v("Confirm")])],1)],1)],1)},n=[],s=(a("4e82"),a("c740"),a("a434"),a("d81d"),a("6724")),r=a("ed08"),o=a("333d"),l=a("c24f"),c={name:"User",components:{Pagination:o["a"]},directives:{waves:s["a"]},filters:{},data:function(){return{tableKey:0,list:null,total:0,listLoading:!1,listQuery:{page:1,limit:20,importance:void 0,title:void 0,user_name:void 0,sort:"+id"},importanceOptions:[1,2,3],sortOptions:[{label:"ID Ascending",key:"+id"},{label:"ID Descending",key:"-id"}],showReviewer:!1,temp:{uid:void 0,user_name:void 0,star:0,is_vip:!1},dialogFormVisible:!1,dialogPvVisible:!1,pvData:[],rules:{uid:[{required:!1,message:"type is not required",trigger:"change",readonly:!0}],user_name:[{required:!1,message:"type is not required",trigger:"change",readonly:!0}],star:[{required:!0,message:"star is required",type:"number",trigger:"change"}],is_vip:[{required:!0,message:"vip is required",trigger:"blur"}]},downloadLoading:!1,parseTime:r["c"]}},methods:{getList:function(){var t=this;this.listLoading=!0,this.list=null,this.total=0,Object(l["g"])(this.listQuery).then((function(e){t.list=e.items,t.total=e.total,t.listLoading=!1}))},handleFilter:function(){this.listQuery.page=1,this.getList()},sortChange:function(t){var e=t.prop,a=t.order;"id"===e&&this.sortByID(a)},sortByID:function(t){this.listQuery.sort="ascending"===t?"+id":"-id",this.handleFilter()},resetTemp:function(){this.temp={uid:void 0,user_name:"",star:0,is_vip:!1}},handleUpdate:function(t){var e=this;this.temp=Object.assign({},t),this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["dataForm"].clearValidate()}))},updateData:function(){var t=this;this.$refs["dataForm"].validate((function(e){if(e){var a=Object.assign({},t.temp);Object(l["k"])(a).then((function(e){var a=t.list.findIndex((function(t){return t.id===e.uid}));t.list.splice(a,1,e),t.dialogFormVisible=!1,t.$notify({title:"Success",message:"Update Successfully",type:"success",duration:2e3})}))}}))},formatJson:function(t){return this.list.map((function(e){return t.map((function(t){return"timestamp"===t?Object(r["c"])(e[t]):e[t]}))}))},getSortClass:function(t){var e=this.listQuery.sort;return e==="+".concat(t)?"ascending":"descending"}}},u=c,d=a("2877"),p=Object(d["a"])(u,i,n,!1,null,null,null);e["default"]=p.exports},e8c7:function(t,e,a){"use strict";a("fce2")},f201:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],key:t.tableKey,staticStyle:{width:"100%"},attrs:{data:t.list,border:"",fit:"","highlight-current-row":""},on:{"sort-change":t.sortChange}},[a("el-table-column",{attrs:{label:"Aid",prop:"aid",sortable:"custom",align:"center",width:"80","class-name":t.getSortClass("aid")},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(i.aid))])]}}])}),a("el-table-column",{attrs:{label:"Rid","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(i.rid))])]}}])}),a("el-table-column",{attrs:{label:"Avatar Name","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(i.avatar_name))])]}}])}),a("el-table-column",{attrs:{label:"Star","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("span",[t._v(t._s(i.star))])]}}])}),a("el-table-column",{attrs:{label:"Actions",align:"center",width:"230","class-name":"small-padding fixed-width"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.handleUpdate(i)}}},[t._v(" Edit ")])]}}])})],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total>0"}],attrs:{total:t.total,page:t.listQuery.page,limit:t.listQuery.limit},on:{"update:page":function(e){return t.$set(t.listQuery,"page",e)},"update:limit":function(e){return t.$set(t.listQuery,"limit",e)},pagination:t.getList}}),a("el-dialog",{attrs:{title:"Update Avatar",visible:t.dialogFormVisible},on:{"update:visible":function(e){t.dialogFormVisible=e}}},[a("el-form",{ref:"dataForm",staticStyle:{width:"400px","margin-left":"50px"},attrs:{rules:t.rules,model:t.temp,"label-position":"left","label-width":"108px"}},[a("el-form-item",{attrs:{label:"Rid",prop:"rid"}},[a("el-input",{model:{value:t.temp.rid,callback:function(e){t.$set(t.temp,"rid",e)},expression:"temp.rid"}})],1),a("el-form-item",{attrs:{label:"Avatar Name",prop:"avatar_name"}},[a("el-input",{model:{value:t.temp.avatar_name,callback:function(e){t.$set(t.temp,"avatar_name",e)},expression:"temp.avatar_name"}})],1),a("el-form-item",{attrs:{label:"Star",prop:"star"}},[a("el-input",{model:{value:t.temp.star,callback:function(e){t.$set(t.temp,"star",t._n(e))},expression:"temp.star"}})],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.dialogFormVisible=!1}}},[t._v(" Cancel ")]),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.updateData()}}},[t._v(" Confirm ")])],1)],1),a("el-dialog",{attrs:{visible:t.dialogPvVisible,title:"Reading statistics"},on:{"update:visible":function(e){t.dialogPvVisible=e}}},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.pvData,border:"",fit:"","highlight-current-row":""}},[a("el-table-column",{attrs:{prop:"key",label:"Channel"}}),a("el-table-column",{attrs:{prop:"pv",label:"Pv"}})],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.dialogPvVisible=!1}}},[t._v("Confirm")])],1)],1)],1)},n=[],s=(a("4e82"),a("c740"),a("a434"),a("6724")),r=a("333d"),o=a("b775");function l(t){return Object(o["a"])({url:"/CrazyCarSpringBootServer/v2/Background/getAvatarInfos",method:"get",params:t})}function c(t){return Object(o["a"])({url:"/CrazyCarSpringBootServer/v2/Background/updateAvatarInfo",method:"post",data:t})}var u={name:"Avatar",components:{Pagination:r["a"]},directives:{waves:s["a"]},filters:{},data:function(){return{tableKey:0,list:null,total:0,listLoading:!0,listQuery:{page:1,limit:20,importance:void 0,title:void 0,type:void 0,sort:"+aid"},sortOptions:[{label:"ID Ascending",key:"+aid"},{label:"ID Descending",key:"-aid"}],showReviewer:!1,temp:{aid:void 0,rid:"",avatar_name:"",star:0},dialogFormVisible:!1,dialogPvVisible:!1,pvData:[],rules:{rid:[{required:!0,message:"rid is required",trigger:"change"}],avatar_name:[{required:!0,message:"avatar_name is required",trigger:"change"}],star:[{required:!0,message:"star is required",type:"number",trigger:"change"}]},downloadLoading:!1}},created:function(){this.getList()},methods:{getList:function(){var t=this;this.listLoading=!0,l(this.listQuery).then((function(e){t.list=e.items,t.total=e.total,t.listLoading=!1}))},handleFilter:function(){this.listQuery.page=1,this.getList()},sortChange:function(t){var e=t.prop,a=t.order;"aid"===e&&this.sortByID(a)},sortByID:function(t){this.listQuery.sort="ascending"===t?"+aid":"-aid",this.handleFilter()},resetTemp:function(){this.temp={aid:void 0,rid:"",avatar_name:"",star:0}},handleUpdate:function(t){var e=this;this.temp=Object.assign({},t),this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["dataForm"].clearValidate()}))},updateData:function(){var t=this;this.$refs["dataForm"].validate((function(e){if(e){var a=Object.assign({},t.temp);c(a).then((function(e){var a=t.list.findIndex((function(t){return t.aid===e.aid}));t.list.splice(a,1,e),t.dialogFormVisible=!1,t.$notify({title:"Success",message:"Update Successfully",type:"success",duration:2e3})}))}}))},getSortClass:function(t){var e=this.listQuery.sort;return e==="+".concat(t)?"ascending":"descending"}}},d=u,p=a("2877"),m=Object(p["a"])(d,i,n,!1,null,null,null);e["default"]=m.exports},f504:function(t,e,a){"use strict";a("f580")},f580:function(t,e,a){},fbb1:function(t,e,a){},fce2:function(t,e,a){},feca:function(t,e,a){var i={"./404.vue":"8cdb","./assets/index.vue":"a185","./avatar/index.vue":"f201","./dashboard/components/LineChart.vue":"79cf","./dashboard/components/PanelGroup.vue":"3e3b","./dashboard/components/PieChart.vue":"8e8b","./dashboard/components/TodoList/Todo.vue":"c062","./dashboard/components/TodoList/index.vue":"979f","./dashboard/index.vue":"9406","./equip/index.vue":"5d49","./form/index.vue":"371d","./login/index.vue":"9ed6","./match/index.vue":"9f50","./permission/role.vue":"d78e","./trial/index.vue":"42f1","./user/index.vue":"e382","./version/index.vue":"9fe8"};function n(t){var e=s(t);return a(e)}function s(t){if(!a.o(i,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return i[t]}n.keys=function(){return Object.keys(i)},n.resolve=s,t.exports=n,n.id="feca"}}]); \ No newline at end of file diff --git a/CrazyCarBackground/crazy_car_background/static/js/chunk-84a47a64.28802994.js b/CrazyCarBackground/crazy_car_background/static/js/chunk-84a47a64.28802994.js new file mode 100644 index 000000000..9bf6584e9 --- /dev/null +++ b/CrazyCarBackground/crazy_car_background/static/js/chunk-84a47a64.28802994.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-84a47a64"],{"0ed0":function(e,t,n){"use strict";n("423f")},"423f":function(e,t,n){},b9ec:function(e,t,n){"use strict";n.r(t);var c=function(){var e=this,t=e.$createElement;e._self._c;return e._m(0)},s=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"centered-container"},[n("div",{staticClass:"centered-content"},[n("h1",[e._v("Welcome to the Admin Panel")])])])}],a=(n("0ed0"),n("2877")),i={},r=Object(a["a"])(i,c,s,!1,null,null,null);t["default"]=r.exports}}]); \ No newline at end of file diff --git a/CrazyCarBackground/crazy_car_background/static/js/chunk-b356edba.2244dcc9.js b/CrazyCarBackground/crazy_car_background/static/js/chunk-b356edba.2244dcc9.js new file mode 100644 index 000000000..d3631dc2a --- /dev/null +++ b/CrazyCarBackground/crazy_car_background/static/js/chunk-b356edba.2244dcc9.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b356edba"],{"634d":function(e,t,n){"use strict";n("9344")},9344:function(e,t,n){},"9ed6":function(e,t,n){"use strict";n.r(t);var s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"login-container"},[n("el-form",{ref:"loginForm",staticClass:"login-form",attrs:{model:e.loginForm,rules:e.loginRules,"auto-complete":"on","label-position":"left"}},[n("div",{staticClass:"title-container"},[n("h3",{staticClass:"title"},[e._v("Crazy Car Background")])]),n("el-form-item",{attrs:{prop:"username"}},[n("span",{staticClass:"svg-container"},[n("svg-icon",{attrs:{"icon-class":"user-icon"}})],1),n("el-input",{ref:"username",attrs:{placeholder:"Username",name:"username",type:"text",tabindex:"1","auto-complete":"on"},model:{value:e.loginForm.username,callback:function(t){e.$set(e.loginForm,"username",t)},expression:"loginForm.username"}})],1),n("el-form-item",{attrs:{prop:"password"}},[n("span",{staticClass:"svg-container"},[n("svg-icon",{attrs:{"icon-class":"password"}})],1),n("el-input",{key:e.passwordType,ref:"password",attrs:{type:e.passwordType,placeholder:"Password",name:"password",tabindex:"2","auto-complete":"on"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleLogin(t)}},model:{value:e.loginForm.password,callback:function(t){e.$set(e.loginForm,"password",t)},expression:"loginForm.password"}}),n("span",{staticClass:"show-pwd",on:{click:e.showPwd}},[n("svg-icon",{attrs:{"icon-class":"password"===e.passwordType?"eye":"eye-open"}})],1)],1),n("el-button",{staticStyle:{width:"100%","margin-bottom":"30px"},attrs:{loading:e.loading,type:"primary"},nativeOn:{click:function(t){return t.preventDefault(),e.handleLogin(t)}}},[e._v("Login")])],1)],1)},o=[],r=n("61f7"),a={name:"Login",data:function(){var e=function(e,t,n){Object(r["b"])(t)?n():n(new Error("Please enter the correct user name"))},t=function(e,t,n){t.length<6?n(new Error("The password can not be less than 6 digits")):n()};return{loginForm:{username:"",password:""},loginRules:{username:[{required:!0,trigger:"blur",validator:e}],password:[{required:!0,trigger:"blur",validator:t}]},loading:!1,passwordType:"password",redirect:void 0}},watch:{$route:{handler:function(e){this.redirect=e.query&&e.query.redirect},immediate:!0}},methods:{showPwd:function(){var e=this;"password"===this.passwordType?this.passwordType="":this.passwordType="password",this.$nextTick((function(){e.$refs.password.focus()}))},handleLogin:function(){var e=this;this.$refs.loginForm.validate((function(t){if(!t)return console.log("error submit!!"),!1;e.loading=!0,e.$store.dispatch("user/login",e.loginForm).then((function(){e.$router.push({path:"/welcome"}),e.loading=!1})).catch((function(){e.loading=!1}))}))}}},i=a,l=(n("634d"),n("c3c6"),n("2877")),c=Object(l["a"])(i,s,o,!1,null,"47c362bf",null);t["default"]=c.exports},c3c6:function(e,t,n){"use strict";n("c88b")},c88b:function(e,t,n){}}]); \ No newline at end of file diff --git a/CrazyCarBackground/crazy_car_background/static/js/chunk-dbac9424.094f7fc1.js b/CrazyCarBackground/crazy_car_background/static/js/chunk-dbac9424.5490d716.js similarity index 99% rename from CrazyCarBackground/crazy_car_background/static/js/chunk-dbac9424.094f7fc1.js rename to CrazyCarBackground/crazy_car_background/static/js/chunk-dbac9424.5490d716.js index 09fc60c45..b81039ff1 100644 --- a/CrazyCarBackground/crazy_car_background/static/js/chunk-dbac9424.094f7fc1.js +++ b/CrazyCarBackground/crazy_car_background/static/js/chunk-dbac9424.5490d716.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-dbac9424","chunk-42649637"],{"0ccb":function(t,e,n){var i=n("50c4"),r=n("1148"),a=n("1d80"),o=Math.ceil,s=function(t){return function(e,n,s){var l,u,c=String(a(e)),d=c.length,f=void 0===s?" ":String(s),p=i(n);return p<=d||""==f?c:(l=p-d,u=r.call(f,o(l/f.length)),u.length>l&&(u=u.slice(0,l)),t?c+u:u+c)}};t.exports={start:s(!1),end:s(!0)}},1148:function(t,e,n){"use strict";var i=n("a691"),r=n("1d80");t.exports="".repeat||function(t){var e=String(r(this)),n="",a=i(t);if(a<0||a==1/0)throw RangeError("Wrong number of repetitions");for(;a>0;(a>>>=1)&&(e+=e))1&a&&(n+=e);return n}},"333d":function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"pagination-container",class:{hidden:t.hidden}},[n("el-pagination",t._b({attrs:{background:t.background,"current-page":t.currentPage,"page-size":t.pageSize,layout:t.layout,"page-sizes":t.pageSizes,total:t.total},on:{"update:currentPage":function(e){t.currentPage=e},"update:current-page":function(e){t.currentPage=e},"update:pageSize":function(e){t.pageSize=e},"update:page-size":function(e){t.pageSize=e},"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}},"el-pagination",t.$attrs,!1))],1)},r=[];n("a9e3");Math.easeInOutQuad=function(t,e,n,i){return t/=i/2,t<1?n/2*t*t+e:(t--,-n/2*(t*(t-2)-1)+e)};var a=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}();function o(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function s(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function l(t,e,n){var i=s(),r=t-i,l=20,u=0;e="undefined"===typeof e?500:e;var c=function t(){u+=l;var s=Math.easeInOutQuad(u,i,r,e);o(s),u1?arguments[1]:void 0)}})},"4e82":function(t,e,n){"use strict";var i=n("23e7"),r=n("1c0b"),a=n("7b0b"),o=n("d039"),s=n("a640"),l=[],u=l.sort,c=o((function(){l.sort(void 0)})),d=o((function(){l.sort(null)})),f=s("sort"),p=c||!d||!f;i({target:"Array",proto:!0,forced:p},{sort:function(t){return void 0===t?u.call(a(this)):u.call(a(this),r(t))}})},5660:function(t,e,n){"use strict";n("7a30")},6062:function(t,e,n){"use strict";var i=n("6d61"),r=n("6566");t.exports=i("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),r)},6566:function(t,e,n){"use strict";var i=n("9bf2").f,r=n("7c73"),a=n("e2cc"),o=n("0366"),s=n("19aa"),l=n("2266"),u=n("7dd0"),c=n("2626"),d=n("83ab"),f=n("f183").fastKey,p=n("69f3"),v=p.set,g=p.getterFor;t.exports={getConstructor:function(t,e,n,u){var c=t((function(t,i){s(t,c,e),v(t,{type:e,index:r(null),first:void 0,last:void 0,size:0}),d||(t.size=0),void 0!=i&&l(i,t[u],t,n)})),p=g(e),m=function(t,e,n){var i,r,a=p(t),o=h(t,e);return o?o.value=n:(a.last=o={index:r=f(e,!0),key:e,value:n,previous:i=a.last,next:void 0,removed:!1},a.first||(a.first=o),i&&(i.next=o),d?a.size++:t.size++,"F"!==r&&(a.index[r]=o)),t},h=function(t,e){var n,i=p(t),r=f(e);if("F"!==r)return i.index[r];for(n=i.first;n;n=n.next)if(n.key==e)return n};return a(c.prototype,{clear:function(){var t=this,e=p(t),n=e.index,i=e.first;while(i)i.removed=!0,i.previous&&(i.previous=i.previous.next=void 0),delete n[i.index],i=i.next;e.first=e.last=void 0,d?e.size=0:t.size=0},delete:function(t){var e=this,n=p(e),i=h(e,t);if(i){var r=i.next,a=i.previous;delete n.index[i.index],i.removed=!0,a&&(a.next=r),r&&(r.previous=a),n.first==i&&(n.first=r),n.last==i&&(n.last=a),d?n.size--:e.size--}return!!i},forEach:function(t){var e,n=p(this),i=o(t,arguments.length>1?arguments[1]:void 0,3);while(e=e?e.next:n.first){i(e.value,e.key,this);while(e&&e.removed)e=e.previous}},has:function(t){return!!h(this,t)}}),a(c.prototype,n?{get:function(t){var e=h(this,t);return e&&e.value},set:function(t,e){return m(this,0===t?0:t,e)}}:{add:function(t){return m(this,t=0===t?0:t,t)}}),d&&i(c.prototype,"size",{get:function(){return p(this).size}}),c},setStrong:function(t,e,n){var i=e+" Iterator",r=g(e),a=g(i);u(t,e,(function(t,e){v(this,{type:i,target:t,state:r(t),kind:e,last:void 0})}),(function(){var t=a(this),e=t.kind,n=t.last;while(n&&n.removed)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),c(e)}}},6724:function(t,e,n){"use strict";n("8d41");var i="@@wavesContext";function r(t,e){function n(n){var i=Object.assign({},e.value),r=Object.assign({ele:t,type:"hit",color:"rgba(0, 0, 0, 0.15)"},i),a=r.ele;if(a){a.style.position="relative",a.style.overflow="hidden";var o=a.getBoundingClientRect(),s=a.querySelector(".waves-ripple");switch(s?s.className="waves-ripple":(s=document.createElement("span"),s.className="waves-ripple",s.style.height=s.style.width=Math.max(o.width,o.height)+"px",a.appendChild(s)),r.type){case"center":s.style.top=o.height/2-s.offsetHeight/2+"px",s.style.left=o.width/2-s.offsetWidth/2+"px";break;default:s.style.top=(n.pageY-o.top-s.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",s.style.left=(n.pageX-o.left-s.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return s.style.backgroundColor=r.color,s.className="waves-ripple z-active",!1}}return t[i]?t[i].removeHandle=n:t[i]={removeHandle:n},n}var a={bind:function(t,e){t.addEventListener("click",r(t,e),!1)},update:function(t,e){t.removeEventListener("click",t[i].removeHandle,!1),t.addEventListener("click",r(t,e),!1)},unbind:function(t){t.removeEventListener("click",t[i].removeHandle,!1),t[i]=null,delete t[i]}},o=function(t){t.directive("waves",a)};window.Vue&&(window.waves=a,Vue.use(o)),a.install=o;e["a"]=a},"6d61":function(t,e,n){"use strict";var i=n("23e7"),r=n("da84"),a=n("94ca"),o=n("6eeb"),s=n("f183"),l=n("2266"),u=n("19aa"),c=n("861d"),d=n("d039"),f=n("1c7e"),p=n("d44e"),v=n("7156");t.exports=function(t,e,n){var g=-1!==t.indexOf("Map"),m=-1!==t.indexOf("Weak"),h=g?"set":"add",b=r[t],y=b&&b.prototype,w=b,x={},S=function(t){var e=y[t];o(y,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(m&&!c(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return m&&!c(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(m&&!c(t))&&e.call(this,0===t?0:t)}:function(t,n){return e.call(this,0===t?0:t,n),this})};if(a(t,"function"!=typeof b||!(m||y.forEach&&!d((function(){(new b).entries().next()})))))w=n.getConstructor(e,t,g,h),s.REQUIRED=!0;else if(a(t,!0)){var k=new w,_=k[h](m?{}:-0,1)!=k,E=d((function(){k.has(1)})),C=f((function(t){new b(t)})),z=!m&&d((function(){var t=new b,e=5;while(e--)t[h](e,e);return!t.has(-0)}));C||(w=e((function(e,n){u(e,w,t);var i=v(new b,e,w);return void 0!=n&&l(n,i[h],i,g),i})),w.prototype=y,y.constructor=w),(E||z)&&(S("delete"),S("has"),g&&S("get")),(z||_)&&S(h),m&&y.clear&&delete y.clear}return x[t]=w,i({global:!0,forced:w!=b},x),p(w,t),m||n.setStrong(w,t,g),w}},"7a30":function(t,e,n){},"8d41":function(t,e,n){},"9a0c":function(t,e,n){var i=n("342f");t.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(i)},a15b:function(t,e,n){"use strict";var i=n("23e7"),r=n("44ad"),a=n("fc6a"),o=n("a640"),s=[].join,l=r!=Object,u=o("join",",");i({target:"Array",proto:!0,forced:l||!u},{join:function(t){return s.call(a(this),void 0===t?",":t)}})},a434:function(t,e,n){"use strict";var i=n("23e7"),r=n("23cb"),a=n("a691"),o=n("50c4"),s=n("7b0b"),l=n("65f0"),u=n("8418"),c=n("1dde"),d=n("ae40"),f=c("splice"),p=d("splice",{ACCESSORS:!0,0:0,1:2}),v=Math.max,g=Math.min,m=9007199254740991,h="Maximum allowed length exceeded";i({target:"Array",proto:!0,forced:!f||!p},{splice:function(t,e){var n,i,c,d,f,p,b=s(this),y=o(b.length),w=r(t,y),x=arguments.length;if(0===x?n=i=0:1===x?(n=0,i=y-w):(n=x-2,i=g(v(a(e),0),y-w)),y+n-i>m)throw TypeError(h);for(c=l(b,i),d=0;dy-i+n;d--)delete b[d-1]}else if(n>i)for(d=y-i;d>w;d--)f=d+i-1,p=d+n-1,f in b?b[p]=b[f]:delete b[p];for(d=0;d1?arguments[1]:void 0)}}),a(s)},e382:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"app-container"},[n("div",{staticClass:"filter-container"},[n("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"User Name"},model:{value:t.listQuery.user_name,callback:function(e){t.$set(t.listQuery,"user_name",e)},expression:"listQuery.user_name"}}),n("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:t.handleFilter}},[t._v(" Search ")])],1),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],key:t.tableKey,staticStyle:{width:"100%"},attrs:{data:t.list,border:"",fit:"","highlight-current-row":""},on:{"sort-change":t.sortChange}},[n("el-table-column",{attrs:{label:"UID",prop:"uid",sortable:"custom",align:"center","min-width":"80","class-name":t.getSortClass("id")},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[n("span",[t._v(t._s(i.uid))])]}}])}),n("el-table-column",{attrs:{label:"User Name","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[n("span",[t._v(t._s(i.user_name))])]}}])}),n("el-table-column",{attrs:{label:"Star",align:"center","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[n("span",[t._v(t._s(i.star))])]}}])}),n("el-table-column",{attrs:{label:"VIP",align:"center","class-name":"status-col","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[t._v(" "+t._s(n.is_vip)+" ")]}}])}),n("el-table-column",{attrs:{label:"Actions",align:"center",width:"230","class-name":"small-padding fixed-width"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.handleUpdate(i)}}},[t._v(" Edit ")])]}}])})],1),n("pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total>0"}],attrs:{total:t.total,page:t.listQuery.page,limit:t.listQuery.limit},on:{"update:page":function(e){return t.$set(t.listQuery,"page",e)},"update:limit":function(e){return t.$set(t.listQuery,"limit",e)},pagination:t.getList}}),n("el-dialog",{attrs:{title:"Update User",visible:t.dialogFormVisible},on:{"update:visible":function(e){t.dialogFormVisible=e}}},[n("el-form",{ref:"dataForm",staticStyle:{"min-width":"140px","max-width":"400px","margin-left":"50px"},attrs:{rules:t.rules,model:t.temp,"label-position":"left","label-width":"70px"}},[n("el-form-item",{attrs:{label:"Name",prop:"user_name"}},[t._v(" "+t._s(t.temp.user_name)+" ")]),n("el-form-item",{attrs:{label:"Star",prop:"star"}},[n("el-input",{model:{value:t.temp.star,callback:function(e){t.$set(t.temp,"star",t._n(e))},expression:"temp.star"}})],1),n("el-form-item",{attrs:{label:"VIP",prop:"is_vip"}},[n("el-switch",{model:{value:t.temp.is_vip,callback:function(e){t.$set(t.temp,"is_vip",e)},expression:"temp.is_vip"}})],1)],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(e){t.dialogFormVisible=!1}}},[t._v(" Cancel ")]),n("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.updateData()}}},[t._v(" Confirm ")])],1)],1),n("el-dialog",{attrs:{visible:t.dialogPvVisible,title:"Reading statistics"},on:{"update:visible":function(e){t.dialogPvVisible=e}}},[n("el-table",{staticStyle:{width:"100%"},attrs:{data:t.pvData,border:"",fit:"","highlight-current-row":""}},[n("el-table-column",{attrs:{prop:"key",label:"Channel"}}),n("el-table-column",{attrs:{prop:"pv",label:"Pv"}})],1),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{type:"primary"},on:{click:function(e){t.dialogPvVisible=!1}}},[t._v("Confirm")])],1)],1)],1)},r=[],a=(n("4e82"),n("c740"),n("a434"),n("d81d"),n("6724")),o=n("ed08"),s=n("333d"),l=n("c24f"),u={name:"User",components:{Pagination:s["a"]},directives:{waves:a["a"]},filters:{},data:function(){return{tableKey:0,list:null,total:0,listLoading:!1,listQuery:{page:1,limit:20,importance:void 0,title:void 0,user_name:void 0,sort:"+id"},importanceOptions:[1,2,3],sortOptions:[{label:"ID Ascending",key:"+id"},{label:"ID Descending",key:"-id"}],showReviewer:!1,temp:{uid:void 0,user_name:void 0,star:0,is_vip:!1},dialogFormVisible:!1,dialogPvVisible:!1,pvData:[],rules:{uid:[{required:!1,message:"type is not required",trigger:"change",readonly:!0}],user_name:[{required:!1,message:"type is not required",trigger:"change",readonly:!0}],star:[{required:!0,message:"star is required",type:"number",trigger:"change"}],is_vip:[{required:!0,message:"vip is required",trigger:"blur"}]},downloadLoading:!1,parseTime:o["c"]}},methods:{getList:function(){var t=this;this.listLoading=!0,this.list=null,this.total=0,Object(l["g"])(this.listQuery).then((function(e){t.list=e.items,t.total=e.total,t.listLoading=!1}))},handleFilter:function(){this.listQuery.page=1,this.getList()},sortChange:function(t){var e=t.prop,n=t.order;"id"===e&&this.sortByID(n)},sortByID:function(t){this.listQuery.sort="ascending"===t?"+id":"-id",this.handleFilter()},resetTemp:function(){this.temp={uid:void 0,user_name:"",star:0,is_vip:!1}},handleUpdate:function(t){var e=this;this.temp=Object.assign({},t),this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["dataForm"].clearValidate()}))},updateData:function(){var t=this;this.$refs["dataForm"].validate((function(e){if(e){var n=Object.assign({},t.temp);Object(l["k"])(n).then((function(e){var n=t.list.findIndex((function(t){return t.id===e.uid}));t.list.splice(n,1,e),t.dialogFormVisible=!1,t.$notify({title:"Success",message:"Update Successfully",type:"success",duration:2e3})}))}}))},formatJson:function(t){return this.list.map((function(e){return t.map((function(t){return"timestamp"===t?Object(o["c"])(e[t]):e[t]}))}))},getSortClass:function(t){var e=this.listQuery.sort;return e==="+".concat(t)?"ascending":"descending"}}},c=u,d=n("2877"),f=Object(d["a"])(c,i,r,!1,null,null,null);e["default"]=f.exports},ed08:function(t,e,n){"use strict";n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return o}));var i=n("53ca");n("ac1f"),n("00b4"),n("5319"),n("4d63"),n("2c3e"),n("25f0"),n("d3b7"),n("4d90"),n("a15b"),n("d81d"),n("b64b"),n("159b"),n("fb6a"),n("a630"),n("3ca3"),n("6062"),n("ddb0"),n("466d");function r(t,e){if(0===arguments.length||!t)return null;var n,r=e||"{y}-{m}-{d} {h}:{i}:{s}";"object"===Object(i["a"])(t)?n=t:("string"===typeof t&&(t=/^[0-9]+$/.test(t)?parseInt(t):t.replace(new RegExp(/-/gm),"/")),"number"===typeof t&&10===t.toString().length&&(t*=1e3),n=new Date(t));var a={y:n.getFullYear(),m:n.getMonth()+1,d:n.getDate(),h:n.getHours(),i:n.getMinutes(),s:n.getSeconds(),a:n.getDay()},o=r.replace(/{([ymdhisa])+}/g,(function(t,e){var n=a[e];return"a"===e?["日","一","二","三","四","五","六"][n]:n.toString().padStart(2,"0")}));return o}function a(t,e,n){var i,r,a,o,s,l=function l(){var u=+new Date-o;u0?i=setTimeout(l,e-u):(i=null,n||(s=t.apply(a,r),i||(a=r=null)))};return function(){for(var r=arguments.length,u=new Array(r),c=0;cl&&(u=u.slice(0,l)),t?c+u:u+c)}};t.exports={start:s(!1),end:s(!0)}},1148:function(t,e,n){"use strict";var i=n("a691"),r=n("1d80");t.exports="".repeat||function(t){var e=String(r(this)),n="",a=i(t);if(a<0||a==1/0)throw RangeError("Wrong number of repetitions");for(;a>0;(a>>>=1)&&(e+=e))1&a&&(n+=e);return n}},"333d":function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"pagination-container",class:{hidden:t.hidden}},[n("el-pagination",t._b({attrs:{background:t.background,"current-page":t.currentPage,"page-size":t.pageSize,layout:t.layout,"page-sizes":t.pageSizes,total:t.total},on:{"update:currentPage":function(e){t.currentPage=e},"update:current-page":function(e){t.currentPage=e},"update:pageSize":function(e){t.pageSize=e},"update:page-size":function(e){t.pageSize=e},"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}},"el-pagination",t.$attrs,!1))],1)},r=[];n("a9e3");Math.easeInOutQuad=function(t,e,n,i){return t/=i/2,t<1?n/2*t*t+e:(t--,-n/2*(t*(t-2)-1)+e)};var a=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}();function o(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function s(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function l(t,e,n){var i=s(),r=t-i,l=20,u=0;e="undefined"===typeof e?500:e;var c=function t(){u+=l;var s=Math.easeInOutQuad(u,i,r,e);o(s),u1?arguments[1]:void 0)}})},"4e82":function(t,e,n){"use strict";var i=n("23e7"),r=n("1c0b"),a=n("7b0b"),o=n("d039"),s=n("a640"),l=[],u=l.sort,c=o((function(){l.sort(void 0)})),d=o((function(){l.sort(null)})),f=s("sort"),p=c||!d||!f;i({target:"Array",proto:!0,forced:p},{sort:function(t){return void 0===t?u.call(a(this)):u.call(a(this),r(t))}})},5660:function(t,e,n){"use strict";n("7a30")},6062:function(t,e,n){"use strict";var i=n("6d61"),r=n("6566");t.exports=i("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),r)},6566:function(t,e,n){"use strict";var i=n("9bf2").f,r=n("7c73"),a=n("e2cc"),o=n("0366"),s=n("19aa"),l=n("2266"),u=n("7dd0"),c=n("2626"),d=n("83ab"),f=n("f183").fastKey,p=n("69f3"),v=p.set,g=p.getterFor;t.exports={getConstructor:function(t,e,n,u){var c=t((function(t,i){s(t,c,e),v(t,{type:e,index:r(null),first:void 0,last:void 0,size:0}),d||(t.size=0),void 0!=i&&l(i,t[u],t,n)})),p=g(e),m=function(t,e,n){var i,r,a=p(t),o=h(t,e);return o?o.value=n:(a.last=o={index:r=f(e,!0),key:e,value:n,previous:i=a.last,next:void 0,removed:!1},a.first||(a.first=o),i&&(i.next=o),d?a.size++:t.size++,"F"!==r&&(a.index[r]=o)),t},h=function(t,e){var n,i=p(t),r=f(e);if("F"!==r)return i.index[r];for(n=i.first;n;n=n.next)if(n.key==e)return n};return a(c.prototype,{clear:function(){var t=this,e=p(t),n=e.index,i=e.first;while(i)i.removed=!0,i.previous&&(i.previous=i.previous.next=void 0),delete n[i.index],i=i.next;e.first=e.last=void 0,d?e.size=0:t.size=0},delete:function(t){var e=this,n=p(e),i=h(e,t);if(i){var r=i.next,a=i.previous;delete n.index[i.index],i.removed=!0,a&&(a.next=r),r&&(r.previous=a),n.first==i&&(n.first=r),n.last==i&&(n.last=a),d?n.size--:e.size--}return!!i},forEach:function(t){var e,n=p(this),i=o(t,arguments.length>1?arguments[1]:void 0,3);while(e=e?e.next:n.first){i(e.value,e.key,this);while(e&&e.removed)e=e.previous}},has:function(t){return!!h(this,t)}}),a(c.prototype,n?{get:function(t){var e=h(this,t);return e&&e.value},set:function(t,e){return m(this,0===t?0:t,e)}}:{add:function(t){return m(this,t=0===t?0:t,t)}}),d&&i(c.prototype,"size",{get:function(){return p(this).size}}),c},setStrong:function(t,e,n){var i=e+" Iterator",r=g(e),a=g(i);u(t,e,(function(t,e){v(this,{type:i,target:t,state:r(t),kind:e,last:void 0})}),(function(){var t=a(this),e=t.kind,n=t.last;while(n&&n.removed)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),c(e)}}},6724:function(t,e,n){"use strict";n("8d41");var i="@@wavesContext";function r(t,e){function n(n){var i=Object.assign({},e.value),r=Object.assign({ele:t,type:"hit",color:"rgba(0, 0, 0, 0.15)"},i),a=r.ele;if(a){a.style.position="relative",a.style.overflow="hidden";var o=a.getBoundingClientRect(),s=a.querySelector(".waves-ripple");switch(s?s.className="waves-ripple":(s=document.createElement("span"),s.className="waves-ripple",s.style.height=s.style.width=Math.max(o.width,o.height)+"px",a.appendChild(s)),r.type){case"center":s.style.top=o.height/2-s.offsetHeight/2+"px",s.style.left=o.width/2-s.offsetWidth/2+"px";break;default:s.style.top=(n.pageY-o.top-s.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",s.style.left=(n.pageX-o.left-s.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return s.style.backgroundColor=r.color,s.className="waves-ripple z-active",!1}}return t[i]?t[i].removeHandle=n:t[i]={removeHandle:n},n}var a={bind:function(t,e){t.addEventListener("click",r(t,e),!1)},update:function(t,e){t.removeEventListener("click",t[i].removeHandle,!1),t.addEventListener("click",r(t,e),!1)},unbind:function(t){t.removeEventListener("click",t[i].removeHandle,!1),t[i]=null,delete t[i]}},o=function(t){t.directive("waves",a)};window.Vue&&(window.waves=a,Vue.use(o)),a.install=o;e["a"]=a},"6d61":function(t,e,n){"use strict";var i=n("23e7"),r=n("da84"),a=n("94ca"),o=n("6eeb"),s=n("f183"),l=n("2266"),u=n("19aa"),c=n("861d"),d=n("d039"),f=n("1c7e"),p=n("d44e"),v=n("7156");t.exports=function(t,e,n){var g=-1!==t.indexOf("Map"),m=-1!==t.indexOf("Weak"),h=g?"set":"add",b=r[t],y=b&&b.prototype,w=b,x={},S=function(t){var e=y[t];o(y,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(m&&!c(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return m&&!c(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(m&&!c(t))&&e.call(this,0===t?0:t)}:function(t,n){return e.call(this,0===t?0:t,n),this})};if(a(t,"function"!=typeof b||!(m||y.forEach&&!d((function(){(new b).entries().next()})))))w=n.getConstructor(e,t,g,h),s.REQUIRED=!0;else if(a(t,!0)){var k=new w,_=k[h](m?{}:-0,1)!=k,E=d((function(){k.has(1)})),C=f((function(t){new b(t)})),z=!m&&d((function(){var t=new b,e=5;while(e--)t[h](e,e);return!t.has(-0)}));C||(w=e((function(e,n){u(e,w,t);var i=v(new b,e,w);return void 0!=n&&l(n,i[h],i,g),i})),w.prototype=y,y.constructor=w),(E||z)&&(S("delete"),S("has"),g&&S("get")),(z||_)&&S(h),m&&y.clear&&delete y.clear}return x[t]=w,i({global:!0,forced:w!=b},x),p(w,t),m||n.setStrong(w,t,g),w}},"7a30":function(t,e,n){},"8d41":function(t,e,n){},"9a0c":function(t,e,n){var i=n("342f");t.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(i)},a15b:function(t,e,n){"use strict";var i=n("23e7"),r=n("44ad"),a=n("fc6a"),o=n("a640"),s=[].join,l=r!=Object,u=o("join",",");i({target:"Array",proto:!0,forced:l||!u},{join:function(t){return s.call(a(this),void 0===t?",":t)}})},a434:function(t,e,n){"use strict";var i=n("23e7"),r=n("23cb"),a=n("a691"),o=n("50c4"),s=n("7b0b"),l=n("65f0"),u=n("8418"),c=n("1dde"),d=n("ae40"),f=c("splice"),p=d("splice",{ACCESSORS:!0,0:0,1:2}),v=Math.max,g=Math.min,m=9007199254740991,h="Maximum allowed length exceeded";i({target:"Array",proto:!0,forced:!f||!p},{splice:function(t,e){var n,i,c,d,f,p,b=s(this),y=o(b.length),w=r(t,y),x=arguments.length;if(0===x?n=i=0:1===x?(n=0,i=y-w):(n=x-2,i=g(v(a(e),0),y-w)),y+n-i>m)throw TypeError(h);for(c=l(b,i),d=0;dy-i+n;d--)delete b[d-1]}else if(n>i)for(d=y-i;d>w;d--)f=d+i-1,p=d+n-1,f in b?b[p]=b[f]:delete b[p];for(d=0;d1?arguments[1]:void 0)}}),a(s)},e382:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"app-container"},[n("div",{staticClass:"filter-container"},[n("el-input",{staticClass:"filter-item",staticStyle:{width:"200px"},attrs:{placeholder:"User Name"},model:{value:t.listQuery.user_name,callback:function(e){t.$set(t.listQuery,"user_name",e)},expression:"listQuery.user_name"}}),n("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:t.handleFilter}},[t._v(" Search ")])],1),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],key:t.tableKey,staticStyle:{width:"100%"},attrs:{data:t.list,border:"",fit:"","highlight-current-row":""},on:{"sort-change":t.sortChange}},[n("el-table-column",{attrs:{label:"UID",prop:"uid",sortable:"custom",align:"center","min-width":"80","class-name":t.getSortClass("id")},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[n("span",[t._v(t._s(i.uid))])]}}])}),n("el-table-column",{attrs:{label:"User Name","min-width":"110px",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[n("span",[t._v(t._s(i.user_name))])]}}])}),n("el-table-column",{attrs:{label:"Star",align:"center","min-width":"150px"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[n("span",[t._v(t._s(i.star))])]}}])}),n("el-table-column",{attrs:{label:"VIP",align:"center","class-name":"status-col","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[t._v(" "+t._s(n.is_vip)+" ")]}}])}),n("el-table-column",{attrs:{label:"Actions",align:"center",width:"230","class-name":"small-padding fixed-width"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.handleUpdate(i)}}},[t._v(" Edit ")])]}}])})],1),n("pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total>0"}],attrs:{total:t.total,page:t.listQuery.page,limit:t.listQuery.limit},on:{"update:page":function(e){return t.$set(t.listQuery,"page",e)},"update:limit":function(e){return t.$set(t.listQuery,"limit",e)},pagination:t.getList}}),n("el-dialog",{attrs:{title:"Update User",visible:t.dialogFormVisible},on:{"update:visible":function(e){t.dialogFormVisible=e}}},[n("el-form",{ref:"dataForm",staticStyle:{"min-width":"140px","max-width":"400px","margin-left":"50px"},attrs:{rules:t.rules,model:t.temp,"label-position":"left","label-width":"70px"}},[n("el-form-item",{attrs:{label:"Name",prop:"user_name"}},[t._v(" "+t._s(t.temp.user_name)+" ")]),n("el-form-item",{attrs:{label:"Star",prop:"star"}},[n("el-input",{model:{value:t.temp.star,callback:function(e){t.$set(t.temp,"star",t._n(e))},expression:"temp.star"}})],1),n("el-form-item",{attrs:{label:"VIP",prop:"is_vip"}},[n("el-switch",{model:{value:t.temp.is_vip,callback:function(e){t.$set(t.temp,"is_vip",e)},expression:"temp.is_vip"}})],1)],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(e){t.dialogFormVisible=!1}}},[t._v(" Cancel ")]),n("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.updateData()}}},[t._v(" Confirm ")])],1)],1),n("el-dialog",{attrs:{visible:t.dialogPvVisible,title:"Reading statistics"},on:{"update:visible":function(e){t.dialogPvVisible=e}}},[n("el-table",{staticStyle:{width:"100%"},attrs:{data:t.pvData,border:"",fit:"","highlight-current-row":""}},[n("el-table-column",{attrs:{prop:"key",label:"Channel"}}),n("el-table-column",{attrs:{prop:"pv",label:"Pv"}})],1),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{type:"primary"},on:{click:function(e){t.dialogPvVisible=!1}}},[t._v("Confirm")])],1)],1)],1)},r=[],a=(n("4e82"),n("c740"),n("a434"),n("d81d"),n("6724")),o=n("ed08"),s=n("333d"),l=n("c24f"),u={name:"User",components:{Pagination:s["a"]},directives:{waves:a["a"]},filters:{},data:function(){return{tableKey:0,list:null,total:0,listLoading:!1,listQuery:{page:1,limit:20,importance:void 0,title:void 0,user_name:void 0,sort:"+id"},importanceOptions:[1,2,3],sortOptions:[{label:"ID Ascending",key:"+id"},{label:"ID Descending",key:"-id"}],showReviewer:!1,temp:{uid:void 0,user_name:void 0,star:0,is_vip:!1},dialogFormVisible:!1,dialogPvVisible:!1,pvData:[],rules:{uid:[{required:!1,message:"type is not required",trigger:"change",readonly:!0}],user_name:[{required:!1,message:"type is not required",trigger:"change",readonly:!0}],star:[{required:!0,message:"star is required",type:"number",trigger:"change"}],is_vip:[{required:!0,message:"vip is required",trigger:"blur"}]},downloadLoading:!1,parseTime:o["c"]}},methods:{getList:function(){var t=this;this.listLoading=!0,this.list=null,this.total=0,Object(l["f"])(this.listQuery).then((function(e){t.list=e.items,t.total=e.total,t.listLoading=!1}))},handleFilter:function(){this.listQuery.page=1,this.getList()},sortChange:function(t){var e=t.prop,n=t.order;"id"===e&&this.sortByID(n)},sortByID:function(t){this.listQuery.sort="ascending"===t?"+id":"-id",this.handleFilter()},resetTemp:function(){this.temp={uid:void 0,user_name:"",star:0,is_vip:!1}},handleUpdate:function(t){var e=this;this.temp=Object.assign({},t),this.dialogFormVisible=!0,this.$nextTick((function(){e.$refs["dataForm"].clearValidate()}))},updateData:function(){var t=this;this.$refs["dataForm"].validate((function(e){if(e){var n=Object.assign({},t.temp);Object(l["j"])(n).then((function(e){var n=t.list.findIndex((function(t){return t.id===e.uid}));t.list.splice(n,1,e),t.dialogFormVisible=!1,t.$notify({title:"Success",message:"Update Successfully",type:"success",duration:2e3})}))}}))},formatJson:function(t){return this.list.map((function(e){return t.map((function(t){return"timestamp"===t?Object(o["c"])(e[t]):e[t]}))}))},getSortClass:function(t){var e=this.listQuery.sort;return e==="+".concat(t)?"ascending":"descending"}}},c=u,d=n("2877"),f=Object(d["a"])(c,i,r,!1,null,null,null);e["default"]=f.exports},ed08:function(t,e,n){"use strict";n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return o}));var i=n("53ca");n("ac1f"),n("00b4"),n("5319"),n("4d63"),n("2c3e"),n("25f0"),n("d3b7"),n("4d90"),n("a15b"),n("d81d"),n("b64b"),n("159b"),n("fb6a"),n("a630"),n("3ca3"),n("6062"),n("ddb0"),n("466d");function r(t,e){if(0===arguments.length||!t)return null;var n,r=e||"{y}-{m}-{d} {h}:{i}:{s}";"object"===Object(i["a"])(t)?n=t:("string"===typeof t&&(t=/^[0-9]+$/.test(t)?parseInt(t):t.replace(new RegExp(/-/gm),"/")),"number"===typeof t&&10===t.toString().length&&(t*=1e3),n=new Date(t));var a={y:n.getFullYear(),m:n.getMonth()+1,d:n.getDate(),h:n.getHours(),i:n.getMinutes(),s:n.getSeconds(),a:n.getDay()},o=r.replace(/{([ymdhisa])+}/g,(function(t,e){var n=a[e];return"a"===e?["日","一","二","三","四","五","六"][n]:n.toString().padStart(2,"0")}));return o}function a(t,e,n){var i,r,a,o,s,l=function l(){var u=+new Date-o;u0?i=setTimeout(l,e-u):(i=null,n||(s=t.apply(a,r),i||(a=r=null)))};return function(){for(var r=arguments.length,u=new Array(r),c=0;c