PageSourceSearch

https://www.bangli.uk/js/chunk-common.27fdf097.js

js bangli.uk collected 2026-10-05 20:48:30 UTC 50,082 bytes, 1 lines download raw bytes

1(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[1],{"028c":function(t,e,i){"use strict";var n=i("3a87"),s=i.n(n);s.a},"040f":function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("router-link",{staticClass:"post-card",attrs:{to:t.post.url,title:t.post.title}},[i("q-card",[i("q-intersection",{attrs:{once:"",transition:"fade"}},[i("q-img",{attrs:{src:t.post.image,"spinner-color":"orange"}},[i("div",{staticClass:"absolute-bottom text-right metadata"},[i("span",{staticClass:"counter"},[i("q-icon",{attrs:{name:t.mdiFire,size:"1rem"}}),i("span",[t._v(t._s(t.post.view_count))])],1),t.post.like_count?i("span",{staticClass:"counter"},[i("q-icon",{attrs:{name:t.mdiHeartOutline,size:"1rem"}}),i("span",[t._v(t._s(t.post.like_count))])],1):t._e(),t.post.reply_count?i("span",[i("q-icon",{attrs:{name:t.mdiChatOutline,size:"1rem"}}),i("span",[t._v(t._s(t.post.reply_count))])],1):t._e()])])],1),i("q-card-section",[i("h2",{staticClass:"title text-subtitle1 ellipsis-2-lines"},[t._v("\n        "+t._s(t.post.title)+"\n      ")])])],1)],1)},s=[],a=i("e519"),o={name:"PostCard",props:["post"],created:function(){this.mdiFire=a["m"],this.mdiHeartOutline=a["s"],this.mdiChatOutline=a["b"]}},r=o,c=i("2877"),l=i("f09f"),u=i("ad56"),m=i("068f"),d=i("0016"),p=i("a370"),h=i("eebe"),f=i.n(h),g=Object(c["a"])(r,n,s,!1,null,null,null);e["a"]=g.exports;f()(g,"components",{QCard:l["a"],QIntersection:u["a"],QImg:m["a"],QIcon:d["a"],QCardSection:p["a"]})},"08bb":function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.author&&t.author.desc?i("router-link",{staticStyle:{display:"block"},attrs:{to:"/posts?user="+t.author.id,rel:"nofollow"}},[i("q-banner",{staticClass:"bg-grey-2 post-author-card",attrs:{rounded:""},scopedSlots:t._u([{key:"avatar",fn:function(){return[t.author.banner?i("img",{directives:[{name:"lazy",rawName:"v-lazy"}],attrs:{"data-src":t.author.banner,alt:"作者头像"}}):i("img",{directives:[{name:"lazy",rawName:"v-lazy"}],attrs:{"data-src":t.author.avatar,alt:"作者头像"}})]},proxy:!0}],null,!1,1696474538)},[i("span",[t._v(t._s(t.author.name))]),i("br"),t.author.desc?i("q-item-label",{staticClass:"text-caption",attrs:{lines:t.descLines?t.descLines:2}},[t._v(t._s(t.author.desc))]):t._e()],1)],1):t._e()},s=[],a={name:"PostAuthorCard",props:["author","descLines"]},o=a,r=(i("028c"),i("2877")),c=i("54e1"),l=i("0170"),u=i("eebe"),m=i.n(u),d=Object(r["a"])(o,n,s,!1,null,null,null);e["a"]=d.exports;m()(d,"components",{QBanner:c["a"],QItemLabel:l["a"]})},"0ba3":function(t,e,i){"use strict";i("f751");var n=i("6275"),s=i("e519");e["a"]={props:["entities","filter","paginator"],data:function(){return{active:!0}},created:function(){this.mdiChevronLeft=s["e"],this.mdiChevronRight=s["f"]},watch:{paginator:function(t,e){t&&1===t.page&&this.isInfScroll&&this.$refs.infScroll.reset()}},activated:function(){this.active=!0},deactivated:function(){this.active=!1},computed:{canScroll:function(){return this.$store.state.canScroll&&this.active},maxPage:function(){return this.paginator.last_page||1},hasNoEntities:function(){return!Object(n["g"])(this.paginator)&&0===this.paginator.total},hasMore:function(){return!Object(n["g"])(this.paginator)&&this.paginator.page<this.paginator.last_page},isInfScroll:function(){return!(this.$q.platform.is.desktop||this.$q.platform.is.ipad)}},methods:{pageLink:function(t){return{path:this.$route.path,query:Object.assign({},this.$route.query,{page:t})}},emitLoad:function(t,e){1!==t&&this.hasMore?this.$emit("load",t,e):e(!Object(n["g"])(this.paginator)&&this.paginator.page>=this.paginator.last_page)}}}},"0f8f":function(t,e,i){},"144d":function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.entities&&t.entities.length?i("div",[i("h4",{staticClass:"section-title q-px-sm",staticStyle:{"font-size":"1rem"}},[t._v("\n    "+t._s(t.prefix)+"相关帖子\n    "),t.tags.length?i("router-link",{staticClass:"more",attrs:{to:"/bbs/posts?tag="+t.tags[0].slug}},[t._v("\n      更多...\n    ")]):t._e()],1),i("q-list",{attrs:{separator:""}},t._l(t.entities,(function(e){return i("q-item",{directives:[{name:"ripple",rawName:"v-ripple"}],key:"related-bbs-post-"+e.id,attrs:{clickable:"",to:e.url,title:e.title}},[i("q-item-section",[i("q-item-label",{staticClass:"text-body2",attrs:{lines:"2"}},[t._v(t._s(e.title))]),i("q-item-label",{staticClass:"metadata"},[i("span",{staticClass:"float-right"},[i("q-icon",{attrs:{name:t.mdiFire}}),t._v(t._s(e.view_count)+"\n          ")],1)])],1)],1)})),1)],1):t._e()},s=[],a=i("e519"),o=i("6ad6"),r={extends:o["a"],props:["prefix"],created:function(){this.mdiFire=a["m"]}},c=r,l=i("2877"),u=i("1c1c"),m=i("66e5"),d=i("4074"),p=i("0170"),h=i("0016"),f=i("714f"),g=i("eebe"),b=i.n(g),v=Object(l["a"])(c,n,s,!1,null,null,null);e["a"]=v.exports;b()(v,"components",{QList:u["a"],QItem:m["a"],QItemSection:d["a"],QItemLabel:p["a"],QIcon:h["a"]}),b()(v,"directives",{Ripple:f["a"]})}
1,"1d8c":function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));i("673e");var n=i("6275"),s={computed:{user:function(){return this.$store.state.user},canManage:function(){return Object(n["e"])(this.$store.state.user)}},methods:{canModify:function(t,e){return this.user&&(Object(n["e"])(this.user)||this.user.sub===t&&e+28800>(new Date).getTime()/1e3)},deleteBbsPost:function(t){var e=this;this.$q.dialog({title:"警告",message:"请确认是否执行删除操作",cancel:!0}).onOk((function(){e.$store.dispatch("deleteBbsPost",{id:t}).then((function(){e.$router.go(-1)}))})).onCancel((function(){}))},deleteComment:function(t){var e=this;this.$q.dialog({title:"警告",message:"请确认是否执行删除操作",cancel:!0}).onOk((function(){e.$store.dispatch("deleteComment",{to:e.$route,id:t})})).onCancel((function(){}))},banUser:function(t){var e=this;this.$q.dialog({title:"警告",message:"是否禁言此用户",cancel:!0}).onOk((function(){var i="/api/user/ban/"+t;e.$axios.put(i).then((function(t){e.$q.notify("用户禁言成功")})).catch((function(){e.$q.notify("用户禁言失败")}))})).onCancel((function(){}))}}}},"2d61":function(t,e,i){},"379f":function(t,e,i){"use strict";var n=i("c586"),s=i.n(n);s.a},"38db":function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("form",{staticClass:"search-form",class:{"desktop-search-form":t.desktop},attrs:{action:"#",autocomplete:"off"},on:{submit:function(e){return e.preventDefault(),t.go(t.inputText)}}},[i("q-input",{ref:"input",attrs:{dense:"",clearable:"","clear-icon":t.mdiClose,dark:!t.desktop,standout:!t.desktop,filled:t.desktop,square:t.desktop,debounce:"500",type:"search",placeholder:t.placeholder},on:{focus:function(e){return t.onFocusBlur()},blur:function(e){return t.onFocusBlur()}},scopedSlots:t._u([{key:"prepend",fn:function(){return[i("q-icon",{staticClass:"cursor-pointer",attrs:{name:t.mdiMagnify},on:{click:function(e){return t.go(t.inputText)}}})]},proxy:!0}]),model:{value:t.inputText,callback:function(e){t.inputText=e},expression:"inputText"}}),t.candidates&&t.candidates.length?i("div",{staticClass:"suggestions shadow-2",class:{"desktop-dropdown":t.desktop}},[i("ul",t._l(t.candidates,(function(e){return i("li",{key:e,staticClass:"cands",on:{click:function(i){return t.go(e)}}},[t._v("\n        "+t._s(e)+"\n      ")])})),0)]):t._e()],1)},s=[],a=(i("a481"),i("f751"),i("e519")),o={name:"SearchForm",props:["desktop","queryText","searchType"],data:function(){return{api:"/api/search",inputText:this.queryText||"",focused:!1,candidates:null}},created:function(){this.mdiClose=a["h"],this.mdiMagnify=a["w"]},watch:{queryText:function(t,e){this.inputText=t}
1,inputText:function(t,e){this.focused&&this.inputText?this.getSuggestions(this.inputText):this.candidates=null}},mounted:function(){this.desktop||""!==this.queryText||this.$refs.input.focus()},computed:{placeholder:function(){return"deal"===this.searchType?"搜折扣...":"搜文章,帖子..."}},methods:{onFocusBlur:function(){this.focused=!this.focused,this.$store.dispatch("toggleAppFooter")},getSuggestions:function(t){var e=this;this.$axios.get(this.api+"/suggest?text="+t).then((function(t){e.candidates=t.data})).catch((function(){e.candidates=null}))},go:function(t){if(this.candidates=null,this.queryText!==t||this.searchType!==this.$route.query.stype){this.$refs.input.blur();var e={path:"/search",query:Object.assign({},this.$route.query,{text:t,stype:this.searchType})};this.desktop?this.$router.push(e):this.$router.replace(e)}}}},r=o,c=i("2877"),l=i("27f9"),u=i("0016"),m=i("eebe"),d=i.n(m),p=Object(c["a"])(r,n,s,!1,null,null,null);e["a"]=p.exports;d()(p,"components",{QInput:l["a"],QIcon:u["a"]})},"3a87":function(t,e,i){},"4c35":function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("q-page",{staticClass:"entities-page"},[i("q-pull-to-refresh",{ref:"pull2refresh",attrs:{icon:t.mdiRefresh,disable:t.$q.platform.is.desktop},on:{refresh:function(e){return t.$emit("refresh",e)}}},[i("l2-menu",{attrs:{menu:t.menu}}),t.alphabet?i("q-toolbar",{staticClass:"bg-grey-1 text-grey-8",class:{"scrollable-x":t.$q.platform.is.mobile}},[i("q-tabs",{attrs:{"no-caps":"",shrink:"",dense:"","left-icon":t.mdiChevronLeft,"right-icon":t.mdiChevronRight}},t._l(t.alphabet,(function(e){return i("q-route-tab",{key:"a-"+e,staticStyle:{padding:"0"},attrs:{exact:"",itemprop:"url",to:t.aurl(e),rel:"nofollow",name:e}},[i("span",{attrs:{itemprop:"name"}},[t._v(t._s(e))])])})),1)],1):t._e(),i("div",{staticClass:"row page-inner"},[i("div",{staticClass:"col-xs-12",class:{"col-sm-8":t.$q.platform.is.desktop||t.$q.platform.is.ipad}},[t._t("default")],2),i("div",{staticClass:"col-sm-4"},[i("desktop-sidebar")],1)])],1)],1)},s=[],a=(i("f751"),i("e519")),o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return null!==t.menu?i("div",{staticClass:"l2-menu",attrs:{itemscope:"",itemtype:"http://schema.org/SiteNavigationElement"}},[i("q-toolbar",{staticClass:"bg-grey-1 text-grey-8",class:{"scrollable-x":t.$q.platform.is.mobile}},[i("q-tabs",{attrs:{"no-caps":"",shrink:"","left-icon":t.mdiChevronLeft,"right-icon":t.mdiChevronRight}},t._l(t.menu,(function(e){return i("q-route-tab",{key:"/menu"+e.url,attrs:{itemprop:"url",to:e.url,title:e.name,name:e.name}},[i("span",{attrs:{itemprop:"name"}},[t._v(t._s(e.name))])])})),1)],1)],1):t._e()},r=[],c={name:"L2Menu",props:["menu"],created:function(){this.mdiChevronLeft=a["e"],this.mdiChevronRight=a["f"]}},l=c,u=i("2877"),m=i("65c6"),d=i("429b"),p=i("7867"),h=i("eebe"),f=i.n(h),g=Object(u["a"])(l,o,r,!1,null,null,null),b=g.exports;f()(g,"components",{QToolbar:m["a"],QTabs:d["a"],QRouteTab:p["a"]});var v=i("6fdf"),_={name:"EntitiesPage",props:["alphabet"],components:{L2Menu:b,DesktopSidebar:v["a"]},created:function(){this.mdiRefresh=a["B"],this.mdiChevronLeft=a["e"],this.mdiChevronRight=a["f"]},mounted:function(){this.$store.dispatch("fetchMenu",this.$route)},serverPrefetch:function(){return this.$store.dispatch("fetchMenu",this.$route)},activated:function(){this.$q.platform.is.capacitor&&!Object.prototype.hasOwnProperty.call(this.$store.state.lists,this.$route.fullPath)&&this.$refs.pull2refresh.trigger()},computed:{menu:function(){if(this.$route.query.liked_user){var t=this.$route.query.liked_user;return[{name:"收藏的文章",url:"/posts?liked_user="+t},{name:"收藏的帖子",url:"/bbs/posts?liked_user="+t},{name:"收藏的折扣",url:"/deals?liked_user="+t},{name:"收藏的专题",url:"/topics?liked_user="+t}]}return this.$route.query.at_user?null:this.$store.state.menus[this.$route.meta.menu]},links:function(){return this.$store.state.links}},methods:{aurl:function(t){return{path:this.$route.path,query:Object.assign({},this.$route.query,{start:t,page:1})}}}},q=_,y=i("9989"),C=i("59d7"),$=Object(u["a"])(q,n,s,!1,null,null,null);e["a"]=$.exports;f()($,"components",{QPage:y["a"],QPullToRefresh:C["a"],QToolbar:m["a"],QTabs:d["a"],QRouteTab:p["a"]})}
1,"6ad6":function(t,e,i){"use strict";e["a"]={props:["tags","entities"],methods:{slugs:function(t){return t.map((function(t){return t.slug})).join(",")}}}},"6fdf":function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.sidebar&&(t.$q.platform.is.desktop||t.$q.platform.is.ipad)?i("div",{staticClass:"desktop-sidebar q-pl-sm"},[i("div",{staticClass:"sidebar-inner"},[i("div",{staticClass:"q-pb-md"},[i("div",{staticClass:"text-right q-px-sm"},[i("q-toggle",{attrs:{"false-value":"content","true-value":"deal",color:"secondary",label:t.label},model:{value:t.searchType,callback:function(e){t.searchType=e},expression:"searchType"}})],1),i("search-form",{attrs:{queryText:t.queryText,searchType:t.searchType,desktop:!0}})],1),t.sidebar.ads?i("div",{staticClass:"sidebar-ads",domProps:{innerHTML:t._s(t.sidebar.ads)}}):t._e(),t.$q.platform.is.capacitor?t._e():i("social-media-widget"),i("adsense",{attrs:{"data-ad-client":"ca-pub-5590450072542909","data-ad-slot":"1616765564"}}),"entity"===t.$route.meta.type?[i("related-posts",{attrs:{tags:t.relatedTags,entities:t.relatedPosts}}),i("related-bbs-posts",{attrs:{tags:t.relatedTags,entities:t.relatedBbsPosts}})]:t._e()],2)]):t._e()},s=[],a=i("703c"),o=i("144d"),r=i("e812"),c=i("38db"),l={name:"DesktopSidebar",props:["relatedTags","relatedPosts","relatedBbsPosts","relatedTopics"],data:function(){return{searchType:this.getSType(this.$route)}},components:{RelatedPosts:r["a"],RelatedBbsPosts:o["a"],SocialMediaWidget:a["a"],SearchForm:c["a"]},watch:{$route:function(t,e){this.searchType=this.getSType(t)}},computed:{sidebar:function(){return this.$store.state.sidebar},queryText:function(){return"search"===this.$route.meta.type&&this.$route.query.text||""},searchTypeQuery:function(){return"deal"===this.searchType?"&stype=deal":""},label:function(){return"deal"===this.searchType?"搜折扣":"搜内容"}},methods:{getSType:function(t){return-1!==t.fullPath.indexOf("deal")?"deal":"content"}}},u=l,m=(i("7417"),i("2877")),d=i("9564"),p=i("eebe"),h=i.n(p),f=Object(m["a"])(u,n,s,!1,null,null,null);e["a"]=f.exports;h()(f,"components",{QToggle:d["a"]})},"703c":function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.common?i("div",{staticClass:"row q-pa-sm social-widget"},[t.common.wechat?i("div",{staticClass:"col-6 text-center"},[i("img",{directives:[{name:"lazy",rawName:"v-lazy"}],staticClass:"qrcode",attrs:{"data-src":t.common.wechat.image,alt:"邦利微信二维码"}}),i("p",{staticClass:"text-caption q-pa-xs"},[t._v(t._s(t.common.wechat.text))])]):t._e(),i("div",{staticClass:"social-btn-container",class:["undefined"!==typeof t.common.wechat?"col-6":"col-12"]},[t.common.app?i("q-btn",{attrs:{color:"primary social-btn",label:t.common.app.text,to:t.common.app.url,rel:"nofollow"}}):t._e(),t.common.weibo?i("q-btn",{attrs:{color:"red social-btn",label:t.common.weibo.text,rel:"nofollow"},on:{click:function(e){return t.go(t.common.weibo.url)}}}):t._e()],1)]):t._e()},s=[],a=i("b06b"),o={name:"SocialMediaWidget",computed:{common:function(){return this.$store.state.common}},methods:{go:function(t){Object(a["a"])(t)}}},r=o,c=i("2877"),l=i("9c40"),u=i("eebe"),m=i.n(u),d=Object(c["a"])(r,n,s,!1,null,null,null);e["a"]=d.exports;m()(d,"components",{QBtn:l["a"]})},7417:function(t,e,i){"use strict";var n=i("0f8f"),s=i.n(n);s.a},"961d":function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.entities?i("q-carousel",{staticClass:"entities-carousel",attrs:{arrows:t.$q.platform.is.desktop,navigation:"",animated:"",swipeable:"",infinite:"",autoplay:"","control-color":"orange-5","navigation-icon":t.mdiCheckboxBlankCircle,"prev-icon":t.mdiChevronLeft,"next-icon":t.mdiChevronRight,"transition-prev":"slide-right","transition-next":"slide-left"},model:{value:t.slide,callback:function(e){t.slide=e},expression:"slide"}},t._l(t.entities,(function(e,n){return i("q-carousel-slide",{key:"entity-carousel-"+e.id,attrs:{name:"slide-"+n,"img-src":e.image}},[i("router-link",{attrs:{to:e.url,title:e.title}},[i("div",{staticClass:"absolute-bottom carousel-title"},[i("h2",{domProps:{innerHTML:t._s(e.title)}}
1)])])],1)})),1):t._e()},s=[],a=i("e519"),o={name:"EntitiesCarousel",props:["entities"],data:function(){return{slide:"slide-0"}},created:function(){this.mdiChevronLeft=a["e"],this.mdiChevronRight=a["f"],this.mdiCheckboxBlankCircle=a["c"]}},r=o,c=i("2877"),l=i("880c"),u=i("62cd"),m=i("eebe"),d=i.n(m),p=Object(c["a"])(r,n,s,!1,null,null,null);e["a"]=p.exports;d()(p,"components",{QCarousel:l["a"],QCarouselSlide:u["a"]})},"9c1c":function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("q-item",{directives:[{name:"ripple",rawName:"v-ripple"}],staticClass:"topic-card item-card q-py-sm",attrs:{clickable:"",to:t.topic.url,title:t.topic.title}},[i("q-item-section",{staticClass:"q-px-sm",attrs:{thumbnail:""}},[i("q-intersection",{staticClass:"img",attrs:{once:"",transition:"fade"}},[i("q-img",{staticClass:"img",attrs:{src:t.topic.image,"spinner-color":"orange"}})],1)],1),i("q-item-section",[i("q-item-label",{staticClass:"text-subtitle2",attrs:{lines:"1"},domProps:{innerHTML:t._s(t.topic.title)}}),t.topic.highlights?i("q-item-label",{attrs:{caption:"",lines:"2"}},[t._v("\n      "+t._s(t.topic.highlights)+"\n    ")]):t._e(),i("q-item-label",{staticClass:"metadata text-right"},[i("span",{staticClass:"counter"},[i("q-icon",{attrs:{name:t.mdiFire}}),t._v(t._s(t.topic.view_count)+"\n      ")],1),t.topic.like_count?i("span",{staticClass:"counter"},[i("q-icon",{attrs:{name:t.mdiHeartOutline}}),t._v(t._s(t.topic.like_count)+"\n      ")],1):t._e(),t.topic.reply_count?i("span",{staticClass:"counter"},[i("q-icon",{attrs:{name:t.mdiChatOutline}}),t._v(t._s(t.topic.reply_count)+"\n      ")],1):t._e()])],1)],1)},s=[],a=i("e519"),o={name:"TopicCard",props:["topic"],created:function(){this.mdiFire=a["m"],this.mdiHeartOutline=a["s"],this.mdiChatOutline=a["b"]}},r=o,c=(i("dc0d"),i("2877")),l=i("66e5"),u=i("4074"),m=i("ad56"),d=i("068f"),p=i("0170"),h=i("0016"),f=i("714f"),g=i("eebe"),b=i.n(g),v=Object(c["a"])(r,n,s,!1,null,null,null);e["a"]=v.exports;b()(v,"components",{QItem:l["a"],QItemSection:u["a"],QIntersection:m["a"],QImg:d["a"],QItemLabel:p["a"],QIcon:h["a"]}),b()(v,"directives",{Ripple:f["a"]})},a109:function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("q-item",{directives:[{name:"ripple",rawName:"v-ripple"}],staticClass:"deal-card item-card q-py-md",class:{"expired-deal-card":t.deal.exp_diff<0},attrs:{clickable:"",to:t.deal.url,title:t._f("striphtml")(t.deal.title)}},[i("q-item-section",{staticClass:"q-px-sm",attrs:{thumbnail:""}},[i("q-intersection",{staticClass:"img",attrs:{once:"",transition:"fade"}},[i("q-img",{staticClass:"img",attrs:{src:t.deal.image,"spinner-color":"orange"}})],1)],1),i("q-item-section",[i("q-item-label",{staticClass:"text-subtitle2",attrs:{lines:"1"},domProps:{innerHTML:t._s(t.deal.title)}}),t.deal.highlights?i("q-item-label",{attrs:{caption:"",lines:"2"},domProps:{innerHTML:t._s(t.deal.highlights)}}):t._e(),i("q-item-label",{staticClass:"metadata"},[i("span",{domProps:{innerHTML:t._s(t.deal.exp_status)}}),i("span",{staticClass:"float-right"},[i("span",{staticClass:"counter"},[i("q-icon",{attrs:{name:t.mdiFire}}),i("span",[t._v(t._s(t.deal.view_count))])],1),t.deal.like_count?i("span",{staticClass:"counter"},[i("q-icon",{attrs:{name:t.mdiHeartOutline}}),i("span",[t._v(t._s(t.deal.like_count))])],1):t._e(),t.deal.reply_count?i("span",{staticClass:"counter"},[i("q-icon",{attrs:{name:t.mdiChatOutline}}),i("span",[t._v(t._s(t.deal.reply_count))])],1):t._e()])])],1)],1)},s=[],a=i("e519"),o={name:"DealCard",props:["deal"],created:function(){this.mdiFire=a["m"],this.mdiHeartOutline=a["s"],this.mdiChatOutline=a["b"]}},r=o,c=i("2877"),l=i("66e5"),u=i("4074"),m=i("ad56"),d=i("068f"),p=i("0170"),h=i("0016"),f=i("714f"),g=i("eebe"),b=i.n(g),v=Object(c["a"])(r,n,s,!1,null,null,null);e["a"]=v.exports;b()(v,"components",{QItem:l["a"],QItemSection:u["a"],QIntersection:m["a"],QImg:d["a"],QItemLabel:p["a"],QIcon:h["a"]}),b()(v,"directives",{Ripple:f["a"]})},a269:function(t,e,i){"use strict";i("f751");e["a"]={data:function(){return{loaded:!1,route:null,entities:null,featured_entities:null,paginator:null,enames:{post:"文章列表",topic:"专题列表",deal:"优惠列表",bbs:"帖子列表"}}},meta:function(){return{title:this.title,meta:[{name:"description",content:this.desc}]}},computed:{title:function(){if(!this.paginator)return this.$env.NAME;var t="",e=this.enames[this.route.meta.menu];return this.filter?t=this.filter.msg:this.route.params.cat&&(t=this.route.params.cat),t+e+" - 第"+this.paginator.page+"页 | "+this.$env.SLOGAN},desc:function(){return this.title+" "+this.siteDesc}},created:function(){this.init(this.$route)},activated:function(){this.init(this.$route)},methods:{init:function(t){this.route=t;var e=this.$store.state.lists[t.fullPath]||null;e&&(this.loaded=!0,this.filter=e.filter,this.paginator=e.paginator,this.entities=e.entities,this.featured_entities=e.featured_entities)},loadEntities:function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=Object.assign({},this.route.query,{page:t}),a=Object.assign({},this.route,{query:s});this.$store.dispatch("fetchList",{to:a,append:!0,done:e,refresh:n}).then((function(){return i.init(i.route)}))}}}}
1,a5f5:function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"q-gutter-x-md"},[i("a",{attrs:{href:t.auth("google"),"no-caps":""}},[t._v("使用Google账号登陆")]),i("a",{attrs:{href:t.auth("weibo")}},[t._v("使用"),i("q-icon",{attrs:{name:t.mdiSinaWeibo,size:"1.3rem",color:"red"}}),t._v("登陆")],1)])},s=[],a=(i("a481"),i("e519")),o=i("6275"),r={name:"SocialLogin",created:function(){this.mdiSinaWeibo=a["C"]},mounted:function(){var t=this;Object(o["g"])(this.$route.query.jwt)||(Object(o["g"])(this.$route.query.email)&&this.regUserEmail(),this.$store.dispatch("login",this.$route.query.jwt).then((function(){t.$router.replace("/profile")})))},methods:{auth:function(t){var e=this.$env[t.toUpperCase()],i=e.CLIENT_ID,n=this.$env.API_ENDPOINT+e.CALLBACK_URI,s=e.AUTH_ENDPOINT+"?response_type=code&client_id="+i+"&redirect_uri="+n+"&scope="+encodeURIComponent(e.SCOPE)+"&display=popup";return s},regUserEmail:function(){var t=this;this.$q.dialog({title:"请绑定邮箱",message:"为了你的账户安全,请在以下输入你的邮箱",prompt:{model:"",type:"email"},persistent:!0}).onOk((function(e){t.$axios.get("/api/register/email?email="+e).then((function(e){t.$q.dialog({title:"谢谢",message:"请前往你的邮箱查看验证邮件"}).onOk((function(){}))})).catch((function(e){t.$q.dialog({title:"错误",message:e.response.data,persistent:!0}).onOk((function(){window.location.reload()}))}))}))}}},c=r,l=i("2877"),u=i("0016"),m=i("eebe"),d=i.n(m),p=Object(l["a"])(c,n,s,!1,null,null,null);e["a"]=p.exports;d()(p,"components",{QIcon:u["a"]})},a897:function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"editor",attrs:{id:"editor"}},[i("q-editor",{ref:"editor",attrs:{value:t.value,"min-height":"10rem",definitions:t.editorCmds,toolbar:t.toolbar,"toolbar-bg":"grey-2"},on:{input:function(e){return t.$emit("input",e)},focusin:function(e){return t.onFocusIn()},focusout:function(e){return t.onFocusOut()}},nativeOn:{paste:function(e){return function(e){return t.pasteCapture(e)}(e)}}}),i("input",{ref:"imginput",staticStyle:{display:"none"},attrs:{type:"file",accept:"image/*",name:"image",multiple:""},on:{change:function(e){return t.uploadImages(e.target.files,t.$refs.editor)}}}),i("div",{staticClass:"q-pt-md"},[t.mentions.length?i("div",{staticClass:"q-gutter-xs"},[i("q-chip",{attrs:{square:"",size:"sm",color:"primary","text-color":"white"}},[t._v("@提醒")]),t._l(t.mentions,(function(e){return i("q-chip",{key:e.id,attrs:{removable:"",size:"sm",value:!0},on:{remove:function(i){return t.$emit("cancel-at",e)}}},[t._v("\n        "+t._s(e.name)+"\n      ")])}))],2):t._e()])],1)},s=[],a=i("e519"),o=i("6275"),r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("q-dialog",{ref:"dialog",attrs:{persistent:"",maximized:"","transition-show":"slide-up","transition-hide":"slide-down"},on:{hide:t.onDialogHide}},[i("q-card",[i("q-bar",[i("q-space"),i("q-btn",{attrs:{dense:"",flat:"",icon:t.mdiClose},on:{click:t.hide}},[i("q-tooltip",[t._v("关闭")])],1)],1),i("q-card-section",[i("q-input",{attrs:{dense:"",clearable:"","clear-icon":t.mdiClose,filled:"",square:"",debounce:"300",type:"search",placeholder:"搜索@用户"}
1,model:{value:t.userInput,callback:function(e){t.userInput=e},expression:"userInput"}})],1),t.candidates.length?i("q-card-section",{staticClass:"q-pt-none"},[i("q-list",{attrs:{bordered:"",separator:""}},t._l(t.candidates,(function(e){return i("q-item",{key:e.id,attrs:{clickable:""},on:{click:function(i){return t.onOKClick(e)}}},[i("q-item-section",[t._v(t._s(e.name))])],1)})),1)],1):t._e()],1)],1)},c=[],l={data:function(){return{userInput:"",candidates:[]}},created:function(){this.mdiClose=a["h"]},watch:{userInput:function(t,e){var i=this;this.$axios.get("/api/user/suggest?text="+this.userInput).then((function(t){i.candidates=t.data})).catch((function(){i.candidates=[]}))}},methods:{show:function(){this.$refs.dialog.show()},hide:function(){this.$refs.dialog.hide()},onDialogHide:function(){this.$emit("hide")},onOKClick:function(t){this.$emit("ok",t),this.hide()}}},u=l,m=i("2877"),d=i("24e8"),p=i("f09f"),h=i("d847"),f=i("2c91"),g=i("9c40"),b=i("05c0"),v=i("a370"),_=i("27f9"),q=i("1c1c"),y=i("66e5"),C=i("4074"),$=i("eebe"),k=i.n($),x=Object(m["a"])(u,r,c,!1,null,null,null),w=x.exports;k()(x,"components",{QDialog:d["a"],QCard:p["a"],QBar:h["a"],QSpace:f["a"],QBtn:g["a"],QTooltip:b["a"],QCardSection:v["a"],QInput:_["a"],QList:q["a"],QItem:y["a"],QItemSection:C["a"]});var O=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("q-dialog",{ref:"dialog",attrs:{persistent:""},on:{hide:t.onDialogHide}},[i("q-card",{staticStyle:{"min-width":"350px"}},[i("q-card-section",[i("div",{staticClass:"text-h6"},[t._v("插入超链接")])]),i("q-card-section",[i("q-input",{attrs:{placeholder:"超链接文本内容"},model:{value:t.text,callback:function(e){t.text=e},expression:"text"}})],1),i("q-card-section",[i("q-input",{attrs:{placeholder:"https://www.example.com"},model:{value:t.link,callback:function(e){t.link=e},expression:"link"}})],1),i("q-card-actions",{staticClass:"text-primary",attrs:{align:"right"}},[i("q-btn",{directives:[{name:"close-popup",rawName:"v-close-popup"}],attrs:{flat:"",label:"Cancel"}}),i("q-btn",{directives:[{name:"close-popup",rawName:"v-close-popup"}],attrs:{flat:"",label:"Ok",disable:!t.link||!t.text},on:{click:t.onOKClick}})],1)],1)],1)},Q=[],I=(i("b54a"),{data:function(){return{link:"",text:""}},methods:{show:function(){this.$refs.dialog.show()},hide:function(){this.$refs.dialog.hide()},onDialogHide:function(){this.$emit("hide")},onOKClick:function(){var t='<a href="'+this.link+'">'+this.text+"</a>";this.$emit("ok",t),this.hide()}}}),T=I,S=i("4b7e"),E=i("7f67"),L=Object(m["a"])(T,O,Q,!1,null,null,null),j=L.exports;k()(L,"components",{QDialog:d["a"],QCard:p["a"],QCardSection:v["a"],QInput:_["a"],QCardActions:S["a"],QBtn:g["a"]}),k()(L,"directives",{ClosePopup:E["a"]});var P={name:"Editor",props:["value","mentions","enableAt","type","draftId"],data:function(){var t=this;return{editorCmds:{bold:{icon:a["n"]},url:{icon:a["v"],tip:"插入超链接",handler:function(){t.showLinkDialog()},disable:function(){return Object(o["g"])(t.$store.state.jwt)}},video:{icon:a["G"],tip:"插入视频链接",handler:function(){t.showVideoDialog()},disable:function(){return Object(o["g"])(t.$store.state.jwt)}},image:{icon:a["l"],tip:"上传图片",handler:function(){t.$refs.imginput.click()},disable:function(){return Object(o["g"])(t.$store.state.jwt)}},at:{icon:a["a"],tip:"@某人",handler:function(){t.showAtDialog()},disable:function(){return Object(o["g"])(t.$store.state.jwt)}}}}},computed:{toolbar:function(){return this.enableAt?[["bold","url","image","video","at"]]:[["bold","url","image","video"]]}},methods:{onFocusIn:function(){this.$scrollTo("#editor",200,{offset:-100}),this.$store.dispatch("toggleAppFooter")},onFocusOut:function(){var t=this;setTimeout((function(){t.$store.dispatch("toggleAppFooter")}),300)},uploadImages:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=t.length;if(0!==n){if(Object(o["g"])(this.$store.state.jwt))return this.$q.notify("请登录后再试");if(n>9)return this.$q.notify("一次最多可以插入9张图片");this.$q.loading.show({message:"图片上传中..."});for(var s=function(s){var o=new FormData;o.append("type",e.type),o.append("draft_id",e.draftId),o.append("image",t[s]),e.$axios.post("/api/images",o).then((function(t){var a=t.data;i&&i.runCmd("insertImage",a),s+1>=n&&e.$q.loading.hide()})).catch((function(t){e.$q.loading.hide(),e.$q.notify("图片上传失败: "+t.response.data),s=n})),a=s},a=0;a<n;a++)s(a)}},deleteImage:function(t){var e=this;if(Object(o["g"])(this.$store.state.jwt))return this.$q.notify("请登录后再试");
1var i="/api/images?type="+this.type+"&image="+t.substring(t.lastIndexOf("/")+1);this.$axios.delete(i).then((function(){})).catch((function(){e.$q.notify("图片删除失败")}))},showVideoDialog:function(){var t=this;this.$q.dialog({title:"插入视频",message:"复制视频粘贴链接到此处",prompt:{model:"",type:"text"},cancel:!0,persistent:!0}).onOk((function(e){var i='<iframe width="600" height="400" frameborder="0" src="'+e+'"></iframe>';t.$nextTick((function(){t.$refs.editor.runCmd("insertHtml",i)}))}))},showLinkDialog:function(){var t=this;this.$q.dialog({component:j,parent:this}).onOk((function(e){t.$nextTick((function(){t.$refs.editor.runCmd("insertHtml",e)}))}))},showAtDialog:function(){var t=this;this.$q.dialog({component:w,parent:this}).onOk((function(e){t.$emit("at",e)}))},pasteCapture:function(t){var e;t.preventDefault(),t.originalEvent&&t.originalEvent.clipboardData.getData?e=t.originalEvent.clipboardData.getData("text/plain"):t.clipboardData&&t.clipboardData.getData&&(e=t.clipboardData.getData("text/plain")),this.$refs.editor.runCmd("insertHtml",e)}}},D=P,R=i("d66b"),z=i("b047"),H=Object(m["a"])(D,n,s,!1,null,null,null);e["a"]=H.exports;k()(H,"components",{QEditor:R["a"],QChip:z["a"]})},c586:function(t,e,i){},d483:function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("q-item",{directives:[{name:"ripple",rawName:"v-ripple"}],staticClass:"bbs-post-card item-card q-py-md",attrs:{clickable:"",to:t.post.url,title:t.post.title}},[i("q-item-section",[t.post.author?i("q-item-label",{staticClass:"text-weight-light"},[i("q-avatar",{attrs:{size:"32px"}},[i("q-intersection",{attrs:{once:"",transition:"fade"}},[i("img",{attrs:{src:t.post.author.avatar}})])],1),t._v("\n      "+t._s(t.post.author.name)+"\n    ")],1):t._e(),i("q-item-label",{staticClass:"text-subtitle2",attrs:{lines:"1"}},[t._v(t._s(t.post.title))]),t.showHighlights&&t.post.highlights?i("q-item-label",{attrs:{caption:"",lines:"2"},domProps:{innerHTML:t._s(t.post.highlights)}}):t._e(),i("q-item-label",{staticClass:"metadata"},[i("span",[t._v(t._s(t.post.published_at))]),i("span",{staticClass:"float-right"},[i("span",{staticClass:"counter"},[i("q-icon",{attrs:{name:t.mdiFire}}),t._v(t._s(t.post.view_count)+"\n        ")],1),i("span",{staticClass:"counter"},[i("q-icon",{attrs:{name:t.mdiChatOutline}}),t._v(t._s(t.post.reply_count)+"\n        ")],1),t.post.like_count?i("span",{staticClass:"counter"},[i("q-icon",{attrs:{name:t.mdiHeartOutline}}),t._v(t._s(t.post.like_count)+"\n        ")],1):t._e()])])],1)],1)},s=[],a=i("e519"),o={name:"BBsPostCard",props:["post","displayHighlights"],created:function(){this.mdiFire=a["m"],this.mdiHeartOutline=a["s"],this.mdiChatOutline=a["b"]},computed:{showHighlights:function(){return this.displayHighlights||!1}}},r=o,c=i("2877"),l=i("66e5"),u=i("4074"),m=i("0170"),d=i("cb32"),p=i("ad56"),h=i("0016"),f=i("714f"),g=i("eebe"),b=i.n(g),v=Object(c["a"])(r,n,s,!1,null,null,null);e["a"]=v.exports;b()(v,"components",{QItem:l["a"],QItemSection:u["a"],QItemLabel:m["a"],QAvatar:d["a"],QIntersection:p["a"],QIcon:h["a"]}),b()(v,"directives",{Ripple:f["a"]})},d9bb:function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.links&&t.links.length?i("div",{staticClass:"q-py-sm"},[i("h4",{staticClass:"section-title",staticStyle:{"font-size":"1.0rem"}},[t._v(t._s(t.title))]),i("div",{staticClass:"q-py-sm"},t._l(t.links,(function(e){return i("router-link",{key:e.url,attrs:{title:e.title,to:e.url}},[i("h4",{staticClass:"tag"},[t._v(t._s(e.title))])])})),1)]):t._e()},s=[],a={props:["title","links"]},o=a,r=i("2877"),c=Object(r["a"])(o,n,s,!1,null,null,null);e["a"]=c.exports},dc0d:function(t,e,i){"use strict";var n=i("2d61"),s=i.n(n);s.a},de30:function(t,e,i){"use strict";i("7f7f");var n=i("e519"),s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"comments",attrs:{id:"comments"}},[i("h4",{staticClass:"section-title",staticStyle:{"font-size":"1rem"}},[t._v("\n    最新评论\n  ")]),t.comments&&t.comments.length?i("q-list",{attrs:{separator:"",padding:""}},[t.total>10&&t.allurl?i("q-btn",{staticClass:"full-width",attrs:{to:t.allurl,rel:"nofollow"}},[t._v("\n      查看全部"+t._s(t.total)+"评论\n    ")]):t._e(),t._l(t.comments,(function(e){return i("comment-card",{key:"c
1omment-"+e.id,attrs:{itemtype:t.itemtype,comment:e},on:{"edit-comment":function(e){return t.$emit("edit-comment",e)},"reply-to":function(e){return t.$emit("reply-to",e)}}})}))],2):t._e()],1)},a=[],o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.comment?i("q-item",{staticClass:"comment",attrs:{itemscope:"",itemtype:t.itemType,itemprop:t.itemProp,id:"c"+t.comment.id}},[i("q-item-section",[t.comment.author?i("q-item-label",{attrs:{itemprop:"author",itemscope:"",itemtype:"http://schema.org/Person"}},[i("q-avatar",{attrs:{size:"32px"}},[i("q-intersection",{attrs:{once:"",transition:"fade"}},[i("img",{attrs:{src:t.comment.author.avatar,itemprop:"image"}})])],1),i("span",{attrs:{itemprop:"name"}},[t._v("\n        "+t._s(t.comment.author.name)+"\n      ")])],1):t._e(),i("q-item-label",{staticClass:"text-body2",attrs:{lines:"2"}},[t.comment.parent&&t.comment.parent.author?i("div",{staticClass:"quote",on:{click:function(e){return t.scrollToComment(t.comment.parent.id)}}},[i("q-icon",{attrs:{name:t.mdiFormatQuoteOpen,size:"2rem"}}),t._v("\n        "+t._s(t.comment.parent.author.name)+": "+t._s(t.comment.parent.content)+"\n        "),i("q-icon",{attrs:{name:t.mdiFormatQuoteClose,size:"2rem"}})],1):t._e()]),i("q-item-label",{staticClass:"text-body2"},[i("v-runtime-template",{attrs:{itemprop:"text",parent:this,template:t.comment.content}})],1),i("q-item-label",{staticClass:"metadata text-right"},[i("time",{staticClass:"counter",attrs:{itemprop:"dateCreated",datetime:t.comment.created_at}},[t._v(t._s(t.comment.created_at))]),t.canManage?[i("span",{staticClass:"counter cursor-pointer",on:{click:function(e){return t.banUser(t.comment.author.id)}}},[t._v("封")])]:t._e(),t.canModify(t.comment.author.id,t.comment.created_timestamp)?[i("span",{staticClass:"counter cursor-pointer",on:{click:function(e){return t.deleteComment(t.comment.id)}}},[t._v("删")]),i("span",{staticClass:"counter cursor-pointer",on:{click:function(e){return t.$emit("edit-comment",t.comment)}}},[t._v("编辑")])]:t._e(),i("span",{staticClass:"cursor-pointer",on:{click:t.emitReply}},[t._v("\n        回复\n      ")])],2)],1)],1):t._e()},r=[],c=i("dd1e"),l=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("q-dialog",{ref:"dialog",on:{hide:function(e){return t.$emit("hide")},click:t.hide}},[i("div",{staticClass:"img-modal"},[i("img",{attrs:{src:t.src}})])])},u=[],m={name:"ImgModal",props:["src"],methods:{show:function(){this.$refs.dialog.show()},hide:function(){this.$refs.dialog.hide()},onOKClick:function(){this.$emit("ok"),this.hide()}}},d=m,p=(i("379f"),i("2877")),h=i("24e8"),f=i("eebe"),g=i.n(f),b=Object(p["a"])(d,l,u,!1,null,null,null),v=b.exports;g()(b,"components",{QDialog:h["a"]});var _=i("6275"),q=i("1d8c"),y={methods:{scrollToComment:function(t){var e="c"+t,i=document.getElementById(e);Object(_["g"])(i)||(i.classList.add("blink"),setTimeout((function(){i.classList.remove("blink")}),2e3),this.$scrollTo("#"+e,200,{offset:-100}))}}},C={name:"Comment",mixins:[y,q["a"]],props:["comment","itemtype"],components:{VRuntimeTemplate:c["a"]},computed:{itemType:function(){return this.itemtype||"http://schema.org/Comment"},itemProp:function(){return"http://schema.org/Comment"===this.itemType?"":"suggestedAnswer"}},created:function(){this.mdiFormatQuoteOpen=n["p"],this.mdiFormatQuoteClose=n["o"]},methods:{emitReply:function(){var t=this;Object(_["g"])(this.$store.state.jwt)?this.$q.dialog({title:"警告",message:"请登录后再评论,确定登陆?",cancel:!0}).onOk((function(){t.$router.push("/login")})).onCancel((function(){})):this.$emit("reply-to",this.comment)},zoom:function(t){this.$q.dialog({component:v,src:t.srcElement.src,maximized:!0}).onOk((function(){})).onCancel((function(){})).onDismiss((function(){}))}}},$=C,k=i("66e5"),x=i("4074"),w=i("0170"),O=i("cb32"),Q=i("ad56"),I=i("0016"),T=Object(p["a"])($,o,r,!1,null,null,null),S=T.exports;g()(T,"components",{QItem:k["a"],QItemSection:x["a"],QItemLabel:w["a"],QAvatar:O["a"],QIntersection:Q["a"],QIcon:I["a"]});var E={name:"Comments",mixins:[y],props:["total","itemtype","comments","scrollTarget","allurl"],
1components:{CommentCard:S},created:function(){this.mdiOpenInNew=n["y"]},watch:{scrollTarget:function(t,e){var i=this;t&&this.$nextTick((function(){return i.scrollToComment(t.id)}))}}},L=E,j=i("1c1c"),P=i("9c40"),D=Object(p["a"])(L,s,a,!1,null,null,null),R=D.exports;g()(D,"components",{QList:j["a"],QBtn:P["a"]});var z=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"q-pa-sm q-gutter-sm"},[t.category?i("q-btn",{attrs:{color:"orange",size:"sm",unelevated:"",to:t.base_url+"/"+t.category.slug,title:t.category.name,label:t.category.name}}):t._e(),t._l(t.tags,(function(e){return i("q-btn",{key:e.id,attrs:{color:"orange",outline:"",size:"sm",to:t.base_url+"?tag="+e.slug,title:e.name,label:e.name}})}))],2)},H=[],F={name:"TagCloud",props:["category","tags","base_url"]},B=F,A=Object(p["a"])(B,z,H,!1,null,null,null),M=A.exports;g()(A,"components",{QBtn:P["a"]});var N=i("d9bb"),U=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"new-comment q-py-md",attrs:{id:"newComment"}},[t.comment?i("q-item",[i("q-item-section",[i("q-item-label",{attrs:{caption:"",lines:"2"}},[t._v("\n        编辑评论: "+t._s(t._f("striphtml")(t.comment.content))+"\n      ")])],1),i("q-item-section",{attrs:{top:"",side:""}},[i("q-btn",{attrs:{flat:"",dense:"",round:""},on:{click:function(e){return t.$emit("update:comment",null)}}},[i("q-icon",{attrs:{name:t.mdiClose}})],1)],1)],1):t.parent?i("q-item",[i("q-item-section",[i("q-item-label",{attrs:{caption:"",lines:"4"}},[t._v("\n        回复用户 "+t._s(this.parent.author.name)+" 的评论: "+t._s(t._f("striphtml")(t.parent.content))+"\n      ")])],1),i("q-item-section",{attrs:{top:"",side:""}},[i("q-btn",{attrs:{flat:"",dense:"",round:""},on:{click:function(e){return t.$emit("update:parent",null)}}},[i("q-icon",{attrs:{name:t.mdiClose}})],1)],1)],1):t._e(),i("q-form",{staticClass:"q-px-sm q-gutter-md q-pb-lg",on:{submit:t.onSubmit}},[i("editor",{attrs:{type:"comment",draftId:t.draft_id,mentions:[]},on:{popup:function(e){t.popupAt=e}},model:{value:t.content,callback:function(e){t.content=e},expression:"content"}}),i("div",{staticClass:"q-gutter-x-sm"},[t.isLogin?i("q-btn",{attrs:{label:t.saveLabel,disable:t.isSubmitting,type:"submit",color:"primary"}}):i("q-btn",{attrs:{to:"/login",rel:"nofollow",label:"登录后评论",color:"primary"}}),t.comment?i("q-btn",{attrs:{label:"取消",type:"reset"},on:{click:function(e){return t.$emit("update:comment",null)}}}):t._e()],1)],1),i("adsense",{attrs:{"data-ad-client":"ca-pub-5590450072542909","data-ad-slot":"9987850018","data-ad-format":"horizontal"}})],1)},V=[],W=(i("6b54"),i("06db"),i("a897")),K={name:"NewComment",props:["ctype","cid","parent","comment"],components:{Editor:W["a"]},data:function(){return{popupAt:!1,isSubmitting:!1,id:null,draft_id:null,content:"",expanded:!1}},watch:{parent:function(t,e){this.reset(),this.scroll2Editor(t,e)},comment:function(t,e){t?(this.id=t.id,this.content=t.content):this.reset(),this.scroll2Editor(t,e)}},created:function(){this.draft_id=this.genDraftId(),this.mdiClose=n["h"]},computed:{isLogin:function(){return!Object(_["g"])(this.$store.state.jwt)},saveLabel:function(){return this.isSubmitting?"保存中...":this.comment?"保存":"评论"}},methods:{addAt:function(t){console.error("TODO")},cancelAt:function(t){console.error("TODO")},scroll2Editor:function(t,e){t&&this.$scrollTo("#newComment",100,{offset:-150,onDone:function(){}})},genDraftId:function(){return Math.random().toString(36).substring(2)},onSubmit:function(){var t=this;if(Object(_["g"])(this.content))return this.$q.notify("评论内容不能为空");this.isSubmitting=!0;var e={draft_id:this.draft_id,commentable_type:this.ctype,commentable_id:this.cid,content:this.content};this.parent&&(e.parent_id=this.parent.id);var i="postComment";this.id&&(e.id=this.id,i="putComment"),this.$store.dispatch(i,{to:this.$route,params:e}).then((function(){t.reset(),t.$emit("update:parent",null),t.$emit("update:comment",null)}))},reset:function(){var t=this;setTimeout((function(){t.isSubmitting=!1}),500),this.id=null,this.content="",this.draft_id=this.genDraftId()}}},G=K,J=i("0378"),X=Object(p["a"])(G,U,V,!1,null,null,null),Y=X.exports;g()(X,"components",{QItem:k["a"],QItemSection:x["a"],QItemLabel:w["a"],QBtn:P["a"],QIcon:I["a"],QForm:J["a"]});var Z=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"q-pa-sm q-gutter-sm flex justify-end"}
1,[i("span",{staticStyle:{padding:"0",width:"3em",height:"3em","line-height":"2.5rem",opacity:"0.6"}},[t._v("分享")]),i("q-btn",{attrs:{round:"",flat:"",color:"white","text-color":"green","aria-label":"分享到微信",icon:t.mdiWechat},on:{click:function(e){return t.onShareViaWechat()}}},[i("q-tooltip",[t._v("分享到微信")])],1),!0!==t.hideLike?i("q-btn",{attrs:{round:"",flat:"",color:"white","text-color":"primary","aria-label":"收藏",icon:t.likeIcon},on:{click:function(e){return t.$emit("toggleLike")}}},[i("q-tooltip",[t._v(t._s(t.liked?"已":"")+"收藏")])],1):t._e(),i("q-btn",{attrs:{round:"",flat:"",color:"white","text-color":"primary","aria-label":"复制链接",icon:t.mdiLink},on:{click:function(e){return t.onCopyLink(t.$refs.link)}}},[i("q-tooltip",[t._v("复制链接")])],1),i("input",{ref:"link",staticStyle:{width:"1px",height:"1px",padding:"0",margin:"0",border:"0"},attrs:{type:"text"},domProps:{value:t.fullUrl}})],1)},tt=[],et=i("81c3"),it=et["a"].Keyboard,nt={name:"ShareWidget",props:["hideLike","liked"],created:function(){this.mdiWechat=n["F"],this.mdiLink=n["v"]},computed:{fullUrl:function(){return this.$env.SPA_SERVER+this.$route.fullPath},qrcode:function(){return this.$env.API_ENDPOINT+"/api/qrcode?url="+encodeURIComponent(this.fullUrl)},likeIcon:function(){return this.liked?n["r"]:n["s"]}},methods:{onShare:function(){},onShareViaWechat:function(){this.$q.dialog({title:"扫描二维码分享到微信",message:'<img style="display: block; margin: auto" src="'+this.qrcode+'"/>',html:!0})},onCopyLink:function(t){var e=this;void 0!==navigator.clipboard&&this.$q.platform.is.capacitor?navigator.clipboard.writeText(t.value).then((function(){e.$q.notify("复制成功")})):(this.$q.platform.is.capacitor&&it.hide(),t.focus(),t.setSelectionRange(0,500),document.execCommand("copy"),t.blur(),this.$q.notify("复制成功"))}}},st=nt,at=i("05c0"),ot=Object(p["a"])(st,Z,tt,!1,null,null,null),rt=ot.exports;g()(ot,"components",{QBtn:P["a"],QTooltip:at["a"]});var ct=function(){var t=this,e=t.$createElement,i=t._self._c||e;return!t.$q.platform.is.capacitor&&t.tree?i("q-breadcrumbs",{staticClass:"q-pb-md q-pa-md",attrs:{itemscope:"",itemtype:"http://schema.org/BreadcrumbList"},scopedSlots:t._u([{key:"separator",fn:function(){return[i("q-icon",{attrs:{size:"1rem",name:t.mdiChevronRight,color:"primary"}})]},proxy:!0}],null,!1,1567545789)},[i("q-breadcrumbs-el",{attrs:{icon:t.mdiHome,to:"/",title:"首页",itemprop:"itemListElement",itemscope:"",itemtype:"http://schema.org/ListItem"}},[i("span",{attrs:{itemprop:"item",content:t.$env.SPA_SERVER}},[i("span",{attrs:{itemprop:"name"}},[t._v("首页")])]),i("meta",{attrs:{itemprop:"position",content:"1"}})]),t._l(t.tree,(function(e,n){return i("q-breadcrumbs-el",{key:n,attrs:{to:e.url,title:e.name,itemprop:"itemListElement",itemscope:"",itemtype:"http://schema.org/ListItem"}},[i("span",{attrs:{itemprop:"item",content:t.$env.SPA_SERVER+e.url}},[i("span",{attrs:{itemprop:"name"}},[t._v(t._s(e.name))])]),i("meta",{attrs:{itemprop:"position",content:2+n}})])})),i("q-breadcrumbs-el",{attrs:{label:t.title}})],2):t._e()},lt=[],ut={name:"Breadcrumbs",props:["tree","title"],created:function(){this.mdiHome=n["t"],this.mdiChevronRight=n["f"]}},mt=ut,dt=(i("e7ab"),i("ead5")),pt=i("079e"),ht=Object(p["a"])(mt,ct,lt,!1,null,null,null),ft=ht.exports;g()(ht,"components",{QBreadcrumbs:dt["a"],QIcon:I["a"],QBreadcrumbsEl:pt["a"]});var gt=i("6fdf");e["a"]={data:function(){return{route:null,entity:null,newComment:null,parentComment:null,editComment:null,expanded:!1,breadcrumbNames:{posts:"攻略",topics:"专题",deals:"优惠","bbs/posts":"社区"}}},meta:function(){return{title:this.siteTitle+" | "+this.$env.NAME,meta:[{name:"description",content:this.siteDesc}],link:[{rel:"canonical",href:this.entity_url},{rel:"alternate",hreflang:"x-default",href:this.entity_url},{rel:"alternate",hreflang:"zh-Hans",href:this.entity_url+"?lang=zh-Hans"},{rel:"alternate",hreflang:"zh-Hant",href:this.entity_url+"?lang=zh-Hant"}]}},components:{ImgModal:v,Comments:R,TagCloud:M,LinkCloud:N["a"],NewComment:Y,ShareWidget:rt,Breadcrumbs:ft,DesktopSidebar:gt["a"],VRuntimeTemplate:c["a"]},created:function(){this.init(this.$route),this.mdiFire=n["m"],this.mdiRefresh=n["B"],this.mdiOpenInNew=n["y"],this.mdiChatOutline=n["b"],this.mdiChevronLeft=n["e"]},mounted:function(){this.$store.dispatch("fetchMenu",this.$route)},serverPrefetch:function(){return this.$store.dispatch("fetchMenu",this.$route)},activated:function(){this.$q.platform.is.capacitor&&!Object.prototype.hasOwnProperty.call(this.$store.state.entities,this.$route.fullPath)&&this.$refs.pull2refresh.trigger(),this.init(this.$route)},computed:{menu:function(){return this.$store.state.menus[this.route.meta.menu]},title:function(){return this.$options.filters.striphtml(this.entity.title)},siteTitle:function(){return this.entity?this.title:"没有找到哦"},siteDesc:function(){return this.entity?this.entity.highlights:""},bannerAd:function(){return this.$store.state.common&&this.$store.state.common.ad},entity_url:function(){return this.entity?this.$env.SPA_SERVER+this.entity.url:""},tracking_url:function(){return this.entity.meta?this.entity.meta.tracking_url:null},isExpanded:function(){return this.expanded},breadcrumbs:function(){if(this.entity&&this.route.meta.breadcrumbs)return[{name:this.breadcrumbNames[this.route.meta.breadcrumbs],url:"/"+this.route.meta.breadcrumbs},{name:this.entity.category.name,url:"/"+this.route.meta.breadcrumbs+"/"+this.entity.category.slug}]},likeIcon:function(){return this.entity.liked?n["r"]:n["s"]}},methods:{init:function(t){this.route=t,this.entity=this.$store.state.entities[t.fullPath]},refreshEntity:function(t){var e=this;this.$store.dispatch("fetchEntity",{to:this.route,done:t,refresh:!0}).then((function(){return e.init(e.route)}))},toggleLike:function(){this.$store.dispatch("toggleLike",{to:this.route,liked:this.entity.liked})},zoom:function(t){this.$q.dialog({component:v,src:t.srcElement.src,maximized:!0}).onOk((function(){})).onCancel((function(){})).onDismiss((function(){}))}}}}
1,e7ab:function(t,e,i){"use strict";var n=i("f8f6"),s=i.n(n);s.a},e812:function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.entities&&t.entities.length?i("div",{staticClass:"related-posts"},[i("h4",{staticClass:"section-title",staticStyle:{"font-size":"1rem"}},[t._v("\n    "+t._s(t.prefix)+"相关文章\n    "),t.tags.length?i("router-link",{staticClass:"more",attrs:{to:"/posts?tag="+t.tags[0].slug}},[t._v("\n      更多...\n    ")]):t._e()],1),i("q-list",{attrs:{separator:""}},t._l(t.entities,(function(e){return i("q-item",{directives:[{name:"ripple",rawName:"v-ripple"}],key:"related-post-"+e.id,staticClass:"q-py-md",attrs:{clickable:"",to:e.url,title:e.title}},[i("q-item-section",{staticClass:"q-px-sm",attrs:{thumbnail:""}},[i("q-intersection",{staticClass:"img",attrs:{once:"",transition:"fade"}},[i("q-img",{staticClass:"img",attrs:{src:e.image,"spinner-color":"orange"}})],1)],1),i("q-item-section",[i("q-item-label",{staticClass:"text-body2",attrs:{lines:"2"}},[t._v("\n          "+t._s(e.title)+"\n        ")]),i("q-item-label",{staticClass:"metadata"},[i("span",{staticClass:"float-right"},[i("q-icon",{attrs:{name:t.mdiFire}}),i("span",[t._v(t._s(e.view_count))])],1)])],1)],1)})),1)],1):t._e()},s=[],a=i("e519"),o=i("6ad6"),r={extends:o["a"],props:["prefix"],created:function(){this.mdiFire=a["m"]}},c=r,l=i("2877"),u=i("1c1c"),m=i("66e5"),d=i("4074"),p=i("ad56"),h=i("068f"),f=i("0170"),g=i("0016"),b=i("714f"),v=i("eebe"),_=i.n(v),q=Object(l["a"])(c,n,s,!1,null,null,null);
1e["a"]=q.exports;_()(q,"components",{QList:u["a"],QItem:m["a"],QItemSection:d["a"],QIntersection:p["a"],QImg:h["a"],QItemLabel:f["a"],QIcon:g["a"]}),_()(q,"directives",{Ripple:b["a"]})},f8f6:function(t,e,i){}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.