1import{u as n,r as l,b as u,R as e,H as d}from"./app-7KgZdLvB.js";import{L as v}from"./Layout-DMoSPRoj.js";import{S as g}from"./Search-CeWS8EqP.js";import E from"./Sidebar-Cb7oiLxm.js";import"./index-BvCrh6qf.js";import"./TextInput-CvwkqlLT.js";import"./_defineProperty-Bz_NKpXZ.js";import"./SidebarItem-B0O1dVEE.js";const N=()=>{const{server:t,page:o}=n().props,{version:i,component:m}=n().props,[s,c]=l.useState(n().props.lines);l.useEffect(()=>{const a=setInterval(()=>{u.get(window.location.href,{headers:{"X-Inertia":!0,"X-Inertia-Version":i,"X-Inertia-Partial-Component":m,"X-Inertia-Partial-Data":"lines"}}).then(r=>{c(r.data.props.lines)},r=>{console.log("Could not fetch log lines")})},5e3);return()=>clearInterval(a)},[]);let p=[{label:"Servers",to:route("servers.index")},{label:t.name,to:route("servers.show",{server:t.uuid})},{label:"Logs",to:route("servers.logs.index",{server:t.uuid})}];return e.createElement(e.Fragment,null,e.createElement(d,null,e.createElement("title",null,`Logs - Server ${t.name}`)),e.createElement(v,{title:t.name,icon:t.provider_slug,breadcrumbs:p,sidebar:e.createElement(E,{server:t}),children:o},e.createElement("div",null,e.createElement(g,{className:"w-full mb-4"}),s&&e.createElement("div",{className:"relative p-4 text-xs leading-loose text-white bg-gray-800 rounded shadow"},e.createElement("div",{className:"absolute top-0 right-0 p-3"},e.createElement("div",{className:"mr-2 spinner spinner-white spinner-tiny"})),e.createElement("code",{className:"block overflow-x-auto scrolling-touch"},s.map((a,r)=>e.createElement("div",{key:r},e.createElement("pre",null,a))))))))};export{N 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.