PageSourceSearch

https://the-gazel.lovable.app/assets/CAPAuditLogPage-b19DS5Ck.js

js the-gazel.lovable.app collected 2026-10-03 03:52:44 UTC 1,677 bytes, 1 lines download raw bytes

1import{j as e}from"./ui-BcZpBtGC.js";import{k as m}from"./useCAP-C6cwOzrK.js";import{E as d,C as a,a as r}from"./index-D4z10nuM.js";import{S as n}from"./scroll-text-BQffjgWO.js";import{f as c}from"./format-BE36S-lJ.js";import"./vendor-CbTYwD9p.js";import"./useQuery-Bg5MGr3j.js";import"./useMutation-Bk0igXSc.js";import"./router-C21RS5Se.js";import"./constants-DQX8fu4l.js";import"./startOfYear-CRigkeXM.js";const v=()=>{const{data:s,isLoading:i}=m();return i?e.jsx("div",{className:"flex justify-center py-12",children:e.jsx(d,{className:"h-8 w-8 animate-spin text-primary"})}):e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(n,{className:"h-5 w-5 text-primary"}),e.jsx("h2",{className:"text-xl font-semibold",children:"Audit Log"})]}),s!=null&&s.length?e.jsx("div",{className:"space-y-2",children:s.map(t=>e.jsx(a,{children:e.jsxs(r,{className:"py-3",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("span",{className:"font-medium text-sm",children:t.action.replace(/_/g," ")}),e.jsxs("span",{className:"text-muted-foreground text-sm ml-2",children:["on ",t.entity_type.replace(/_/g," ")]})]}),e.jsx("span",{className:"text-xs text-muted-foreground",children:c(new Date(t.created_at),"MMM d, yyyy h:mm a")})]}),t.details&&Object.keys(t.details).length>0&&e.jsx("pre",{className:"text-xs text-muted-foreground mt-1 bg-muted p-2 rounded overflow-x-auto",children:JSON.stringify(t.details,null,2)})]})},t.id))}):e.jsx(a,{children:e.jsx(r,{className:"py-8 text-center text-muted-foreground",children:"No audit entries yet."})})]})};export{v 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.