PageSourceSearch

https://750words.com/_nuxt/BM3H4k60.js

js 750words.com collected 2026-09-24 18:05:37 UTC 2,508 bytes, 1 lines download raw bytes

1import{_ as m}from"./QGNy9sQ5.js";import{_ as p,r as y,f as _,w as i,a as e,t as n,o as a,c as s,F as w,i as f,b as h,d as r,e as g,h as $,n as u,q as b}from"./Ck03Lu83.js";const v=g({name:"AccountBrowse",data(){return{currentUser:{},monthlyInfo:null}},computed:{authStore(){return b()}},async mounted(){if(this.authStore.sessionChecked||await this.authStore.initializeAuth(),!this.authStore.isLoggedIn){await u("/login");return}this.currentUser=this.authStore.user||{},await this.loadBrowseData()},methods:{monthFormatted(t){return this.$moment.utc(t).format("MMMM, YYYY")},monthForUrl(t){return this.$moment.utc(t).format("YYYY-MM")},async loadBrowseData(){try{const t=await $fetch("/api/v1/person/browse",{baseURL:$().public.railsApiUrl||"http://localhost:8080",headers:{Authorization:`Bearer ${this.authStore.token}`,"Content-Type":"application/json"}});t.status==="OK"&&(this.monthlyInfo=t.monthly_info,console.log(this.monthlyInfo))}catch(t){console.error("Error loading browse data:",t),t.status===401&&(await this.authStore.logout(),await u("/login"))}}}}),k={key:0},I={class:"month-title"},B={class:"month-stats"},S={key:1,class:"empty-state"},Y={key:2,class:"loading-state"};function U(t,l,C,F,M,A){const c=m,d=y("v-container");return a(),_(d,{id:"account-browse-container"},{default:i(()=>[e("h1",null,n(t.$t("account.browse.title")||"Browse your writing by month"),1),t.monthlyInfo&&t.monthlyInfo.length>0?(a(),s("div",k,[(a(!0),s(w,null,f(t.monthlyInfo,o=>(a(),s("div",{key:o.date,class:"month-entry"},[e("div",I,[e("strong",null,[h(c,{to:`/person/${t.currentUser.writer_handle}/${t.monthForUrl(o.month)}`},{default:i(()=>[r(n(t.monthFormatted(o.month))+": ",1)]),_:2},1032,["to"])])]),e("div",B,n(t.$t("account.browse.month_stats",{totalDays:o.total_days_showed_up,completedDays:o.total_days_completed})||`Wrote ${o.total_days_showed_up} days, completed ${o.total_days_completed} days.`),1)]))),128))])):t.monthlyInfo&&t.monthlyInfo.length===0?(a(),s("div",S,[e("p",null,n(t.$t("account.browse.empty_state_no_writing")||"You haven't written anything yet."),1),e("p",null,[r(n(t.$t("account.browse.empty_state_cta")||"Why not try")+" ",1),h(c,{to:"/write",class:"cta-link"},{default:i(()=>[r(n(t.$t("account.browse.empty_state_link")||"writing right now"),1)]),_:1}),l[0]||(l[0]=r("?",-1))])])):(a(),s("div",Y,[e("p",null,n(t.$t("account.browse.loading_history")||"Loading your writing history..."),1)]))]),_:1})}const N=p(v,[["render",U],["__scopeId","data-v-340bec01"]]);export{N 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.