1
0
hugo/static/js/comment/app.js
2024-12-21 22:23:54 +09:00

2 lines
9.7 KiB
JavaScript

(function(s){function t(t){for(var a,c,i=t[0],r=t[1],d=t[2],j=0,f=[];j<i.length;j++)c=i[j],Object.prototype.hasOwnProperty.call(o,c)&&o[c]&&f.push(o[c][0]),o[c]=0;for(a in r)Object.prototype.hasOwnProperty.call(r,a)&&(s[a]=r[a]);l&&l(t);while(f.length)f.shift()();return n.push.apply(n,d||[]),e()}function e(){for(var s,t=0;t<n.length;t++){for(var e=n[t],a=!0,i=1;i<e.length;i++){var r=e[i];0!==o[r]&&(a=!1)}a&&(n.splice(t--,1),s=c(c.s=e[0]))}return s}var a={},o={app:0},n=[];function c(t){if(a[t])return a[t].exports;var e=a[t]={i:t,l:!1,exports:{}};return s[t].call(e.exports,e,e.exports,c),e.l=!0,e.exports}c.m=s,c.c=a,c.d=function(s,t,e){c.o(s,t)||Object.defineProperty(s,t,{enumerable:!0,get:e})},c.r=function(s){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},c.t=function(s,t){if(1&t&&(s=c(s)),8&t)return s;if(4&t&&"object"===typeof s&&s&&s.__esModule)return s;var e=Object.create(null);if(c.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:s}),2&t&&"string"!=typeof s)for(var a in s)c.d(e,a,function(t){return s[t]}.bind(null,a));return e},c.n=function(s){var t=s&&s.__esModule?function(){return s["default"]}:function(){return s};return c.d(t,"a",t),t},c.o=function(s,t){return Object.prototype.hasOwnProperty.call(s,t)},c.p="/";var i=window["webpackJsonp"]=window["webpackJsonp"]||[],r=i.push.bind(i);i.push=t,i=i.slice();for(var d=0;d<i.length;d++)t(i[d]);var l=r;n.push([0,"chunk-vendors"]),e()})({0:function(s,t,e){s.exports=e("56d7")},4678:function(s,t,e){var a={"./af":"2bfb","./af.js":"2bfb","./ar":"8e73","./ar-dz":"a356","./ar-dz.js":"a356","./ar-kw":"423e","./ar-kw.js":"423e","./ar-ly":"1cfd","./ar-ly.js":"1cfd","./ar-ma":"0a84","./ar-ma.js":"0a84","./ar-ps":"4c98","./ar-ps.js":"4c98","./ar-sa":"8230","./ar-sa.js":"8230","./ar-tn":"6d83","./ar-tn.js":"6d83","./ar.js":"8e73","./az":"485c","./az.js":"485c","./be":"1fc1","./be.js":"1fc1","./bg":"84aa","./bg.js":"84aa","./bm":"a7fa","./bm.js":"a7fa","./bn":"9043","./bn-bd":"9686","./bn-bd.js":"9686","./bn.js":"9043","./bo":"d26a","./bo.js":"d26a","./br":"6887","./br.js":"6887","./bs":"2554","./bs.js":"2554","./ca":"d716","./ca.js":"d716","./cs":"3c0d","./cs.js":"3c0d","./cv":"03ec","./cv.js":"03ec","./cy":"9797","./cy.js":"9797","./da":"0f14","./da.js":"0f14","./de":"b469","./de-at":"b3eb","./de-at.js":"b3eb","./de-ch":"bb71","./de-ch.js":"bb71","./de.js":"b469","./dv":"598a","./dv.js":"598a","./el":"8d47","./el.js":"8d47","./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"7333","./en-il.js":"7333","./en-in":"ec2e","./en-in.js":"ec2e","./en-nz":"6f50","./en-nz.js":"6f50","./en-sg":"b7e9","./en-sg.js":"b7e9","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-mx":"b5b7","./es-mx.js":"b5b7","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df4","./fa.js":"8df4","./fi":"81e9","./fi.js":"81e9","./fil":"d69a","./fil.js":"d69a","./fo":"0721","./fo.js":"0721","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"0e49","./fr.js":"9f26","./fy":"7118","./fy.js":"7118","./ga":"5120","./ga.js":"5120","./gd":"f6b4","./gd.js":"f6b4","./gl":"8840","./gl.js":"8840","./gom-deva":"aaf2","./gom-deva.js":"aaf2","./gom-latn":"0caa","./gom-latn.js":"0caa","./gu":"e0c5","./gu.js":"e0c5","./he":"c7aa","./he.js":"c7aa","./hi":"dc4d","./hi.js":"dc4d","./hr":"4ba9","./hr.js":"4ba9","./hu":"5b14","./hu.js":"5b14","./hy-am":"d6b6","./hy-am.js":"d6b6","./id":"5038","./id.js":"5038","./is":"0558","./is.js":"0558","./it":"6e98","./it-ch":"6f12","./it-ch.js":"6f12","./it.js":"6e98","./ja":"079e","./ja.js":"079e","./jv":"b540","./jv.js":"b540","./ka":"201b","./ka.js":"201b","./kk":"6d79","./kk.js":"6d79","./km":"e81d","./km.js":"e81d","./kn":"3e92","./kn.js":"3e92","./ko":"22f8","./ko.js":"22f8","./ku":"2421","./ku-kmr":"7558","./ku-kmr.js":"7558","./ku.js":"2421","./ky":"9609","./ky.js":"9609","./lb":"440c","./lb.js":"440c","./lo":"b29d","./lo.js":"b29d","./lt":"26f9","./lt.js":"26f9","./lv":"b97c","./lv.js":"b97c","./me":"293c","./me.js":"293c","./mi":"688b","./mi.js":"688b","./mk":"6909","./mk.js":"6909","./ml":"02fb","./ml.js":"02fb","./mn":"958b","./mn.js":"958b","./mr":"39bd","./mr.js":"39bd","./ms":"ebe4","./ms-my":"6403","./ms-my.js":"6403","./ms.js":"ebe4","./mt":"1b45","./mt.js":"1b45","./my":"8689","./my.js":"8689","./nb":"6ce3","./nb.js":"6ce3","./ne":"3a39","./ne.js":"3a39","./nl":"facd","./nl-be":"db29","./nl-be.js":"db29","./nl.js":"facd","./nn":"b84c","./nn.js":"b84c","./oc-lnc":"167b","./oc-lnc.js":"167b","./pa-in":"f3ff","./pa-in.js":"f3ff","./pl":"8d57","./pl.js":"8d57","./pt":"f260","./pt-br":"d2d4","./pt-br.js":"d2d4","./pt.js":"f260","./ro":"972c","./ro.js":"972c","./ru":"957c","./ru.js":"957c","./sd":"6784","./sd.js":"6784","./se":"ffff","./se.js":"ffff","./si":"eda5","./si.js":"eda5","./sk":"7be6","./sk.js":"7be6","./sl":"8155","./sl.js":"8155","./sq":"c8f3","./sq.js":"c8f3","./sr":"cf1e","./sr-cyrl":"13e9","./sr-cyrl.js":"13e9","./sr.js":"cf1e","./ss":"52bd","./ss.js":"52bd","./sv":"5fbd","./sv.js":"5fbd","./sw":"74dc","./sw.js":"74dc","./ta":"3de5","./ta.js":"3de5","./te":"5cbb","./te.js":"5cbb","./tet":"576c","./tet.js":"576c","./tg":"3b1b","./tg.js":"3b1b","./th":"10e8","./th.js":"10e8","./tk":"5aff","./tk.js":"5aff","./tl-ph":"0f38","./tl-ph.js":"0f38","./tlh":"cf75","./tlh.js":"cf75","./tr":"0e81","./tr.js":"0e81","./tzl":"cf51","./tzl.js":"cf51","./tzm":"c109","./tzm-latn":"b53d","./tzm-latn.js":"b53d","./tzm.js":"c109","./ug-cn":"6117","./ug-cn.js":"6117","./uk":"ada2","./uk.js":"ada2","./ur":"5294","./ur.js":"5294","./uz":"2e8c","./uz-latn":"010e","./uz-latn.js":"010e","./uz.js":"2e8c","./vi":"2921","./vi.js":"2921","./x-pseudo":"fd7e","./x-pseudo.js":"fd7e","./yo":"7f33","./yo.js":"7f33","./zh-cn":"5c3a","./zh-cn.js":"5c3a","./zh-hk":"49ab","./zh-hk.js":"49ab","./zh-mo":"3a6c","./zh-mo.js":"3a6c","./zh-tw":"90ea","./zh-tw.js":"90ea"};function o(s){var t=n(s);return e(t)}function n(s){if(!e.o(a,s)){var t=new Error("Cannot find module '"+s+"'");throw t.code="MODULE_NOT_FOUND",t}return a[s]}o.keys=function(){return Object.keys(a)},o.resolve=n,s.exports=o,o.id="4678"},"56d7":function(s,t,e){"use strict";e.r(t);var a=e("2b0e"),o=function(){var s=this,t=s._self._c;return t("div",{attrs:{id:"comment"}},[t("div",{staticClass:"comment-root"},[s.loading&&s.cid_root?t("div",{staticClass:"loading"},[t("vue-loading",{attrs:{type:"cylon",color:"#fff700",size:{width:"50px",height:"50px"}}})],1):t("div",{staticClass:"loading_none"}),s.cid_root?t("div",{staticClass:"bsky_comment"},s._l(s.api_json_record,(function(e,a){return t("span",{staticClass:"comment"},[e.cid_root==s.cid_root?t("p",{staticClass:"comment-body"},[""!=e.did.replace("did:plc:","")?t("span",[s.loading?t("img",{staticClass:"comment",attrs:{src:"/icon/null.jpg"}}):s._e(),s.api_json_record.length-1==a?t("img",{staticClass:"comment",attrs:{src:"https://git.syui.ai/ai/comment/raw/branch/main/public/icon/"+e.did.replace("did:plc:","")+".jpg"},on:{load:s.load}}):t("img",{staticClass:"comment",attrs:{src:"https://git.syui.ai/ai/comment/raw/branch/main/public/icon/"+e.did.replace("did:plc:","")+".jpg"}})]):s._e(),e.updated_at&&!s.loading?t("span",{staticClass:"comment-time"},[e.bsky_url?t("a",{attrs:{href:e.bsky_url}},[s._v(s._s(s.moment(e.updated_at)))]):s._e()]):s._e(),s._v(" "),e.handle&&!s.loading?t("span",{staticClass:"comment-handle"},[e.bsky_url?t("a",{attrs:{href:"https://"+e.bsky_url.split("/").slice(2,5).join("/")}},[s._v("@"+s._s(e.handle.replace(".bsky.social","")))]):s._e()]):s._e(),e.text&&!s.loading?t("span",{staticClass:"comment-text"},[s._v(s._s(e.text))]):s._e()]):s._e()])})),0):s._e()])])},n=[],c=e("d523"),i=e("7e04"),r=(e("955f"),e("cee4")),d=e("c1df"),l=e.n(d),j=(e("3e8f"),21),f=window.location.pathname,b={name:"App",components:{VueLoading:c["VueLoading"],Hooper:i["a"],Slide:i["e"],HooperProgress:i["d"],HooperPagination:i["c"],HooperNavigation:i["b"]},data(){return{host:window.location.host,loc:window.location.pathname,bsky_pds:"https://bsky.social/xrpc",bsky_handle:"yui.syui.ai",bsky_cursor:"",bsky_cid:"",bsky_json:"",api_url:"",api_json:"",api_json_record:"",blog:"",cid_root:"",uri_root:"",comment_open:!1,comment_first:"",loading:!0,avatar_url:"",f:"",url_check:!0,url:"/",products:[...Array(Number(j)).keys()]}},methods:{moment(s){return l.a.utc(s).local().format("YYYY.MM.DD")},load(){this.loading=!1},axios_check(s){r["a"].get(s).then(t=>{this.avatar_url=s,this.url_check=!0}).catch(s=>{this.url_check=!1,this.avatar_url="/icon/ai.jpg"})}},mounted(){"localhost:8080"===this.host?(this.host="manga.syui.ai",this.api_url="/api/"):"localhost:1313"===this.host?(this.host="syui.ai",this.api_url="https://api.syui.ai"):"192.168.11.12:8080"===this.host?this.api_url="/api/":("https:"!==location.protocol&&location.replace("https:"+location.href.substring(location.protocol.length)),this.api_url="https://api.syui.ai");let s=this.api_url+"/users/2/ma?itemsPerPage=4000";r["a"].get(s,{crossdomain:!0}).then(s=>{this.api_json=s;const t=this.api_json.data.find(s=>s.blog_url=="https://"+s.blog+f);void 0!==t&&(this.cid_root=this.api_json.data.find(s=>s.blog_url=="https://"+s.blog+f&&s.blog===this.host).cid,this.uri_root=this.api_json.data.find(s=>s.blog_url=="https://"+s.blog+f&&s.blog===this.host).uri,this.api_json_record=this.api_json.data.filter(s=>s.cid_root==this.cid_root&&s.blog===this.host))})}},u=b,p=(e("f0df"),e("2877")),h=Object(p["a"])(u,o,n,!1,null,null,null),m=h.exports;a["default"].config.productionTip=!1,new a["default"]({render:s=>s(m)}).$mount("#comment")},7390:function(s,t,e){},f0df:function(s,t,e){"use strict";e("7390")}});
//# sourceMappingURL=app.js.map