1
0
hugo/static/js/comment/app.js
2024-04-26 11:56:58 +09:00

2 lines
9.4 KiB
JavaScript

(function(s){function e(e){for(var a,c,r=e[0],i=e[1],l=e[2],j=0,f=[];j<r.length;j++)c=r[j],Object.prototype.hasOwnProperty.call(n,c)&&n[c]&&f.push(n[c][0]),n[c]=0;for(a in i)Object.prototype.hasOwnProperty.call(i,a)&&(s[a]=i[a]);d&&d(e);while(f.length)f.shift()();return o.push.apply(o,l||[]),t()}function t(){for(var s,e=0;e<o.length;e++){for(var t=o[e],a=!0,r=1;r<t.length;r++){var i=t[r];0!==n[i]&&(a=!1)}a&&(o.splice(e--,1),s=c(c.s=t[0]))}return s}var a={},n={app:0},o=[];function c(e){if(a[e])return a[e].exports;var t=a[e]={i:e,l:!1,exports:{}};return s[e].call(t.exports,t,t.exports,c),t.l=!0,t.exports}c.m=s,c.c=a,c.d=function(s,e,t){c.o(s,e)||Object.defineProperty(s,e,{enumerable:!0,get:t})},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,e){if(1&e&&(s=c(s)),8&e)return s;if(4&e&&"object"===typeof s&&s&&s.__esModule)return s;var t=Object.create(null);if(c.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:s}),2&e&&"string"!=typeof s)for(var a in s)c.d(t,a,function(e){return s[e]}.bind(null,a));return t},c.n=function(s){var e=s&&s.__esModule?function(){return s["default"]}:function(){return s};return c.d(e,"a",e),e},c.o=function(s,e){return Object.prototype.hasOwnProperty.call(s,e)},c.p="/";var r=window["webpackJsonp"]=window["webpackJsonp"]||[],i=r.push.bind(r);r.push=e,r=r.slice();for(var l=0;l<r.length;l++)e(r[l]);var d=i;o.push([0,"chunk-vendors"]),t()})({0:function(s,e,t){s.exports=t("56d7")},"0c29":function(s,e,t){},4678:function(s,e,t){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 n(s){var e=o(s);return t(e)}function o(s){if(!t.o(a,s)){var e=new Error("Cannot find module '"+s+"'");throw e.code="MODULE_NOT_FOUND",e}return a[s]}n.keys=function(){return Object.keys(a)},n.resolve=o,s.exports=n,n.id="4678"},"56d7":function(s,e,t){"use strict";t.r(e);var a=t("2b0e"),n=function(){var s=this,e=s._self._c;return e("div",{attrs:{id:"app"}},[s.loading&&s.cid_root?e("div",{staticClass:"loading"},[e("vue-loading",{attrs:{type:"cylon",color:"#fff700",size:{width:"50px",height:"50px"}}})],1):e("div",{staticClass:"loading_none"}),s.cid_root?e("div",{staticClass:"bsky_comment"},s._l(s.api_json_record,(function(t,a){return e("span",{staticClass:"comment"},[t.cid_root==s.cid_root?e("p",{staticClass:"comment-body"},[""!=t.did.replace("did:plc:","")?e("span",[s.loading?e("img",{staticClass:"comment",attrs:{src:"/icon/null.jpg"}}):s._e(),s.api_json_record.length-1==a?e("img",{staticClass:"comment",attrs:{src:"https://git.syui.ai/ai/comment/raw/branch/main/public/icon/"+t.did.replace("did:plc:","")+".jpg"},on:{load:s.load}}):e("img",{staticClass:"comment",attrs:{src:"https://git.syui.ai/ai/comment/raw/branch/main/public/icon/"+t.did.replace("did:plc:","")+".jpg"}})]):s._e(),t.updated_at&&!s.loading?e("span",{staticClass:"comment-time"},[t.bsky_url?e("a",{attrs:{href:t.bsky_url}},[s._v(s._s(s.moment(t.updated_at)))]):s._e()]):s._e(),s._v(" "),t.handle&&!s.loading?e("span",{staticClass:"comment-handle"},[t.bsky_url?e("a",{attrs:{href:"https://"+t.bsky_url.split("/").slice(2,5).join("/")}},[s._v("@"+s._s(t.handle.replace(".bsky.social","")))]):s._e()]):s._e(),t.text&&!s.loading?e("span",{staticClass:"comment-text"},[s._v(s._s(t.text))]):s._e()]):s._e()])})),0):s._e()])},o=[],c=t("d523"),r=t("7e04"),i=(t("955f"),t("cee4")),l=t("c1df"),d=t.n(l),j=(t("3e8f"),21),f=window.location.pathname,u={name:"App",components:{VueLoading:c["VueLoading"],Hooper:r["a"],Slide:r["e"],HooperProgress:r["d"],HooperPagination:r["c"],HooperNavigation:r["b"]},data(){return{loc:window.location.pathname,bsky_pds:"https://bsky.social/xrpc",bsky_handle:"yui.syui.ai",bsky_cursor:null,bsky_cid:"",bsky_json:null,api_url:null,api_json:null,api_json_record:null,cid_root:null,uri_root:null,comment_open:!1,comment_first:null,loading:!0,avatar_url:"",f:null,url_check:!0,url:"/",products:[...Array(Number(j)).keys()]}},methods:{moment(s){return d.a.utc(s).local().format("YYYY.MM.DD")},load(){this.loading=!1},axios_check(s){i["a"].get(s).then(e=>{this.avatar_url=s,this.url_check=!0}).catch(s=>{this.url_check=!1,this.avatar_url="/icon/ai.jpg"})}},mounted(){"localhost:8080"===window.location.host?this.api_url="/api/":"localhost:1313"===window.location.host?this.api_url="https://api.syui.ai":"192.168.11.12:8080"===window.location.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";i["a"].get(s,{crossdomain:!0}).then(s=>{this.api_json=s,this.cid_root=this.api_json.data.find(s=>s.blog_url==f).cid,this.uri_root=this.api_json.data.find(s=>s.blog_url==f).uri,this.api_json_record=this.api_json.data.filter(s=>s.cid_root==this.cid_root)})}},b=u,p=(t("d424"),t("2877")),h=Object(p["a"])(b,n,o,!1,null,null,null),m=h.exports;a["default"].config.productionTip=!1,new a["default"]({render:s=>s(m)}).$mount("#app")},d424:function(s,e,t){"use strict";t("0c29")}});
//# sourceMappingURL=app.js.map