text: webpackJsonp([1],[,,,,,,function(t,e,n){"use strict";var s=n(20),a=n(168),i=n(12),r=n(144),o=n.n(r),c=n(143),l=n.n(c),u=n(145),p=n.n(u),f=n(139),v=n.n(f),d=n(137),m=n.n(d),h=n(138),_=n.n(h),b=n(140),g=n.n(b),x=n(141),y=n.n(x),C=n(146),w=n.n(C);s.a.use(a.a);var k=new a.a({routes:[{path:"/",name:"welcome",component:w.a},{path:"/setting",name:"setting",component:o.a,children:[{path:"proxy",component:p.a},{path:"*",component:l.a}]},{path:"/new",name:"new",component:v.a},{path:"/project",name:"project",component:y.a},{path:"/about",name:"about",component:m.a},{path:"/preview",name:"preview",component:g.a},{path:"/help",name:"help",component:_.a},{path:"*",redirect:"/"}]});k.beforeEach(function(t,e,n){if(document.body.scrollTop=0,!i.a.state.status&&"/"!==t.path)return n({path:"/",query:{source:t.path.slice(1)}});n()}),e.a=k},,,function(t,e,n){n(112);var s=n(0)(n(58),n(149),"data-v-0fec037e",null);t.exports=s.exports},,,function(t,e,n){"use strict";var s=n(20),a=n(44);s.a.use(a.a),e.a=new a.a.Store({state:{status:0,config:{},project:[],firebase:0},mutations:{init:function(t,e){t.status=1,t.config=e.config,t.firebase=e.firebase,t.project=e.project},addToProject:function(t,e){t.project=t.project.concat(e)}},getters:{userConfig:function(t){return t.config},firebase:function(t){return t.firebase}}})},,,,,,,function(t,e,n){n(115);var s=n(0)(n(60),n(153),"data-v-26dea962",null);t.exports=s.exports},,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";var s=[];e.a=function(t,e){t.prototype.$notice=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"success",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"操作成功";"hock"===t?s.push(e):s.forEach(function(n){n(t,e)})}}},function(t,e,n){"use strict";var s=n(13),a=n.n(s);e.a=function(t,e){t.prototype.$sleep=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:600;return new a.a(function(e){setTimeout(function(){e()},t)})}}},function(t,e){},function(t,e,n){var s=n(0)(n(52),n(156),null,null);t.exports=s.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=n(20),a=n(48),i=n.n(a),r=n(6),o=n(46),c=n(45),l=n(12),u=n(47);n.n(u);s.a.config.productionTip=!1,s.a.use(o.a),s.a.use(c.a),new s.a({el:"#app",router:r.a,template:"<App/>",store:l.a,components:{App:i.a}})},function(t,e,n){"use strict";var s=n(51);n.d(e,"a",function(){return s.a})},function(t,e,n){"use strict";var s=n(13),a=n.n(s),i=n(12);e.a=function(){return new a.a(function(t){var e={firebase:0,config:{developDomain:"http://localhost",developPort:"5000",apiServerPort:"5002",apiType:"mock",autoOpenBrowser:!1,realTimeLog:!1},project:[{name:"101016",author:"pathen",description:"萌节",path:"http://live.bilibili.com/hd/101016",type:"activity"},{name:"anniversary",author:"pathen",description:"7th Anniversary",path:"http://live.bilibili.com/anniversary",type:"activity"},{name:"election",author:"pathen",description:"绘画选举",path:"http://live.bilibili.com/hd/election",type:"activity"},{name:"deepspace",author:"pathen",description:"点标题5下看游戏彩蛋～",path:"http://live.bilibili.com/hd/deepspace",type:"activity"},{name:"lastorder",author:"pathen",description:"Last Order",path:"http://live.bilibili.com/hd/lastorder",type:"activity"},{name:"carnival2nd",author:"pathen",description:"Hyper·春Carnival·2nd",path:"http://live.bilibili.com/hd/carnival2nd",type:"activity"}]};i.a.commit("init",e),t()})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=n(136),a=n.n(s),i=n(134),r=n.n(i),o=n(132),c=n.n(o),l=n(133),u=n.n(l);e.default={name:"app",components:{motionBack:u.a,sidebar:a.a,notice:r.a,logger:c.a},computed:{show:function(){return"/"!==this.$route.path},hasLog:function(){return this.$store.state.config.realTimeLog}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=n(6);e.default={methods:{link:function(t){this.hasDrag||window.open(t)},preview:function(t,e){s.a.push({name:"preview",query:{name:t,type:e}})}},props:["item","hasDrag"]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=n(4),a=n.n(s),i=n(3),r=n.n(i),o=n(19),c=n.n(o);e.default={data:function(){return{busy:0}},methods:{check:function(t){if(!t.valid)return!0;switch(t.valid){case"noEmpty":if(!t.val)return!1}return!0},confirm:function(){var t=this;return r()(a.a.mark(function e(){var n,s,i;return a.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if("function"==typeof t.submit&&!t.busy){e.next=2;break}return e.abrupt("return");case 2:n=!0,s={};for(i in t.formData)t.formData[i].timestamp&&t.formData[i].timestamp++,n&&!t.check(t.formData[i])&&(n=!1),s[i]=t.formData[i].val;if(t.busy=1,n){e.next=10;break}t.$notice("error","部分选项填写有误，请检查后重新提交。"),e.next=18;break;case 10:return e.prev=10,e.next=13,t.submit(s);case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(10),t.$notice("error",e.t0);case 18:t.busy=0;case 19:case"end":return e.stop()}},e,t,[[10,15]])}))()}},props:["items","config","submit"],components:{textInput:c.a},computed:{formData:function(){for(var t in this.items)this.items[t].timestamp=1;return this.items}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={props:["color"]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={data:function(){return{active:!1}},computed:{onLog:function(){return this.$store.state.config.realTimeLog}},watch:{onLog:function(t,e){t&&!this.active&&(this.active=!0,this.start())}},methods:{start:function(){var t=this,e=new EventSource("/__ssr/log");e.addEventListener("message",function(e){var n=e.data;if(!(n.indexOf("|SSR-")>-1)){var s=document.createElement("pre");s.innerHTML=n,t.$refs.logspace.appendChild(s),s=null;var a=t.$refs.rootlog,i=t.$refs.logspace;a.scrollTop=i.clientHeight-a.clientHeight+60}}),e.addEventListener("error",function(t){console.log(t),e.close()})}},mounted:function(){this.onLog&&!this.active&&(this.active=!0,this.start())}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={methods:{showMsg:function(t,e){var n=this,s=document.createElement("div");s.className="notice animateIn "+t,s.innerHTML=e,this.$refs.parent.appendChild(s),setTimeout(function(){s.className+=" animateOut",setTimeout(function(){n.$refs.parent.removeChild(s),s=null},650)},2e3)}},mounted:function(){var t=this;this.$notice("hock",function(e,n){t.showMsg(e,n)})}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=n(135),a=n.n(s);e.default={props:["title","subtitle","busy"],components:{progressBar:a.a}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=n(6);e.default={data:function(){return{menu:[{label:"+ NEW",name:"new"},{label:"PROJECTS",name:"project"},{label:"SETTINGS",name:"setting"},{label:"ABOUT",name:"about"}]}},methods:{jump:function(t){s.a.push({name:t})}},computed:{path:function(){return this.$route.path.slice(1)}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={data:function(){return{active:0,valid:1,val:""}},props:["info","state","name","change","timestamp"],watch:{val:function(t){this.state[this.name]=t},timestamp:function(){this.onChange()}},methods:{onFocus:function(){this.active=1},onBlur:function(){this.active=0},onChange:function(){this.change&&(this.valid=this.change(this.state))}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=n(9),a=n.n(s);e.default={data:function(){return{title:"关于我",subtitle:"千里之行，始于 <div>Hello World.</div>"}},components:{sectionBox:a.a}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=n(9),a=n.n(s);e.default={data:function(){return{title:"版本信息",subtitle:"这里展示了近期的版本更新内容。"}},components:{sectionBox:a.a}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=n(4),a=n.n(s),i=n(3),r=n.n(i),o=n(13),c=n.n(o),l=n(9),u=n.n(l),p=n(19),f=n.n(p),v=n(130),d=n.n(v),m=n(12);e.default={data:function(){return{title:"创建新作品",subtitle:"我们已经为你准备好了一切，只差一个好名字。",busy:0,formConfig:{valid:!1,confirmText:"即刻创建"},formItems:{name:{val:"",tag:"作品名称",tip:"如果是多个词语组合，请使用驼峰形式",type:"input",placeholder:"your project name",valid:"noEmpty"},author:{val:"",tag:"艺术家",tip:"你的名字",type:"input",placeholder:"project author",valid:"noEmpty"},description:{val:"",tag:"描述",tip:"我有一个大胆的想法...",type:"input",placeholder:"describe your project",valid:"noEmpty"},path:{val:"",tag:"公网路径（选填）",tip:"作品公网路径与输出html文件名。例demo，则输出hmtl为demo.html，访问路径为/demo，默认与作品名称保持一致。",type:"input",placeholder:"your project public path"},cover:{val:"",tag:"封面地址（选填）",tip:"用于开发环境中显示的作品封面图。",type:"input",placeholder:"your cover url"},ssr:{val:!0,tag:"其他选项",type:"checkbox",detail:"是否支持SSR"}}}},components:{sectionBox:u.a,textInput:f.a,former:d.a},methods:{createProject:function(t){var e=this;return new c.a(function(){var n=r()(a.a.mark(function n(s){return a.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return t.path="",t.cover="",e.busy=1,m.a.commit("addToProject",t),n.next=6,e.$sleep(1200);case 6:e.$notice("success","已为你创建作品"+t.name+"。"),e.busy=0,s();case 9:case"end":return n.stop()}},n,e)}));return function(t){return n.apply(this,arguments)}}())}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=n(9),a=n.n(s);e.default={data:function(){return{title:"发布预览",subtitle:"下面，就是见证奇迹的时刻。"}},methods:{start:function(t,e){this.$notice("error","在开发服务器离线时不提供该功能预览。")}},computed:{list:function(){return this.$store.state.project},config:function(){return this.$store.state.config},project:function(){return{name:this.$route.query.name,type:this.$route.query.type}}},components:{sectionBox:a.a}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=n(4),a=n.n(s),i=n(3),r=n.n(i),o=n(142),c=n.n(o),l=n(129),u=n.n(l),p=0,f=0,v=0;e.default={data:function(){return{load:0,busy:0,isDrag:0,hasDrag:0,mx:0,toolFunc:{refreshList:this.refreshList}}},methods:{refreshList:function(t){var e=this;return r()(a.a.mark(function t(){return a.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e.busy=1,t.prev=1,t.next=4,e.$sleep();case 4:e.$notice("success","列表已更新。"),t.next=10;break;case 7:t.prev=7,t.t0=t.catch(1),e.$notice("error",t.t0);case 10:e.busy=0;case 11:case"end":return t.stop()}},t,e,[[1,7]])}))()},drag:function(t){if(this.isDrag){this.hasDrag=1;var e=t.clientX-p,n=f+2*e;n>0?n=0:n<0-this.listLen&&(n=0-this.listLen),this.mx=n}},dragStart:function(t){v=t.timeStamp,this.hasDrag=0,this.isDrag=1,p=t.clientX},dragEnd:function(t){t.timeStamp-v<120&&(this.hasDrag=0),this.isDrag=0,f=this.mx}},computed:{list:function(){return this.$store.state.project},listLen:function(){return 260*this.list.length},listStyle:function(){return{width:this.listLen+300+"px",transform:"translateX("+this.mx+"px)"}}},components:{card:u.a,quickTool:c.a},mounted:function(){var t=this;setTimeout(function(){t.load=1},200)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=n(4),a=n.n(s),i=n(3),r=n.n(i),o=n(6);e.default={data:function(){return{state:{clean:0}}},methods:{jump:function(t){o.a.push(t)},clean:function(){var t=this;return r()(a.a.mark(function e(){return a.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.state.clean){e.next=2;break}return e.abrupt("return");case 2:return t.state.clean=1,e.prev=3,e.next=6,t.$sleep();case 6:t.$notice("success","已清理工作环境。"),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(3),t.$notice("error",e.t0);case 12:t.state.clean=0;case 13:case"end":return e.stop()}},e,t,[[3,9]])}))()}},props:["func"]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=n(71),a=n.n(s),i=n(4),r=n.n(i),o=n(3),c=n.n(o),l=n(73),u=n.n(l),p=n(9),f=n.n(p),v=n(19),d=n.n(v),m=n(44);e.default={data:function(){return{title:"设置",subtitle:"你拍一，我拍一。",busy:0,config:{developDomain:"",developPort:"",apiServerPort:"",apiType:"",autoOpenBrowser:!1,realTimeLog:!1}}},components:{sectionBox:f.a,textInput:d.a},computed:u()({},n.i(m.b)(["userConfig","firebase"])),watch:{userConfig:function(){this.bindConfig()}},methods:{saveSetting:function(t,e){var n=this;return c()(r.a.mark(function t(){return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!n.busy){t.next=2;break}return t.abrupt("return");case 2:return n.busy=1,t.next=5,n.$sleep(1200);case 5:n.$notice("success","已提交更改。"),n.busy=0;case 7:case"end":return t.stop()}},t,n)}))()},bindConfig:function(){this.config=JSON.parse(a()(this.userConfig))}},mounted:function(){this.bindConfig()}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=n(6);e.default={computed:{childpath:function(){return this.$route.path}},watch:{childpath:function(t){"/setting"===t&&s.a.push("/setting/general")}},mounted:function(){"/setting"===this.$route.path&&s.a.push("/setting/general")}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=n(4),a=n.n(s),i=n(3),r=n.n(i),o=n(19),c=n.n(o),l=n(9),u=n.n(l);e.default={data:function(){return{title:"路由代理",subtitle:"条条大路通罗马。",list:[{url:"/test1",active:0},{url:"/test2",active:1}],edit:{rule:""}}},components:{sectionBox:u.a,textInput:c.a},methods:{updateRule:function(t,e){var n=this;return r()(a.a.mark(function e(){return a.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.$sleep();case 2:if("add"!==t){e.next=8;break}if(n.edit.rule){e.next=7;break}return e.abrupt("return",n.$notice("error","规则不能为空."));case 7:n.list=n.list.concat({url:n.edit.rule,active:1});case 8:n.$notice("success","操作成功，接口服务器已更新。");case 9:case"end":return e.stop()}},e,n)}))()}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=n(4),a=n.n(s),i=n(3),r=n.n(i),o=n(131),c=n.n(o),l=n(50),u=n(6);e.default={data:function(){return{show:0,exception:0,error:""}},components:{loading:c.a},mounted:function(){var t=this;return r()(a.a.mark(function e(){return a.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return setTimeout(function(){t.show=1},200),e.prev=1,e.next=4,n.i(l.a)();case 4:return e.next=6,t.$sleep(1200);case 6:u.a.push(t.$route.query.source||"project"),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(1),t.exception=1,t.error=e.t0||"服务器超时或没有响应。";case 13:case"end":return e.stop()}},e,t,[[1,9]])}))()}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},,,function(t,e,n){n(122);var s=n(0)(n(53),n(161),"data-v-6518db88",null);t.exports=s.exports},function(t,e,n){n(111);var s=n(0)(n(54),n(148),"data-v-0da81f2e",null);t.exports=s.exports},function(t,e,n){n(120);var s=n(0)(n(55),n(159),"data-v-56a4f24c",null);t.exports=s.exports},function(t,e,n){var s=n(0)(n(56),n(151),null,null);t.exports=s.exports},function(t,e,n){n(110);var s=n(0)(null,n(147),"data-v-08fca23c",null);t.exports=s.exports},function(t,e,n){n(124);var s=n(0)(n(57),n(163),null,null);t.exports=s.exports},function(t,e,n){n(114);var s=n(0)(null,n(152),"data-v-1f8aabe5",null);t.exports=s.exports},function(t,e,n){n(116);var s=n(0)(n(59),n(154),"data-v-2b9088fa",null);t.exports=s.exports},function(t,e,n){n(119);var s=n(0)(n(61),n(158),"data-v-4f79f5a4",null);t.exports=s.exports},function(t,e,n){n(117);var s=n(0)(n(62),n(155),"data-v-3aa832a0",null);t.exports=s.exports},function(t,e,n){var s=n(0)(n(63),n(164),null,null);t.exports=s.exports},function(t,e,n){n(126);var s=n(0)(n(64),n(166),"data-v-d9845528",null);t.exports=s.exports},function(t,e,n){n(113);var s=n(0)(n(65),n(150),"data-v-1165e906",null);t.exports=s.exports},function(t,e,n){n(123);var s=n(0)(n(66),n(162),"data-v-6ad7da46",null);t.exports=s.exports},function(t,e,n){n(118);var s=n(0)(n(67),n(157),"data-v-4b63a08a",null);t.exports=s.exports},function(t,e,n){var s=n(0)(n(68),n(167),null,null);t.exports=s.exports},function(t,e,n){n(125);var s=n(0)(n(69),n(165),"data-v-c8ae2ce0",null);t.exports=s.exports},function(t,e,n){n(121);var s=n(0)(n(70),n(160),"data-v-592b677a",null);t.exports=s.exports},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},staticRenderFns:[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"motion-view"},[n("div",{staticClass:"blocker v1"}),n("div",{staticClass:"blocker v2"}),n("div",{staticClass:"blocker v3"})])}]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"former"},[t._l(t.formData,function(e,s){return n("div",[n("h5",{domProps:{textContent:t._s(e.tag)}}),n("p",{staticClass:"tip",domProps:{textContent:t._s(e.tip)}}),n("p",{staticClass:"edit"},["input"===e.type?n("text-input",{attrs:{state:e,name:"val",info:e.placeholder,change:t.check,timestamp:e.timestamp}}):t._e(),"checkbox"===e.type?n("label",[n("i",{staticClass:"pre-sq",class:[e.val?"icon-sq-check":"icon-sq"]}),n("input",{directives:[{name:"model",rawName:"v-model",value:e.val,expression:"item.val"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.val)?t._i(e.val,null)>-1:e.val},on:{__c:function(n){var s=e.val,a=n.target,i=!!a.checked;if(Array.isArray(s)){var r=t._i(s,null);i?r<0&&(e.val=s.concat(null)):r>-1&&(e.val=s.slice(0,r).concat(s.slice(r+1)))}else e.val=i}}}),n("span",{domProps:{textContent:t._s(e.detail)}})]):t._e()],1)])}),t._t("default"),n("p",{staticClass:"action"},[n("span",{directives:[{name:"show",rawName:"v-show",value:t.config.confirmText,expression:"config.confirmText"}],staticClass:"btn",class:{disable:t.busy},attrs:{role:"button"},domProps:{textContent:t._s(t.config.confirmText)},on:{click:t.confirm}})])],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"section-box",class:{onload:!0}},[n("h2",{staticClass:"se-title onload"},[t._v(t._s(t.title))]),n("h5",{staticClass:"se-subtitle onload"},[t._v(t._s(t.subtitle))]),t._t("default"),n("div",{staticClass:"se-loading-container"},[n("progress-bar",{staticClass:"se-loading",class:{busy:t.busy}})],1)],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:{load:!0}},[n("div",{staticClass:"title-bar"},[n("h2",[t._v("我的作品集")]),n("div",{staticClass:"action"},[n("quick-tool",{attrs:{func:t.toolFunc}}),n("i",{staticClass:"icon-refresh",class:{busy:t.busy},attrs:{title:"刷新列表"},on:{click:t.refreshList}})],1)]),n("div",{staticClass:"project-list",on:{mousedown:t.dragStart,mousemove:t.drag,mouseup:t.dragEnd,mouseleave:t.dragEnd}},[n("div",{staticClass:"drag-container"},[n("div",{staticClass:"projects",style:t.listStyle},t._l(t.list,function(e,s){return n("card",{key:"index",attrs:{hasDrag:t.hasDrag,item:e}})}))])])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"rootlog"},[n("div",{ref:"logspace"})])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},staticRenderFns:[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"progress"},[n("div",{staticClass:"bar"})])}]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"input-area",class:{focus:t.active,error:!t.valid}},[n("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.val,expression:"val",modifiers:{trim:!0}}],attrs:{type:"text",placeholder:t.info},domProps:{value:t.val},on:{focus:t.onFocus,blur:[t.onBlur,function(e){t.$forceUpdate()}],change:t.onChange,input:function(e){e.target.composing||(t.val=e.target.value.trim())}}})])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"sidebar-container"},[n("div",{staticClass:"sidebar"},[n("p",{staticClass:"figure"},t._l(t.menu,function(e){return n("i",{staticClass:"dot",class:{active:t.path.indexOf(e.name)>-1}})})),t._l(t.menu,function(e){return n("p",{staticClass:"link-bar",class:{active:t.path.indexOf(e.name)>-1}},[n("a",{staticClass:"link",on:{click:function(n){t.jump(e.name)}}},[t._v(t._s(e.label))])])})],2)])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section-box",{attrs:{title:t.title,subtitle:t.subtitle}},[n("h4",[t._v("LOOKBOOK")]),n("h5",[t._v("lastest version 1.0.2 by pathen @2017.6")]),n("hr"),n("h3",[t._v("version 1.0.2")]),n("p",[t._v("1. 移动端样式优化")]),n("h3",[t._v("version 1.0.1")]),n("p",[t._v("1. 兼容移动端样式")]),n("p",[t._v("2. 其他小的问题修复")]),n("h3",[t._v("version 1.0.0")]),n("p",[t._v("1. 在本地添加了我的项目信息")]),n("p",[t._v("2. 重写了与工作有关的代码，包括开发环境有关的接口和变量。")]),n("p",[t._v("3. 优化了视觉信息和错误处理。")])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"app"}},[n("div",{staticClass:"include",class:{show:t.show}},[n("sidebar"),n("notice"),n("motion-back")],1),n("div",{staticClass:"router-container",class:{seperate:t.hasLog}},[n("div",{staticClass:"container"},[n("router-view")],1),n("logger",{directives:[{name:"show",rawName:"v-show",value:t.show&&t.hasLog,expression:"show && hasLog"}],staticClass:"log-area"})],1)])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section-box",{attrs:{title:t.title,subtitle:t.subtitle,busy:t.busy}},[n("h3",{staticStyle:{"margin-top":"18px"}},[t._v("服务与通信")]),n("p",{staticClass:"tip"},[t._v("当前配置下访问项目的路径为："+t._s(t.config.developDomain)+":"+t._s(t.config.developPort)+"/project-name")]),n("h5",[t._v("默认启动域名")]),n("p",{staticClass:"tip"},[t._v("可以设置成你绑定的域名，例如 dev.com 以获取网站cookie，需要带上 http 或 https。")]),n("p",{staticClass:"edit"},[n("text-input",{attrs:{state:t.config,name:"developDomain",info:"http://localhost"}})],1),n("h5",[t._v("开发服务器端口")]),n("p",{staticClass:"tip"},[t._v("用于启动开发环境、项目打包和操作相关配置。")]),n("p",{staticClass:"edit"},[n("text-input",{attrs:{state:t.config,name:"developPort",info:"5000"}})],1),n("h5",[t._v("接口服务器端口")]),n("p",{staticClass:"tip"},[t._v("用于SSR数据获取、代理请求、模拟请求和线上请求。")]),n("p",{staticClass:"edit"},[n("text-input",{attrs:{state:t.config,name:"apiServerPort",info:"5002"}})],1),n("h3",[t._v("接口")]),n("h5",[t._v("接口环境")]),n("p",{staticClass:"tip"},[t._v("可以选择的值 mock, proxy, online, 当同时设置时，请求优先级为 mock > proxy > online。")]),n("p",{staticClass:"tip"},[t._v("mock 相关配置请在 /mock 下添加或更改。")]),n("p",{staticClass:"edit type-select"},[n("label",[n("i",{staticClass:"pre-radio",class:["mock"===t.config.apiType?"icon-cr-check":"icon-cr"]}),n("input",{directives:[{name:"model",rawName:"v-model",value:t.config.apiType,expression:"config.apiType"}],attrs:{type:"radio",name:"apitype",value:"mock"},domProps:{checked:t._q(t.config.apiType,"mock")},on:{__c:function(e){t.config.apiType="mock"}}}),n("span",[t._v("mock")])]),n("label",[n("i",{staticClass:"pre-radio",class:["proxy"===t.config.apiType?"icon-cr-check":"icon-cr"]}),n("input",{directives:[{name:"model",rawName:"v-model",value:t.config.apiType,expression:"config.apiType"}],attrs:{type:"radio",name:"apitype",value:"proxy"},domProps:{checked:t._q(t.config.apiType,"proxy")},on:{__c:function(e){t.config.apiType="proxy"}}}),n("span",[t._v("proxy")])]),n("label",[n("i",{staticClass:"pre-radio",class:["online"===t.config.apiType?"icon-cr-check":"icon-cr"]}),n("input",{directives:[{name:"model",rawName:"v-model",value:t.config.apiType,expression:"config.apiType"}],attrs:{type:"radio",name:"apitype",value:"online"},domProps:{checked:t._q(t.config.apiType,"online")},on:{__c:function(e){t.config.apiType="online"}}}),n("span",[t._v("online")])])]),n("h3",[t._v("开发环境")]),n("h5",[t._v("自动打开欢迎页面")]),n("p",{staticClass:"edit"},[n("label",[n("i",{staticClass:"pre-sq",class:[t.config.autoOpenBrowser?"icon-sq-check":"icon-sq"]}),n("input",{directives:[{name:"model",rawName:"v-model",value:t.config.autoOpenBrowser,expression:"config.autoOpenBrowser"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.config.autoOpenBrowser)?t._i(t.config.autoOpenBrowser,null)>-1:t.config.autoOpenBrowser},on:{__c:function(e){var n=t.config.autoOpenBrowser,s=e.target,a=!!s.checked;if(Array.isArray(n)){var i=t._i(n,null);a?i<0&&(t.config.autoOpenBrowser=n.concat(null)):i>-1&&(t.config.autoOpenBrowser=n.slice(0,i).concat(n.slice(i+1)))}else t.config.autoOpenBrowser=a}}}),n("span",[t._v("当开发服务器启动后自动打开游览器，跳转至欢迎页面")])])]),n("h5",[t._v("显示服务器日志（当前版本暂时停用）")]),n("p",{staticClass:"tip"},[t._v("某些系统下可能会出现常驻窗口，不影响使用。可以关闭该功能以提升性能，在终端中使用 pm2 logs 查看。")]),n("p",{staticClass:"tip"},[n("label",[n("i",{staticClass:"pre-sq",class:[t.config.realTimeLog?"icon-sq-check":"icon-sq"]}),n("input",{attrs:{type:"checkbox"},domProps:{value:t.config.realTimeLog}}),n("span",[t._v("是否在页面上显示服务器日志")])])]),n("h5",[t._v("Firebase (实验)")]),n("p",{staticClass:"tip"},[t._v("想在所有 live-area 仓库中共享个性化配置？现在你可以选择 Firebase. 具体配置方式请参考 /firebase.")]),n("p",{staticClass:"edit"},[n("label",[n("i",{staticClass:"pre-sq",class:[t.firebase?"icon-sq-check":"icon-sq"]}),n("span",{staticStyle:{"margin-left":"20px"}},[t._v("当前环境是否已启用 firebase")])])]),n("h3",[t._v("安全")]),n("h5",[t._v("访问控制（实验）")]),n("p",{staticClass:"tip"},[t._v("该设置仅对开发服务器有效，接口服务器不受影响。")]),n("p",{staticClass:"edit"},[n("label",[n("i",{staticClass:"pre-sq",class:[t.config.accessLimit?"icon-sq-check":"icon-sq"]}),n("input",{directives:[{name:"model",rawName:"v-model",value:t.config.accessLimit,expression:"config.accessLimit"}],attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.config.accessLimit)?t._i(t.config.accessLimit,null)>-1:t.config.accessLimit},on:{__c:function(e){var n=t.config.accessLimit,s=e.target,a=!!s.checked;if(Array.isArray(n)){var i=t._i(n,null);a?i<0&&(t.config.accessLimit=n.concat(null)):i>-1&&(t.config.accessLimit=n.slice(0,i).concat(n.slice(i+1)))}else t.config.accessLimit=a}}}),n("span",[t._v("只允许本机访问开发服务器")])])]),n("p",{staticClass:"tip",staticStyle:{"margin-top":"50px"}},[t._v("* 当前页面的更改需要手动重启服务器以生效。")]),n("p",{staticClass:"tip"},[t._v("* 实验性功能未经过完整测试，如出现问题，请重启服务器或重设为默认值。")]),t.firebase?t._e():n("p",{staticClass:"action"},[n("span",{staticClass:"btn",class:{disable:t.busy},on:{click:function(e){t.saveSetting(0,0)}}},[t._v("保存更改")]),n("span",{staticClass:"btn",class:{disable:t.busy},staticStyle:{"margin-left":"20px"},on:{click:function(e){t.saveSetting(0,1)}}},[t._v("重设为默认值")])]),n("p",{directives:[{name:"show",rawName:"v-show",value:t.firebase,expression:"firebase"}],staticClass:"action"},[n("span",{staticClass:"btn",class:{disable:t.busy},on:{click:function(e){t.saveSetting(1,0)}}},[t._v("同步更改")]),n("span",{staticClass:"btn",class:{disable:t.busy},staticStyle:{"margin-left":"20px"},on:{click:function(e){t.saveSetting(1,1)}}},[t._v("重设为默认值")])])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section-box",{attrs:{title:t.title,subtitle:t.subtitle}},[n("h4",[t._v("LOOKBOOK 2016-2017")]),n("hr",{staticStyle:{"margin-bottom":"1.5em"}}),n("h3",[t._v("Hola.")]),n("p",[n("span",[t._v("这原本是一个我在工作中编写的前端开发工具，支持非SSR项目与SSR项目的搭建，开发，构建和模拟。")]),n("span",[t._v("经过特定修改后，作为了我的个人作品展示页面。里面大多数接口信息和与工作有关的变量已经被去除，但还是保留了一些项目以供预览和相互交流。")]),n("span",[t._v("在项目一页中，你可以看到我以往的一些作品，当然主要是活动页面（这些开发相对独立），除此之外我还会参与其他业务迭代和基础架构平台的搭建。")])]),n("h3",[t._v("技术栈")]),n("p",[n("span",[t._v("以下是我在工作中用到的一些技术(排名不分先后)，我并不是某方面的专家，但是我会用他们来解决问题以及做一些")]),n("span",{staticStyle:{"text-decoration":"underline",color:"#FF9800","font-weight":"bold"}},[t._v("创造性")]),n("span",[t._v("的事情！")])]),n("p",[t._v("[ 框架 ]")]),n("ul",[n("li",[t._v("vue 1.x / 2.x / vue-ssr")]),n("li",[t._v("angluar 1.x")])]),n("p",[t._v("[ 构建 ]")]),n("ul",[n("li",[t._v("webpack 1 / 2")]),n("li",[t._v("gulp")])]),n("p",[t._v("[ 动画 ]")]),n("ul",[n("li",[t._v("webgl for 3d/2d (threejs, learning glsl)")]),n("li",[t._v("createjs for 2d")]),n("li",[t._v("css3 && svg")])]),n("p",[t._v("[ 其他 ]")]),n("ul",[n("li",[t._v("typescript    ")]),n("li",[t._v("stylus / sass")]),n("li",[t._v("nodejs")]),n("li",[t._v("mongodb")]),n("li",[t._v("vagrant")])]),n("p",[t._v("有时候我还得需要使用他们：")]),n("ul",[n("li",[t._v("ps （什么？这是切图仔的基本功？）")]),n("li",[t._v("ai （做矢量的不错选择）")]),n("li",[t._v("3dmax （抱歉我不是建模砖家）")]),n("li",[t._v("garageband （加上一点灵感)")])]),n("p",[t._v("当然在我工作过程中我还有时候还会需要其他一些语言来帮助我完成某个特定的工作，例如：")]),n("ul",[n("li",[t._v(".net ／ php / java ／ mssql")])]),n("h5",[t._v("祝你访问愉快～ （2017.6）")])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{attrs:{width:"80",height:"80",viewPort:"0 0 80 80"}},[n("circle",{staticClass:"circle",attrs:{cx:"40",cy:"40",r:"20","stroke-width":"4",stroke:t.color||"#03a9f4",fill:"none"}})])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"welcome"},[n("div",{staticClass:"title",class:{show:t.show}},[t._v("LOOKBOOK")]),n("div",{directives:[{name:"show",rawName:"v-show",value:!t.exception,expression:"!exception"}],staticClass:"loading",class:{show:t.show}},[n("loading")],1),n("div",{directives:[{name:"show",rawName:"v-show",value:t.exception,expression:"exception"}],staticClass:"error"},[n("p",[t._v("由于以下原因，服务器无法启动：")]),n("p",[t._v(t._s(t.error))])])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"item"},[n("h5",[t._v("来自艺术家 "+t._s(t.item.author))]),n("h5",{staticClass:"preview",on:{click:function(e){t.preview(t.item.name,t.item.type)}}},[t._v("发布预览")]),n("div",{on:{click:function(e){t.link(t.item.path)}}},[n("div",{staticClass:"cover",class:["lb-"+t.item.name]}),n("div",{staticClass:"detail"},[n("p",{staticClass:"name"},[t._v(t._s(t.item.name))]),n("p",{staticClass:"desc"},[t._v(t._s(t.item.description))])])])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"quick-tool"},[n("div",{staticClass:"wrap"},[n("i",{staticClass:"icon-more"}),n("a",{staticClass:"icon-room animate-in i1"},[n("i",{staticClass:"icon-flag",attrs:{title:"快速入门"},on:{click:function(e){t.jump("help")}}})]),n("a",{staticClass:"icon-room animate-in i2"},[n("i",{staticClass:"icon-layers",attrs:{title:"proxy列表"},on:{click:function(e){t.jump("setting/proxy")}}})]),n("a",{staticClass:"icon-room animate-in i3"},[n("i",{staticClass:"icon-zap",class:{busy:t.state.clean},attrs:{title:"快速清理"},on:{click:t.clean}})]),n("a",{staticClass:"icon-room animate-in i4"},[n("i",{staticClass:"icon-eye-off",attrs:{title:"清除访问记录"},on:{click:function(e){t.func.refreshList()}}})])])])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{ref:"parent",staticClass:"notice-area"})},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section-box",{attrs:{title:t.title,subtitle:t.subtitle,busy:t.busy}},[n("former",{attrs:{items:t.formItems,config:t.formConfig,submit:t.createProject}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.formItems.name.val,expression:"formItems.name.val"}]},[n("p",{staticClass:"tip",staticStyle:{"margin-top":"1em"}},[t._v("点击创建将在 project/src 下创建 "+t._s(t.formItems.name.val)+" 文件夹，文件夹中已包含一些必要的作品文件。")]),n("p",{directives:[{name:"show",rawName:"v-show",value:t.formItems.ssr.val,expression:"formItems.ssr.val"}],staticClass:"tip"},[t._v("在 project/service 下会生成一个 srv."+t._s(t.formItems.name.val)+".js 文件，在这里，你可以编辑作品渲染前所需数据的请求逻辑。")])])])],1)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section-box",{attrs:{title:t.title,subtitle:t.subtitle}},[n("p",{staticClass:"tip"},[t._v("在此列表中添加的地址将被转发至 localhost")]),n("table",{staticClass:"proxy-table"},[n("tr",[n("th",{attrs:{width:"400"}},[t._v("地址")]),n("th",{attrs:{width:"130"}},[t._v("操作")])]),t._l(t.list,function(e){return n("tr",[n("td",[t._v(t._s(e.url))]),n("td",[n("span",{directives:[{name:"show",rawName:"v-show",value:e.active,expression:"item.active"}],staticClass:"button disable",on:{click:function(n){t.updateRule("deprecated",e.url)}}},[t._v("禁用")]),n("span",{directives:[{name:"show",rawName:"v-show",value:!e.active,expression:"!item.active"}],staticClass:"button",on:{click:function(n){t.updateRule("enable",e.url)}}},[t._v("启用")]),n("span",{staticClass:"button error",on:{click:function(n){t.updateRule("delete",e.url)}}},[t._v("删除")])])])})],2),n("p",[n("text-input",{staticStyle:{display:"inline-block"},attrs:{state:t.edit,name:"rule",info:"Add proxy path here..."}}),n("span",{staticClass:"btn enlight",on:{click:function(e){t.updateRule("add")}}},[t._v("添加")])],1)])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section-box",{staticClass:"preview-box",attrs:{title:t.title,subtitle:t.subtitle}},[n("h5",[t._v("什么是发布预览？")]),n("p",{staticClass:"tip"},[t._v("发布预览用于在本地模拟构建，打包和服务端渲染等步骤，是一个自动化检测过程，也可作为产品验收的一种途径。")]),n("p",{staticClass:"tip"},[t._v("注：同一时间只能发布一个作品， 目前只支持 ssr 作品。")]),n("h4",[t._v("请选择需要发布的作品")]),t._l(t.list,function(e,s){return n("div",{staticClass:"select-item motion-in",class:{disable:"ssr"!==e.type},style:{animationDelay:.1*(s+1)+"s"},on:{click:function(n){t.start(e.name,e.type)}}},[n("p",{staticClass:"select-name"},[t._v(t._s(e.name))]),n("p",["ssr"===e.type?n("span",[t._v("SSR项目")]):n("span",[t._v("普通项目")])])])})],2)},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("router-view")},staticRenderFns:[]}}],[49]);