PageSourceSearch

https://ropewalk.ai/_nuxt/Dxh2juoo.js

js ropewalk.ai collected 2026-10-04 08:47:29 UTC 2,477 bytes, 1 lines download raw bytes

1import{aK as S,cv as A,ck as D,c8 as N,b3 as R,cD as T,cB as b,c7 as V,bp as u,az as f,bT as a,ax as j,aw as o,aG as y,aj as q,bN as t,cE as z,aF as E,_ as L,ay as G,bv as k,au as F,bV as H,bb as K,ab as P,al as J}from"./CpZS6rWy.js";import{u as M}from"./V3IJdBDu.js";import"./C33ngZ8g.js";const O={class:"profile-page"},Q={key:1,class:"profile-header"},W={class:"profile-info"},X={class:"profile-details"},Y={class:"username"},Z={class:"stats"},ee={class:"stat"},se={class:"count"},ae={class:"label"},oe={class:"stat"},te={class:"count"},le={class:"label"},ne={key:0,class:"actions"},re=S({__name:"[username]",async setup(ie){let r,m;const l=A(),n=D(),{t:$,locale:v}=N(),_=R("sendRequest"),i=k(!1),c=k(!1),p=F(()=>l.userId),w=F(()=>l.following),{data:s,pending:C,refresh:h}=([r,m]=T(()=>H(`profile-${n.params.username}`,()=>_("get",`/user/profile/${n.params.username}`).catch(e=>null))),r=await r,m(),r),g=()=>{!p.value||!s.value||(c.value=w.value.some(e=>e.following._id===s.value._id))},x=async()=>{if(!(!p.value||i.value)){i.value=!0;try{if(c.value){const e=await _("post","/user/profile/unfollow",{userIdToUnfollow:s.value._id});l.setFollowing(e.activeUserFollowings)}else{const e=await _("post","/user/profile/follow",{userIdToFollow:s.value._id});l.setFollowing(e.activeUserFollowings)}await h(),g()}catch{}finally{i.value=!1}}};return b(()=>n.params.username,()=>{h()}),b([w,s],g),M(),V(()=>{if(!s.value)return{title:`${n.params.username} | Ropewalk.ai`};const e=s.value.username||n.params.username,d=`${v.value==="ru"?"https://ru.ropewalk.ai":"https://ropewalk.ai"}/profile/${e}`;return K.profile({t:$,locale:v.value,username:e,userBio:s.value.bio||"",avatar:s.value.avatar?.fileUrl||"",url:d})}),(e,B)=>{const d=P,I=q,U=L;return u(),f("div",O,[a(C)?(u(),j(d,{key:0})):(u(),f("div",Q,[o("div",W,[y(I,{src:a(s)?.avatar?.fileUrl,size:"96px","is-profile":""},null,8,["src"]),o("div",X,[o("h1",Y,t(a(s)?.username),1),o("div",Z,[o("div",ee,[o("span",se,t(a(s)?.followersCount||0),1),o("span",ae,t(e.$t("profile.stats.followers")),1)]),o("div",oe,[o("span",te,t(a(s)?.followingCount||0),1),o("span",le,t(e.$t("profile.stats.following")),1)])]),a(l).isAuthReady&&a(s)?._id!==a(p)?(u(),f("div",ne,[y(U,{loading:a(i),variant:a(c)?"secondary":"primary",onClick:x},{default:z(()=>[E(t(a(c)?e.$t("profile.button.unfollow"):e.$t("profile.button.follow")),1)]),_:1},8,["loading","variant"])])):G("",!0)])])]))])}}}),pe=J(re,[["__scopeId","data-v-bced7f38"]]);export{pe as default};

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.