Repository: ihanyang/cnode-vue Branch: master Commit: ef1bd20d8480 Files: 55 Total size: 343.9 KB Directory structure: gitextract_vz4i84j0/ ├── .babelrc ├── .gitignore ├── LICENSE ├── README.md ├── dist/ │ ├── app.js │ ├── commons.js │ ├── index.html │ ├── mobile.css │ └── vendors.js ├── index.tpl ├── package.json ├── server.js ├── src/ │ ├── api.js │ ├── app.js │ ├── app.vue │ ├── components/ │ │ ├── item.vue │ │ ├── loading.vue │ │ ├── message-default.vue │ │ ├── modal.vue │ │ ├── nickname.vue │ │ ├── no-data.vue │ │ ├── read.vue │ │ ├── slide.vue │ │ ├── tips.vue │ │ └── unread.vue │ ├── css/ │ │ ├── about.css │ │ ├── app.css │ │ ├── common.css │ │ ├── home.css │ │ ├── layout-box.css │ │ ├── layout.css │ │ ├── message.css │ │ ├── normalize.css │ │ ├── post.css │ │ ├── profile.css │ │ ├── recent.css │ │ └── topic.css │ ├── directives.js │ ├── filters.js │ ├── router/ │ │ └── index.js │ ├── utils/ │ │ └── index.js │ ├── views/ │ │ ├── about.vue │ │ ├── home.vue │ │ ├── login.vue │ │ ├── message.vue │ │ ├── post.vue │ │ ├── profile.vue │ │ ├── recent_reply.vue │ │ ├── recent_topic.vue │ │ ├── tail.vue │ │ └── topic.vue │ └── vuex/ │ ├── actions.js │ ├── getters.js │ └── store.js └── webpack.config.babel.js ================================================ FILE CONTENTS ================================================ ================================================ FILE: .babelrc ================================================ { "presets": [ "es2015", "es2017" ], "plugins": ["transform-runtime", "transform-object-rest-spread"] } ================================================ FILE: .gitignore ================================================ .DS_Store node_modules/ #dist/ npm-debug.log ================================================ FILE: LICENSE ================================================ The MIT License (MIT) Copyright (c) 2013-2016 Yuxi Evan You Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ================================================ FILE: README.md ================================================ # cnode-vue > Vue版 cnodejs.org社区 WebApp [线上访问](https://hanyang.me/cnode) ## Build Setup ``` bash # clone repo git clone git@github.com:ihanyang/cnode-vue.git # install dependencies npm install # build for production npm run build ``` ## 目录结构 ``` ├── dist // 输出目录 ├── node_modules // Node.js 模块 ├── src // 源码 │ ├── components // 组件目录 │ ├── css // css 目录 │ ├── images // 图片目录 │ ├── router // 路由 │ ├── utils // 工具目录 │ ├── font // icon 目录 │ ├── views // 视图 │ ├── vuex // vuex 目录 │ ├── api.js // api.js │ ├── app.js // 项目入口 │ ├── app.vue // 根组件 ├── static // 项目截图 ├── .babelrc // babel 配置文件 ├── .gitignore // git 忽略文件 ├── index.tpl // 项目模板 ├── package.json // 项目配置文件 ├── README.md // 项目说明 └── server.js // Node.js 服务 └── webpack.config.babel.js // webpack 配置文件 ``` # Screenshots ![screenshot](https://github.com/ihanyang/cnode-vue/blob/master/static/screenshot-1.gif) ![screenshot](https://github.com/ihanyang/cnode-vue/blob/master/static/screenshot-2.png) ================================================ FILE: dist/app.js ================================================ /*! * This file is created by hanyang * updated_at: Tue, 20 Dec 2016 02:42:34 GMT */ webpackJsonp([1],[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var o=n(91),i=r(o);n(144),n(140),n(139),n(141),n(145),n(142),n(143);var a=n(24),s=r(a),c=n(81),u=r(c),l=n(148),f=r(l),p=n(83),d=r(p);new s.default((0,i.default)({el:"#app",store:d.default,router:u.default},f.default))},function(t,e,n){var r=n(37)("wks"),o=n(28),i=n(2).Symbol,a="function"==typeof i,s=t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))};s.store=r},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){var n=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(10),o=n(48),i=n(41),a=Object.defineProperty;e.f=n(5)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){t.exports=!n(19)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.post=e.getMessageCount=e.getMessages=e.getProfile=e.reply=e.like=e.collect=e.login=e.getTopic=e.getList=void 0;var o=n(9),i=r(o),a=n(8),s=r(a),c=n(138);r(c);n(184);e.getList=function(){var t=(0,s.default)(i.default.mark(function t(e,n){var r;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch("https://cnodejs.org/api/v1/topics?page="+e+"&limit=20&tab="+n,{mode:"cors"}).catch(function(t){console.log(t)});case 2:return r=t.sent,t.next=5,r.json().catch(function(t){console.log(t)});case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}},t,void 0)}));return function(e,n){return t.apply(this,arguments)}}(),e.getTopic=function(){var t=(0,s.default)(i.default.mark(function t(e){var n;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch("https://cnodejs.org/api/v1/topic/"+e,{mode:"cors"}).catch(function(t){console.log(t)});case 2:return n=t.sent,t.next=5,n.json().catch(function(t){console.log(t)});case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}},t,void 0)}));return function(e){return t.apply(this,arguments)}}(),e.login=function(){var t=(0,s.default)(i.default.mark(function t(e){var n;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch("https://cnodejs.org/api/v1/accesstoken ",{method:"POST",mode:"cors",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"accesstoken="+e}).catch(function(t){console.log(t)});case 2:return n=t.sent,t.next=5,n.json().catch(function(t){console.log(t)});case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}},t,void 0)}));return function(e){return t.apply(this,arguments)}}(),e.collect=function(){var t=(0,s.default)(i.default.mark(function t(e){var n;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch("https://cnodejs.org/api/v1/topic_collect/collect ",{method:"POST",mode:"cors",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:e}).catch(function(t){console.log(t)});case 2:return n=t.sent,t.next=5,n.json().catch(function(t){console.log(t)});case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}},t,void 0)}));return function(e){return t.apply(this,arguments)}}(),e.like=function(){var t=(0,s.default)(i.default.mark(function t(e,n){var r;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch("https://cnodejs.org/api/v1/reply/"+e+"/ups",{method:"POST",mode:"cors",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"accesstoken="+n}).catch(function(t){console.log(t)});case 2:return r=t.sent,t.next=5,r.json().catch(function(t){console.log(t)});case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}},t,void 0)}));return function(e,n){return t.apply(this,arguments)}}(),e.reply=function(){var t=(0,s.default)(i.default.mark(function t(e,n,r,o){var a,s;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a=o?"accesstoken="+e+"&content="+r+"&reply_id="+o:"accesstoken="+e+"&content="+r,t.next=3,fetch("https://cnodejs.org/api/v1/topic/"+n+"/replies",{method:"POST",mode:"cors",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:a}).catch(function(t){console.log(t)});case 3:return s=t.sent,t.next=6,s.json().catch(function(t){console.log(t)});case 6:return t.abrupt("return",t.sent);case 7:case"end":return t.stop()}},t,void 0)}));return function(e,n,r,o){return t.apply(this,arguments)}}(),e.getProfile=function(){var t=(0,s.default)(i.default.mark(function t(e){var n;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch("https://cnodejs.org/api/v1/user/"+e,{mode:"cors"}).catch(function(t){console.log(t)});case 2:return n=t.sent,t.next=5,n.json().catch(function(t){console.log(t)});case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}},t,void 0)}));return function(e){return t.apply(this,arguments)}}(),e.getMessages=function(){var t=(0,s.default)(i.default.mark(function t(e){var n;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch("https://cnodejs.org/api/v1/messages?accesstoken="+e,{mode:"cors"}).catch(function(t){console.log(t)});case 2:return n=t.sent,t.next=5,n.json().catch(function(t){console.log(t)});case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}},t,void 0)}));return function(e){return t.apply(this,arguments)}}(),e.getMessageCount=function(){var t=(0,s.default)(i.default.mark(function t(e){var n;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch("https://cnodejs.org/api/v1/message/count?accesstoken="+e,{mode:"cors"}).catch(function(t){console.log(t)});case 2:return n=t.sent,t.next=5,n.json().catch(function(t){console.log(t)});case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}},t,void 0)}));return function(e){return t.apply(this,arguments)}}(),e.post=function(){var t=(0,s.default)(i.default.mark(function t(e){var n,r=e.token,o=e.title,a=e.tab,s=e.content;return i.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch("https://cnodejs.org/api/v1/topics",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},mode:"cors",body:"accesstoken="+r+"&title="+o+"&tab="+a+"&content="+s}).catch(function(t){console.log(t)});case 2:return n=t.sent,t.next=5,n.json().catch(function(t){console.log(t)});case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}},t,void 0)}));return function(e){return t.apply(this,arguments)}}()},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.timeFormat=function(t){var e=+new Date-+new Date(t),n=~~(e/864e5),r=~~(e/36e5),o=~~(e/6e4),i=~~(e/1e3),a=e;return n?t.split("T")[0]:r?r+" 小时前":o?o+" 分钟前":i?i&&i<10?"刚刚":i+" 秒前":a?"刚刚":void 0},e.ISOTimeFormat=function(t){var e=new Date(t),n=e.getUTCFullYear(),r=e.getUTCMonth()<10?"0"+(e.getUTCMonth()+1):e.getUTCMonth()+1,o=e.getUTCDate()<10?"0"+e.getUTCDate():e.getUTCDate(),i=e.getUTCHours()<10?"0"+e.getUTCHours():e.getUTCHours(),a=e.getUTCMinutes()<10?"0"+e.getUTCMinutes():e.getUTCMinutes(),s=e.getUTCSeconds()<10?"0"+e.getUTCSeconds():e.getUTCSeconds(),c=e.getUTCMilliseconds()<10?"0"+e.getUTCMilliseconds():e.getUTCMilliseconds();return n+"-"+r+"-"+o+"T"+i+":"+a+":"+s+"."+c+"Z"}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(87),i=r(o);e.default=function(t){return function(){var e=t.apply(this,arguments);return new i.default(function(t,n){function r(o,a){try{var s=e[o](a),c=s.value}catch(t){return void n(t)}return s.done?void t(c):i.default.resolve(c).then(function(t){r("next",t)},function(t){r("throw",t)})}return r("next")})}}},function(t,e,n){t.exports=n(146)},function(t,e,n){var r=n(20);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(4),o=n(23);t.exports=n(5)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(49),o=n(32);t.exports=function(t){return r(o(t))}},function(t,e){t.exports=function(){var t=[];return t.toString=function(){for(var t=[],e=0;e=0&&g.splice(e,1)}function s(t){var e=document.createElement("style");return e.type="text/css",i(t,e),e}function c(t,e){var n,r,o;if(e.singleton){var i=m++;n=v||(v=s(e)),r=u.bind(null,n,i,!1),o=u.bind(null,n,i,!0)}else n=s(e),r=l.bind(null,n),o=function(){a(n)};return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else o()}}function u(t,e,n,r){var o=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=y(e,o);else{var i=document.createTextNode(o),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(i,a[e]):t.appendChild(i)}}function l(t,e){var n=e.css,r=e.media,o=e.sourceMap;if(r&&t.setAttribute("media",r),o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}var f={},p=function(t){var e;return function(){return"undefined"==typeof e&&(e=t.apply(this,arguments)),e}},d=p(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),h=p(function(){return document.head||document.getElementsByTagName("head")[0]}),v=null,m=0,g=[];t.exports=function(t,e){e=e||{},"undefined"==typeof e.singleton&&(e.singleton=d()),"undefined"==typeof e.insertAt&&(e.insertAt="bottom");var n=o(t);return r(n,e),function(t){for(var i=[],a=0;a0?r:n)(t)}},function(t,e,n){var r=n(38),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(32);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(20);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(2),o=n(3),i=n(25),a=n(43),s=n(4).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},function(t,e,n){e.f=n(1)},function(t,e,n){"use strict";var r=n(121)(!0);n(52)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){var r,o;r=n(68);var i=n(171);o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(o=r=r.default),"function"==typeof o&&(o=o.options),o.render=i.render,o.staticRenderFns=i.staticRenderFns,t.exports=r},function(t,e,n){var r=n(17),o=n(1)("toStringTag"),i="Arguments"==r(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),o))?n:i?r(e):"Object"==(s=r(e))&&"function"==typeof e.callee?"Arguments":s}},function(t,e,n){t.exports=n(2).document&&document.documentElement},function(t,e,n){t.exports=!n(5)&&!n(19)(function(){return 7!=Object.defineProperty(n(33)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(17);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){var r=n(21),o=n(1)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},function(t,e,n){var r=n(10);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},function(t,e,n){"use strict";var r=n(25),o=n(16),i=n(57),a=n(12),s=n(11),c=n(21),u=n(108),l=n(27),f=n(117),p=n(1)("iterator"),d=!([].keys&&"next"in[].keys()),h="@@iterator",v="keys",m="values",g=function(){return this};t.exports=function(t,e,n,y,b,_,w){u(n,e,y);var x,k,C,j=function(t){if(!d&&t in O)return O[t];switch(t){case v:return function(){return new n(this,t)};case m:return function(){return new n(this,t)}}return function(){return new n(this,t)}},S=e+" Iterator",T=b==m,P=!1,O=t.prototype,E=O[p]||O[h]||b&&O[b],M=E||j(b),F=b?T?j("entries"):M:void 0,R="Array"==e?O.entries||E:E;if(R&&(C=f(R.call(new t)),C!==Object.prototype&&(l(C,S,!0),r||s(C,p)||a(C,p,g))),T&&E&&E.name!==m&&(P=!0,M=function(){return E.call(this)}),r&&!w||!d&&!P&&O[p]||a(O,p,M),c[e]=M,c[S]=g,b)if(x={values:T?M:j(m),keys:_?M:j(v),entries:F},w)for(k in x)k in O||i(O,k,x[k]);else o(o.P+o.F*(d||P),e,x);return x}},function(t,e,n){var r=n(1)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i=[7],a=i[r]();a.next=function(){return{done:n=!0}},i[r]=function(){return a},t(i)}catch(t){}return n}},function(t,e,n){var r=n(10),o=n(114),i=n(34),a=n(36)("IE_PROTO"),s=function(){},c="prototype",u=function(){var t,e=n(33)("iframe"),r=i.length,o="<",a=">";for(e.style.display="none",n(47).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(o+"script"+a+"document.F=Object"+o+"/script"+a),t.close(),u=t.F;r--;)delete u[c][i[r]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(s[c]=r(t),n=new s,s[c]=null,n[a]=t):n=u(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(56),o=n(34).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(11),o=n(13),i=n(102)(!1),a=n(36)("IE_PROTO");t.exports=function(t,e){var n,s=o(t),c=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);for(;e.length>c;)r(s,n=e[c++])&&(~i(u,n)||u.push(n));return u}},function(t,e,n){t.exports=n(12)},function(t,e,n){var r,o,i,a=n(18),s=n(106),c=n(47),u=n(33),l=n(2),f=l.process,p=l.setImmediate,d=l.clearImmediate,h=l.MessageChannel,v=0,m={},g="onreadystatechange",y=function(){var t=+this;if(m.hasOwnProperty(t)){var e=m[t];delete m[t],e()}},b=function(t){y.call(t.data)};p&&d||(p=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return m[++v]=function(){s("function"==typeof t?t:Function(t),e)},r(v),v},d=function(t){delete m[t]},"process"==n(17)(f)?r=function(t){f.nextTick(a(y,t,1))}:h?(o=new h,i=o.port2,o.port1.onmessage=b,r=a(i.postMessage,i,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(t){l.postMessage(t+"","*")},l.addEventListener("message",b,!1)):r=g in u("script")?function(t){c.appendChild(u("script"))[g]=function(){c.removeChild(this),y.call(t)}}:function(t){setTimeout(a(y,t,1),0)}),t.exports={set:p,clear:d}},function(t,e,n){var r=n(46),o=n(1)("iterator"),i=n(21);t.exports=n(3).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,e){},function(t,e,n){n(124);for(var r=n(2),o=n(12),i=n(21),a=n(1)("toStringTag"),s=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],c=0;c<5;c++){var u=s[c],l=r[u],f=l&&l.prototype;f&&!f[a]&&o(f,a,u),i[u]=i.Array}},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(t){if(l===setTimeout)return setTimeout(t,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(t,0);try{return l(t,0)}catch(e){try{return l.call(null,t,0)}catch(e){return l.call(this,t,0)}}}function i(t){if(f===clearTimeout)return clearTimeout(t);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(t);try{return f(t)}catch(e){try{return f.call(null,t)}catch(e){return f.call(this,t)}}}function a(){v&&d&&(v=!1,d.length?h=d.concat(h):m=-1,h.length&&s())}function s(){if(!v){var t=o(a);v=!0;for(var e=h.length;e;){for(d=h,h=[];++m1)for(var n=1;nhttps://github.com/ihanyang/cnode-vue"},{title:"Issues",content:"https://github.com/ihanyang/cnode-vue/issues"},{title:"当前进度",content:"已完成"}]}}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(92),i=r(o),a=n(84),s=r(a),c=n(9),u=r(c),l=n(8),f=r(l),p=n(6),d=n(7),h=n(45),v=r(h),m=n(150),g=r(m),y=n(29),b=r(y);e.default={data:function(){return{count:0,message:"",page:1,locked:!1,loading:!0,show:!1,actived:!1,list:[],$items:[],itemss:[],tags:[{tag:"all",text:"全部"},{tag:"good",text:"精华"},{tag:"share",text:"分享"},{tag:"ask",text:"问答"},{tag:"job",text:"招聘"}],tag:localStorage.getItem("tag")?localStorage.getItem("tag"):"all",tagText:localStorage.getItem("tagText")?localStorage.getItem("tagText"):"全部"}},beforeRouteEnter:function(t,e,n){n(function(t){t.appearMessage&&t.getMessageCount(),window.addEventListener("scroll",t.scroll,!1)})},beforeRouteLeave:function(t,e,n){this.show=!1,window.removeEventListener("scroll",this.scroll,!1),n()},components:{tips:b.default,slide:g.default,loading:v.default},computed:{appearMessage:function(){return!!this.$store.state.accesstoken},height:function(){return window.innerHeight+"px"}},filters:{timeFormat:function(t){return(0,d.timeFormat)(t)},textFormat:function(t){var e=void 0,n={share:"分享",ask:"问答",job:"招聘"};return t?e=n[t]:"暂无"}},methods:{getMessageCount:function(){var t=this;return(0,f.default)(u.default.mark(function e(){var n;return u.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,p.getMessageCount)(t.$store.state.accesstoken);case 2:n=e.sent,n.data&&(t.actived=!0);case 4:case"end":return e.stop()}},e,t)}))()},getList:function(){var t=this;return(0,f.default)(u.default.mark(function e(){var n;return u.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,p.getList)(t.page,t.tag);case 2:n=e.sent,t.list=t.list.concat(n.data),t.locked=!1,t.loading=!1,t.forLazy();case 7:case"end":return e.stop()}},e,t)}))()},forLazy:function(){var t=this;this.$nextTick(function(){t.$items=(0,s.default)(document.querySelectorAll(".item"),function(t){return{item:t,url:t.dataset.url,position:t.getBoundingClientRect().top}}),t.lazy()})},lazy:function(){var t=this;this.$items=this.$items.filter(function(e){var n=e.item.getBoundingClientRect().top,r=e.item.getBoundingClientRect().height;if(n>=0&&n<=window.innerHeight+r){var o=function(){var n=new Image;return n.src=e.url,n.onload=function(){t.itemss.push(e.item.dataset.id),e.item.removeAttribute("data-src"),e.item.removeAttribute("data-id"),n.onload=null},{v:!1}}();if("object"===("undefined"==typeof o?"undefined":(0,i.default)(o)))return o.v}return!0})},showSlideNav:function(){this.show=!0},hideSlideNav:function(){this.show=!1,document.body.classList.remove("show")},switchTag:function(t){this.tag=this.tags[t].tag,this.tagText=this.tags[t].text,this.loading=!0,this.page=1,this.list=[],this.getList(),localStorage.setItem("tag",this.tag),localStorage.setItem("tagText",this.tagText)},touchmove:function(t){t.preventDefault()},loadMore:function(){this.page++,this.getList()},scroll:function(){this.$items.length&&this.lazy(),window.pageYOffset/(document.documentElement.scrollHeight-window.innerHeight)>=.7&&(this.locked||(this.locked=!0,this.loadMore()))},backTop:function(){var t=document.scrollingElement||document.body;t.scrollTop=0},share:function(t){"undefined"!=typeof navigator.share?navigator.share({title:"Vue.js 版 cnode.org 社区",url:"https://hanyang.me/cnode/topic/"+t}):this.message="分享功能暂只支持手机版 chrome 55"}},mounted:function(){this.getList()}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(9),i=r(o),a=n(30),s=r(a),c=n(8),u=r(c),l=n(6),f=n(29),p=r(f);e.default={data:function(){return{token:"",message:""}},components:{tips:p.default},methods:{loginValidate:function(){this.token&&this.login()},login:function(){var t=this;return(0,u.default)(i.default.mark(function e(){var n,r;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,l.login)(t.token);case 2:if(n=e.sent,r=t.$route.query.redirect,!n.success){e.next=14;break}return n.token=t.token,n.tail='

