PageSourceSearch

https://www.maumdive.com/_next/static/chunks/pages/admin/ratings-0e8b19058b795718.js

js maumdive.com collected 2026-10-02 01:36:19 UTC 5,424 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[15486],{43916:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/ratings",function(){return t(46862)}])},46862:(e,s,t)=>{"use strict";t.r(s),t.d(s,{__N_SSP:()=>i,default:()=>x});var l=t(37876),a=t(14232),r=t(77328),n=t.n(r),d=t(48230),c=t.n(d),i=!0;function x(){let[e,s]=(0,a.useState)([]),[t,r]=(0,a.useState)([]),[d,i]=(0,a.useState)(!0);return((0,a.useEffect)(()=>{fetch("/api/admin/ratings").then(e=>e.json()).then(e=>{e.success&&(s(e.feedbacks||[]),r(e.contentRatings||[])),i(!1)}).catch(console.error)},[]),d)?(0,l.jsx)("div",{className:"p-10",children:"평가 데이터 불러오는 중..."}):(0,l.jsxs)("div",{className:"p-8 bg-gray-50 text-gray-900 min-h-screen",children:[(0,l.jsx)(n(),{children:(0,l.jsx)("title",{children:"사용자 평가 현황 | Admin"})}),(0,l.jsxs)("div",{className:"max-w-6xl mx-auto",children:[(0,l.jsxs)("div",{className:"flex justify-between items-center mb-6",children:[(0,l.jsx)("h1",{className:"text-3xl font-bold",children:"사용자 평가 현황 모니터링 ⭐"}),(0,l.jsx)(c(),{href:"/admin",children:(0,l.jsx)("span",{className:"text-blue-500 hover:underline cursor-pointer",children:"← 관리자 홈"})})]}),(0,l.jsx)("h2",{className:"text-2xl font-bold mb-4 mt-8",children:"\uD83D\uDCCA 전체 항목별 평가 현황"}),(0,l.jsx)("div",{className:"bg-white rounded-lg shadow overflow-hidden mb-12",children:(0,l.jsxs)("table",{className:"w-full text-left border-collapse",children:[(0,l.jsx)("thead",{children:(0,l.jsxs)("tr",{className:"bg-gray-100 border-b",children:[(0,l.jsx)("th",{className:"p-4 font-semibold",children:"유형"}),(0,l.jsx)("th",{className:"p-4 font-semibold",children:"경로 (Slug)"}),(0,l.jsx)("th",{className:"p-4 font-semibold",children:"참여자"}),(0,l.jsx)("th",{className:"p-4 font-semibold",children:"평균 평점"}),(0,l.jsx)("th",{className:"p-4 font-semibold",children:"오류/불만 비율"}),(0,l.jsx)("th",{className:"p-4 font-semibold",children:"최근 반영일"})]})}),(0,l.jsxs)("tbody",{children:[0===t.length&&(0,l.jsx)("tr",{children:(0,l.jsx)("td",{colSpan:6,className:"p-8 text-center text-gray-500",children:"평가 기록이 없습니다."})}),t.map(e=>{let s=e.count>0?(e.ratingSum/e.count).toFixed(2):"-",t=e.count>0?(e.badCount/e.count*100).toFixed(1):"0.0";return(0,l.jsxs)("tr",{className:"border-b hover:bg-gray-50",children:[(0,l.jsx)("td",{className:"p-4",children:(0,l.jsx)("span",{className:`px-2 py-1 text-xs rounded-full ${"TEST"===e.type?"bg-blue-100 text-blue-800":"WIKI"===e.type?"bg-green-100 text-green-800":"bg-purple-100 text-purple-800"}`,children:e.type})}),(0,l.jsx)("td",{className:"p-4 font-medium text-gray-800",children:(0,l.jsx)("a",{href:`/${"TEST"===e.type?"":"WIKI"===e.type?"wiki/":"celebrity/"}${e.slug}`,target:"_blank",rel:"noreferrer",className:"text-blue-600 hover:underline",children:e.slug})}),(0,l.jsxs)("td",{className:"p-4",children:[e.count.toLocaleString()," 명"]}),(0,l.jsxs)("td",{className:"p-4 font-bold text-gray-700",children:[s," 점"]}),(0,l.jsxs)("td",{className:"p-4",children:[(0,l.jsxs)("span",{className:`${Number(t)>10?"text-red-600 font-bold":"text-gray-500"}`,children:[t,"%"]})," (",e.badCount,"건)"]}),(0,l.jsx)("td",{className:"p-4 text-gray-500 text-sm",children:new Date(e.updatedAt).toLocaleDateString()})]},e.slug)})]})]})}),(0,l.jsx)("h2",{className:"text-2xl font-bold mb-4",children:"\uD83D\uDEA8 최근 접수된 오류 및 낮은 평점 기록"}),(0,l.jsx)("div",{className:"bg-white rounded-lg shadow overflow-hidden",children:(0,l.jsxs)("table",{className:"w-full text-left border-collapse",children:[(0,l.jsx)("thead",{children:(0,l.jsxs)("tr",{className:"bg-gray-100 border-b",children:[(0,l.jsx)("th",{className:"p-4 font-semibold",children:"유형"}),(0,l.jsx)("th",{className:"p-4 font-semibold",children:"경로 (Slug)"}),(0,l.jsx)("th",{className:"p-4 font-semibold",children:"부여 평점"}),(0,l.jsx)("th",{className:"p-4 font-semibold",children:"사유 or 기타"}),(0,l.jsx)("th",{className:"p-4 font-semibold",children:"평가 일시"})]})}),(0,l.jsxs)("tbody",{children:[0===e.length&&(0,l.jsx)("tr",{children:(0,l.jsx)("td",{colSpan:5,className:"p-8 text-center text-gray-500",children:"아직 불만이나 오류 평가가 접수되지 않았습니다."})}),e.map(e=>(0,l.jsxs)("tr",{className:"border-b hover:bg-red-50 whitespace-nowrap",children:[(0,l.jsx)("td",{className:"p-4",children:(0,l.jsx)("span",{className:`px-2 py-1 text-xs rounded-full ${"TEST"===e.type?"bg-blue-100 text-blue-800":"WIKI"===e.type?"bg-green-100 text-green-800":"bg-purple-100 text-purple-800"}`,children:e.type})}),(0,l.jsx)("td",{className:"p-4 font-medium text-gray-800",children:(0,l.jsx)("a",{href:`/${"TEST"===e.type?"":"WIKI"===e.type?"wiki/":"celebrity/"}${e.slug}`,target:"_blank",rel:"noreferrer",className:"text-blue-600 hover:underline truncate inline-block max-w-[150px]",children:e.slug})}),(0,l.jsxs)("td",{className:"p-4",children:[(0,l.jsx)("span",{className:"font-bold text-red-500",children:e.score.toFixed(1)})," 점"]}),(0,l.jsx)("td",{className:"p-4 text-gray-600 text-sm whitespace-normal break-words max-w-[300px]",children:e.reason||"- (버튼 직투표)"}),(0,l.jsx)("td",{className:"p-4 text-gray-500 text-sm",children:new Date(e.createdAt).toLocaleStr
1ing()})]},e.id))]})]})})]})]})}}},e=>{e.O(0,[48230,90636,46593,38792],()=>e(e.s=43916)),_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.