PageSourceSearch

https://www.dunkindonuts.co.kr/build/assets/LoginHistory-0fd29b95.js

js dunkindonuts.co.kr collected 2026-09-24 22:28:51 UTC 6,858 bytes, 1 lines download raw bytes

1import{r as i,a as l,F as u,j as a,b as D,S as P}from"./app-de874c55.js";import{T as _,d as $,b as p,e as s,a as E,c as o}from"./table-d3800fb9.js";import{f as I}from"./index-83894486.js";import{p as F}from"./index-ae399c17.js";import{L as O}from"./loader-2-67cca4d6.js";import{A as Q}from"./AuthenticatedLayout-1cf934f7.js";import{a as q}from"./react-icons.esm-d4f15552.js";import"./index-4180030f.js";import"./index-1771e82c.js";import"./createLucideIcon-7e88a5d4.js";import"./button-497dfebc.js";import"./index-4bb9a49c.js";import"./react-responsive-4678f4ff.js";import"./index-05417dd3.js";import"./ThemeButton-e00b02f2.js";import"./sonner-42d757ec.js";import"./index-0467f6fa.js";function G(){const[c,S]=i.useState([]),[g,T]=i.useState(null),[x,m]=i.useState("/api/loginHistory?page=1"),[t,y]=i.useState(),[r,z]=i.useState(),j=async()=>{try{await D.get(x).then(e=>{var b,f,h,N,w,v,C,R,H,M,k;const n=Object.values(e.data)[0],d=(f=(b=e==null?void 0:e.data)==null?void 0:b.meta)==null?void 0:f.current_page,B=(N=(h=e==null?void 0:e.data)==null?void 0:h.meta)==null?void 0:N.links.slice(1,-1),L=Math.floor((d-1)/5);S(B.splice(5*L,5)),z({total:(v=(w=e==null?void 0:e.data)==null?void 0:w.meta)==null?void 0:v.total,from:(R=(C=e==null?void 0:e.data)==null?void 0:C.meta)==null?void 0:R.from,to:(M=(H=e==null?void 0:e.data)==null?void 0:H.meta)==null?void 0:M.to}),y((k=e==null?void 0:e.data)==null?void 0:k.links),T(n)})}catch(e){console.log(e)}};i.useEffect(()=>{j()},[x]);function A(e){const n=document.createElement("textarea");return n.innerHTML=e,n.value}return l(u,{children:[a("div",{className:"shadow-sm rounded-lg overflow-hidden border",children:l(_,{className:"text-center",children:[a($,{children:l(p,{className:"hover:bg-transparent",children:[a(s,{className:"w-[15%] text-center",children:"이름"}),a(s,{className:"w-[30%] text-center",children:"이메일"}),a(s,{className:"w-[15%] text-center",children:"아이피"}),a(s,{className:"w-[27%] text-center",children:"로그인 시간"}),a(s,{className:"w-[13%] text-center",children:"성공여부"})]})}),a(E,{children:g?g.map(e=>{var n,d;return l(p,{className:`${(e==null?void 0:e.action)===1?"bg-background":"bg-rose-50 dark:bg-rose-950"}`,children:[a(o,{className:"w-[15%]",children:(d=(n=e==null?void 0:e.user)==null?void 0:n.user_info)==null?void 0:d.name}),a(o,{className:"w-[30%]",children:e==null?void 0:e.identifier}),a(o,{className:"w-[15%]",children:e==null?void 0:e.ip_address}),a(o,{className:"w-[27%]",children:I(F(e==null?void 0:e.action_time),"yyyy-MM-dd HH:mm:ss")}),a(o,{className:"w-[13%] font-bold",children:(e==null?void 0:e.action)===1?a("span",{className:"text-blue-600",children:"성공"}):a("span",{className:"text-red-600",children:"실패"})})]},e==null?void 0:e.id)}):a(p,{children:a(o,{colSpan:"5",className:"h-24",children:a("div",{className:"flex justify-center",children:a(O,{size:18,color:"hsl(var(--primary))",className:"animate-spin"})})})})})]})}),l("div",{className:" px-4 py-3 flex items-center justify-between",children:[a("div",{children:l("p",{className:"text-sm text-gray-700",children:["전체 ",a("span",{className:"font-bold",children:r==null?void 0:r.total})," 중"," ",a("span",{className:"font-semibold",children:r==null?void 0:r.from}),"-",a("span",{className:"font-semibold",children:r==null?void 0:r.to})]})}),l("ul",{"aria-label":"Pagination",className:"inline-flex -space-x-px rounded-md shadow-sm",children:[t!=null&&t.prev?l(u,{children:[a("li",{children:a("button",{onClick:()=>m(t.first),className:"px-1.5 py-2 relative inline-flex items-center border  text-sm font-medium rounded-l-md border-gray-300 bg-background text-gray-500 hover:bg-gray-50",children:a("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"w-5 h-5",children:a("path",{fillRule:"evenodd",d:"M15.79 14.77a.75.75 0 01-1.06.02l-4.5-4.25a.75.75 0 010-1.08l4.5-4.25a.75.75 0 111.04 1.08L11.832 10l3.938 3.71a.75.75 0 01.02 1.06zm-6 0a.75.75 0 01-1.06.02l-4.5-4.25a.75.75 0 010-1.08l4.5-4.25a.75.75 0 111.04 1.08L5.832 10l3.938 3.71a.75.75 0 01.02 1.06z",clipRule:"evenodd"})})})}),a("li",{children:a("button",{onClick:()=>m(t.prev),className:"px-1.5 py-2 relative inline-flex items-center border  text-sm font-medium  border-gray-300 bg-background text-gray-500 hover:bg-gray-50",children:a("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"w-5 h-5",children:a("path",{fillRule:"evenodd",d:"M12.79 5.23a.75.75 0 01-.02 1.06L8.832 10l3.938 3.71a.75.75 0 11-1.04 1.08l-4.5-4.25a.75.75 0 010-1.08l4.5-4.25a.75.75 0 011.06.02z",clipRule:"evenodd"})})})})]}):"",c==null?void 0:c.map((e,n,d)=>
1{if(e!=null&&e.url)return a("li",{children:a("button",{className:`px-3.5 py-2 relative inline-flex items-center border  text-sm font-medium  ${e!=null&&e.active?"border-primary bg-background text-primary":"border-gray-300 bg-background text-gray-500 hover:bg-gray-50"} ${!(t!=null&&t.prev)&&n==0?"rounded-l-md":""} ${!(t!=null&&t.next)&&n+1==d.length?"rounded-r-md":""}`,onClick:()=>m(e==null?void 0:e.url),children:A(e==null?void 0:e.label)})},n)}),t!=null&&t.next?l(u,{children:[a("li",{children:a("button",{onClick:()=>m(t.next),className:"px-1.5 py-2 relative inline-flex items-center border  text-sm font-medium border-gray-300 bg-background text-gray-500 hover:bg-gray-50",children:a("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"w-5 h-5",children:a("path",{fillRule:"evenodd",d:"M7.21 14.77a.75.75 0 01.02-1.06L11.168 10 7.23 6.29a.75.75 0 111.04-1.08l4.5 4.25a.75.75 0 010 1.08l-4.5 4.25a.75.75 0 01-1.06-.02z",clipRule:"evenodd"})})})}),a("li",{children:a("button",{onClick:()=>m(t.last),className:"px-1.5 py-2 relative inline-flex items-center border  text-sm font-medium rounded-r-md border-gray-300 bg-background text-gray-500 hover:bg-gray-50",children:l("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"w-5 h-5",children:[a("path",{fillRule:"evenodd",d:"M10.21 14.77a.75.75 0 01.02-1.06L14.168 10 10.23 6.29a.75.75 0 111.04-1.08l4.5 4.25a.75.75 0 010 1.08l-4.5 4.25a.75.75 0 01-1.06-.02z",clipRule:"evenodd"}),a("path",{fillRule:"evenodd",d:"M4.21 14.77a.75.75 0 01.02-1.06L8.168 10 4.23 6.29a.75.75 0 111.04-1.08l4.5 4.25a.75.75 0 010 1.08l-4.5 4.25a.75.75 0 01-1.06-.02z",clipRule:"evenodd"})]})})})]}):""]})]})]})}function oe(c){return l(Q,{auth:c.auth,errors:c.errors,children:[a(P,{title:"로그인 이력"}),l("div",{className:"space-y-4 mb-10 mo:mb-5",children:[l("div",{className:"flex items-center space-x-1 text-sm text-muted-foreground",children:[a("div",{children:"ADMIN"}),a(q,{}),a("div",{className:"font-medium text-foreground",children:"로그인 이력"})]}),a("h1",{className:"text-3xl font-bold tracking-tight",children:"로그인 이력"})]}),a(G,{})]})}export{oe 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.