来自吊吊的 cnode-vue

',localStorage.setItem("user",(0,s.default)({id:n.id,avatar:n.avatar_url,nickname:n.loginname,accesstoken:n.token,tail:n.tail})),t.$store.commit("tail",n.tail),t.$store.commit("avatar",n.avatar_url),t.$store.commit("nickname",n.loginname),t.$store.commit("accesstoken",n.token),r?t.$router.push(r):t.$router.go(-1),e.abrupt("return");case 14:n.success||(t.message=n.error_msg);case 15:case"end":return e.stop()}},e,t)}))()}}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(9),i=r(o),a=n(8),s=r(a),c=n(6),u=n(7),l=n(63),f=r(l),p=n(45),d=r(p),h=n(149),v=r(h);e.default={data:function(){return{list:[],type:"已读消息",loading:!0,noMessage:!1}},beforeRouteEnter:function(t,e,n){n(function(t){t.getMessages()})},filters:{timeFormat:function(t){return(0,u.timeFormat)(t)}},components:{item:f.default,noData:v.default,loading:d.default},methods:{messageSwitch:function(){this.type="已读消息"===this.type?"未读消息":"已读消息",this.list=[],this.loading=!0,this.getMessages()},getMessages:function(){var t=this;return(0,s.default)(i.default.mark(function e(){var n,r;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.$store.state.accesstoken,e.next=3,(0,c.getMessages)(n);case 3:r=e.sent,t.list="已读消息"===t.type?r.data.has_read_messages:r.data.hasnot_read_messages,t.loading=!1,t.noMessage=!t.list.length;case 7:case"end":return e.stop()}},e,t)}))()}}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(9),i=r(o),a=n(8),s=r(a),c=n(6),u=(n(7),n(29)),l=r(u);e.default={data:function(){return{title:"",tag:"问答",content:"",count:0,show:!1,message:"",tags:["问答","分享","招聘"]}},computed:{postStatus:function(){return!!this.title&&this.title.length>=10&&!!this.content}},components:{tips:l.default},beforeRouteLeave:function(t,e,n){this.tag="问答",this.title="",this.content="",n()},methods:{selectTag:function(){this.show=!0},hideTag:function(t){this.show=!1,this.tag=t},toPost:function(t){t.ctrlKey&&this.post()},post:function(){var t=this;return(0,s.default)(i.default.mark(function e(){var n,r;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.title&&t.content){e.next=2;break}return e.abrupt("return");case 2:if(!(t.title.length<10)){e.next=5;break}return t.message="标题至少需要10个字",e.abrupt("return");case 5:return n={"问答":"ask","分享":"share","招聘":"job"},e.next=8,(0,c.post)({token:t.$store.state.accesstoken,title:t.title,tab:n[t.tag],content:t.content});case 8:r=e.sent,r.success&&(location.href="/cnode"),r.success||(t.message="发布失败,等会再试试吧");case 11:case"end":return e.stop()}},e,t)}))()}}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(9),i=r(o),a=n(30),s=r(a),c=n(8),u=r(c),l=n(90),f=r(l),p=n(6);e.default={data:function(){var t;return t={score:0,replyCount:0,postCount:0,items:["最新发布","最近回复"]},(0,f.default)(t,"items",[{path:"/recent_topic",text:"最近发布"},{path:"/recent_reply",text:"最近回复"}]),(0,f.default)(t,"definition",[{path:"/tail",text:"我的小尾巴"}]),t},created:function(){this.getProfile()},computed:{tail:function(){return this.$store.state.tail},avatar:function(){return this.$store.state.avatar},nickname:function(){return this.$store.state.nickname}},methods:{back:function(){this.$router.go(-1)},getProfile:function(){var t=this;return(0,u.default)(i.default.mark(function e(){var n;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2, (0,p.getProfile)(t.nickname);case 2:n=e.sent,t.score=n.data.score,t.replyCount=n.data.recent_replies.length,t.postCount=n.data.recent_topics.length,localStorage.setItem("topic",(0,s.default)(n.data.recent_topics)),localStorage.setItem("reply",(0,s.default)(n.data.recent_replies));case 8:case"end":return e.stop()}},e,t)}))()},logout:function(){localStorage.clear(),location.href="/"}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(7);e.default={data:function(){return{list:[]}},filters:{timeFormat:function(t){return(0,r.timeFormat)(t)}},created:function(){this.getMessages()},methods:{getMessages:function(){this.list=JSON.parse(localStorage.getItem("reply"))}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(7);e.default={data:function(){return{list:[]}},filters:{timeFormat:function(t){return(0,r.timeFormat)(t)}},created:function(){this.getMessages()},methods:{getMessages:function(){this.list=JSON.parse(localStorage.getItem("topic"))}}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(30),i=r(o),a=n(29),s=r(a);e.default={data:function(){return{tail:"",message:""}},route:{canActivate:function(t){return!!localStorage.getItem("user")||(t.redirect("/login?redirect=/tail"),!1)}},components:{tips:s.default},methods:{back:function(){this.$router.go(-1)},resetTail:function(){if(!this.tail)return void(this.message="尾巴不能木有啊");var t=JSON.parse(localStorage.getItem("user"));t.tail=this.tail,localStorage.setItem("user",(0,i.default)(t)),this.$store.commit("tail",t.tail),this.tail="",this.back()}}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(9),i=r(o),a=n(8),s=r(a),c=n(24),u=r(c),l=n(6),f=n(7),p=n(45),d=r(p),h=n(63),v=r(h),m=n(82);e.default={data:function(){return{loading:!0,topic:{author:{loginname:"",avatar_url:""},replies:[]},replyContent:"",isCollect:!1,replyState:!1}},components:{item:v.default,loading:d.default},beforeRouteEnter:function(t,e,n){n(function(t){t.topic={author:{loginname:"",avatar_url:""},replies:[]},t.loading=!0,t.getTopic()})},beforeRouteLeave:function(t,e,n){document.title=this.$title,n()},computed:{userID:function(){return localStorage.getItem("user")&&JSON.parse(localStorage.getItem("user")).id},loginState:function(){return!!this.$store.state.accesstoken},avatar:function(){return this.$store.state.avatar},nickname:function(){return this.$store.state.nickname},accesstoken:function(){return this.$store.state.accesstoken}},filters:{textFormat:function(t){return t+"条评论"},timeFormat:function(t){return(0,f.timeFormat)(t)}},methods:{getTopic:function(){var t=this;return(0,s.default)(i.default.mark(function e(){var n;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,l.getTopic)(t.$route.params.topicId);case 2:n=e.sent,t.topic=n.data,t.isCollect=n.data.is_collect,t.$title=document.title,document.title=n.data.title,t.loading=!1,t.$nextTick(function(){t.$route.hash&&t.$refs.reply.scrollIntoView()});case 9:case"end":return e.stop()}},e,t)}))()},like:function(t,e){var n=this;return(0,s.default)(i.default.mark(function r(){var o,a;return i.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return o=n.accesstoken,r.next=3,(0,l.like)(t,o);case 3:if(a=r.sent,!a.success||"up"!==a.action){r.next=7;break}return e.ups.push(n.userID),r.abrupt("return");case 7:if(!a.success||"down"!==a.action){r.next=10;break}return e.ups.splice(e.ups.indexOf(n.userID),1),r.abrupt("return");case 10:case"end":return r.stop()}},r,n)}))()},collect:function(){var t=this;return(0,s.default)(i.default.mark(function e(){var n,r;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n={accesstoken:t.$store.state.accesstoken,topic_id:t.$route.params.topicId},e.next=3,(0,l.collect)((0,m.serialize)(n));case 3:r=e.sent,r.success&&(t.isCollect=!0);case 5:case"end":return e.stop()}},e,t)}))()},toReply:function(){if(this.replyContent){var t=JSON.parse(localStorage.getItem("user")).tail,e=this.replyContent+"

