PageSourceSearch

https://driftgolf-qa.netlify.app/assets/GolfClubGreenCoordinatesPage-b27bf542.js

js driftgolf-qa.netlify.app collected 2026-10-03 10:40:43 UTC 3,500 bytes, 26 lines download raw bytes

1import{d as r,j as t,a as s}from"./index-4ce00ee7.js";import{g as a}from"./index-7de85521.js";import{t as n}from"./index-51f3a61d.js";import{t as d,c as u,a as l}from"./formatters-cb9ccf71.js";const x=a`
2  mutation DeleteGolfClubGreenCoordinateMutation($id: String!) {
3    deleteGolfClubGreenCoordinate(id: $id) {
4      id
5    }
6  }
7`,j=({golfClubGreenCoordinates:i})=>{const[o]=r.useMutation(x,{onCompleted:()=>{n.toast.success("GolfClubGreenCoordinate deleted")},onError:e=>{n.toast.error(e.message)},refetchQueries:[{query:c}],awaitRefetchQueries:!0}),h=e=>{confirm("Are you sure you want to delete golfClubGreenCoordinate "+e+"?")&&o({variables:{id:e}})};return t.jsx("div",{className:"rw-segment rw-table-wrapper-responsive",children:t.jsxs("table",{className:"rw-table",children:[t.jsx("thead",{children:t.jsxs("tr",{children:[t.jsx("th",{children:"Id"}),t.jsx("th",{children:"Golf club id"}),t.jsx("th",{children:"Hole number"}),t.jsx("th",{children:"Pin latitude"}),t.jsx("th",{children:"Pin longitude"}),t.jsx("th",{children:"Front latitude"}),t.jsx("th",{children:"Front longitude"}),t.jsx("th",{children:"Back latitude"}),t.jsx("th",{children:"Back longitude"}),t.jsx("th",{children:"Middle latitude"}),t.jsx("th",{children:"Middle longitude"}),t.jsx("th",{children:"Active"}),t.jsx("th",{children:"Created at"}),t.jsx("th",{children:"Updated at"}),t.jsx("th",{children:" "})]})}),t.jsx("tbody",{children:i.map(e=>t.jsxs("tr",{children:[t.jsx("td",{children:d(e.id)}),t.jsx("td",{children:d(e.golfClubId)}),t.jsx("td",{children:d(e.holeNumber)}),t.jsx("td",{children:d(e.pinLatitude)}),t.jsx("td",{children:d(e.pinLongitude)}),t.jsx("td",{children:d(e.frontLatitude)}),t.jsx("td",{children:d(e.frontLongitude)}),t.jsx("td",{children:d(e.backLatitude)}),t.jsx("td",{children:d(e.backLongitude)}),t.jsx("td",{children:d(e.middleLatitude)}),t.jsx("td",{children:d(e.middleLongitude)}),t.jsx("td",{children:u(e.active)}),t.jsx("td",{children:l(e.createdAt)}),t.jsx("td",{children:l(e.updatedAt)}),t.jsx("td",{children:t.jsxs("nav",{className:"rw-table-actions",children:[t.jsx(s.Link,{to:s.routes.golfClubGreenCoordinate({id:e.id}),title:"Show golfClubGreenCoordinate "+e.id+" detail",className:"rw-button rw-button-small",children:"Show"}),t.jsx(s.Link,{to:s.routes.editGolfClubGreenCoordinate({id:e.id}),title:"Edit golfClubGreenCoordinate "+e.id,className:"rw-button rw-button-small rw-button-blue",children:"Edit"}),t.jsx("button",{type:"button",title:"Delete golfClubGreenCoordinate "+e.id,className:"rw-button rw-button-small rw-button-red",onClick:()=>h(e.id),children:"Delete"})]})})]},e.id))})]})})},c=a`
8  query FindGolfClubGreenCoordinates {
9    golfClubGreenCoordinates {
10      id
11      golfClubId
12      holeNumber
13      pinLatitude
14      pinLongitude
15      frontLatitude
16      frontLongitude
17      backLatitude
18      backLongitude
19      middleLatitude
20      middleLongitude
21      active
22      createdAt
23      updatedAt
24    }
25  }
26`,m=()=>t.jsx("div",{children:"Loading..."}),b=()=>t.jsxs("div",{className:"rw-text-center",children:["No golfClubGreenCoordinates yet. ",t.jsx(s.Link,{to:s.routes.newGolfClubGreenCoordinate(),className:"rw-link",children:"Create one?"})]}),L=({error:i})=>t.jsx("div",{className:"rw-cell-error",children:i==null?void 0:i.message}),p=({golfClubGreenCoordinates:i})=>t.jsx(j,{golfClubGreenCoordinates:i}),w=r.createCell({QUERY:c,Loading:m,Empty:b,Failure:L,Success:p,displayName:"GolfClubGreenCoordinatesCell"}),g=()=>t.jsx(w,{});export{g 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.