mirror of https://github.com/rocboss/paopao-ce
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
30 KiB
2 lines
30 KiB
11 months ago
|
import{d as ae,H as r,r as we,e as o,f as p,j as d,k as t,w as n,t as L,A as S,v as U,Z as i,bk as a,y as Y,c as ce,ar as Ge,F as ve,x as he,a0 as Re,a1 as Se,b as Oe,h as Ie,E as Qe}from"./@vue-OWLFCSZf.js";import{u as re}from"./vuex-az5e4eav.js";import{i as fe,t as Ze,j as Xe,k as et,_ as pe,l as tt,m as st,n as ot,o as nt,p as at,g as lt,q as it,r as ut,s as ct,v as rt,w as pt,x as _t,y as dt,z as mt,A as vt,B as ht,u as ft,f as gt,C as Te,D as ke}from"./index-qG_8BN-j.js";import{Y as se,V as ee}from"./IEnum-u5OuruSk.js";import{T as Le,e as ge,f as Ae,g as ye,h as De,i as yt,j as kt,I as wt,k as bt,l as $t,m as Ct,n as xt,o as It,p as Tt,q as Pt,r as Ut,s as zt,t as ue,u as Rt,v as St,w as Ot,x as Pe,F as Ue,E as de,y as me,z as ze}from"./@vicons-0TGbfQ8H.js";import{j as K,e as _e,K as Me,I as Lt,b as At,L as Dt,o as be,M as Ee,O as Ne,v as Mt,w as Et,x as Nt,y as qt,z as Bt,B as Ht,F as Ft,P as jt,i as Vt,Q as Yt,a as qe,G as Wt,J as Jt,k as Kt,H as Gt,f as Qt,g as Zt}from"./naive-ui-Xe90xWx_.js";import{p as $e,_ as Be,a as Xt,b as es,c as ts}from"./content-2RVjnZuU.js";import{u as He,b as ss}from"./vue-router-KVMegFg5.js";import{_ as os}from"./post-skeleton-uQTNCebs.js";import{l as ns}from"./lodash-8cBkGte7.js";import{_ as as}from"./whisper-kyuywE3Q.js";import{c as ls}from"./copy-to-clipboard-l6UqHK6O.js";import{_ as is}from"./main-nav.vue_vue_type_style_index_0_lang-qm71WtqL.js";import{W as us}from"./v3-infinite-loading-vHB4M6bL.js";import"./axios-kMxbiGYq.js";import"./moment-jIwEdMgI.js";/* empty css */import"./seemly-hKSMrbh9.js";import"./vueuc-9lIKNc7l.js";import"./evtd-9ZCiDXyn.js";import"./@css-render-NyXtGlUD.js";import"./vooks-m9NwUyK6.js";import"./vdirs-gz97tqc5.js";import"./@juggle--NVrOerG.js";import"./css-render-Adblu2bf.js";import"./@emotion-vV6BesBt.js";import"./lodash-es-KEIJqYRD.js";import"./treemate-hmrDCADh.js";import"./async-validator-BHjhHa7C.js";import"./date-fns-E8ESfRGG.js";import"./paopao-video-player-HKqQZQ5A.js";import"./@babel-5-cIlDoe.js";import"./toggle-selection-fekekO1r.js";const cs={class:"reply-item"},rs={class:"header-wrap"},ps={class:"username"},_s={class:"reply-name"},ds={class:"timestamp"},ms={class:"base-wrap"},vs={class:"content"},hs={class:"reply-switch"},fs={class:"time-item"},gs={class:"actions"},ys={class:"upvote-count"},ks={class:"upvote-count"},ws={key:2,class:"action-item"},bs=ae({__name:"reply-item",props:{tweetId:{},reply:{}},emits:["focusReply","reload"],setup(E,{emit:V}){const u=E,_=re(),g=V,$=r(u.reply.is_thumbs_up==se.YES),O=r(u.reply.is_thumbs_down==se.YES),T=r(u.reply.thumbs_up_count),v=()=>{Ze({tweet_id:u.tweetId,comment_id:u.reply.comment_id,reply_id:u.reply.id}).then(f=>{$.value=!$.value,$.value?(T.value++,O.value=!1):T.value--}).catch(f=>{console.log(f)})},l=()=>{Xe({tweet_id:u.tweetId,comment_id:u.reply.comment_id,reply_id:u.reply.id}).then(f=>{O.value=!O.value,O.value&&$.value&&(T.value--,$.value=!1)}).catch(f=>{console.log(f)})},N=()=>{g("focusReply",u.reply)},D=()=>{et({id:u.reply.id}).then(f=>{window.$message.success("删除成功"),setTimeout(()=>{g("reload")},50)}).catch(f=>{console.log(f)})};return(f,x)=>{const M=we("router-link"),I=K,b=_e,P=Me,y=Lt;return o(),p("div",cs,[d("div",rs,[d("div",ps,[t(M,{class:"user-link",to:{name:"user",query:{s:u.reply.user.username}}},{default:n(()=>[S(L(u.reply.user.username),1)]),_:1},8,["to"]),d("span",_s,L(u.reply.at_user_id>0?"回复":":"),1),u.reply.at_user_id>0?(o(),U(M,{key:0,class:"user-link",to:{name:"user",query:{s:u.reply.at_user.username}}},{default:n(()=>[S(L(u.reply.at_user.username),1)]),_:1},8,["to"])):i("",!0)]),d("div",ds,[S(L(u.reply.ip_loc)+" ",1),a(_).state.userInfo.is_admin||a(_).state.userInfo.id===u.reply.user.id?(o(),U(P,{key:0,"negative-text":"取消","positive-text":"确认",onPositiveClick:D},{trigger:n(()=>[t(b,{quaternary:"",circle:"",size:"tiny",class:"del-btn"},{icon:n(()=>[t(I,null,{default:n(()=>[t(a(Le))]),_:1})]),_:1})]),default:n(()=>[S(" 是否删除这条回复? ")]),_:1})):i("",!0)])]),d("div",ms,[d("div",vs,[t(y,{"expand-trigger":"click","line-clamp":"5",toolti
|