"+t;this.reply(e)}},toSubReply:function(t){if(t.replyContent){var e='@'+t.author.loginname+"",n=(t.replyContent,e+" "+t.replyContent+"

"+this.user.tail);this.reply(n,t)}},reply:function(t,e){var n=this;return(0,s.default)(i.default.mark(function r(){var o,a,s,c,u,p;return i.default.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(o=n.$store.state,a=o.avatar,s=o.nickname,c=o.accesstoken,n.topic.replies.push({author:{loginname:s,avatar_url:a},create_at:(0,f.ISOTimeFormat)(+new Date),content:'
'+t+"
",ups:[]}),e){r.next=10;break}return n.replyContent="",n.replyState=!1,n.$refs.commentInput.blur(),r.next=8,(0,l.reply)(c,n.$route.params.topicId,t);case 8:return u=r.sent,r.abrupt("return");case 10:return e.replyContent="",e.replyState=!1,r.next=14,(0,l.reply)(c,n.$route.params.topicId,t,e.id);case 14:p=r.sent;case 15:case"end":return r.stop()}},r,n)}))()},forLike:function(){this.$router.push("/login")},del:function(){alert("点啥点,点了也木有用~~")},subReply:function(t){console.log(t),u.default.set(t,"replyState",!0),u.default.set(t,"replyContent","")}}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(152),i=r(o),a=n(160),s=r(a),c=n(153),u=r(c),l=n(154),f=r(l),p=n(155),d=r(p),h=n(156),v=r(h),m=n(158),g=r(m),y=n(157),b=r(y),_=n(159),w=r(_),x=n(151),k=r(x),C=n(24),j=r(C),S=n(64),T=r(S);j.default.use(T.default);var P="history",O="/cnode",E=[{path:"/",component:i.default},{path:"/topic/:topicId",component:s.default},{path:"/login",component:u.default},{path:"/message",component:f.default,beforeEnter:function(t,e,n){localStorage.getItem("user")?n():n("/login")}},{path:"/post",component:d.default,beforeEnter:function(t,e,n){localStorage.getItem("user")?n():n("/login?redirect=post")}},{path:"/tail",component:w.default},{path:"/profile",component:v.default,beforeEnter:function(t,e,n){localStorage.getItem("user")?n():n("/login?redirect=profile")}},{path:"/recent_topic",component:g.default,beforeEnter:function(t,e,n){localStorage.getItem("user")?n():n("/login?redirect=profile")}},{path:"/recent_reply",component:b.default,beforeEnter:function(t,e,n){localStorage.getItem("user")?n():n("/login?redirect=profile")}},{path:"/about",component:k.default},{path:"*",redirect:"/"}];e.default=new T.default({mode:P,base:O,routes:E,scrollBehavior:function(t,e,n){return n?n:t.hash?{selector:t.hash}:{y:0}}})},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.serialize=function(t){var e="";for(var n in t)e+=n+"="+t[n]+"&";return e=e.slice(0,-1)},e.getURLParams=function(){var t=location.search.slice(1),e=t.split("&"),n={};return e.forEach(function(t,e){var r=t.split("=")[0],o=t.split("=")[1];n[r]=o}),n}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(24),i=r(o),a=n(65),s=r(a);i.default.use(s.default);var c={};localStorage.getItem("user")&&(c=JSON.parse(localStorage.getItem("user")));var u={tail:c.tail||"",avatar:c.avatar||"",nickname:c.nickname||"",accesstoken:c.accesstoken||""},l={accesstoken:function(t,e){t.accesstoken=e},nickname:function(t,e){t.nickname=e},avatar:function(t,e){t.avatar=e},tail:function(t,e){t.tail=e}},f={accesstoken:function(t){return t.accesstoken},tail:function(t){return t.tail},avatar:function(t){return t.avatar},nickname:function(t){return t.nickname}};e.default=new s.default.Store({state:u,getters:f,mutations:l})},function(t,e,n){t.exports={default:n(93),__esModule:!0}},function(t,e,n){t.exports={default:n(95),__esModule:!0}},function(t,e,n){t.exports={default:n(96),__esModule:!0}},function(t,e,n){t.exports={default:n(97),__esModule:!0}},function(t,e,n){t.exports={default:n(98),__esModule:!0}},function(t,e,n){t.exports={default:n(99),__esModule:!0}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(86),i=r(o);e.default=function(t,e,n){return e in t?(0,i.default)(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(85),i=r(o);e.default=i.default||function(t){for(var e=1;el;)if(s=c[l++],s!=s)return!0}else for(;u>l;l++)if((t||l in c)&&c[l]===n)return t||l||0;return!t&&-1}}},function(t,e,n){"use strict";var r=n(4),o=n(23);t.exports=function(t,e,n){e in t?r.f(t,e,o(0,n)):t[e]=n}},function(t,e,n){var r=n(22),o=n(35),i=n(26);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var a,s=n(t),c=i.f,u=0;s.length>u;)c.call(t,a=s[u++])&&e.push(a);return e}},function(t,e,n){var r=n(18),o=n(51),i=n(50),a=n(10),s=n(39),c=n(59),u={},l={},e=t.exports=function(t,e,n,f,p){var d,h,v,m,g=p?function(){return t}:c(t),y=r(n,f,e?2:1),b=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(i(g)){for(d=s(t.length);d>b;b++)if(m=e?y(a(h=t[b])[0],h[1]):y(t[b]),m===u||m===l)return m}else for(v=g.call(t);!(h=v.next()).done;)if(m=o(v,y,h.value,e),m===u||m===l)return m};e.BREAK=u,e.RETURN=l},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(17);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){"use strict";var r=n(54),o=n(23),i=n(27),a={};n(12)(a,n(1)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){var r=n(22),o=n(13);t.exports=function(t,e){for(var n,i=o(t),a=r(i),s=a.length,c=0;s>c;)if(i[n=a[c++]]===e)return n}},function(t,e,n){var r=n(28)("meta"),o=n(20),i=n(11),a=n(4).f,s=0,c=Object.isExtensible||function(){return!0},u=!n(19)(function(){return c(Object.preventExtensions({}))}),l=function(t){a(t,r,{value:{i:"O"+ ++s,w:{}}})},f=function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!c(t))return"F";if(!e)return"E";l(t)}return t[r].i},p=function(t,e){if(!i(t,r)){if(!c(t))return!0;if(!e)return!1;l(t)}return t[r].w},d=function(t){return u&&h.NEED&&c(t)&&!i(t,r)&&l(t),t},h=t.exports={KEY:r,NEED:!1,fastKey:f,getWeak:p,onFreeze:d}},function(t,e,n){var r=n(2),o=n(58).set,i=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,c="process"==n(17)(a);t.exports=function(){var t,e,n,u=function(){var r,o;for(c&&(r=a.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(c)n=function(){a.nextTick(u)};else if(i){var l=!0,f=document.createTextNode("");new i(u).observe(f,{characterData:!0}),n=function(){f.data=l=!l}}else if(s&&s.resolve){var p=s.resolve();n=function(){p.then(u)}}else n=function(){o.call(r,u)};return function(r){var o={fn:r,next:void 0};e&&(e.next=o),t||(t=o,n()),e=o}}},function(t,e,n){"use strict";var r=n(22),o=n(35),i=n(26),a=n(40),s=n(49),c=Object.assign;t.exports=!c||n(19)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=r})?function(t,e){for(var n=a(t),c=arguments.length,u=1,l=o.f,f=i.f;c>u;)for(var p,d=s(arguments[u++]),h=l?r(d).concat(l(d)):r(d),v=h.length,m=0;v>m;)f.call(d,p=h[m++])&&(n[p]=d[p]);return n}:c},function(t,e,n){var r=n(4),o=n(10),i=n(22);t.exports=n(5)?Object.defineProperties:function(t,e){o(t);for(var n,a=i(e),s=a.length,c=0;s>c;)r.f(t,n=a[c++],e[n]);return t}},function(t,e,n){var r=n(26),o=n(23),i=n(13),a=n(41),s=n(11),c=n(48),u=Object.getOwnPropertyDescriptor;e.f=n(5)?u:function(t,e){if(t=i(t),e=a(e,!0),c)try{return u(t,e)}catch(t){}if(s(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e,n){var r=n(13),o=n(55).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return o(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==i.call(t)?s(t):o(r(t))}},function(t,e,n){var r=n(11),o=n(40),i=n(36)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){var r=n(12);t.exports=function(t,e,n){for(var o in e)n&&t[o]?t[o]=e[o]:r(t,o,e[o]);return t}},function(t,e,n){"use strict";var r=n(2),o=n(3),i=n(4),a=n(5),s=n(1)("species");t.exports=function(t){var e="function"==typeof o[t]?o[t]:r[t];a&&e&&!e[s]&&i.f(e,s,{configurable:!0,get:function(){return this}})}},function(t,e,n){var r=n(10),o=n(31),i=n(1)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||void 0==(n=r(a)[i])?e:o(n)}},function(t,e,n){var r=n(38),o=n(32);t.exports=function(t){return function(e,n){var i,a,s=String(o(e)),c=r(n),u=s.length;return c<0||c>=u?t?"":void 0:(i=s.charCodeAt(c),i<55296||i>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?t?s.charAt(c):i:t?s.slice(c,c+2):(i-55296<<10)+(a-56320)+65536)}}},function(t,e,n){var r=n(38),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},function(t,e,n){"use strict";var r=n(18),o=n(16),i=n(40),a=n(51),s=n(50),c=n(39),u=n(103),l=n(59);o(o.S+o.F*!n(53)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,o,f,p=i(t),d="function"==typeof this?this:Array,h=arguments.length,v=h>1?arguments[1]:void 0,m=void 0!==v,g=0,y=l(p);if(m&&(v=r(v,h>2?arguments[2]:void 0,2)),void 0==y||d==Array&&s(y))for(e=c(p.length),n=new d(e);e>g;g++)u(n,g,m?v(p[g],g):p[g]);else for(f=y.call(p),n=new d;!(o=f.next()).done;g++)u(n,g,m?a(f,v,[o.value,g],!0):o.value);return n.length=g,n}})},function(t,e,n){"use strict";var r=n(100),o=n(109),i=n(21),a=n(13);t.exports=n(52)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,n):"values"==e?o(0,t[n]):o(0,[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e,n){var r=n(16);r(r.S+r.F,"Object",{assign:n(113)})},function(t,e,n){var r=n(16);r(r.S+r.F*!n(5),"Object",{defineProperty:n(4).f})},function(t,e,n){"use strict";var r,o,i,a=n(25),s=n(2),c=n(18),u=n(46),l=n(16),f=n(20),p=n(31),d=n(101),h=n(105),v=n(120),m=n(58).set,g=n(112)(),y="Promise",b=s.TypeError,_=s.process,w=s[y],_=s.process,x="process"==u(_),k=function(){},C=!!function(){try{var t=w.resolve(1),e=(t.constructor={})[n(1)("species")]=function(t){t(k,k)};return(x||"function"==typeof PromiseRejectionEvent)&&t.then(k)instanceof e}catch(t){}}(),j=function(t,e){return t===e||t===w&&e===i},S=function(t){var e;return!(!f(t)||"function"!=typeof(e=t.then))&&e},T=function(t){return j(w,t)?new P(t):new o(t)},P=o=function(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw b("Bad Promise constructor");e=t,n=r}),this.resolve=p(e),this.reject=p(n)},O=function(t){try{t()}catch(t){return{error:t}}},E=function(t,e){if(!t._n){t._n=!0;var n=t._c;g(function(){for(var r=t._v,o=1==t._s,i=0,a=function(e){var n,i,a=o?e.ok:e.fail,s=e.resolve,c=e.reject,u=e.domain;try{a?(o||(2==t._h&&R(t),t._h=1),a===!0?n=r:(u&&u.enter(),n=a(r),u&&u.exit()),n===e.promise?c(b("Promise-chain cycle")):(i=S(n))?i.call(n,s,c):s(n)):c(r)}catch(t){c(t)}};n.length>i;)a(n[i++]);t._c=[],t._n=!1,e&&!t._h&&M(t)})}},M=function(t){m.call(s,function(){var e,n,r,o=t._v;if(F(t)&&(e=O(function(){x?_.emit("unhandledRejection",o,t):(n=s.onunhandledrejection)?n({promise:t,reason:o}):(r=s.console)&&r.error&&r.error("Unhandled promise rejection",o)}),t._h=x||F(t)?2:1),t._a=void 0,e)throw e.error})},F=function(t){if(1==t._h)return!1;for(var e,n=t._a||t._c,r=0;n.length>r;)if(e=n[r++],e.fail||!F(e.promise))return!1;return!0},R=function(t){m.call(s,function(){var e;x?_.emit("rejectionHandled",t):(e=s.onrejectionhandled)&&e({promise:t,reason:t._v})})},A=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),E(e,!0))},L=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw b("Promise can't be resolved itself");(e=S(t))?g(function(){var r={_w:n,_d:!1};try{e.call(t,c(L,r,1),c(A,r,1))}catch(t){A.call(r,t)}}):(n._v=t,n._s=1,E(n,!1))}catch(t){A.call({_w:n,_d:!1},t)}}};C||(w=function(t){d(this,w,y,"_h"),p(t),r.call(this);try{t(c(L,this,1),c(A,this,1))}catch(t){A.call(this,t)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n(118)(w.prototype,{then:function(t,e){var n=T(v(this,w));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=x?_.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&E(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),P=function(){var t=new r;this.promise=t,this.resolve=c(L,t,1),this.reject=c(A,t,1)}),l(l.G+l.W+l.F*!C,{Promise:w}),n(27)(w,y),n(119)(y),i=n(3)[y],l(l.S+l.F*!C,y,{reject:function(t){var e=T(this),n=e.reject;return n(t),e.promise}}),l(l.S+l.F*(a||!C),y,{resolve:function(t){if(t instanceof w&&j(t.constructor,this))return t;var e=T(this),n=e.resolve;return n(t),e.promise}}),l(l.S+l.F*!(C&&n(53)(function(t){w.all(t).catch(k)})),y,{all:function(t){var e=this,n=T(e),r=n.resolve,o=n.reject,i=O(function(){var n=[],i=0,a=1;h(t,!1,function(t){var s=i++,c=!1;n.push(void 0),a++,e.resolve(t).then(function(t){c||(c=!0,n[s]=t,--a||r(n))},o)}),--a||r(n)});return i&&o(i.error),n.promise},race:function(t){var e=this,n=T(e),r=n.reject,o=O(function(){h(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return o&&r(o.error),n.promise}})},function(t,e,n){"use strict";var r=n(2),o=n(11),i=n(5),a=n(16),s=n(57),c=n(111).KEY,u=n(19),l=n(37),f=n(27),p=n(28),d=n(1),h=n(43),v=n(42),m=n(110),g=n(104),y=n(107),b=n(10),_=n(13),w=n(41),x=n(23),k=n(54),C=n(116),j=n(115),S=n(4),T=n(22),P=j.f,O=S.f,E=C.f,M=r.Symbol,F=r.JSON,R=F&&F.stringify,A="prototype",L=d("_hidden"),I=d("toPrimitive"),$={}.propertyIsEnumerable,N=l("symbol-registry"),B=l("symbols"),U=l("op-symbols"),z=Object[A],D="function"==typeof M,H=r.QObject,Y=!H||!H[A]||!H[A].findChild,G=i&&u(function(){return 7!=k(O({},"a",{get:function(){return O(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=P(z,e);r&&delete z[e],O(t,e,n),r&&t!==z&&O(z,e,r)}:O,J=function(t){var e=B[t]=k(M[A]);return e._k=t,e},q=D&&"symbol"==typeof M.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof M},W=function(t,e,n){return t===z&&W(U,e,n),b(t),e=w(e,!0),b(n),o(B,e)?(n.enumerable?(o(t,L)&&t[L][e]&&(t[L][e]=!1),n=k(n,{enumerable:x(0,!1)})):(o(t,L)||O(t,L,x(1,{})),t[L][e]=!0),G(t,e,n)):O(t,e,n)},K=function(t,e){b(t);for(var n,r=g(e=_(e)),o=0,i=r.length;i>o;)W(t,n=r[o++],e[n]);return t},V=function(t,e){return void 0===e?k(t):K(k(t),e)},X=function(t){var e=$.call(this,t=w(t,!0));return!(this===z&&o(B,t)&&!o(U,t))&&(!(e||!o(this,t)||!o(B,t)||o(this,L)&&this[L][t])||e)},Q=function(t,e){if(t=_(t),e=w(e,!0),t!==z||!o(B,e)||o(U,e)){var n=P(t,e);return!n||!o(B,e)||o(t,L)&&t[L][e]||(n.enumerable=!0),n}},Z=function(t){for(var e,n=E(_(t)),r=[],i=0;n.length>i;)o(B,e=n[i++])||e==L||e==c||r.push(e);return r},tt=function(t){for(var e,n=t===z,r=E(n?U:_(t)),i=[],a=0;r.length>a;)!o(B,e=r[a++])||n&&!o(z,e)||i.push(B[e]);return i};D||(M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===z&&e.call(U,n),o(this,L)&&o(this[L],t)&&(this[L][t]=!1),G(this,t,x(1,n))};return i&&Y&&G(z,t,{configurable:!0,set:e}),J(t)},s(M[A],"toString",function(){return this._k}),j.f=Q,S.f=W,n(55).f=C.f=Z,n(26).f=X,n(35).f=tt,i&&!n(25)&&s(z,"propertyIsEnumerable",X,!0),h.f=function(t){return J(d(t))}),a(a.G+a.W+a.F*!D,{Symbol:M});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;et.length>nt;)d(et[nt++]);for(var et=T(d.store),nt=0;et.length>nt;)v(et[nt++]);a(a.S+a.F*!D,"Symbol",{for:function(t){return o(N,t+="")?N[t]:N[t]=M(t)},keyFor:function(t){if(q(t))return m(N,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){Y=!0},useSimple:function(){Y=!1}}),a(a.S+a.F*!D,"Object",{create:V,defineProperty:W,defineProperties:K,getOwnPropertyDescriptor:Q,getOwnPropertyNames:Z,getOwnPropertySymbols:tt}),F&&a(a.S+a.F*(!D||u(function(){var t=M();return"[null]"!=R([t])||"{}"!=R({a:t})||"{}"!=R(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!q(t)){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);return e=r[1],"function"==typeof e&&(n=e),!n&&y(e)||(e=function(t,e){if(n&&(e=n.call(this,t,e)),!q(e))return e}),r[1]=e,R.apply(F,r)}}}),M[A][I]||n(12)(M[A],I,M[A].valueOf),f(M,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},function(t,e,n){n(42)("asyncIterator")},function(t,e,n){n(42)("observable")},function(t,e,n){e=t.exports=n(14)(),e.push([t.id,".recent-list{padding-top:1.1rem}.recent-item{padding:.2rem;margin-bottom:.3rem;background-color:#fff}.recent-item>div{display:-webkit-box;display:flex;-webkit-box-pack:justify;justify-content:space-between;margin-bottom:.3rem}.recent-item>div div{-webkit-box-flex:1;flex:1}.recent-item img{width:.8rem;height:.8rem;margin-right:.3rem;border-radius:50%}",""])},function(t,e,n){e=t.exports=n(14)(),e.push([t.id,".post-content{width:100%;min-height:5rem;padding:0 .2rem;border:none;outline:none;resize:none;line-height:.6rem;box-sizing:border-box}.post-list{margin:.9rem 0 .2rem}.post-item{padding:.2rem;position:relative;color:#555;border-bottom:1px solid #eee;background-color:#fff}.post-item input{width:100%;height:.4rem;color:#333;border:none;outline:none}.post-item input::-webkit-input-placeholder{color:#999}.tag-item:after{content:attr(data-tag)}.go-post-btn,.tag-item:after{position:absolute;right:.2rem}.go-post-btn{width:1rem;top:50%;color:#fff;text-align:center;font-size:.28rem;line-height:.55rem;border-radius:5px;opacity:.5;background-color:#1abc9c;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.go-post-btn.active{opacity:1}.highlight{color:#fff;background-color:green}.select-tag{width:7.5rem;height:100%;position:fixed;top:0;z-index:10;background-color:rgba(0,0,0,.4);-webkit-transition:all .3s;transition:all .3s}.select-enter,.select-leave-active{opacity:0}.select-enter ul,.select-leave-active ul{-webkit-transform:translateY(100%);transform:translateY(100%)}.select-tag ul{width:100%;position:absolute;bottom:0;-webkit-transition:all .3s;transition:all .3s}.select-tag li{text-align:center;line-height:.8rem;border-bottom:1px solid #eee;background-color:#fff}.select-tag li:last-child{color:#999}",""])},function(t,e,n){e=t.exports=n(14)(),e.push([t.id,".about-list{padding:0 .2rem;margin-top:.7rem}.about-list li{padding:.23rem 0;font-size:.26rem;border-bottom:1px solid #f1f2f3}.about-list h5{margin-bottom:.2rem;font-size:.3rem}.about-list a{color:#22c37b}",""])},function(t,e,n){e=t.exports=n(14)(),e.push([t.id,".recent-list{padding-top:1.1rem}.recent-item{padding:.2rem;margin-bottom:.3rem;background-color:#fff}.recent-item>div{display:-webkit-box;display:flex;-webkit-box-pack:justify;justify-content:space-between;margin-bottom:.3rem}.recent-item>div div{-webkit-box-flex:1;flex:1}.recent-item img{width:.8rem;height:.8rem;margin-right:.3rem;border-radius:50%}",""])},function(t,e,n){e=t.exports=n(14)(),e.push([t.id,".mg-item{margin-bottom:.2rem;background-color:#fff}.message-list,.message-list-default{margin-top:.9rem}.mg-item{display:-webkit-box;display:flex;-webkit-box-pack:justify;justify-content:space-between;-webkit-box-align:center;align-items:center;padding:0 .2rem;border-bottom:1px solid #eee}.message-list .reply-item{border-bottom:none}.message-list .reply-item>div:nth-child(2){border-bottom:1px solid #eee}.message-list .reply-item:last-child>div:nth-child(2){border-bottom:none}.message-time{color:#999;font-size:.24rem}.message-name{display:block;margin-bottom:.1rem;font-size:.24rem}.origin{display:block;margin:.3rem 0;color:#999;font-size:.26rem}.avatar{width:.8rem;margin-right:.2rem}.mg-item a{-webkit-box-flex:1;flex:1;padding:.24rem 0}.arrow{width:.2rem;height:.2rem;border-top:1px solid #333;border-right:1px solid #333;-webkit-transform:rotate(45deg);transform:rotate(45deg)}.item-quote{padding-left:.2rem;margin:0 .2rem;line-height:.6rem;border-left:3px solid #ddd;background-color:#f1f1f1}",""])},function(t,e,n){e=t.exports=n(14)(),e.push([t.id,".topic-container{padding-top:1rem}.topic-content{padding:0 .2rem}.topic-title{color:#414243;font-size:.47rem;font-weight:400}.topic-header p{margin-top:.2rem;color:#9d9e9f;font-size:.28rem;position:relative}.topic-header img{display:inline-block;width:.7rem;height:.7rem;margin-right:.2rem;vertical-align:middle;border-radius:100%}.topic-header p span.collect{position:absolute;top:50%;right:0;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.markdown-text{color:#414243;font-size:.28rem;line-height:.55rem}.markdown-text a{color:#225d99;word-break:break-word}.markdown-text img{width:100%;margin:.3rem auto .46rem}.markdown-text blockquote{padding-left:.3rem;margin:.3rem 0;border-left:4px solid #e2e3e4}.markdown-text p{word-break:break-word}.markdown-text h1,.markdown-text h2{font-size:.38rem;font-weight:400}.markdown-text h1,.markdown-text h2,.markdown-text p{margin:.3rem 0}.markdown-text ul{padding-left:.34rem;margin:.3rem 0}.markdown-text li{margin-top:.16rem;list-style:disc}.markdown-text .prettyprint{padding:.1rem .14rem;margin:.24rem 0;background-color:#f8f8f8;-webkit-overflow-scrolling:touch}.reply-count{padding:.46rem .26rem .16rem;color:#9d9e9f;font-size:.28rem;border-top:1px solid #f1f2f3}.reply-item{display:-webkit-box;display:flex;-webkit-box-pack:justify;justify-content:space-between;padding:.23rem .26rem .08rem;border-bottom:1px solid #f1f2f3}.reply-item p{margin:.15rem 0}.reply-item .avatar{width:.8rem;height:.8rem;margin-right:.3rem}.reply-item .reply-content{color:#414243}.reply-item>div:nth-child(2){-webkit-box-flex:1;flex:1}.reply-name{color:#225d99;font-size:.26rem}.reply-ft{position:relative;color:#9d9e9f;font-size:.26rem}.del,.like,.reply-btn{margin-left:.2rem}.like-count{position:absolute;right:0}.reply-box{margin:.3rem 0}.reply-box-ft{padding:0 .26rem}.reply-edit-content-wrap{display:-webkit-box;display:flex;-webkit-box-pack:justify;justify-content:space-between;-webkit-box-align:center;align-items:center}.reply-edit-content-wrap img{width:.62rem;margin-right:.3rem;border-radius:100%}.reply-edit-content{-webkit-box-flex:1;flex:1;padding:0 .2rem;font-size:.25rem;line-height:.6rem;outline:none;border-radius:4px;border:1px solid #ddd;box-shadow:inset 0 1px 2px rgba(0,0,0,.05)}.reply-edit-btn-wrap{margin-top:.3rem;text-align:right;color:#9d9e9f;font-size:.25rem}.reply-edit-btn{margin-left:.2rem}.reply-item .prettyprint{box-sizing:border-box}.reply-more{color:#9d9e9f;text-align:center;font-size:.25rem;line-height:1rem}",""])},function(t,e,n){e=t.exports=n(14)(),e.push([t.id,'.profile-wrap{height:100vh;padding-top:.8rem;box-sizing:border-box;background-color:#f2f2f2}.profile{margin-top:.2rem;background-color:#fff}.profile-user{display:-webkit-box;display:flex;-webkit-box-pack:justify;justify-content:space-between;padding:.24rem;border-bottom:1px solid #eee}.profile-user img{width:1rem;height:1rem;margin-right:.2rem;border-radius:100%}.profile-user>div{-webkit-box-flex:1;flex:1}.profile-tail{margin-top:.12rem;color:#999;font-size:.28rem}.profile-number{display:-webkit-box;display:flex;justify-content:space-around;padding:.15rem 0;color:#929292}.profile-number>div{text-align:center}.profile-number p{color:#333}.profile-list{margin-top:.2rem;font-size:.28rem;background-color:#fff}.profile-list li{padding-left:.3rem;position:relative;line-height:.8rem}.profile-list li:nth-child(1){border-bottom:1px solid #eee}.profile-list li:after{content:"";width:.16rem;height:.16rem;position:absolute;top:50%;right:.24rem;border-top:1px solid #929292;border-right:1px solid #929292;-webkit-transform:rotate(45deg) translateY(-50%);transform:rotate(45deg) translateY(-50%)}.profile-list li.no-arrow:after{display:none}.profile-list a{display:block}.translate-right-transition,.translate-transition{-webkit-transition:all 10.3s;transition:all 10.3s}.translate-enter,.translate-leave{-webkit-transform:translateX(-414px);transform:translateX(-414px)}.translate-right-enter,.translate-right-leave{-webkit-transform:translateX(414px);transform:translateX(414px)}',""])},function(t,e,n){(function(e,r){/*! * @overview es6-promise - a tiny implementation of Promises/A+. * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) * @license Licensed under MIT license * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE * @version 4.0.5 */ !function(e,n){t.exports=n()}(this,function(){"use strict";function t(t){return"function"==typeof t||"object"==typeof t&&null!==t}function o(t){return"function"==typeof t}function i(t){K=t}function a(t){V=t}function s(){return function(){return e.nextTick(p)}}function c(){return"undefined"!=typeof W?function(){W(p)}:f()}function u(){var t=0,e=new Z(p),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}function l(){var t=new MessageChannel;return t.port1.onmessage=p,function(){return t.port2.postMessage(0)}}function f(){var t=setTimeout;return function(){return t(p,1)}}function p(){for(var t=0;t=0,i=o&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,t.exports=n(147),o)r.regeneratorRuntime=i;else try{delete r.regeneratorRuntime}catch(t){r.regeneratorRuntime=void 0}}).call(e,function(){return this}())},function(t,e,n){(function(e,n){!function(e){"use strict";function r(t,e,n,r){var o=e&&e.prototype instanceof i?e:i,a=Object.create(o.prototype),s=new d(r||[]);return a._invoke=l(t,n,s),a}function o(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function i(){}function a(){}function s(){}function c(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function u(t){function e(n,r,i,a){var s=o(t[n],t,r);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==typeof u&&y.call(u,"__await")?Promise.resolve(u.__await).then(function(t){e("next",t,i,a)},function(t){e("throw",t,i,a)}):Promise.resolve(u).then(function(t){c.value=t,i(c)},a)}a(s.arg)}function r(t,n){function r(){return new Promise(function(r,o){e(t,n,r,o)})}return i=i?i.then(r,r):r()}"object"==typeof n&&n.domain&&(e=n.domain.bind(e));var i;this._invoke=r}function l(t,e,n){var r=C;return function(i,a){if(r===S)throw new Error("Generator is already running");if(r===T){if("throw"===i)throw a;return v()}for(;;){var s=n.delegate;if(s){if("return"===i||"throw"===i&&s.iterator[i]===m){n.delegate=null;var c=s.iterator.return;if(c){var u=o(c,s.iterator,a);if("throw"===u.type){i="throw",a=u.arg;continue}}if("return"===i)continue}var u=o(s.iterator[i],s.iterator,a);if("throw"===u.type){n.delegate=null,i="throw",a=u.arg;continue}i="next",a=m;var l=u.arg;if(!l.done)return r=j,l;n[s.resultName]=l.value,n.next=s.nextLoc,n.delegate=null}if("next"===i)n.sent=n._sent=a;else if("throw"===i){if(r===C)throw r=T,a;n.dispatchException(a)&&(i="next",a=m)}else"return"===i&&n.abrupt("return",a);r=S;var u=o(t,e,n);if("normal"===u.type){r=n.done?T:j;var l={value:u.arg,done:n.done};if(u.arg!==P)return l;n.delegate&&"next"===i&&(a=m)}else"throw"===u.type&&(r=T,i="throw",a=u.arg)}}}function f(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function p(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function d(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(f,this),this.reset(!0)}function h(t){if(t){var e=t[_];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n=0;--r){var o=this.tryEntries[r],i=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var a=y.call(o,"catchLoc"),s=y.call(o,"finallyLoc");if(a&&s){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&y.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),p(n),P}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;p(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:h(t),resultName:e,nextLoc:n},P}}}("object"==typeof e?e:"object"==typeof window?window:"object"==typeof self?self:this)}).call(e,function(){return this}(),n(62))},function(t,e,n){var r,o;r=n(66);var i=n(166);o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(o=r=r.default),"function"==typeof o&&(o=o.options),o.render=i.render,o.staticRenderFns=i.staticRenderFns,t.exports=r},function(t,e,n){var r,o,i=n(163);o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(o=r=r.default),"function"==typeof o&&(o=o.options),o.render=i.render,o.staticRenderFns=i.staticRenderFns,t.exports=r},function(t,e,n){var r,o;r=n(69);var i=n(168);o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(o=r=r.default),"function"==typeof o&&(o=o.options),o.render=i.render,o.staticRenderFns=i.staticRenderFns,t.exports=r},function(t,e,n){var r,o;n(179),r=n(71);var i=n(167);o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(o=r=r.default),"function"==typeof o&&(o=o.options),o.render=i.render,o.staticRenderFns=i.staticRenderFns,t.exports=r},function(t,e,n){var r,o;r=n(72);var i=n(174);o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(o=r=r.default),"function"==typeof o&&(o=o.options),o.render=i.render,o.staticRenderFns=i.staticRenderFns,t.exports=r},function(t,e,n){var r,o;r=n(73);var i=n(164);o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(o=r=r.default),"function"==typeof o&&(o=o.options),o.render=i.render,o.staticRenderFns=i.staticRenderFns,t.exports=r},function(t,e,n){var r,o;n(181),r=n(74);var i=n(170);o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(o=r=r.default),"function"==typeof o&&(o=o.options),o.render=i.render,o.staticRenderFns=i.staticRenderFns,t.exports=r},function(t,e,n){var r,o;n(178),r=n(75);var i=n(162);o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(o=r=r.default),"function"==typeof o&&(o=o.options),o.render=i.render,o.staticRenderFns=i.staticRenderFns,t.exports=r},function(t,e,n){var r,o;n(183),r=n(76);var i=n(173);o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(o=r=r.default),"function"==typeof o&&(o=o.options),o.render=i.render,o.staticRenderFns=i.staticRenderFns,t.exports=r},function(t,e,n){var r,o;n(180),r=n(77);var i=n(169);o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(o=r=r.default),"function"==typeof o&&(o=o.options),o.render=i.render,o.staticRenderFns=i.staticRenderFns,t.exports=r},function(t,e,n){var r,o;n(177),r=n(78);var i=n(161);o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(o=r=r.default),"function"==typeof o&&(o=o.options),o.render=i.render,o.staticRenderFns=i.staticRenderFns,t.exports=r},function(t,e,n){var r,o;r=n(79);var i=n(175);o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(o=r=r.default),"function"==typeof o&&(o=o.options),o.render=i.render,o.staticRenderFns=i.staticRenderFns,t.exports=r},function(t,e,n){var r,o;n(182),r=n(80);var i=n(172);o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(o=r=r.default),"function"==typeof o&&(o=o.options),o.render=i.render,o.staticRenderFns=i.staticRenderFns,t.exports=r},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("div",{attrs:{id:"app"}},[t._m(0),t._v(" "),e("ul",{staticClass:"recent-list profile-wrap"},t._l(t.list,function(n){return e("li",{staticClass:"recent-item"},[e("div",[e("img",{attrs:{src:n.author.avatar_url}}),t._v(" "),e("div",[e("span",{staticClass:"username",domProps:{textContent:t._s(n.author.loginname)}}),t._v(" "),e("p",{staticClass:"item-time"},[t._v("\n\t\t\t\t\t\t最后回复:\n\t\t\t\t\t\t"+t._s(t._f("timeFormat")(n.last_reply_at))+"\n\t\t\t\t\t")])])]),t._v(" "),e("router-link",{attrs:{to:"/topic/"+n.id},domProps:{textContent:t._s(n.title)}})])}))])},staticRenderFns:[function(){var t=this,e=(t.$createElement,t._c);return e("header",{staticClass:"header"},[e("a",{staticClass:"back-btn-wrap",attrs:{href:"javascript:history.go(-1)"}},[e("i",{staticClass:"back-btn"})]),t._v(" "),e("h2",{staticClass:"title"},[t._v("最近发布")])])}]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("div",{attrs:{id:"app"}},[e("header",{staticClass:"header"},[e("router-link",{staticClass:"back-btn-wrap post-btn-wrap",attrs:{to:"/"}},[e("i",{staticClass:"back-btn"})]),t._v(" "),e("h1",{staticClass:"title"},[t._v("创作新主题")]),t._v(" "),t.postStatus?e("a",{staticClass:"go-post-btn",class:{active:t.postStatus},attrs:{href:"javascript:;"},on:{click:t.post}},[t._v("发布")]):e("a",{staticClass:"go-post-btn",attrs:{href:"javascript:;"}},[t._v("发布")]),t._v(" ")]),t._v(" "),e("ul",{staticClass:"post-list"},[e("li",{staticClass:"post-item tag-item",attrs:{"data-tag":t.tag},on:{click:t.selectTag}},[t._v("选择一个标签")]),t._v(" "),e("li",{staticClass:"post-item"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.title,expression:"title"}],attrs:{type:"text",placeholder:"输入主题标题"},domProps:{value:t._s(t.title)},on:{input:function(e){e.target.composing||(t.title=e.target.value)}}})])]),t._v(" "),e("div",{staticClass:"post-container"},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.content,expression:"content"}],staticClass:"post-content",attrs:{placeholder:"这一刻的想法..."},domProps:{value:t._s(t.content)},on:{keyup:function(e){t._k(e.keyCode,"enter",13)||t.toPost(e)},input:function(e){e.target.composing||(t.content=e.target.value)}}}),t._v(" "),t.count?e("p",[t._v("\n\t\t\t已输入\n\t\t\t"),e("span",{domProps:{textContent:t._s(t.count)}}),t._v("\n\t\t\t字\n\t\t")]):t._e()]),t._v(" "),e("transition",{attrs:{name:"select"}},[t.show?e("div",{staticClass:"select-tag",on:{click:function(e){t.show=!1}}},[e("ul",{on:{click:function(t){t.stopPropagation()}}},[t._l(t.tags,function(n){return e("li",{domProps:{textContent:t._s(n)},on:{click:function(e){t.hideTag(n)}}})}),t._v(" "),e("li",{on:{click:function(e){t.show=!1}}},[t._v("取消")])],!0)]):t._e()]),t._v(" "),e("tips",{attrs:{message:t.message},on:{cancelMessage:function(e){t.message=""}}})])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this;t.$createElement,t._c;return t._m(0)},staticRenderFns:[function(){var t=this,e=(t.$createElement,t._c);return e("div",{staticClass:"no-data-cover"},[e("div",{staticClass:"no-data-text"},[t._v("哇哦,啥也木有(´・ω・`)")])])}]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("div",{attrs:{id:"app"}},[e("header",{staticClass:"header"},[e("router-link",{staticClass:"back-btn-wrap",attrs:{to:"/"}},[e("i",{staticClass:"back-btn"})]),t._v(" "),e("h2",{staticClass:"title"},[t._v("登录")])]),t._v(" "),e("div",{staticClass:"box"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.token,expression:"token"}],staticClass:"input-text",attrs:{type:"text",placeholder:"Access Token",autofocus:""},domProps:{value:t._s(t.token)},on:{keydown:function(e){t._k(e.keyCode,"enter",13)||t.loginValidate(e)},input:function(e){e.target.composing||(t.token=e.target.value)}}}),t._v(" "),e("a",{staticClass:"btn save-btn",attrs:{href:"javascript:;"},on:{click:t.loginValidate}},[t._v("登录")])]),t._v(" "),e("tips",{attrs:{message:t.message},on:{cancelMessage:function(e){t.message=""}}})])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("li",{staticClass:"reply-item"},[e("div",[e("a",{attrs:{target:"_blank",href:"https://cnodejs.org/user/"+t.item.author.loginname}},[e("img",{staticClass:"avatar",attrs:{src:t.item.author.avatar_url}})])]),t._v(" "),t._t("default")],!0)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("keep-alive",[e("router-view")])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("div",{attrs:{id:"app"}},[e("header",{staticClass:"header topic-hd"},[e("router-link",{staticClass:"back-btn-wrap",attrs:{to:"/"}},[e("i",{staticClass:"back-btn"})]),t._v(" "),e("h2",{staticClass:"title"},[t._v("关于")])]),t._v(" "),e("ul",{staticClass:"about-list"},t._l(t.items,function(n){return e("li",[e("h5",{domProps:{textContent:t._s(n.title)}}),t._v(" "),e("p",{domProps:{innerHTML:t._s(n.content)}})])}))])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("section",{staticClass:"slide-nav-wrap"},[e("div",{staticClass:"slide-nav"},[t.avatar?e("div",{staticClass:"user",on:{click:t.profile}},[e("img",{attrs:{src:t.avatar}}),t._v(" "),e("span",{domProps:{textContent:t._s(t.nickname)}})]):e("div",{staticClass:"user",on:{click:t.goLogin}},[e("span",{staticClass:"user-avatar-no"}),t._v(" "),e("span",[t._v("登录")])]),t._v(" "),t._v(" "),e("ul",{staticClass:"tag-list"},t._l(t.tags,function(n,r){return e("li",{domProps:{textContent:t._s(n)},on:{click:function(e){t.switchTag(r)}}})})),t._v(" "),e("ul",{staticClass:"other-list"},t._l(t.items,function(n,r){return e("li",[1!==r?e("span",{domProps:{textContent:t._s(n)},on:{click:function(e){t.goOther(r)}}}):t._e(),t._v(" "),1===r?e("span",{attrs:{"data-count":t.count},domProps:{textContent:t._s(n)},on:{click:function(e){t.goOther(r)}}}):t._e()])}))])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("div",{attrs:{id:"app"}},[t._m(0),t._v(" "),e("ul",{staticClass:"recent-list profile-wrap"},t._l(t.list,function(n){return e("li",{staticClass:"recent-item"},[e("div",[e("img",{attrs:{src:n.author.avatar_url}}),t._v(" "),e("div",[e("span",{staticClass:"username",domProps:{textContent:t._s(n.author.loginname)}}),t._v(" "),e("p",{staticClass:"item-time"},[t._v("\n\t\t\t\t\t\t最后回复:\n\t\t\t\t\t\t"+t._s(t._f("timeFormat")(n.last_reply_at))+"\n\t\t\t\t\t")])])]),t._v(" "),e("p",{domProps:{textContent:t._s(n.title)}})])}))])},staticRenderFns:[function(){var t=this,e=(t.$createElement,t._c);return e("header",{staticClass:"header"},[e("a",{staticClass:"back-btn-wrap",attrs:{href:"javascript:history.go(-1)"}},[e("i",{staticClass:"back-btn"})]),t._v(" "),e("h2",{staticClass:"title"},[t._v("最近回复主题列表")])])}]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("div",{attrs:{id:"app"}},[e("header",{staticClass:"header header-flex"},[t._m(0),t._v(" "),e("h2",{staticClass:"title",domProps:{textContent:t._s(t.type)},on:{click:t.messageSwitch}})]),t._v(" "),t.loading?t._e():e("ul",{staticClass:"message-list"},t._l(t.list,function(n){return e("item",{attrs:{item:n,type:"message"}},[e("div",[e("router-link",{staticClass:"message-name",attrs:{to:"/topic/"+n.topic.id},domProps:{textContent:t._s(n.author.loginname)}}),t._v(" "),e("span",{staticClass:"message-time"},[t._v("回复时间:"+t._s(t._f("timeFormat")(n.create_at)))]),t._v(" "),e("p",{domProps:{innerHTML:t._s(n.reply.content)}}),t._v(" "),e("router-link",{staticClass:"origin",attrs:{to:"/topic/"+n.topic.id},domProps:{textContent:t._s("来自:"+n.topic.title)}})])])})),t._v(" "),e("loading",{attrs:{loading:t.loading}}),t._v(" "),t.noMessage?e("no-data"):t._e()])},staticRenderFns:[function(){var t=this,e=(t.$createElement,t._c);return e("a",{staticClass:"back-btn-wrap",attrs:{href:"javascript:history.go(-1)"}},[e("i",{staticClass:"back-btn"})])}]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("transition",{attrs:{name:"loading"}},[t.loading?e("div",{staticClass:"loading-cover"},[e("div",{staticClass:"loading-text"},[t._v("(´・ω・`)正在加载...")])]):t._e()])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("div",{attrs:{id:"app"}},[t._m(0),t._v(" "),t.loading?t._e():e("div",{staticClass:"topic-container"},[e("div",{staticClass:"topic-content"},[e("div",{staticClass:"topic-header"},[e("h1",{staticClass:"topic-title",domProps:{textContent:t._s(t.topic.title)}}),t._v(" "),e("p",[e("img",{staticClass:"topic-avatar",attrs:{src:t.topic.author.avatar_url}}),t._v(" "),e("span",{staticClass:"topic-username",domProps:{textContent:t._s(t.topic.author.loginname)}}),t._v(" "),e("span",[t._v("·")]),t._v(" "),e("span",[t._v("\n\t\t\t\t\t\t"+t._s(t._f("timeFormat")(t.topic.create_at))+"\n\t\t\t\t\t")]),t._v(" "),t.$store.state.avatar?[t.isCollect?e("span",{staticClass:"collect"},[t._v("已收藏")]):e("span",{staticClass:"collect",on:{click:t.collect}},[t._v("收藏")]),t._v(" ")]:t._e()],!0)]),t._v(" "),e("div",{domProps:{innerHTML:t._s(t.topic.content)}})]),t._v(" "),e("div",{ref:"reply",staticClass:"reply"},[e("div",{staticClass:"reply-count"},[t._v("\n\t\t\t\t"+t._s(t._f("textFormat")(t.topic.reply_count))+"\n\t\t\t")]),t._v(" "),e("ul",{staticClass:"reply-list"},t._l(t.topic.replies,function(n){return e("item",{attrs:{item:n}},[e("div",[e("a",{staticClass:"reply-name",attrs:{target:"_blank",href:"https://cnodejs.org/user/"+n.author.loginname},domProps:{textContent:t._s(n.author.loginname)}}),t._v(" "),e("p",{staticClass:"reply-content",domProps:{innerHTML:t._s(n.content)}}),t._v(" "),e("p",{staticClass:"reply-ft"},[e("span",[t._v("\n\t\t\t\t\t\t\t\t"+t._s(t._f("timeFormat")(n.create_at))+"\n\t\t\t\t\t\t\t")]),t._v(" "),t.loginState?[n.author.loginname!==t.nickname?[e("span",{staticClass:"reply-btn",on:{click:function(e){t.subReply(n)}}},[t._v("回复")]),t._v(" "),e("span",{staticClass:"like",domProps:{textContent:t._s(n.ups.indexOf(t.userID)!==-1?"取消赞":"赞")},on:{click:function(e){t.like(n.id,n)}}}),t._v(" "),e("span",{staticClass:"like-count",domProps:{textContent:t._s(n.ups.length+" 赞")}})]:[e("span",{staticClass:"del",on:{click:t.del}},[t._v("删除")]),t._v(" "),e("span",{staticClass:"like-count",domProps:{textContent:t._s(n.ups.length+" 赞")}})],t._v(" ")]:[e("span",{staticClass:"like",on:{click:t.forLike}},[t._v("赞")]),t._v(" "),e("span",{staticClass:"like-count",domProps:{textContent:t._s(n.ups.length+" 赞")}})],t._v(" ")],!0),n.replyState?e("div",{staticClass:"reply-box"},[e("div",{staticClass:"reply-edit-content-wrap"},[e("img",{attrs:{src:t.avatar}}),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:n.replyContent,expression:"item.replyContent"}],staticClass:"reply-edit-content",attrs:{type:"text",placeholder:"留下你的评论"},domProps:{value:t._s(n.replyContent)},on:{keydown:function(e){t._k(e.keyCode,"enter",13)||t.toSubReply(n)},input:function(t){t.target.composing||(n.replyContent=t.target.value)}}})]),t._v(" "),e("div",{staticClass:"reply-edit-btn-wrap"},[e("span",{staticClass:"reply-edit-btn",on:{click:function(t){n.replyState=!1}}},[t._v("取消")]),t._v(" "),e("span",{staticClass:"reply-edit-btn",on:{click:function(e){t.toSubReply(n)}}},[t._v("评论")])])]):t._e(),t._v(" "),e("p")])])})),t._v(" "),t.loginState?e("div",{staticClass:"reply-box reply-box-ft"},[e("div",{staticClass:"reply-edit-content-wrap"},[e("img",{attrs:{src:t.avatar}}),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.replyContent,expression:"replyContent"}],ref:"commentInput",staticClass:"reply-edit-content",attrs:{type:"text",placeholder:"留下你的评论"},domProps:{value:t._s(t.replyContent)},on:{click:function(e){t.replyState=!0},keydown:function(e){t._k(e.keyCode,"enter",13)||t.toReply(e)},input:function(e){e.target.composing||(t.replyContent=e.target.value)}}})]),t._v(" "),t.replyState?e("div",{staticClass:"reply-edit-btn-wrap"},[e("span",{staticClass:"reply-edit-btn",on:{click:function(e){t.replyState=!1}}},[t._v("取消")]),t._v(" "),e("span",{staticClass:"reply-edit-btn",on:{click:t.toReply}},[t._v("评论")])]):t._e()]):t._e()])]),t._v(" "),e("loading",{attrs:{loading:t.loading}})])},staticRenderFns:[function(){var t=this,e=(t.$createElement,t._c);return e("header",{staticClass:"header"},[e("a",{staticClass:"back-btn-wrap",attrs:{href:"javascript:history.go(-1)"}},[e("i",{staticClass:"back-btn"})]),t._v(" "),e("h2",{staticClass:"title"},[t._v("帖子正文")])])}]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("div",{attrs:{id:"app"}},[e("header",{staticClass:"header header-flex"},[e("a",{staticClass:"back-btn-wrap",attrs:{href:"javascript:;"},on:{click:t.back}},[e("i",{staticClass:"back-btn"})]),t._v(" "),e("h2",{staticClass:"title"},[t._v("我")])]),t._v(" "),e("div",{staticClass:"profile-wrap"},[e("div",{staticClass:"profile"},[e("div",{staticClass:"profile-user"},[e("img",{attrs:{src:t.avatar}}),t._v(" "),e("div",[e("h4",{staticClass:"profile-username",domProps:{textContent:t._s(t.nickname)}}),t._v(" "),e("p",{staticClass:"profile-tail",domProps:{innerHTML:t._s(t.tail)}})])]),t._v(" "),e("div",{staticClass:"profile-number"},[e("div",[e("p",{domProps:{textContent:t._s(t.replyCount)}}),t._v("\n\t\t\t\t\t回复\n\t\t\t\t")]),t._v(" "),e("div",[e("p",{domProps:{textContent:t._s(t.postCount)}}),t._v("\n\t\t\t\t\t发表\n\t\t\t\t")]),t._v(" "),e("div",[e("p",{domProps:{textContent:t._s(t.score)}}),t._v("\n\t\t\t\t\t积分\n\t\t\t\t")])])]),t._v(" "),e("ul",{staticClass:"profile-list"},t._l(t.definition,function(n){return e("li",[e("router-link",{attrs:{to:n.path},domProps:{textContent:t._s(n.text)}})])})),t._v(" "),e("ul",{staticClass:"profile-list"},t._l(t.items,function(n){return e("router-link",{attrs:{to:n.path,tag:"li"},domProps:{textContent:t._s(n.text)}})})),t._v(" "),e("ul",{staticClass:"profile-list"},[e("li",{staticClass:"no-arrow",on:{click:t.logout}},[t._v("退出当前账号")])])])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("div",{class:{show:t.show},attrs:{id:"app"}},[e("header",{staticClass:"header header-flex",on:{dblclick:t.backTop}},[e("div",{staticClass:"side-btn-wrap",on:{click:t.showSlideNav}},[e("div",{staticClass:"side-btn"})]),t._v(" "),e("h1",{staticClass:"title",domProps:{textContent:t._s(t.tagText)}}),t._v(" "),t._v(" "),e("router-link",{staticClass:"post-btn",class:{"appear-message":t.appearMessage,actived:t.actived},attrs:{to:"/message"}},[e("svg",{attrs:{height:"16",version:"1.1",viewBox:"0 0 14 16",width:"16"}},[e("path",{attrs:{"fill-rule":"evenodd",d:"M14 12v1H0v-1l.73-.58c.77-.77.81-2.55 1.19-4.42C2.69 3.23 6 2 6 2c0-.55.45-1 1-1s1 .45 1 1c0 0 3.39 1.23 4.16 5 .38 1.88.42 3.66 1.19 4.42l.66.58H14zm-7 4c1.11 0 2-.89 2-2H5c0 1.11.89 2 2 2z"}})])])]),t._v(" "),e("slide",{attrs:{show:t.show},on:{hideSlideNav:t.hideSlideNav,switchTag:t.switchTag}}),t._v(" "),e("div",{staticClass:"container"},[e("ul",t._l(t.list,function(n){return e("li",{staticClass:"item",attrs:{"data-url":n.author.avatar_url,"data-id":n.id}},[e("div",{staticClass:"item-user-bar"},[n.lazy?t._e():e("div",{staticClass:"avatar-cover",class:{"avatar-loaded":t.itemss.indexOf(n.id)>-1}},[e("transition",{attrs:{name:"avatar"}},[t.itemss.indexOf(n.id)>-1?e("div",{staticClass:"avatar",style:{backgroundImage:"url("+n.author.avatar_url+")"}}):t._e()])]),t._v(" "),n.lazy?e("div",{staticClass:"avatar-cover",class:{"avatar-loaded":t.itemss.indexOf(n.id)>-1}},[t.itemss.indexOf(n.id)>-1?e("div",{staticClass:"avatar",style:{backgroundImage:"url("+n.author.avatar_url+")"}}):t._e()]):t._e(),t._v(" "),e("div",{staticClass:"item-detail"},[e("span",{staticClass:"username",domProps:{textContent:t._s(n.author.loginname)}}),t._v(" "),n.top?e("span",{staticClass:"label"},[t._v("置顶")]):t._e(),t._v(" "),n.good?e("span",{staticClass:"label"},[t._v("精华")]):t._e(),t._v(" "),e("span",{staticClass:"label"},[t._v("\n\t\t\t\t\t\t\t"+t._s(t._f("textFormat")(n.tab))+"\n\t\t\t\t\t\t")]),t._v(" "),e("p",{staticClass:"item-time"},[t._v("\n\t\t\t\t\t\t\t"+t._s(t._f("timeFormat")(n.create_at))+"\n\t\t\t\t\t\t")])])]),t._v(" "),e("div",{ staticClass:"item-content"},[e("router-link",{staticClass:"item-link",attrs:{to:"/topic/"+n.id}},[e("p",{staticClass:"item-content-title",domProps:{textContent:t._s(n.title)}})])]),t._v(" "),e("div",{staticClass:"item-btn-wrap"},[e("div",{staticClass:"btn visit-btn"},[e("span",[e("i",{staticClass:"iconfont"},[t._v("")]),t._v("\n\t\t\t\t\t\t\t"+t._s(n.visit_count)+"\n\t\t\t\t\t\t")])]),t._v(" "),e("div",{staticClass:"btn reply-btn"},[e("router-link",{attrs:{to:"/topic/"+n.id+"#comment"}},[e("span",[e("i",{staticClass:"iconfont"},[t._v("󰈗")]),t._v("\n\t\t\t\t\t\t\t\t"+t._s(n.reply_count)+"\n\t\t\t\t\t\t\t")])])]),t._v(" "),e("div",{staticClass:"btn share_btn",on:{click:function(e){t.share(n.id)}}},[e("i",{staticClass:"iconfont"},[t._v("󰆺")]),t._v("\n\t\t\t\t\t\t分享\n\t\t\t\t\t")])])])})),t._v(" "),t.locked?e("div",{staticClass:"loading-wrap"},[e("div",{staticClass:"loading-text"},[t._v("(´・ω・`)正在加载...")])]):t._e()]),t._v(" "),e("tips",{attrs:{message:t.message},on:{cancelMessage:function(e){t.message=""}}}),t._v(" "),e("loading",{attrs:{loading:t.loading}}),t._v(" "),t.show?e("div",{staticClass:"mask",on:{click:t.hideSlideNav,touchmove:t.touchmove}}):t._e(),t._v(" "),t._v(" "),e("router-link",{staticClass:"back-top",attrs:{to:"/post"}})])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("div",{attrs:{id:"app"}},[e("header",{staticClass:"header topic-hd"},[e("a",{staticClass:"back-btn-wrap",attrs:{href:"javascript:;"},on:{click:t.back}},[e("i",{staticClass:"back-btn"})]),t._v(" "),e("h2",{staticClass:"title"},[t._v("设置尾巴")])]),t._v(" "),e("div",{staticClass:"box"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.tail,expression:"tail"}],staticClass:"input-text",attrs:{type:"text",placeholder:"造个尾巴玩玩吧",autofocus:""},domProps:{value:t._s(t.tail)},on:{keydown:function(e){t._k(e.keyCode,"enter",13)||t.resetTail(e)},input:function(e){e.target.composing||(t.tail=e.target.value)}}}),t._v(" "),e("a",{staticClass:"btn save-btn",attrs:{href:"javascript:;"},on:{click:t.resetTail}},[t._v("保存")])]),t._v(" "),e("tips",{attrs:{message:t.message},on:{cancelMessage:function(e){t.message=""}}})])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=(t.$createElement,t._c);return e("transition",{attrs:{name:"tips"}},[t.message?e("div",{staticClass:"tips-wrap"},[e("div",{staticClass:"tips",domProps:{textContent:t._s(t.message)}})]):t._e()])},staticRenderFns:[]}},function(t,e,n){var r=n(131);"string"==typeof r&&(r=[[t.id,r,""]]);n(15)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){var r=n(132);"string"==typeof r&&(r=[[t.id,r,""]]);n(15)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){var r=n(133);"string"==typeof r&&(r=[[t.id,r,""]]);n(15)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){var r=n(134);"string"==typeof r&&(r=[[t.id,r,""]]);n(15)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){var r=n(135);"string"==typeof r&&(r=[[t.id,r,""]]);n(15)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){var r=n(136);"string"==typeof r&&(r=[[t.id,r,""]]);n(15)(r,{});r.locals&&(t.exports=r.locals)},function(t,e,n){var r=n(137);"string"==typeof r&&(r=[[t.id,r,""]]);n(15)(r,{});r.locals&&(t.exports=r.locals)},function(t,e){!function(t){"use strict";function e(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function n(t){return"string"!=typeof t&&(t=String(t)),t}function r(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return g.iterable&&(e[Symbol.iterator]=function(){return e}),e}function o(t){this.map={},t instanceof o?t.forEach(function(t,e){this.append(e,t)},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function i(t){return t.bodyUsed?Promise.reject(new TypeError("Already read")):void(t.bodyUsed=!0)}function a(t){return new Promise(function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}})}function s(t){var e=new FileReader,n=a(e);return e.readAsArrayBuffer(t),n}function c(t){var e=new FileReader,n=a(e);return e.readAsText(t),n}function u(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r-1?e:t}function d(t,e){e=e||{};var n=e.body;if("string"==typeof t)this.url=t;else{if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new o(t.headers)),this.method=t.method,this.mode=t.mode,n||null==t._bodyInit||(n=t._bodyInit,t.bodyUsed=!0)}if(this.credentials=e.credentials||this.credentials||"omit",!e.headers&&this.headers||(this.headers=new o(e.headers)),this.method=p(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function h(t){var e=new FormData;return t.trim().split("&").forEach(function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(o))}}),e}function v(t){var e=new o;return t.split("\r\n").forEach(function(t){var n=t.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();e.append(r,o)}}),e}function m(t,e){e||(e={}),this.type="default",this.status="status"in e?e.status:200,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new o(e.headers),this.url=e.url||"",this._initBody(t)}if(!t.fetch){var g={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(g.arrayBuffer)var y=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],b=function(t){return t&&DataView.prototype.isPrototypeOf(t)},_=ArrayBuffer.isView||function(t){return t&&y.indexOf(Object.prototype.toString.call(t))>-1};o.prototype.append=function(t,r){t=e(t),r=n(r);var o=this.map[t];this.map[t]=o?o+","+r:r},o.prototype.delete=function(t){delete this.map[e(t)]},o.prototype.get=function(t){return t=e(t),this.has(t)?this.map[t]:null},o.prototype.has=function(t){return this.map.hasOwnProperty(e(t))},o.prototype.set=function(t,r){this.map[e(t)]=n(r)},o.prototype.forEach=function(t,e){for(var n in this.map)this.map.hasOwnProperty(n)&&t.call(e,this.map[n],n,this)},o.prototype.keys=function(){var t=[];return this.forEach(function(e,n){t.push(n)}),r(t)},o.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),r(t)},o.prototype.entries=function(){var t=[];return this.forEach(function(e,n){t.push([n,e])}),r(t)},g.iterable&&(o.prototype[Symbol.iterator]=o.prototype.entries);var w=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];d.prototype.clone=function(){return new d(this,{body:this._bodyInit})},f.call(d.prototype),f.call(m.prototype),m.prototype.clone=function(){return new m(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new o(this.headers),url:this.url})},m.error=function(){var t=new m(null,{status:0,statusText:""});return t.type="error",t};var x=[301,302,303,307,308];m.redirect=function(t,e){if(x.indexOf(e)===-1)throw new RangeError("Invalid status code");return new m(null,{status:e,headers:{location:t}})},t.Headers=o,t.Request=d,t.Response=m,t.fetch=function(t,e){return new Promise(function(n,r){var o=new d(t,e),i=new XMLHttpRequest;i.onload=function(){var t={status:i.status,statusText:i.statusText,headers:v(i.getAllResponseHeaders()||"")};t.url="responseURL"in i?i.responseURL:t.headers.get("X-Request-URL");var e="response"in i?i.response:i.responseText;n(new m(e,t))},i.onerror=function(){r(new TypeError("Network request failed"))},i.ontimeout=function(){r(new TypeError("Network request failed"))},i.open(o.method,o.url,!0),"include"===o.credentials&&(i.withCredentials=!0),"responseType"in i&&g.blob&&(i.responseType="blob"),o.headers.forEach(function(t,e){i.setRequestHeader(e,t)}),i.send("undefined"==typeof o._bodyInit?null:o._bodyInit)})},t.fetch.polyfill=!0}}("undefined"!=typeof self?self:this)},function(t,e){}]); //# sourceMappingURL=app.js.map ================================================ FILE: dist/commons.js ================================================ /*! * This file is created by hanyang * updated_at: Tue, 20 Dec 2016 02:42:34 GMT */ !function(t){function e(n){if(r[n])return r[n].exports;var i=r[n]={exports:{},id:n,loaded:!1};return t[n].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n=window.webpackJsonp;window.webpackJsonp=function(o,a){for(var s,c,u=0,l=[];u-1)return t.splice(n,1)}}function o(t,e){return oi.call(t,e)}function a(t){return"string"==typeof t||"number"==typeof t}function s(t){var e=Object.create(null);return function(n){var r=e[n];return r||(e[n]=t(n))}}function c(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 u(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function l(t,e){for(var n in e)t[n]=e[n];return t}function f(t){return null!==t&&"object"==typeof t}function p(t){return fi.call(t)===pi}function d(t){for(var e={},n=0;nvi._maxUpdateCount)){ji("You may have an infinite update loop "+(t.user?'in watcher with expression "'+t.expression+'"':"in a component render function."),t.vm);break}}Ai&&vi.devtools&&Ai.emit("flush"),z()}function K(t){var e=t.id;if(null==Yi[e]){if(Yi[e]=!0,to){for(var n=Zi.length-1;n>=0&&Zi[n].id>t.id;)n--;Zi.splice(Math.max(n,eo)+1,0,t)}else Zi.push(t);Qi||(Qi=!0,Oi(J))}}function G(t){io.clear(),W(t,io)}function W(t,e){var n,r,i=Array.isArray(t);if((i||f(t))&&Object.isExtensible(t)){if(t.__ob__){var o=t.__ob__.dep.id;if(e.has(o))return;e.add(o)}if(i)for(n=t.length;n--;)W(t[n],e);else for(r=Object.keys(t),n=r.length;n--;)W(t[r[n]],e)}}function Z(t){t._watchers=[],Y(t),et(t),X(t),Q(t),nt(t)}function Y(t){var e=t.$options.props;if(e){var n=t.$options.propsData||{},r=t.$options._propKeys=Object.keys(e),i=!t.$parent;Ii.shouldConvert=i;for(var o=function(i){var o=r[i];oo[o]&&ji('"'+o+'" is a reserved attribute and cannot be used as component prop.',t),O(t,o,U(o,e,n,t),function(){t.$parent&&!Ii.isSettingProps&&ji("Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: \""+o+'"',t)})},a=0;a1?u(n):n;for(var r=u(arguments,1),i=0,o=n.length;i-1:t.test(e)}function Gt(t){var e={};e.get=function(){return vi},e.set=function(){ji("Do not replace the Vue.config object, set individual fields instead.")},Object.defineProperty(t,"config",e),t.util=Bi,t.set=S,t.delete=j,t.nextTick=Oi,t.options=Object.create(null),vi._assetTypes.forEach(function(e){t.options[e+"s"]=Object.create(null)}),t.options._base=t,l(t.options.components,mo),Bt(t),qt(t),zt(t),Jt(t)}function Wt(t){for(var e=t.data,n=t,r=t;r.child;)r=r.child._vnode,r.data&&(e=Zt(r.data,e));for(;n=n.parent;)n.data&&(e=Zt(e,n.data));return Yt(e)}function Zt(t,e){return{staticClass:Xt(t.staticClass,e.staticClass),class:t.class?[t.class,e.class]:e.class}}function Yt(t){var e=t.class,n=t.staticClass;return n||e?Xt(n,Qt(e)):""}function Xt(t,e){return t?e?t+" "+e:t:e||""}function Qt(t){var e="";if(!t)return e;if("string"==typeof t)return t;if(Array.isArray(t)){for(var n,r=0,i=t.length;r-1?Mo[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Mo[t]=/HTMLUnknownElement/.test(e.toString())}function ne(t){if("string"==typeof t){var e=t;if(t=document.querySelector(t),!t)return ji("Cannot find element: "+e),document.createElement("div")}return t}function re(t,e){var n=document.createElement(t);return"select"!==t?n:(e.data&&e.data.attrs&&"multiple"in e.data.attrs&&n.setAttribute("multiple","multiple"),n)}function ie(t,e){return document.createElementNS(Oo[t],e)}function oe(t){return document.createTextNode(t)}function ae(t){return document.createComment(t)}function se(t,e,n){t.insertBefore(e,n)}function ce(t,e){t.removeChild(e)}function ue(t,e){t.appendChild(e)}function le(t){return t.parentNode}function fe(t){return t.nextSibling}function pe(t){return t.tagName}function de(t,e){t.textContent=e}function he(t,e,n){t.setAttribute(e,n)}function ve(t,e){var n=t.data.ref;if(n){var r=t.context,o=t.child||t.elm,a=r.$refs;e?Array.isArray(a[n])?i(a[n],o):a[n]===o&&(a[n]=void 0):t.data.refInFor?Array.isArray(a[n])&&a[n].indexOf(o)<0?a[n].push(o):a[n]=[o]:a[n]=o}}function me(t){return null==t}function ye(t){return null!=t}function ge(t,e){return t.key===e.key&&t.tag===e.tag&&t.isComment===e.isComment&&!t.data==!e.data}function be(t,e,n){var r,i,o={};for(r=e;r<=n;++r)i=t[r].key,ye(i)&&(o[i]=r);return o}function _e(e){function n(t){return new so(j.tagName(t).toLowerCase(),{},[],void 0,t)}function i(t,e){function n(){0===--n.listeners&&o(t)}return n.listeners=e,n}function o(t){var e=j.parentNode(t);e&&j.removeChild(e,t)}function s(t,e,n,r,i){if(t.isRootInsert=!i,!c(t,e,n,r)){var o=t.data,a=t.children,s=t.tag;ye(s)?(o&&o.pre&&E++,E||t.ns||vi.ignoredElements&&vi.ignoredElements.indexOf(s)>-1||!vi.isUnknownElement(s)||ji("Unknown custom element: <"+s+'> - did you register the component correctly? For recursive components, make sure to provide the "name" option.',t.context),t.elm=t.ns?j.createElementNS(t.ns,s):j.createElement(s,t),v(t),f(t,a,e),ye(o)&&d(t,e),l(n,t.elm,r),o&&o.pre&&E--):t.isComment?(t.elm=j.createComment(t.text),l(n,t.elm,r)):(t.elm=j.createTextNode(t.text),l(n,t.elm,r))}}function c(t,e,n,r){var i=t.data;if(ye(i)){var o=ye(t.child)&&i.keepAlive;if(ye(i=i.hook)&&ye(i=i.init)&&i(t,!1,n,r),ye(t.child))return h(t,e),o&&u(t,e,n,r),!0}}function u(t,e,n,r){for(var i,o=t;o.child;)if(o=o.child._vnode,ye(i=o.data)&&ye(i=i.transition)){for(i=0;ip?(u=me(n[v+1])?null:n[v+1].elm,m(t,u,n,f,v,r)):f>v&&g(t,e,l,p)}function w(t,e,n,r){if(t!==e){if(e.isStatic&&t.isStatic&&e.key===t.key&&(e.isCloned||e.isOnce))return e.elm=t.elm,void(e.child=t.child);var i,o=e.data,a=ye(o);a&&ye(i=o.hook)&&ye(i=i.prepatch)&&i(t,e);var s=e.elm=t.elm,c=t.children,u=e.children;if(a&&p(e)){for(i=0;i, or missing . Bailing hydration and performing full client-side render.")}t=n(t)}if(c=t.elm,u=j.parentNode(c),s(e,f,u,j.nextSibling(c)),e.parent){for(var h=e.parent;h;)h.elm=e.elm,h=h.parent;if(p(e))for(var v=0;v-1?e.split(/\s+/).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 Ue(t,e){if(e&&e.trim())if(t.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e);else{for(var n=" "+t.getAttribute("class")+" ",r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");t.setAttribute("class",n.trim())}}function Fe(t){ia(function(){ia(t)})}function Ve(t,e){(t._transitionClasses||(t._transitionClasses=[])).push(e),Ie(t,e)}function He(t,e){t._transitionClasses&&i(t._transitionClasses,e),Ue(t,e)}function Be(t,e,n){var r=qe(t,e),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===Xo?ea:ra,c=0,u=function(){t.removeEventListener(s,l),n()},l=function(e){e.target===t&&++c>=a&&u()};setTimeout(function(){c0&&(n=Xo,l=a,f=o.length):e===Qo?u>0&&(n=Qo,l=u,f=c.length):(l=Math.max(a,u),n=l>0?a>u?Xo:Qo:null,f=n?n===Xo?o.length:c.length:0);var p=n===Xo&&oa.test(r[ta+"Property"]);return{type:n,timeout:l,propCount:f,hasTransform:p}}function ze(t,e){for(;t.length1,j=n._enterCb=Ze(function(){O&&He(n,x),j.cancelled?(O&&He(n,w),A&&A(n)):C&&C(n),n._enterCb=null});t.data.show||kt(t.data.hook||(t.data.hook={}),"insert",function(){var e=n.parentNode,r=e&&e._pending&&e._pending[t.key];r&&r.context===t.context&&r.tag===t.tag&&r.elm._leaveCb&&r.elm._leaveCb(),k&&k(n,j)},"transition-insert"),$&&$(n),O&&(Ve(n,w),Ve(n,x),Fe(function(){He(n,w),j.cancelled||S||Be(n,o,j)})),t.data.show&&(e&&e(),k&&k(n,j)),O||S||j()}}}function Ge(t,e){function n(){m.cancelled||(t.data.show||((r.parentNode._pending||(r.parentNode._pending={}))[t.key]=t),u&&u(r),h&&(Ve(r,s),Ve(r,c),Fe(function(){He(r,s),m.cancelled||v||Be(r,a,m)})),l&&l(r,m),h||v||m())}var r=t.elm;r._enterCb&&(r._enterCb.cancelled=!0,r._enterCb());var i=We(t.data.transition);if(!i)return e();if(!r._leaveCb&&1===r.nodeType){var o=i.css,a=i.type,s=i.leaveClass,c=i.leaveActiveClass,u=i.beforeLeave,l=i.leave,f=i.afterLeave,p=i.leaveCancelled,d=i.delayLeave,h=o!==!1&&!wi,v=l&&(l._length||l.length)>1,m=r._leaveCb=Ze(function(){r.parentNode&&r.parentNode._pending&&(r.parentNode._pending[t.key]=null),h&&He(r,c),m.cancelled?(h&&He(r,s),p&&p(r)):(e(),f&&f(r)),r._leaveCb=null});d?d(n):n()}}function We(t){if(t){if("object"==typeof t){var e={};return t.css!==!1&&l(e,aa(t.name||"v")),l(e,t),e}return"string"==typeof t?aa(t):void 0}}function Ze(t){var e=!1;return function(){e||(e=!0,t())}}function Ye(t,e){e.data.show||Ke(e)}function Xe(t,e,n){var r=e.value,i=t.multiple;if(i&&!Array.isArray(r))return void ji(':\nv-model does not support dynamic input types. Use v-if branches instead.'),"select"===o?Kr(t,r,i):"input"===o&&"checkbox"===a?qr(t,r,i):"input"===o&&"radio"===a?zr(t,r,i):Jr(t,r,i),!0}function qr(t,e,n){null!=t.attrsMap.checked&&ss("<"+t.tag+' v-model="'+e+"\" checked>:\ninline checked attributes will be ignored when using v-model. Declare initial values in the component's data option instead.");var r=n&&n.number,i=An(t,"value")||"null",o=An(t,"true-value")||"true",a=An(t,"false-value")||"false";xn(t,"checked","Array.isArray("+e+")?_i("+e+","+i+")>-1:_q("+e+","+o+")"),Cn(t,"change","var $$a="+e+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$c){$$i<0&&("+e+"=$$a.concat($$v))}else{$$i>-1&&("+e+"=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{"+e+"=$$c}",null,!0)}function zr(t,e,n){null!=t.attrsMap.checked&&ss("<"+t.tag+' v-model="'+e+"\" checked>:\ninline checked attributes will be ignored when using v-model. Declare initial values in the component's data option instead.");var r=n&&n.number,i=An(t,"value")||"null";i=r?"_n("+i+")":i,xn(t,"checked","_q("+e+","+i+")"),Cn(t,"change",Wr(e,i),null,!0)}function Jr(t,e,n){"input"===t.tag&&t.attrsMap.value&&ss("<"+t.tag+' v-model="'+e+'" value="'+t.attrsMap.value+"\">:\ninline value attributes will be ignored when using v-model. Declare initial values in the component's data option instead."),"textarea"===t.tag&&t.children.length&&ss('

已输入

  • 取消
================================================ FILE: src/views/profile.vue ================================================ ================================================ FILE: src/views/recent_reply.vue ================================================ ================================================ FILE: src/views/recent_topic.vue ================================================ ================================================ FILE: src/views/tail.vue ================================================ ================================================ FILE: src/views/topic.vue ================================================ ================================================ FILE: src/vuex/actions.js ================================================ ================================================ FILE: src/vuex/getters.js ================================================ export const accesstoken = (state) => state.accesstoken export const tail = (state) => state.tail export const avatar = (state) => state.avatar export const nickname = (state) => state.nickname ================================================ FILE: src/vuex/store.js ================================================ import Vue from "vue" import Vuex from "vuex" Vue.use(Vuex) let data = {} localStorage.getItem("user") && (data = JSON.parse(localStorage.getItem("user"))) const state = { tail: data.tail || "", avatar: data.avatar || "", nickname: data.nickname || "", accesstoken: data.accesstoken || "" } const mutations = { accesstoken(state, accesstoken) { state.accesstoken = accesstoken }, nickname(state, nickname) { state.nickname = nickname }, avatar(state, avatar) { state.avatar = avatar }, tail(state, tail) { state.tail = tail } } const getters = { accesstoken: state => state.accesstoken, tail: state => state.tail, avatar: state => state.avatar, nickname: state => state.nickname } export default new Vuex.Store({ state, getters, mutations }) ================================================ FILE: webpack.config.babel.js ================================================ import path from "path" import precss from "precss" import webpack from "webpack" import autoprefixer from "autoprefixer" import HtmlWebpackPlugin from "html-webpack-plugin" import ExtractTextPlugin from "extract-text-webpack-plugin" let plugins = [ new ExtractTextPlugin("mobile.css"), new HtmlWebpackPlugin({ filename: "index.html", template: path.join(__dirname, "index.tpl"), chunks: ["app"], inject: "body", minify: { removeComments: true, collapseWhitespace: true } }), ] let devtool = "cheap-module-eval-source-map" const productionPlugins = [ new webpack.DefinePlugin({ "process.env": { NODE_ENV: JSON.stringify(process.env.NODE_ENV) } }), new webpack.optimize.UglifyJsPlugin({ compress: { warnings: false } }), new webpack.optimize.OccurrenceOrderPlugin(), new webpack.optimize.CommonsChunkPlugin("commons.js", ["app", "vendors"]), new webpack.BannerPlugin(`This file is created by hanyang\nupdated_at: ${(new Date).toGMTString()}`) ] if (process.env.NODE_ENV === "production") { plugins = plugins.concat(productionPlugins) devtool = "cheap-module-source-map" } export default { entry: { app: "./src/app.js", vendors: ["vue", "vue-router", "vuex"] }, output: { path: path.resolve(__dirname, "./dist"), filename: "[name].js", publicPath: "/static/cnode/" }, module: { loaders: [ { test: /\.vue$/, loader: "vue" }, { test: /\.js$/, //exclude: /node_modules/, include: path.resolve(__dirname, "src"), loader: "babel?cacheDirectory" }, { test: /\.css$/, loader: ExtractTextPlugin.extract("style-loader", "css!postcss") }, { test: /\.(png|jpg|gif|webp|ttf|svg|ico)$/, loader: "url-loader", query: { name: "[hash].[ext]", limit: 10000, } } ] }, vue: { postcss: [ precss, autoprefixer({ browsers: "> 5%" }) ] }, postcss: [ precss, autoprefixer({ browsers: "> 5%" }) ], plugins: plugins, resolve: { alias: { vue: "vue/dist/vue.js" }, extensions: ["", ".js", ".vue", "css"] }, devServer: { historyApiFallback: true, hot: true, inline: true, progress: true, proxy: { "/api/*": { target: "http://192.168.0.24:9000", secure: false } } }, devtool: devtool }