PageSourceSearch

https://www.codedex.io/_next/static/chunks/pages/admin/community-0acbb20b86b79394.js

js codedex.io collected 2026-09-25 14:55:09 UTC 6,955 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1225],{72844:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/community",function(){return t(79641)}])},27936:function(n,e,t){"use strict";var r=t(82729),i=t(85893),o=t(19521);function _templateObject(){let n=(0,r._)(["\n  position: absolute;\n  width: 30vw;\n  height: 0px;\n  z-index: 10;\n  overflow: hidden;\n\n  h1,\n  p {\n    height: 10rem;\n  }\n"]);return _templateObject=function(){return n},n}let s=o.default.main.withConfig({componentId:"sc-e8309d9d-0"})(_templateObject());e.Z=function(n){let{h1:e,description:t="",canonical:r=""}=n;return e?(0,i.jsxs)(s,{children:[(0,i.jsx)("h1",{children:e}),t?(0,i.jsx)("p",{className:"description",children:t}):null,r?(0,i.jsx)("link",{rel:"canonical",href:r}):null]}):null}},34909:function(n,e,t){"use strict";var r=t(85893),i=t(41664),o=t.n(i),s=t(11163);e.Z=function(){let n=(0,s.useRouter)();return(0,r.jsxs)("div",{className:"btn-container",children:[(0,r.jsx)(o(),{href:"/admin/community",legacyBehavior:!0,children:(0,r.jsx)("button",{className:"nes-pointer",children:(0,r.jsx)("p",{children:"All Reports"})})}),(0,r.jsx)("input",{type:"search",placeholder:"Search user",onKeyDown:e=>{if("Enter"===e.key){var t;t=e.target.value,n.push("/admin/community/profile/@".concat(t))}}}),(0,r.jsx)("input",{type:"search",placeholder:"Paste post link",onKeyDown:e=>{"Enter"===e.key&&function(e){let t=e.includes("://")?new URL(e).pathname:e,r=t.split("/").filter(Boolean);if("admin"===r[0]&&"community"===r[1]&&"post"===r[2]&&r[3]){n.push(t);return}let i=r.indexOf("community");if(-1===i)return;let o="general"===r[i+1]?"main":r[i+1],s="monthly-challenge"===r[i+1]&&"submission"===r[i+2]?r[i+3]:r[i+2];o&&"post"!==o&&s&&n.push("/admin/community/post/".concat(s,"?communityName=").concat(o))}(e.target.value)}}),(0,r.jsx)(o(),{href:"/admin/community/monthly-challenge",legacyBehavior:!0,children:(0,r.jsx)("button",{className:"nes-pointer",style:{marginTop:"5rem"},children:(0,r.jsx)("p",{children:"Monthly Challenge"})})})]})}},79641:function(n,e,t){"use strict";t.r(e);var r=t(82729),i=t(85893),o=t(19521),s=t(67294),a=t(11163),c=t(62069),l=t(99428),m=t(27936),d=t(74774),p=t(34909);function _templateObject(){let n=(0,r._)(["\n  ",' {\n    margin-top: 4rem;\n    display: grid;\n    grid-template-columns: 1fr;\n    gap: 3rem;\n    padding-bottom: 3rem;\n    margin-left: 0rem;\n    margin-right: 0rem;\n    min-height: 100vh;\n\n    .discovery {\n      display: none;\n      position: relative;\n      .sticky-bar {\n        position: sticky;\n        top: 6.3rem;\n      }\n\n      .create-post-btn {\n        position: fixed;\n        width: 226px;\n        top: 93%;\n        font-size: 12px;\n      }\n\n      input {\n        width: 100%;\n        border: 2px solid rgba(36, 76, 115, 1);\n        border-radius: 7px;\n        padding: 0.7rem;\n        color: whitesmoke;\n        font-family: "Work Sans", sans-serif;\n        background-color: #0e1524;\n        outline-width: 0;\n      }\n    }\n\n    .main-container {\n      margin-top: 2rem;\n\n      .reported-posts-container {\n        display: grid;\n        gap: 1.5rem;\n      }\n\n      h2 {\n        margin-bottom: 2rem;\n        font-size: 20px;\n        color: ',';\n      }\n\n      .dropdown-container {\n        display: none !important ;\n      }\n\n      .stats-component {\n        display: none;\n      }\n\n      .selectors {\n        color: whitesmoke;\n        display: flex;\n        gap: 1rem;\n        margin-bottom: 1rem;\n        p {\n          padding: 5px 10px;\n          border-radius: 7px;\n          margin: 0px;\n          font-family: "Work Sans", sans-serif;\n          font-weight: 500;\n        }\n\n        .current {\n          background-color: #244c73;\n        }\n      }\n    }\n  }\n\n  '," {\n    grid-template-columns: 1.3fr 5fr;\n    margin-left: 1rem;\n    margin-right: 1rem;\n\n    .discovery {\n      display: block;\n    }\n  }\n  ",' {\n    margin-left: 0rem;\n    margin-right: 0rem;\n\n    .sticky-bar {\n      .btn-container {\n        display: grid;\n        gap: 1rem;\n\n        button {\n          background: none;\n          border: none;\n          outline: none;\n          height: 38px;\n          width: 100%;\n          border-radius: 8px;\n          display: flex;\n          align-items: center;\n          gap: 0.5rem;\n\n          transition-duration: 0.2s;\n          position: relative;\n\n          p {\n            margin: 0px;\n            font-family: "Work Sans", sans-serif;\n            font-size: 19px;\n            font-weight: 600;\n            color: ',";\n          }\n        }\n\n        button:hover {\n          background: ",";\n        }\n      }\n    }\n  }\n"]);
1return _templateObject=function(){return n},n}let u=o.default.div.withConfig({componentId:"sc-99e57c-0"})(_templateObject(),n=>{let{theme:e}=n;return e.breakpoints.xs},n=>"dark"===n.theme.mode?"rgba(255, 255, 255, 0.87)":"black",n=>{let{theme:e}=n;return e.breakpoints.sm},n=>{let{theme:e}=n;return e.breakpoints.md},n=>"dark"===n.theme.mode?"rgba(255, 255, 255, 0.87)":"black",n=>"dark"===n.theme.mode?"rgba(237, 231, 225, 0.1)":"rgba(237, 231, 225, 0.4)");e.default=function(){(0,a.useRouter)();let[n,e]=(0,s.useState)([]),[t,r]=(0,s.useState)(null);return(0,s.useEffect)(()=>{fetchReportedPosts();async function fetchReportedPosts(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;try{let i=await fetch("/api/community/getReportedPosts",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({page:n,pageSize:r,parent:t})});if(!i.ok)throw Error("Network response was not ok");let o=await i.json();e(o.posts),console.log("attempted","yes")}catch(n){return console.error("Error fetching posts:",n),[]}}},[t]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l.Z,{}),(0,i.jsx)(m.Z,{h1:"Community"}),(0,i.jsx)(c.Z,{children:(0,i.jsxs)(u,{children:[(0,i.jsx)("div",{className:"discovery",children:(0,i.jsx)("div",{className:"sticky-bar",children:(0,i.jsx)(p.Z,{})})}),(0,i.jsxs)("div",{className:"main-container",children:[(0,i.jsx)("h2",{children:"Community Admin:"}),(0,i.jsxs)("div",{className:"selectors nes-pointer",children:[(0,i.jsx)("p",{onClick:()=>r(null),className:null==t&&"current",children:"Posts"}),(0,i.jsx)("p",{onClick:()=>r(1),className:1==t&&"current",children:"Comments"})]}),(0,i.jsx)("div",{className:"reported-posts-container",children:n&&n.map((n,e)=>{if(n.authorData){var t;return(0,i.jsx)(d.Z,{postData:n,communityName:n.communityName,link:"community/post/".concat(n.id,"?communityName=").concat(n.communityName,"&targetCollection=").concat(null!==(t=n.targetCollection)&&void 0!==t?t:"community"),index:e},e)}})})]})]})})]})}}},function(n){n.O(0,[1272,8700,1057,3777,4617,2013,5937,4153,1622,9280,286,6095,8849,719,9428,2163,6490,463,9774,2888,179],function(){return n(n.s=72844)}),_N_E=n.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.