├── .gitignore ├── README.md ├── babel.config.js ├── dist ├── common.css ├── css │ └── app.2553981a.css ├── favicon.ico ├── img │ └── logo.82b9c7a5.png ├── imgs │ ├── avatar_mini.png │ ├── icons │ │ ├── icon-cancel.png │ │ ├── icon-clear.png │ │ ├── icon-delete.png │ │ ├── icon-done.svg │ │ ├── icon-dropdown.png │ │ ├── icon-edit.png │ │ ├── icon-redo.png │ │ ├── icon-save.png │ │ ├── icon-search.png │ │ └── icon-undo.png │ ├── pixels.png │ ├── pixels2.png │ ├── the-winds-of-winter.png │ └── vue-logo.png ├── index.html └── js │ ├── app.8c85c331.js │ ├── app.8c85c331.js.map │ ├── chunk-vendors.45fdb867.js │ └── chunk-vendors.45fdb867.js.map ├── package-lock.json ├── package.json ├── public ├── common.css ├── favicon.ico ├── imgs │ ├── avatar_mini.png │ ├── icons │ │ ├── icon-cancel.png │ │ ├── icon-clear.png │ │ ├── icon-delete.png │ │ ├── icon-done.svg │ │ ├── icon-dropdown.png │ │ ├── icon-edit.png │ │ ├── icon-redo.png │ │ ├── icon-save.png │ │ ├── icon-search.png │ │ └── icon-undo.png │ ├── pixels.png │ ├── pixels2.png │ ├── the-winds-of-winter.png │ └── vue-logo.png └── index.html ├── src ├── App.vue ├── assets │ └── logo.png ├── components │ ├── ItemList.vue │ ├── MemoEditor.vue │ ├── MemoItem.vue │ └── MenuBar.vue ├── main.ts ├── model │ ├── CateEnum.ts │ └── ItemData.ts ├── shims-tsx.d.ts ├── shims-vue.d.ts └── store │ ├── ActionHelper.ts │ ├── DataHelper.ts │ └── index.ts ├── tsconfig.json └── vue.config.js /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | 4 | # local env files 5 | .env.local 6 | .env.*.local 7 | 8 | # Log files 9 | npm-debug.log* 10 | yarn-debug.log* 11 | yarn-error.log* 12 | 13 | # Editor directories and files 14 | .idea 15 | .vscode 16 | *.suo 17 | *.ntvs* 18 | *.njsproj 19 | *.sln 20 | *.sw? 21 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # memo 2 | 3 | ## Project setup 4 | ``` 5 | npm install 6 | ``` 7 | 8 | ### Compiles and hot-reloads for development 9 | ``` 10 | npm run serve 11 | ``` 12 | 13 | ### Compiles and minifies for production 14 | ``` 15 | npm run build 16 | ``` 17 | 18 | ### Lints and fixes files 19 | ``` 20 | npm run lint 21 | ``` 22 | 23 | ### Customize configuration 24 | See [Configuration Reference](https://cli.vuejs.org/config/). 25 | -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: [ 3 | '@vue/cli-plugin-babel/preset' 4 | ] 5 | } 6 | -------------------------------------------------------------------------------- /dist/common.css: -------------------------------------------------------------------------------- 1 | [v-cloak] { 2 | display: none; 3 | } 4 | 5 | * { 6 | padding: 0; 7 | margin: 0; 8 | border: 0; 9 | list-style: none; 10 | text-decoration: none; 11 | } 12 | 13 | body { 14 | padding-top: 50px; 15 | background: url(./imgs/pixels.png); 16 | } 17 | 18 | blockquote p { 19 | font-size: 14px; 20 | } 21 | 22 | .dropdown-menu a { 23 | cursor: pointer !important; 24 | } 25 | 26 | #vue-memo { 27 | border: 1px solid #e1e1e1; 28 | box-shadow: 0 0 4px 0 #e1e1e1; 29 | padding: 0; 30 | z-index: 1; 31 | } 32 | 33 | .navbar { 34 | border-radius: 0; 35 | margin-bottom: 0; 36 | z-index: 1; 37 | cursor: default; 38 | user-select: none; 39 | -moz-user-select: none; 40 | -ms-user-select: none; 41 | -webkit-user-select: none; 42 | } 43 | 44 | .navbar .navbar-right a { 45 | cursor: pointer; 46 | } 47 | 48 | .navbar .navbar-right .search-box { 49 | width: calc(100% - 24px); 50 | min-width: 180px; 51 | margin: 6px 12px; 52 | } 53 | 54 | .navbar .dropdown-toggle { 55 | position: relative; 56 | padding-right: 45px !important; 57 | transition: 0.2s ease-in-out; 58 | } 59 | 60 | .navbar .dropdown-toggle:hover { 61 | background: #e7e7e7 !important; 62 | } 63 | 64 | .navbar .dropdown-toggle:after { 65 | position: absolute; 66 | width: 24px; 67 | height: 24px; 68 | top: 8px; 69 | right: 18px; 70 | background: url(./imgs/icons/icon-dropdown.png) 0 0 no-repeat; 71 | content: " "; 72 | opacity: 0.6; 73 | } 74 | 75 | @media (min-width: 768px) { 76 | .navbar .dropdown-toggle:after { 77 | top: 13px; 78 | } 79 | } 80 | 81 | .navbar .count { 82 | border-radius: 5px; 83 | float: right; 84 | margin-top: 3px; 85 | } 86 | 87 | .navbar-brand{ 88 | padding-top:5px; 89 | } 90 | 91 | .navbar .current-category .count { 92 | float: none; 93 | margin: -2px 6px 0 9px; 94 | } 95 | 96 | #memos { 97 | min-height: 800px; 98 | margin-top: 6px; 99 | padding: 0; 100 | } 101 | 102 | .memo-container { 103 | padding: 6px; 104 | float: left; 105 | } 106 | 107 | .memo { 108 | position: relative; 109 | border: 1px solid #bdbdbd; 110 | border-radius: 5px; 111 | padding: 9px; 112 | background-color: #fff; 113 | transition: all 0.15s ease-in-out; 114 | } 115 | 116 | .memo:hover { 117 | box-shadow: 0 0 6px 0 #757575; 118 | } 119 | 120 | .memo:hover .mark { 121 | display: block; 122 | } 123 | 124 | .memo[data-completed="true"] { 125 | border-color: #4dabf5; 126 | } 127 | 128 | .memo[data-completed="true"] .mark { 129 | display: block; 130 | } 131 | 132 | .memo .mark { 133 | display: none; 134 | position: absolute; 135 | width: 24px; 136 | height: 24px; 137 | top: -8px; 138 | left: -8px; 139 | border-radius: 50%; 140 | background:#0094ff no-repeat 3px 3px; /* url(./imgs/icons/icon-done.svg) */ 141 | background-size: 18px 18px; 142 | transition: all 0.2s ease-in-out; 143 | cursor: pointer; 144 | } 145 | 146 | .memo .mark:hover { 147 | -webkit-transform: scale(1.2); 148 | transform: scale(1.2); 149 | } 150 | 151 | .memo .memo-heading { 152 | position: relative; 153 | width: 100%; 154 | } 155 | 156 | .memo .memo-heading .tools { 157 | float: right; 158 | margin-top: 6px; 159 | } 160 | 161 | .memo .memo-heading .tools > li { 162 | width: 20px; 163 | height: 20px; 164 | float: left; 165 | margin-left: 10px; 166 | opacity: 0.5; 167 | transition: opacity 0.2s ease-in-out; 168 | } 169 | 170 | .memo .memo-heading .tools > li:hover { 171 | cursor: pointer; 172 | opacity: 1; 173 | } 174 | 175 | .memo .memo-heading .tools > li.edit { 176 | background: url(./imgs/icons/icon-edit.png) no-repeat 0 0; 177 | } 178 | 179 | .memo .memo-heading .tools > li.delete { 180 | background: url(./imgs/icons/icon-delete.png) no-repeat 0 0; 181 | } 182 | 183 | .memo .memo-heading .title { 184 | display: inline-block; 185 | margin-top: 6px; 186 | margin-bottom: 6px; 187 | padding-bottom: 6px; 188 | border-bottom: 1px solid #bdbdbd; 189 | text-overflow: ellipsis; 190 | white-space: nowrap; 191 | overflow: hidden; 192 | max-width: calc(100% - 60px); 193 | } 194 | 195 | .memo .memo-info { 196 | margin: 0 auto 12px; 197 | color: #757575; 198 | font-weight: 300; 199 | } 200 | 201 | .memo .memo-info .category { 202 | float: right; 203 | } 204 | 205 | .memo .content { 206 | border: 1px solid #f8f8f8; 207 | bottom: 12px; 208 | overflow-y: auto; 209 | text-overflow: ellipsis; 210 | height: 180px; 211 | } 212 | 213 | .memo .content[data-type="doodle"] { 214 | overflow: hidden; 215 | } 216 | 217 | .cover-layer, 218 | .memo .content img { 219 | width: 100%; 220 | height: 100%; 221 | } 222 | 223 | .cover-layer { 224 | top: 0; 225 | left: 0; 226 | background-color: #222; 227 | opacity: 0.5; 228 | z-index: 2; 229 | } 230 | 231 | .cover-layer, 232 | .editor-layer { 233 | display: block; 234 | position: absolute; 235 | } 236 | 237 | .editor-layer { 238 | background-color: #fff; 239 | top: 50%; 240 | left: 50%; 241 | transform: translate(-50%,-50%); 242 | padding: 10px; 243 | border: 1px solid #f8f8f8; 244 | border-radius: 3px; 245 | box-shadow: 0 0 6px 0 #f8f8f8; 246 | z-index: 3; 247 | } 248 | 249 | .editor-layer{ 250 | margin-bottom: 10px; 251 | width: 500px; 252 | } 253 | .editor-top{ 254 | position: relative; 255 | margin-bottom: 10px; 256 | width: 100%; 257 | } 258 | 259 | .editor-layer .editor-top .tools { 260 | position: absolute; 261 | top: 6px; 262 | right: 0; 263 | } 264 | 265 | .editor-layer .editor-top .tools > li { 266 | width: 20px; 267 | height: 20px; 268 | float: left; 269 | margin-left: 10px; 270 | opacity: 0.5; 271 | transition: opacity 0.2s ease-in-out; 272 | } 273 | 274 | .editor-layer .editor-top .tools > li:hover { 275 | cursor: pointer; 276 | opacity: 1; 277 | } 278 | 279 | .editor-layer .editor-top .tools > li.save { 280 | background: url(./imgs/icons/icon-save.png) no-repeat 0 0; 281 | } 282 | 283 | .editor-layer .editor-top .tools > li.cancel { 284 | background: url(./imgs/icons/icon-cancel.png) no-repeat 0 0; 285 | } 286 | 287 | .editor-layer .editor-top .editor-title { 288 | width: calc(100% - 140px); 289 | } 290 | 291 | html #edit-doodle .editor-title, 292 | html #edit-markdown .editor-title { 293 | width: calc(100% - 60px); 294 | } 295 | 296 | .editor-layer .editor-top .select-category { 297 | position: absolute; 298 | right: 62px; 299 | top: 0; 300 | transition: all 0.2s ease-in-out; 301 | } 302 | 303 | .editor-layer .editor-top .select-category .dropdown-menu { 304 | min-width: 0; 305 | } 306 | 307 | .editor-layer .text-content { 308 | width: 100%; 309 | height: 350px; 310 | font-size: 12px; 311 | resize: none; 312 | } 313 | 314 | @media (max-width: 768px) { 315 | #memos { 316 | padding: 0 5px; 317 | } 318 | 319 | .memo-container { 320 | padding: 2px; 321 | margin-top: 0; 322 | width: 50%; 323 | } 324 | .editor-layer{ 325 | width: 300px; 326 | transform: translate(-50%,-50%); 327 | } 328 | 329 | 330 | } 331 | 332 | @media (min-width: 768px) and (max-width: 992px) { 333 | .memo-container { 334 | width: 33.3%; 335 | } 336 | } 337 | 338 | @media (min-width: 992px) and (max-width: 1200px) { 339 | .memo-container { 340 | width: 25%; 341 | } 342 | } 343 | 344 | @media (min-width: 1200px) { 345 | .memo-container { 346 | width: 25%; 347 | } 348 | } -------------------------------------------------------------------------------- /dist/css/app.2553981a.css: -------------------------------------------------------------------------------- 1 | .navbar-brand>img[data-v-2e8bd812]{display:inline-block} -------------------------------------------------------------------------------- /dist/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jinyang79/vue-ts-memo/fc6a277f5274701ba38c2e02c27ee9dd06ff5b43/dist/favicon.ico -------------------------------------------------------------------------------- /dist/img/logo.82b9c7a5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jinyang79/vue-ts-memo/fc6a277f5274701ba38c2e02c27ee9dd06ff5b43/dist/img/logo.82b9c7a5.png -------------------------------------------------------------------------------- /dist/imgs/avatar_mini.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jinyang79/vue-ts-memo/fc6a277f5274701ba38c2e02c27ee9dd06ff5b43/dist/imgs/avatar_mini.png -------------------------------------------------------------------------------- /dist/imgs/icons/icon-cancel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jinyang79/vue-ts-memo/fc6a277f5274701ba38c2e02c27ee9dd06ff5b43/dist/imgs/icons/icon-cancel.png -------------------------------------------------------------------------------- /dist/imgs/icons/icon-clear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jinyang79/vue-ts-memo/fc6a277f5274701ba38c2e02c27ee9dd06ff5b43/dist/imgs/icons/icon-clear.png -------------------------------------------------------------------------------- /dist/imgs/icons/icon-delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jinyang79/vue-ts-memo/fc6a277f5274701ba38c2e02c27ee9dd06ff5b43/dist/imgs/icons/icon-delete.png -------------------------------------------------------------------------------- /dist/imgs/icons/icon-done.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /dist/imgs/icons/icon-dropdown.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jinyang79/vue-ts-memo/fc6a277f5274701ba38c2e02c27ee9dd06ff5b43/dist/imgs/icons/icon-dropdown.png -------------------------------------------------------------------------------- /dist/imgs/icons/icon-edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jinyang79/vue-ts-memo/fc6a277f5274701ba38c2e02c27ee9dd06ff5b43/dist/imgs/icons/icon-edit.png -------------------------------------------------------------------------------- /dist/imgs/icons/icon-redo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jinyang79/vue-ts-memo/fc6a277f5274701ba38c2e02c27ee9dd06ff5b43/dist/imgs/icons/icon-redo.png -------------------------------------------------------------------------------- /dist/imgs/icons/icon-save.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jinyang79/vue-ts-memo/fc6a277f5274701ba38c2e02c27ee9dd06ff5b43/dist/imgs/icons/icon-save.png -------------------------------------------------------------------------------- /dist/imgs/icons/icon-search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jinyang79/vue-ts-memo/fc6a277f5274701ba38c2e02c27ee9dd06ff5b43/dist/imgs/icons/icon-search.png -------------------------------------------------------------------------------- /dist/imgs/icons/icon-undo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jinyang79/vue-ts-memo/fc6a277f5274701ba38c2e02c27ee9dd06ff5b43/dist/imgs/icons/icon-undo.png -------------------------------------------------------------------------------- /dist/imgs/pixels.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jinyang79/vue-ts-memo/fc6a277f5274701ba38c2e02c27ee9dd06ff5b43/dist/imgs/pixels.png -------------------------------------------------------------------------------- /dist/imgs/pixels2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jinyang79/vue-ts-memo/fc6a277f5274701ba38c2e02c27ee9dd06ff5b43/dist/imgs/pixels2.png -------------------------------------------------------------------------------- /dist/imgs/the-winds-of-winter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jinyang79/vue-ts-memo/fc6a277f5274701ba38c2e02c27ee9dd06ff5b43/dist/imgs/the-winds-of-winter.png -------------------------------------------------------------------------------- /dist/imgs/vue-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jinyang79/vue-ts-memo/fc6a277f5274701ba38c2e02c27ee9dd06ff5b43/dist/imgs/vue-logo.png -------------------------------------------------------------------------------- /dist/index.html: -------------------------------------------------------------------------------- 1 | 别忘了📌
-------------------------------------------------------------------------------- /dist/js/app.8c85c331.js: -------------------------------------------------------------------------------- 1 | (function(t){function e(e){for(var s,r,o=e[0],c=e[1],l=e[2],d=0,m=[];d0&&void 0!==arguments[0]?arguments[0]:-1,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";Object(r["a"])(this,t),this.id=e,this.categoryId=a,this.title=s,this.content=n,this.createTime=this.toSelfDateStr()}return Object(v["a"])(t,[{key:"toSelfDateStr",value:function(){var t=new Date(Date.now()),e=t.getFullYear()+"-"+(t.getMonth()+1)+"-"+t.getDate()+" "+t.getHours()+":"+t.getMinutes();return e}}]),t}(),h=p,f=function(t){Object(c["a"])(a,t);var e=Object(o["a"])(a);function a(){return Object(r["a"])(this,a),e.apply(this,arguments)}return Object(v["a"])(a,[{key:"showAdd",value:function(){this.$store.state.transMemo=new h(-1,0),this.$store.state.isShow=!0}},{key:"doFilter",value:function(t){return-1==t?this.$store.state.aHelper.memoList.length:this.$store.state.aHelper.memoList.filter((function(e){return e.categoryId==t})).length}},{key:"doFilterByCateId",value:function(t){this.$store.state.filterCateId=t}}]),a}(u["c"]);f=Object(l["a"])([u["a"]],f);var g=f,b=g,y=(a("502a"),a("2877")),C=Object(y["a"])(b,d,m,!1,null,"2e8bd812",null),I=C.exports,w=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"container",attrs:{id:"memos"}},t._l(t.filterMemo(),(function(t){return a("MemoItem",{key:t.id,attrs:{memo:t}})})),1)},O=[],j=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"memo-container"},[a("div",{staticClass:"memo"},[a("div",{staticClass:"mark"}),a("div",{staticClass:"memo-heading"},[a("h5",{staticClass:"title"},[t._v(t._s(t.memo.title))]),a("ul",{staticClass:"tools"},[a("li",{staticClass:"edit",on:{click:t.showEdit}}),a("li",{staticClass:"delete",on:{click:t.doDel}})])]),a("h6",{staticClass:"memo-info"},[a("span",{staticClass:"timeStamp"},[t._v(t._s(t.memo.createTime))]),a("span",{staticClass:"category"},[t._v("分类: "+t._s(t.$store.state.aHelper.getCategoryName(t.memo.categoryId)))])]),a("div",{staticClass:"content"},[a("div",{staticClass:"text"},[t._v(t._s(t.memo.content))])])])])},k=[],A=function(t){Object(c["a"])(a,t);var e=Object(o["a"])(a);function a(){return Object(r["a"])(this,a),e.apply(this,arguments)}return Object(v["a"])(a,[{key:"doDel",value:function(){confirm("确认要删除<".concat(this.memo.title,">的笔记吗?"))&&this.$store.state.aHelper.remove(this.memo.id)}},{key:"showEdit",value:function(){var t=JSON.parse(JSON.stringify(this.memo));this.$store.commit("showEditMemo",t)}}]),a}(u["c"]);Object(l["a"])([Object(u["b"])()],A.prototype,"memo",void 0),A=Object(l["a"])([u["a"]],A);var _=A,D=_,S=Object(y["a"])(D,j,k,!1,null,null,null),F=S.exports,M=function(t){Object(c["a"])(a,t);var e=Object(o["a"])(a);function a(){var t;return Object(r["a"])(this,a),t=e.apply(this,arguments),t.memoArr=t.$store.state.aHelper.memoList,t}return Object(v["a"])(a,[{key:"filterMemo",value:function(){var t=this;return-1==this.$store.state.filterCateId?this.memoArr:this.memoArr.filter((function(e){return e.categoryId==t.$store.state.filterCateId}))}}]),a}(u["c"]);M=Object(l["a"])([Object(u["a"])({components:{MemoItem:F}})],M);var x=M,H=x,E=Object(y["a"])(H,w,O,!1,null,null,null),B=E.exports,K=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"cover-layer"}),a("div",{staticClass:"editor-layer",attrs:{id:"new-markdown"}},[a("div",{staticClass:"editor-top"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.memo.title,expression:"memo.title"}],staticClass:"editor-title form-control",attrs:{type:"text",placeholder:"标题"},domProps:{value:t.memo.title},on:{input:function(e){e.target.composing||t.$set(t.memo,"title",e.target.value)}}}),a("div",{staticClass:"dropdown select-category"},[a("button",{staticClass:"btn btn-default dropdown-toggle",attrs:{"data-toggle":"dropdown"}},[a("span",{staticClass:"category"},[t._v(t._s(this.$store.state.aHelper.getCategoryName(t.memo.categoryId)))]),a("span",{staticClass:"caret"})]),a("ul",{staticClass:"dropdown-menu"},[a("li",{on:{click:function(e){t.memo.categoryId=0}}},[a("a",[t._v("工作")])]),a("li",{on:{click:function(e){t.memo.categoryId=1}}},[a("a",[t._v("生活")])]),a("li",{on:{click:function(e){t.memo.categoryId=2}}},[a("a",[t._v("学习")])])])]),a("ul",{staticClass:"tools"},[a("li",{staticClass:"save",on:{click:t.saveNew}}),a("li",{staticClass:"cancel",on:{click:t.closeWin}})])]),a("textarea",{directives:[{name:"model",rawName:"v-model",value:t.memo.content,expression:"memo.content"}],staticClass:"text-content form-control",attrs:{placeholder:"内容"},domProps:{value:t.memo.content},on:{input:function(e){e.target.composing||t.$set(t.memo,"content",e.target.value)}}})])])},N=[],$=(a("498a"),function(t){Object(c["a"])(a,t);var e=Object(o["a"])(a);function a(){var t;return Object(r["a"])(this,a),t=e.apply(this,arguments),t.memo=new h(-1,0),t}return Object(v["a"])(a,[{key:"created",value:function(){this.memo=this.$store.state.transMemo}},{key:"closeWin",value:function(){this.$store.state.isShow=!1}},{key:"saveNew",value:function(){this.memo&&this.memo.categoryId>-1&&this.memo.title.trim().length>0&&this.memo.content.trim().length>0?(this.memo.id<=-1?this.$store.state.aHelper.add(this.memo):this.$store.state.aHelper.edit(this.memo),this.$store.state.isShow=!1):alert("对不起,输入错误~~!")}}]),a}(u["c"]));$=Object(l["a"])([u["a"]],$);var L=$,Q=L,W=Object(y["a"])(Q,K,N,!1,null,null,null),J=W.exports,T=function(t){Object(c["a"])(a,t);var e=Object(o["a"])(a);function a(){return Object(r["a"])(this,a),e.apply(this,arguments)}return a}(u["c"]);T=Object(l["a"])([Object(u["a"])({components:{MenuBar:I,ItemList:B,MemoEditor:J}})],T);var U=T,Y=U,P=Object(y["a"])(Y,n,i,!1,null,null,null),V=P.exports,R=a("2f62"),z=(a("7db0"),a("c740"),a("d81d"),a("a434"),function(){function t(e,a){Object(r["a"])(this,t),this.dataKey=e,this.primaryKey=a}return Object(v["a"])(t,[{key:"readData",value:function(){var t=localStorage.getItem(this.dataKey),e=[];return null!=t&&(e=JSON.parse(t)),e}},{key:"saveData",value:function(t){var e=JSON.stringify(t);localStorage.setItem(this.dataKey,e)}},{key:"addData",value:function(t){var e=this.readData();null==e&&(e=[]);var a=e.length>0?e[e.length-1][this.primaryKey]+1:1;return t[this.primaryKey]=a,e.push(t),this.saveData(e),a}},{key:"removeDataById",value:function(t){var e=this,a=this.readData(),s=a.findIndex((function(a){return a[e.primaryKey]==t}));return s>-1&&(a.splice(s,1),this.saveData(a),!0)}}]),t}()),q=z,Z=function(){function t(){Object(r["a"])(this,t),this.dataHelper=new q("memoData","id"),this.memoList=this.readData()}return Object(v["a"])(t,[{key:"readData",value:function(){var t=this.dataHelper.readData(),e=t.map((function(t){var e=new h;return e.id=t.id,e.categoryId=t.categoryId,e.title=t.title,e.content=t.content,e.createTime=t.createTime,e}));return e}},{key:"getCategoryName",value:function(t){var e=["工作","生活","学习"];return e[t]}},{key:"add",value:function(t){return t.id=this.dataHelper.addData(t),this.memoList.push(t),this.dataHelper.saveData(this.memoList),t.id}},{key:"edit",value:function(t){var e=this.memoList.find((function(e){return e.id==t.id}));e&&(e.categoryId=t.categoryId,e.title=t.title,e.content=t.content,this.dataHelper.saveData(this.memoList))}},{key:"remove",value:function(t){var e=this.memoList.findIndex((function(e){return e.id===t}));e>-1&&(this.memoList.splice(e,1),this.dataHelper.saveData(this.memoList))}}]),t}(),G=Z;s["a"].use(R["a"]);var X=new R["a"].Store({state:{isShow:!1,aHelper:new G,transMemo:null,filterCateId:-1},mutations:{showEditMemo:function(t,e){t.transMemo=e,t.isShow=!0}}}),tt=X;s["a"].config.productionTip=!1,new s["a"]({render:function(t){return t(V)},store:tt}).$mount("#app")},cf05:function(t,e,a){t.exports=a.p+"img/logo.82b9c7a5.png"}}); 2 | //# sourceMappingURL=app.8c85c331.js.map -------------------------------------------------------------------------------- /dist/js/app.8c85c331.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/components/MenuBar.vue?534d","webpack:///./src/App.vue?911f","webpack:///./src/components/MenuBar.vue?1d0b","webpack:///./src/model/ItemData.ts","webpack:///./src/components/MenuBar.vue","webpack:///./src/components/MenuBar.vue?4f65","webpack:///./src/components/MenuBar.vue?6bbd","webpack:///./src/components/ItemList.vue?b618","webpack:///./src/components/MemoItem.vue?8604","webpack:///./src/components/MemoItem.vue","webpack:///./src/components/MemoItem.vue?a53f","webpack:///./src/components/MemoItem.vue?7f0e","webpack:///./src/components/ItemList.vue","webpack:///./src/components/ItemList.vue?289f","webpack:///./src/components/ItemList.vue?b749","webpack:///./src/components/MemoEditor.vue?7d68","webpack:///./src/components/MemoEditor.vue","webpack:///./src/components/MemoEditor.vue?0004","webpack:///./src/components/MemoEditor.vue?6204","webpack:///./src/App.vue","webpack:///./src/App.vue?0ab4","webpack:///./src/App.vue?bff9","webpack:///./src/store/DataHelper.ts","webpack:///./src/store/ActionHelper.ts","webpack:///./src/store/index.ts","webpack:///./src/main.ts","webpack:///./src/assets/logo.png"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","Object","prototype","hasOwnProperty","call","installedChunks","push","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","exports","module","l","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","p","jsonpArray","window","oldJsonpFunction","slice","_vm","this","_h","$createElement","_c","_self","attrs","$store","state","_e","staticRenderFns","staticClass","_m","_v","on","showAdd","_s","doFilter","$event","doFilterByCateId","id","categoryId","title","content","createTime","toSelfDateStr","date","Date","now","str","getFullYear","getMonth","getDate","getHours","getMinutes","transMemo","isShow","cid","aHelper","memoList","filter","ele","filterCateId","component","_l","filterMemo","item","memo","showEdit","doDel","getCategoryName","confirm","remove","newMemo","JSON","parse","stringify","commit","memoArr","components","MemoItem","directives","rawName","expression","domProps","target","composing","$set","saveNew","closeWin","trim","add","edit","alert","MenuBar","ItemList","MemoEditor","dataKey","primaryKey","strData","localStorage","getItem","arrData","setItem","newDataObj","dataArray","readData","newId","saveData","arr","index","findIndex","dataHelper","arrObj","arrItem","map","cateId","arrName","addData","editItem","find","use","store","Store","mutations","showEditMemo","editMemo","config","productionTip","render","h","$mount"],"mappings":"aACE,SAASA,EAAqBC,GAQ7B,IAPA,IAMIC,EAAUC,EANVC,EAAWH,EAAK,GAChBI,EAAcJ,EAAK,GACnBK,EAAiBL,EAAK,GAIHM,EAAI,EAAGC,EAAW,GACpCD,EAAIH,EAASK,OAAQF,IACzBJ,EAAUC,EAASG,GAChBG,OAAOC,UAAUC,eAAeC,KAAKC,EAAiBX,IAAYW,EAAgBX,IACpFK,EAASO,KAAKD,EAAgBX,GAAS,IAExCW,EAAgBX,GAAW,EAE5B,IAAID,KAAYG,EACZK,OAAOC,UAAUC,eAAeC,KAAKR,EAAaH,KACpDc,EAAQd,GAAYG,EAAYH,IAG/Be,GAAqBA,EAAoBhB,GAE5C,MAAMO,EAASC,OACdD,EAASU,OAATV,GAOD,OAHAW,EAAgBJ,KAAKK,MAAMD,EAAiBb,GAAkB,IAGvDe,IAER,SAASA,IAER,IADA,IAAIC,EACIf,EAAI,EAAGA,EAAIY,EAAgBV,OAAQF,IAAK,CAG/C,IAFA,IAAIgB,EAAiBJ,EAAgBZ,GACjCiB,GAAY,EACRC,EAAI,EAAGA,EAAIF,EAAed,OAAQgB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AKsC,SAAStF,KAAK6F,GACnB7C,KAAK2F,WAAWJ,SAASvF,KAAKsC,UACvBO,EAAK1B,K,2BAIT0B,GACH,IAAIqD,EAAiClG,KAAKsC,SAAS6D,MAAK,SAAA3D,GACtD,OAAOA,EAAIrB,IAAM0B,EAAK1B,MAEpB+E,IACFA,EAAS9E,WAAayB,EAAKzB,WAC3B8E,EAAS7E,MAAQwB,EAAKxB,MACtB6E,EAAS5E,QAAUuB,EAAKvB,QAGxBtB,KAAK2F,WAAWJ,SAASvF,KAAKsC,a,6BAI3BnB,GACL,IAAIsE,EAAgBzF,KAAKsC,SAASoD,WAAU,SAAAlD,GAC1C,OAAOA,EAAIrB,KAAOA,KAEhBsE,GAAS,IACXzF,KAAKsC,SAAS1E,OAAO6H,EAAO,GAC5BzF,KAAK2F,WAAWJ,SAASvF,KAAKsC,e,KAKrB,ICpEf,OAAI8D,IAAI,QAER,IAAIC,EAAQ,IAAI,OAAKC,MAAM,CACzB/F,MAAO,CACL4B,QAAQ,EACRE,QAAS,IAAI,EACbH,UAAW,KACXO,cAAe,GAEjB8D,UAAW,CACTC,aADS,SACIjG,EAAYkG,GACvBlG,EAAM2B,UAAYuE,EAClBlG,EAAM4B,QAAS,MAKN,KCjBf,OAAIuE,OAAOC,eAAgB,EAE3B,IAAI,OAAI,CACNC,OAAQ,SAAAC,GAAC,OAAIA,EAAE,IACfR,MAAA,KACCS,OAAO,S,qBCTV7I,EAAOD,QAAU,IAA0B","file":"js/app.8c85c331.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t\"app\": 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// add entry module to deferred list\n \tdeferredModules.push([0,\"chunk-vendors\"]);\n \t// run deferred modules when ready\n \treturn checkDeferredModules();\n","import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MenuBar.vue?vue&type=style&index=0&id=2e8bd812&scoped=true&lang=css&\"; export default mod; export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MenuBar.vue?vue&type=style&index=0&id=2e8bd812&scoped=true&lang=css&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"app\"}},[_c('MenuBar'),_c('ItemList'),(_vm.$store.state.isShow)?_c('MemoEditor'):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('nav',{staticClass:\"navbar navbar-default navbar-fixed-top\"},[_c('div',{staticClass:\"container\"},[_vm._m(0),_c('div',{staticClass:\"collapse navbar-collapse navbar-right\"},[_c('ul',{staticClass:\"nav navbar-nav\"},[_c('li',{staticClass:\"add dropdown\"},[_c('a',{staticClass:\"create-new dropdown-toggle\",attrs:{\"data-toggle\":\"dropdown\"}},[_vm._v(\"新建\")]),_c('ul',{staticClass:\"dropdown-menu\"},[_c('li',[_c('a',{on:{\"click\":_vm.showAdd}},[_vm._v(\"文本便签\")])])])]),_c('li',{staticClass:\"categories dropdown\"},[_c('a',{staticClass:\"current-category dropdown-toggle\",attrs:{\"data-toggle\":\"dropdown\"}},[_vm._v(\" 全部 \"),_c('span',{staticClass:\"count badge\"},[_vm._v(_vm._s(_vm.doFilter(-1)))])]),_c('ul',{staticClass:\"dropdown-menu\"},[_c('li',{staticClass:\"total\",on:{\"click\":function($event){return _vm.doFilterByCateId(-1)}}},[_c('a',[_vm._v(\" 全部 \"),_c('span',{staticClass:\"count badge\"},[_vm._v(_vm._s(_vm.doFilter(-1)))])])]),_c('li',{staticClass:\"divider\"}),_c('li',{on:{\"click\":function($event){return _vm.doFilterByCateId(0)}}},[_c('a',[_vm._v(\" 工作 \"),_c('span',{staticClass:\"count badge\"},[_vm._v(_vm._s(_vm.doFilter(0)))])])]),_c('li',{on:{\"click\":function($event){return _vm.doFilterByCateId(1)}}},[_c('a',[_vm._v(\" 生活 \"),_c('span',{staticClass:\"count badge\"},[_vm._v(_vm._s(_vm.doFilter(1)))])])]),_c('li',{on:{\"click\":function($event){return _vm.doFilterByCateId(2)}}},[_c('a',[_vm._v(\" 学习 \"),_c('span',{staticClass:\"count badge\"},[_vm._v(_vm._s(_vm.doFilter(2)))])])])])])])])])])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"navbar-header\"},[_c('a',{staticClass:\"navbar-brand\"},[_c('img',{attrs:{\"height\":\"40\",\"src\":require(\"../ass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j6yFzibXT1XRPqYD0VEJyWgrHxNBISfyQtU/hjPC9JrSAFoeI3kilm9LTteV+eD3O+FaFbF8n01Yv/m9VusszTQiAh1J7UisD42aQQl273+HSlsBWxuWdQk9udXrbsm2J2Hi0MnoVcj9n5JES79lGaZYukvP8sUqdMdsG6x5lRsSOS9Y29tcGQhtUKi6EvXa3B68l/s1Do4l0JKim0/xAfcswB7sTuhHFgcl9FQ1/UQkXN46OWfAZzDxD/6dARBEFv+AuqFKQU8WzNVAAAAAElFTkSuQmCC\"}})]),_c('button',{staticClass:\"navbar-toggle collapsed\",attrs:{\"type\":\"button\",\"data-toggle\":\"collapse\",\"data-target\":\".navbar-collapse\",\"aria-expanded\":\"false\"}},[_c('span',{staticClass:\"icon-bar\"}),_c('span',{staticClass:\"icon-bar\"}),_c('span',{staticClass:\"icon-bar\"})])])}]\n\nexport { render, staticRenderFns }","import Category from './CateEnum'\r\n\r\nclass ItemData {\r\n id!: number;\r\n categoryId!: Category;\r\n title!: string;\r\n content!: string;\r\n createTime!: string;\r\n\r\n constructor(id: number = -1, categoryId: Category = -1, title: string = '', content: string = '') {\r\n this.id = id;\r\n this.categoryId = categoryId;\r\n this.title = title;\r\n this.content = content;\r\n this.createTime = this.toSelfDateStr()\r\n }\r\n\r\n toSelfDateStr(): string {\r\n // 将 时间戳 转换 日期对象\r\n let date = new Date(Date.now());\r\n // 使用 日期对象 的 getXXX 方法 依次获取 年月日 时分秒,拼接成 想要的格式\r\n let str = date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate()\r\n + ' ' + date.getHours() + ':' + date.getMinutes();\r\n //3.最后 将 日期字符串 返回\r\n return str;\r\n }\r\n}\r\n\r\nexport default ItemData;","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Vue } from \"vue-property-decorator\";\r\nimport ItemData from \"../model/ItemData\";\r\n\r\n@Component\r\nexport default class MenuBar extends Vue {\r\n showAdd() {\r\n this.$store.state.transMemo = new ItemData(-1, 0);\r\n this.$store.state.isShow = true;\r\n }\r\n\r\n doFilter(cid: number): number {\r\n if (cid == -1) {\r\n return this.$store.state.aHelper.memoList.length;\r\n } else {\r\n return this.$store.state.aHelper.memoList.filter((ele: any) => {\r\n return ele.categoryId == cid;\r\n }).length;\r\n }\r\n }\r\n\r\n doFilterByCateId(cid: number): void {\r\n this.$store.state.filterCateId = cid;\r\n }\r\n}\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MenuBar.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MenuBar.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./MenuBar.vue?vue&type=template&id=2e8bd812&scoped=true&\"\nimport script from \"./MenuBar.vue?vue&type=script&lang=ts&\"\nexport * from \"./MenuBar.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./MenuBar.vue?vue&type=style&index=0&id=2e8bd812&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"2e8bd812\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"container\",attrs:{\"id\":\"memos\"}},_vm._l((_vm.filterMemo()),function(item){return _c('MemoItem',{key:item.id,attrs:{\"memo\":item}})}),1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"memo-container\"},[_c('div',{staticClass:\"memo\"},[_c('div',{staticClass:\"mark\"}),_c('div',{staticClass:\"memo-heading\"},[_c('h5',{staticClass:\"title\"},[_vm._v(_vm._s(_vm.memo.title))]),_c('ul',{staticClass:\"tools\"},[_c('li',{staticClass:\"edit\",on:{\"click\":_vm.showEdit}}),_c('li',{staticClass:\"delete\",on:{\"click\":_vm.doDel}})])]),_c('h6',{staticClass:\"memo-info\"},[_c('span',{staticClass:\"timeStamp\"},[_vm._v(_vm._s(_vm.memo.createTime))]),_c('span',{staticClass:\"category\"},[_vm._v(\"分类: \"+_vm._s(_vm.$store.state.aHelper.getCategoryName(_vm.memo.categoryId)))])]),_c('div',{staticClass:\"content\"},[_c('div',{staticClass:\"text\"},[_vm._v(_vm._s(_vm.memo.content))])])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Prop, Vue } from \"vue-property-decorator\";\r\nimport ItemData from \"../model/ItemData\";\r\n\r\n@Component\r\nexport default class MemoItem extends Vue {\r\n @Prop() memo!: ItemData;\r\n\r\n // 删除方法\r\n doDel(): void {\r\n if (!confirm(`确认要删除<${this.memo.title}>的笔记吗?`)) return;\r\n this.$store.state.aHelper.remove(this.memo.id);\r\n }\r\n showEdit(): void {\r\n let newMemo = JSON.parse(JSON.stringify(this.memo));\r\n this.$store.commit(\"showEditMemo\", newMemo);\r\n }\r\n}\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MemoItem.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MemoItem.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./MemoItem.vue?vue&type=template&id=c4185c1a&\"\nimport script from \"./MemoItem.vue?vue&type=script&lang=ts&\"\nexport * from \"./MemoItem.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n\n\n\n\n\r\nimport { Component, Vue } from \"vue-property-decorator\";\r\nimport ItemData from \"../model/ItemData\";\r\nimport MemoItem from \"./MemoItem.vue\";\r\n\r\n@Component({\r\n components: {\r\n MemoItem\r\n }\r\n})\r\nexport default class ItemList extends Vue {\r\n memoArr: Array = this.$store.state.aHelper.memoList;\r\n filterMemo() {\r\n if (this.$store.state.filterCateId == -1) {\r\n return this.memoArr;\r\n } else {\r\n return this.memoArr.filter((item: any) => {\r\n return item.categoryId == this.$store.state.filterCateId;\r\n });\r\n }\r\n }\r\n}\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ItemList.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ItemList.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ItemList.vue?vue&type=template&id=355f0a82&\"\nimport script from \"./ItemList.vue?vue&type=script&lang=ts&\"\nexport * from \"./ItemList.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:\"cover-layer\"}),_c('div',{staticClass:\"editor-layer\",attrs:{\"id\":\"new-markdown\"}},[_c('div',{staticClass:\"editor-top\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.memo.title),expression:\"memo.title\"}],staticClass:\"editor-title form-control\",attrs:{\"type\":\"text\",\"placeholder\":\"标题\"},domProps:{\"value\":(_vm.memo.title)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.memo, \"title\", $event.target.value)}}}),_c('div',{staticClass:\"dropdown select-category\"},[_c('button',{staticClass:\"btn btn-default dropdown-toggle\",attrs:{\"data-toggle\":\"dropdown\"}},[_c('span',{staticClass:\"category\"},[_vm._v(_vm._s(this.$store.state.aHelper.getCategoryName(_vm.memo.categoryId)))]),_c('span',{staticClass:\"caret\"})]),_c('ul',{staticClass:\"dropdown-menu\"},[_c('li',{on:{\"click\":function($event){_vm.memo.categoryId=0}}},[_c('a',[_vm._v(\"工作\")])]),_c('li',{on:{\"click\":function($event){_vm.memo.categoryId=1}}},[_c('a',[_vm._v(\"生活\")])]),_c('li',{on:{\"click\":function($event){_vm.memo.categoryId=2}}},[_c('a',[_vm._v(\"学习\")])])])]),_c('ul',{staticClass:\"tools\"},[_c('li',{staticClass:\"save\",on:{\"click\":_vm.saveNew}}),_c('li',{staticClass:\"cancel\",on:{\"click\":_vm.closeWin}})])]),_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.memo.content),expression:\"memo.content\"}],staticClass:\"text-content form-control\",attrs:{\"placeholder\":\"内容\"},domProps:{\"value\":(_vm.memo.content)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.$set(_vm.memo, \"content\", $event.target.value)}}})])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Prop, Vue } from \"vue-property-decorator\";\r\nimport ItemData from \"../model/ItemData\";\r\n\r\n@Component\r\nexport default class MemoEditor extends Vue {\r\n memo: ItemData = new ItemData(-1, 0);\r\n\r\n created(): void {\r\n this.memo = this.$store.state.transMemo;\r\n }\r\n\r\n closeWin() {\r\n this.$store.state.isShow = false;\r\n }\r\n saveNew() {\r\n // 校验\r\n if (\r\n this.memo &&\r\n this.memo.categoryId > -1 &&\r\n this.memo.title.trim().length > 0 &&\r\n this.memo.content.trim().length > 0\r\n ) {\r\n if (this.memo.id <= -1) {\r\n // 新建\r\n this.$store.state.aHelper.add(this.memo);\r\n } else {\r\n // 修改\r\n this.$store.state.aHelper.edit(this.memo);\r\n }\r\n this.$store.state.isShow = false;\r\n } else {\r\n alert(\"对不起,输入错误~~!\");\r\n }\r\n }\r\n}\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MemoEditor.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MemoEditor.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./MemoEditor.vue?vue&type=template&id=77f2ec3c&\"\nimport script from \"./MemoEditor.vue?vue&type=script&lang=ts&\"\nexport * from \"./MemoEditor.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n\n\n\n\nimport { Component, Vue } from \"vue-property-decorator\";\nimport MenuBar from \"./components/MenuBar.vue\";\nimport ItemList from \"./components/ItemList.vue\";\nimport MemoEditor from \"./components/MemoEditor.vue\";\n\n@Component({\n components: {\n MenuBar,\n ItemList,\n MemoEditor\n }\n})\nexport default class App extends Vue {}\n","import mod from \"-!../node_modules/cache-loader/dist/cjs.js??ref--14-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js!../node_modules/ts-loader/index.js??ref--14-3!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../node_modules/cache-loader/dist/cjs.js??ref--14-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js!../node_modules/ts-loader/index.js??ref--14-3!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./App.vue?vue&type=template&id=40a2c898&\"\nimport script from \"./App.vue?vue&type=script&lang=ts&\"\nexport * from \"./App.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","// DataHelper类 - 负责 localStorage 操作\r\nclass DataHelper {\r\n dataKey: string;\r\n primaryKey: string;\r\n\r\n // 一、构造函数 --作用:为对象 添加 各种属性--------------------------\r\n constructor(dataKey: string, primaryKey: string) {\r\n this.dataKey = dataKey;\r\n this.primaryKey = primaryKey;\r\n }\r\n\r\n // 1.读取全部数据,返回数组(如果没有读到数据 就返回 空数组)------------\r\n readData(): any {\r\n //1.读取 本地数据(根据dataKey读取)\r\n let strData: string | null = localStorage.getItem(this.dataKey);\r\n\r\n //2.将 读取的 json数组字符串 转成数组对象\r\n let arrData: any = [];\r\n if (strData != null) {\r\n arrData = JSON.parse(strData);\r\n }\r\n\r\n //3.返回 数组对象\r\n return arrData;\r\n }\r\n\r\n // 2.存入本地数据 -------------------------------------------------\r\n saveData(arrData: Array): void {\r\n //1.将数组 转成 json字符串\r\n let str: string = JSON.stringify(arrData);\r\n\r\n //2.将字符串 保存到 本地 localStorage 中\r\n localStorage.setItem(this.dataKey, str);\r\n }\r\n\r\n // 3.新增数据---------------------------\r\n addData(newDataObj: any): number {\r\n let dataArray = this.readData();\r\n if (dataArray == null) {\r\n dataArray = [];\r\n }\r\n\r\n // 自动生成 主键值 (id 值)\r\n // 如果 数组 长度 > 0,则 将 最后一个 元素的 id 值 取出 + 1 作为 新元素的 id值\r\n // <= 0, 则 将 1 作为 新元素的 id 值\r\n let newId = dataArray.length > 0 ? dataArray[dataArray.length - 1][this.primaryKey] + 1 : 1;\r\n newDataObj[this.primaryKey] = newId;\r\n\r\n // 将添加了 主键值 的 对象 追加到数组\r\n dataArray.push(newDataObj);\r\n\r\n // 将数组 保存到 localStrorage 中\r\n this.saveData(dataArray);\r\n\r\n // 返回添加了 id 的数据对象\r\n return newId;\r\n }\r\n\r\n // 4.删除数据 ---------------------------\r\n removeDataById(id: string | number): boolean {\r\n // 读取本地数组\r\n let arr = this.readData();\r\n\r\n // 查找要删除 评论对象的 下标,并保存 到本地\r\n let index = arr.findIndex((ele: any) => {\r\n return ele[this.primaryKey] == id;\r\n });\r\n\r\n // 如果下标 大于-1,则删除数组中该下标元素对象,并返回true\r\n if (index > -1) {\r\n arr.splice(index, 1);\r\n // 保存到本地\r\n this.saveData(arr);\r\n return true;\r\n }\r\n\r\n return false; // 否则 返回 false\r\n }\r\n}\r\n\r\nexport default DataHelper;","import DataHelper from './DataHelper'\r\nimport ItemData from '../model/ItemData'\r\nimport Category from '@/model/CateEnum';\r\n\r\nclass ActionHelper {\r\n // 1.负责数据处理\r\n dataHelper: DataHelper = new DataHelper('memoData', 'id');\r\n // 1.1笔记数组\r\n memoList!: Array;\r\n // 构造函数:读取本地数据,并设置给 成员变量 memoList\r\n constructor() {\r\n //读取本地数据,将 笔记数组 保存 到 this.memoList 变量中\r\n this.memoList = this.readData();\r\n }\r\n // 读取本地数据,并返回 ItemData类型数组\r\n readData(): Array {\r\n //1.读取 本地 的 Object数组 - dataHelper\r\n let arrObj = this.dataHelper.readData();\r\n //2.将 Object数组 转成 ItemData数组\r\n let arrItem = arrObj.map((ele: any) => {\r\n let item: ItemData = new ItemData();\r\n item.id = ele.id;\r\n item.categoryId = ele.categoryId;\r\n item.title = ele.title;\r\n item.content = ele.content;\r\n item.createTime = ele.createTime;\r\n\r\n return item;\r\n });\r\n\r\n //3.返回itemData数组\r\n return arrItem;\r\n }\r\n\r\n getCategoryName(cateId: Category): string {\r\n const arrName = ['工作', '生活', '学习']\r\n return arrName[cateId]\r\n }\r\n\r\n add(item: ItemData): number {\r\n item.id = this.dataHelper.addData(item);\r\n this.memoList.push(item);\r\n this.dataHelper.saveData(this.memoList);\r\n return item.id;\r\n\r\n }\r\n\r\n edit(item: ItemData): void {\r\n let editItem: ItemData | undefined = this.memoList.find(ele => {\r\n return ele.id == item.id\r\n });\r\n if (editItem) {\r\n editItem.categoryId = item.categoryId;\r\n editItem.title = item.title;\r\n editItem.content = item.content;\r\n\r\n //c.将更新后的 数组 重新保存到 本地localstorage\r\n this.dataHelper.saveData(this.memoList);\r\n }\r\n }\r\n\r\n remove(id: number): void {\r\n let index: number = this.memoList.findIndex(ele => {\r\n return ele.id === id;\r\n })\r\n if (index > -1) {\r\n this.memoList.splice(index, 1);\r\n this.dataHelper.saveData(this.memoList);\r\n }\r\n }\r\n}\r\n\r\nexport default ActionHelper","import Vuex from 'vuex'\r\nimport Vue from 'vue'\r\nimport ActionHelper from './ActionHelper';\r\n\r\nVue.use(Vuex)\r\n\r\nlet store = new Vuex.Store({\r\n state: {\r\n isShow: false,\r\n aHelper: new ActionHelper(),\r\n transMemo: null,\r\n filterCateId: -1\r\n },\r\n mutations: {\r\n showEditMemo(state: any, editMemo: any) {\r\n state.transMemo = editMemo;\r\n state.isShow = true;\r\n }\r\n }\r\n});\r\n\r\nexport default store;","import Vue from 'vue'\nimport App from './App.vue'\nimport store from './store'\n\nVue.config.productionTip = false\n\nnew Vue({\n render: h => h(App),\n store\n}).$mount('#app')\n","module.exports = __webpack_public_path__ + \"img/logo.82b9c7a5.png\";"],"sourceRoot":""} -------------------------------------------------------------------------------- /dist/js/chunk-vendors.45fdb867.js: -------------------------------------------------------------------------------- 1 | (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"00ee":function(t,e,n){var r=n("b622"),o=r("toStringTag"),i={};i[o]="z",t.exports="[object z]"===String(i)},"0366":function(t,e,n){var r=n("1c0b");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},"0538":function(t,e,n){"use strict";var r=n("1c0b"),o=n("861d"),i=[].slice,a={},c=function(t,e,n){if(!(e in a)){for(var r=[],o=0;o=51||!r((function(){var e=[],n=e.constructor={};return n[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},2266:function(t,e,n){var r=n("825a"),o=n("e95a"),i=n("50c4"),a=n("0366"),c=n("35a1"),s=n("9bdd"),u=function(t,e){this.stopped=t,this.result=e},f=t.exports=function(t,e,n,f,l){var p,d,v,h,y,m,g,b=a(e,n,f?2:1);if(l)p=t;else{if(d=c(t),"function"!=typeof d)throw TypeError("Target is not iterable");if(o(d)){for(v=0,h=i(t.length);h>v;v++)if(y=f?b(r(g=t[v])[0],g[1]):b(t[v]),y&&y instanceof u)return y;return new u(!1)}p=d.call(t)}m=p.next;while(!(g=m.call(p)).done)if(y=s(p,b,g.value,f),"object"==typeof y&&y&&y instanceof u)return y;return new u(!1)};f.stop=function(t){return new u(!0,t)}},"23cb":function(t,e,n){var r=n("a691"),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},"23e7":function(t,e,n){var r=n("da84"),o=n("06cf").f,i=n("9112"),a=n("6eeb"),c=n("ce4e"),s=n("e893"),u=n("94ca");t.exports=function(t,e){var n,f,l,p,d,v,h=t.target,y=t.global,m=t.stat;if(f=y?r:m?r[h]||c(h,{}):(r[h]||{}).prototype,f)for(l in e){if(d=e[l],t.noTargetGet?(v=o(f,l),p=v&&v.value):p=f[l],n=u(y?l:h+(m?".":"#")+l,t.forced),!n&&void 0!==p){if(typeof d===typeof p)continue;s(d,p)}(t.sham||p&&p.sham)&&i(d,"sham",!0),a(f,l,d,t)}}},"241c":function(t,e,n){var r=n("ca84"),o=n("7839"),i=o.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},"25f0":function(t,e,n){"use strict";var r=n("6eeb"),o=n("825a"),i=n("d039"),a=n("ad6d"),c="toString",s=RegExp.prototype,u=s[c],f=i((function(){return"/a/b"!=u.call({source:"a",flags:"b"})})),l=u.name!=c;(f||l)&&r(RegExp.prototype,c,(function(){var t=o(this),e=String(t.source),n=t.flags,r=String(void 0===n&&t instanceof RegExp&&!("flags"in s)?a.call(t):n);return"/"+e+"/"+r}),{unsafe:!0})},2626:function(t,e,n){"use strict";var r=n("d066"),o=n("9bf2"),i=n("b622"),a=n("83ab"),c=i("species");t.exports=function(t){var e=r(t),n=o.f;a&&e&&!e[c]&&n(e,c,{configurable:!0,get:function(){return this}})}},"262e":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));n("131a");function r(t,e){return r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},r(t,e)}function o(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&r(t,e)}},2877:function(t,e,n){"use strict";function r(t,e,n,r,o,i,a,c){var s,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),a?(s=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=s):o&&(s=c?function(){o.call(this,this.$root.$options.shadowRoot)}:o),s)if(u.functional){u._injectStyles=s;var f=u.render;u.render=function(t,e){return s.call(e),f(t,e)}}else{var l=u.beforeCreate;u.beforeCreate=l?[].concat(l,s):[s]}return{exports:t,options:u}}n.d(e,"a",(function(){return r}))},"2b0e":function(t,e,n){"use strict";(function(t){ 2 | /*! 3 | * Vue.js v2.6.11 4 | * (c) 2014-2019 Evan You 5 | * Released under the MIT License. 6 | */ 7 | var n=Object.freeze({});function r(t){return void 0===t||null===t}function o(t){return void 0!==t&&null!==t}function i(t){return!0===t}function a(t){return!1===t}function c(t){return"string"===typeof t||"number"===typeof t||"symbol"===typeof t||"boolean"===typeof t}function s(t){return null!==t&&"object"===typeof t}var u=Object.prototype.toString;function f(t){return"[object Object]"===u.call(t)}function l(t){return"[object RegExp]"===u.call(t)}function p(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function d(t){return o(t)&&"function"===typeof t.then&&"function"===typeof t.catch}function v(t){return null==t?"":Array.isArray(t)||f(t)&&t.toString===u?JSON.stringify(t,null,2):String(t)}function h(t){var e=parseFloat(t);return isNaN(e)?t:e}function y(t,e){for(var n=Object.create(null),r=t.split(","),o=0;o-1)return t.splice(n,1)}}var b=Object.prototype.hasOwnProperty;function _(t,e){return b.call(t,e)}function w(t){var e=Object.create(null);return function(n){var r=e[n];return r||(e[n]=t(n))}}var x=/-(\w)/g,O=w((function(t){return t.replace(x,(function(t,e){return e?e.toUpperCase():""}))})),S=w((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),C=/\B([A-Z])/g,A=w((function(t){return t.replace(C,"-$1").toLowerCase()}));function j(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function $(t,e){return t.bind(e)}var k=Function.prototype.bind?$:j;function E(t,e){e=e||0;var n=t.length-e,r=new Array(n);while(n--)r[n]=t[n+e];return r}function P(t,e){for(var n in e)t[n]=e[n];return t}function T(t){for(var e={},n=0;n0,nt=Q&&Q.indexOf("edge/")>0,rt=(Q&&Q.indexOf("android"),Q&&/iphone|ipad|ipod|ios/.test(Q)||"ios"===Z),ot=(Q&&/chrome\/\d+/.test(Q),Q&&/phantomjs/.test(Q),Q&&Q.match(/firefox\/(\d+)/)),it={}.watch,at=!1;if(J)try{var ct={};Object.defineProperty(ct,"passive",{get:function(){at=!0}}),window.addEventListener("test-passive",null,ct)}catch(Oa){}var st=function(){return void 0===q&&(q=!J&&!Y&&"undefined"!==typeof t&&(t["process"]&&"server"===t["process"].env.VUE_ENV)),q},ut=J&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ft(t){return"function"===typeof t&&/native code/.test(t.toString())}var lt,pt="undefined"!==typeof Symbol&&ft(Symbol)&&"undefined"!==typeof Reflect&&ft(Reflect.ownKeys);lt="undefined"!==typeof Set&&ft(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var dt=M,vt=0,ht=function(){this.id=vt++,this.subs=[]};ht.prototype.addSub=function(t){this.subs.push(t)},ht.prototype.removeSub=function(t){g(this.subs,t)},ht.prototype.depend=function(){ht.target&&ht.target.addDep(this)},ht.prototype.notify=function(){var t=this.subs.slice();for(var e=0,n=t.length;e-1)if(i&&!_(o,"default"))a=!1;else if(""===a||a===A(t)){var s=te(String,o.type);(s<0||c0&&(a=je(a,(e||"")+"_"+n),Ae(a[0])&&Ae(u)&&(f[s]=xt(u.text+a[0].text),a.shift()),f.push.apply(f,a)):c(a)?Ae(u)?f[s]=xt(u.text+a):""!==a&&f.push(xt(a)):Ae(a)&&Ae(u)?f[s]=xt(u.text+a.text):(i(t._isVList)&&o(a.tag)&&r(a.key)&&o(e)&&(a.key="__vlist"+e+"_"+n+"__"),f.push(a)));return f}function $e(t){var e=t.$options.provide;e&&(t._provided="function"===typeof e?e.call(t):e)}function ke(t){var e=Ee(t.$options.inject,t);e&&(kt(!1),Object.keys(e).forEach((function(n){It(t,n,e[n])})),kt(!0))}function Ee(t,e){if(t){for(var n=Object.create(null),r=pt?Reflect.ownKeys(t):Object.keys(t),o=0;o0,a=t?!!t.$stable:!i,c=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&r&&r!==n&&c===r.$key&&!i&&!r.$hasNormal)return r;for(var s in o={},t)t[s]&&"$"!==s[0]&&(o[s]=Ie(e,s,t[s]))}else o={};for(var u in e)u in o||(o[u]=Le(e,u));return t&&Object.isExtensible(t)&&(t._normalized=o),z(o,"$stable",a),z(o,"$key",c),z(o,"$hasNormal",i),o}function Ie(t,e,n){var r=function(){var t=arguments.length?n.apply(null,arguments):n({});return t=t&&"object"===typeof t&&!Array.isArray(t)?[t]:Ce(t),t&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:r,enumerable:!0,configurable:!0}),r}function Le(t,e){return function(){return t[e]}}function Ne(t,e){var n,r,i,a,c;if(Array.isArray(t)||"string"===typeof t)for(n=new Array(t.length),r=0,i=t.length;r1?E(n):n;for(var r=E(arguments,1),o='event handler for "'+t+'"',i=0,a=n.length;idocument.createEvent("Event").timeStamp&&(qn=function(){return Xn.now()})}function Jn(){var t,e;for(Kn=qn(),Bn=!0,Vn.sort((function(t,e){return t.id-e.id})),zn=0;znzn&&Vn[n].id>t.id)n--;Vn.splice(n+1,0,t)}else Vn.push(t);Un||(Un=!0,ve(Jn))}}var er=0,nr=function(t,e,n,r,o){this.vm=t,o&&(t._watcher=this),t._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++er,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new lt,this.newDepIds=new lt,this.expression="","function"===typeof e?this.getter=e:(this.getter=K(e),this.getter||(this.getter=M)),this.value=this.lazy?void 0:this.get()};nr.prototype.get=function(){var t;mt(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(Oa){if(!this.user)throw Oa;ee(Oa,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&ye(t),gt(),this.cleanupDeps()}return t},nr.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},nr.prototype.cleanupDeps=function(){var t=this.deps.length;while(t--){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},nr.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():tr(this)},nr.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||s(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(Oa){ee(Oa,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},nr.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},nr.prototype.depend=function(){var t=this.deps.length;while(t--)this.deps[t].depend()},nr.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||g(this.vm._watchers,this);var t=this.deps.length;while(t--)this.deps[t].removeSub(this);this.active=!1}};var rr={enumerable:!0,configurable:!0,get:M,set:M};function or(t,e,n){rr.get=function(){return this[e][n]},rr.set=function(t){this[e][n]=t},Object.defineProperty(t,n,rr)}function ir(t){t._watchers=[];var e=t.$options;e.props&&ar(t,e.props),e.methods&&vr(t,e.methods),e.data?cr(t):Mt(t._data={},!0),e.computed&&fr(t,e.computed),e.watch&&e.watch!==it&&hr(t,e.watch)}function ar(t,e){var n=t.$options.propsData||{},r=t._props={},o=t.$options._propKeys=[],i=!t.$parent;i||kt(!1);var a=function(i){o.push(i);var a=Jt(i,e,n,t);It(r,i,a),i in t||or(t,"_props",i)};for(var c in e)a(c);kt(!0)}function cr(t){var e=t.$options.data;e=t._data="function"===typeof e?sr(e,t):e||{},f(e)||(e={});var n=Object.keys(e),r=t.$options.props,o=(t.$options.methods,n.length);while(o--){var i=n[o];0,r&&_(r,i)||B(i)||or(t,"_data",i)}Mt(e,!0)}function sr(t,e){mt();try{return t.call(e,e)}catch(Oa){return ee(Oa,e,"data()"),{}}finally{gt()}}var ur={lazy:!0};function fr(t,e){var n=t._computedWatchers=Object.create(null),r=st();for(var o in e){var i=e[o],a="function"===typeof i?i:i.get;0,r||(n[o]=new nr(t,a||M,M,ur)),o in t||lr(t,o,i)}}function lr(t,e,n){var r=!st();"function"===typeof n?(rr.get=r?pr(e):dr(n),rr.set=M):(rr.get=n.get?r&&!1!==n.cache?pr(e):dr(n.get):M,rr.set=n.set||M),Object.defineProperty(t,e,rr)}function pr(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),ht.target&&e.depend(),e.value}}function dr(t){return function(){return t.call(this,this)}}function vr(t,e){t.$options.props;for(var n in e)t[n]="function"!==typeof e[n]?M:k(e[n],t)}function hr(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var o=0;o-1)return this;var n=E(arguments,1);return n.unshift(this),"function"===typeof t.install?t.install.apply(t,n):"function"===typeof t&&t.apply(null,n),e.push(t),this}}function Cr(t){t.mixin=function(t){return this.options=qt(this.options,t),this}}function Ar(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,o=t._Ctor||(t._Ctor={});if(o[r])return o[r];var i=t.name||n.options.name;var a=function(t){this._init(t)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=e++,a.options=qt(n.options,t),a["super"]=n,a.options.props&&jr(a),a.options.computed&&$r(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,V.forEach((function(t){a[t]=n[t]})),i&&(a.options.components[i]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=P({},a.options),o[r]=a,a}}function jr(t){var e=t.options.props;for(var n in e)or(t.prototype,"_props",n)}function $r(t){var e=t.options.computed;for(var n in e)lr(t.prototype,n,e[n])}function kr(t){V.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&f(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"===typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}function Er(t){return t&&(t.Ctor.options.name||t.tag)}function Pr(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"===typeof t?t.split(",").indexOf(e)>-1:!!l(t)&&t.test(e)}function Tr(t,e){var n=t.cache,r=t.keys,o=t._vnode;for(var i in n){var a=n[i];if(a){var c=Er(a.componentOptions);c&&!e(c)&&Mr(n,i,r,o)}}}function Mr(t,e,n,r){var o=t[e];!o||r&&o.tag===r.tag||o.componentInstance.$destroy(),t[e]=null,g(n,e)}br(Or),mr(Or),kn(Or),Mn(Or),gn(Or);var Ir=[String,RegExp,Array],Lr={name:"keep-alive",abstract:!0,props:{include:Ir,exclude:Ir,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)Mr(this.cache,t,this.keys)},mounted:function(){var t=this;this.$watch("include",(function(e){Tr(t,(function(t){return Pr(e,t)}))})),this.$watch("exclude",(function(e){Tr(t,(function(t){return!Pr(e,t)}))}))},render:function(){var t=this.$slots.default,e=On(t),n=e&&e.componentOptions;if(n){var r=Er(n),o=this,i=o.include,a=o.exclude;if(i&&(!r||!Pr(i,r))||a&&r&&Pr(a,r))return e;var c=this,s=c.cache,u=c.keys,f=null==e.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):e.key;s[f]?(e.componentInstance=s[f].componentInstance,g(u,f),u.push(f)):(s[f]=e,u.push(f),this.max&&u.length>parseInt(this.max)&&Mr(s,u[0],u,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}},Nr={KeepAlive:Lr};function Dr(t){var e={get:function(){return H}};Object.defineProperty(t,"config",e),t.util={warn:dt,extend:P,mergeOptions:qt,defineReactive:It},t.set=Lt,t.delete=Nt,t.nextTick=ve,t.observable=function(t){return Mt(t),t},t.options=Object.create(null),V.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,P(t.options.components,Nr),Sr(t),Cr(t),Ar(t),kr(t)}Dr(Or),Object.defineProperty(Or.prototype,"$isServer",{get:st}),Object.defineProperty(Or.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Or,"FunctionalRenderContext",{value:Ye}),Or.version="2.6.11";var Rr=y("style,class"),Fr=y("input,textarea,option,select,progress"),Vr=function(t,e,n){return"value"===n&&Fr(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},Gr=y("contenteditable,draggable,spellcheck"),Hr=y("events,caret,typing,plaintext-only"),Ur=function(t,e){return qr(e)||"false"===e?"false":"contenteditable"===t&&Hr(e)?e:"true"},Br=y("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),zr="http://www.w3.org/1999/xlink",Wr=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Kr=function(t){return Wr(t)?t.slice(6,t.length):""},qr=function(t){return null==t||!1===t};function Xr(t){var e=t.data,n=t,r=t;while(o(r.componentInstance))r=r.componentInstance._vnode,r&&r.data&&(e=Jr(r.data,e));while(o(n=n.parent))n&&n.data&&(e=Jr(e,n.data));return Yr(e.staticClass,e.class)}function Jr(t,e){return{staticClass:Zr(t.staticClass,e.staticClass),class:o(t.class)?[t.class,e.class]:e.class}}function Yr(t,e){return o(t)||o(e)?Zr(t,Qr(e)):""}function Zr(t,e){return t?e?t+" "+e:t:e||""}function Qr(t){return Array.isArray(t)?to(t):s(t)?eo(t):"string"===typeof t?t:""}function to(t){for(var e,n="",r=0,i=t.length;r-1?co[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:co[t]=/HTMLUnknownElement/.test(e.toString())}var uo=y("text,number,password,search,email,tel,url");function fo(t){if("string"===typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}function lo(t,e){var n=document.createElement(t);return"select"!==t||e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n}function po(t,e){return document.createElementNS(no[t],e)}function vo(t){return document.createTextNode(t)}function ho(t){return document.createComment(t)}function yo(t,e,n){t.insertBefore(e,n)}function mo(t,e){t.removeChild(e)}function go(t,e){t.appendChild(e)}function bo(t){return t.parentNode}function _o(t){return t.nextSibling}function wo(t){return t.tagName}function xo(t,e){t.textContent=e}function Oo(t,e){t.setAttribute(e,"")}var So=Object.freeze({createElement:lo,createElementNS:po,createTextNode:vo,createComment:ho,insertBefore:yo,removeChild:mo,appendChild:go,parentNode:bo,nextSibling:_o,tagName:wo,setTextContent:xo,setStyleScope:Oo}),Co={create:function(t,e){Ao(e)},update:function(t,e){t.data.ref!==e.data.ref&&(Ao(t,!0),Ao(e))},destroy:function(t){Ao(t,!0)}};function Ao(t,e){var n=t.data.ref;if(o(n)){var r=t.context,i=t.componentInstance||t.elm,a=r.$refs;e?Array.isArray(a[n])?g(a[n],i):a[n]===i&&(a[n]=void 0):t.data.refInFor?Array.isArray(a[n])?a[n].indexOf(i)<0&&a[n].push(i):a[n]=[i]:a[n]=i}}var jo=new bt("",{},[]),$o=["create","activate","update","remove","destroy"];function ko(t,e){return t.key===e.key&&(t.tag===e.tag&&t.isComment===e.isComment&&o(t.data)===o(e.data)&&Eo(t,e)||i(t.isAsyncPlaceholder)&&t.asyncFactory===e.asyncFactory&&r(e.asyncFactory.error))}function Eo(t,e){if("input"!==t.tag)return!0;var n,r=o(n=t.data)&&o(n=n.attrs)&&n.type,i=o(n=e.data)&&o(n=n.attrs)&&n.type;return r===i||uo(r)&&uo(i)}function Po(t,e,n){var r,i,a={};for(r=e;r<=n;++r)i=t[r].key,o(i)&&(a[i]=r);return a}function To(t){var e,n,a={},s=t.modules,u=t.nodeOps;for(e=0;e<$o.length;++e)for(a[$o[e]]=[],n=0;nh?(l=r(n[g+1])?null:n[g+1].elm,O(t,l,n,v,g,i)):v>g&&C(e,p,h)}function $(t,e,n,r){for(var i=n;i-1?Uo(t,e,n):Br(e)?qr(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):Gr(e)?t.setAttribute(e,Ur(e,n)):Wr(e)?qr(n)?t.removeAttributeNS(zr,Kr(e)):t.setAttributeNS(zr,e,n):Uo(t,e,n)}function Uo(t,e,n){if(qr(n))t.removeAttribute(e);else{if(tt&&!et&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var Bo={create:Go,update:Go};function zo(t,e){var n=e.elm,i=e.data,a=t.data;if(!(r(i.staticClass)&&r(i.class)&&(r(a)||r(a.staticClass)&&r(a.class)))){var c=Xr(e),s=n._transitionClasses;o(s)&&(c=Zr(c,Qr(s))),c!==n._prevClass&&(n.setAttribute("class",c),n._prevClass=c)}}var Wo,Ko={create:zo,update:zo},qo="__r",Xo="__c";function Jo(t){if(o(t[qo])){var e=tt?"change":"input";t[e]=[].concat(t[qo],t[e]||[]),delete t[qo]}o(t[Xo])&&(t.change=[].concat(t[Xo],t.change||[]),delete t[Xo])}function Yo(t,e,n){var r=Wo;return function o(){var i=e.apply(null,arguments);null!==i&&ti(t,o,n,r)}}var Zo=ae&&!(ot&&Number(ot[1])<=53);function Qo(t,e,n,r){if(Zo){var o=Kn,i=e;e=i._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=o||t.timeStamp<=0||t.target.ownerDocument!==document)return i.apply(this,arguments)}}Wo.addEventListener(t,e,at?{capture:n,passive:r}:n)}function ti(t,e,n,r){(r||Wo).removeEventListener(t,e._wrapper||e,n)}function ei(t,e){if(!r(t.data.on)||!r(e.data.on)){var n=e.data.on||{},o=t.data.on||{};Wo=e.elm,Jo(n),_e(n,o,Qo,ti,Yo,e.context),Wo=void 0}}var ni,ri={create:ei,update:ei};function oi(t,e){if(!r(t.data.domProps)||!r(e.data.domProps)){var n,i,a=e.elm,c=t.data.domProps||{},s=e.data.domProps||{};for(n in o(s.__ob__)&&(s=e.data.domProps=P({},s)),c)n in s||(a[n]="");for(n in s){if(i=s[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),i===c[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n&&"PROGRESS"!==a.tagName){a._value=i;var u=r(i)?"":String(i);ii(a,u)&&(a.value=u)}else if("innerHTML"===n&&oo(a.tagName)&&r(a.innerHTML)){ni=ni||document.createElement("div"),ni.innerHTML=""+i+"";var f=ni.firstChild;while(a.firstChild)a.removeChild(a.firstChild);while(f.firstChild)a.appendChild(f.firstChild)}else if(i!==c[n])try{a[n]=i}catch(Oa){}}}}function ii(t,e){return!t.composing&&("OPTION"===t.tagName||ai(t,e)||ci(t,e))}function ai(t,e){var n=!0;try{n=document.activeElement!==t}catch(Oa){}return n&&t.value!==e}function ci(t,e){var n=t.value,r=t._vModifiers;if(o(r)){if(r.number)return h(n)!==h(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}var si={create:oi,update:oi},ui=w((function(t){var e={},n=/;(?![^(]*\))/g,r=/:(.+)/;return t.split(n).forEach((function(t){if(t){var n=t.split(r);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}));function fi(t){var e=li(t.style);return t.staticStyle?P(t.staticStyle,e):e}function li(t){return Array.isArray(t)?T(t):"string"===typeof t?ui(t):t}function pi(t,e){var n,r={};if(e){var o=t;while(o.componentInstance)o=o.componentInstance._vnode,o&&o.data&&(n=fi(o.data))&&P(r,n)}(n=fi(t.data))&&P(r,n);var i=t;while(i=i.parent)i.data&&(n=fi(i.data))&&P(r,n);return r}var di,vi=/^--/,hi=/\s*!important$/,yi=function(t,e,n){if(vi.test(e))t.style.setProperty(e,n);else if(hi.test(n))t.style.setProperty(A(e),n.replace(hi,""),"important");else{var r=gi(e);if(Array.isArray(n))for(var o=0,i=n.length;o-1?e.split(wi).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function Oi(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(wi).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";while(n.indexOf(r)>=0)n=n.replace(r," ");n=n.trim(),n?t.setAttribute("class",n):t.removeAttribute("class")}}function Si(t){if(t){if("object"===typeof t){var e={};return!1!==t.css&&P(e,Ci(t.name||"v")),P(e,t),e}return"string"===typeof t?Ci(t):void 0}}var Ci=w((function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}})),Ai=J&&!et,ji="transition",$i="animation",ki="transition",Ei="transitionend",Pi="animation",Ti="animationend";Ai&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(ki="WebkitTransition",Ei="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Pi="WebkitAnimation",Ti="webkitAnimationEnd"));var Mi=J?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Ii(t){Mi((function(){Mi(t)}))}function Li(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),xi(t,e))}function Ni(t,e){t._transitionClasses&&g(t._transitionClasses,e),Oi(t,e)}function Di(t,e,n){var r=Fi(t,e),o=r.type,i=r.timeout,a=r.propCount;if(!o)return n();var c=o===ji?Ei:Ti,s=0,u=function(){t.removeEventListener(c,f),n()},f=function(e){e.target===t&&++s>=a&&u()};setTimeout((function(){s0&&(n=ji,f=a,l=i.length):e===$i?u>0&&(n=$i,f=u,l=s.length):(f=Math.max(a,u),n=f>0?a>u?ji:$i:null,l=n?n===ji?i.length:s.length:0);var p=n===ji&&Ri.test(r[ki+"Property"]);return{type:n,timeout:f,propCount:l,hasTransform:p}}function Vi(t,e){while(t.length1}function Wi(t,e){!0!==e.data.show&&Hi(e)}var Ki=J?{create:Wi,activate:Wi,remove:function(t,e){!0!==t.data.show?Ui(t,e):e()}}:{},qi=[Bo,Ko,ri,si,_i,Ki],Xi=qi.concat(Vo),Ji=To({nodeOps:So,modules:Xi});et&&document.addEventListener("selectionchange",(function(){var t=document.activeElement;t&&t.vmodel&&oa(t,"input")}));var Yi={inserted:function(t,e,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?we(n,"postpatch",(function(){Yi.componentUpdated(t,e,n)})):Zi(t,e,n.context),t._vOptions=[].map.call(t.options,ea)):("textarea"===n.tag||uo(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",na),t.addEventListener("compositionend",ra),t.addEventListener("change",ra),et&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if("select"===n.tag){Zi(t,e,n.context);var r=t._vOptions,o=t._vOptions=[].map.call(t.options,ea);if(o.some((function(t,e){return!N(t,r[e])}))){var i=t.multiple?e.value.some((function(t){return ta(t,o)})):e.value!==e.oldValue&&ta(e.value,o);i&&oa(t,"change")}}}};function Zi(t,e,n){Qi(t,e,n),(tt||nt)&&setTimeout((function(){Qi(t,e,n)}),0)}function Qi(t,e,n){var r=e.value,o=t.multiple;if(!o||Array.isArray(r)){for(var i,a,c=0,s=t.options.length;c-1,a.selected!==i&&(a.selected=i);else if(N(ea(a),r))return void(t.selectedIndex!==c&&(t.selectedIndex=c));o||(t.selectedIndex=-1)}}function ta(t,e){return e.every((function(e){return!N(e,t)}))}function ea(t){return"_value"in t?t._value:t.value}function na(t){t.target.composing=!0}function ra(t){t.target.composing&&(t.target.composing=!1,oa(t.target,"input"))}function oa(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function ia(t){return!t.componentInstance||t.data&&t.data.transition?t:ia(t.componentInstance._vnode)}var aa={bind:function(t,e,n){var r=e.value;n=ia(n);var o=n.data&&n.data.transition,i=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&o?(n.data.show=!0,Hi(n,(function(){t.style.display=i}))):t.style.display=r?i:"none"},update:function(t,e,n){var r=e.value,o=e.oldValue;if(!r!==!o){n=ia(n);var i=n.data&&n.data.transition;i?(n.data.show=!0,r?Hi(n,(function(){t.style.display=t.__vOriginalDisplay})):Ui(n,(function(){t.style.display="none"}))):t.style.display=r?t.__vOriginalDisplay:"none"}},unbind:function(t,e,n,r,o){o||(t.style.display=t.__vOriginalDisplay)}},ca={model:Yi,show:aa},sa={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function ua(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?ua(On(e.children)):t}function fa(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var o=n._parentListeners;for(var i in o)e[O(i)]=o[i];return e}function la(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}function pa(t){while(t=t.parent)if(t.data.transition)return!0}function da(t,e){return e.key===t.key&&e.tag===t.tag}var va=function(t){return t.tag||xn(t)},ha=function(t){return"show"===t.name},ya={name:"transition",props:sa,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(va),n.length)){0;var r=this.mode;0;var o=n[0];if(pa(this.$vnode))return o;var i=ua(o);if(!i)return o;if(this._leaving)return la(t,o);var a="__transition-"+this._uid+"-";i.key=null==i.key?i.isComment?a+"comment":a+i.tag:c(i.key)?0===String(i.key).indexOf(a)?i.key:a+i.key:i.key;var s=(i.data||(i.data={})).transition=fa(this),u=this._vnode,f=ua(u);if(i.data.directives&&i.data.directives.some(ha)&&(i.data.show=!0),f&&f.data&&!da(i,f)&&!xn(f)&&(!f.componentInstance||!f.componentInstance._vnode.isComment)){var l=f.data.transition=P({},s);if("out-in"===r)return this._leaving=!0,we(l,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),la(t,o);if("in-out"===r){if(xn(i))return u;var p,d=function(){p()};we(s,"afterEnter",d),we(s,"enterCancelled",d),we(l,"delayLeave",(function(t){p=t}))}}return o}}},ma=P({tag:String,moveClass:String},sa);delete ma.mode;var ga={props:ma,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var o=Pn(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,o(),e.call(t,n,r)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,o=this.$slots.default||[],i=this.children=[],a=fa(this),c=0;cn)e.push(arguments[n++]);return _[++b]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},r(b),b},h=function(t){delete _[t]},"process"==s(y)?r=function(t){y.nextTick(O(t))}:g&&g.now?r=function(t){g.now(O(t))}:m&&!p?(o=new m,i=o.port2,o.port1.onmessage=S,r=u(i.postMessage,i,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||c(C)?r=w in l("script")?function(t){f.appendChild(l("script"))[w]=function(){f.removeChild(this),x(t)}}:function(t){setTimeout(O(t),0)}:(r=C,a.addEventListener("message",S,!1))),t.exports={set:v,clear:h}},"2d00":function(t,e,n){var r,o,i=n("da84"),a=n("342f"),c=i.process,s=c&&c.versions,u=s&&s.v8;u?(r=u.split("."),o=r[0]+r[1]):a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(o=r[1]))),t.exports=o&&+o},"2f62":function(t,e,n){"use strict";(function(t){ 8 | /** 9 | * vuex v3.1.3 10 | * (c) 2020 Evan You 11 | * @license MIT 12 | */ 13 | function n(t){var e=Number(t.version.split(".")[0]);if(e>=2)t.mixin({beforeCreate:r});else{var n=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[r].concat(t.init):r,n.call(this,t)}}function r(){var t=this.$options;t.store?this.$store="function"===typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}var r="undefined"!==typeof window?window:"undefined"!==typeof t?t:{},o=r.__VUE_DEVTOOLS_GLOBAL_HOOK__;function i(t){o&&(t._devtoolHook=o,o.emit("vuex:init",t),o.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){o.emit("vuex:mutation",t,e)})))}function a(t,e){Object.keys(t).forEach((function(n){return e(t[n],n)}))}function c(t){return null!==t&&"object"===typeof t}function s(t){return t&&"function"===typeof t.then}function u(t,e){return function(){return t(e)}}var f=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"===typeof n?n():n)||{}},l={namespaced:{configurable:!0}};l.namespaced.get=function(){return!!this._rawModule.namespaced},f.prototype.addChild=function(t,e){this._children[t]=e},f.prototype.removeChild=function(t){delete this._children[t]},f.prototype.getChild=function(t){return this._children[t]},f.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},f.prototype.forEachChild=function(t){a(this._children,t)},f.prototype.forEachGetter=function(t){this._rawModule.getters&&a(this._rawModule.getters,t)},f.prototype.forEachAction=function(t){this._rawModule.actions&&a(this._rawModule.actions,t)},f.prototype.forEachMutation=function(t){this._rawModule.mutations&&a(this._rawModule.mutations,t)},Object.defineProperties(f.prototype,l);var p=function(t){this.register([],t,!1)};function d(t,e,n){if(e.update(n),n.modules)for(var r in n.modules){if(!e.getChild(r))return void 0;d(t.concat(r),e.getChild(r),n.modules[r])}}p.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},p.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,n){return e=e.getChild(n),t+(e.namespaced?n+"/":"")}),"")},p.prototype.update=function(t){d([],this.root,t)},p.prototype.register=function(t,e,n){var r=this;void 0===n&&(n=!0);var o=new f(e,n);if(0===t.length)this.root=o;else{var i=this.get(t.slice(0,-1));i.addChild(t[t.length-1],o)}e.modules&&a(e.modules,(function(e,o){r.register(t.concat(o),e,n)}))},p.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];e.getChild(n).runtime&&e.removeChild(n)};var v;var h=function(t){var e=this;void 0===t&&(t={}),!v&&"undefined"!==typeof window&&window.Vue&&k(window.Vue);var n=t.plugins;void 0===n&&(n=[]);var r=t.strict;void 0===r&&(r=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new p(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new v,this._makeLocalGettersCache=Object.create(null);var o=this,a=this,c=a.dispatch,s=a.commit;this.dispatch=function(t,e){return c.call(o,t,e)},this.commit=function(t,e,n){return s.call(o,t,e,n)},this.strict=r;var u=this._modules.root.state;_(this,u,[],this._modules.root),b(this,u),n.forEach((function(t){return t(e)}));var f=void 0!==t.devtools?t.devtools:v.config.devtools;f&&i(this)},y={state:{configurable:!0}};function m(t,e){return e.indexOf(t)<0&&e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function g(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;_(t,n,[],t._modules.root,!0),b(t,n,e)}function b(t,e,n){var r=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var o=t._wrappedGetters,i={};a(o,(function(e,n){i[n]=u(e,t),Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})}));var c=v.config.silent;v.config.silent=!0,t._vm=new v({data:{$$state:e},computed:i}),v.config.silent=c,t.strict&&A(t),r&&(n&&t._withCommit((function(){r._data.$$state=null})),v.nextTick((function(){return r.$destroy()})))}function _(t,e,n,r,o){var i=!n.length,a=t._modules.getNamespace(n);if(r.namespaced&&(t._modulesNamespaceMap[a],t._modulesNamespaceMap[a]=r),!i&&!o){var c=j(e,n.slice(0,-1)),s=n[n.length-1];t._withCommit((function(){v.set(c,s,r.state)}))}var u=r.context=w(t,a,n);r.forEachMutation((function(e,n){var r=a+n;O(t,r,e,u)})),r.forEachAction((function(e,n){var r=e.root?n:a+n,o=e.handler||e;S(t,r,o,u)})),r.forEachGetter((function(e,n){var r=a+n;C(t,r,e,u)})),r.forEachChild((function(r,i){_(t,e,n.concat(i),r,o)}))}function w(t,e,n){var r=""===e,o={dispatch:r?t.dispatch:function(n,r,o){var i=$(n,r,o),a=i.payload,c=i.options,s=i.type;return c&&c.root||(s=e+s),t.dispatch(s,a)},commit:r?t.commit:function(n,r,o){var i=$(n,r,o),a=i.payload,c=i.options,s=i.type;c&&c.root||(s=e+s),t.commit(s,a,c)}};return Object.defineProperties(o,{getters:{get:r?function(){return t.getters}:function(){return x(t,e)}},state:{get:function(){return j(t.state,n)}}}),o}function x(t,e){if(!t._makeLocalGettersCache[e]){var n={},r=e.length;Object.keys(t.getters).forEach((function(o){if(o.slice(0,r)===e){var i=o.slice(r);Object.defineProperty(n,i,{get:function(){return t.getters[o]},enumerable:!0})}})),t._makeLocalGettersCache[e]=n}return t._makeLocalGettersCache[e]}function O(t,e,n,r){var o=t._mutations[e]||(t._mutations[e]=[]);o.push((function(e){n.call(t,r.state,e)}))}function S(t,e,n,r){var o=t._actions[e]||(t._actions[e]=[]);o.push((function(e){var o=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e);return s(o)||(o=Promise.resolve(o)),t._devtoolHook?o.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):o}))}function C(t,e,n,r){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(t){return n(r.state,r.getters,t.state,t.getters)})}function A(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function j(t,e){return e.reduce((function(t,e){return t[e]}),t)}function $(t,e,n){return c(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function k(t){v&&t===v||(v=t,n(v))}y.state.get=function(){return this._vm._data.$$state},y.state.set=function(t){0},h.prototype.commit=function(t,e,n){var r=this,o=$(t,e,n),i=o.type,a=o.payload,c=(o.options,{type:i,payload:a}),s=this._mutations[i];s&&(this._withCommit((function(){s.forEach((function(t){t(a)}))})),this._subscribers.slice().forEach((function(t){return t(c,r.state)})))},h.prototype.dispatch=function(t,e){var n=this,r=$(t,e),o=r.type,i=r.payload,a={type:o,payload:i},c=this._actions[o];if(c){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(a,n.state)}))}catch(u){0}var s=c.length>1?Promise.all(c.map((function(t){return t(i)}))):c[0](i);return s.then((function(t){try{n._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(a,n.state)}))}catch(u){0}return t}))}},h.prototype.subscribe=function(t){return m(t,this._subscribers)},h.prototype.subscribeAction=function(t){var e="function"===typeof t?{before:t}:t;return m(e,this._actionSubscribers)},h.prototype.watch=function(t,e,n){var r=this;return this._watcherVM.$watch((function(){return t(r.state,r.getters)}),e,n)},h.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},h.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"===typeof t&&(t=[t]),this._modules.register(t,e),_(this,this.state,t,this._modules.get(t),n.preserveState),b(this,this.state)},h.prototype.unregisterModule=function(t){var e=this;"string"===typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var n=j(e.state,t.slice(0,-1));v.delete(n,t[t.length-1])})),g(this)},h.prototype.hotUpdate=function(t){this._modules.update(t),g(this,!0)},h.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(h.prototype,y);var E=D((function(t,e){var n={};return L(e).forEach((function(e){var r=e.key,o=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=R(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"===typeof o?o.call(this,e,n):e[o]},n[r].vuex=!0})),n})),P=D((function(t,e){var n={};return L(e).forEach((function(e){var r=e.key,o=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.commit;if(t){var i=R(this.$store,"mapMutations",t);if(!i)return;r=i.context.commit}return"function"===typeof o?o.apply(this,[r].concat(e)):r.apply(this.$store,[o].concat(e))}})),n})),T=D((function(t,e){var n={};return L(e).forEach((function(e){var r=e.key,o=e.val;o=t+o,n[r]=function(){if(!t||R(this.$store,"mapGetters",t))return this.$store.getters[o]},n[r].vuex=!0})),n})),M=D((function(t,e){var n={};return L(e).forEach((function(e){var r=e.key,o=e.val;n[r]=function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];var r=this.$store.dispatch;if(t){var i=R(this.$store,"mapActions",t);if(!i)return;r=i.context.dispatch}return"function"===typeof o?o.apply(this,[r].concat(e)):r.apply(this.$store,[o].concat(e))}})),n})),I=function(t){return{mapState:E.bind(null,t),mapGetters:T.bind(null,t),mapMutations:P.bind(null,t),mapActions:M.bind(null,t)}};function L(t){return N(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function N(t){return Array.isArray(t)||c(t)}function D(t){return function(e,n){return"string"!==typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function R(t,e,n){var r=t._modulesNamespaceMap[n];return r}var F={Store:h,install:k,version:"3.1.3",mapState:E,mapMutations:P,mapGetters:T,mapActions:M,createNamespacedHelpers:I};e["a"]=F}).call(this,n("c8ba"))},3410:function(t,e,n){var r=n("23e7"),o=n("d039"),i=n("7b0b"),a=n("e163"),c=n("e177"),s=o((function(){a(1)}));r({target:"Object",stat:!0,forced:s,sham:!c},{getPrototypeOf:function(t){return a(i(t))}})},"342f":function(t,e,n){var r=n("d066");t.exports=r("navigator","userAgent")||""},"35a1":function(t,e,n){var r=n("f5df"),o=n("3f8c"),i=n("b622"),a=i("iterator");t.exports=function(t){if(void 0!=t)return t[a]||t["@@iterator"]||o[r(t)]}},"37e8":function(t,e,n){var r=n("83ab"),o=n("9bf2"),i=n("825a"),a=n("df75");t.exports=r?Object.defineProperties:function(t,e){i(t);var n,r=a(e),c=r.length,s=0;while(c>s)o.f(t,n=r[s++],e[n]);return t}},"3bbe":function(t,e,n){var r=n("861d");t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},"3ca3":function(t,e,n){"use strict";var r=n("6547").charAt,o=n("69f3"),i=n("7dd0"),a="String Iterator",c=o.set,s=o.getterFor(a);i(String,"String",(function(t){c(this,{type:a,string:String(t),index:0})}),(function(){var t,e=s(this),n=e.string,o=e.index;return o>=n.length?{value:void 0,done:!0}:(t=r(n,o),e.index+=t.length,{value:t,done:!1})}))},"3f8c":function(t,e){t.exports={}},"428f":function(t,e,n){var r=n("da84");t.exports=r},"44ad":function(t,e,n){var r=n("d039"),o=n("c6b6"),i="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},"44d2":function(t,e,n){var r=n("b622"),o=n("7c73"),i=n("9bf2"),a=r("unscopables"),c=Array.prototype;void 0==c[a]&&i.f(c,a,{configurable:!0,value:o(null)}),t.exports=function(t){c[a][t]=!0}},"44de":function(t,e,n){var r=n("da84");t.exports=function(t,e){var n=r.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}},4840:function(t,e,n){var r=n("825a"),o=n("1c0b"),i=n("b622"),a=i("species");t.exports=function(t,e){var n,i=r(t).constructor;return void 0===i||void 0==(n=r(i)[a])?e:o(n)}},4930:function(t,e,n){var r=n("d039");t.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},"498a":function(t,e,n){"use strict";var r=n("23e7"),o=n("58a8").trim,i=n("c8d2");r({target:"String",proto:!0,forced:i("trim")},{trim:function(){return o(this)}})},"4ae1":function(t,e,n){var r=n("23e7"),o=n("d066"),i=n("1c0b"),a=n("825a"),c=n("861d"),s=n("7c73"),u=n("0538"),f=n("d039"),l=o("Reflect","construct"),p=f((function(){function t(){}return!(l((function(){}),[],t)instanceof t)})),d=!f((function(){l((function(){}))})),v=p||d;r({target:"Reflect",stat:!0,forced:v,sham:v},{construct:function(t,e){i(t),a(e);var n=arguments.length<3?t:i(arguments[2]);if(d&&!p)return l(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return r.push.apply(r,e),new(u.apply(t,r))}var o=n.prototype,f=s(c(o)?o:Object.prototype),v=Function.apply.call(t,f,e);return c(v)?v:f}})},"4d64":function(t,e,n){var r=n("fc6a"),o=n("50c4"),i=n("23cb"),a=function(t){return function(e,n,a){var c,s=r(e),u=o(s.length),f=i(a,u);if(t&&n!=n){while(u>f)if(c=s[f++],c!=c)return!0}else for(;u>f;f++)if((t||f in s)&&s[f]===n)return t||f||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},"4de4":function(t,e,n){"use strict";var r=n("23e7"),o=n("b727").filter,i=n("1dde"),a=n("ae40"),c=i("filter"),s=a("filter");r({target:"Array",proto:!0,forced:!c||!s},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},"50c4":function(t,e,n){var r=n("a691"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},5135:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},5692:function(t,e,n){var r=n("c430"),o=n("c6cd");(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.4",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(t,e,n){var r=n("d066"),o=n("241c"),i=n("7418"),a=n("825a");t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(a(t)),n=i.f;return n?e.concat(n(t)):e}},5899:function(t,e){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},"58a8":function(t,e,n){var r=n("1d80"),o=n("5899"),i="["+o+"]",a=RegExp("^"+i+i+"*"),c=RegExp(i+i+"*$"),s=function(t){return function(e){var n=String(r(e));return 1&t&&(n=n.replace(a,"")),2&t&&(n=n.replace(c,"")),n}};t.exports={start:s(1),end:s(2),trim:s(3)}},"5c6c":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"60a3":function(t,e,n){"use strict";n.d(e,"a",(function(){return O})),n.d(e,"c",(function(){return r["a"]})),n.d(e,"b",(function(){return A}));var r=n("2b0e"); 14 | /** 15 | * vue-class-component v7.2.3 16 | * (c) 2015-present Evan You 17 | * @license MIT 18 | */function o(t){return o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t){return c(t)||s(t)||u()}function c(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e1&&void 0!==arguments[1]?arguments[1]:{};e.name=e.name||t._componentTag||t.name;var n=t.prototype;Object.getOwnPropertyNames(n).forEach((function(t){if("constructor"!==t)if(g.indexOf(t)>-1)e[t]=n[t];else{var r=Object.getOwnPropertyDescriptor(n,t);void 0!==r.value?"function"===typeof r.value?(e.methods||(e.methods={}))[t]=r.value:(e.mixins||(e.mixins=[])).push({data:function(){return i({},t,r.value)}}):(r.get||r.set)&&((e.computed||(e.computed={}))[t]={get:r.get,set:r.set})}})),(e.mixins||(e.mixins=[])).push({data:function(){return m(this,t)}});var o=t.__decorators__;o&&(o.forEach((function(t){return t(e)})),delete t.__decorators__);var a=Object.getPrototypeOf(t.prototype),c=a instanceof r["a"]?a.constructor:r["a"],s=c.extend(e);return w(s,t,c),f()&&l(s,t),s}var _={prototype:!0,arguments:!0,callee:!0,caller:!0};function w(t,e,n){Object.getOwnPropertyNames(e).forEach((function(r){if(!_[r]){var o=Object.getOwnPropertyDescriptor(t,r);if(!o||o.configurable){var i=Object.getOwnPropertyDescriptor(e,r);if(!v){if("cid"===r)return;var a=Object.getOwnPropertyDescriptor(n,r);if(!y(i.value)&&a&&a.value===i.value)return}0,Object.defineProperty(t,r,i)}}}))}function x(t){return"function"===typeof t?b(t):function(e){return b(e,t)}}x.registerHooks=function(t){g.push.apply(g,a(t))};var O=x;var S="undefined"!==typeof Reflect&&"undefined"!==typeof Reflect.getMetadata;function C(t,e,n){if(S&&!Array.isArray(t)&&"function"!==typeof t&&"undefined"===typeof t.type){var r=Reflect.getMetadata("design:type",e,n);r!==Object&&(t.type=r)}}function A(t){return void 0===t&&(t={}),function(e,n){C(t,e,n),h((function(e,n){(e.props||(e.props={}))[n]=t}))(e,n)}}},"60da":function(t,e,n){"use strict";var r=n("83ab"),o=n("d039"),i=n("df75"),a=n("7418"),c=n("d1e7"),s=n("7b0b"),u=n("44ad"),f=Object.assign,l=Object.defineProperty;t.exports=!f||o((function(){if(r&&1!==f({b:1},f(l({},"a",{enumerable:!0,get:function(){l(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),o="abcdefghijklmnopqrst";return t[n]=7,o.split("").forEach((function(t){e[t]=t})),7!=f({},t)[n]||i(f({},e)).join("")!=o}))?function(t,e){var n=s(t),o=arguments.length,f=1,l=a.f,p=c.f;while(o>f){var d,v=u(arguments[f++]),h=l?i(v).concat(l(v)):i(v),y=h.length,m=0;while(y>m)d=h[m++],r&&!p.call(v,d)||(n[d]=v[d])}return n}:f},6547:function(t,e,n){var r=n("a691"),o=n("1d80"),i=function(t){return function(e,n){var i,a,c=String(o(e)),s=r(n),u=c.length;return s<0||s>=u?t?"":void 0:(i=c.charCodeAt(s),i<55296||i>56319||s+1===u||(a=c.charCodeAt(s+1))<56320||a>57343?t?c.charAt(s):i:t?c.slice(s,s+2):a-56320+(i-55296<<10)+65536)}};t.exports={codeAt:i(!1),charAt:i(!0)}},"65f0":function(t,e,n){var r=n("861d"),o=n("e8b5"),i=n("b622"),a=i("species");t.exports=function(t,e){var n;return o(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!o(n.prototype)?r(n)&&(n=n[a],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},"69f3":function(t,e,n){var r,o,i,a=n("7f9a"),c=n("da84"),s=n("861d"),u=n("9112"),f=n("5135"),l=n("f772"),p=n("d012"),d=c.WeakMap,v=function(t){return i(t)?o(t):r(t,{})},h=function(t){return function(e){var n;if(!s(e)||(n=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}};if(a){var y=new d,m=y.get,g=y.has,b=y.set;r=function(t,e){return b.call(y,t,e),e},o=function(t){return m.call(y,t)||{}},i=function(t){return g.call(y,t)}}else{var _=l("state");p[_]=!0,r=function(t,e){return u(t,_,e),e},o=function(t){return f(t,_)?t[_]:{}},i=function(t){return f(t,_)}}t.exports={set:r,get:o,has:i,enforce:v,getterFor:h}},"6eeb":function(t,e,n){var r=n("da84"),o=n("9112"),i=n("5135"),a=n("ce4e"),c=n("8925"),s=n("69f3"),u=s.get,f=s.enforce,l=String(String).split("String");(t.exports=function(t,e,n,c){var s=!!c&&!!c.unsafe,u=!!c&&!!c.enumerable,p=!!c&&!!c.noTargetGet;"function"==typeof n&&("string"!=typeof e||i(n,"name")||o(n,"name",e),f(n).source=l.join("string"==typeof e?e:"")),t!==r?(s?!p&&t[e]&&(u=!0):delete t[e],u?t[e]=n:o(t,e,n)):u?t[e]=n:a(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||c(this)}))},7418:function(t,e){e.f=Object.getOwnPropertySymbols},"746f":function(t,e,n){var r=n("428f"),o=n("5135"),i=n("e538"),a=n("9bf2").f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});o(e,t)||a(e,t,{value:i.f(t)})}},7839:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(t,e,n){var r=n("1d80");t.exports=function(t){return Object(r(t))}},"7c73":function(t,e,n){var r,o=n("825a"),i=n("37e8"),a=n("7839"),c=n("d012"),s=n("1be4"),u=n("cc12"),f=n("f772"),l=">",p="<",d="prototype",v="script",h=f("IE_PROTO"),y=function(){},m=function(t){return p+v+l+t+p+"/"+v+l},g=function(t){t.write(m("")),t.close();var e=t.parentWindow.Object;return t=null,e},b=function(){var t,e=u("iframe"),n="java"+v+":";return e.style.display="none",s.appendChild(e),e.src=String(n),t=e.contentWindow.document,t.open(),t.write(m("document.F=Object")),t.close(),t.F},_=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}_=r?g(r):b();var t=a.length;while(t--)delete _[d][a[t]];return _()};c[h]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(y[d]=o(t),n=new y,y[d]=null,n[h]=t):n=_(),void 0===e?n:i(n,e)}},"7db0":function(t,e,n){"use strict";var r=n("23e7"),o=n("b727").find,i=n("44d2"),a=n("ae40"),c="find",s=!0,u=a(c);c in[]&&Array(1)[c]((function(){s=!1})),r({target:"Array",proto:!0,forced:s||!u},{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i(c)},"7dd0":function(t,e,n){"use strict";var r=n("23e7"),o=n("9ed3"),i=n("e163"),a=n("d2bb"),c=n("d44e"),s=n("9112"),u=n("6eeb"),f=n("b622"),l=n("c430"),p=n("3f8c"),d=n("ae93"),v=d.IteratorPrototype,h=d.BUGGY_SAFARI_ITERATORS,y=f("iterator"),m="keys",g="values",b="entries",_=function(){return this};t.exports=function(t,e,n,f,d,w,x){o(n,e,f);var O,S,C,A=function(t){if(t===d&&P)return P;if(!h&&t in k)return k[t];switch(t){case m:return function(){return new n(this,t)};case g:return function(){return new n(this,t)};case b:return function(){return new n(this,t)}}return function(){return new n(this)}},j=e+" Iterator",$=!1,k=t.prototype,E=k[y]||k["@@iterator"]||d&&k[d],P=!h&&E||A(d),T="Array"==e&&k.entries||E;if(T&&(O=i(T.call(new t)),v!==Object.prototype&&O.next&&(l||i(O)===v||(a?a(O,v):"function"!=typeof O[y]&&s(O,y,_)),c(O,j,!0,!0),l&&(p[j]=_))),d==g&&E&&E.name!==g&&($=!0,P=function(){return E.call(this)}),l&&!x||k[y]===P||s(k,y,P),p[e]=P,d)if(S={values:A(g),keys:w?P:A(m),entries:A(b)},x)for(C in S)(h||$||!(C in k))&&u(k,C,S[C]);else r({target:e,proto:!0,forced:h||$},S);return S}},"7f9a":function(t,e,n){var r=n("da84"),o=n("8925"),i=r.WeakMap;t.exports="function"===typeof i&&/native code/.test(o(i))},"825a":function(t,e,n){var r=n("861d");t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},"83ab":function(t,e,n){var r=n("d039");t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8418:function(t,e,n){"use strict";var r=n("c04e"),o=n("9bf2"),i=n("5c6c");t.exports=function(t,e,n){var a=r(e);a in t?o.f(t,a,i(0,n)):t[a]=n}},"861d":function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},8925:function(t,e,n){var r=n("c6cd"),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return o.call(t)}),t.exports=r.inspectSource},"90e3":function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},9112:function(t,e,n){var r=n("83ab"),o=n("9bf2"),i=n("5c6c");t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},"94ca":function(t,e,n){var r=n("d039"),o=/#|\.prototype\./,i=function(t,e){var n=c[a(t)];return n==u||n!=s&&("function"==typeof e?r(e):!!e)},a=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=i.data={},s=i.NATIVE="N",u=i.POLYFILL="P";t.exports=i},"9ab4":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));function r(t,e,n,r){var o,i=arguments.length,a=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}},"9bdd":function(t,e,n){var r=n("825a");t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(a){var i=t["return"];throw void 0!==i&&r(i.call(t)),a}}},"9bf2":function(t,e,n){var r=n("83ab"),o=n("0cfb"),i=n("825a"),a=n("c04e"),c=Object.defineProperty;e.f=r?c:function(t,e,n){if(i(t),e=a(e,!0),i(n),o)try{return c(t,e,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},"9ed3":function(t,e,n){"use strict";var r=n("ae93").IteratorPrototype,o=n("7c73"),i=n("5c6c"),a=n("d44e"),c=n("3f8c"),s=function(){return this};t.exports=function(t,e,n){var u=e+" Iterator";return t.prototype=o(r,{next:i(1,n)}),a(t,u,!1,!0),c[u]=s,t}},a434:function(t,e,n){"use strict";var r=n("23e7"),o=n("23cb"),i=n("a691"),a=n("50c4"),c=n("7b0b"),s=n("65f0"),u=n("8418"),f=n("1dde"),l=n("ae40"),p=f("splice"),d=l("splice",{ACCESSORS:!0,0:0,1:2}),v=Math.max,h=Math.min,y=9007199254740991,m="Maximum allowed length exceeded";r({target:"Array",proto:!0,forced:!p||!d},{splice:function(t,e){var n,r,f,l,p,d,g=c(this),b=a(g.length),_=o(t,b),w=arguments.length;if(0===w?n=r=0:1===w?(n=0,r=b-_):(n=w-2,r=h(v(i(e),0),b-_)),b+n-r>y)throw TypeError(m);for(f=s(g,r),l=0;lb-r+n;l--)delete g[l-1]}else if(n>r)for(l=b-r;l>_;l--)p=l+r-1,d=l+n-1,p in g?g[d]=g[p]:delete g[d];for(l=0;li)o.push(arguments[i++]);if(r=e,(d(e)||void 0!==t)&&!ct(t))return p(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!ct(e))return e}),o[1]=e,K.apply(null,o)}})}W[G][H]||j(W[G],H,W[G].valueOf),N(W,V),P[F]=!0},a691:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},a79d:function(t,e,n){"use strict";var r=n("23e7"),o=n("c430"),i=n("fea9"),a=n("d039"),c=n("d066"),s=n("4840"),u=n("cdf9"),f=n("6eeb"),l=!!i&&a((function(){i.prototype["finally"].call({then:function(){}},(function(){}))}));r({target:"Promise",proto:!0,real:!0,forced:l},{finally:function(t){var e=s(this,c("Promise")),n="function"==typeof t;return this.then(n?function(n){return u(e,t()).then((function(){return n}))}:t,n?function(n){return u(e,t()).then((function(){throw n}))}:t)}}),o||"function"!=typeof i||i.prototype["finally"]||f(i.prototype,"finally",c("Promise").prototype["finally"])},ad6d:function(t,e,n){"use strict";var r=n("825a");t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},ae40:function(t,e,n){var r=n("83ab"),o=n("d039"),i=n("5135"),a=Object.defineProperty,c={},s=function(t){throw t};t.exports=function(t,e){if(i(c,t))return c[t];e||(e={});var n=[][t],u=!!i(e,"ACCESSORS")&&e.ACCESSORS,f=i(e,0)?e[0]:s,l=i(e,1)?e[1]:void 0;return c[t]=!!n&&!o((function(){if(u&&!r)return!0;var t={length:-1};u?a(t,1,{enumerable:!0,get:s}):t[1]=1,n.call(t,f,l)}))}},ae93:function(t,e,n){"use strict";var r,o,i,a=n("e163"),c=n("9112"),s=n("5135"),u=n("b622"),f=n("c430"),l=u("iterator"),p=!1,d=function(){return this};[].keys&&(i=[].keys(),"next"in i?(o=a(a(i)),o!==Object.prototype&&(r=o)):p=!0),void 0==r&&(r={}),f||s(r,l)||c(r,l,d),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},b041:function(t,e,n){"use strict";var r=n("00ee"),o=n("f5df");t.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},b575:function(t,e,n){var r,o,i,a,c,s,u,f,l=n("da84"),p=n("06cf").f,d=n("c6b6"),v=n("2cf4").set,h=n("1cdc"),y=l.MutationObserver||l.WebKitMutationObserver,m=l.process,g=l.Promise,b="process"==d(m),_=p(l,"queueMicrotask"),w=_&&_.value;w||(r=function(){var t,e;b&&(t=m.domain)&&t.exit();while(o){e=o.fn,o=o.next;try{e()}catch(n){throw o?a():i=void 0,n}}i=void 0,t&&t.enter()},b?a=function(){m.nextTick(r)}:y&&!h?(c=!0,s=document.createTextNode(""),new y(r).observe(s,{characterData:!0}),a=function(){s.data=c=!c}):g&&g.resolve?(u=g.resolve(void 0),f=u.then,a=function(){f.call(u,r)}):a=function(){v.call(l,r)}),t.exports=w||function(t){var e={fn:t,next:void 0};i&&(i.next=e),o||(o=e,a()),i=e}},b622:function(t,e,n){var r=n("da84"),o=n("5692"),i=n("5135"),a=n("90e3"),c=n("4930"),s=n("fdbf"),u=o("wks"),f=r.Symbol,l=s?f:f&&f.withoutSetter||a;t.exports=function(t){return i(u,t)||(c&&i(f,t)?u[t]=f[t]:u[t]=l("Symbol."+t)),u[t]}},b727:function(t,e,n){var r=n("0366"),o=n("44ad"),i=n("7b0b"),a=n("50c4"),c=n("65f0"),s=[].push,u=function(t){var e=1==t,n=2==t,u=3==t,f=4==t,l=6==t,p=5==t||l;return function(d,v,h,y){for(var m,g,b=i(d),_=o(b),w=r(v,h,3),x=a(_.length),O=0,S=y||c,C=e?S(d,x):n?S(d,0):void 0;x>O;O++)if((p||O in _)&&(m=_[O],g=w(m,O,b),t))if(e)C[O]=g;else if(g)switch(t){case 3:return!0;case 5:return m;case 6:return O;case 2:s.call(C,m)}else if(f)return!1;return l?-1:u||f?f:C}};t.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6)}},bee2:function(t,e,n){"use strict";function r(t,e){for(var n=0;n1?arguments[1]:void 0)}}),i(c)},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},c8d2:function(t,e,n){var r=n("d039"),o=n("5899"),i="​…᠎";t.exports=function(t){return r((function(){return!!o[t]()||i[t]()!=i||o[t].name!==t}))}},ca84:function(t,e,n){var r=n("5135"),o=n("fc6a"),i=n("4d64").indexOf,a=n("d012");t.exports=function(t,e){var n,c=o(t),s=0,u=[];for(n in c)!r(a,n)&&r(c,n)&&u.push(n);while(e.length>s)r(c,n=e[s++])&&(~i(u,n)||u.push(n));return u}},cc12:function(t,e,n){var r=n("da84"),o=n("861d"),i=r.document,a=o(i)&&o(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},cca6:function(t,e,n){var r=n("23e7"),o=n("60da");r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},cdf9:function(t,e,n){var r=n("825a"),o=n("861d"),i=n("f069");t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t),a=n.resolve;return a(e),n.promise}},ce4e:function(t,e,n){var r=n("da84"),o=n("9112");t.exports=function(t,e){try{o(r,t,e)}catch(n){r[t]=e}return e}},d012:function(t,e){t.exports={}},d039:function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},d066:function(t,e,n){var r=n("428f"),o=n("da84"),i=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?i(r[t])||i(o[t]):r[t]&&r[t][e]||o[t]&&o[t][e]}},d1e7:function(t,e,n){"use strict";var r={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!r.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:r},d28b:function(t,e,n){var r=n("746f");r("iterator")},d2bb:function(t,e,n){var r=n("825a"),o=n("3bbe");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(n,[]),e=n instanceof Array}catch(i){}return function(n,i){return r(n),o(i),e?t.call(n,i):n.__proto__=i,n}}():void 0)},d3b7:function(t,e,n){var r=n("00ee"),o=n("6eeb"),i=n("b041");r||o(Object.prototype,"toString",i,{unsafe:!0})},d44e:function(t,e,n){var r=n("9bf2").f,o=n("5135"),i=n("b622"),a=i("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,a)&&r(t,a,{configurable:!0,value:e})}},d4ec:function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,"a",(function(){return r}))},d81d:function(t,e,n){"use strict";var r=n("23e7"),o=n("b727").map,i=n("1dde"),a=n("ae40"),c=i("map"),s=a("map");r({target:"Array",proto:!0,forced:!c||!s},{map:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},da84:function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||Function("return this")()}).call(this,n("c8ba"))},ddb0:function(t,e,n){var r=n("da84"),o=n("fdbc"),i=n("e260"),a=n("9112"),c=n("b622"),s=c("iterator"),u=c("toStringTag"),f=i.values;for(var l in o){var p=r[l],d=p&&p.prototype;if(d){if(d[s]!==f)try{a(d,s,f)}catch(h){d[s]=f}if(d[u]||a(d,u,l),o[l])for(var v in i)if(d[v]!==i[v])try{a(d,v,i[v])}catch(h){d[v]=i[v]}}}},df75:function(t,e,n){var r=n("ca84"),o=n("7839");t.exports=Object.keys||function(t){return r(t,o)}},e01a:function(t,e,n){"use strict";var r=n("23e7"),o=n("83ab"),i=n("da84"),a=n("5135"),c=n("861d"),s=n("9bf2").f,u=n("e893"),f=i.Symbol;if(o&&"function"==typeof f&&(!("description"in f.prototype)||void 0!==f().description)){var l={},p=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof p?new f(t):void 0===t?f():f(t);return""===t&&(l[e]=!0),e};u(p,f);var d=p.prototype=f.prototype;d.constructor=p;var v=d.toString,h="Symbol(test)"==String(f("test")),y=/^Symbol\((.*)\)[^)]+$/;s(d,"description",{configurable:!0,get:function(){var t=c(this)?this.valueOf():this,e=v.call(t);if(a(l,t))return"";var n=h?e.slice(7,-1):e.replace(y,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:p})}},e163:function(t,e,n){var r=n("5135"),o=n("7b0b"),i=n("f772"),a=n("e177"),c=i("IE_PROTO"),s=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=o(t),r(t,c)?t[c]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},e177:function(t,e,n){var r=n("d039");t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},e260:function(t,e,n){"use strict";var r=n("fc6a"),o=n("44d2"),i=n("3f8c"),a=n("69f3"),c=n("7dd0"),s="Array Iterator",u=a.set,f=a.getterFor(s);t.exports=c(Array,"Array",(function(t,e){u(this,{type:s,target:r(t),index:0,kind:e})}),(function(){var t=f(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},e2cc:function(t,e,n){var r=n("6eeb");t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},e538:function(t,e,n){var r=n("b622");e.f=r},e667:function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}}},e6cf:function(t,e,n){"use strict";var r,o,i,a,c=n("23e7"),s=n("c430"),u=n("da84"),f=n("d066"),l=n("fea9"),p=n("6eeb"),d=n("e2cc"),v=n("d44e"),h=n("2626"),y=n("861d"),m=n("1c0b"),g=n("19aa"),b=n("c6b6"),_=n("8925"),w=n("2266"),x=n("1c7e"),O=n("4840"),S=n("2cf4").set,C=n("b575"),A=n("cdf9"),j=n("44de"),$=n("f069"),k=n("e667"),E=n("69f3"),P=n("94ca"),T=n("b622"),M=n("2d00"),I=T("species"),L="Promise",N=E.get,D=E.set,R=E.getterFor(L),F=l,V=u.TypeError,G=u.document,H=u.process,U=f("fetch"),B=$.f,z=B,W="process"==b(H),K=!!(G&&G.createEvent&&u.dispatchEvent),q="unhandledrejection",X="rejectionhandled",J=0,Y=1,Z=2,Q=1,tt=2,et=P(L,(function(){var t=_(F)!==String(F);if(!t){if(66===M)return!0;if(!W&&"function"!=typeof PromiseRejectionEvent)return!0}if(s&&!F.prototype["finally"])return!0;if(M>=51&&/native code/.test(F))return!1;var e=F.resolve(1),n=function(t){t((function(){}),(function(){}))},r=e.constructor={};return r[I]=n,!(e.then((function(){}))instanceof n)})),nt=et||!x((function(t){F.all(t)["catch"]((function(){}))})),rt=function(t){var e;return!(!y(t)||"function"!=typeof(e=t.then))&&e},ot=function(t,e,n){if(!e.notified){e.notified=!0;var r=e.reactions;C((function(){var o=e.value,i=e.state==Y,a=0;while(r.length>a){var c,s,u,f=r[a++],l=i?f.ok:f.fail,p=f.resolve,d=f.reject,v=f.domain;try{l?(i||(e.rejection===tt&&st(t,e),e.rejection=Q),!0===l?c=o:(v&&v.enter(),c=l(o),v&&(v.exit(),u=!0)),c===f.promise?d(V("Promise-chain cycle")):(s=rt(c))?s.call(c,p,d):p(c)):d(o)}catch(h){v&&!u&&v.exit(),d(h)}}e.reactions=[],e.notified=!1,n&&!e.rejection&&at(t,e)}))}},it=function(t,e,n){var r,o;K?(r=G.createEvent("Event"),r.promise=e,r.reason=n,r.initEvent(t,!1,!0),u.dispatchEvent(r)):r={promise:e,reason:n},(o=u["on"+t])?o(r):t===q&&j("Unhandled promise rejection",n)},at=function(t,e){S.call(u,(function(){var n,r=e.value,o=ct(e);if(o&&(n=k((function(){W?H.emit("unhandledRejection",r,t):it(q,t,r)})),e.rejection=W||ct(e)?tt:Q,n.error))throw n.value}))},ct=function(t){return t.rejection!==Q&&!t.parent},st=function(t,e){S.call(u,(function(){W?H.emit("rejectionHandled",t):it(X,t,e.value)}))},ut=function(t,e,n,r){return function(o){t(e,n,o,r)}},ft=function(t,e,n,r){e.done||(e.done=!0,r&&(e=r),e.value=n,e.state=Z,ot(t,e,!0))},lt=function(t,e,n,r){if(!e.done){e.done=!0,r&&(e=r);try{if(t===n)throw V("Promise can't be resolved itself");var o=rt(n);o?C((function(){var r={done:!1};try{o.call(n,ut(lt,t,r,e),ut(ft,t,r,e))}catch(i){ft(t,r,i,e)}})):(e.value=n,e.state=Y,ot(t,e,!1))}catch(i){ft(t,{done:!1},i,e)}}};et&&(F=function(t){g(this,F,L),m(t),r.call(this);var e=N(this);try{t(ut(lt,this,e),ut(ft,this,e))}catch(n){ft(this,e,n)}},r=function(t){D(this,{type:L,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:J,value:void 0})},r.prototype=d(F.prototype,{then:function(t,e){var n=R(this),r=B(O(this,F));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=W?H.domain:void 0,n.parent=!0,n.reactions.push(r),n.state!=J&&ot(this,n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r,e=N(t);this.promise=t,this.resolve=ut(lt,t,e),this.reject=ut(ft,t,e)},$.f=B=function(t){return t===F||t===i?new o(t):z(t)},s||"function"!=typeof l||(a=l.prototype.then,p(l.prototype,"then",(function(t,e){var n=this;return new F((function(t,e){a.call(n,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof U&&c({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return A(F,U.apply(u,arguments))}}))),c({global:!0,wrap:!0,forced:et},{Promise:F}),v(F,L,!1,!0),h(L),i=f(L),c({target:L,stat:!0,forced:et},{reject:function(t){var e=B(this);return e.reject.call(void 0,t),e.promise}}),c({target:L,stat:!0,forced:s||et},{resolve:function(t){return A(s&&this===i?F:this,t)}}),c({target:L,stat:!0,forced:nt},{all:function(t){var e=this,n=B(e),r=n.resolve,o=n.reject,i=k((function(){var n=m(e.resolve),i=[],a=0,c=1;w(t,(function(t){var s=a++,u=!1;i.push(void 0),c++,n.call(e,t).then((function(t){u||(u=!0,i[s]=t,--c||r(i))}),o)})),--c||r(i)}));return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=B(e),r=n.reject,o=k((function(){var o=m(e.resolve);w(t,(function(t){o.call(e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}})},e893:function(t,e,n){var r=n("5135"),o=n("56ef"),i=n("06cf"),a=n("9bf2");t.exports=function(t,e){for(var n=o(e),c=a.f,s=i.f,u=0;u 1%", 50 | "last 2 versions" 51 | ] 52 | } 53 | -------------------------------------------------------------------------------- /public/common.css: -------------------------------------------------------------------------------- 1 | [v-cloak] { 2 | display: none; 3 | } 4 | 5 | * { 6 | padding: 0; 7 | margin: 0; 8 | border: 0; 9 | list-style: none; 10 | text-decoration: none; 11 | } 12 | 13 | body { 14 | padding-top: 50px; 15 | background: url(./imgs/pixels.png); 16 | } 17 | 18 | blockquote p { 19 | font-size: 14px; 20 | } 21 | 22 | .dropdown-menu a { 23 | cursor: pointer !important; 24 | } 25 | 26 | #vue-memo { 27 | border: 1px solid #e1e1e1; 28 | box-shadow: 0 0 4px 0 #e1e1e1; 29 | padding: 0; 30 | z-index: 1; 31 | } 32 | 33 | .navbar { 34 | border-radius: 0; 35 | margin-bottom: 0; 36 | z-index: 1; 37 | cursor: default; 38 | user-select: none; 39 | -moz-user-select: none; 40 | -ms-user-select: none; 41 | -webkit-user-select: none; 42 | } 43 | 44 | .navbar .navbar-right a { 45 | cursor: pointer; 46 | } 47 | 48 | .navbar .navbar-right .search-box { 49 | width: calc(100% - 24px); 50 | min-width: 180px; 51 | margin: 6px 12px; 52 | } 53 | 54 | .navbar .dropdown-toggle { 55 | position: relative; 56 | padding-right: 45px !important; 57 | transition: 0.2s ease-in-out; 58 | } 59 | 60 | .navbar .dropdown-toggle:hover { 61 | background: #e7e7e7 !important; 62 | } 63 | 64 | .navbar .dropdown-toggle:after { 65 | position: absolute; 66 | width: 24px; 67 | height: 24px; 68 | top: 8px; 69 | right: 18px; 70 | background: url(./imgs/icons/icon-dropdown.png) 0 0 no-repeat; 71 | content: " "; 72 | opacity: 0.6; 73 | } 74 | 75 | @media (min-width: 768px) { 76 | .navbar .dropdown-toggle:after { 77 | top: 13px; 78 | } 79 | } 80 | 81 | .navbar .count { 82 | border-radius: 5px; 83 | float: right; 84 | margin-top: 3px; 85 | } 86 | 87 | .navbar-brand{ 88 | padding-top:5px; 89 | } 90 | 91 | .navbar .current-category .count { 92 | float: none; 93 | margin: -2px 6px 0 9px; 94 | } 95 | 96 | #memos { 97 | min-height: 800px; 98 | margin-top: 6px; 99 | padding: 0; 100 | } 101 | 102 | .memo-container { 103 | padding: 6px; 104 | float: left; 105 | } 106 | 107 | .memo { 108 | position: relative; 109 | border: 1px solid #bdbdbd; 110 | border-radius: 5px; 111 | padding: 9px; 112 | background-color: #fff; 113 | transition: all 0.15s ease-in-out; 114 | } 115 | 116 | .memo:hover { 117 | box-shadow: 0 0 6px 0 #757575; 118 | } 119 | 120 | .memo:hover .mark { 121 | display: block; 122 | } 123 | 124 | .memo[data-completed="true"] { 125 | border-color: #4dabf5; 126 | } 127 | 128 | .memo[data-completed="true"] .mark { 129 | display: block; 130 | } 131 | 132 | .memo .mark { 133 | display: none; 134 | position: absolute; 135 | width: 24px; 136 | height: 24px; 137 | top: -8px; 138 | left: -8px; 139 | border-radius: 50%; 140 | background:#0094ff no-repeat 3px 3px; /* url(./imgs/icons/icon-done.svg) */ 141 | background-size: 18px 18px; 142 | transition: all 0.2s ease-in-out; 143 | cursor: pointer; 144 | } 145 | 146 | .memo .mark:hover { 147 | -webkit-transform: scale(1.2); 148 | transform: scale(1.2); 149 | } 150 | 151 | .memo .memo-heading { 152 | position: relative; 153 | width: 100%; 154 | } 155 | 156 | .memo .memo-heading .tools { 157 | float: right; 158 | margin-top: 6px; 159 | } 160 | 161 | .memo .memo-heading .tools > li { 162 | width: 20px; 163 | height: 20px; 164 | float: left; 165 | margin-left: 10px; 166 | opacity: 0.5; 167 | transition: opacity 0.2s ease-in-out; 168 | } 169 | 170 | .memo .memo-heading .tools > li:hover { 171 | cursor: pointer; 172 | opacity: 1; 173 | } 174 | 175 | .memo .memo-heading .tools > li.edit { 176 | background: url(./imgs/icons/icon-edit.png) no-repeat 0 0; 177 | } 178 | 179 | .memo .memo-heading .tools > li.delete { 180 | background: url(./imgs/icons/icon-delete.png) no-repeat 0 0; 181 | } 182 | 183 | .memo .memo-heading .title { 184 | display: inline-block; 185 | margin-top: 6px; 186 | margin-bottom: 6px; 187 | padding-bottom: 6px; 188 | border-bottom: 1px solid #bdbdbd; 189 | text-overflow: ellipsis; 190 | white-space: nowrap; 191 | overflow: hidden; 192 | max-width: calc(100% - 60px); 193 | } 194 | 195 | .memo .memo-info { 196 | margin: 0 auto 12px; 197 | color: #757575; 198 | font-weight: 300; 199 | } 200 | 201 | .memo .memo-info .category { 202 | float: right; 203 | } 204 | 205 | .memo .content { 206 | border: 1px solid #f8f8f8; 207 | bottom: 12px; 208 | overflow-y: auto; 209 | text-overflow: ellipsis; 210 | height: 180px; 211 | } 212 | 213 | .memo .content[data-type="doodle"] { 214 | overflow: hidden; 215 | } 216 | 217 | .cover-layer, 218 | .memo .content img { 219 | width: 100%; 220 | height: 100%; 221 | } 222 | 223 | .cover-layer { 224 | top: 0; 225 | left: 0; 226 | background-color: #222; 227 | opacity: 0.5; 228 | z-index: 2; 229 | } 230 | 231 | .cover-layer, 232 | .editor-layer { 233 | display: block; 234 | position: absolute; 235 | } 236 | 237 | .editor-layer { 238 | background-color: #fff; 239 | top: 50%; 240 | left: 50%; 241 | transform: translate(-50%,-50%); 242 | padding: 10px; 243 | border: 1px solid #f8f8f8; 244 | border-radius: 3px; 245 | box-shadow: 0 0 6px 0 #f8f8f8; 246 | z-index: 3; 247 | } 248 | 249 | .editor-layer{ 250 | margin-bottom: 10px; 251 | width: 500px; 252 | } 253 | .editor-top{ 254 | position: relative; 255 | margin-bottom: 10px; 256 | width: 100%; 257 | } 258 | 259 | .editor-layer .editor-top .tools { 260 | position: absolute; 261 | top: 6px; 262 | right: 0; 263 | } 264 | 265 | .editor-layer .editor-top .tools > li { 266 | width: 20px; 267 | height: 20px; 268 | float: left; 269 | margin-left: 10px; 270 | opacity: 0.5; 271 | transition: opacity 0.2s ease-in-out; 272 | } 273 | 274 | .editor-layer .editor-top .tools > li:hover { 275 | cursor: pointer; 276 | opacity: 1; 277 | } 278 | 279 | .editor-layer .editor-top .tools > li.save { 280 | background: url(./imgs/icons/icon-save.png) no-repeat 0 0; 281 | } 282 | 283 | .editor-layer .editor-top .tools > li.cancel { 284 | background: url(./imgs/icons/icon-cancel.png) no-repeat 0 0; 285 | } 286 | 287 | .editor-layer .editor-top .editor-title { 288 | width: calc(100% - 140px); 289 | } 290 | 291 | html #edit-doodle .editor-title, 292 | html #edit-markdown .editor-title { 293 | width: calc(100% - 60px); 294 | } 295 | 296 | .editor-layer .editor-top .select-category { 297 | position: absolute; 298 | right: 62px; 299 | top: 0; 300 | transition: all 0.2s ease-in-out; 301 | } 302 | 303 | .editor-layer .editor-top .select-category .dropdown-menu { 304 | min-width: 0; 305 | } 306 | 307 | .editor-layer .text-content { 308 | width: 100%; 309 | height: 350px; 310 | font-size: 12px; 311 | resize: none; 312 | } 313 | 314 | @media (max-width: 768px) { 315 | #memos { 316 | padding: 0 5px; 317 | } 318 | 319 | .memo-container { 320 | padding: 2px; 321 | margin-top: 0; 322 | width: 50%; 323 | } 324 | .editor-layer{ 325 | width: 300px; 326 | transform: translate(-50%,-50%); 327 | } 328 | 329 | 330 | } 331 | 332 | @media (min-width: 768px) and (max-width: 992px) { 333 | .memo-container { 334 | width: 33.3%; 335 | } 336 | } 337 | 338 | @media (min-width: 992px) and (max-width: 1200px) { 339 | .memo-container { 340 | width: 25%; 341 | } 342 | } 343 | 344 | @media (min-width: 1200px) { 345 | .memo-container { 346 | width: 25%; 347 | } 348 | } -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jinyang79/vue-ts-memo/fc6a277f5274701ba38c2e02c27ee9dd06ff5b43/public/favicon.ico -------------------------------------------------------------------------------- /public/imgs/avatar_mini.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jinyang79/vue-ts-memo/fc6a277f5274701ba38c2e02c27ee9dd06ff5b43/public/imgs/avatar_mini.png -------------------------------------------------------------------------------- /public/imgs/icons/icon-cancel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jinyang79/vue-ts-memo/fc6a277f5274701ba38c2e02c27ee9dd06ff5b43/public/imgs/icons/icon-cancel.png -------------------------------------------------------------------------------- /public/imgs/icons/icon-clear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jinyang79/vue-ts-memo/fc6a277f5274701ba38c2e02c27ee9dd06ff5b43/public/imgs/icons/icon-clear.png -------------------------------------------------------------------------------- /public/imgs/icons/icon-delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jinyang79/vue-ts-memo/fc6a277f5274701ba38c2e02c27ee9dd06ff5b43/public/imgs/icons/icon-delete.png -------------------------------------------------------------------------------- /public/imgs/icons/icon-done.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /public/imgs/icons/icon-dropdown.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jinyang79/vue-ts-memo/fc6a277f5274701ba38c2e02c27ee9dd06ff5b43/public/imgs/icons/icon-dropdown.png -------------------------------------------------------------------------------- /public/imgs/icons/icon-edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jinyang79/vue-ts-memo/fc6a277f5274701ba38c2e02c27ee9dd06ff5b43/public/imgs/icons/icon-edit.png -------------------------------------------------------------------------------- /public/imgs/icons/icon-redo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jinyang79/vue-ts-memo/fc6a277f5274701ba38c2e02c27ee9dd06ff5b43/public/imgs/icons/icon-redo.png -------------------------------------------------------------------------------- /public/imgs/icons/icon-save.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jinyang79/vue-ts-memo/fc6a277f5274701ba38c2e02c27ee9dd06ff5b43/public/imgs/icons/icon-save.png -------------------------------------------------------------------------------- /public/imgs/icons/icon-search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jinyang79/vue-ts-memo/fc6a277f5274701ba38c2e02c27ee9dd06ff5b43/public/imgs/icons/icon-search.png -------------------------------------------------------------------------------- /public/imgs/icons/icon-undo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jinyang79/vue-ts-memo/fc6a277f5274701ba38c2e02c27ee9dd06ff5b43/public/imgs/icons/icon-undo.png -------------------------------------------------------------------------------- /public/imgs/pixels.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jinyang79/vue-ts-memo/fc6a277f5274701ba38c2e02c27ee9dd06ff5b43/public/imgs/pixels.png -------------------------------------------------------------------------------- /public/imgs/pixels2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jinyang79/vue-ts-memo/fc6a277f5274701ba38c2e02c27ee9dd06ff5b43/public/imgs/pixels2.png -------------------------------------------------------------------------------- /public/imgs/the-winds-of-winter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jinyang79/vue-ts-memo/fc6a277f5274701ba38c2e02c27ee9dd06ff5b43/public/imgs/the-winds-of-winter.png -------------------------------------------------------------------------------- /public/imgs/vue-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jinyang79/vue-ts-memo/fc6a277f5274701ba38c2e02c27ee9dd06ff5b43/public/imgs/vue-logo.png -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 别忘了📌 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /src/App.vue: -------------------------------------------------------------------------------- 1 | 8 | 9 | 24 | 25 | 27 | -------------------------------------------------------------------------------- /src/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jinyang79/vue-ts-memo/fc6a277f5274701ba38c2e02c27ee9dd06ff5b43/src/assets/logo.png -------------------------------------------------------------------------------- /src/components/ItemList.vue: -------------------------------------------------------------------------------- 1 | 9 | 10 | -------------------------------------------------------------------------------- /src/components/MemoEditor.vue: -------------------------------------------------------------------------------- 1 | 43 | -------------------------------------------------------------------------------- /src/components/MemoItem.vue: -------------------------------------------------------------------------------- 1 | 24 | 25 | -------------------------------------------------------------------------------- /src/components/MenuBar.vue: -------------------------------------------------------------------------------- 1 | 73 | 74 | 100 | -------------------------------------------------------------------------------- /src/main.ts: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import App from './App.vue' 3 | import store from './store' 4 | 5 | Vue.config.productionTip = false 6 | 7 | new Vue({ 8 | render: h => h(App), 9 | store 10 | }).$mount('#app') 11 | -------------------------------------------------------------------------------- /src/model/CateEnum.ts: -------------------------------------------------------------------------------- 1 | enum Category { 2 | Work = 0, 3 | Life = 1, 4 | Study = 2 5 | } 6 | 7 | export default Category; -------------------------------------------------------------------------------- /src/model/ItemData.ts: -------------------------------------------------------------------------------- 1 | import Category from './CateEnum' 2 | 3 | class ItemData { 4 | id!: number; 5 | categoryId!: Category; 6 | title!: string; 7 | content!: string; 8 | createTime!: string; 9 | 10 | constructor(id: number = -1, categoryId: Category = -1, title: string = '', content: string = '') { 11 | this.id = id; 12 | this.categoryId = categoryId; 13 | this.title = title; 14 | this.content = content; 15 | this.createTime = this.toSelfDateStr() 16 | } 17 | 18 | toSelfDateStr(): string { 19 | // 将 时间戳 转换 日期对象 20 | let date = new Date(Date.now()); 21 | // 使用 日期对象 的 getXXX 方法 依次获取 年月日 时分秒,拼接成 想要的格式 22 | let str = date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate() 23 | + ' ' + date.getHours() + ':' + date.getMinutes(); 24 | //3.最后 将 日期字符串 返回 25 | return str; 26 | } 27 | } 28 | 29 | export default ItemData; -------------------------------------------------------------------------------- /src/shims-tsx.d.ts: -------------------------------------------------------------------------------- 1 | import Vue, { VNode } from 'vue' 2 | 3 | declare global { 4 | namespace JSX { 5 | // tslint:disable no-empty-interface 6 | interface Element extends VNode {} 7 | // tslint:disable no-empty-interface 8 | interface ElementClass extends Vue {} 9 | interface IntrinsicElements { 10 | [elem: string]: any 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/shims-vue.d.ts: -------------------------------------------------------------------------------- 1 | declare module '*.vue' { 2 | import Vue from 'vue' 3 | export default Vue 4 | } 5 | -------------------------------------------------------------------------------- /src/store/ActionHelper.ts: -------------------------------------------------------------------------------- 1 | import DataHelper from './DataHelper' 2 | import ItemData from '../model/ItemData' 3 | import Category from '@/model/CateEnum'; 4 | 5 | class ActionHelper { 6 | // 1.负责数据处理 7 | dataHelper: DataHelper = new DataHelper('memoData', 'id'); 8 | // 1.1笔记数组 9 | memoList!: Array; 10 | // 构造函数:读取本地数据,并设置给 成员变量 memoList 11 | constructor() { 12 | //读取本地数据,将 笔记数组 保存 到 this.memoList 变量中 13 | this.memoList = this.readData(); 14 | } 15 | // 读取本地数据,并返回 ItemData类型数组 16 | readData(): Array { 17 | //1.读取 本地 的 Object数组 - dataHelper 18 | let arrObj = this.dataHelper.readData(); 19 | //2.将 Object数组 转成 ItemData数组 20 | let arrItem = arrObj.map((ele: any) => { 21 | let item: ItemData = new ItemData(); 22 | item.id = ele.id; 23 | item.categoryId = ele.categoryId; 24 | item.title = ele.title; 25 | item.content = ele.content; 26 | item.createTime = ele.createTime; 27 | 28 | return item; 29 | }); 30 | 31 | //3.返回itemData数组 32 | return arrItem; 33 | } 34 | 35 | getCategoryName(cateId: Category): string { 36 | const arrName = ['工作', '生活', '学习'] 37 | return arrName[cateId] 38 | } 39 | 40 | add(item: ItemData): number { 41 | item.id = this.dataHelper.addData(item); 42 | this.memoList.push(item); 43 | this.dataHelper.saveData(this.memoList); 44 | return item.id; 45 | 46 | } 47 | 48 | edit(item: ItemData): void { 49 | let editItem: ItemData | undefined = this.memoList.find(ele => { 50 | return ele.id == item.id 51 | }); 52 | if (editItem) { 53 | editItem.categoryId = item.categoryId; 54 | editItem.title = item.title; 55 | editItem.content = item.content; 56 | 57 | //c.将更新后的 数组 重新保存到 本地localstorage 58 | this.dataHelper.saveData(this.memoList); 59 | } 60 | } 61 | 62 | remove(id: number): void { 63 | let index: number = this.memoList.findIndex(ele => { 64 | return ele.id === id; 65 | }) 66 | if (index > -1) { 67 | this.memoList.splice(index, 1); 68 | this.dataHelper.saveData(this.memoList); 69 | } 70 | } 71 | } 72 | 73 | export default ActionHelper -------------------------------------------------------------------------------- /src/store/DataHelper.ts: -------------------------------------------------------------------------------- 1 | // DataHelper类 - 负责 localStorage 操作 2 | class DataHelper { 3 | dataKey: string; 4 | primaryKey: string; 5 | 6 | // 一、构造函数 --作用:为对象 添加 各种属性-------------------------- 7 | constructor(dataKey: string, primaryKey: string) { 8 | this.dataKey = dataKey; 9 | this.primaryKey = primaryKey; 10 | } 11 | 12 | // 1.读取全部数据,返回数组(如果没有读到数据 就返回 空数组)------------ 13 | readData(): any { 14 | //1.读取 本地数据(根据dataKey读取) 15 | let strData: string | null = localStorage.getItem(this.dataKey); 16 | 17 | //2.将 读取的 json数组字符串 转成数组对象 18 | let arrData: any = []; 19 | if (strData != null) { 20 | arrData = JSON.parse(strData); 21 | } 22 | 23 | //3.返回 数组对象 24 | return arrData; 25 | } 26 | 27 | // 2.存入本地数据 ------------------------------------------------- 28 | saveData(arrData: Array): void { 29 | //1.将数组 转成 json字符串 30 | let str: string = JSON.stringify(arrData); 31 | 32 | //2.将字符串 保存到 本地 localStorage 中 33 | localStorage.setItem(this.dataKey, str); 34 | } 35 | 36 | // 3.新增数据--------------------------- 37 | addData(newDataObj: any): number { 38 | let dataArray = this.readData(); 39 | if (dataArray == null) { 40 | dataArray = []; 41 | } 42 | 43 | // 自动生成 主键值 (id 值) 44 | // 如果 数组 长度 > 0,则 将 最后一个 元素的 id 值 取出 + 1 作为 新元素的 id值 45 | // <= 0, 则 将 1 作为 新元素的 id 值 46 | let newId = dataArray.length > 0 ? dataArray[dataArray.length - 1][this.primaryKey] + 1 : 1; 47 | newDataObj[this.primaryKey] = newId; 48 | 49 | // 将添加了 主键值 的 对象 追加到数组 50 | dataArray.push(newDataObj); 51 | 52 | // 将数组 保存到 localStrorage 中 53 | this.saveData(dataArray); 54 | 55 | // 返回添加了 id 的数据对象 56 | return newId; 57 | } 58 | 59 | // 4.删除数据 --------------------------- 60 | removeDataById(id: string | number): boolean { 61 | // 读取本地数组 62 | let arr = this.readData(); 63 | 64 | // 查找要删除 评论对象的 下标,并保存 到本地 65 | let index = arr.findIndex((ele: any) => { 66 | return ele[this.primaryKey] == id; 67 | }); 68 | 69 | // 如果下标 大于-1,则删除数组中该下标元素对象,并返回true 70 | if (index > -1) { 71 | arr.splice(index, 1); 72 | // 保存到本地 73 | this.saveData(arr); 74 | return true; 75 | } 76 | 77 | return false; // 否则 返回 false 78 | } 79 | } 80 | 81 | export default DataHelper; -------------------------------------------------------------------------------- /src/store/index.ts: -------------------------------------------------------------------------------- 1 | import Vuex from 'vuex' 2 | import Vue from 'vue' 3 | import ActionHelper from './ActionHelper'; 4 | 5 | Vue.use(Vuex) 6 | 7 | let store = new Vuex.Store({ 8 | state: { 9 | isShow: false, 10 | aHelper: new ActionHelper(), 11 | transMemo: null, 12 | filterCateId: -1 13 | }, 14 | mutations: { 15 | showEditMemo(state: any, editMemo: any) { 16 | state.transMemo = editMemo; 17 | state.isShow = true; 18 | } 19 | } 20 | }); 21 | 22 | export default store; -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "esnext", 4 | "module": "esnext", 5 | "strict": true, 6 | "jsx": "preserve", 7 | "importHelpers": true, 8 | "moduleResolution": "node", 9 | "experimentalDecorators": true, 10 | "allowJs": true, 11 | "esModuleInterop": true, 12 | "allowSyntheticDefaultImports": true, 13 | "sourceMap": true, 14 | "baseUrl": ".", 15 | "types": [ 16 | "webpack-env" 17 | ], 18 | "paths": { 19 | "@/*": [ 20 | "src/*" 21 | ] 22 | }, 23 | "lib": [ 24 | "esnext", 25 | "dom", 26 | "dom.iterable", 27 | "scripthost" 28 | ] 29 | }, 30 | "include": [ 31 | "src/**/*.ts", 32 | "src/**/*.tsx", 33 | "src/**/*.vue", 34 | "tests/**/*.ts", 35 | "tests/**/*.tsx" 36 | ], 37 | "exclude": [ 38 | "node_modules" 39 | ] 40 | } 41 | -------------------------------------------------------------------------------- /vue.config.js: -------------------------------------------------------------------------------- 1 | const path = require("path"); 2 | module.exports = { 3 | // 基本路径 4 | publicPath: "./", 5 | } --------------------------------------------------------------------------------