PageSourceSearch

https://rocketeers.app/build/assets/Index-DfU3BPSd.js

js rocketeers.app collected 2026-10-04 19:31:46 UTC 4,538 bytes, 1 lines download raw bytes

1import{u as b,R as e,H as g,L as t}from"./app-7KgZdLvB.js";import{L as N,I as h}from"./Layout-DMoSPRoj.js";import{P as w}from"./Pagination-BXHZK7fB.js";import{S as y}from"./Search-CeWS8EqP.js";import{B as u}from"./Button-evrIg-lJ.js";import{q as v}from"./index-DXASIFDZ.js";import"./index-BvCrh6qf.js";import"./TextInput-CvwkqlLT.js";import"./_defineProperty-Bz_NKpXZ.js";const D=()=>{const{sites:m,sitesUp:n,sitesDown:c,page:p}=b().props,{links:x,data:o}=m,s=v.parse(location.search);return e.createElement(e.Fragment,null,e.createElement(g,null,e.createElement("title",null,`Sites (${m.total})`)),e.createElement(N,{title:"Sites",children:p},e.createElement("div",{className:"flex items-center justify-between px-4 mb-4 sm:px-0"},e.createElement("div",{className:"flex"},e.createElement(u,{href:route("sites.create")},"Create Site"),e.createElement(u,{href:route("sites.export"),download:!0},"Export"))),e.createElement("div",null,e.createElement("dl",{className:"grid grid-cols-1 gap-5 mb-8 lg:grid-cols-2"},e.createElement(t,{href:route("sites.index")+"?filter[uptime_status]=1",className:"block px-4 py-5 overflow-hidden bg-white rounded-lg shadow sm:p-6 hover:bg-gray-50"},e.createElement("dt",{className:"text-sm font-medium text-gray-500 truncate"},"Up"),e.createElement("dd",{className:"mt-1 text-3xl font-semibold "+(n<0?"text-red-500":"text-green-500")},n)),e.createElement(t,{href:route("sites.index")+"?filter[uptime_status]=0",className:"block px-4 py-5 overflow-hidden bg-white rounded-lg shadow sm:p-6 hover:bg-gray-50"},e.createElement("dt",{className:"text-sm font-medium text-gray-500 truncate"},"Down"),e.createElement("dd",{className:"mt-1 text-3xl font-semibold "+(c>0?"text-red-500":"text-green-500")},c)))),e.createElement(y,null),e.createElement("div",{className:"overflow-x-auto bg-white rounded shadow"},e.createElement("table",{className:"w-full whitespace-no-wrap"},e.createElement("thead",null,e.createElement("tr",{className:"text-left"},e.createElement("th",{className:"p-4 text-sm font-medium bg-gray-50",width:"40%"},e.createElement(t,{href:route("sites.index")+"?sort="+(s.sort=="name"?"-name":"name")},"Name")),e.createElement("th",{className:"hidden p-4 text-sm font-medium bg-gray-50 sm:table-cell",width:"20%"},"Manager"),e.createElement("th",{className:"hidden p-4 text-sm font-medium bg-gray-50 sm:table-cell",width:"20%"},e.createElement(t,{href:route("sites.index")+"?sort="+(s.sort=="branch"?"-branch":"branch")},"Branch")),e.createElement("th",{className:"hidden p-4 text-sm font-medium text-center bg-gray-50 sm:table-cell",width:"20%"},e.createElement(t,{href:route("sites.index")+"?sort="+(s.sort=="ttfb_average"?"-ttfb_average":"ttfb_average")},"TTFB")))),e.createElement("tbody",null,o.map(({uuid:r,name:d,environment:i,manager:a,branch:f,favicon_url:E,ttfb:l})=>e.createElement("tr",{className:"hover:bg-gray-50",key:r},e.createElement("td",{className:"border-t"},e.createElement(t,{className:"flex items-center p-4",href:route("sites.show",r)},e.createElement("img",{src:E,alt:d,className:"w-4 mr-2"}),d,e.createElement("span",{className:"px-2 py-1 ml-2 text-xs inline-block -my-2 font-medium leading-4 uppercase rounded-md "+(i=="production"?"text-red-800 bg-red-100":"text-yellow-800 uppercase bg-yellow-100")},i))),e.createElement("td",{className:"hidden border-t sm:table-cell"},a&&e.createElement(t,{className:"flex justify-center items-center p-4",href:route("sites.show",r)},e.createElement("img",{src:a.gravatar,alt:a.name,className:"inline-block -mt-1 border-2 border-gray-400 border-solid rounded-full w-7 mr-2"})),!a&&e.createElement(t,{className:"flex justify-center items-center p-4",href:route("sites.show",r)},e.createElement(h,{name:"user",className:"inline-block -mt-1 border-2 border-gray-400 border-solid rounded-full w-7 mr-2"}))),e.createElement("td",{className:"hidden border-t sm:table-cell"},e.createElement(t,{className:"flex items-center p-4",href:route("sites.show",r)},e.createElement(h,{name:"branch",className:"w-4 h-4 mr-2"}),f)),e.createElement("td",{className:"hidden text-center border-t sm:table-cell"},l&&e.createElement(t,{className:"flex items-center text-center",href:route("sites.show",r)},e.createElement("span",{className:"text-xs w-8 h-8 leading-8 text-center rounded-full mx-auto text-white "+(l>500?"bg-red-400":l>350?"bg-yellow-400":"bg-green-400")},l))))),o.length===0&&e.createElement("tr",null,e.createElement("td",{className:"px-6 py-4 border-t",colSpan:"4"},"No sites found."))))),e.createElement(w,{links:x})))};export{D 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.