PageSourceSearch

https://hackerworkspace.com/_next/static/chunks/app/community/page-e95b1d9619ea3e98.js

js hackerworkspace.com collected 2026-10-04 11:26:56 UTC 12,143 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6028],{439:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});let l=(0,s(8340).A)("shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]])},762:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});let l=(0,s(8340).A)("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]])},1914:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});let l=(0,s(8340).A)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]])},2289:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});let l=(0,s(8340).A)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]])},2484:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});let l=(0,s(8340).A)("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},2564:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});let l=(0,s(8340).A)("message-circle",[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]])},6088:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});let l=(0,s(8340).A)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},6204:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});let l=(0,s(8340).A)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]])},6663:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});let l=(0,s(8340).A)("youtube",[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]])},6752:(e,t,s)=>{Promise.resolve().then(s.bind(s,9903))},7233:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});let l=(0,s(8340).A)("github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]])},8449:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});let l=(0,s(8340).A)("twitter",[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]])},9903:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>f});var l=s(5155),a=s(3334),r=s(2539),i=s(7529),n=s(9782),o=s(2115),c=s(762),d=s(1914),x=s(8340);let h=(0,x.A)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);var m=s(6088),u=s(439),p=s(2484);let b=(0,x.A)("code-xml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]);var y=s(7233),g=s(8500),j=s.n(g);function f(){let{user:e,firebaseUser:t,loading:s}=(0,n.A)(),[x,g]=(0,o.useState)([]),[f,N]=(0,o.useState)(!1),[w,v]=(0,o.useState)("idle"),[k,A]=(0,o.useState)({title:"",description:"",link:"",demo_url:""});(0,o.useEffect)(()=>{M()},[]);let M=async()=>{try{let e=await i.F.getArticles(1,48,"community");g(e.items)}catch(e){console.error("Failed to fetch community submissions",e)}},_=async e=>{e.preventDefault(),v("submitting");try{if(!t)throw Error("Authentication required");let e=await t.getIdToken();await i.F.submitContent({link:k.link,title:k.title,description:k.description,repo_url:k.link,demo_url:k.demo_url},e),v("success"),A({title:"",description:"",link:"",demo_url:""}),setTimeout(()=>{v("idle"),N(!1)},3e3)}catch(e){console.error(e),v("error")}};return(0,l.jsxs)("main",{className:"min-h-screen bg-[#020202] pt-24",children:[(0,l.jsx)(a.Navbar,{}),(0,l.jsxs)("div",{className:"max-w-7xl mx-auto px-6 py-12",children:[(0,l.jsxs)("div",{className:"text-center mb-16",children:[(0,l.jsxs)("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full bg-neon-cyan/10 border border-neon-cyan/20 text-neon-cyan text-xs font-bold tracking-widest mb-6",children:[(0,l.jsx)(c.A,{size:12}),"COMMUNITY"]}),(0,l.jsxs)("h1",{className:"text-5xl md:text-7xl font-black text-white tracking-tighter mb-6",children:["Open Source ",(0,l.jsx)("span",{className:"text-neon-cyan",children:"Arsenal"})]}),(0,l.jsx)("p",{className:"text-slate-400 text-lg max-w-2xl mx-auto",children:"Discover and share security tools, scripts, and projects built by the HackerWorkspace community."})]}),(0,l.jsxs)("div",{className:"max-w-3xl mx-auto mb-20",children:[(0,l.jsxs)("button",{onClick:()=>N(!f),className:"w-full flex items-center justify-between p-6 bg-white/5 hover:bg-white/10 border border-white/10 rounded-2xl transition-all group",children:[(0,l.jsxs)("div",{className:"flex items-center gap-4",children:[(0,l.jsx)("div",{className:"w-12 h-12 rounded-xl bg-neon-cyan/20 flex items-center justify-center text-neon-cyan",children:(0,l.jsx)(d.A,{size:24,className:"group-hover:rotate-90 transition-transform duration-300"})}),(0,l.jsxs)("div",{className:"text-left",children:[(0,l.jsx)("h3",{className:"text-white font-bold text-lg",children:"Submit Your Project"}),(0,l.jsx)("p",{className:"text-slate-400 text-sm",children:"Share your tool with thousands of developers"})]})]}),f?(0,l.jsx)(h,{className:"text-slate-400"}):(0,l.jsx)(m.A,{className:"text-slate-400"})]}),f&&(0,l.jsxs)("div",{className:"mt-4 p-8 bg-black/50 border border-white/10 rounded-2xl backdrop-blur-sm animate-in fade-in slide-in-from-top-4",children:[(0,l.jsxs)("div",{className:"bg-red-500/10 border border-red-500/30 rounded-2xl p-6 mb-8 relative overflow-hidden",children:[(0,l.jsx)("div",{className:"absolute top-0 right-0 p-4 opacity-10",children:(0,l.jsx)(u.A,{size:100,className:"text-red-500"})}),(0,l.jsxs)("div",{className:"relative z-10",children:[(0,l.jsxs)("h2",{className:"text-red-500 font-bold text-xl flex items-center gap-2 mb-4",children:[(0,l.jsx)(u.A,{size:24}),"STRICT SUBMISSION POLICY"]}),(0,l.jsxs)("ul",{className:"space-y-3 text-slate-300 text-sm",children:[(0,l.jsxs)("li",{className:"flex items-start gap-2",children:[(0,l.jsx)("span",{className:"text-red-500 font-bold",children:"•"}),(0,l.jsxs)("div",{children:[(0,l.jsx)("strong",{className:"text-white",children:"NO SPAM OR SCAMS:"})," Zero tolerance policy. Any attempt to submit spam, phishing links, or malware will result in an ",(0,l.jsx)("span",{className:"font-bold text-red-500",children:"IMMEDIATE AND PERMANENT BAN"}),"."]})]}),(0,l.jsxs)("li",{className:"flex items-start gap-2",children:[(0,l.jsx)("span",{className:"text-red-500 font-bold",children:"•"}),(0,l.jsxs)("div",{children:[(0,l.jsx)("strong",{className:"text-white",children:"URL ONLY:"})," We only accept direct links to resources. Do not paste full text content."]})]})]})]})]}),e?"success"===w?(0,l.jsxs)("div",{className:"text-center py-12",children:[(0,l.jsx)(p.A,{size:48,className:"text-neon-cyan mx-auto mb-4"}),(0,l.jsx)("h3",{className:"text-white font-bold text-xl",children:"Submission Received!"}),(0,l.jsx)("p",{className:"text-slate-400 mt-2",children:"Your project is under review and will appear here shortly."})]}):(0,l.jsxs)("form",{onSubmit:_,className:"space-y-6",children:[(0,l.jsxs)("div",{className:"grid md:grid-cols-2 gap-6",children:[(0,l.jsxs)("div",{className:"col-span-2",children:[(0,l.jsx)("label",{className:"block text-xs font-bold text-slate-500 uppercase mb-2",children:"Project Name"}),(0,l.jsx)("input",{required:!0,value:k.title,onChange:e=>A({...k,title:e.target.value}),className:"w-full bg-white/5 border border-white/10 rounded-xl px-4 py-3 text-white focus:border-neon-cyan outline-none transition-colors",placeholder:"e.g. NetScanner Pro"})]}),(0,l.jsxs)("div",{className:"col-span-2",children:[(0,l.jsx)("label",{className:"block text-xs font-bold text-slate-500 uppercase mb-2",children:"Description"}),(0,l.jsx)("textarea",{required:!0,value:k.description,onChange:e=>A({...k,description:e.target.value}),className:"w-full bg-white/5 border border-white/10 rounded-xl px-4 py-3 text-white focus:border-neon-cyan outline-none transition-colors h-32 resize-none",placeholder:"What does your tool do?"})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{className:"block text-xs font-bold text-slate-500 uppercase mb-2",children:"Repo URL (GitHub/GitLab)"}),(0,l.jsx)("input",{required:!0,type:"url",value:k.link,onChange:e=>A({...k,link:e.target.value}),className:"w-full bg-white/5 border border-white/10 rounded-xl px-4 py-3 text-white focus:border-neon-cyan outline-none transition-colors",placeholder:"https://github.com/..."})]}),(0,l.jsxs)("div",{children:[(0,l.jsx)("label",{className:"block text-xs font-bold text-slate-500 uppercase mb-2",children:"Demo URL (Optional)"}),(0,l.jsx)("input",{type:"url",value:k.demo_url,onChange:e=>A({...k,demo_url:e.target.value}),className:"w-full bg-white/5 border border-white/10 rounded-xl px-4 py-3 text-white focus:border-neon-cyan outline-none transition-colors",placeholder:"https://..."})]})]}),(0,l.jsx)("button",{type:"submit",disabled:"submitting"===w,className:"w-full bg-neon-cyan text-black font-bold py-4 rounded-xl hover:shadow-[0_0_20px_rgba(0,243,255,0.4)] transition-all disabled:opacity-50",children:"submitting"===w?"Submitting...":"Submit Project"})]}):(0,l.jsxs)("div",{className:"text-center py-8",children:[(0,l.jsx)("p",{className:"text-slate-400 mb-4",children:"You must be logged in to submit a project."}),(0,l.jsx)(j(),{href:"/login",className:"px-6 py-2 bg-white text-black rounded-full font-bold",children:"Log In"})]})]})]}),(0,l.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:[x.map(e=>{let t,s,a;return(0,l.jsxs)("div",{className:"group bg-[#0A0A0A] border border-white/5 rounded-2xl p-6 hover:border-neon-cyan/50 hover:shadow-[0_0_20px_rgba(0,243,255,0.1)] transition-all",children:[(0,l.jsxs)("div",{className:"flex items-start justify-between mb-4",children:[(0,l.jsx)("div",{className:"p-3 bg-white/5 rounded-lg text-neon-cyan group-hover:bg-neon-cyan group-hover:text-black transition-colors",children:(0,l.jsx)(b,{size:24})}),(0,l.jsx)("div",{className:"px-2 py-1 rounded bg-neon-cyan/10 border border-neon-cyan/20 text-neon-cyan text-[10px] font-bold uppercase tracking-wider",children:"Community"})]}),(0,l.jsx)("h3",{className:"text-xl font-bold text-white mb-2 line-clamp-1",children:e.title||"Untitled Project"}),(0,l.jsx)("p",{className:"text-slate-400 text-sm mb-6 line-clamp-3 h-14",children:e.summary||e.excerpt||e.description||"No description provided."}),(0,l.jsx)("div",{className:"flex gap-3 mt-auto",children:(0,l.jsxs)("a",{href:e.source_url||e.link,target:"_blank",rel:"noopener noreferrer",onClick:()=>i.F.getArticle(e.id),className:"flex-1 flex items-center justify-center gap-2 py-2 bg-white/5 hover:bg-white text-white hover:text-black rounded-lg text-sm font-bold transition-colors",children:[(0,l.jsx)(y.A,{size:16}),"View Source"]})}),(0,l.jsxs)("div",{className:"mt-4 pt-4 border-t border-white/5 flex items-center justify-between text-xs text-slate-500",children:[(0,l.jsxs)("span",{children:["Views: ",e.views]}),(0,l.jsx)("span",{children:e.created_at?(t=new Date(e.created_at),(a=(s=Math.floor((new Date().getTime()-t.getTime())/1e3))/31536e3)>1?Math.floor(a)+" years ago":(a=s/2592e3)>1?Math.floor(a)+" months ago":(a=s/86400)>1?Math.floor(a)+" days ago":(a=s/3600)>1?Math.floor(a)+" hours ago":(a=s/60)>1?Math.floor(a)+" minutes ago":Math.floor(s)+" seconds ago"):"Just now"})]})]},e.id)}),0===x.length&&(0,l.jsxs)("div",{className:"col-span-full text-center py-20 text-slate-500",children:[(0,l.jsx)(u.A,{size:48,className:"mx-auto mb-4 opacity-20"}),(0,l.jsx)("p",{children:"No community submissions yet. Be the first!"})]})]})]}),(0,l.jsx)(r.Footer,{})]})}}},e=>{e.O(0,[5563,9996,1739,3334,2539,8441,3794,7358],()=>e(e.s=6752)),_N_E=e.O()}]);

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.