PageSourceSearch

https://driftgolf-qa.netlify.app/assets/GameplayUsersPage-85bfb3cc.js

js driftgolf-qa.netlify.app collected 2026-10-03 10:40:35 UTC 3,021 bytes, 34 lines download raw bytes

1import{d as l,j as e,a as i}from"./index-4ce00ee7.js";import{g as a}from"./index-7de85521.js";import{t as d}from"./index-51f3a61d.js";import{t as r,b as n}from"./formatters-cb9ccf71.js";const x=a`
2  mutation DeleteGameplayUserMutation($id: String!) {
3    deleteGameplayUser(id: $id) {
4      id
5    }
6  }
7`,c=({gameplayUsers:s})=>{const[h]=l.useMutation(x,{onCompleted:()=>{d.toast.success("GameplayUser deleted")},onError:t=>{d.toast.error(t.message)},refetchQueries:[{query:o}],awaitRefetchQueries:!0}),u=t=>{confirm("Are you sure you want to delete gameplayUser "+t+"?")&&h({variables:{id:t}})};return e.jsx("div",{className:"rw-segment rw-table-wrapper-responsive",children:e.jsxs("table",{className:"rw-table",children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{children:"First name"}),e.jsx("th",{children:"Last name"}),e.jsx("th",{children:"Email"}),e.jsx("th",{children:"Username"}),e.jsx("th",{children:"Birth year"}),e.jsx("th",{children:"Club 150 yds"}),e.jsx("th",{children:"Address"}),e.jsx("th",{children:"Handedness"}),e.jsx("th",{children:"Gender"}),e.jsx("th",{children:"Handicap"}),e.jsx("th",{children:"Ball flight"}),e.jsx("th",{children:" "})]})}),e.jsx("tbody",{children:s.map(t=>e.jsxs("tr",{children:[e.jsx("td",{children:r(t.firstName)}),e.jsx("td",{children:r(t.lastName)}),e.jsx("td",{children:r(t.email)}),e.jsx("td",{children:r(t.username)}),e.jsx("td",{children:r(t.birthYear)}),e.jsx("td",{children:n(t.club150yard)}),e.jsx("td",{children:t.city?t.city+", "+t.stateProvince+" "+t.country:""}),e.jsx("td",{children:r(t.handedness)}),e.jsx("td",{children:r(t.gender)}),e.jsx("td",{children:r(t.handicap)}),e.jsx("td",{children:n(t.ballFlight)}),e.jsx("td",{children:e.jsxs("nav",{className:"rw-table-actions",children:[e.jsx(i.Link,{to:i.routes.gameplayUser({id:t.id}),title:"Show gameplayUser "+t.id+" detail",className:"rw-button rw-button-small",children:"Show"}),e.jsx(i.Link,{to:i.routes.editGameplayUser({id:t.id}),title:"Edit gameplayUser "+t.id,className:"rw-button rw-button-small rw-button-blue",children:"Edit"}),e.jsx("button",{type:"button",title:"Delete gameplayUser "+t.id,className:"rw-button rw-button-small rw-button-red",onClick:()=>u(t.id),children:"Delete"})]})})]},t.id))})]})})},o=a`
8  query FindGameplayUsers {
9    gameplayUsers {
10      id
11      firstName
12      lastName
13      email
14      username
15      birthYear
16      club150yard
17      city
18      stateProvince
19      country
20      hashedPassword
21      salt
22      resetToken
23      resetTokenExpiresAt
24      handedness
25      gender
26      handicap
27      ballFlight
28      role
29      active
30      createdAt
31      updatedAt
32    }
33  }
34`,j=()=>e.jsx("div",{children:"Loading..."}),m=({gameplayUsers:s})=>e.jsx(c,{gameplayUsers:s}),b=({error:s})=>e.jsx("div",{className:"rw-cell-error",children:s==null?void 0:s.message}),w=({gameplayUsers:s})=>e.jsx(c,{gameplayUsers:s}),p=l.createCell({QUERY:o,Loading:j,Empty:m,Failure:b,Success:w,displayName:"GameplayUsersCell"}),G=()=>e.jsx(p,{});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.