PageSourceSearch

https://battletabs.com/assets/MySubmissionsRoute-De_8Zg29.js

js battletabs.com collected 2026-09-24 13:44:49 UTC 2,630 bytes, 1 lines download raw bytes

1import{b as x,u as b,a as r,e as h,j as e,C as i,f as a,H as f,L as l,B as p,t as c}from"./index-B6jTtCPu.js";import{r as j,f as v}from"./formatting-BvzPpdGD.js";function S(){const{sessionToken:t,user:d}=x(),o=b(r.submissions.getMySubmissions,t?{sessionToken:t}:"skip")??[],m=h(r.submissions.deleteSubmission);if(!d)return e.jsx("div",{className:"max-w-3xl mx-auto p-12 text-center",children:e.jsx(i,{children:e.jsx(a,{children:"SIGN IN REQUIRED"})})});const u=async s=>{if(t&&confirm("Delete this submission?"))try{await m({sessionToken:t,submissionId:s}),c.success("Submission deleted")}catch(n){c.error(n instanceof Error?n.message:"Failed to delete")}};return e.jsxs("div",{className:"max-w-[1100px] mx-auto px-6 py-10",children:[e.jsxs(f,{children:[e.jsx("title",{children:"My Submissions — BattleTabs"}),e.jsx("meta",{name:"robots",content:"noindex,nofollow"})]}),e.jsxs("div",{className:"flex justify-between items-end mb-6",children:[e.jsx("h1",{className:"font-display font-bold uppercase m-0",style:{fontSize:36,color:"var(--bt-ink)"},children:"My Submissions"}),e.jsx(l,{to:"/community/submit",children:e.jsx(p,{size:"sm",children:"+ New Submission"})})]}),o.length===0?e.jsxs(i,{children:[e.jsx(a,{children:"NOTHING YET"}),e.jsx("p",{style:{color:"var(--bt-ink)"},children:"Submit your first cosmetic idea — moderators review them within 48h."})]}):e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:o.map(s=>e.jsx(i,{children:e.jsxs("div",{className:"flex gap-4",children:[e.jsx("div",{className:"bt-stripes",style:{width:96,height:96,border:"2px solid var(--bt-line-soft)",borderRadius:8,overflow:"hidden",flexShrink:0},children:s.imageUrl&&e.jsx("img",{src:s.imageUrl,alt:s.title,className:"w-full h-full object-cover"})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"font-mono uppercase mb-0.5",style:{fontSize:9,letterSpacing:1.5,color:"var(--bt-dim)"},children:[s.status.toUpperCase()," ·"," ",j(s._creationTime).toUpperCase()]}),e.jsx(l,{to:`/community/item/${s._id}`,className:"font-display font-bold block mb-1",style:{fontSize:16,color:"var(--bt-ink)",textDecoration:"none"},children:s.title}),e.jsxs("div",{className:"flex justify-between items-center mt-2",style:{fontSize:12,color:"var(--bt-dim)"},children:[e.jsxs("span",{children:["▲ ",v(s.voteCount)," votes"]}),s.status!=="approved"&&e.jsx("button",{onClick:()=>u(s._id),className:"cursor-pointer font-mono uppercase",style:{background:"transparent",border:"none",color:"var(--bt-accent-2-border)",fontSize:10,letterSpacing:1},children:"DELETE"})]})]})]})},s._id))})]})}export{S 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.