diff --git a/public/build/assets/AddButton-bf9b47af.js b/public/build/assets/AddButton-35ed8727.js similarity index 80% rename from public/build/assets/AddButton-bf9b47af.js rename to public/build/assets/AddButton-35ed8727.js index a7f537f..cd95a07 100644 --- a/public/build/assets/AddButton-bf9b47af.js +++ b/public/build/assets/AddButton-35ed8727.js @@ -1 +1 @@ -import{y as o}from"./index.esm-eebfcfab.js";import{a as e,j as u}from"./app-7082a047.js";function l({href:r,className:s="",children:t,onClick:a}){return e("a",{href:r,onClick:a,className:"text-white bg-blue-700 border border-transparent hover:bg-blue-800 py-0.5 text-sm focus:ring-4 focus:ring-blue-300 disabled:hover:bg-blue-700 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800 dark:disabled:hover:bg-blue-600 focus:!ring-2 group flex h-min items-center justify-center p-0.5 text-center focus:z-10 rounded-lg"+s,children:u("span",{className:"flex items-center rounded-md px-2 py-1",children:[e(o,{className:"mr-2 h-5 w-5"}),t]})})}export{l as A}; +import{y as o}from"./index.esm-2010c99b.js";import{a as e,j as u}from"./app-a8d4275f.js";function l({href:r,className:s="",children:t,onClick:a}){return e("a",{href:r,onClick:a,className:"text-white bg-blue-700 border border-transparent hover:bg-blue-800 py-0.5 text-sm focus:ring-4 focus:ring-blue-300 disabled:hover:bg-blue-700 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800 dark:disabled:hover:bg-blue-600 focus:!ring-2 group flex h-min items-center justify-center p-0.5 text-center focus:z-10 rounded-lg"+s,children:u("span",{className:"flex items-center rounded-md px-2 py-1",children:[e(o,{className:"mr-2 h-5 w-5"}),t]})})}export{l as A}; diff --git a/public/build/assets/Alert-af0dbb46.js b/public/build/assets/Alert-d503f44b.js similarity index 82% rename from public/build/assets/Alert-af0dbb46.js rename to public/build/assets/Alert-d503f44b.js index b2d1217..c5657d7 100644 --- a/public/build/assets/Alert-af0dbb46.js +++ b/public/build/assets/Alert-d503f44b.js @@ -1 +1 @@ -import{j as c,a as s,r as p}from"./app-7082a047.js";import{m as h}from"./Toast-a9c7a83a.js";import{u as f,c as i}from"./Table-13305096.js";import{w as b}from"./index.esm-eebfcfab.js";const N=({additionalContent:t,children:o,color:r="info",icon:a,onDismiss:l,rounded:n=!0,withBorderAccent:m,className:u,theme:d={}})=>{const e=h(f().theme.alert,d);return c("div",{className:i(e.root.base,e.root.color[r],n&&e.root.rounded,m&&e.root.borderAccent,u),role:"alert",children:[c("div",{className:e.root.wrapper,"data-testid":"flowbite-alert-wrapper",children:[a&&s(a,{className:e.root.icon,"data-testid":"flowbite-alert-icon"}),s("div",{children:o}),typeof l=="function"&&s("button",{"aria-label":"Dismiss",className:i(e.closeButton.base,e.closeButton.color[r]),onClick:l,type:"button",children:s(b,{"aria-hidden":!0,className:e.closeButton.icon})})]}),t&&s("div",{children:t})]})};function y({details:t=null}){const[o,r]=p.useState(t!==null);return o?s(N,{color:t.type,className:"mb-3 shadow-sm",onDismiss:function(){r(!1)},children:s("span",{children:t.message})}):s("div",{className:"py-8"})}export{y as R}; +import{j as c,a as s,r as p}from"./app-a8d4275f.js";import{m as h}from"./Toast-ee00046f.js";import{u as f,c as i}from"./Table-f19b692a.js";import{w as b}from"./index.esm-2010c99b.js";const N=({additionalContent:t,children:o,color:r="info",icon:a,onDismiss:l,rounded:n=!0,withBorderAccent:m,className:u,theme:d={}})=>{const e=h(f().theme.alert,d);return c("div",{className:i(e.root.base,e.root.color[r],n&&e.root.rounded,m&&e.root.borderAccent,u),role:"alert",children:[c("div",{className:e.root.wrapper,"data-testid":"flowbite-alert-wrapper",children:[a&&s(a,{className:e.root.icon,"data-testid":"flowbite-alert-icon"}),s("div",{children:o}),typeof l=="function"&&s("button",{"aria-label":"Dismiss",className:i(e.closeButton.base,e.closeButton.color[r]),onClick:l,type:"button",children:s(b,{"aria-hidden":!0,className:e.closeButton.icon})})]}),t&&s("div",{children:t})]})};function y({details:t=null}){const[o,r]=p.useState(t!==null);return o?s(N,{color:t.type,className:"mb-3 shadow-sm",onDismiss:function(){r(!1)},children:s("span",{children:t.message})}):s("div",{className:"py-8"})}export{y as R}; diff --git a/public/build/assets/ApplicationLogo-db4f8950.js b/public/build/assets/ApplicationLogo-ae419612.js similarity index 93% rename from public/build/assets/ApplicationLogo-db4f8950.js rename to public/build/assets/ApplicationLogo-ae419612.js index c7bfdec..221cab7 100644 --- a/public/build/assets/ApplicationLogo-db4f8950.js +++ b/public/build/assets/ApplicationLogo-ae419612.js @@ -1 +1 @@ -import{a as C}from"./app-7082a047.js";function r({className:o}){return C("svg",{className:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 128 128",children:C("path",{d:"M 54.5,4.5 C 68.4095,3.79664 82.0762,5.29664 95.5,9C 96.4861,19.0842 96.8194,29.2509 96.5,39.5C 93.2234,39.7839 90.0567,39.4505 87,38.5C 85.6667,33.1667 84.3333,27.8333 83,22.5C 71.111,13.1267 58.611,12.2933 45.5,20C 38.8042,28.5158 39.1375,36.8492 46.5,45C 49.3388,46.9203 52.3388,48.5869 55.5,50C 66.8167,53.5496 77.8167,57.8829 88.5,63C 104.035,74.6808 107.201,89.1808 98,106.5C 87.564,117.879 74.564,123.212 59,122.5C 47.2209,121.878 35.7209,119.711 24.5,116C 22.5362,105.76 21.5362,95.2599 21.5,84.5C 25.1667,84.5 28.8333,84.5 32.5,84.5C 33.0878,90.6059 34.2545,96.6059 36,102.5C 49.5481,113.546 64.0481,115.046 79.5,107C 88.8333,97.6667 88.8333,88.3333 79.5,79C 76.6612,77.0797 73.6612,75.4131 70.5,74C 59.1833,70.4504 48.1833,66.1171 37.5,61C 23.9942,49.803 21.1609,36.303 29,20.5C 35.5412,11.9827 44.0412,6.6494 54.5,4.5 Z"})})}export{r as A}; +import{a as C}from"./app-a8d4275f.js";function r({className:o}){return C("svg",{className:o,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 128 128",children:C("path",{d:"M 54.5,4.5 C 68.4095,3.79664 82.0762,5.29664 95.5,9C 96.4861,19.0842 96.8194,29.2509 96.5,39.5C 93.2234,39.7839 90.0567,39.4505 87,38.5C 85.6667,33.1667 84.3333,27.8333 83,22.5C 71.111,13.1267 58.611,12.2933 45.5,20C 38.8042,28.5158 39.1375,36.8492 46.5,45C 49.3388,46.9203 52.3388,48.5869 55.5,50C 66.8167,53.5496 77.8167,57.8829 88.5,63C 104.035,74.6808 107.201,89.1808 98,106.5C 87.564,117.879 74.564,123.212 59,122.5C 47.2209,121.878 35.7209,119.711 24.5,116C 22.5362,105.76 21.5362,95.2599 21.5,84.5C 25.1667,84.5 28.8333,84.5 32.5,84.5C 33.0878,90.6059 34.2545,96.6059 36,102.5C 49.5481,113.546 64.0481,115.046 79.5,107C 88.8333,97.6667 88.8333,88.3333 79.5,79C 76.6612,77.0797 73.6612,75.4131 70.5,74C 59.1833,70.4504 48.1833,66.1171 37.5,61C 23.9942,49.803 21.1609,36.303 29,20.5C 35.5412,11.9827 44.0412,6.6494 54.5,4.5 Z"})})}export{r as A}; diff --git a/public/build/assets/AuthenticatedLayout-b0ac98cc.js b/public/build/assets/AuthenticatedLayout-c4be06bd.js similarity index 96% rename from public/build/assets/AuthenticatedLayout-b0ac98cc.js rename to public/build/assets/AuthenticatedLayout-c4be06bd.js index 24494da..599d72f 100644 --- a/public/build/assets/AuthenticatedLayout-b0ac98cc.js +++ b/public/build/assets/AuthenticatedLayout-c4be06bd.js @@ -1 +1 @@ -import{r as s,a as e,j as t,F as y,L as g}from"./app-7082a047.js";import{A as b}from"./ApplicationLogo-db4f8950.js";import{t as w}from"./transition-eb04b526.js";const v=s.createContext(),x=({children:r})=>{const[n,o]=s.useState(!1),a=()=>{o(l=>!l)};return e(v.Provider,{value:{open:n,setOpen:o,toggleOpen:a},children:e("div",{className:"relative",children:r})})},k=({children:r})=>{const{open:n,setOpen:o,toggleOpen:a}=s.useContext(v);return t(y,{children:[e("div",{onClick:a,children:r}),n&&e("div",{className:"fixed inset-0 z-40",onClick:()=>o(!1)})]})},N=({align:r="right",width:n="48",contentClasses:o="py-1 bg-white dark:bg-gray-600",children:a})=>{const{open:l,setOpen:c}=s.useContext(v);let h="origin-top";r==="left"?h="origin-top-left left-0":r==="right"&&(h="origin-top-right right-0");let u="";return n==="48"&&(u="w-48"),e(y,{children:e(w,{as:s.Fragment,show:l,enter:"transition ease-out duration-200",enterFrom:"transform opacity-0 scale-95",enterTo:"transform opacity-100 scale-100",leave:"transition ease-in duration-75",leaveFrom:"transform opacity-100 scale-100",leaveTo:"transform opacity-0 scale-95",children:e("div",{className:`absolute z-50 mt-2 rounded-md shadow-lg ${h} ${u}`,onClick:()=>c(!1),children:e("div",{className:"rounded-md ring-1 ring-black ring-opacity-5 "+o,children:a})})})})},C=({href:r,method:n,as:o,children:a})=>e(g,{href:r,method:n,as:o,className:"block w-full px-4 py-2 text-left text-sm leading-5 text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-500 focus:outline-none focus:bg-gray-100 transition duration-150 ease-in-out",children:a});x.Trigger=k;x.Content=N;x.Link=C;const m=x;function d({href:r,active:n,children:o}){return e(g,{href:r,className:n?"inline-flex items-center px-1 pt-1 border-b-2 border-indigo-500 text-sm font-medium leading-5 text-gray-900 dark:text-white focus:outline-none focus:border-indigo-700 transition duration-150 ease-in-out":"inline-flex items-center px-1 pt-1 border-b-2 border-transparent text-sm font-medium leading-5 text-gray-700 dark:text-gray-200 hover:text-gray-800 hover:dark:text-gray-400 hover:border-indigo-300 focus:outline-none focus:text-gray-700 focus:border-gray-300 transition duration-150 ease-in-out",children:o})}function i({method:r="get",as:n="a",href:o,active:a=!1,children:l}){return e(g,{method:r,as:n,href:o,className:`w-full flex items-start pl-3 pr-4 py-2 border-l-4 ${a?"border-indigo-500 text-indigo-500 dark:text-indigo-400 bg-slate-200 dark:bg-slate-600 focus:text-indigo-800 focus:bg-indigo-100 focus:border-indigo-700":"border-transparent text-gray-800 dark:text-gray-400 hover:text-gray-800 hover:bg-gray-50 hover:border-gray-300 focus:text-gray-900 focus:bg-slate-400 focus:border-gray-300"} text-base font-medium focus:outline-none transition duration-150 ease-in-out`,children:l})}function S({auth:r,header:n,children:o}){const[a,l]=s.useState(document.documentElement.classList.contains("dark")),[c,h]=s.useState(!1);function u(){localStorage.getItem("color-theme")?localStorage.getItem("color-theme")==="light"?(document.documentElement.classList.add("dark"),localStorage.setItem("color-theme","dark")):(document.documentElement.classList.remove("dark"),localStorage.setItem("color-theme","light")):document.documentElement.classList.contains("dark")?(document.documentElement.classList.remove("dark"),localStorage.setItem("color-theme","light")):(document.documentElement.classList.add("dark"),localStorage.setItem("color-theme","dark"))}function p(){l(f=>!f),u()}return t("div",{className:"min-h-screen bg-gray-100 dark:bg-gray-800",children:[t("nav",{className:"bg-white border-gray-200 px-1 sm:px-4 py-2.5 dark:bg-gray-800",children:[e("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:t("div",{className:"flex justify-between h-16",children:[t("div",{className:"flex",children:[e("div",{className:"shrink-0 flex items-center",children:e(g,{href:"/",children:e(b,{className:"block h-8 w-auto fill-current text-gray-500 dark:text-white"})})}),t("div",{className:"hidden space-x-8 sm:-my-px sm:ml-10 sm:flex",children:[e(d,{href:route("dashboard"),active:route().current("dashboard"),children:"Dashboard"}),e(d,{href:route("server.index"),active:route().current("server.*"),children:"Servers"}),e(d,{href:route("connection.index"),active:route().current("connection.*"),children:"Connections"}),e(d,{href:route("key.index"),active:route().current("key.*"),children:"Keys"}),e(d,{href:route("sftp.index"),active:route().current("sftp.*"),children:"SFTP"}),e(d,{href:route("command.index"),active:route().current("command.*"),children:"Commands"}),e(d,{href:route("ping.index"),active:route().current("ping.*"),children:"Ping"}),e(d,{href:route("db.index"),active:route().current("db.*"),children:"DB"}),e(d,{href:route("ip.index"),active:route().current("ip.*"),children:"IPs"}),e(d,{href:route("downloaded.index"),active:route().current("downloaded.*"),children:"Files"}),e(d,{href:route("log.index"),active:route().current("log.*"),children:"Logs"}),t("button",{id:"theme-toggle",onClick:p,type:"button",className:"text-gray-500 dark:text-gray-400 rounded-md text-sm p-2.5 themeToggle",children:[e("svg",{id:"theme-toggle-dark-icon",className:a?"w-5 h-5 hidden":"w-5 h-5 text-gray-600 hover:text-gray-900",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M17.293 13.293A8 8 0 016.707 2.707a8.001 8.001 0 1010.586 10.586z"})}),e("svg",{id:"theme-toggle-light-icon",className:a?"w-5 h-5 text-gray-200 hover:text-gray-100":"w-5 h-5 hidden",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M10 2a1 1 0 011 1v1a1 1 0 11-2 0V3a1 1 0 011-1zm4 8a4 4 0 11-8 0 4 4 0 018 0zm-.464 4.95l.707.707a1 1 0 001.414-1.414l-.707-.707a1 1 0 00-1.414 1.414zm2.12-10.607a1 1 0 010 1.414l-.706.707a1 1 0 11-1.414-1.414l.707-.707a1 1 0 011.414 0zM17 11a1 1 0 100-2h-1a1 1 0 100 2h1zm-7 4a1 1 0 011 1v1a1 1 0 11-2 0v-1a1 1 0 011-1zM5.05 6.464A1 1 0 106.465 5.05l-.708-.707a1 1 0 00-1.414 1.414l.707.707zm1.414 8.486l-.707.707a1 1 0 01-1.414-1.414l.707-.707a1 1 0 011.414 1.414zM4 11a1 1 0 100-2H3a1 1 0 000 2h1z",fillRule:"evenodd",clipRule:"evenodd"})})]})]})]}),e("div",{className:"hidden sm:flex sm:items-center sm:ml-6",children:e("div",{className:"ml-3 relative",children:t(m,{children:[e(m.Trigger,{children:e("span",{className:"inline-flex rounded-md",children:t("button",{type:"button",className:"inline-flex items-center px-3 py-2 border border-transparent text-sm leading-4 font-medium rounded-md text-gray-500 dark:text-gray-400 bg-white/50 dark:bg-gray-900 hover:text-gray-700 hover:dark:text-gray-300 focus:outline-none transition ease-in-out duration-150",children:[r.user.name,e("svg",{className:"ml-2 -mr-0.5 h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:e("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})})]})})}),t(m.Content,{children:[e(m.Link,{href:route("profile.edit"),children:"Profile"}),e(m.Link,{href:route("logout"),method:"post",as:"button",children:"Log Out"})]})]})})}),e("div",{className:"-mr-2 flex items-center sm:hidden",children:e("button",{onClick:()=>h(f=>!f),className:"inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 focus:text-gray-500 transition duration-150 ease-in-out",children:t("svg",{className:"h-6 w-6",stroke:"currentColor",fill:"none",viewBox:"0 0 24 24",children:[e("path",{className:c?"hidden":"inline-flex",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"}),e("path",{className:c?"inline-flex":"hidden",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})]})})})]})}),t("div",{className:(c?"block":"hidden")+" sm:hidden",children:[t("div",{className:"pt-2 pb-3 space-y-1",children:[e(i,{href:route("dashboard"),active:route().current("dashboard"),children:"Dashboard"}),e(i,{href:route("server.index"),active:route().current("server.*"),children:"Servers"}),e(i,{href:route("connection.index"),active:route().current("connection.*"),children:"Connections"}),e(i,{href:route("key.index"),active:route().current("key.*"),children:"Keys"}),e(i,{href:route("sftp.index"),active:route().current("sftp.*"),children:"SFTP"}),e(i,{href:route("command.index"),active:route().current("command.*"),children:"Commands"}),e(i,{href:route("ping.index"),active:route().current("ping.*"),children:"Ping"}),e(i,{href:route("db.index"),active:route().current("db.*"),children:"DB"}),e(i,{href:route("ip.index"),active:route().current("ip.*"),children:"IPs"}),e(i,{href:route("downloaded.index"),active:route().current("downloaded.*"),children:"Files"}),e(i,{href:route("log.index"),active:route().current("log.*"),children:"Logs"}),t("button",{id:"theme-toggle-mobile",onClick:p,type:"button",className:"text-gray-500 dark:text-gray-400 rounded-md text-sm p-2.5 ml-2 themeToggle",children:[e("svg",{id:"theme-toggle-dark-icon",className:a?"w-5 h-5 hidden":"w-5 h-5 text-gray-600 hover:text-gray-900",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M17.293 13.293A8 8 0 016.707 2.707a8.001 8.001 0 1010.586 10.586z"})}),e("svg",{id:"theme-toggle-light-icon",className:a?"w-5 h-5 text-gray-200 hover:text-gray-100":"w-5 h-5 hidden",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M10 2a1 1 0 011 1v1a1 1 0 11-2 0V3a1 1 0 011-1zm4 8a4 4 0 11-8 0 4 4 0 018 0zm-.464 4.95l.707.707a1 1 0 001.414-1.414l-.707-.707a1 1 0 00-1.414 1.414zm2.12-10.607a1 1 0 010 1.414l-.706.707a1 1 0 11-1.414-1.414l.707-.707a1 1 0 011.414 0zM17 11a1 1 0 100-2h-1a1 1 0 100 2h1zm-7 4a1 1 0 011 1v1a1 1 0 11-2 0v-1a1 1 0 011-1zM5.05 6.464A1 1 0 106.465 5.05l-.708-.707a1 1 0 00-1.414 1.414l.707.707zm1.414 8.486l-.707.707a1 1 0 01-1.414-1.414l.707-.707a1 1 0 011.414 1.414zM4 11a1 1 0 100-2H3a1 1 0 000 2h1z",fillRule:"evenodd",clipRule:"evenodd"})})]})]}),t("div",{className:"pt-4 pb-1 border-t border-gray-200",children:[t("div",{className:"px-4",children:[e("div",{className:"font-medium text-base text-gray-800 dark:text-indigo-400",children:r.user.name}),e("div",{className:"font-medium text-sm text-gray-500 dark:text-indigo-400",children:r.user.email})]}),t("div",{className:"mt-3 space-y-1",children:[e(i,{href:route("profile.edit"),children:"Profile"}),e(i,{method:"post",href:route("logout"),as:"button",children:"Log Out"})]})]})]})]}),n&&e("header",{className:"bg-white dark:bg-gray-700 shadow",children:e("div",{className:"max-w-7xl mx-auto py-6 px-4 sm:px-6 lg:px-8",children:n})}),e("main",{children:o})]})}export{S as A}; +import{r as s,a as e,j as t,F as y,L as g}from"./app-a8d4275f.js";import{A as b}from"./ApplicationLogo-ae419612.js";import{t as w}from"./transition-fbe58e1e.js";const v=s.createContext(),x=({children:r})=>{const[n,o]=s.useState(!1),a=()=>{o(l=>!l)};return e(v.Provider,{value:{open:n,setOpen:o,toggleOpen:a},children:e("div",{className:"relative",children:r})})},k=({children:r})=>{const{open:n,setOpen:o,toggleOpen:a}=s.useContext(v);return t(y,{children:[e("div",{onClick:a,children:r}),n&&e("div",{className:"fixed inset-0 z-40",onClick:()=>o(!1)})]})},N=({align:r="right",width:n="48",contentClasses:o="py-1 bg-white dark:bg-gray-600",children:a})=>{const{open:l,setOpen:c}=s.useContext(v);let h="origin-top";r==="left"?h="origin-top-left left-0":r==="right"&&(h="origin-top-right right-0");let u="";return n==="48"&&(u="w-48"),e(y,{children:e(w,{as:s.Fragment,show:l,enter:"transition ease-out duration-200",enterFrom:"transform opacity-0 scale-95",enterTo:"transform opacity-100 scale-100",leave:"transition ease-in duration-75",leaveFrom:"transform opacity-100 scale-100",leaveTo:"transform opacity-0 scale-95",children:e("div",{className:`absolute z-50 mt-2 rounded-md shadow-lg ${h} ${u}`,onClick:()=>c(!1),children:e("div",{className:"rounded-md ring-1 ring-black ring-opacity-5 "+o,children:a})})})})},C=({href:r,method:n,as:o,children:a})=>e(g,{href:r,method:n,as:o,className:"block w-full px-4 py-2 text-left text-sm leading-5 text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-500 focus:outline-none focus:bg-gray-100 transition duration-150 ease-in-out",children:a});x.Trigger=k;x.Content=N;x.Link=C;const m=x;function d({href:r,active:n,children:o}){return e(g,{href:r,className:n?"inline-flex items-center px-1 pt-1 border-b-2 border-indigo-500 text-sm font-medium leading-5 text-gray-900 dark:text-white focus:outline-none focus:border-indigo-700 transition duration-150 ease-in-out":"inline-flex items-center px-1 pt-1 border-b-2 border-transparent text-sm font-medium leading-5 text-gray-700 dark:text-gray-200 hover:text-gray-800 hover:dark:text-gray-400 hover:border-indigo-300 focus:outline-none focus:text-gray-700 focus:border-gray-300 transition duration-150 ease-in-out",children:o})}function i({method:r="get",as:n="a",href:o,active:a=!1,children:l}){return e(g,{method:r,as:n,href:o,className:`w-full flex items-start pl-3 pr-4 py-2 border-l-4 ${a?"border-indigo-500 text-indigo-500 dark:text-indigo-400 bg-slate-200 dark:bg-slate-600 focus:text-indigo-800 focus:bg-indigo-100 focus:border-indigo-700":"border-transparent text-gray-800 dark:text-gray-400 hover:text-gray-800 hover:bg-gray-50 hover:border-gray-300 focus:text-gray-900 focus:bg-slate-400 focus:border-gray-300"} text-base font-medium focus:outline-none transition duration-150 ease-in-out`,children:l})}function S({auth:r,header:n,children:o}){const[a,l]=s.useState(document.documentElement.classList.contains("dark")),[c,h]=s.useState(!1);function u(){localStorage.getItem("color-theme")?localStorage.getItem("color-theme")==="light"?(document.documentElement.classList.add("dark"),localStorage.setItem("color-theme","dark")):(document.documentElement.classList.remove("dark"),localStorage.setItem("color-theme","light")):document.documentElement.classList.contains("dark")?(document.documentElement.classList.remove("dark"),localStorage.setItem("color-theme","light")):(document.documentElement.classList.add("dark"),localStorage.setItem("color-theme","dark"))}function p(){l(f=>!f),u()}return t("div",{className:"min-h-screen bg-gray-100 dark:bg-gray-800",children:[t("nav",{className:"bg-white border-gray-200 px-1 sm:px-4 py-2.5 dark:bg-gray-800",children:[e("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:t("div",{className:"flex justify-between h-16",children:[t("div",{className:"flex",children:[e("div",{className:"shrink-0 flex items-center",children:e(g,{href:"/",children:e(b,{className:"block h-8 w-auto fill-current text-gray-500 dark:text-white"})})}),t("div",{className:"hidden space-x-8 sm:-my-px sm:ml-10 sm:flex",children:[e(d,{href:route("dashboard"),active:route().current("dashboard"),children:"Dashboard"}),e(d,{href:route("server.index"),active:route().current("server.*"),children:"Servers"}),e(d,{href:route("connection.index"),active:route().current("connection.*"),children:"Connections"}),e(d,{href:route("key.index"),active:route().current("key.*"),children:"Keys"}),e(d,{href:route("sftp.index"),active:route().current("sftp.*"),children:"SFTP"}),e(d,{href:route("command.index"),active:route().current("command.*"),children:"Commands"}),e(d,{href:route("ping.index"),active:route().current("ping.*"),children:"Ping"}),e(d,{href:route("db.index"),active:route().current("db.*"),children:"DB"}),e(d,{href:route("ip.index"),active:route().current("ip.*"),children:"IPs"}),e(d,{href:route("downloaded.index"),active:route().current("downloaded.*"),children:"Files"}),e(d,{href:route("log.index"),active:route().current("log.*"),children:"Logs"}),t("button",{id:"theme-toggle",onClick:p,type:"button",className:"text-gray-500 dark:text-gray-400 rounded-md text-sm p-2.5 themeToggle",children:[e("svg",{id:"theme-toggle-dark-icon",className:a?"w-5 h-5 hidden":"w-5 h-5 text-gray-600 hover:text-gray-900",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M17.293 13.293A8 8 0 016.707 2.707a8.001 8.001 0 1010.586 10.586z"})}),e("svg",{id:"theme-toggle-light-icon",className:a?"w-5 h-5 text-gray-200 hover:text-gray-100":"w-5 h-5 hidden",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M10 2a1 1 0 011 1v1a1 1 0 11-2 0V3a1 1 0 011-1zm4 8a4 4 0 11-8 0 4 4 0 018 0zm-.464 4.95l.707.707a1 1 0 001.414-1.414l-.707-.707a1 1 0 00-1.414 1.414zm2.12-10.607a1 1 0 010 1.414l-.706.707a1 1 0 11-1.414-1.414l.707-.707a1 1 0 011.414 0zM17 11a1 1 0 100-2h-1a1 1 0 100 2h1zm-7 4a1 1 0 011 1v1a1 1 0 11-2 0v-1a1 1 0 011-1zM5.05 6.464A1 1 0 106.465 5.05l-.708-.707a1 1 0 00-1.414 1.414l.707.707zm1.414 8.486l-.707.707a1 1 0 01-1.414-1.414l.707-.707a1 1 0 011.414 1.414zM4 11a1 1 0 100-2H3a1 1 0 000 2h1z",fillRule:"evenodd",clipRule:"evenodd"})})]})]})]}),e("div",{className:"hidden sm:flex sm:items-center sm:ml-6",children:e("div",{className:"ml-3 relative",children:t(m,{children:[e(m.Trigger,{children:e("span",{className:"inline-flex rounded-md",children:t("button",{type:"button",className:"inline-flex items-center px-3 py-2 border border-transparent text-sm leading-4 font-medium rounded-md text-gray-500 dark:text-gray-400 bg-white/50 dark:bg-gray-900 hover:text-gray-700 hover:dark:text-gray-300 focus:outline-none transition ease-in-out duration-150",children:[r.user.name,e("svg",{className:"ml-2 -mr-0.5 h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:e("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})})]})})}),t(m.Content,{children:[e(m.Link,{href:route("profile.edit"),children:"Profile"}),e(m.Link,{href:route("logout"),method:"post",as:"button",children:"Log Out"})]})]})})}),e("div",{className:"-mr-2 flex items-center sm:hidden",children:e("button",{onClick:()=>h(f=>!f),className:"inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 focus:text-gray-500 transition duration-150 ease-in-out",children:t("svg",{className:"h-6 w-6",stroke:"currentColor",fill:"none",viewBox:"0 0 24 24",children:[e("path",{className:c?"hidden":"inline-flex",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h16M4 18h16"}),e("path",{className:c?"inline-flex":"hidden",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})]})})})]})}),t("div",{className:(c?"block":"hidden")+" sm:hidden",children:[t("div",{className:"pt-2 pb-3 space-y-1",children:[e(i,{href:route("dashboard"),active:route().current("dashboard"),children:"Dashboard"}),e(i,{href:route("server.index"),active:route().current("server.*"),children:"Servers"}),e(i,{href:route("connection.index"),active:route().current("connection.*"),children:"Connections"}),e(i,{href:route("key.index"),active:route().current("key.*"),children:"Keys"}),e(i,{href:route("sftp.index"),active:route().current("sftp.*"),children:"SFTP"}),e(i,{href:route("command.index"),active:route().current("command.*"),children:"Commands"}),e(i,{href:route("ping.index"),active:route().current("ping.*"),children:"Ping"}),e(i,{href:route("db.index"),active:route().current("db.*"),children:"DB"}),e(i,{href:route("ip.index"),active:route().current("ip.*"),children:"IPs"}),e(i,{href:route("downloaded.index"),active:route().current("downloaded.*"),children:"Files"}),e(i,{href:route("log.index"),active:route().current("log.*"),children:"Logs"}),t("button",{id:"theme-toggle-mobile",onClick:p,type:"button",className:"text-gray-500 dark:text-gray-400 rounded-md text-sm p-2.5 ml-2 themeToggle",children:[e("svg",{id:"theme-toggle-dark-icon",className:a?"w-5 h-5 hidden":"w-5 h-5 text-gray-600 hover:text-gray-900",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M17.293 13.293A8 8 0 016.707 2.707a8.001 8.001 0 1010.586 10.586z"})}),e("svg",{id:"theme-toggle-light-icon",className:a?"w-5 h-5 text-gray-200 hover:text-gray-100":"w-5 h-5 hidden",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M10 2a1 1 0 011 1v1a1 1 0 11-2 0V3a1 1 0 011-1zm4 8a4 4 0 11-8 0 4 4 0 018 0zm-.464 4.95l.707.707a1 1 0 001.414-1.414l-.707-.707a1 1 0 00-1.414 1.414zm2.12-10.607a1 1 0 010 1.414l-.706.707a1 1 0 11-1.414-1.414l.707-.707a1 1 0 011.414 0zM17 11a1 1 0 100-2h-1a1 1 0 100 2h1zm-7 4a1 1 0 011 1v1a1 1 0 11-2 0v-1a1 1 0 011-1zM5.05 6.464A1 1 0 106.465 5.05l-.708-.707a1 1 0 00-1.414 1.414l.707.707zm1.414 8.486l-.707.707a1 1 0 01-1.414-1.414l.707-.707a1 1 0 011.414 1.414zM4 11a1 1 0 100-2H3a1 1 0 000 2h1z",fillRule:"evenodd",clipRule:"evenodd"})})]})]}),t("div",{className:"pt-4 pb-1 border-t border-gray-200",children:[t("div",{className:"px-4",children:[e("div",{className:"font-medium text-base text-gray-800 dark:text-indigo-400",children:r.user.name}),e("div",{className:"font-medium text-sm text-gray-500 dark:text-indigo-400",children:r.user.email})]}),t("div",{className:"mt-3 space-y-1",children:[e(i,{href:route("profile.edit"),children:"Profile"}),e(i,{method:"post",href:route("logout"),as:"button",children:"Log Out"})]})]})]})]}),n&&e("header",{className:"bg-gray-50 dark:bg-gray-700 shadow",children:e("div",{className:"max-w-7xl mx-auto py-6 px-4 sm:px-6 lg:px-8",children:n})}),e("main",{children:o})]})}export{S as A}; diff --git a/public/build/assets/BackButton-c0685269.js b/public/build/assets/BackButton-2b60c346.js similarity index 80% rename from public/build/assets/BackButton-c0685269.js rename to public/build/assets/BackButton-2b60c346.js index f3c3346..a19761e 100644 --- a/public/build/assets/BackButton-c0685269.js +++ b/public/build/assets/BackButton-2b60c346.js @@ -1 +1 @@ -import{x as o}from"./index.esm-eebfcfab.js";import{a as e,j as n}from"./app-7082a047.js";function b({href:r,className:s="",children:t,onClick:a}){return e("a",{href:r,onClick:a,className:"text-white bg-blue-700 border border-transparent hover:bg-blue-800 py-0.5 focus:ring-4 focus:ring-blue-300 disabled:hover:bg-blue-700 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800 dark:disabled:hover:bg-blue-600 focus:!ring-2 group flex h-min items-center justify-center p-0.5 text-center text-sm focus:z-10 rounded-lg"+s,children:n("span",{className:"flex items-center rounded-md px-2 py-1",children:[e(o,{className:"mr-2 h-5 w-5"}),t]})})}export{b as B}; +import{x as o}from"./index.esm-2010c99b.js";import{a as e,j as n}from"./app-a8d4275f.js";function b({href:r,className:s="",children:t,onClick:a}){return e("a",{href:r,onClick:a,className:"text-white bg-blue-700 border border-transparent hover:bg-blue-800 py-0.5 focus:ring-4 focus:ring-blue-300 disabled:hover:bg-blue-700 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800 dark:disabled:hover:bg-blue-600 focus:!ring-2 group flex h-min items-center justify-center p-0.5 text-center text-sm focus:z-10 rounded-lg"+s,children:n("span",{className:"flex items-center rounded-md px-2 py-1",children:[e(o,{className:"mr-2 h-5 w-5"}),t]})})}export{b as B}; diff --git a/public/build/assets/Card-4b32b85d.js b/public/build/assets/Card-0ddd50a2.js similarity index 77% rename from public/build/assets/Card-4b32b85d.js rename to public/build/assets/Card-0ddd50a2.js index de7bdd7..927f54d 100644 --- a/public/build/assets/Card-4b32b85d.js +++ b/public/build/assets/Card-0ddd50a2.js @@ -1 +1 @@ -import{j as h,a as t}from"./app-7082a047.js";import{u as p,c as r}from"./Table-13305096.js";import{m as u}from"./Toast-a9c7a83a.js";const j=({children:m,className:i,horizontal:s,href:o,imgAlt:n,imgSrc:a,theme:c={},...d})=>{const f=typeof o>"u"?"div":"a",l=d,e=u(p().theme.card,c);return h(f,{className:r(e.root.base,e.root.horizontal[s?"on":"off"],o&&e.root.href,i),"data-testid":"flowbite-card",href:o,...l,children:[a&&t("img",{alt:n??"",className:r(e.img.base,e.img.horizontal[s?"on":"off"]),src:a}),t("div",{className:e.root.children,children:m})]})};export{j as C}; +import{j as h,a as t}from"./app-a8d4275f.js";import{u as p,c as r}from"./Table-f19b692a.js";import{m as u}from"./Toast-ee00046f.js";const j=({children:m,className:i,horizontal:s,href:o,imgAlt:n,imgSrc:a,theme:c={},...d})=>{const f=typeof o>"u"?"div":"a",l=d,e=u(p().theme.card,c);return h(f,{className:r(e.root.base,e.root.horizontal[s?"on":"off"],o&&e.root.href,i),"data-testid":"flowbite-card",href:o,...l,children:[a&&t("img",{alt:n??"",className:r(e.img.base,e.img.horizontal[s?"on":"off"]),src:a}),t("div",{className:e.root.children,children:m})]})};export{j as C}; diff --git a/public/build/assets/ConfirmPassword-78c1dd81.js b/public/build/assets/ConfirmPassword-8e0dba9b.js similarity index 72% rename from public/build/assets/ConfirmPassword-78c1dd81.js rename to public/build/assets/ConfirmPassword-8e0dba9b.js index 4571fb7..e30a8a9 100644 --- a/public/build/assets/ConfirmPassword-78c1dd81.js +++ b/public/build/assets/ConfirmPassword-8e0dba9b.js @@ -1 +1 @@ -import{b as l,r as p,j as a,a as s,H as c}from"./app-7082a047.js";import{G as u}from"./GuestLayout-3dfccb91.js";import{T as f,I as w}from"./TextInput-38986df9.js";import{I as h}from"./InputLabel-04829bce.js";import{P as b}from"./PrimaryButton-aae876dd.js";import"./ApplicationLogo-db4f8950.js";function C(){const{data:e,setData:t,post:o,processing:m,errors:n,reset:i}=l({password:""});p.useEffect(()=>()=>{i("password")},[]);const d=r=>{t(r.target.name,r.target.value)};return a(u,{children:[s(c,{title:"Confirm Password"}),s("div",{className:"mb-4 text-sm text-gray-600",children:"This is a secure area of the application. Please confirm your password before continuing."}),a("form",{onSubmit:r=>{r.preventDefault(),o(route("password.confirm"))},children:[a("div",{className:"mt-4",children:[s(h,{forInput:"password",value:"Password"}),s(f,{id:"password",type:"password",name:"password",value:e.password,className:"mt-1 block w-full",isFocused:!0,handleChange:d}),s(w,{message:n.password,className:"mt-2"})]}),s("div",{className:"flex items-center justify-end mt-4",children:s(b,{className:"ml-4",processing:m,children:"Confirm"})})]})]})}export{C as default}; +import{b as l,r as p,j as a,a as s,H as c}from"./app-a8d4275f.js";import{G as u}from"./GuestLayout-fc7cb66d.js";import{T as f,I as w}from"./TextInput-1e9aadbd.js";import{I as h}from"./InputLabel-a7ee92ff.js";import{P as b}from"./PrimaryButton-19cc4f5a.js";import"./ApplicationLogo-ae419612.js";function C(){const{data:e,setData:t,post:o,processing:m,errors:n,reset:i}=l({password:""});p.useEffect(()=>()=>{i("password")},[]);const d=r=>{t(r.target.name,r.target.value)};return a(u,{children:[s(c,{title:"Confirm Password"}),s("div",{className:"mb-4 text-sm text-gray-600",children:"This is a secure area of the application. Please confirm your password before continuing."}),a("form",{onSubmit:r=>{r.preventDefault(),o(route("password.confirm"))},children:[a("div",{className:"mt-4",children:[s(h,{forInput:"password",value:"Password"}),s(f,{id:"password",type:"password",name:"password",value:e.password,className:"mt-1 block w-full",isFocused:!0,handleChange:d}),s(w,{message:n.password,className:"mt-2"})]}),s("div",{className:"flex items-center justify-end mt-4",children:s(b,{className:"ml-4",processing:m,children:"Confirm"})})]})]})}export{C as default}; diff --git a/public/build/assets/Create-6722570a.js b/public/build/assets/Create-0779bb52.js similarity index 78% rename from public/build/assets/Create-6722570a.js rename to public/build/assets/Create-0779bb52.js index 5279395..fb31961 100644 --- a/public/build/assets/Create-6722570a.js +++ b/public/build/assets/Create-0779bb52.js @@ -1 +1 @@ -import{A as p}from"./AuthenticatedLayout-b0ac98cc.js";import{b as g,j as a,a as e,H as h}from"./app-7082a047.js";import{I as s}from"./InputLabel-04829bce.js";import{T as i,I as n}from"./TextInput-38986df9.js";import{P as f}from"./PrimaryButton-aae876dd.js";import{B as x}from"./BackButton-c0685269.js";import"./ApplicationLogo-db4f8950.js";import"./transition-eb04b526.js";import"./index.esm-eebfcfab.js";function T({auth:l}){const{data:m,setData:r,post:d,processing:c,reset:v,errors:o}=g({title:"",command:""}),u=t=>{t.preventDefault(),d(route("command.store")),navigate(route("command.index"))};return a(p,{auth:l,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Create command"}),children:[e(h,{title:"Create command"}),a("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(x,{href:route("command.index"),children:"Back to commands"})}),e("section",{className:"bg-white dark:bg-gray-700 overflow-hidden shadow-sm sm:rounded-lg p-2 sm:p-6",children:a("form",{onSubmit:u,children:[a("div",{className:"grid gap-2 sm:grid-cols-1 md:grid-cols-4 sm:gap-4",children:[a("div",{className:"col-span-4",children:[e(s,{forInput:"title",value:"Title"}),e(i,{name:"title",value:m.title,className:"mt-1 block w-full",autoComplete:"title",handleChange:t=>r("title",t.target.value),maxLength:64,required:!0,isFocused:!0}),e(n,{message:o.title,className:"mt-2"})]}),a("div",{className:"col-span-4",children:[e(s,{forInput:"command",value:"Command"}),e(i,{name:"command",className:"mt-1 block w-full",autoComplete:"command",value:m.command,handleChange:t=>r("command",t.target.value),required:!0}),e(n,{message:o.command,className:"mt-2"})]})]}),e(f,{className:"inline-flex items-center px-5 py-2.5 mt-4 sm:mt-6 text-sm font-medium text-center text-white bg-primary-700 rounded-lg focus:ring-4 focus:ring-primary-200 dark:focus:ring-primary-900 hover:bg-primary-800",processing:c,children:"Create Command"})]})})]})]})}export{T as default}; +import{A as p}from"./AuthenticatedLayout-c4be06bd.js";import{b as g,j as a,a as e,H as h}from"./app-a8d4275f.js";import{I as s}from"./InputLabel-a7ee92ff.js";import{T as i,I as n}from"./TextInput-1e9aadbd.js";import{P as f}from"./PrimaryButton-19cc4f5a.js";import{B as x}from"./BackButton-2b60c346.js";import"./ApplicationLogo-ae419612.js";import"./transition-fbe58e1e.js";import"./index.esm-2010c99b.js";function T({auth:l}){const{data:m,setData:r,post:d,processing:c,reset:v,errors:o}=g({title:"",command:""}),u=t=>{t.preventDefault(),d(route("command.store")),navigate(route("command.index"))};return a(p,{auth:l,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Create command"}),children:[e(h,{title:"Create command"}),a("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(x,{href:route("command.index"),children:"Back to commands"})}),e("section",{className:"bg-white dark:bg-gray-700 overflow-hidden shadow-sm sm:rounded-lg p-2 sm:p-6",children:a("form",{onSubmit:u,children:[a("div",{className:"grid gap-2 sm:grid-cols-1 md:grid-cols-4 sm:gap-4",children:[a("div",{className:"col-span-4",children:[e(s,{forInput:"title",value:"Title"}),e(i,{name:"title",value:m.title,className:"mt-1 block w-full",autoComplete:"title",handleChange:t=>r("title",t.target.value),maxLength:64,required:!0,isFocused:!0}),e(n,{message:o.title,className:"mt-2"})]}),a("div",{className:"col-span-4",children:[e(s,{forInput:"command",value:"Command"}),e(i,{name:"command",className:"mt-1 block w-full",autoComplete:"command",value:m.command,handleChange:t=>r("command",t.target.value),required:!0}),e(n,{message:o.command,className:"mt-2"})]})]}),e(f,{className:"inline-flex items-center px-5 py-2.5 mt-4 sm:mt-6 text-sm font-medium text-center text-white bg-primary-700 rounded-lg focus:ring-4 focus:ring-primary-200 dark:focus:ring-primary-900 hover:bg-primary-800",processing:c,children:"Create Command"})]})})]})]})}export{T as default}; diff --git a/public/build/assets/Create-c040c543.js b/public/build/assets/Create-10da5554.js similarity index 81% rename from public/build/assets/Create-c040c543.js rename to public/build/assets/Create-10da5554.js index 1f18166..e678ec7 100644 --- a/public/build/assets/Create-c040c543.js +++ b/public/build/assets/Create-10da5554.js @@ -1 +1 @@ -import{A as w}from"./AuthenticatedLayout-b0ac98cc.js";import{u as c,R as n,b as I,j as t,a,H as S}from"./app-7082a047.js";import{I as o}from"./InputLabel-04829bce.js";import{T as C,I as A}from"./TextInput-38986df9.js";import{S as u}from"./Toast-a9c7a83a.js";import"./Table-13305096.js";import{P as B}from"./PrimaryButton-aae876dd.js";import{R as P}from"./Alert-af0dbb46.js";import{a as R}from"./axios-4a70c6fc.js";import{B as j}from"./BackButton-c0685269.js";import"./ApplicationLogo-db4f8950.js";import"./transition-eb04b526.js";import"./index.esm-eebfcfab.js";function V({auth:p}){const h=c().props.alert,i=c().props.connections,[s,b]=n.useState(""),{data:l,setData:r,post:g,processing:f,reset:q,errors:v}=I({db_connection_id:null,name:s,name_select:s}),[x,N]=n.useState([]),[_,d]=n.useState(1),y=e=>{e.preventDefault(),g(route("db.store")),navigate(route("db.index"))},D=e=>{r("db_connection_id",e.target.value),e.target.value!==""&&R.get(route("db.connection.databases",e.target.value)).then(m=>{N(m.data.databases),d(0)}).catch(m=>{d(1)})},k=e=>{r("name",e.target.value),b(e.target.value)};return t(w,{auth:p,header:a("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Add a database"}),children:[a(S,{title:"Add database"}),t("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[a("div",{className:"flex flex-wrap gap-2 mb-4",children:a(j,{href:route("db.index"),children:"Back to databases"})}),a(P,{details:h}),a("div",{className:"bg-white dark:bg-gray-700 overflow-hidden shadow-sm sm:rounded-lg p-2 sm:p-6",children:i.length===0?a("p",{className:"text-gray-600 dark:text-gray-300",children:"Please create a database connection first"}):t("form",{onSubmit:y,children:[t("div",{className:"grid gap-2 sm:grid-cols-1 md:grid-cols-6 sm:gap-4",children:[t("div",{className:"sm:col-span-2 col-span-4",children:[a("div",{className:"mb-2 block",children:a(o,{forInput:"db_connection_id",value:"Database connection"})}),t(u,{onChange:D,name:"db_connection_id",required:!0,value:l.db_connection_id,children:[a("option",{value:"",children:"Choose"}),i.map(e=>t("option",{value:e.id,children:[e.host," (",e.title,")"]},e.id))]})]}),t("div",{className:"sm:col-span-2 col-span-4",children:[a(o,{forInput:"name",value:"Database name"}),a(C,{name:"name",className:"mt-1 block w-full",autoComplete:"name",value:l.name,handleChange:e=>r("name",e.target.value),maxLength:64,required:!0}),a(A,{message:v.name,className:"mt-2"})]}),t("div",{className:"sm:col-span-2 col-span-4",children:[a("div",{className:"mb-2 block",children:a(o,{forInput:"name_select",value:"Database name"})}),t(u,{onChange:k,name:"name_select",value:s,disabled:_,required:!0,children:[a("option",{value:"",children:"Choose a connection first"}),x.map(e=>a("option",{value:e,children:e},e))]})]})]}),a(B,{className:"inline-flex items-center px-5 py-2.5 mt-4 sm:mt-6 text-sm font-medium text-center text-white bg-primary-700 rounded-lg focus:ring-4 focus:ring-primary-200 dark:focus:ring-primary-900 hover:bg-primary-800",processing:f,children:"Add database"})]})})]})]})}export{V as default}; +import{A as w}from"./AuthenticatedLayout-c4be06bd.js";import{u as c,R as n,b as I,j as t,a,H as S}from"./app-a8d4275f.js";import{I as o}from"./InputLabel-a7ee92ff.js";import{T as C,I as A}from"./TextInput-1e9aadbd.js";import{S as u}from"./Toast-ee00046f.js";import"./Table-f19b692a.js";import{P as B}from"./PrimaryButton-19cc4f5a.js";import{R as P}from"./Alert-d503f44b.js";import{a as R}from"./axios-4a70c6fc.js";import{B as j}from"./BackButton-2b60c346.js";import"./ApplicationLogo-ae419612.js";import"./transition-fbe58e1e.js";import"./index.esm-2010c99b.js";function V({auth:p}){const h=c().props.alert,i=c().props.connections,[s,b]=n.useState(""),{data:l,setData:r,post:g,processing:f,reset:q,errors:v}=I({db_connection_id:null,name:s,name_select:s}),[x,N]=n.useState([]),[_,d]=n.useState(1),y=e=>{e.preventDefault(),g(route("db.store")),navigate(route("db.index"))},D=e=>{r("db_connection_id",e.target.value),e.target.value!==""&&R.get(route("db.connection.databases",e.target.value)).then(m=>{N(m.data.databases),d(0)}).catch(m=>{d(1)})},k=e=>{r("name",e.target.value),b(e.target.value)};return t(w,{auth:p,header:a("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Add a database"}),children:[a(S,{title:"Add database"}),t("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[a("div",{className:"flex flex-wrap gap-2 mb-4",children:a(j,{href:route("db.index"),children:"Back to databases"})}),a(P,{details:h}),a("div",{className:"bg-white dark:bg-gray-700 overflow-hidden shadow-sm sm:rounded-lg p-2 sm:p-6",children:i.length===0?a("p",{className:"text-gray-600 dark:text-gray-300",children:"Please create a database connection first"}):t("form",{onSubmit:y,children:[t("div",{className:"grid gap-2 sm:grid-cols-1 md:grid-cols-6 sm:gap-4",children:[t("div",{className:"sm:col-span-2 col-span-4",children:[a("div",{className:"mb-2 block",children:a(o,{forInput:"db_connection_id",value:"Database connection"})}),t(u,{onChange:D,name:"db_connection_id",required:!0,value:l.db_connection_id,children:[a("option",{value:"",children:"Choose"}),i.map(e=>t("option",{value:e.id,children:[e.host," (",e.title,")"]},e.id))]})]}),t("div",{className:"sm:col-span-2 col-span-4",children:[a(o,{forInput:"name",value:"Database name"}),a(C,{name:"name",className:"mt-1 block w-full",autoComplete:"name",value:l.name,handleChange:e=>r("name",e.target.value),maxLength:64,required:!0}),a(A,{message:v.name,className:"mt-2"})]}),t("div",{className:"sm:col-span-2 col-span-4",children:[a("div",{className:"mb-2 block",children:a(o,{forInput:"name_select",value:"Database name"})}),t(u,{onChange:k,name:"name_select",value:s,disabled:_,required:!0,children:[a("option",{value:"",children:"Choose a connection first"}),x.map(e=>a("option",{value:e,children:e},e))]})]})]}),a(B,{className:"inline-flex items-center px-5 py-2.5 mt-4 sm:mt-6 text-sm font-medium text-center text-white bg-primary-700 rounded-lg focus:ring-4 focus:ring-primary-200 dark:focus:ring-primary-900 hover:bg-primary-800",processing:f,children:"Add database"})]})})]})]})}export{V as default}; diff --git a/public/build/assets/Create-e3219b41.js b/public/build/assets/Create-48747bbc.js similarity index 85% rename from public/build/assets/Create-e3219b41.js rename to public/build/assets/Create-48747bbc.js index 8dac0e6..3bbd8d4 100644 --- a/public/build/assets/Create-e3219b41.js +++ b/public/build/assets/Create-48747bbc.js @@ -1 +1 @@ -import{A as C}from"./AuthenticatedLayout-b0ac98cc.js";import{u as i,b as I,j as s,a as e,H as k}from"./app-7082a047.js";import{I as o}from"./InputLabel-04829bce.js";import{T as n,I as m}from"./TextInput-38986df9.js";import{S as y}from"./Toast-a9c7a83a.js";import"./Table-13305096.js";import{P as B}from"./PrimaryButton-aae876dd.js";import{R as _}from"./Alert-af0dbb46.js";import{a as D}from"./axios-4a70c6fc.js";import{B as P}from"./BackButton-c0685269.js";import"./ApplicationLogo-db4f8950.js";import"./transition-eb04b526.js";import"./index.esm-eebfcfab.js";function J({auth:p}){const u=i().props.alert,h=i().props.servers,g=i().props.title,{data:t,setData:r,post:v,processing:f,reset:A,errors:l}=I({title:g,server_id:"",address:"",port:"3306",username:"root",password:""}),x=i().props.auth.user,N=a=>{a.preventDefault(),v(route("db.connection.store")),navigate(route("db.connection.index"))},b=a=>{const w={headers:{Authorization:`Bearer ${x.api_token}`}};a.target.value!==""&&D.get(route("api.server.ip",a.target.value),w).then(c=>{r(d=>({...d,address:c.data.ip})),r(d=>({...d,server_id:a.target.value}))}).catch(c=>{console.log("Error fetching IP")}),r("server_id",a.target.value)};return s(C,{auth:p,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Create DB connection"}),children:[e(k,{title:"Create DB connection"}),s("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(P,{href:route("db.connection.index"),children:"Back to DB connections"})}),e(_,{details:u}),e("div",{className:"bg-white dark:bg-gray-700 overflow-hidden shadow-sm sm:rounded-lg p-2 sm:p-6",children:s("form",{onSubmit:N,children:[s("div",{className:"grid gap-2 sm:grid-cols-1 md:grid-cols-6 sm:gap-4",children:[s("div",{className:"sm:col-span-2 col-span-4",children:[e("div",{className:"mb-2 block",children:e(o,{forInput:"server_id",value:"Server"})}),s(y,{onChange:b,name:"server_id",value:t.server_id,handleChange:a=>r("server_id",a.target.value),children:[e("option",{value:"",children:"Choose to fill address"}),h.map(a=>s("option",{value:a.id,children:[a.title," (",a.hostname,")"]},a.id))]})]}),s("div",{className:"sm:col-span-2 col-span-4",children:[e(o,{forInput:"address",value:"Address/hostname"}),e(n,{name:"address",className:"mt-1 block w-full",autoComplete:"address",value:t.address,handleChange:a=>r("address",a.target.value),maxLength:125,required:!0}),e(m,{message:l.address,className:"mt-2"})]}),s("div",{className:"sm:col-span-2 col-span-4",children:[e(o,{forInput:"title",value:"Title"}),e(n,{name:"title",className:"mt-1 block w-full",autoComplete:"title",value:t.title,handleChange:a=>r("title",a.target.value),maxLength:64,required:!0}),e(m,{message:l.title,className:"mt-2"})]}),s("div",{className:"sm:col-span-1 col-span-1",children:[e(o,{forInput:"port",value:"Port"}),e(n,{type:"number",name:"port",className:"mt-1 block w-full",autoComplete:"port",value:t.port,handleChange:a=>r("port",a.target.value)}),e(m,{message:l.port,className:"mt-2"})]}),s("div",{className:"sm:col-span-1 col-span-3",children:[e(o,{forInput:"username",value:"Username"}),e(n,{name:"username",className:"mt-1 block w-full",autoComplete:"username",value:t.username,handleChange:a=>r("username",a.target.value),maxLength:64,required:!0}),e(m,{message:l.username,className:"mt-2"})]}),s("div",{className:"sm:col-span-2 col-span-4",children:[e(o,{forInput:"password",value:"Password"}),e(n,{name:"password",className:"mt-1 block w-full",autoComplete:"password",value:t.password,handleChange:a=>r("password",a.target.value),maxLength:255}),e(m,{message:l.password,className:"mt-2"})]})]}),e(B,{className:"inline-flex items-center px-5 py-2.5 mt-4 sm:mt-6 text-sm font-medium text-center text-white bg-primary-700 rounded-lg focus:ring-4 focus:ring-primary-200 dark:focus:ring-primary-900 hover:bg-primary-800",processing:f,children:"Create DB connection"})]})})]})]})}export{J as default}; +import{A as C}from"./AuthenticatedLayout-c4be06bd.js";import{u as i,b as I,j as s,a as e,H as k}from"./app-a8d4275f.js";import{I as o}from"./InputLabel-a7ee92ff.js";import{T as n,I as m}from"./TextInput-1e9aadbd.js";import{S as y}from"./Toast-ee00046f.js";import"./Table-f19b692a.js";import{P as B}from"./PrimaryButton-19cc4f5a.js";import{R as _}from"./Alert-d503f44b.js";import{a as D}from"./axios-4a70c6fc.js";import{B as P}from"./BackButton-2b60c346.js";import"./ApplicationLogo-ae419612.js";import"./transition-fbe58e1e.js";import"./index.esm-2010c99b.js";function J({auth:p}){const u=i().props.alert,h=i().props.servers,g=i().props.title,{data:t,setData:r,post:v,processing:f,reset:A,errors:l}=I({title:g,server_id:"",address:"",port:"3306",username:"root",password:""}),x=i().props.auth.user,N=a=>{a.preventDefault(),v(route("db.connection.store")),navigate(route("db.connection.index"))},b=a=>{const w={headers:{Authorization:`Bearer ${x.api_token}`}};a.target.value!==""&&D.get(route("api.server.ip",a.target.value),w).then(c=>{r(d=>({...d,address:c.data.ip})),r(d=>({...d,server_id:a.target.value}))}).catch(c=>{console.log("Error fetching IP")}),r("server_id",a.target.value)};return s(C,{auth:p,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Create DB connection"}),children:[e(k,{title:"Create DB connection"}),s("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(P,{href:route("db.connection.index"),children:"Back to DB connections"})}),e(_,{details:u}),e("div",{className:"bg-white dark:bg-gray-700 overflow-hidden shadow-sm sm:rounded-lg p-2 sm:p-6",children:s("form",{onSubmit:N,children:[s("div",{className:"grid gap-2 sm:grid-cols-1 md:grid-cols-6 sm:gap-4",children:[s("div",{className:"sm:col-span-2 col-span-4",children:[e("div",{className:"mb-2 block",children:e(o,{forInput:"server_id",value:"Server"})}),s(y,{onChange:b,name:"server_id",value:t.server_id,handleChange:a=>r("server_id",a.target.value),children:[e("option",{value:"",children:"Choose to fill address"}),h.map(a=>s("option",{value:a.id,children:[a.title," (",a.hostname,")"]},a.id))]})]}),s("div",{className:"sm:col-span-2 col-span-4",children:[e(o,{forInput:"address",value:"Address/hostname"}),e(n,{name:"address",className:"mt-1 block w-full",autoComplete:"address",value:t.address,handleChange:a=>r("address",a.target.value),maxLength:125,required:!0}),e(m,{message:l.address,className:"mt-2"})]}),s("div",{className:"sm:col-span-2 col-span-4",children:[e(o,{forInput:"title",value:"Title"}),e(n,{name:"title",className:"mt-1 block w-full",autoComplete:"title",value:t.title,handleChange:a=>r("title",a.target.value),maxLength:64,required:!0}),e(m,{message:l.title,className:"mt-2"})]}),s("div",{className:"sm:col-span-1 col-span-1",children:[e(o,{forInput:"port",value:"Port"}),e(n,{type:"number",name:"port",className:"mt-1 block w-full",autoComplete:"port",value:t.port,handleChange:a=>r("port",a.target.value)}),e(m,{message:l.port,className:"mt-2"})]}),s("div",{className:"sm:col-span-1 col-span-3",children:[e(o,{forInput:"username",value:"Username"}),e(n,{name:"username",className:"mt-1 block w-full",autoComplete:"username",value:t.username,handleChange:a=>r("username",a.target.value),maxLength:64,required:!0}),e(m,{message:l.username,className:"mt-2"})]}),s("div",{className:"sm:col-span-2 col-span-4",children:[e(o,{forInput:"password",value:"Password"}),e(n,{name:"password",className:"mt-1 block w-full",autoComplete:"password",value:t.password,handleChange:a=>r("password",a.target.value),maxLength:255}),e(m,{message:l.password,className:"mt-2"})]})]}),e(B,{className:"inline-flex items-center px-5 py-2.5 mt-4 sm:mt-6 text-sm font-medium text-center text-white bg-primary-700 rounded-lg focus:ring-4 focus:ring-primary-200 dark:focus:ring-primary-900 hover:bg-primary-800",processing:f,children:"Create DB connection"})]})})]})]})}export{J as default}; diff --git a/public/build/assets/Create-fdaa7a35.js b/public/build/assets/Create-7793a29e.js similarity index 77% rename from public/build/assets/Create-fdaa7a35.js rename to public/build/assets/Create-7793a29e.js index 8fc275a..9f6865f 100644 --- a/public/build/assets/Create-fdaa7a35.js +++ b/public/build/assets/Create-7793a29e.js @@ -1 +1 @@ -import{A as h}from"./AuthenticatedLayout-b0ac98cc.js";import{u as i,b as g,j as a,a as e,H as f}from"./app-7082a047.js";import{I as o}from"./InputLabel-04829bce.js";import{T as v,I as x}from"./TextInput-38986df9.js";import{S as b}from"./Toast-a9c7a83a.js";import"./Table-13305096.js";import{P as y}from"./PrimaryButton-aae876dd.js";import{R as I}from"./Alert-af0dbb46.js";import{B as N}from"./BackButton-c0685269.js";import"./ApplicationLogo-db4f8950.js";import"./transition-eb04b526.js";import"./index.esm-eebfcfab.js";function L({auth:l}){const d=i().props.alert,n=i().props.servers,{data:s,setData:t,post:m,processing:p,reset:w,errors:c}=g({server_id:"",ip:" "}),u=r=>{r.preventDefault(),m(route("ip.store")),navigate(route("ip.index"))};return a(h,{auth:l,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Create an IP address"}),children:[e(f,{title:"Create IP address"}),a("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(N,{href:route("ip.index"),children:"Back to IPs"})}),e(I,{details:d}),e("section",{className:"bg-white dark:bg-gray-700 overflow-hidden shadow-sm sm:rounded-lg p-2 sm:p-6",children:a("form",{onSubmit:u,children:[a("div",{className:"grid gap-2 sm:grid-cols-1 md:grid-cols-4 sm:gap-4",children:[a("div",{className:"sm:col-span-2 col-span-4",children:[e("div",{className:"mb-2 block",children:e(o,{forInput:"server_id",value:"Server"})}),a(b,{onChange:r=>t("server_id",r.target.value),name:"server_id",required:!0,value:s.server_id,handleChange:r=>t("server_id",r.target.value),children:[e("option",{value:"",children:"Choose one"}),n.map(r=>a("option",{value:r.id,children:[r.title," (",r.hostname,")"]},r.id))]})]}),a("div",{className:"sm:col-span-2 col-span-4",children:[e(o,{forInput:"ip",value:"IP address"}),e(v,{id:"ip",name:"ip",value:s.ip,className:"mt-1 block w-full",autoComplete:"ip",handleChange:r=>t("ip",r.target.value),maxLength:155,required:!0}),e(x,{message:c.ip,className:"mt-2"})]}),e("div",{className:"sm:col-span-2 col-span-4",children:e("p",{className:"text-gray-500 dark:text-gray-400",children:"GEO IP address data will be fetched which you can then edit."})})]}),e(y,{className:"inline-flex items-center px-5 py-2.5 mt-4 sm:mt-6 text-sm font-medium text-center text-white bg-primary-700 rounded-lg focus:ring-4 focus:ring-primary-200 dark:focus:ring-primary-900 hover:bg-primary-800",processing:p,children:"Create IP address"})]})})]})]})}export{L as default}; +import{A as h}from"./AuthenticatedLayout-c4be06bd.js";import{u as i,b as g,j as a,a as e,H as f}from"./app-a8d4275f.js";import{I as o}from"./InputLabel-a7ee92ff.js";import{T as v,I as x}from"./TextInput-1e9aadbd.js";import{S as b}from"./Toast-ee00046f.js";import"./Table-f19b692a.js";import{P as y}from"./PrimaryButton-19cc4f5a.js";import{R as I}from"./Alert-d503f44b.js";import{B as N}from"./BackButton-2b60c346.js";import"./ApplicationLogo-ae419612.js";import"./transition-fbe58e1e.js";import"./index.esm-2010c99b.js";function L({auth:l}){const d=i().props.alert,n=i().props.servers,{data:s,setData:t,post:m,processing:p,reset:w,errors:c}=g({server_id:"",ip:" "}),u=r=>{r.preventDefault(),m(route("ip.store")),navigate(route("ip.index"))};return a(h,{auth:l,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Create an IP address"}),children:[e(f,{title:"Create IP address"}),a("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(N,{href:route("ip.index"),children:"Back to IPs"})}),e(I,{details:d}),e("section",{className:"bg-white dark:bg-gray-700 overflow-hidden shadow-sm sm:rounded-lg p-2 sm:p-6",children:a("form",{onSubmit:u,children:[a("div",{className:"grid gap-2 sm:grid-cols-1 md:grid-cols-4 sm:gap-4",children:[a("div",{className:"sm:col-span-2 col-span-4",children:[e("div",{className:"mb-2 block",children:e(o,{forInput:"server_id",value:"Server"})}),a(b,{onChange:r=>t("server_id",r.target.value),name:"server_id",required:!0,value:s.server_id,handleChange:r=>t("server_id",r.target.value),children:[e("option",{value:"",children:"Choose one"}),n.map(r=>a("option",{value:r.id,children:[r.title," (",r.hostname,")"]},r.id))]})]}),a("div",{className:"sm:col-span-2 col-span-4",children:[e(o,{forInput:"ip",value:"IP address"}),e(v,{id:"ip",name:"ip",value:s.ip,className:"mt-1 block w-full",autoComplete:"ip",handleChange:r=>t("ip",r.target.value),maxLength:155,required:!0}),e(x,{message:c.ip,className:"mt-2"})]}),e("div",{className:"sm:col-span-2 col-span-4",children:e("p",{className:"text-gray-500 dark:text-gray-400",children:"GEO IP address data will be fetched which you can then edit."})})]}),e(y,{className:"inline-flex items-center px-5 py-2.5 mt-4 sm:mt-6 text-sm font-medium text-center text-white bg-primary-700 rounded-lg focus:ring-4 focus:ring-primary-200 dark:focus:ring-primary-900 hover:bg-primary-800",processing:p,children:"Create IP address"})]})})]})]})}export{L as default}; diff --git a/public/build/assets/Create-b6e26c0a.js b/public/build/assets/Create-8aff2dca.js similarity index 75% rename from public/build/assets/Create-b6e26c0a.js rename to public/build/assets/Create-8aff2dca.js index bb1707f..a40204f 100644 --- a/public/build/assets/Create-b6e26c0a.js +++ b/public/build/assets/Create-8aff2dca.js @@ -1 +1 @@ -import{A as g}from"./AuthenticatedLayout-b0ac98cc.js";import{u as m,b as h,j as t,a as e,H as f}from"./app-7082a047.js";import{I as i}from"./InputLabel-04829bce.js";import{T as x,I as v}from"./TextInput-38986df9.js";import{P as b}from"./PrimaryButton-aae876dd.js";import{B as C}from"./BackButton-c0685269.js";import{R as N}from"./Alert-af0dbb46.js";import{S as y}from"./Toast-a9c7a83a.js";import"./Table-13305096.js";import"./ApplicationLogo-db4f8950.js";import"./transition-eb04b526.js";import"./index.esm-eebfcfab.js";function q({auth:s}){const n=m().props.alert,l=m().props.commands,{data:o,setData:r,post:d,processing:c,reset:w,errors:p}=h({command_id:"",title:""}),u=a=>{a.preventDefault(),d(route("command-group.store")),navigate(route("command-group.index"))};return t(g,{auth:s,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Create a command group"}),children:[e(f,{title:"Create command group"}),t("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(C,{href:route("command-group.index"),children:"Back to command groups"})}),e(N,{details:n}),e("section",{className:"bg-white dark:bg-gray-700 overflow-hidden shadow-sm sm:rounded-lg p-2 sm:p-6",children:t("form",{onSubmit:u,children:[t("div",{className:"grid gap-2 sm:grid-cols-1 md:grid-cols-4 sm:gap-4",children:[t("div",{className:"sm:col-span-2 col-span-4",children:[e("div",{className:"mb-2 block",children:e(i,{forInput:"command_id",value:"Command"})}),t(y,{onChange:a=>r("command_id",a.target.value),name:"command_id",required:!0,value:o.command_id,handleChange:a=>r("command_id",a.target.value),children:[e("option",{value:"",children:"Choose one"}),l.map(a=>e("option",{value:a.id,children:a.title},a.id))]})]}),t("div",{className:"sm:col-span-2 col-span-4",children:[e(i,{forInput:"title",value:"Command group title"}),e(x,{name:"title",className:"mt-1 block w-full",autoComplete:"title",value:o.title,handleChange:a=>r("title",a.target.value)}),e(v,{message:p.title,className:"mt-2"})]})]}),e(b,{className:"inline-flex items-center px-5 py-2.5 mt-4 sm:mt-6 text-sm font-medium text-center text-white bg-primary-700 rounded-lg focus:ring-4 focus:ring-primary-200 dark:focus:ring-primary-900 hover:bg-primary-800",processing:c,children:"Create command group"})]})})]})]})}export{q as default}; +import{A as g}from"./AuthenticatedLayout-c4be06bd.js";import{u as m,b as h,j as t,a as e,H as f}from"./app-a8d4275f.js";import{I as i}from"./InputLabel-a7ee92ff.js";import{T as x,I as v}from"./TextInput-1e9aadbd.js";import{P as b}from"./PrimaryButton-19cc4f5a.js";import{B as C}from"./BackButton-2b60c346.js";import{R as N}from"./Alert-d503f44b.js";import{S as y}from"./Toast-ee00046f.js";import"./Table-f19b692a.js";import"./ApplicationLogo-ae419612.js";import"./transition-fbe58e1e.js";import"./index.esm-2010c99b.js";function q({auth:s}){const n=m().props.alert,l=m().props.commands,{data:o,setData:r,post:d,processing:c,reset:w,errors:p}=h({command_id:"",title:""}),u=a=>{a.preventDefault(),d(route("command-group.store")),navigate(route("command-group.index"))};return t(g,{auth:s,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Create a command group"}),children:[e(f,{title:"Create command group"}),t("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(C,{href:route("command-group.index"),children:"Back to command groups"})}),e(N,{details:n}),e("section",{className:"bg-white dark:bg-gray-700 overflow-hidden shadow-sm sm:rounded-lg p-2 sm:p-6",children:t("form",{onSubmit:u,children:[t("div",{className:"grid gap-2 sm:grid-cols-1 md:grid-cols-4 sm:gap-4",children:[t("div",{className:"sm:col-span-2 col-span-4",children:[e("div",{className:"mb-2 block",children:e(i,{forInput:"command_id",value:"Command"})}),t(y,{onChange:a=>r("command_id",a.target.value),name:"command_id",required:!0,value:o.command_id,handleChange:a=>r("command_id",a.target.value),children:[e("option",{value:"",children:"Choose one"}),l.map(a=>e("option",{value:a.id,children:a.title},a.id))]})]}),t("div",{className:"sm:col-span-2 col-span-4",children:[e(i,{forInput:"title",value:"Command group title"}),e(x,{name:"title",className:"mt-1 block w-full",autoComplete:"title",value:o.title,handleChange:a=>r("title",a.target.value)}),e(v,{message:p.title,className:"mt-2"})]})]}),e(b,{className:"inline-flex items-center px-5 py-2.5 mt-4 sm:mt-6 text-sm font-medium text-center text-white bg-primary-700 rounded-lg focus:ring-4 focus:ring-primary-200 dark:focus:ring-primary-900 hover:bg-primary-800",processing:c,children:"Create command group"})]})})]})]})}export{q as default}; diff --git a/public/build/assets/Create-0ac539c9.js b/public/build/assets/Create-968f70e3.js similarity index 90% rename from public/build/assets/Create-0ac539c9.js rename to public/build/assets/Create-968f70e3.js index 246ff82..aaeed29 100644 --- a/public/build/assets/Create-0ac539c9.js +++ b/public/build/assets/Create-968f70e3.js @@ -1 +1 @@ -import{A as L}from"./AuthenticatedLayout-b0ac98cc.js";import{u as p,b as D,R as d,j as t,a,H as B}from"./app-7082a047.js";import{I as l}from"./InputLabel-04829bce.js";import{T as c,I as m}from"./TextInput-38986df9.js";import{S as r}from"./Toast-a9c7a83a.js";import"./Table-13305096.js";import{P as M}from"./PrimaryButton-aae876dd.js";import{R as Q}from"./Alert-af0dbb46.js";import{a as u}from"./axios-4a70c6fc.js";import{B as R}from"./BackButton-c0685269.js";import"./ApplicationLogo-db4f8950.js";import"./transition-eb04b526.js";import"./index.esm-eebfcfab.js";function V({auth:h}){const v=p().props.alert,g=p().props.servers,{data:n,setData:s,post:_,processing:b,reset:T,errors:i}=D({connection_id:"",server_id:"",database_name:"",db_connection_id:"",certain_tables:"",save_to:"",save_as:"dump.sql",option:"",compress:"0",custom_flags:"",these_tables:""}),[f,N]=d.useState([]),[C,x]=d.useState([]),[y,k]=d.useState([]),I=e=>{e.preventDefault(),_(route("mysqldump.store")),navigate(route("mysqldump.index"))},S=e=>{s("server_id",e.target.value),e.target.value!==""&&(u.get(route("server.connections",e.target.value)).then(o=>{N(o.data)}).catch(o=>{}),u.get(route("server.db.connections",e.target.value)).then(o=>{x(o.data)}).catch(o=>{}))},w=e=>{s("db_connection_id",e.target.value),e.target.value!==""&&u.get(route("db.connection.databases",e.target.value)).then(o=>{k(o.data.databases)}).catch(o=>{})},q=e=>{s(o=>({...o,database_name:e.target.value}))};return t(L,{auth:h,header:a("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Create MySQL dump"}),children:[a(B,{title:"Create MySQL dump"}),t("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[a("div",{className:"flex flex-wrap gap-2 mb-4",children:a(R,{href:route("mysqldump.index"),children:"Back to MySQL dumps"})}),a(Q,{details:v}),a("div",{className:"bg-white dark:bg-gray-700 overflow-hidden shadow-sm sm:rounded-lg p-2 sm:p-6",children:t("form",{onSubmit:I,children:[t("div",{className:"grid gap-2 sm:grid-cols-1 md:grid-cols-6 sm:gap-4",children:[t("div",{className:"sm:col-span-3 col-span-4",children:[a("div",{className:"mb-2 block",children:a(l,{forInput:"server_id",value:"Server"})}),t(r,{onChange:S,name:"server_id",required:!0,value:n.server_id,handleChange:e=>s("server_id",e.target.value),children:[a("option",{value:"",children:"Choose"}),g.map(e=>t("option",{value:e.id,children:[e.hostname," (",e.title,")"]},e.id))]})]}),t("div",{className:"sm:col-span-3 col-span-4",children:[a("div",{className:"mb-2 block",children:a(l,{forInput:"connection_id",value:"Server connection"})}),t(r,{onChange:e=>s("connection_id",e.target.value),name:"connection_id",required:!0,value:n.connection_id,handleChange:e=>s("connection_id",e.target.value),children:[a("option",{value:"",children:"Choose a server with a connection"}),f.map(e=>t("option",{value:e.id,children:["User: ",e.username," (",e.id,")"]},e.id))]})]}),t("div",{className:"sm:col-span-3 col-span-4",children:[a("div",{className:"mb-2 block",children:a(l,{forInput:"db_connection_id",value:"Database connection"})}),t(r,{onChange:w,name:"db_connection_id",value:n.db_connection_id,handleChange:e=>s("db_connection_id",e.target.value),children:[a("option",{value:"",children:"Choose"}),C.map(e=>t("option",{value:e.id,children:[e.host," (",e.title,")"]},e.id))]})]}),t("div",{className:"sm:col-span-3 col-span-4",children:[a("div",{className:"mb-2 block",children:a(l,{forInput:"database_name",value:"Database"})}),t(r,{onChange:q,name:"database_name",required:!0,value:n.database_name,handleChange:e=>s("database_name",e.target.value),children:[a("option",{value:"",children:"Choose"}),y.map(e=>a("option",{value:e,children:e},e))]})]}),t("div",{className:"sm:col-span-3 col-span-4",children:[a(l,{forInput:"save_to",value:"Save to"}),a(c,{name:"save_to",className:"mt-1 block w-full",autoComplete:"save_to",value:n.save_to,handleChange:e=>s("save_to",e.target.value),maxLength:64}),a(m,{message:i.save_to,className:"mt-2"})]}),t("div",{className:"sm:col-span-3 col-span-4",children:[a(l,{forInput:"save_as",value:"Save as"}),a(c,{name:"save_as",className:"mt-1 block w-full",autoComplete:"save_as",value:n.save_as,handleChange:e=>s("save_as",e.target.value),maxLength:64}),a(m,{message:i.save_as,className:"mt-2"})]}),t("div",{className:"sm:col-span-2 col-span-4",children:[a("div",{className:"mb-2 block",children:a(l,{forInput:"option",value:"Options"})}),t(r,{onChange:e=>s("option",e.target.value),name:"option",required:!0,value:n.option,handleChange:e=>s("option",e.target.value),children:[a("option",{value:"0",children:"None"}),a("option",{value:"1",children:"--quick"}),a("option",{value:"2",children:"--opt"}),a("option",{value:"3",children:"--add-locks"}),a("option",{value:"4",children:"--single-transaction"})]})]}),t("div",{className:"sm:col-span-2 col-span-4",children:[a(l,{forInput:"custom_flags",value:"Custom flags"}),a(c,{name:"custom_flags",className:"mt-1 block w-full",autoComplete:"custom_flags",value:n.custom_flags,handleChange:e=>s("custom_flags",e.target.value),maxLength:64}),a(m,{message:i.custom_flags,className:"mt-2"})]}),t("div",{className:"sm:col-span-1 col-span-4",children:[a("div",{className:"mb-2 block",children:a(l,{forInput:"compress",value:"Compress"})}),t(r,{onChange:e=>s("compress",e.target.value),name:"compress",required:!0,value:n.compress,handleChange:e=>s("compress",e.target.value),children:[a("option",{value:"0",children:"No"}),a("option",{value:"1",children:"Yes"})]})]}),t("div",{className:"col-span-6",children:[a(l,{forInput:"these_tables",value:"These tables only (separate by space)"}),a(c,{name:"these_tables",className:"mt-1 block w-full",autoComplete:"these_tables",value:n.these_tables,handleChange:e=>s("these_tables",e.target.value),maxLength:255}),a(m,{message:i.these_tables,className:"mt-2"})]})]}),a(M,{className:"inline-flex items-center px-5 py-2.5 mt-4 sm:mt-6 text-sm font-medium text-center text-white bg-primary-700 rounded-lg focus:ring-4 focus:ring-primary-200 dark:focus:ring-primary-900 hover:bg-primary-800",processing:b,children:"Create MySQL dump"})]})})]})]})}export{V as default}; +import{A as L}from"./AuthenticatedLayout-c4be06bd.js";import{u as p,b as D,R as d,j as t,a,H as B}from"./app-a8d4275f.js";import{I as l}from"./InputLabel-a7ee92ff.js";import{T as c,I as m}from"./TextInput-1e9aadbd.js";import{S as r}from"./Toast-ee00046f.js";import"./Table-f19b692a.js";import{P as M}from"./PrimaryButton-19cc4f5a.js";import{R as Q}from"./Alert-d503f44b.js";import{a as u}from"./axios-4a70c6fc.js";import{B as R}from"./BackButton-2b60c346.js";import"./ApplicationLogo-ae419612.js";import"./transition-fbe58e1e.js";import"./index.esm-2010c99b.js";function V({auth:h}){const v=p().props.alert,g=p().props.servers,{data:n,setData:s,post:_,processing:b,reset:T,errors:i}=D({connection_id:"",server_id:"",database_name:"",db_connection_id:"",certain_tables:"",save_to:"",save_as:"dump.sql",option:"",compress:"0",custom_flags:"",these_tables:""}),[f,N]=d.useState([]),[C,x]=d.useState([]),[y,k]=d.useState([]),I=e=>{e.preventDefault(),_(route("mysqldump.store")),navigate(route("mysqldump.index"))},S=e=>{s("server_id",e.target.value),e.target.value!==""&&(u.get(route("server.connections",e.target.value)).then(o=>{N(o.data)}).catch(o=>{}),u.get(route("server.db.connections",e.target.value)).then(o=>{x(o.data)}).catch(o=>{}))},w=e=>{s("db_connection_id",e.target.value),e.target.value!==""&&u.get(route("db.connection.databases",e.target.value)).then(o=>{k(o.data.databases)}).catch(o=>{})},q=e=>{s(o=>({...o,database_name:e.target.value}))};return t(L,{auth:h,header:a("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Create MySQL dump"}),children:[a(B,{title:"Create MySQL dump"}),t("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[a("div",{className:"flex flex-wrap gap-2 mb-4",children:a(R,{href:route("mysqldump.index"),children:"Back to MySQL dumps"})}),a(Q,{details:v}),a("div",{className:"bg-white dark:bg-gray-700 overflow-hidden shadow-sm sm:rounded-lg p-2 sm:p-6",children:t("form",{onSubmit:I,children:[t("div",{className:"grid gap-2 sm:grid-cols-1 md:grid-cols-6 sm:gap-4",children:[t("div",{className:"sm:col-span-3 col-span-4",children:[a("div",{className:"mb-2 block",children:a(l,{forInput:"server_id",value:"Server"})}),t(r,{onChange:S,name:"server_id",required:!0,value:n.server_id,handleChange:e=>s("server_id",e.target.value),children:[a("option",{value:"",children:"Choose"}),g.map(e=>t("option",{value:e.id,children:[e.hostname," (",e.title,")"]},e.id))]})]}),t("div",{className:"sm:col-span-3 col-span-4",children:[a("div",{className:"mb-2 block",children:a(l,{forInput:"connection_id",value:"Server connection"})}),t(r,{onChange:e=>s("connection_id",e.target.value),name:"connection_id",required:!0,value:n.connection_id,handleChange:e=>s("connection_id",e.target.value),children:[a("option",{value:"",children:"Choose a server with a connection"}),f.map(e=>t("option",{value:e.id,children:["User: ",e.username," (",e.id,")"]},e.id))]})]}),t("div",{className:"sm:col-span-3 col-span-4",children:[a("div",{className:"mb-2 block",children:a(l,{forInput:"db_connection_id",value:"Database connection"})}),t(r,{onChange:w,name:"db_connection_id",value:n.db_connection_id,handleChange:e=>s("db_connection_id",e.target.value),children:[a("option",{value:"",children:"Choose"}),C.map(e=>t("option",{value:e.id,children:[e.host," (",e.title,")"]},e.id))]})]}),t("div",{className:"sm:col-span-3 col-span-4",children:[a("div",{className:"mb-2 block",children:a(l,{forInput:"database_name",value:"Database"})}),t(r,{onChange:q,name:"database_name",required:!0,value:n.database_name,handleChange:e=>s("database_name",e.target.value),children:[a("option",{value:"",children:"Choose"}),y.map(e=>a("option",{value:e,children:e},e))]})]}),t("div",{className:"sm:col-span-3 col-span-4",children:[a(l,{forInput:"save_to",value:"Save to"}),a(c,{name:"save_to",className:"mt-1 block w-full",autoComplete:"save_to",value:n.save_to,handleChange:e=>s("save_to",e.target.value),maxLength:64}),a(m,{message:i.save_to,className:"mt-2"})]}),t("div",{className:"sm:col-span-3 col-span-4",children:[a(l,{forInput:"save_as",value:"Save as"}),a(c,{name:"save_as",className:"mt-1 block w-full",autoComplete:"save_as",value:n.save_as,handleChange:e=>s("save_as",e.target.value),maxLength:64}),a(m,{message:i.save_as,className:"mt-2"})]}),t("div",{className:"sm:col-span-2 col-span-4",children:[a("div",{className:"mb-2 block",children:a(l,{forInput:"option",value:"Options"})}),t(r,{onChange:e=>s("option",e.target.value),name:"option",required:!0,value:n.option,handleChange:e=>s("option",e.target.value),children:[a("option",{value:"0",children:"None"}),a("option",{value:"1",children:"--quick"}),a("option",{value:"2",children:"--opt"}),a("option",{value:"3",children:"--add-locks"}),a("option",{value:"4",children:"--single-transaction"})]})]}),t("div",{className:"sm:col-span-2 col-span-4",children:[a(l,{forInput:"custom_flags",value:"Custom flags"}),a(c,{name:"custom_flags",className:"mt-1 block w-full",autoComplete:"custom_flags",value:n.custom_flags,handleChange:e=>s("custom_flags",e.target.value),maxLength:64}),a(m,{message:i.custom_flags,className:"mt-2"})]}),t("div",{className:"sm:col-span-1 col-span-4",children:[a("div",{className:"mb-2 block",children:a(l,{forInput:"compress",value:"Compress"})}),t(r,{onChange:e=>s("compress",e.target.value),name:"compress",required:!0,value:n.compress,handleChange:e=>s("compress",e.target.value),children:[a("option",{value:"0",children:"No"}),a("option",{value:"1",children:"Yes"})]})]}),t("div",{className:"col-span-6",children:[a(l,{forInput:"these_tables",value:"These tables only (separate by space)"}),a(c,{name:"these_tables",className:"mt-1 block w-full",autoComplete:"these_tables",value:n.these_tables,handleChange:e=>s("these_tables",e.target.value),maxLength:255}),a(m,{message:i.these_tables,className:"mt-2"})]})]}),a(M,{className:"inline-flex items-center px-5 py-2.5 mt-4 sm:mt-6 text-sm font-medium text-center text-white bg-primary-700 rounded-lg focus:ring-4 focus:ring-primary-200 dark:focus:ring-primary-900 hover:bg-primary-800",processing:b,children:"Create MySQL dump"})]})})]})]})}export{V as default}; diff --git a/public/build/assets/Create-68302484.js b/public/build/assets/Create-cc4ea34c.js similarity index 87% rename from public/build/assets/Create-68302484.js rename to public/build/assets/Create-cc4ea34c.js index 9000c7b..960e275 100644 --- a/public/build/assets/Create-68302484.js +++ b/public/build/assets/Create-cc4ea34c.js @@ -1 +1 @@ -import{A as I}from"./AuthenticatedLayout-b0ac98cc.js";import{u as l,b as P,R as S,j as s,a,H as B}from"./app-7082a047.js";import{I as n}from"./InputLabel-04829bce.js";import{T as c,I as m}from"./TextInput-38986df9.js";import{S as p}from"./Toast-a9c7a83a.js";import"./Table-13305096.js";import{P as T}from"./PrimaryButton-aae876dd.js";import{R as D}from"./Alert-af0dbb46.js";import{a as F}from"./axios-4a70c6fc.js";import{B as A}from"./BackButton-c0685269.js";import"./ApplicationLogo-db4f8950.js";import"./transition-eb04b526.js";import"./index.esm-eebfcfab.js";function Q({auth:h}){const g=l().props.servers,v=l().props.connections,f=l().props.keys,{data:t,setData:r,post:b,processing:x,reset:R,errors:d}=P({server_id:"",connection_id:"",username:"root",port:"22",key_id:"",password:""}),N=l().props.auth.user,y=l().props.alert,[o,u]=S.useState(!1),_=e=>{e.preventDefault(),b(route("sftp.store")),navigate(route("sftp.index"))},k=e=>{r(i=>({...i,connection_id:e.target.value})),e.target.value!==""?u(!0):u(!1);const w={headers:{Authorization:`Bearer ${N.api_token}`}};e.target.value!==""&&F.get(route("api.connection.show",e.target.value),w).then(i=>{r(C=>({...C,server_id:i.data.server_id}))}).catch(i=>{console.log("Error fetching connection details")})};return s(I,{auth:h,header:a("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Create SFTP connection"}),children:[a(B,{title:"Create SFTP connection"}),s("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[a("div",{className:"flex flex-wrap gap-2 mb-4",children:a(A,{href:route("sftp.index"),children:"Back to SFTP connections"})}),a(D,{details:y}),a("section",{className:"bg-white dark:bg-gray-700 overflow-hidden shadow-sm sm:rounded-lg p-2 sm:p-6",children:s("form",{onSubmit:_,children:[s("div",{className:"grid gap-2 sm:grid-cols-1 md:grid-cols-4 sm:gap-4",children:[s("div",{className:"sm:col-span-2 col-span-4",children:[a("div",{className:"mb-2 block",children:a(n,{forInput:"server_id",value:"Server"})}),s(p,{onChange:e=>r("server_id",e.target.value),name:"server_id",required:!0,value:t.server_id,handleChange:e=>r("server_id",e.target.value),disabled:o,children:[a("option",{value:"",children:"Choose one"}),g.map(e=>s("option",{value:e.id,children:[e.title," (",e.hostname,")"]}))]})]}),s("div",{className:"sm:col-span-2 col-span-4",children:[a("div",{className:"mb-2 block",children:a(n,{forInput:"connection_id",value:"Use this connection"})}),s(p,{onChange:k,name:"connection_id",value:t.connection_id,handleChange:e=>r("connection_id",e.target.value),children:[a("option",{value:"",children:"None (fill in the details below)"}),v.map(e=>s("option",{value:e.id,children:[e.username,"@",e.server.hostname,":",e.ssh_port," ",e.key_id===null?"Password":"Key"]}))]})]}),s("div",{className:"sm:col-span-2 col-span-4",children:[a(n,{forInput:"username",value:"Username"}),a(c,{id:"username",name:"username",value:t.username,className:"mt-1 block w-full",autoComplete:"username",handleChange:e=>r("username",e.target.value),maxLength:64,disabled:o}),a(m,{message:d.username,className:"mt-2"})]}),s("div",{className:"sm:col-span-2 col-span-4",children:[a(n,{forInput:"port",value:"Port"}),a(c,{type:"number",name:"port",className:"mt-1 block w-full",autoComplete:"port",value:t.port,handleChange:e=>r("port",e.target.value),disabled:o}),a(m,{message:d.port,className:"mt-2"})]}),a("p",{children:a("a",{className:"font-medium text-blue-600 dark:text-blue-500 hover:underline",href:route("key.index"),children:"Manage keys"})}),s("div",{className:"sm:col-span-4 col-span-4",children:[a("div",{className:"mb-2 block",children:a(n,{forInput:"key_id",value:"Key"})}),s(p,{onChange:e=>r("key_id",e.target.value),name:"key_id",value:t.key_id,handleChange:e=>r("key_id",e.target.value),disabled:o,children:[a("option",{value:"",children:"None. Use password"}),f.map(e=>a("option",{value:e.id,children:e.original_name},e.id))]})]}),a("div",{className:"mt-2 sm:col-span-4 col-span-4",children:a("p",{className:"text-gray-500 dark:text-gray-400",children:"Passwords are stored encrypted"})}),s("div",{className:"col-span-4",children:[a(n,{forInput:"password",value:"Password"}),a(c,{name:"password",className:"mt-1 block w-full",autoComplete:"password",value:t.password,handleChange:e=>r("password",e.target.value),disabled:o}),a(m,{message:d.password,className:"mt-2"})]})]}),a(T,{className:"inline-flex items-center px-5 py-2.5 mt-4 sm:mt-6 text-sm font-medium text-center text-white bg-primary-700 rounded-lg focus:ring-4 focus:ring-primary-200 dark:focus:ring-primary-900 hover:bg-primary-800",processing:x,children:"Create SFTP Connection"})]})})]})]})}export{Q as default}; +import{A as I}from"./AuthenticatedLayout-c4be06bd.js";import{u as l,b as P,R as S,j as s,a,H as B}from"./app-a8d4275f.js";import{I as n}from"./InputLabel-a7ee92ff.js";import{T as c,I as m}from"./TextInput-1e9aadbd.js";import{S as p}from"./Toast-ee00046f.js";import"./Table-f19b692a.js";import{P as T}from"./PrimaryButton-19cc4f5a.js";import{R as D}from"./Alert-d503f44b.js";import{a as F}from"./axios-4a70c6fc.js";import{B as A}from"./BackButton-2b60c346.js";import"./ApplicationLogo-ae419612.js";import"./transition-fbe58e1e.js";import"./index.esm-2010c99b.js";function Q({auth:h}){const g=l().props.servers,v=l().props.connections,f=l().props.keys,{data:t,setData:r,post:b,processing:x,reset:R,errors:d}=P({server_id:"",connection_id:"",username:"root",port:"22",key_id:"",password:""}),N=l().props.auth.user,y=l().props.alert,[o,u]=S.useState(!1),_=e=>{e.preventDefault(),b(route("sftp.store")),navigate(route("sftp.index"))},k=e=>{r(i=>({...i,connection_id:e.target.value})),e.target.value!==""?u(!0):u(!1);const w={headers:{Authorization:`Bearer ${N.api_token}`}};e.target.value!==""&&F.get(route("api.connection.show",e.target.value),w).then(i=>{r(C=>({...C,server_id:i.data.server_id}))}).catch(i=>{console.log("Error fetching connection details")})};return s(I,{auth:h,header:a("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Create SFTP connection"}),children:[a(B,{title:"Create SFTP connection"}),s("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[a("div",{className:"flex flex-wrap gap-2 mb-4",children:a(A,{href:route("sftp.index"),children:"Back to SFTP connections"})}),a(D,{details:y}),a("section",{className:"bg-white dark:bg-gray-700 overflow-hidden shadow-sm sm:rounded-lg p-2 sm:p-6",children:s("form",{onSubmit:_,children:[s("div",{className:"grid gap-2 sm:grid-cols-1 md:grid-cols-4 sm:gap-4",children:[s("div",{className:"sm:col-span-2 col-span-4",children:[a("div",{className:"mb-2 block",children:a(n,{forInput:"server_id",value:"Server"})}),s(p,{onChange:e=>r("server_id",e.target.value),name:"server_id",required:!0,value:t.server_id,handleChange:e=>r("server_id",e.target.value),disabled:o,children:[a("option",{value:"",children:"Choose one"}),g.map(e=>s("option",{value:e.id,children:[e.title," (",e.hostname,")"]}))]})]}),s("div",{className:"sm:col-span-2 col-span-4",children:[a("div",{className:"mb-2 block",children:a(n,{forInput:"connection_id",value:"Use this connection"})}),s(p,{onChange:k,name:"connection_id",value:t.connection_id,handleChange:e=>r("connection_id",e.target.value),children:[a("option",{value:"",children:"None (fill in the details below)"}),v.map(e=>s("option",{value:e.id,children:[e.username,"@",e.server.hostname,":",e.ssh_port," ",e.key_id===null?"Password":"Key"]}))]})]}),s("div",{className:"sm:col-span-2 col-span-4",children:[a(n,{forInput:"username",value:"Username"}),a(c,{id:"username",name:"username",value:t.username,className:"mt-1 block w-full",autoComplete:"username",handleChange:e=>r("username",e.target.value),maxLength:64,disabled:o}),a(m,{message:d.username,className:"mt-2"})]}),s("div",{className:"sm:col-span-2 col-span-4",children:[a(n,{forInput:"port",value:"Port"}),a(c,{type:"number",name:"port",className:"mt-1 block w-full",autoComplete:"port",value:t.port,handleChange:e=>r("port",e.target.value),disabled:o}),a(m,{message:d.port,className:"mt-2"})]}),a("p",{children:a("a",{className:"font-medium text-blue-600 dark:text-blue-500 hover:underline",href:route("key.index"),children:"Manage keys"})}),s("div",{className:"sm:col-span-4 col-span-4",children:[a("div",{className:"mb-2 block",children:a(n,{forInput:"key_id",value:"Key"})}),s(p,{onChange:e=>r("key_id",e.target.value),name:"key_id",value:t.key_id,handleChange:e=>r("key_id",e.target.value),disabled:o,children:[a("option",{value:"",children:"None. Use password"}),f.map(e=>a("option",{value:e.id,children:e.original_name},e.id))]})]}),a("div",{className:"mt-2 sm:col-span-4 col-span-4",children:a("p",{className:"text-gray-500 dark:text-gray-400",children:"Passwords are stored encrypted"})}),s("div",{className:"col-span-4",children:[a(n,{forInput:"password",value:"Password"}),a(c,{name:"password",className:"mt-1 block w-full",autoComplete:"password",value:t.password,handleChange:e=>r("password",e.target.value),disabled:o}),a(m,{message:d.password,className:"mt-2"})]})]}),a(T,{className:"inline-flex items-center px-5 py-2.5 mt-4 sm:mt-6 text-sm font-medium text-center text-white bg-primary-700 rounded-lg focus:ring-4 focus:ring-primary-200 dark:focus:ring-primary-900 hover:bg-primary-800",processing:x,children:"Create SFTP Connection"})]})})]})]})}export{Q as default}; diff --git a/public/build/assets/Create-3aa71eec.js b/public/build/assets/Create-e07d654c.js similarity index 84% rename from public/build/assets/Create-3aa71eec.js rename to public/build/assets/Create-e07d654c.js index deee3b3..5686782 100644 --- a/public/build/assets/Create-3aa71eec.js +++ b/public/build/assets/Create-e07d654c.js @@ -1 +1 @@ -import{A as x}from"./AuthenticatedLayout-b0ac98cc.js";import{u as l,b as y,j as r,a as e,H as N}from"./app-7082a047.js";import{I as n}from"./InputLabel-04829bce.js";import{T as i,I as m}from"./TextInput-38986df9.js";import{S as d}from"./Toast-a9c7a83a.js";import"./Table-13305096.js";import{P as b}from"./PrimaryButton-aae876dd.js";import{R as k}from"./Alert-af0dbb46.js";import{B as w}from"./BackButton-c0685269.js";import"./ApplicationLogo-db4f8950.js";import"./transition-eb04b526.js";import"./index.esm-eebfcfab.js";function T({auth:c}){const p=l().props.alert,u=l().props.keys,h=l().props.servers,{data:t,setData:s,post:g,processing:v,reset:_,errors:o}=y({server_id:"",username:"root",ssh_port:"22",key_id:"",password:""}),f=a=>{a.preventDefault(),g(route("connection.store")),navigate(route("connection.index"))};return r(x,{auth:c,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Create connection"}),children:[e(N,{title:"Create connection"}),r("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(w,{href:route("connection.index"),children:"Back to connections"})}),e(k,{details:p}),e("section",{className:"bg-white dark:bg-gray-700 overflow-hidden shadow-sm sm:rounded-lg p-2 sm:p-6",children:r("form",{onSubmit:f,children:[r("div",{className:"grid gap-2 sm:grid-cols-1 md:grid-cols-4 sm:gap-4",children:[r("div",{className:"sm:col-span-4 col-span-4",children:[e("div",{className:"mb-2 block",children:e(n,{forInput:"server_id",value:"Server"})}),r(d,{onChange:a=>s("server_id",a.target.value),name:"server_id",required:!0,value:t.server_id,handleChange:a=>s("server_id",a.target.value),children:[e("option",{value:"",children:"Choose one"}),h.map(a=>r("option",{value:a.id,children:[a.title," (",a.hostname,")"]},a.id))]})]}),r("div",{className:"sm:col-span-2 col-span-4",children:[e(n,{forInput:"username",value:"Username"}),e(i,{id:"username",name:"username",value:t.username,className:"mt-1 block w-full",autoComplete:"username",handleChange:a=>s("username",a.target.value),maxLength:64,required:!0}),e(m,{message:o.username,className:"mt-2"})]}),r("div",{className:"sm:col-span-2 col-span-4",children:[e(n,{forInput:"ssh_port",value:"SSH port"}),e(i,{type:"number",name:"ssh_port",className:"mt-1 block w-full",autoComplete:"ssh_port",value:t.ssh_port,handleChange:a=>s("ssh_port",a.target.value),required:!0}),e(m,{message:o.ssh_port,className:"mt-2"})]}),e("p",{children:e("a",{className:"font-medium text-blue-600 dark:text-blue-500 hover:underline",href:route("key.index"),children:"Manage keys"})}),r("div",{className:"sm:col-span-4 col-span-4",children:[e("div",{className:"mb-2 block",children:e(n,{forInput:"key_id",value:"Key"})}),r(d,{onChange:a=>s("key_id",a.target.value),name:"key_id",value:t.key_id,handleChange:a=>s("key_id",a.target.value),children:[e("option",{value:"",children:"None. Use password"}),u.map(a=>e("option",{value:a.id,children:a.original_name},a.id))]})]}),e("div",{className:"mt-2 sm:col-span-4 col-span-4",children:e("p",{className:"text-gray-500 dark:text-gray-400",children:"Passwords are stored encrypted"})}),r("div",{className:"col-span-4",children:[e(n,{forInput:"password",value:"Password"}),e(i,{name:"password",className:"mt-1 block w-full",autoComplete:"password",value:t.password,handleChange:a=>s("password",a.target.value)}),e(m,{message:o.password,className:"mt-2"})]})]}),e(b,{className:"inline-flex items-center px-5 py-2.5 mt-4 sm:mt-6 text-sm font-medium text-center text-white bg-primary-700 rounded-lg focus:ring-4 focus:ring-primary-200 dark:focus:ring-primary-900 hover:bg-primary-800",processing:v,children:"Create Connection"})]})})]})]})}export{T as default}; +import{A as x}from"./AuthenticatedLayout-c4be06bd.js";import{u as l,b as y,j as r,a as e,H as N}from"./app-a8d4275f.js";import{I as n}from"./InputLabel-a7ee92ff.js";import{T as i,I as m}from"./TextInput-1e9aadbd.js";import{S as d}from"./Toast-ee00046f.js";import"./Table-f19b692a.js";import{P as b}from"./PrimaryButton-19cc4f5a.js";import{R as k}from"./Alert-d503f44b.js";import{B as w}from"./BackButton-2b60c346.js";import"./ApplicationLogo-ae419612.js";import"./transition-fbe58e1e.js";import"./index.esm-2010c99b.js";function T({auth:c}){const p=l().props.alert,u=l().props.keys,h=l().props.servers,{data:t,setData:s,post:g,processing:v,reset:_,errors:o}=y({server_id:"",username:"root",ssh_port:"22",key_id:"",password:""}),f=a=>{a.preventDefault(),g(route("connection.store")),navigate(route("connection.index"))};return r(x,{auth:c,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Create connection"}),children:[e(N,{title:"Create connection"}),r("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(w,{href:route("connection.index"),children:"Back to connections"})}),e(k,{details:p}),e("section",{className:"bg-white dark:bg-gray-700 overflow-hidden shadow-sm sm:rounded-lg p-2 sm:p-6",children:r("form",{onSubmit:f,children:[r("div",{className:"grid gap-2 sm:grid-cols-1 md:grid-cols-4 sm:gap-4",children:[r("div",{className:"sm:col-span-4 col-span-4",children:[e("div",{className:"mb-2 block",children:e(n,{forInput:"server_id",value:"Server"})}),r(d,{onChange:a=>s("server_id",a.target.value),name:"server_id",required:!0,value:t.server_id,handleChange:a=>s("server_id",a.target.value),children:[e("option",{value:"",children:"Choose one"}),h.map(a=>r("option",{value:a.id,children:[a.title," (",a.hostname,")"]},a.id))]})]}),r("div",{className:"sm:col-span-2 col-span-4",children:[e(n,{forInput:"username",value:"Username"}),e(i,{id:"username",name:"username",value:t.username,className:"mt-1 block w-full",autoComplete:"username",handleChange:a=>s("username",a.target.value),maxLength:64,required:!0}),e(m,{message:o.username,className:"mt-2"})]}),r("div",{className:"sm:col-span-2 col-span-4",children:[e(n,{forInput:"ssh_port",value:"SSH port"}),e(i,{type:"number",name:"ssh_port",className:"mt-1 block w-full",autoComplete:"ssh_port",value:t.ssh_port,handleChange:a=>s("ssh_port",a.target.value),required:!0}),e(m,{message:o.ssh_port,className:"mt-2"})]}),e("p",{children:e("a",{className:"font-medium text-blue-600 dark:text-blue-500 hover:underline",href:route("key.index"),children:"Manage keys"})}),r("div",{className:"sm:col-span-4 col-span-4",children:[e("div",{className:"mb-2 block",children:e(n,{forInput:"key_id",value:"Key"})}),r(d,{onChange:a=>s("key_id",a.target.value),name:"key_id",value:t.key_id,handleChange:a=>s("key_id",a.target.value),children:[e("option",{value:"",children:"None. Use password"}),u.map(a=>e("option",{value:a.id,children:a.original_name},a.id))]})]}),e("div",{className:"mt-2 sm:col-span-4 col-span-4",children:e("p",{className:"text-gray-500 dark:text-gray-400",children:"Passwords are stored encrypted"})}),r("div",{className:"col-span-4",children:[e(n,{forInput:"password",value:"Password"}),e(i,{name:"password",className:"mt-1 block w-full",autoComplete:"password",value:t.password,handleChange:a=>s("password",a.target.value)}),e(m,{message:o.password,className:"mt-2"})]})]}),e(b,{className:"inline-flex items-center px-5 py-2.5 mt-4 sm:mt-6 text-sm font-medium text-center text-white bg-primary-700 rounded-lg focus:ring-4 focus:ring-primary-200 dark:focus:ring-primary-900 hover:bg-primary-800",processing:v,children:"Create Connection"})]})})]})]})}export{T as default}; diff --git a/public/build/assets/Create-d26bb95e.js b/public/build/assets/Create-ed7017f9.js similarity index 91% rename from public/build/assets/Create-d26bb95e.js rename to public/build/assets/Create-ed7017f9.js index 078b13c..6ac8417 100644 --- a/public/build/assets/Create-d26bb95e.js +++ b/public/build/assets/Create-ed7017f9.js @@ -1 +1 @@ -import{A as v}from"./AuthenticatedLayout-b0ac98cc.js";import{u as s,b as g,j as n,a,H as _}from"./app-7082a047.js";import{I as r}from"./InputLabel-04829bce.js";import{T as f,I as k}from"./TextInput-38986df9.js";import{S as o}from"./Toast-a9c7a83a.js";import"./Table-13305096.js";import{P as C}from"./PrimaryButton-aae876dd.js";import{B as b}from"./BackButton-c0685269.js";import{R as y}from"./Alert-af0dbb46.js";import"./ApplicationLogo-db4f8950.js";import"./transition-eb04b526.js";import"./index.esm-eebfcfab.js";function L({auth:d}){const c=s().props.alert,t=s().props.connections,{data:l,setData:i,post:m,processing:u,reset:w,errors:h}=g({connection1_id:null,connection2_id:null,connection3_id:null,connection4_id:null,connection5_id:null,connection6_id:null,connection7_id:null,connection8_id:null,title:""}),p=e=>{e.preventDefault(),m(route("ping-group.store")),navigate(route("ping-group.index"))};return n(v,{auth:d,header:a("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Create a ping group"}),children:[a(_,{title:"Create connection"}),n("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[a("div",{className:"flex flex-wrap gap-2 mb-4",children:a(b,{href:route("ping-group.index"),children:"Back to ping groups"})}),a(y,{details:c}),a("section",{className:"bg-white dark:bg-gray-700 overflow-hidden shadow-sm sm:rounded-lg p-2 sm:p-6",children:n("form",{onSubmit:p,children:[n("div",{className:"grid gap-2 grid-cols-1 sm:grid-cols-6",children:[n("div",{className:"col-span-5 mb-3",children:[a(r,{forInput:"title",value:"Title"}),a(f,{name:"title",value:l.title,className:"mt-1 block w-full",autoComplete:"title",handleChange:e=>i("title",e.target.value),maxLength:64,required:!0}),a(k,{message:h.title,className:"mt-2"})]}),a("div",{className:"col-span-6",children:a("p",{className:"mb-2 text-yellow-400 dark:text-yellow-300",children:"Only servers with a connection shown"})}),n("div",{className:"sm:col-span-2 col-span-6",children:[a("div",{className:"mb-2 block",children:a(r,{forInput:"connection1_id",value:"Server 1"})}),n(o,{onChange:e=>i("connection1_id",e.target.value),name:"connection1_id",required:!0,value:l.connection1_id,handleChange:e=>i("connection1_id",e.target.value),children:[a("option",{value:"",children:"Choose one"}),t.map(e=>n("option",{value:e.id,children:[e.server.hostname," (",e.server.title,") ",e.username," with ",e.key_id===null?"password":"key"]},e.id))]})]}),n("div",{className:"sm:col-span-2 col-span-6",children:[a("div",{className:"mb-2 block",children:a(r,{forInput:"connection2_id",value:"Server 2"})}),n(o,{onChange:e=>i("connection2_id",e.target.value),name:"connection2_id",required:!0,value:l.connection2_id,handleChange:e=>i("connection2_id",e.target.value),children:[a("option",{value:"",children:"Choose one"}),t.map(e=>n("option",{value:e.id,children:[e.server.hostname," (",e.server.title,") ",e.username," with ",e.key_id===null?"password":"key"]},e.id))]})]}),n("div",{className:"sm:col-span-2 col-span-6",children:[a("div",{className:"mb-2 block",children:a(r,{forInput:"connection3_id",value:"Server 3"})}),n(o,{onChange:e=>i("connection3_id",e.target.value),name:"connection3_id",value:l.connection3_id,handleChange:e=>i("connection3_id",e.target.value),children:[a("option",{value:"",children:"Choose one"}),t.map(e=>n("option",{value:e.id,children:[e.server.hostname," (",e.server.title,") ",e.username," with ",e.key_id===null?"password":"key"]},e.id))]})]}),n("div",{className:"sm:col-span-2 col-span-6",children:[a("div",{className:"mb-2 block",children:a(r,{forInput:"connection4_id",value:"Server 4"})}),n(o,{onChange:e=>i("connection4_id",e.target.value),name:"connection4_id",value:l.connection4_id,handleChange:e=>i("connection4_id",e.target.value),children:[a("option",{value:"",children:"Choose one"}),t.map(e=>n("option",{value:e.id,children:[e.server.hostname," (",e.server.title,") ",e.username," with ",e.key_id===null?"password":"key"]},e.id))]})]}),n("div",{className:"sm:col-span-2 col-span-6",children:[a("div",{className:"mb-2 block",children:a(r,{forInput:"connection5_id",value:"Server 5"})}),n(o,{onChange:e=>i("connection5_id",e.target.value),name:"connection5_id",value:l.connection5_id,handleChange:e=>i("connection5_id",e.target.value),children:[a("option",{value:"",children:"Choose one"}),t.map(e=>n("option",{value:e.id,children:[e.server.hostname," (",e.server.title,") ",e.username," with ",e.key_id===null?"password":"key"]},e.id))]})]}),n("div",{className:"sm:col-span-2 col-span-6",children:[a("div",{className:"mb-2 block",children:a(r,{forInput:"connection6_id",value:"Server 6"})}),n(o,{onChange:e=>i("connection6_id",e.target.value),name:"connection6_id",value:l.connection6_id,handleChange:e=>i("connection6_id",e.target.value),children:[a("option",{value:"",children:"Choose one"}),t.map(e=>n("option",{value:e.id,children:[e.server.hostname," (",e.server.title,") ",e.username," with ",e.key_id===null?"password":"key"]},e.id))]})]}),n("div",{className:"sm:col-span-2 col-span-6",children:[a("div",{className:"mb-2 block",children:a(r,{forInput:"connection7_id",value:"Server 7"})}),n(o,{onChange:e=>i("connection7_id",e.target.value),name:"connection7_id",value:l.connection7_id,handleChange:e=>i("connection7_id",e.target.value),children:[a("option",{value:"",children:"Choose one"}),t.map(e=>n("option",{value:e.id,children:[e.server.hostname," (",e.server.title,") ",e.username," with ",e.key_id===null?"password":"key"]},e.id))]})]}),n("div",{className:"sm:col-span-2 col-span-6",children:[a("div",{className:"mb-2 block",children:a(r,{forInput:"connection8_id",value:"Server 8"})}),n(o,{onChange:e=>i("connection8_id",e.target.value),name:"connection8_id",value:l.connection8_id,handleChange:e=>i("connection8_id",e.target.value),children:[a("option",{value:"",children:"Choose one"}),t.map(e=>n("option",{value:e.id,children:[e.server.hostname," (",e.server.title,") ",e.username," with ",e.key_id===null?"password":"key"]},e.id))]})]})]}),a(C,{className:"inline-flex items-center px-5 py-2.5 mt-4 sm:mt-6 text-sm font-medium text-center text-white bg-primary-700 rounded-lg focus:ring-4 focus:ring-primary-200 dark:focus:ring-primary-900 hover:bg-primary-800",processing:u,children:"Create ping group"})]})})]})]})}export{L as default}; +import{A as v}from"./AuthenticatedLayout-c4be06bd.js";import{u as s,b as g,j as n,a,H as _}from"./app-a8d4275f.js";import{I as r}from"./InputLabel-a7ee92ff.js";import{T as f,I as k}from"./TextInput-1e9aadbd.js";import{S as o}from"./Toast-ee00046f.js";import"./Table-f19b692a.js";import{P as C}from"./PrimaryButton-19cc4f5a.js";import{B as b}from"./BackButton-2b60c346.js";import{R as y}from"./Alert-d503f44b.js";import"./ApplicationLogo-ae419612.js";import"./transition-fbe58e1e.js";import"./index.esm-2010c99b.js";function L({auth:d}){const c=s().props.alert,t=s().props.connections,{data:l,setData:i,post:m,processing:u,reset:w,errors:h}=g({connection1_id:null,connection2_id:null,connection3_id:null,connection4_id:null,connection5_id:null,connection6_id:null,connection7_id:null,connection8_id:null,title:""}),p=e=>{e.preventDefault(),m(route("ping-group.store")),navigate(route("ping-group.index"))};return n(v,{auth:d,header:a("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Create a ping group"}),children:[a(_,{title:"Create connection"}),n("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[a("div",{className:"flex flex-wrap gap-2 mb-4",children:a(b,{href:route("ping-group.index"),children:"Back to ping groups"})}),a(y,{details:c}),a("section",{className:"bg-white dark:bg-gray-700 overflow-hidden shadow-sm sm:rounded-lg p-2 sm:p-6",children:n("form",{onSubmit:p,children:[n("div",{className:"grid gap-2 grid-cols-1 sm:grid-cols-6",children:[n("div",{className:"col-span-5 mb-3",children:[a(r,{forInput:"title",value:"Title"}),a(f,{name:"title",value:l.title,className:"mt-1 block w-full",autoComplete:"title",handleChange:e=>i("title",e.target.value),maxLength:64,required:!0}),a(k,{message:h.title,className:"mt-2"})]}),a("div",{className:"col-span-6",children:a("p",{className:"mb-2 text-yellow-400 dark:text-yellow-300",children:"Only servers with a connection shown"})}),n("div",{className:"sm:col-span-2 col-span-6",children:[a("div",{className:"mb-2 block",children:a(r,{forInput:"connection1_id",value:"Server 1"})}),n(o,{onChange:e=>i("connection1_id",e.target.value),name:"connection1_id",required:!0,value:l.connection1_id,handleChange:e=>i("connection1_id",e.target.value),children:[a("option",{value:"",children:"Choose one"}),t.map(e=>n("option",{value:e.id,children:[e.server.hostname," (",e.server.title,") ",e.username," with ",e.key_id===null?"password":"key"]},e.id))]})]}),n("div",{className:"sm:col-span-2 col-span-6",children:[a("div",{className:"mb-2 block",children:a(r,{forInput:"connection2_id",value:"Server 2"})}),n(o,{onChange:e=>i("connection2_id",e.target.value),name:"connection2_id",required:!0,value:l.connection2_id,handleChange:e=>i("connection2_id",e.target.value),children:[a("option",{value:"",children:"Choose one"}),t.map(e=>n("option",{value:e.id,children:[e.server.hostname," (",e.server.title,") ",e.username," with ",e.key_id===null?"password":"key"]},e.id))]})]}),n("div",{className:"sm:col-span-2 col-span-6",children:[a("div",{className:"mb-2 block",children:a(r,{forInput:"connection3_id",value:"Server 3"})}),n(o,{onChange:e=>i("connection3_id",e.target.value),name:"connection3_id",value:l.connection3_id,handleChange:e=>i("connection3_id",e.target.value),children:[a("option",{value:"",children:"Choose one"}),t.map(e=>n("option",{value:e.id,children:[e.server.hostname," (",e.server.title,") ",e.username," with ",e.key_id===null?"password":"key"]},e.id))]})]}),n("div",{className:"sm:col-span-2 col-span-6",children:[a("div",{className:"mb-2 block",children:a(r,{forInput:"connection4_id",value:"Server 4"})}),n(o,{onChange:e=>i("connection4_id",e.target.value),name:"connection4_id",value:l.connection4_id,handleChange:e=>i("connection4_id",e.target.value),children:[a("option",{value:"",children:"Choose one"}),t.map(e=>n("option",{value:e.id,children:[e.server.hostname," (",e.server.title,") ",e.username," with ",e.key_id===null?"password":"key"]},e.id))]})]}),n("div",{className:"sm:col-span-2 col-span-6",children:[a("div",{className:"mb-2 block",children:a(r,{forInput:"connection5_id",value:"Server 5"})}),n(o,{onChange:e=>i("connection5_id",e.target.value),name:"connection5_id",value:l.connection5_id,handleChange:e=>i("connection5_id",e.target.value),children:[a("option",{value:"",children:"Choose one"}),t.map(e=>n("option",{value:e.id,children:[e.server.hostname," (",e.server.title,") ",e.username," with ",e.key_id===null?"password":"key"]},e.id))]})]}),n("div",{className:"sm:col-span-2 col-span-6",children:[a("div",{className:"mb-2 block",children:a(r,{forInput:"connection6_id",value:"Server 6"})}),n(o,{onChange:e=>i("connection6_id",e.target.value),name:"connection6_id",value:l.connection6_id,handleChange:e=>i("connection6_id",e.target.value),children:[a("option",{value:"",children:"Choose one"}),t.map(e=>n("option",{value:e.id,children:[e.server.hostname," (",e.server.title,") ",e.username," with ",e.key_id===null?"password":"key"]},e.id))]})]}),n("div",{className:"sm:col-span-2 col-span-6",children:[a("div",{className:"mb-2 block",children:a(r,{forInput:"connection7_id",value:"Server 7"})}),n(o,{onChange:e=>i("connection7_id",e.target.value),name:"connection7_id",value:l.connection7_id,handleChange:e=>i("connection7_id",e.target.value),children:[a("option",{value:"",children:"Choose one"}),t.map(e=>n("option",{value:e.id,children:[e.server.hostname," (",e.server.title,") ",e.username," with ",e.key_id===null?"password":"key"]},e.id))]})]}),n("div",{className:"sm:col-span-2 col-span-6",children:[a("div",{className:"mb-2 block",children:a(r,{forInput:"connection8_id",value:"Server 8"})}),n(o,{onChange:e=>i("connection8_id",e.target.value),name:"connection8_id",value:l.connection8_id,handleChange:e=>i("connection8_id",e.target.value),children:[a("option",{value:"",children:"Choose one"}),t.map(e=>n("option",{value:e.id,children:[e.server.hostname," (",e.server.title,") ",e.username," with ",e.key_id===null?"password":"key"]},e.id))]})]})]}),a(C,{className:"inline-flex items-center px-5 py-2.5 mt-4 sm:mt-6 text-sm font-medium text-center text-white bg-primary-700 rounded-lg focus:ring-4 focus:ring-primary-200 dark:focus:ring-primary-900 hover:bg-primary-800",processing:u,children:"Create ping group"})]})})]})]})}export{L as default}; diff --git a/public/build/assets/Create-64b52f00.js b/public/build/assets/Create-f375067f.js similarity index 79% rename from public/build/assets/Create-64b52f00.js rename to public/build/assets/Create-f375067f.js index 6779743..5985977 100644 --- a/public/build/assets/Create-64b52f00.js +++ b/public/build/assets/Create-f375067f.js @@ -1 +1 @@ -import{A as p}from"./AuthenticatedLayout-b0ac98cc.js";import{u as c,b as u,j as a,a as e,H as h}from"./app-7082a047.js";import{I as f}from"./InputLabel-04829bce.js";import{T as g,I as y}from"./TextInput-38986df9.js";import{P as x}from"./PrimaryButton-aae876dd.js";import{B as k}from"./BackButton-c0685269.js";import{R as w}from"./Alert-af0dbb46.js";import"./ApplicationLogo-db4f8950.js";import"./transition-eb04b526.js";import"./index.esm-eebfcfab.js";import"./Toast-a9c7a83a.js";import"./Table-13305096.js";function _({auth:l}){const o=c().props.alert,{data:i,setData:r,post:m,processing:n,reset:N,errors:t}=u({password:""}),d=s=>{s.preventDefault(),m(route("key.store")),navigate(route("key.index"))};return a(p,{auth:l,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Upload key"}),children:[e(h,{title:"Create key"}),a("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(k,{href:route("key.index"),children:"Back to keys"})}),e(w,{details:o}),e("section",{className:"bg-white dark:bg-gray-700 overflow-hidden shadow-sm sm:rounded-lg p-2 sm:p-6",children:a("form",{onSubmit:d,children:[a("div",{className:"grid gap-2 sm:grid-cols-1 md:grid-cols-4 sm:gap-4",children:[e("div",{className:"mt-2 sm:col-span-4 col-span-4",children:e("p",{className:"text-yellow-400",children:"NOTE: Encrypted OpenSSH private keys are not supported"})}),a("div",{className:"col-span-4",children:[e("label",{className:"block mb-2 text-sm font-medium text-gray-900 dark:text-white",children:"Key file"}),e("input",{type:"file",className:"w-full px-4 py-2",name:"key_file",onChange:s=>r("key_file",s.target.files[0])}),e("span",{className:"text-red-600",children:t.key_file})]}),e("div",{className:"mt-2 sm:col-span-4 col-span-4",children:e("p",{className:"text-gray-500 dark:text-gray-400",children:"Passwords are stored encrypted"})}),a("div",{className:"col-span-4",children:[e(f,{forInput:"password",value:"Password"}),e(g,{name:"password",className:"mt-1 block w-full",autoComplete:"password",value:i.password,handleChange:s=>r("password",s.target.value)}),e(y,{message:t.password,className:"mt-2"})]})]}),e(x,{className:"inline-flex items-center px-5 py-2.5 mt-4 sm:mt-6 text-sm font-medium text-center text-white bg-primary-700 rounded-lg focus:ring-4 focus:ring-primary-200 dark:focus:ring-primary-900 hover:bg-primary-800",processing:n,children:"Create key"})]})})]})]})}export{_ as default}; +import{A as p}from"./AuthenticatedLayout-c4be06bd.js";import{u as c,b as u,j as a,a as e,H as h}from"./app-a8d4275f.js";import{I as f}from"./InputLabel-a7ee92ff.js";import{T as g,I as y}from"./TextInput-1e9aadbd.js";import{P as x}from"./PrimaryButton-19cc4f5a.js";import{B as k}from"./BackButton-2b60c346.js";import{R as w}from"./Alert-d503f44b.js";import"./ApplicationLogo-ae419612.js";import"./transition-fbe58e1e.js";import"./index.esm-2010c99b.js";import"./Toast-ee00046f.js";import"./Table-f19b692a.js";function _({auth:l}){const o=c().props.alert,{data:i,setData:r,post:m,processing:n,reset:N,errors:t}=u({password:""}),d=s=>{s.preventDefault(),m(route("key.store")),navigate(route("key.index"))};return a(p,{auth:l,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Upload key"}),children:[e(h,{title:"Create key"}),a("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(k,{href:route("key.index"),children:"Back to keys"})}),e(w,{details:o}),e("section",{className:"bg-white dark:bg-gray-700 overflow-hidden shadow-sm sm:rounded-lg p-2 sm:p-6",children:a("form",{onSubmit:d,children:[a("div",{className:"grid gap-2 sm:grid-cols-1 md:grid-cols-4 sm:gap-4",children:[e("div",{className:"mt-2 sm:col-span-4 col-span-4",children:e("p",{className:"text-yellow-400",children:"NOTE: Encrypted OpenSSH private keys are not supported"})}),a("div",{className:"col-span-4",children:[e("label",{className:"block mb-2 text-sm font-medium text-gray-900 dark:text-white",children:"Key file"}),e("input",{type:"file",className:"w-full px-4 py-2",name:"key_file",onChange:s=>r("key_file",s.target.files[0])}),e("span",{className:"text-red-600",children:t.key_file})]}),e("div",{className:"mt-2 sm:col-span-4 col-span-4",children:e("p",{className:"text-gray-500 dark:text-gray-400",children:"Passwords are stored encrypted"})}),a("div",{className:"col-span-4",children:[e(f,{forInput:"password",value:"Password"}),e(g,{name:"password",className:"mt-1 block w-full",autoComplete:"password",value:i.password,handleChange:s=>r("password",s.target.value)}),e(y,{message:t.password,className:"mt-2"})]})]}),e(x,{className:"inline-flex items-center px-5 py-2.5 mt-4 sm:mt-6 text-sm font-medium text-center text-white bg-primary-700 rounded-lg focus:ring-4 focus:ring-primary-200 dark:focus:ring-primary-900 hover:bg-primary-800",processing:n,children:"Create key"})]})})]})]})}export{_ as default}; diff --git a/public/build/assets/Create-087a4612.js b/public/build/assets/Create-f76523b8.js similarity index 92% rename from public/build/assets/Create-087a4612.js rename to public/build/assets/Create-f76523b8.js index 485e33d..562f667 100644 --- a/public/build/assets/Create-087a4612.js +++ b/public/build/assets/Create-f76523b8.js @@ -1 +1 @@ -import{A}from"./AuthenticatedLayout-b0ac98cc.js";import{u as B,b as P,j as s,a as e,H as T}from"./app-7082a047.js";import{I as n}from"./InputLabel-04829bce.js";import{T as o,I as i}from"./TextInput-38986df9.js";import{B as d,S as g}from"./Toast-a9c7a83a.js";import"./Table-13305096.js";import{P as q}from"./PrimaryButton-aae876dd.js";import{R as H}from"./Alert-af0dbb46.js";import{B as j}from"./BackButton-c0685269.js";import"./ApplicationLogo-db4f8950.js";import"./transition-eb04b526.js";import"./index.esm-eebfcfab.js";function X({auth:p,types:h,locations:v,title:b}){const c=B().props.alert,{data:l,setData:t,post:f,processing:N,reset:E,errors:m}=P({title:b,hostname:"",server_type:"1",location:"",ip:"",os:"",cpu:"",cpu_cores:"",cpu_freq:"",disk_gb:"",disk_tb:"",ram_mb:"",ram_gb:"",swap:"",ping_port:"80"}),_=a=>{a.preventDefault(),f(route("server.store")),navigate(route("server.index"))};async function u(a="A"){return(await fetch(route("domain-for-ip",[l.hostname,a]),{method:"GET",headers:{Authorization:"Bearer "+p.user.api_token,"X-CSRF-TOKEN":document.getElementsByName("csrf-token")[0].getAttribute("content"),"Content-Type":"application/json",Accept:"application/json"}})).json()}const k=()=>{l.hostname!==""&&(u("A").then(a=>{typeof a.ip<"u"&&a.ip!==null&&t("ip",a.ip)}),c("NOTE: If this hostname is behind Cloudflare this IP may be wrong"))},C=()=>{l.hostname!==""&&(u("AAAA").then(a=>{typeof a.ip<"u"&&a.ip!==null&&t("ip",a.ip)}),c("NOTE: If this hostname is behind Cloudflare this IP may be wrong"))},I=a=>{t(r=>({...r,disk_tb:parseInt(a.target.value)/1024})),t(r=>({...r,disk_gb:a.target.value}))},y=a=>{t(r=>({...r,disk_gb:parseInt(a.target.value)*1024})),t(r=>({...r,disk_tb:a.target.value}))},w=a=>{t(r=>({...r,ram_gb:parseInt(a.target.value)/1024})),t(r=>({...r,ram_mb:a.target.value}))},x=a=>{t(r=>({...r,ram_mb:parseInt(a.target.value)*1024})),t(r=>({...r,ram_gb:a.target.value}))};return s(A,{auth:p,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Create server"}),children:[e(T,{title:"Create server"}),s("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(j,{href:route("server.index"),children:"Back to servers"})}),e(H,{details:c}),e("div",{className:"bg-white dark:bg-gray-700 overflow-hidden shadow-sm sm:rounded-lg p-2 sm:p-6",children:s("form",{onSubmit:_,children:[s("div",{className:"grid gap-2 sm:grid-cols-1 md:grid-cols-6 sm:gap-4",children:[s("div",{className:"sm:col-span-3 col-span-4",children:[e(n,{forInput:"hostname",value:"Hostname"}),e(o,{name:"hostname",value:l.hostname,className:"mt-1 block w-full",autoComplete:"hostname",handleChange:a=>t("hostname",a.target.value),maxLength:64,required:!0}),e(i,{message:m.hostname,className:"mt-2"})]}),s("div",{className:"sm:col-span-1 col-span-4",children:[e(n,{value:"Auto fill IP"}),s("div",{className:"flex items-center space-x-4",children:[e(d,{color:"light",size:"xs",onClick:k,type:"button",children:"IPv4"}),e(d,{color:"light",size:"xs",onClick:C,type:"button",children:"Ipv6"})]})]}),s("div",{className:"sm:col-span-2 col-span-4",children:[e(n,{forInput:"title",value:"Title"}),e(o,{name:"title",className:"mt-1 block w-full",autoComplete:"title",value:l.title,handleChange:a=>t("title",a.target.value),maxLength:64,required:!0}),e(i,{message:m.title,className:"mt-2"})]}),s("div",{className:"sm:col-span-1 col-span-4",children:[e("div",{className:"mb-2 block",children:e(n,{forInput:"server_type",value:"Type"})}),s(g,{onChange:a=>t("server_type",a.target.value),name:"server_type",required:!0,value:l.server_type,children:[e("option",{value:"",children:"Choose"}),h.map(a=>e("option",{value:a.id,children:a.name},a.id))]})]}),s("div",{className:"sm:col-span-2 col-span-4",children:[e("div",{className:"mb-2 block",children:e(n,{forInput:"location",value:"Location"})}),s(g,{onChange:a=>t("location",a.target.value),name:"location",required:!0,value:l.location,children:[e("option",{value:"",children:"Choose"}),v.map(a=>e("option",{value:a.id,children:a.name},a.id))]})]}),s("div",{className:"sm:col-span-2 col-span-3",children:[e(n,{forInput:"ip",value:"Main IP address"}),e(o,{name:"ip",className:"mt-1 block w-full",autoComplete:"ip",value:l.ip,handleChange:a=>t("ip",a.target.value),required:!0}),e(i,{message:m.ip,className:"mt-2"})]}),s("div",{className:"sm:col-span-1 col-span-1",children:[e(n,{forInput:"ping_port",value:"Ping port"}),e(o,{type:"number",name:"ping_port",className:"mt-1 block w-full",autoComplete:"ping_port",value:l.ping_port,handleChange:a=>t("ping_port",a.target.value)}),e(i,{message:m.ping_port,className:"mt-2"})]}),e("div",{className:"text-center mt-2 sm:col-span-6 col-span-4",children:e("p",{className:"text-gray-400 dark:text-gray-300",children:"The following can be auto filled with the server connection"})}),s("div",{className:"sm:col-span-2 col-span-4",children:[e(n,{forInput:"os",value:"Operating system"}),e(o,{name:"os",className:"mt-1 block w-full",autoComplete:"os",value:l.os,handleChange:a=>t("os",a.target.value),maxLength:64}),e(i,{message:m.os,className:"mt-2"})]}),s("div",{className:"sm:col-span-2 col-span-2",children:[e(n,{forInput:"cpu",value:"CPU"}),e(o,{name:"cpu",className:"mt-1 block w-full",autoComplete:"cpu",value:l.cpu,handleChange:a=>t("cpu",a.target.value)}),e(i,{message:m.cpu,className:"mt-2"})]}),s("div",{className:"sm:col-span-1 col-span-2",children:[e(n,{forInput:"cpu_cores",value:"CPU Cores"}),e(o,{type:"number",name:"cpu_cores",className:"mt-1 block w-full",autoComplete:"cpu_cores",value:l.cpu_cores,handleChange:a=>t("cpu_cores",a.target.value)}),e(i,{message:m.cpu_cores,className:"mt-2"})]}),s("div",{className:"sm:col-span-1 col-span-2",children:[e(n,{forInput:"cpu_freq",value:"CPU Freq"}),e(o,{type:"number",step:"0.01",name:"cpu_freq",className:"mt-1 block w-full",autoComplete:"title"}),e(i,{message:m.cpu_freq,className:"mt-2"})]}),s("div",{className:"sm:col-span-1 col-span-2",children:[e(n,{forInput:"disk_gb",value:"Disk GB"}),e(o,{type:"number",name:"disk_gb",className:"mt-1 block w-full",autoComplete:"disk_gb",value:l.disk_gb,handleChange:I}),e(i,{message:m.disk_gb,className:"mt-2"})]}),s("div",{className:"sm:col-span-1 col-span-2",children:[e(n,{forInput:"disk_tb",value:"Disk TB"}),e(o,{type:"number",name:"disk_tb",className:"mt-1 block w-full",autoComplete:"disk_tb",value:l.disk_tb,handleChange:y}),e(i,{message:m.disk_tb,className:"mt-2"})]}),s("div",{className:"sm:col-span-1 col-span-2",children:[e(n,{forInput:"ram_mb",value:"RAM MB"}),e(o,{type:"number",step:"1",name:"ram_mb",className:"mt-1 block w-full",autoComplete:"ram_mb",value:l.ram_mb,handleChange:w}),e(i,{message:m.ram_mb,className:"mt-2"})]}),s("div",{className:"sm:col-span-1 col-span-2",children:[e(n,{forInput:"ram_gb",value:"RAM GB"}),e(o,{type:"number",step:"1",name:"ram_gb",className:"mt-1 block w-full",autoComplete:"ram_gb",value:l.ram_gb,handleChange:x}),e(i,{message:m.ram_gb,className:"mt-2"})]}),s("div",{className:"sm:col-span-1 col-span-2",children:[e(n,{forInput:"swap",value:"SWAP MB"}),e(o,{type:"number",step:"1",name:"swap",className:"mt-1 block w-full",autoComplete:"swap",value:l.ram,handleChange:a=>t("swap",a.target.value)}),e(i,{message:m.swap,className:"mt-2"})]})]}),e(q,{className:"inline-flex items-center px-5 py-2.5 mt-4 sm:mt-6 text-sm font-medium text-center text-white bg-primary-700 rounded-lg focus:ring-4 focus:ring-primary-200 dark:focus:ring-primary-900 hover:bg-primary-800",processing:N,children:"Create Server"})]})})]})]})}export{X as default}; +import{A}from"./AuthenticatedLayout-c4be06bd.js";import{u as B,b as P,j as s,a as e,H as T}from"./app-a8d4275f.js";import{I as n}from"./InputLabel-a7ee92ff.js";import{T as o,I as i}from"./TextInput-1e9aadbd.js";import{B as d,S as g}from"./Toast-ee00046f.js";import"./Table-f19b692a.js";import{P as q}from"./PrimaryButton-19cc4f5a.js";import{R as H}from"./Alert-d503f44b.js";import{B as j}from"./BackButton-2b60c346.js";import"./ApplicationLogo-ae419612.js";import"./transition-fbe58e1e.js";import"./index.esm-2010c99b.js";function X({auth:p,types:h,locations:v,title:b}){const c=B().props.alert,{data:l,setData:t,post:f,processing:N,reset:E,errors:m}=P({title:b,hostname:"",server_type:"1",location:"",ip:"",os:"",cpu:"",cpu_cores:"",cpu_freq:"",disk_gb:"",disk_tb:"",ram_mb:"",ram_gb:"",swap:"",ping_port:"80"}),_=a=>{a.preventDefault(),f(route("server.store")),navigate(route("server.index"))};async function u(a="A"){return(await fetch(route("domain-for-ip",[l.hostname,a]),{method:"GET",headers:{Authorization:"Bearer "+p.user.api_token,"X-CSRF-TOKEN":document.getElementsByName("csrf-token")[0].getAttribute("content"),"Content-Type":"application/json",Accept:"application/json"}})).json()}const k=()=>{l.hostname!==""&&(u("A").then(a=>{typeof a.ip<"u"&&a.ip!==null&&t("ip",a.ip)}),c("NOTE: If this hostname is behind Cloudflare this IP may be wrong"))},C=()=>{l.hostname!==""&&(u("AAAA").then(a=>{typeof a.ip<"u"&&a.ip!==null&&t("ip",a.ip)}),c("NOTE: If this hostname is behind Cloudflare this IP may be wrong"))},I=a=>{t(r=>({...r,disk_tb:parseInt(a.target.value)/1024})),t(r=>({...r,disk_gb:a.target.value}))},y=a=>{t(r=>({...r,disk_gb:parseInt(a.target.value)*1024})),t(r=>({...r,disk_tb:a.target.value}))},w=a=>{t(r=>({...r,ram_gb:parseInt(a.target.value)/1024})),t(r=>({...r,ram_mb:a.target.value}))},x=a=>{t(r=>({...r,ram_mb:parseInt(a.target.value)*1024})),t(r=>({...r,ram_gb:a.target.value}))};return s(A,{auth:p,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Create server"}),children:[e(T,{title:"Create server"}),s("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(j,{href:route("server.index"),children:"Back to servers"})}),e(H,{details:c}),e("div",{className:"bg-white dark:bg-gray-700 overflow-hidden shadow-sm sm:rounded-lg p-2 sm:p-6",children:s("form",{onSubmit:_,children:[s("div",{className:"grid gap-2 sm:grid-cols-1 md:grid-cols-6 sm:gap-4",children:[s("div",{className:"sm:col-span-3 col-span-4",children:[e(n,{forInput:"hostname",value:"Hostname"}),e(o,{name:"hostname",value:l.hostname,className:"mt-1 block w-full",autoComplete:"hostname",handleChange:a=>t("hostname",a.target.value),maxLength:64,required:!0}),e(i,{message:m.hostname,className:"mt-2"})]}),s("div",{className:"sm:col-span-1 col-span-4",children:[e(n,{value:"Auto fill IP"}),s("div",{className:"flex items-center space-x-4",children:[e(d,{color:"light",size:"xs",onClick:k,type:"button",children:"IPv4"}),e(d,{color:"light",size:"xs",onClick:C,type:"button",children:"Ipv6"})]})]}),s("div",{className:"sm:col-span-2 col-span-4",children:[e(n,{forInput:"title",value:"Title"}),e(o,{name:"title",className:"mt-1 block w-full",autoComplete:"title",value:l.title,handleChange:a=>t("title",a.target.value),maxLength:64,required:!0}),e(i,{message:m.title,className:"mt-2"})]}),s("div",{className:"sm:col-span-1 col-span-4",children:[e("div",{className:"mb-2 block",children:e(n,{forInput:"server_type",value:"Type"})}),s(g,{onChange:a=>t("server_type",a.target.value),name:"server_type",required:!0,value:l.server_type,children:[e("option",{value:"",children:"Choose"}),h.map(a=>e("option",{value:a.id,children:a.name},a.id))]})]}),s("div",{className:"sm:col-span-2 col-span-4",children:[e("div",{className:"mb-2 block",children:e(n,{forInput:"location",value:"Location"})}),s(g,{onChange:a=>t("location",a.target.value),name:"location",required:!0,value:l.location,children:[e("option",{value:"",children:"Choose"}),v.map(a=>e("option",{value:a.id,children:a.name},a.id))]})]}),s("div",{className:"sm:col-span-2 col-span-3",children:[e(n,{forInput:"ip",value:"Main IP address"}),e(o,{name:"ip",className:"mt-1 block w-full",autoComplete:"ip",value:l.ip,handleChange:a=>t("ip",a.target.value),required:!0}),e(i,{message:m.ip,className:"mt-2"})]}),s("div",{className:"sm:col-span-1 col-span-1",children:[e(n,{forInput:"ping_port",value:"Ping port"}),e(o,{type:"number",name:"ping_port",className:"mt-1 block w-full",autoComplete:"ping_port",value:l.ping_port,handleChange:a=>t("ping_port",a.target.value)}),e(i,{message:m.ping_port,className:"mt-2"})]}),e("div",{className:"text-center mt-2 sm:col-span-6 col-span-4",children:e("p",{className:"text-gray-400 dark:text-gray-300",children:"The following can be auto filled with the server connection"})}),s("div",{className:"sm:col-span-2 col-span-4",children:[e(n,{forInput:"os",value:"Operating system"}),e(o,{name:"os",className:"mt-1 block w-full",autoComplete:"os",value:l.os,handleChange:a=>t("os",a.target.value),maxLength:64}),e(i,{message:m.os,className:"mt-2"})]}),s("div",{className:"sm:col-span-2 col-span-2",children:[e(n,{forInput:"cpu",value:"CPU"}),e(o,{name:"cpu",className:"mt-1 block w-full",autoComplete:"cpu",value:l.cpu,handleChange:a=>t("cpu",a.target.value)}),e(i,{message:m.cpu,className:"mt-2"})]}),s("div",{className:"sm:col-span-1 col-span-2",children:[e(n,{forInput:"cpu_cores",value:"CPU Cores"}),e(o,{type:"number",name:"cpu_cores",className:"mt-1 block w-full",autoComplete:"cpu_cores",value:l.cpu_cores,handleChange:a=>t("cpu_cores",a.target.value)}),e(i,{message:m.cpu_cores,className:"mt-2"})]}),s("div",{className:"sm:col-span-1 col-span-2",children:[e(n,{forInput:"cpu_freq",value:"CPU Freq"}),e(o,{type:"number",step:"0.01",name:"cpu_freq",className:"mt-1 block w-full",autoComplete:"title"}),e(i,{message:m.cpu_freq,className:"mt-2"})]}),s("div",{className:"sm:col-span-1 col-span-2",children:[e(n,{forInput:"disk_gb",value:"Disk GB"}),e(o,{type:"number",name:"disk_gb",className:"mt-1 block w-full",autoComplete:"disk_gb",value:l.disk_gb,handleChange:I}),e(i,{message:m.disk_gb,className:"mt-2"})]}),s("div",{className:"sm:col-span-1 col-span-2",children:[e(n,{forInput:"disk_tb",value:"Disk TB"}),e(o,{type:"number",name:"disk_tb",className:"mt-1 block w-full",autoComplete:"disk_tb",value:l.disk_tb,handleChange:y}),e(i,{message:m.disk_tb,className:"mt-2"})]}),s("div",{className:"sm:col-span-1 col-span-2",children:[e(n,{forInput:"ram_mb",value:"RAM MB"}),e(o,{type:"number",step:"1",name:"ram_mb",className:"mt-1 block w-full",autoComplete:"ram_mb",value:l.ram_mb,handleChange:w}),e(i,{message:m.ram_mb,className:"mt-2"})]}),s("div",{className:"sm:col-span-1 col-span-2",children:[e(n,{forInput:"ram_gb",value:"RAM GB"}),e(o,{type:"number",step:"1",name:"ram_gb",className:"mt-1 block w-full",autoComplete:"ram_gb",value:l.ram_gb,handleChange:x}),e(i,{message:m.ram_gb,className:"mt-2"})]}),s("div",{className:"sm:col-span-1 col-span-2",children:[e(n,{forInput:"swap",value:"SWAP MB"}),e(o,{type:"number",step:"1",name:"swap",className:"mt-1 block w-full",autoComplete:"swap",value:l.ram,handleChange:a=>t("swap",a.target.value)}),e(i,{message:m.swap,className:"mt-2"})]})]}),e(q,{className:"inline-flex items-center px-5 py-2.5 mt-4 sm:mt-6 text-sm font-medium text-center text-white bg-primary-700 rounded-lg focus:ring-4 focus:ring-primary-200 dark:focus:ring-primary-900 hover:bg-primary-800",processing:N,children:"Create Server"})]})})]})]})}export{X as default}; diff --git a/public/build/assets/CreateDownload-bfd4b75c.js b/public/build/assets/CreateDownload-bfd4b75c.js new file mode 100644 index 0000000..81f0c6a --- /dev/null +++ b/public/build/assets/CreateDownload-bfd4b75c.js @@ -0,0 +1 @@ +import{A as D}from"./AuthenticatedLayout-c4be06bd.js";import{u as p,b as k,r as l,j as t,a as e,H as I}from"./app-a8d4275f.js";import{I as u}from"./InputLabel-a7ee92ff.js";import{T as f,I as h}from"./TextInput-1e9aadbd.js";import{P}from"./PrimaryButton-19cc4f5a.js";import{R as S}from"./Alert-d503f44b.js";import{A as B,e as _}from"./index.esm-2010c99b.js";import{B as C}from"./BackButton-2b60c346.js";import{T as F}from"./TealButton-374c27c1.js";import{P as T}from"./ProgressBar-0f70cb6b.js";import{a as E}from"./axios-4a70c6fc.js";import"./ApplicationLogo-ae419612.js";import"./transition-fbe58e1e.js";import"./Toast-ee00046f.js";import"./Table-f19b692a.js";function X({auth:g}){const r=p().props.resource,v=p().props.alert,{data:i,setData:n,post:x,processing:w,reset:j,errors:m}=k({filepath:"",save_as:""}),[o,d]=l.useState(!1),[N,c]=l.useState(null);async function y(a){return await(await E.get(route("sftp.download-to-server.progress",a.id))).data}l.useEffect(()=>{let a;return o?a=setInterval(()=>{y(r).then(s=>{c(s.progress)})},500):o||(c(null),clearInterval(a)),()=>clearInterval(a)},[o]);const b=a=>{a.preventDefault(),x(route("sftp.download-to-server",r.id),{onStart:s=>{d(!0)},onFinish:s=>{d(!1)}})};return t(D,{auth:g,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Download file to surcuri"}),children:[e(I,{title:"Download file to surcuri"}),t("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[t("div",{className:"flex flex-wrap gap-2 mb-4",children:[e(C,{href:route("sftp.show",r.id),children:"Back to SFTP connection"}),t(F,{href:route("downloaded.index"),children:[e(B,{className:"mr-2 h-5 w-5"}),"Downloaded files"]})]}),e(S,{details:v}),e("section",{className:"bg-white/50 dark:bg-gray-700 rounded-lg shadow-sm",children:t("div",{className:"py-6 px-4 mx-auto max-w-7xl",children:[t("div",{className:"flex items-center justify-between mb-4",children:[e("h1",{className:"text-2xl font-bold text-gray-800 dark:text-white",children:"Download file from SFTP to this surcuri host"}),e("small",{className:"text-end",children:e(_,{className:"md:ml-3 ml-2 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer",onClick:a=>window.location.href=route("server.show",r.server.id),title:"Go to server"})})]}),t("form",{onSubmit:b,children:[t("div",{className:"grid gap-2 sm:grid-cols-1 md:grid-cols-6 sm:gap-4",children:[t("div",{className:"md:col-span-4 col-span-6",children:[e(u,{forInput:"filepath",value:"Full file path and name"}),e(f,{name:"filepath",value:i.filepath,className:"mt-1 block w-full",autoComplete:"filepath",handleChange:a=>n("filepath",a.target.value),maxLength:255}),e(h,{message:m.filepath,className:"mt-2"})]}),t("div",{className:"md:col-span-2 col-span-6",children:[e(u,{forInput:"save_as",value:"Save as (leave empty to use original filename"}),e(f,{name:"save_as",value:i.save_as,className:"mt-1 block w-full",autoComplete:"save_as",handleChange:a=>n("save_as",a.target.value),maxLength:64}),e(h,{message:m.save_as,className:"mt-2"})]})]}),e(P,{className:"inline-flex items-center px-5 py-2.5 mt-4 sm:mt-6 text-sm font-medium text-center text-white bg-primary-700 rounded-lg focus:ring-4 focus:ring-primary-200 dark:focus:ring-primary-900 hover:bg-primary-800",processing:w,children:"Download"})]}),e(T,{value:N})]})})]})]})}export{X as default}; diff --git a/public/build/assets/CreateDownload-e4031443.js b/public/build/assets/CreateDownload-e4031443.js deleted file mode 100644 index 0aa0e1e..0000000 --- a/public/build/assets/CreateDownload-e4031443.js +++ /dev/null @@ -1 +0,0 @@ -import{A as D}from"./AuthenticatedLayout-b0ac98cc.js";import{u as p,b as k,r as l,j as t,a as e,H as I}from"./app-7082a047.js";import{I as u}from"./InputLabel-04829bce.js";import{T as f,I as h}from"./TextInput-38986df9.js";import{P}from"./PrimaryButton-aae876dd.js";import{R as S}from"./Alert-af0dbb46.js";import{A as B,e as _}from"./index.esm-eebfcfab.js";import{B as C}from"./BackButton-c0685269.js";import{T as F}from"./TealButton-9ca5476f.js";import{P as T}from"./ProgressBar-e6470a9f.js";import{a as E}from"./axios-4a70c6fc.js";import"./ApplicationLogo-db4f8950.js";import"./transition-eb04b526.js";import"./Toast-a9c7a83a.js";import"./Table-13305096.js";function X({auth:g}){const r=p().props.resource,v=p().props.alert,{data:n,setData:i,post:x,processing:w,reset:j,errors:m}=k({filepath:"",save_as:""}),[o,d]=l.useState(!1),[N,c]=l.useState(null);async function y(a){return await(await E.get(route("sftp.download-to-server.progress",a.id))).data}l.useEffect(()=>{let a;return o?a=setInterval(()=>{y(r).then(s=>{c(s.progress)})},500):o||(c(null),clearInterval(a)),()=>clearInterval(a)},[o]);const b=a=>{a.preventDefault(),x(route("sftp.download-to-server",r.id),{onStart:s=>{d(!0)},onFinish:s=>{d(!1)}})};return t(D,{auth:g,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Download file to server"}),children:[e(I,{title:"Download file to server"}),t("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[t("div",{className:"flex flex-wrap gap-2 mb-4",children:[e(C,{href:route("sftp.show",r.id),children:"Back to SFTP connection"}),t(F,{href:route("downloaded.index"),children:[e(B,{className:"mr-2 h-5 w-5"}),"Downloaded files"]})]}),e(S,{details:v}),e("section",{className:"bg-white/50 dark:bg-gray-700 rounded-lg shadow-sm",children:t("div",{className:"py-6 px-4 mx-auto max-w-7xl",children:[t("div",{className:"flex items-center justify-between mb-4",children:[e("h1",{className:"text-2xl font-bold text-gray-800 dark:text-white",children:"Download file from SFTP to this server"}),e("small",{className:"text-end",children:e(_,{className:"md:ml-3 ml-2 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer",onClick:a=>window.location.href=route("server.show",r.server.id),title:"Go to server"})})]}),t("form",{onSubmit:b,children:[t("div",{className:"grid gap-2 sm:grid-cols-1 md:grid-cols-6 sm:gap-4",children:[t("div",{className:"md:col-span-4 col-span-6",children:[e(u,{forInput:"filepath",value:"Full file path and name"}),e(f,{name:"filepath",value:n.filepath,className:"mt-1 block w-full",autoComplete:"filepath",handleChange:a=>i("filepath",a.target.value),maxLength:255}),e(h,{message:m.filepath,className:"mt-2"})]}),t("div",{className:"md:col-span-2 col-span-6",children:[e(u,{forInput:"save_as",value:"Save as (leave empty to use original filename"}),e(f,{name:"save_as",value:n.save_as,className:"mt-1 block w-full",autoComplete:"save_as",handleChange:a=>i("save_as",a.target.value),maxLength:64}),e(h,{message:m.save_as,className:"mt-2"})]})]}),e(P,{className:"inline-flex items-center px-5 py-2.5 mt-4 sm:mt-6 text-sm font-medium text-center text-white bg-primary-700 rounded-lg focus:ring-4 focus:ring-primary-200 dark:focus:ring-primary-900 hover:bg-primary-800",processing:w,children:"Download"})]}),e(T,{value:N})]})})]})]})}export{X as default}; diff --git a/public/build/assets/CreatedAtText-a1e22ba4.js b/public/build/assets/CreatedAtText-a06948df.js similarity index 82% rename from public/build/assets/CreatedAtText-a1e22ba4.js rename to public/build/assets/CreatedAtText-a06948df.js index 81b7111..65d65e8 100644 --- a/public/build/assets/CreatedAtText-a1e22ba4.js +++ b/public/build/assets/CreatedAtText-a06948df.js @@ -1 +1 @@ -import{j as m,a as s}from"./app-7082a047.js";import{f as d}from"./index-9b0dda6f.js";function i({created_at:t,string_format:e="hh:mma do LLL yyyy",pre_text:a="Created:"}){let r=d(new Date(t),e);return m("p",{className:"my-4 text-md leading-none text-gray-900 dark:text-white",children:[s("span",{className:"font-light",children:a})," ",r]})}export{i as C}; +import{j as m,a as s}from"./app-a8d4275f.js";import{f as d}from"./index-9b0dda6f.js";function i({created_at:t,string_format:e="hh:mma do LLL yyyy",pre_text:a="Created:"}){let r=d(new Date(t),e);return m("p",{className:"my-4 text-md leading-none text-gray-900 dark:text-white",children:[s("span",{className:"font-light",children:a})," ",r]})}export{i as C}; diff --git a/public/build/assets/DangerButton-a6bef65a.js b/public/build/assets/DangerButton-dd3abfc4.js similarity index 87% rename from public/build/assets/DangerButton-a6bef65a.js rename to public/build/assets/DangerButton-dd3abfc4.js index f43cc3a..15b781f 100644 --- a/public/build/assets/DangerButton-a6bef65a.js +++ b/public/build/assets/DangerButton-dd3abfc4.js @@ -1 +1 @@ -import{a as i}from"./app-7082a047.js";function a({type:t="submit",className:r="",processing:e,children:n,onClick:o}){return i("button",{type:t,onClick:o,className:`inline-flex items-center px-4 py-2 bg-red-600 border border-transparent rounded-md font-semibold text-xs text-white uppercase tracking-widest hover:bg-red-500 active:bg-red-700 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2 transition ease-in-out duration-150 ${e&&"opacity-25"} `+r,disabled:e,children:n})}export{a as D}; +import{a as i}from"./app-a8d4275f.js";function a({type:t="submit",className:r="",processing:e,children:n,onClick:o}){return i("button",{type:t,onClick:o,className:`inline-flex items-center px-4 py-2 bg-red-600 border border-transparent rounded-md font-semibold text-xs text-white uppercase tracking-widest hover:bg-red-500 active:bg-red-700 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2 transition ease-in-out duration-150 ${e&&"opacity-25"} `+r,disabled:e,children:n})}export{a as D}; diff --git a/public/build/assets/Dashboard-28f30d59.js b/public/build/assets/Dashboard-27286ec0.js similarity index 90% rename from public/build/assets/Dashboard-28f30d59.js rename to public/build/assets/Dashboard-27286ec0.js index a6a880b..9438d3a 100644 --- a/public/build/assets/Dashboard-28f30d59.js +++ b/public/build/assets/Dashboard-27286ec0.js @@ -1 +1 @@ -import{A as c}from"./AuthenticatedLayout-b0ac98cc.js";import{a as e,j as r,u as i,H as m,F as x}from"./app-7082a047.js";import{T as t}from"./Table-13305096.js";import{A as h}from"./AddButton-bf9b47af.js";import{f as u}from"./index-9b0dda6f.js";import"./ApplicationLogo-db4f8950.js";import"./transition-eb04b526.js";import"./index.esm-eebfcfab.js";function s({route:d,text:o="text",value:a=123}){return e("div",{className:"w-full max-w-xs overflow-hidden bg-white rounded-lg shadow-md dark:bg-gray-700",children:r("div",{className:"py-5 text-center",children:[e("a",{href:d,className:"block text-2xl font-bold text-gray-800 dark:text-white",tabIndex:"0",role:"link",children:a}),e("span",{className:"text-sm text-gray-700 dark:text-gray-200",children:o})]})})}function g({}){return r("div",{className:"py-5",children:[e("h1",{className:"block text-4xl font-bold text-gray-800 dark:text-white",tabIndex:"0",role:"link",children:"Welcome to surcuri"}),e("p",{className:"text-sm text-gray-700 dark:text-gray-200 my-2",children:"It seems your installation was a success!"}),e("p",{className:"text-sm text-gray-700 dark:text-gray-200 my-2",children:"If you come across any errors or issues please submit them to the Github."}),e("div",{className:"flex flex-wrap gap-2 my-4",children:e(h,{href:route("server.create"),children:"Add a server"})})]})}function C({auth:d}){const o=i().props.auth.user,a=i().props.counts,n=i().props.RecentActions;return r(c,{auth:d,header:r("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:["Hello ",o.name]}),children:[e(m,{title:"Dashboard"}),a.servers>0?r(x,{children:[e("div",{className:"mt-6 px-1 md:px-2 mx-auto max-w-7xl",children:r("div",{className:"grid grid-cols-3 sm:grid-cols-8 gap-2 md:gap-3",children:[e(s,{text:"Servers",value:a.servers,route:route("server.index")}),e(s,{text:"Connections",value:a.connections,route:route("connection.index")}),e(s,{text:"Keys",value:a.keys,route:route("key.index")}),e(s,{text:"IPs",value:a.ips,route:route("ip.index")}),e(s,{text:"DBs",value:a.dbs,route:route("db.index")}),e(s,{text:"Pings",value:a.pings,route:route("ping.index")}),e(s,{text:"Commands",value:a.commands,route:route("command.index")}),e(s,{text:"Outputs",value:a.outputs,route:route("outputs.index")})]})}),e("div",{className:"mt-4",children:e("div",{className:"py-4 px-1 md:px-2 mx-auto max-w-7xl",children:r("div",{className:"bg-white dark:bg-gray-700 overflow-hidden rounded-lg shadow-md",children:[e("h2",{className:"px-4 pt-4 font-semibold text-lg text-gray-800 dark:text-white",children:"Recent actions"}),n.length>0?r("div",{children:[e("p",{className:"pl-4 pb-4 text-sm text-blue-500",children:e("a",{href:route("log.index"),children:"View all"})}),r(t,{className:"px-4",children:[r(t.Head,{className:"bg-gray-200 dark:bg-gray-900 rounded-0",children:[e(t.HeadCell,{className:"text-gray-900 dark:text-gray-100",children:"When"}),e(t.HeadCell,{className:"text-gray-900 dark:text-gray-100",children:"Resource"}),e(t.HeadCell,{className:"text-gray-900 dark:text-gray-100",children:"Action"}),e(t.HeadCell,{className:"text-gray-900 dark:text-gray-100 overflow-x-scroll w-40",children:"Message"})]}),e(t.Body,{className:"divide-y",children:n.map(l=>r(t.Row,{className:"bg-white dark:border-gray-800 dark:bg-gray-700",children:[e(t.Cell,{className:"whitespace-nowrap font-medium text-gray-700 dark:text-gray-200",children:u(new Date(l.created_at),"hh:mm:ssa do LLL yyyy")}),e(t.Cell,{className:"whitespace-nowrap font-medium text-gray-900 dark:text-white",children:l.resource_type}),e(t.Cell,{className:"whitespace-nowrap font-medium text-gray-900 dark:text-white",children:l.action}),e(t.Cell,{className:"whitespace-nowrap font-medium text-gray-900 dark:text-white overflow-x-scroll w-40",children:l.message})]},l.id))})]})]}):e("p",{className:"pl-4 pb-4 text-sm text-blue-500",children:"No logs yet"})]})})})]}):e("div",{className:"mt-4 max-w-7xl mx-auto sm:px-6 lg:px-8",children:e(g,{})})]})}export{C as default}; +import{A as c}from"./AuthenticatedLayout-c4be06bd.js";import{a as e,j as r,u as i,H as m,F as x}from"./app-a8d4275f.js";import{T as t}from"./Table-f19b692a.js";import{A as h}from"./AddButton-35ed8727.js";import{f as u}from"./index-9b0dda6f.js";import"./ApplicationLogo-ae419612.js";import"./transition-fbe58e1e.js";import"./index.esm-2010c99b.js";function s({route:d,text:o="text",value:a=123}){return e("div",{className:"w-full max-w-xs overflow-hidden bg-white rounded-lg shadow-md dark:bg-gray-700",children:r("div",{className:"py-5 text-center",children:[e("a",{href:d,className:"block text-2xl font-bold text-gray-800 dark:text-white",tabIndex:"0",role:"link",children:a}),e("span",{className:"text-sm text-gray-700 dark:text-gray-200",children:o})]})})}function g({}){return r("div",{className:"py-5",children:[e("h1",{className:"block text-4xl font-bold text-gray-800 dark:text-white",tabIndex:"0",role:"link",children:"Welcome to surcuri"}),e("p",{className:"text-sm text-gray-700 dark:text-gray-200 my-2",children:"It seems your installation was a success!"}),e("p",{className:"text-sm text-gray-700 dark:text-gray-200 my-2",children:"If you come across any errors or issues please submit them to the Github."}),e("div",{className:"flex flex-wrap gap-2 my-4",children:e(h,{href:route("server.create"),children:"Add a server"})})]})}function C({auth:d}){const o=i().props.auth.user,a=i().props.counts,n=i().props.RecentActions;return r(c,{auth:d,header:r("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:["Hello ",o.name]}),children:[e(m,{title:"Dashboard"}),a.servers>0?r(x,{children:[e("div",{className:"mt-6 px-1 md:px-2 mx-auto max-w-7xl",children:r("div",{className:"grid grid-cols-3 sm:grid-cols-8 gap-2 md:gap-3",children:[e(s,{text:"Servers",value:a.servers,route:route("server.index")}),e(s,{text:"Connections",value:a.connections,route:route("connection.index")}),e(s,{text:"Keys",value:a.keys,route:route("key.index")}),e(s,{text:"IPs",value:a.ips,route:route("ip.index")}),e(s,{text:"DBs",value:a.dbs,route:route("db.index")}),e(s,{text:"Pings",value:a.pings,route:route("ping.index")}),e(s,{text:"Commands",value:a.commands,route:route("command.index")}),e(s,{text:"Outputs",value:a.outputs,route:route("outputs.index")})]})}),e("div",{className:"mt-4",children:e("div",{className:"py-4 px-1 md:px-2 mx-auto max-w-7xl",children:r("div",{className:"bg-white dark:bg-gray-700 overflow-hidden rounded-lg shadow-md",children:[e("h2",{className:"px-4 pt-4 font-semibold text-lg text-gray-800 dark:text-white",children:"Recent actions"}),n.length>0?r("div",{children:[e("p",{className:"pl-4 pb-4 text-sm text-blue-500",children:e("a",{href:route("log.index"),children:"View all"})}),r(t,{className:"px-4",children:[r(t.Head,{className:"bg-gray-200 dark:bg-gray-900 rounded-0",children:[e(t.HeadCell,{className:"text-gray-900 dark:text-gray-100",children:"When"}),e(t.HeadCell,{className:"text-gray-900 dark:text-gray-100",children:"Resource"}),e(t.HeadCell,{className:"text-gray-900 dark:text-gray-100",children:"Action"}),e(t.HeadCell,{className:"text-gray-900 dark:text-gray-100 overflow-x-scroll w-40",children:"Message"})]}),e(t.Body,{className:"divide-y",children:n.map(l=>r(t.Row,{className:"bg-white dark:border-gray-800 dark:bg-gray-700",children:[e(t.Cell,{className:"whitespace-nowrap font-medium text-gray-700 dark:text-gray-200",children:u(new Date(l.created_at),"hh:mm:ssa do LLL yyyy")}),e(t.Cell,{className:"whitespace-nowrap font-medium text-gray-900 dark:text-white",children:l.resource_type}),e(t.Cell,{className:"whitespace-nowrap font-medium text-gray-900 dark:text-white",children:l.action}),e(t.Cell,{className:"whitespace-nowrap font-medium text-gray-900 dark:text-white overflow-x-scroll w-40",children:l.message})]},l.id))})]})]}):e("p",{className:"pl-4 pb-4 text-sm text-blue-500",children:"No logs yet"})]})})})]}):e("div",{className:"mt-4 max-w-7xl mx-auto sm:px-6 lg:px-8",children:e(g,{})})]})}export{C as default}; diff --git a/public/build/assets/DeleteUserForm-44981bd0.js b/public/build/assets/DeleteUserForm-dd56dadc.js similarity index 99% rename from public/build/assets/DeleteUserForm-44981bd0.js rename to public/build/assets/DeleteUserForm-dd56dadc.js index 0c74426..1ec15c7 100644 --- a/public/build/assets/DeleteUserForm-44981bd0.js +++ b/public/build/assets/DeleteUserForm-dd56dadc.js @@ -1 +1 @@ -import{R as y,r as u,j as A,F as Xe,e as ze,f as le,a as h,b as Je}from"./app-7082a047.js";import{D as we}from"./DangerButton-a6bef65a.js";import{T as Qe,I as Ze}from"./TextInput-38986df9.js";import{I as et}from"./InputLabel-04829bce.js";import{l as J,s as _,a as I,u as O,b as de,D as x,X as S,o as $,y as T,p as tt,c as Q,f as xe,T as nt,d as rt,S as ye,C as ot,e as K,t as te}from"./transition-eb04b526.js";var Ee;let H=(Ee=y.useId)!=null?Ee:function(){let e=J(),[t,n]=y.useState(e?()=>_.nextId():null);return I(()=>{t===null&&n(_.nextId())},[t]),t!=null?""+t:void 0};function Se(e){return _.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let ae=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var C=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(C||{}),Pe=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Pe||{}),lt=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(lt||{});function at(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(ae)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var Te=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Te||{});function it(e,t=0){var n;return e===((n=Se(e))==null?void 0:n.body)?!1:O(t,{[0](){return e.matches(ae)},[1](){let r=e;for(;r!==null;){if(r.matches(ae))return!0;r=r.parentElement}return!1}})}var ut=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(ut||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function R(e){e==null||e.focus({preventScroll:!0})}let st=["textarea","input"].join(",");function ct(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,st))!=null?n:!1}function dt(e,t=n=>n){return e.slice().sort((n,r)=>{let l=t(n),a=t(r);if(l===null||a===null)return 0;let o=l.compareDocumentPosition(a);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function q(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:l=[]}={}){let a=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,o=Array.isArray(e)?n?dt(e):e:at(e);l.length>0&&o.length>1&&(o=o.filter(w=>!l.includes(w))),r=r??a.activeElement;let i=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),s=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,o.indexOf(r))-1;if(t&4)return Math.max(0,o.indexOf(r))+1;if(t&8)return o.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=t&32?{preventScroll:!0}:{},c=0,f=o.length,m;do{if(c>=f||c+f<=0)return 0;let w=s+c;if(t&16)w=(w+f)%f;else{if(w<0)return 3;if(w>=f)return 1}m=o[w],m==null||m.focus(d),c+=i}while(m!==a.activeElement);return t&6&&ct(m)&&m.select(),2}function ne(e,t,n){let r=de(t);u.useEffect(()=>{function l(a){r.current(a)}return document.addEventListener(e,l,n),()=>document.removeEventListener(e,l,n)},[e,n])}function ft(e,t,n=!0){let r=u.useRef(!1);u.useEffect(()=>{requestAnimationFrame(()=>{r.current=n})},[n]);function l(o,i){if(!r.current||o.defaultPrevented)return;let s=function c(f){return typeof f=="function"?c(f()):Array.isArray(f)||f instanceof Set?f:[f]}(e),d=i(o);if(d!==null&&d.getRootNode().contains(d)){for(let c of s){if(c===null)continue;let f=c instanceof HTMLElement?c:c.current;if(f!=null&&f.contains(d)||o.composed&&o.composedPath().includes(f))return}return!it(d,Te.Loose)&&d.tabIndex!==-1&&o.preventDefault(),t(o,d)}}let a=u.useRef(null);ne("mousedown",o=>{var i,s;r.current&&(a.current=((s=(i=o.composedPath)==null?void 0:i.call(o))==null?void 0:s[0])||o.target)},!0),ne("click",o=>{a.current&&(l(o,()=>a.current),a.current=null)},!0),ne("blur",o=>l(o,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function mt(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(t==null?void 0:t.getAttribute("disabled"))==="";return r&&pt(n)?!1:r}function pt(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}let ht="div";var X=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(X||{});function vt(e,t){let{features:n=1,...r}=e,l={ref:t,"aria-hidden":(n&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return S({ourProps:l,theirProps:r,slot:{},defaultTag:ht,name:"Hidden"})}let ie=x(vt);var De=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(De||{});function fe(e,t){let n=u.useRef([]),r=$(e);u.useEffect(()=>{let l=[...n.current];for(let[a,o]of t.entries())if(n.current[a]!==o){let i=r(t,l);return n.current=t,i}},[r,...t])}function gt(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function wt(e,t,n){let r=de(t);u.useEffect(()=>{function l(a){r.current(a)}return window.addEventListener(e,l,n),()=>window.removeEventListener(e,l,n)},[e,n])}var j=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(j||{});function yt(){let e=u.useRef(0);return wt("keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function Z(...e){return u.useMemo(()=>Se(...e),[...e])}function Le(e,t,n,r){let l=de(n);u.useEffect(()=>{e=e??window;function a(o){l.current(o)}return e.addEventListener(t,a,r),()=>e.removeEventListener(t,a,r)},[e,t,r])}function Et(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}function Fe(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.current)n.current instanceof HTMLElement&&t.add(n.current);return t}let bt="div";var Ae=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(Ae||{});function $t(e,t){let n=u.useRef(null),r=T(n,t),{initialFocus:l,containers:a,features:o=30,...i}=e;J()||(o=1);let s=Z(n);Pt({ownerDocument:s},!!(o&16));let d=Tt({ownerDocument:s,container:n,initialFocus:l},!!(o&2));Dt({ownerDocument:s,container:n,containers:a,previousActiveElement:d},!!(o&8));let c=yt(),f=$(v=>{let P=n.current;P&&(L=>L())(()=>{O(c.current,{[j.Forwards]:()=>{q(P,C.First,{skipElements:[v.relatedTarget]})},[j.Backwards]:()=>{q(P,C.Last,{skipElements:[v.relatedTarget]})}})})}),m=tt(),w=u.useRef(!1),D={ref:r,onKeyDown(v){v.key=="Tab"&&(w.current=!0,m.requestAnimationFrame(()=>{w.current=!1}))},onBlur(v){let P=Fe(a);n.current instanceof HTMLElement&&P.add(n.current);let L=v.relatedTarget;L instanceof HTMLElement&&L.dataset.headlessuiFocusGuard!=="true"&&(Ce(P,L)||(w.current?q(n.current,O(c.current,{[j.Forwards]:()=>C.Next,[j.Backwards]:()=>C.Previous})|C.WrapAround,{relativeTo:v.target}):v.target instanceof HTMLElement&&R(v.target)))}};return A(Xe,{children:[!!(o&4)&&y.createElement(ie,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:f,features:X.Focusable}),S({ourProps:D,theirProps:i,defaultTag:bt,name:"FocusTrap"}),!!(o&4)&&y.createElement(ie,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:f,features:X.Focusable})]})}let xt=x($t),B=Object.assign(xt,{features:Ae}),F=[];Et(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&F[0]!==t.target&&(F.unshift(t.target),F=F.filter(n=>n!=null&&n.isConnected),F.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function St(e=!0){let t=u.useRef(F.slice());return fe(([n],[r])=>{r===!0&&n===!1&&Q(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=F.slice())},[e,F,t]),$(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function Pt({ownerDocument:e},t){let n=St(t);fe(()=>{t||(e==null?void 0:e.activeElement)===(e==null?void 0:e.body)&&R(n())},[t]);let r=u.useRef(!1);u.useEffect(()=>(r.current=!1,()=>{r.current=!0,Q(()=>{r.current&&R(n())})}),[])}function Tt({ownerDocument:e,container:t,initialFocus:n},r){let l=u.useRef(null),a=xe();return fe(()=>{if(!r)return;let o=t.current;o&&Q(()=>{if(!a.current)return;let i=e==null?void 0:e.activeElement;if(n!=null&&n.current){if((n==null?void 0:n.current)===i){l.current=i;return}}else if(o.contains(i)){l.current=i;return}n!=null&&n.current?R(n.current):q(o,C.First)===Pe.Error&&console.warn("There are no focusable elements inside the "),l.current=e==null?void 0:e.activeElement})},[r]),l}function Dt({ownerDocument:e,container:t,containers:n,previousActiveElement:r},l){let a=xe();Le(e==null?void 0:e.defaultView,"focus",o=>{if(!l||!a.current)return;let i=Fe(n);t.current instanceof HTMLElement&&i.add(t.current);let s=r.current;if(!s)return;let d=o.target;d&&d instanceof HTMLElement?Ce(i,d)?(r.current=d,R(d)):(o.preventDefault(),o.stopPropagation(),R(s)):R(r.current)},!0)}function Ce(e,t){for(let n of e)if(n.contains(t))return!0;return!1}let Ne=u.createContext(!1);function Lt(){return u.useContext(Ne)}function ue(e){return y.createElement(Ne.Provider,{value:e.force},e.children)}function Ft(e){let t=Lt(),n=u.useContext(Re),r=Z(e),[l,a]=u.useState(()=>{if(!t&&n!==null||_.isServer)return null;let o=r==null?void 0:r.getElementById("headlessui-portal-root");if(o)return o;if(r===null)return null;let i=r.createElement("div");return i.setAttribute("id","headlessui-portal-root"),r.body.appendChild(i)});return u.useEffect(()=>{l!==null&&(r!=null&&r.body.contains(l)||r==null||r.body.appendChild(l))},[l,r]),u.useEffect(()=>{t||n!==null&&a(n.current)},[n,a,t]),l}let At=u.Fragment;function Ct(e,t){let n=e,r=u.useRef(null),l=T(nt(c=>{r.current=c}),t),a=Z(r),o=Ft(r),[i]=u.useState(()=>{var c;return _.isServer?null:(c=a==null?void 0:a.createElement("div"))!=null?c:null}),s=J(),d=u.useRef(!1);return I(()=>{if(d.current=!1,!(!o||!i))return o.contains(i)||(i.setAttribute("data-headlessui-portal",""),o.appendChild(i)),()=>{d.current=!0,Q(()=>{var c;d.current&&(!o||!i||(i instanceof Node&&o.contains(i)&&o.removeChild(i),o.childNodes.length<=0&&((c=o.parentElement)==null||c.removeChild(o))))})}},[o,i]),s?!o||!i?null:ze.createPortal(S({ourProps:{ref:l},theirProps:n,defaultTag:At,name:"Portal"}),i):null}let Nt=u.Fragment,Re=u.createContext(null);function Rt(e,t){let{target:n,...r}=e,l={ref:T(t)};return y.createElement(Re.Provider,{value:n},S({ourProps:l,theirProps:r,defaultTag:Nt,name:"Popover.Group"}))}let Mt=x(Ct),kt=x(Rt),se=Object.assign(Mt,{Group:kt}),Me=u.createContext(null);function ke(){let e=u.useContext(Me);if(e===null){let t=new Error("You used a component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,ke),t}return e}function Ot(){let[e,t]=u.useState([]);return[e.length>0?e.join(" "):void 0,u.useMemo(()=>function(n){let r=$(a=>(t(o=>[...o,a]),()=>t(o=>{let i=o.slice(),s=i.indexOf(a);return s!==-1&&i.splice(s,1),i}))),l=u.useMemo(()=>({register:r,slot:n.slot,name:n.name,props:n.props}),[r,n.slot,n.name,n.props]);return y.createElement(Me.Provider,{value:l},n.children)},[t])]}let It="p";function Ht(e,t){let n=H(),{id:r=`headlessui-description-${n}`,...l}=e,a=ke(),o=T(t);I(()=>a.register(r),[r,a.register]);let i={ref:o,...a.props,id:r};return S({ourProps:i,theirProps:l,slot:a.slot||{},defaultTag:It,name:a.name||"Description"})}let Bt=x(Ht),Ut=Object.assign(Bt,{}),me=u.createContext(()=>{});me.displayName="StackContext";var ce=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(ce||{});function jt(){return u.useContext(me)}function _t({children:e,onUpdate:t,type:n,element:r,enabled:l}){let a=jt(),o=$((...i)=>{t==null||t(...i),a(...i)});return I(()=>{let i=l===void 0||l===!0;return i&&o(0,n,r),()=>{i&&o(1,n,r)}},[o,n,r,l]),y.createElement(me.Provider,{value:o},e)}function Wt(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const Vt=typeof Object.is=="function"?Object.is:Wt,{useState:Yt,useEffect:Gt,useLayoutEffect:Kt,useDebugValue:qt}=le;function Xt(e,t,n){const r=t(),[{inst:l},a]=Yt({inst:{value:r,getSnapshot:t}});return Kt(()=>{l.value=r,l.getSnapshot=t,re(l)&&a({inst:l})},[e,r,t]),Gt(()=>(re(l)&&a({inst:l}),e(()=>{re(l)&&a({inst:l})})),[e]),qt(r),r}function re(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!Vt(n,r)}catch{return!0}}function zt(e,t,n){return t()}const Jt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Qt=!Jt,Zt=Qt?zt:Xt,en="useSyncExternalStore"in le?(e=>e.useSyncExternalStore)(le):Zt;function tn(e){return en(e.subscribe,e.getSnapshot,e.getSnapshot)}function nn(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(l){return r.add(l),()=>r.delete(l)},dispatch(l,...a){let o=t[l].call(n,...a);o&&(n=o,r.forEach(i=>i()))}}}function rn(){let e;return{before({doc:t}){var n;let r=t.documentElement;e=((n=t.defaultView)!=null?n:window).innerWidth-r.clientWidth},after({doc:t,d:n}){let r=t.documentElement,l=r.clientWidth-r.offsetWidth,a=e-l;n.style(r,"paddingRight",`${a}px`)}}}function on(){if(!gt())return{};let e;return{before(){e=window.pageYOffset},after({doc:t,d:n,meta:r}){function l(o){return r.containers.flatMap(i=>i()).some(i=>i.contains(o))}n.style(t.body,"marginTop",`-${e}px`),window.scrollTo(0,0);let a=null;n.addEventListener(t,"click",o=>{if(o.target instanceof HTMLElement)try{let i=o.target.closest("a");if(!i)return;let{hash:s}=new URL(i.href),d=t.querySelector(s);d&&!l(d)&&(a=d)}catch{}},!0),n.addEventListener(t,"touchmove",o=>{o.target instanceof HTMLElement&&!l(o.target)&&o.preventDefault()},{passive:!1}),n.add(()=>{window.scrollTo(0,window.pageYOffset+e),a&&a.isConnected&&(a.scrollIntoView({block:"nearest"}),a=null)})}}}function ln(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function an(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let N=nn(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:rt(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:an(n)},l=[on(),rn(),ln()];l.forEach(({before:a})=>a==null?void 0:a(r)),l.forEach(({after:a})=>a==null?void 0:a(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});N.subscribe(()=>{let e=N.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",l=n.count!==0;(l&&!r||!l&&r)&&N.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&N.dispatch("TEARDOWN",n)}});function un(e,t,n){let r=tn(N),l=e?r.get(e):void 0,a=l?l.count>0:!1;return I(()=>{if(!(!e||!t))return N.dispatch("PUSH",e,n),()=>N.dispatch("POP",e,n)},[t,e]),a}let oe=new Map,U=new Map;function be(e,t=!0){I(()=>{var n;if(!t)return;let r=typeof e=="function"?e():e.current;if(!r)return;function l(){var o;if(!r)return;let i=(o=U.get(r))!=null?o:1;if(i===1?U.delete(r):U.set(r,i-1),i!==1)return;let s=oe.get(r);s&&(s["aria-hidden"]===null?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",s["aria-hidden"]),r.inert=s.inert,oe.delete(r))}let a=(n=U.get(r))!=null?n:0;return U.set(r,a+1),a!==0||(oe.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0),l},[e,t])}var sn=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(sn||{}),cn=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(cn||{});let dn={[0](e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},z=u.createContext(null);z.displayName="DialogContext";function W(e){let t=u.useContext(z);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,W),n}return t}function fn(e,t,n=()=>[document.body]){un(e,t,r=>{var l;return{containers:[...(l=r.containers)!=null?l:[],n]}})}function mn(e,t){return O(t.type,dn,e,t)}let pn="div",hn=ye.RenderStrategy|ye.Static;function vn(e,t){let n=H(),{id:r=`headlessui-dialog-${n}`,open:l,onClose:a,initialFocus:o,__demoMode:i=!1,...s}=e,[d,c]=u.useState(0),f=ot();l===void 0&&f!==null&&(l=(f&K.Open)===K.Open);let m=u.useRef(null),w=T(m,t),D=u.useRef(null),v=Z(m),P=e.hasOwnProperty("open")||f!==null,L=e.hasOwnProperty("onClose");if(!P&&!L)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!P)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!L)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(typeof l!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${l}`);if(typeof a!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${a}`);let E=l?0:1,[M,Oe]=u.useReducer(mn,{titleId:null,descriptionId:null,panelRef:u.createRef()}),k=$(()=>a(!1)),pe=$(p=>Oe({type:0,id:p})),V=J()?i?!1:E===0:!1,Y=d>1,he=u.useContext(z)!==null,Ie=Y?"parent":"leaf",ve=f!==null?(f&K.Closing)===K.Closing:!1,He=(()=>he||ve?!1:V)(),Be=u.useCallback(()=>{var p,b;return(b=Array.from((p=v==null?void 0:v.querySelectorAll("body > *"))!=null?p:[]).find(g=>g.id==="headlessui-portal-root"?!1:g.contains(D.current)&&g instanceof HTMLElement))!=null?b:null},[D]);be(Be,He);let Ue=(()=>Y?!0:V)(),je=u.useCallback(()=>{var p,b;return(b=Array.from((p=v==null?void 0:v.querySelectorAll("[data-headlessui-portal]"))!=null?p:[]).find(g=>g.contains(D.current)&&g instanceof HTMLElement))!=null?b:null},[D]);be(je,Ue);let ee=$(()=>{var p,b;return[...Array.from((p=v==null?void 0:v.querySelectorAll("html > *, body > *, [data-headlessui-portal]"))!=null?p:[]).filter(g=>!(g===document.body||g===document.head||!(g instanceof HTMLElement)||g.contains(D.current)||M.panelRef.current&&g.contains(M.panelRef.current))),(b=M.panelRef.current)!=null?b:m.current]}),_e=(()=>!(!V||Y))();ft(()=>ee(),k,_e);let We=(()=>!(Y||E!==0))();Le(v==null?void 0:v.defaultView,"keydown",p=>{We&&(p.defaultPrevented||p.key===De.Escape&&(p.preventDefault(),p.stopPropagation(),k()))});let Ve=(()=>!(ve||E!==0||he))();fn(v,Ve,ee),u.useEffect(()=>{if(E!==0||!m.current)return;let p=new ResizeObserver(b=>{for(let g of b){let G=g.target.getBoundingClientRect();G.x===0&&G.y===0&&G.width===0&&G.height===0&&k()}});return p.observe(m.current),()=>p.disconnect()},[E,m,k]);let[Ye,Ge]=Ot(),Ke=u.useMemo(()=>[{dialogState:E,close:k,setTitleId:pe},M],[E,M,k,pe]),ge=u.useMemo(()=>({open:E===0}),[E]),qe={ref:w,id:r,role:"dialog","aria-modal":E===0?!0:void 0,"aria-labelledby":M.titleId,"aria-describedby":Ye};return y.createElement(_t,{type:"Dialog",enabled:E===0,element:m,onUpdate:$((p,b)=>{b==="Dialog"&&O(p,{[ce.Add]:()=>c(g=>g+1),[ce.Remove]:()=>c(g=>g-1)})})},y.createElement(ue,{force:!0},y.createElement(se,null,y.createElement(z.Provider,{value:Ke},y.createElement(se.Group,{target:m},y.createElement(ue,{force:!1},y.createElement(Ge,{slot:ge,name:"Dialog.Description"},h(B,{initialFocus:o,containers:ee,features:V?O(Ie,{parent:B.features.RestoreFocus,leaf:B.features.All&~B.features.FocusLock}):B.features.None,children:S({ourProps:qe,theirProps:s,slot:ge,defaultTag:pn,features:hn,visible:E===0,name:"Dialog"})}))))))),y.createElement(ie,{features:X.Hidden,ref:D}))}let gn="div";function wn(e,t){let n=H(),{id:r=`headlessui-dialog-overlay-${n}`,...l}=e,[{dialogState:a,close:o}]=W("Dialog.Overlay"),i=T(t),s=$(c=>{if(c.target===c.currentTarget){if(mt(c.currentTarget))return c.preventDefault();c.preventDefault(),c.stopPropagation(),o()}}),d=u.useMemo(()=>({open:a===0}),[a]);return S({ourProps:{ref:i,id:r,"aria-hidden":!0,onClick:s},theirProps:l,slot:d,defaultTag:gn,name:"Dialog.Overlay"})}let yn="div";function En(e,t){let n=H(),{id:r=`headlessui-dialog-backdrop-${n}`,...l}=e,[{dialogState:a},o]=W("Dialog.Backdrop"),i=T(t);u.useEffect(()=>{if(o.panelRef.current===null)throw new Error("A component is being used, but a component is missing.")},[o.panelRef]);let s=u.useMemo(()=>({open:a===0}),[a]);return h(ue,{force:!0,children:h(se,{children:S({ourProps:{ref:i,id:r,"aria-hidden":!0},theirProps:l,slot:s,defaultTag:yn,name:"Dialog.Backdrop"})})})}let bn="div";function $n(e,t){let n=H(),{id:r=`headlessui-dialog-panel-${n}`,...l}=e,[{dialogState:a},o]=W("Dialog.Panel"),i=T(t,o.panelRef),s=u.useMemo(()=>({open:a===0}),[a]),d=$(c=>{c.stopPropagation()});return S({ourProps:{ref:i,id:r,onClick:d},theirProps:l,slot:s,defaultTag:bn,name:"Dialog.Panel"})}let xn="h2";function Sn(e,t){let n=H(),{id:r=`headlessui-dialog-title-${n}`,...l}=e,[{dialogState:a,setTitleId:o}]=W("Dialog.Title"),i=T(t);u.useEffect(()=>(o(r),()=>o(null)),[r,o]);let s=u.useMemo(()=>({open:a===0}),[a]);return S({ourProps:{ref:i,id:r},theirProps:l,slot:s,defaultTag:xn,name:"Dialog.Title"})}let Pn=x(vn),Tn=x(En),Dn=x($n),Ln=x(wn),Fn=x(Sn),$e=Object.assign(Pn,{Backdrop:Tn,Panel:Dn,Overlay:Ln,Title:Fn,Description:Ut});function An({children:e,show:t=!1,maxWidth:n="2xl",closeable:r=!0,onClose:l=()=>{}}){const a=()=>{r&&l()},o={sm:"sm:max-w-sm",md:"sm:max-w-md",lg:"sm:max-w-lg",xl:"sm:max-w-xl","2xl":"sm:max-w-2xl"}[n];return h(te,{show:t,as:u.Fragment,leave:"duration-200",children:A($e,{as:"div",id:"modal",className:"fixed inset-0 flex overflow-y-auto px-4 py-6 sm:px-0 items-center z-50 transform transition-all",onClose:a,children:[h(te.Child,{as:u.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:h("div",{className:"absolute inset-0 bg-gray-500/75"})}),h(te.Child,{as:u.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:h($e.Panel,{className:`mb-6 bg-white rounded-lg overflow-hidden shadow-xl transform transition-all sm:w-full sm:mx-auto ${o}`,children:e})})]})})}function Cn({type:e="button",className:t="",processing:n,children:r,onClick:l}){return h("button",{type:e,onClick:l,className:`inline-flex items-center px-4 py-2 bg-white border border-gray-300 rounded-md font-semibold text-xs text-gray-700 uppercase tracking-widest shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 disabled:opacity-25 transition ease-in-out duration-150 ${n&&"opacity-25"} `+t,disabled:n,children:r})}function In({className:e}){const[t,n]=u.useState(!1),r=u.useRef(),{data:l,setData:a,delete:o,processing:i,reset:s,errors:d}=Je({password:""}),c=()=>{n(!0)},f=w=>{w.preventDefault(),o(route("profile.destroy"),{preserveScroll:!0,onSuccess:()=>m(),onError:()=>r.current.focus(),onFinish:()=>s()})},m=()=>{n(!1),s()};return A("section",{className:`space-y-6 ${e}`,children:[A("header",{children:[h("h2",{className:"text-lg font-medium text-gray-900 dark:text-white",children:"Delete Account"}),h("p",{className:"mt-1 text-sm text-gray-600 dark:text-gray-400",children:"Once your account is deleted, all of its resources and data will be permanently deleted. Before deleting your account, please download any data or information that you wish to retain."})]}),h(we,{onClick:c,children:"Delete Account"}),h(An,{show:t,onClose:m,children:A("form",{onSubmit:f,className:"p-6 dark:bg-gray-800",children:[h("h2",{className:"text-lg font-medium text-gray-900 dark:text-gray-200",children:"Are you sure you want to delete your account?"}),h("p",{className:"mt-1 text-sm text-gray-600 dark:text-gray-400",children:"Once your account is deleted, all of its resources and data will be permanently deleted. Please enter your password to confirm you would like to permanently delete your account."}),A("div",{className:"mt-6",children:[h(et,{for:"password",value:"Password",className:"sr-only"}),h(Qe,{id:"password",type:"password",name:"password",ref:r,value:l.password,handleChange:w=>a("password",w.target.value),className:"mt-1 block w-100",isFocused:!0,placeholder:"Password"}),h(Ze,{message:d.password,className:"mt-2"})]}),A("div",{className:"mt-6 flex justify-end",children:[h(Cn,{onClick:m,children:"Cancel"}),h(we,{className:"ml-3",processing:i,children:"Delete Account"})]})]})})]})}export{In as default}; +import{R as y,r as u,j as A,F as Xe,e as ze,f as le,a as h,b as Je}from"./app-a8d4275f.js";import{D as we}from"./DangerButton-dd3abfc4.js";import{T as Qe,I as Ze}from"./TextInput-1e9aadbd.js";import{I as et}from"./InputLabel-a7ee92ff.js";import{l as J,s as _,a as I,u as O,b as de,D as x,X as S,o as $,y as T,p as tt,c as Q,f as xe,T as nt,d as rt,S as ye,C as ot,e as K,t as te}from"./transition-fbe58e1e.js";var Ee;let H=(Ee=y.useId)!=null?Ee:function(){let e=J(),[t,n]=y.useState(e?()=>_.nextId():null);return I(()=>{t===null&&n(_.nextId())},[t]),t!=null?""+t:void 0};function Se(e){return _.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let ae=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var C=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(C||{}),Pe=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Pe||{}),lt=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(lt||{});function at(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(ae)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var Te=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Te||{});function it(e,t=0){var n;return e===((n=Se(e))==null?void 0:n.body)?!1:O(t,{[0](){return e.matches(ae)},[1](){let r=e;for(;r!==null;){if(r.matches(ae))return!0;r=r.parentElement}return!1}})}var ut=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(ut||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function R(e){e==null||e.focus({preventScroll:!0})}let st=["textarea","input"].join(",");function ct(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,st))!=null?n:!1}function dt(e,t=n=>n){return e.slice().sort((n,r)=>{let l=t(n),a=t(r);if(l===null||a===null)return 0;let o=l.compareDocumentPosition(a);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function q(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:l=[]}={}){let a=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,o=Array.isArray(e)?n?dt(e):e:at(e);l.length>0&&o.length>1&&(o=o.filter(w=>!l.includes(w))),r=r??a.activeElement;let i=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),s=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,o.indexOf(r))-1;if(t&4)return Math.max(0,o.indexOf(r))+1;if(t&8)return o.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=t&32?{preventScroll:!0}:{},c=0,f=o.length,m;do{if(c>=f||c+f<=0)return 0;let w=s+c;if(t&16)w=(w+f)%f;else{if(w<0)return 3;if(w>=f)return 1}m=o[w],m==null||m.focus(d),c+=i}while(m!==a.activeElement);return t&6&&ct(m)&&m.select(),2}function ne(e,t,n){let r=de(t);u.useEffect(()=>{function l(a){r.current(a)}return document.addEventListener(e,l,n),()=>document.removeEventListener(e,l,n)},[e,n])}function ft(e,t,n=!0){let r=u.useRef(!1);u.useEffect(()=>{requestAnimationFrame(()=>{r.current=n})},[n]);function l(o,i){if(!r.current||o.defaultPrevented)return;let s=function c(f){return typeof f=="function"?c(f()):Array.isArray(f)||f instanceof Set?f:[f]}(e),d=i(o);if(d!==null&&d.getRootNode().contains(d)){for(let c of s){if(c===null)continue;let f=c instanceof HTMLElement?c:c.current;if(f!=null&&f.contains(d)||o.composed&&o.composedPath().includes(f))return}return!it(d,Te.Loose)&&d.tabIndex!==-1&&o.preventDefault(),t(o,d)}}let a=u.useRef(null);ne("mousedown",o=>{var i,s;r.current&&(a.current=((s=(i=o.composedPath)==null?void 0:i.call(o))==null?void 0:s[0])||o.target)},!0),ne("click",o=>{a.current&&(l(o,()=>a.current),a.current=null)},!0),ne("blur",o=>l(o,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function mt(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(t==null?void 0:t.getAttribute("disabled"))==="";return r&&pt(n)?!1:r}function pt(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}let ht="div";var X=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(X||{});function vt(e,t){let{features:n=1,...r}=e,l={ref:t,"aria-hidden":(n&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return S({ourProps:l,theirProps:r,slot:{},defaultTag:ht,name:"Hidden"})}let ie=x(vt);var De=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(De||{});function fe(e,t){let n=u.useRef([]),r=$(e);u.useEffect(()=>{let l=[...n.current];for(let[a,o]of t.entries())if(n.current[a]!==o){let i=r(t,l);return n.current=t,i}},[r,...t])}function gt(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function wt(e,t,n){let r=de(t);u.useEffect(()=>{function l(a){r.current(a)}return window.addEventListener(e,l,n),()=>window.removeEventListener(e,l,n)},[e,n])}var j=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(j||{});function yt(){let e=u.useRef(0);return wt("keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function Z(...e){return u.useMemo(()=>Se(...e),[...e])}function Le(e,t,n,r){let l=de(n);u.useEffect(()=>{e=e??window;function a(o){l.current(o)}return e.addEventListener(t,a,r),()=>e.removeEventListener(t,a,r)},[e,t,r])}function Et(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}function Fe(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.current)n.current instanceof HTMLElement&&t.add(n.current);return t}let bt="div";var Ae=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(Ae||{});function $t(e,t){let n=u.useRef(null),r=T(n,t),{initialFocus:l,containers:a,features:o=30,...i}=e;J()||(o=1);let s=Z(n);Pt({ownerDocument:s},!!(o&16));let d=Tt({ownerDocument:s,container:n,initialFocus:l},!!(o&2));Dt({ownerDocument:s,container:n,containers:a,previousActiveElement:d},!!(o&8));let c=yt(),f=$(v=>{let P=n.current;P&&(L=>L())(()=>{O(c.current,{[j.Forwards]:()=>{q(P,C.First,{skipElements:[v.relatedTarget]})},[j.Backwards]:()=>{q(P,C.Last,{skipElements:[v.relatedTarget]})}})})}),m=tt(),w=u.useRef(!1),D={ref:r,onKeyDown(v){v.key=="Tab"&&(w.current=!0,m.requestAnimationFrame(()=>{w.current=!1}))},onBlur(v){let P=Fe(a);n.current instanceof HTMLElement&&P.add(n.current);let L=v.relatedTarget;L instanceof HTMLElement&&L.dataset.headlessuiFocusGuard!=="true"&&(Ce(P,L)||(w.current?q(n.current,O(c.current,{[j.Forwards]:()=>C.Next,[j.Backwards]:()=>C.Previous})|C.WrapAround,{relativeTo:v.target}):v.target instanceof HTMLElement&&R(v.target)))}};return A(Xe,{children:[!!(o&4)&&y.createElement(ie,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:f,features:X.Focusable}),S({ourProps:D,theirProps:i,defaultTag:bt,name:"FocusTrap"}),!!(o&4)&&y.createElement(ie,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:f,features:X.Focusable})]})}let xt=x($t),B=Object.assign(xt,{features:Ae}),F=[];Et(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&F[0]!==t.target&&(F.unshift(t.target),F=F.filter(n=>n!=null&&n.isConnected),F.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function St(e=!0){let t=u.useRef(F.slice());return fe(([n],[r])=>{r===!0&&n===!1&&Q(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=F.slice())},[e,F,t]),$(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function Pt({ownerDocument:e},t){let n=St(t);fe(()=>{t||(e==null?void 0:e.activeElement)===(e==null?void 0:e.body)&&R(n())},[t]);let r=u.useRef(!1);u.useEffect(()=>(r.current=!1,()=>{r.current=!0,Q(()=>{r.current&&R(n())})}),[])}function Tt({ownerDocument:e,container:t,initialFocus:n},r){let l=u.useRef(null),a=xe();return fe(()=>{if(!r)return;let o=t.current;o&&Q(()=>{if(!a.current)return;let i=e==null?void 0:e.activeElement;if(n!=null&&n.current){if((n==null?void 0:n.current)===i){l.current=i;return}}else if(o.contains(i)){l.current=i;return}n!=null&&n.current?R(n.current):q(o,C.First)===Pe.Error&&console.warn("There are no focusable elements inside the "),l.current=e==null?void 0:e.activeElement})},[r]),l}function Dt({ownerDocument:e,container:t,containers:n,previousActiveElement:r},l){let a=xe();Le(e==null?void 0:e.defaultView,"focus",o=>{if(!l||!a.current)return;let i=Fe(n);t.current instanceof HTMLElement&&i.add(t.current);let s=r.current;if(!s)return;let d=o.target;d&&d instanceof HTMLElement?Ce(i,d)?(r.current=d,R(d)):(o.preventDefault(),o.stopPropagation(),R(s)):R(r.current)},!0)}function Ce(e,t){for(let n of e)if(n.contains(t))return!0;return!1}let Ne=u.createContext(!1);function Lt(){return u.useContext(Ne)}function ue(e){return y.createElement(Ne.Provider,{value:e.force},e.children)}function Ft(e){let t=Lt(),n=u.useContext(Re),r=Z(e),[l,a]=u.useState(()=>{if(!t&&n!==null||_.isServer)return null;let o=r==null?void 0:r.getElementById("headlessui-portal-root");if(o)return o;if(r===null)return null;let i=r.createElement("div");return i.setAttribute("id","headlessui-portal-root"),r.body.appendChild(i)});return u.useEffect(()=>{l!==null&&(r!=null&&r.body.contains(l)||r==null||r.body.appendChild(l))},[l,r]),u.useEffect(()=>{t||n!==null&&a(n.current)},[n,a,t]),l}let At=u.Fragment;function Ct(e,t){let n=e,r=u.useRef(null),l=T(nt(c=>{r.current=c}),t),a=Z(r),o=Ft(r),[i]=u.useState(()=>{var c;return _.isServer?null:(c=a==null?void 0:a.createElement("div"))!=null?c:null}),s=J(),d=u.useRef(!1);return I(()=>{if(d.current=!1,!(!o||!i))return o.contains(i)||(i.setAttribute("data-headlessui-portal",""),o.appendChild(i)),()=>{d.current=!0,Q(()=>{var c;d.current&&(!o||!i||(i instanceof Node&&o.contains(i)&&o.removeChild(i),o.childNodes.length<=0&&((c=o.parentElement)==null||c.removeChild(o))))})}},[o,i]),s?!o||!i?null:ze.createPortal(S({ourProps:{ref:l},theirProps:n,defaultTag:At,name:"Portal"}),i):null}let Nt=u.Fragment,Re=u.createContext(null);function Rt(e,t){let{target:n,...r}=e,l={ref:T(t)};return y.createElement(Re.Provider,{value:n},S({ourProps:l,theirProps:r,defaultTag:Nt,name:"Popover.Group"}))}let Mt=x(Ct),kt=x(Rt),se=Object.assign(Mt,{Group:kt}),Me=u.createContext(null);function ke(){let e=u.useContext(Me);if(e===null){let t=new Error("You used a component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,ke),t}return e}function Ot(){let[e,t]=u.useState([]);return[e.length>0?e.join(" "):void 0,u.useMemo(()=>function(n){let r=$(a=>(t(o=>[...o,a]),()=>t(o=>{let i=o.slice(),s=i.indexOf(a);return s!==-1&&i.splice(s,1),i}))),l=u.useMemo(()=>({register:r,slot:n.slot,name:n.name,props:n.props}),[r,n.slot,n.name,n.props]);return y.createElement(Me.Provider,{value:l},n.children)},[t])]}let It="p";function Ht(e,t){let n=H(),{id:r=`headlessui-description-${n}`,...l}=e,a=ke(),o=T(t);I(()=>a.register(r),[r,a.register]);let i={ref:o,...a.props,id:r};return S({ourProps:i,theirProps:l,slot:a.slot||{},defaultTag:It,name:a.name||"Description"})}let Bt=x(Ht),Ut=Object.assign(Bt,{}),me=u.createContext(()=>{});me.displayName="StackContext";var ce=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(ce||{});function jt(){return u.useContext(me)}function _t({children:e,onUpdate:t,type:n,element:r,enabled:l}){let a=jt(),o=$((...i)=>{t==null||t(...i),a(...i)});return I(()=>{let i=l===void 0||l===!0;return i&&o(0,n,r),()=>{i&&o(1,n,r)}},[o,n,r,l]),y.createElement(me.Provider,{value:o},e)}function Wt(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const Vt=typeof Object.is=="function"?Object.is:Wt,{useState:Yt,useEffect:Gt,useLayoutEffect:Kt,useDebugValue:qt}=le;function Xt(e,t,n){const r=t(),[{inst:l},a]=Yt({inst:{value:r,getSnapshot:t}});return Kt(()=>{l.value=r,l.getSnapshot=t,re(l)&&a({inst:l})},[e,r,t]),Gt(()=>(re(l)&&a({inst:l}),e(()=>{re(l)&&a({inst:l})})),[e]),qt(r),r}function re(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!Vt(n,r)}catch{return!0}}function zt(e,t,n){return t()}const Jt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Qt=!Jt,Zt=Qt?zt:Xt,en="useSyncExternalStore"in le?(e=>e.useSyncExternalStore)(le):Zt;function tn(e){return en(e.subscribe,e.getSnapshot,e.getSnapshot)}function nn(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(l){return r.add(l),()=>r.delete(l)},dispatch(l,...a){let o=t[l].call(n,...a);o&&(n=o,r.forEach(i=>i()))}}}function rn(){let e;return{before({doc:t}){var n;let r=t.documentElement;e=((n=t.defaultView)!=null?n:window).innerWidth-r.clientWidth},after({doc:t,d:n}){let r=t.documentElement,l=r.clientWidth-r.offsetWidth,a=e-l;n.style(r,"paddingRight",`${a}px`)}}}function on(){if(!gt())return{};let e;return{before(){e=window.pageYOffset},after({doc:t,d:n,meta:r}){function l(o){return r.containers.flatMap(i=>i()).some(i=>i.contains(o))}n.style(t.body,"marginTop",`-${e}px`),window.scrollTo(0,0);let a=null;n.addEventListener(t,"click",o=>{if(o.target instanceof HTMLElement)try{let i=o.target.closest("a");if(!i)return;let{hash:s}=new URL(i.href),d=t.querySelector(s);d&&!l(d)&&(a=d)}catch{}},!0),n.addEventListener(t,"touchmove",o=>{o.target instanceof HTMLElement&&!l(o.target)&&o.preventDefault()},{passive:!1}),n.add(()=>{window.scrollTo(0,window.pageYOffset+e),a&&a.isConnected&&(a.scrollIntoView({block:"nearest"}),a=null)})}}}function ln(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function an(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let N=nn(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:rt(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:an(n)},l=[on(),rn(),ln()];l.forEach(({before:a})=>a==null?void 0:a(r)),l.forEach(({after:a})=>a==null?void 0:a(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});N.subscribe(()=>{let e=N.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",l=n.count!==0;(l&&!r||!l&&r)&&N.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&N.dispatch("TEARDOWN",n)}});function un(e,t,n){let r=tn(N),l=e?r.get(e):void 0,a=l?l.count>0:!1;return I(()=>{if(!(!e||!t))return N.dispatch("PUSH",e,n),()=>N.dispatch("POP",e,n)},[t,e]),a}let oe=new Map,U=new Map;function be(e,t=!0){I(()=>{var n;if(!t)return;let r=typeof e=="function"?e():e.current;if(!r)return;function l(){var o;if(!r)return;let i=(o=U.get(r))!=null?o:1;if(i===1?U.delete(r):U.set(r,i-1),i!==1)return;let s=oe.get(r);s&&(s["aria-hidden"]===null?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",s["aria-hidden"]),r.inert=s.inert,oe.delete(r))}let a=(n=U.get(r))!=null?n:0;return U.set(r,a+1),a!==0||(oe.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0),l},[e,t])}var sn=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(sn||{}),cn=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(cn||{});let dn={[0](e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},z=u.createContext(null);z.displayName="DialogContext";function W(e){let t=u.useContext(z);if(t===null){let n=new Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,W),n}return t}function fn(e,t,n=()=>[document.body]){un(e,t,r=>{var l;return{containers:[...(l=r.containers)!=null?l:[],n]}})}function mn(e,t){return O(t.type,dn,e,t)}let pn="div",hn=ye.RenderStrategy|ye.Static;function vn(e,t){let n=H(),{id:r=`headlessui-dialog-${n}`,open:l,onClose:a,initialFocus:o,__demoMode:i=!1,...s}=e,[d,c]=u.useState(0),f=ot();l===void 0&&f!==null&&(l=(f&K.Open)===K.Open);let m=u.useRef(null),w=T(m,t),D=u.useRef(null),v=Z(m),P=e.hasOwnProperty("open")||f!==null,L=e.hasOwnProperty("onClose");if(!P&&!L)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!P)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!L)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(typeof l!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${l}`);if(typeof a!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${a}`);let E=l?0:1,[M,Oe]=u.useReducer(mn,{titleId:null,descriptionId:null,panelRef:u.createRef()}),k=$(()=>a(!1)),pe=$(p=>Oe({type:0,id:p})),V=J()?i?!1:E===0:!1,Y=d>1,he=u.useContext(z)!==null,Ie=Y?"parent":"leaf",ve=f!==null?(f&K.Closing)===K.Closing:!1,He=(()=>he||ve?!1:V)(),Be=u.useCallback(()=>{var p,b;return(b=Array.from((p=v==null?void 0:v.querySelectorAll("body > *"))!=null?p:[]).find(g=>g.id==="headlessui-portal-root"?!1:g.contains(D.current)&&g instanceof HTMLElement))!=null?b:null},[D]);be(Be,He);let Ue=(()=>Y?!0:V)(),je=u.useCallback(()=>{var p,b;return(b=Array.from((p=v==null?void 0:v.querySelectorAll("[data-headlessui-portal]"))!=null?p:[]).find(g=>g.contains(D.current)&&g instanceof HTMLElement))!=null?b:null},[D]);be(je,Ue);let ee=$(()=>{var p,b;return[...Array.from((p=v==null?void 0:v.querySelectorAll("html > *, body > *, [data-headlessui-portal]"))!=null?p:[]).filter(g=>!(g===document.body||g===document.head||!(g instanceof HTMLElement)||g.contains(D.current)||M.panelRef.current&&g.contains(M.panelRef.current))),(b=M.panelRef.current)!=null?b:m.current]}),_e=(()=>!(!V||Y))();ft(()=>ee(),k,_e);let We=(()=>!(Y||E!==0))();Le(v==null?void 0:v.defaultView,"keydown",p=>{We&&(p.defaultPrevented||p.key===De.Escape&&(p.preventDefault(),p.stopPropagation(),k()))});let Ve=(()=>!(ve||E!==0||he))();fn(v,Ve,ee),u.useEffect(()=>{if(E!==0||!m.current)return;let p=new ResizeObserver(b=>{for(let g of b){let G=g.target.getBoundingClientRect();G.x===0&&G.y===0&&G.width===0&&G.height===0&&k()}});return p.observe(m.current),()=>p.disconnect()},[E,m,k]);let[Ye,Ge]=Ot(),Ke=u.useMemo(()=>[{dialogState:E,close:k,setTitleId:pe},M],[E,M,k,pe]),ge=u.useMemo(()=>({open:E===0}),[E]),qe={ref:w,id:r,role:"dialog","aria-modal":E===0?!0:void 0,"aria-labelledby":M.titleId,"aria-describedby":Ye};return y.createElement(_t,{type:"Dialog",enabled:E===0,element:m,onUpdate:$((p,b)=>{b==="Dialog"&&O(p,{[ce.Add]:()=>c(g=>g+1),[ce.Remove]:()=>c(g=>g-1)})})},y.createElement(ue,{force:!0},y.createElement(se,null,y.createElement(z.Provider,{value:Ke},y.createElement(se.Group,{target:m},y.createElement(ue,{force:!1},y.createElement(Ge,{slot:ge,name:"Dialog.Description"},h(B,{initialFocus:o,containers:ee,features:V?O(Ie,{parent:B.features.RestoreFocus,leaf:B.features.All&~B.features.FocusLock}):B.features.None,children:S({ourProps:qe,theirProps:s,slot:ge,defaultTag:pn,features:hn,visible:E===0,name:"Dialog"})}))))))),y.createElement(ie,{features:X.Hidden,ref:D}))}let gn="div";function wn(e,t){let n=H(),{id:r=`headlessui-dialog-overlay-${n}`,...l}=e,[{dialogState:a,close:o}]=W("Dialog.Overlay"),i=T(t),s=$(c=>{if(c.target===c.currentTarget){if(mt(c.currentTarget))return c.preventDefault();c.preventDefault(),c.stopPropagation(),o()}}),d=u.useMemo(()=>({open:a===0}),[a]);return S({ourProps:{ref:i,id:r,"aria-hidden":!0,onClick:s},theirProps:l,slot:d,defaultTag:gn,name:"Dialog.Overlay"})}let yn="div";function En(e,t){let n=H(),{id:r=`headlessui-dialog-backdrop-${n}`,...l}=e,[{dialogState:a},o]=W("Dialog.Backdrop"),i=T(t);u.useEffect(()=>{if(o.panelRef.current===null)throw new Error("A component is being used, but a component is missing.")},[o.panelRef]);let s=u.useMemo(()=>({open:a===0}),[a]);return h(ue,{force:!0,children:h(se,{children:S({ourProps:{ref:i,id:r,"aria-hidden":!0},theirProps:l,slot:s,defaultTag:yn,name:"Dialog.Backdrop"})})})}let bn="div";function $n(e,t){let n=H(),{id:r=`headlessui-dialog-panel-${n}`,...l}=e,[{dialogState:a},o]=W("Dialog.Panel"),i=T(t,o.panelRef),s=u.useMemo(()=>({open:a===0}),[a]),d=$(c=>{c.stopPropagation()});return S({ourProps:{ref:i,id:r,onClick:d},theirProps:l,slot:s,defaultTag:bn,name:"Dialog.Panel"})}let xn="h2";function Sn(e,t){let n=H(),{id:r=`headlessui-dialog-title-${n}`,...l}=e,[{dialogState:a,setTitleId:o}]=W("Dialog.Title"),i=T(t);u.useEffect(()=>(o(r),()=>o(null)),[r,o]);let s=u.useMemo(()=>({open:a===0}),[a]);return S({ourProps:{ref:i,id:r},theirProps:l,slot:s,defaultTag:xn,name:"Dialog.Title"})}let Pn=x(vn),Tn=x(En),Dn=x($n),Ln=x(wn),Fn=x(Sn),$e=Object.assign(Pn,{Backdrop:Tn,Panel:Dn,Overlay:Ln,Title:Fn,Description:Ut});function An({children:e,show:t=!1,maxWidth:n="2xl",closeable:r=!0,onClose:l=()=>{}}){const a=()=>{r&&l()},o={sm:"sm:max-w-sm",md:"sm:max-w-md",lg:"sm:max-w-lg",xl:"sm:max-w-xl","2xl":"sm:max-w-2xl"}[n];return h(te,{show:t,as:u.Fragment,leave:"duration-200",children:A($e,{as:"div",id:"modal",className:"fixed inset-0 flex overflow-y-auto px-4 py-6 sm:px-0 items-center z-50 transform transition-all",onClose:a,children:[h(te.Child,{as:u.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:h("div",{className:"absolute inset-0 bg-gray-500/75"})}),h(te.Child,{as:u.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",enterTo:"opacity-100 translate-y-0 sm:scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 translate-y-0 sm:scale-100",leaveTo:"opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",children:h($e.Panel,{className:`mb-6 bg-white rounded-lg overflow-hidden shadow-xl transform transition-all sm:w-full sm:mx-auto ${o}`,children:e})})]})})}function Cn({type:e="button",className:t="",processing:n,children:r,onClick:l}){return h("button",{type:e,onClick:l,className:`inline-flex items-center px-4 py-2 bg-white border border-gray-300 rounded-md font-semibold text-xs text-gray-700 uppercase tracking-widest shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 disabled:opacity-25 transition ease-in-out duration-150 ${n&&"opacity-25"} `+t,disabled:n,children:r})}function In({className:e}){const[t,n]=u.useState(!1),r=u.useRef(),{data:l,setData:a,delete:o,processing:i,reset:s,errors:d}=Je({password:""}),c=()=>{n(!0)},f=w=>{w.preventDefault(),o(route("profile.destroy"),{preserveScroll:!0,onSuccess:()=>m(),onError:()=>r.current.focus(),onFinish:()=>s()})},m=()=>{n(!1),s()};return A("section",{className:`space-y-6 ${e}`,children:[A("header",{children:[h("h2",{className:"text-lg font-medium text-gray-900 dark:text-white",children:"Delete Account"}),h("p",{className:"mt-1 text-sm text-gray-600 dark:text-gray-400",children:"Once your account is deleted, all of its resources and data will be permanently deleted. Before deleting your account, please download any data or information that you wish to retain."})]}),h(we,{onClick:c,children:"Delete Account"}),h(An,{show:t,onClose:m,children:A("form",{onSubmit:f,className:"p-6 dark:bg-gray-800",children:[h("h2",{className:"text-lg font-medium text-gray-900 dark:text-gray-200",children:"Are you sure you want to delete your account?"}),h("p",{className:"mt-1 text-sm text-gray-600 dark:text-gray-400",children:"Once your account is deleted, all of its resources and data will be permanently deleted. Please enter your password to confirm you would like to permanently delete your account."}),A("div",{className:"mt-6",children:[h(et,{for:"password",value:"Password",className:"sr-only"}),h(Qe,{id:"password",type:"password",name:"password",ref:r,value:l.password,handleChange:w=>a("password",w.target.value),className:"mt-1 block w-100",isFocused:!0,placeholder:"Password"}),h(Ze,{message:d.password,className:"mt-2"})]}),A("div",{className:"mt-6 flex justify-end",children:[h(Cn,{onClick:m,children:"Cancel"}),h(we,{className:"ml-3",processing:i,children:"Delete Account"})]})]})})]})}export{In as default}; diff --git a/public/build/assets/Edit-51282f38.js b/public/build/assets/Edit-07062319.js similarity index 91% rename from public/build/assets/Edit-51282f38.js rename to public/build/assets/Edit-07062319.js index 1747b02..6540ce6 100644 --- a/public/build/assets/Edit-51282f38.js +++ b/public/build/assets/Edit-07062319.js @@ -1 +1 @@ -import{A as v}from"./AuthenticatedLayout-b0ac98cc.js";import{u as t,b as g,j as i,a as n,H as _}from"./app-7082a047.js";import{I as o}from"./InputLabel-04829bce.js";import{T as f,I as k}from"./TextInput-38986df9.js";import{S as s}from"./Toast-a9c7a83a.js";import"./Table-13305096.js";import{B as y}from"./BackButton-c0685269.js";import{U as b}from"./UpdateButton-5ed5f67f.js";import"./ApplicationLogo-db4f8950.js";import"./transition-eb04b526.js";import"./index.esm-eebfcfab.js";function U({auth:c}){const r=t().props.connections,a=t().props.resource,{data:l,setData:d,patch:u,processing:p,errors:h}=g({connection1_id:typeof a.assigned[0]<"u"?a.assigned[0].connection_id:null,connection2_id:typeof a.assigned[1]<"u"?a.assigned[1].connection_id:null,connection3_id:typeof a.assigned[2]<"u"?a.assigned[2].connection_id:null,connection4_id:typeof a.assigned[3]<"u"?a.assigned[3].connection_id:null,connection5_id:typeof a.assigned[4]<"u"?a.assigned[4].connection_id:null,connection6_id:typeof a.assigned[5]<"u"?a.assigned[5].connection_id:null,connection7_id:typeof a.assigned[6]<"u"?a.assigned[6].connection_id:null,connection8_id:typeof a.assigned[7]<"u"?a.assigned[7].connection_id:null,title:a.title}),m=e=>{e.preventDefault(),u(route("ping-group.update",a.id)),navigate(route("ping-group.index"))};return i(v,{auth:c,header:n("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Edit ping group"}),children:[n(_,{title:"Edit ping group"}),i("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[n("div",{className:"flex flex-wrap gap-2 mb-4",children:n(y,{href:route("ping-group.index"),children:"Back to ping groups"})}),n("section",{className:"bg-white dark:bg-gray-700 overflow-hidden shadow-sm sm:rounded-lg p-2 sm:p-6",children:i("form",{onSubmit:m,children:[i("div",{className:"grid gap-2 grid-cols-1 sm:grid-cols-6",children:[i("div",{className:"col-span-5 mb-3",children:[n(o,{forInput:"title",value:"Title"}),n(f,{name:"title",value:l.title,className:"mt-1 block w-full",autoComplete:"title",handleChange:e=>d("title",e.target.value),maxLength:64,required:!0}),n(k,{message:h.title,className:"mt-2"})]}),i("div",{className:"sm:col-span-2 col-span-6",children:[n("div",{className:"mb-2 block",children:n(o,{forInput:"connection1_id",value:"Server 1"})}),i(s,{onChange:e=>d("connection1_id",e.target.value),name:"connection1_id",required:!0,value:l.connection1_id,children:[n("option",{value:"",children:"Choose one"}),r.map(e=>i("option",{value:e.id,children:[e.server.hostname," (",e.server.title,") ",e.username," with ",e.key_id===null?"password":"key"]},e.id))]})]}),i("div",{className:"sm:col-span-2 col-span-6",children:[n("div",{className:"mb-2 block",children:n(o,{forInput:"connection2_id",value:"Server 2"})}),i(s,{onChange:e=>d("connection2_id",e.target.value),name:"connection2_id",required:!0,value:l.connection2_id,handleChange:e=>d("connection2_id",e.target.value),children:[n("option",{value:"",children:"Choose one"}),r.map(e=>i("option",{value:e.id,children:[e.server.hostname," (",e.server.title,") ",e.username," with ",e.key_id===null?"password":"key"]},e.id))]})]}),i("div",{className:"sm:col-span-2 col-span-6",children:[n("div",{className:"mb-2 block",children:n(o,{forInput:"connection3_id",value:"Server 3"})}),i(s,{onChange:e=>d("connection3_id",e.target.value),name:"connection3_id",value:l.connection3_id,handleChange:e=>d("connection3_id",e.target.value),children:[n("option",{value:"",children:"Choose one"}),r.map(e=>i("option",{value:e.id,children:[e.server.hostname," (",e.server.title,") ",e.username," with ",e.key_id===null?"password":"key"]},e.id))]})]}),i("div",{className:"sm:col-span-2 col-span-6",children:[n("div",{className:"mb-2 block",children:n(o,{forInput:"connection4_id",value:"Server 4"})}),i(s,{onChange:e=>d("connection4_id",e.target.value),name:"connection4_id",value:l.connection4_id,handleChange:e=>d("connection4_id",e.target.value),children:[n("option",{value:"",children:"Choose one"}),r.map(e=>i("option",{value:e.id,children:[e.server.hostname," (",e.server.title,") ",e.username," with ",e.key_id===null?"password":"key"]},e.id))]})]}),i("div",{className:"sm:col-span-2 col-span-6",children:[n("div",{className:"mb-2 block",children:n(o,{forInput:"connection5_id",value:"Server 5"})}),i(s,{onChange:e=>d("connection5_id",e.target.value),name:"connection5_id",value:l.connection5_id,handleChange:e=>d("connection5_id",e.target.value),children:[n("option",{value:"",children:"Choose one"}),r.map(e=>i("option",{value:e.id,children:[e.server.hostname," (",e.server.title,") ",e.username," with ",e.key_id===null?"password":"key"]},e.id))]})]}),i("div",{className:"sm:col-span-2 col-span-6",children:[n("div",{className:"mb-2 block",children:n(o,{forInput:"connection6_id",value:"Server 6"})}),i(s,{onChange:e=>d("connection6_id",e.target.value),name:"connection6_id",value:l.connection6_id,handleChange:e=>d("connection6_id",e.target.value),children:[n("option",{value:"",children:"Choose one"}),r.map(e=>i("option",{value:e.id,children:[e.server.hostname," (",e.server.title,") ",e.username," with ",e.key_id===null?"password":"key"]},e.id))]})]}),i("div",{className:"sm:col-span-2 col-span-6",children:[n("div",{className:"mb-2 block",children:n(o,{forInput:"connection7_id",value:"Server 7"})}),i(s,{onChange:e=>d("connection7_id",e.target.value),name:"connection7_id",value:l.connection7_id,handleChange:e=>d("connection7_id",e.target.value),children:[n("option",{value:"",children:"Choose one"}),r.map(e=>i("option",{value:e.id,children:[e.server.hostname," (",e.server.title,") ",e.username," with ",e.key_id===null?"password":"key"]},e.id))]})]}),i("div",{className:"sm:col-span-2 col-span-6",children:[n("div",{className:"mb-2 block",children:n(o,{forInput:"connection8_id",value:"Server 8"})}),i(s,{onChange:e=>d("connection8_id",e.target.value),name:"connection8_id",value:l.connection8_id,handleChange:e=>d("connection8_id",e.target.value),children:[n("option",{value:"",children:"Choose one"}),r.map(e=>i("option",{value:e.id,children:[e.server.hostname," (",e.server.title,") ",e.username," with ",e.key_id===null?"password":"key"]},e.id))]})]})]}),n(b,{processing:p,children:"Update ping group"})]})})]})]})}export{U as default}; +import{A as v}from"./AuthenticatedLayout-c4be06bd.js";import{u as t,b as g,j as i,a as n,H as _}from"./app-a8d4275f.js";import{I as o}from"./InputLabel-a7ee92ff.js";import{T as f,I as k}from"./TextInput-1e9aadbd.js";import{S as s}from"./Toast-ee00046f.js";import"./Table-f19b692a.js";import{B as y}from"./BackButton-2b60c346.js";import{U as b}from"./UpdateButton-5faf9e0a.js";import"./ApplicationLogo-ae419612.js";import"./transition-fbe58e1e.js";import"./index.esm-2010c99b.js";function U({auth:c}){const r=t().props.connections,a=t().props.resource,{data:l,setData:d,patch:u,processing:p,errors:h}=g({connection1_id:typeof a.assigned[0]<"u"?a.assigned[0].connection_id:null,connection2_id:typeof a.assigned[1]<"u"?a.assigned[1].connection_id:null,connection3_id:typeof a.assigned[2]<"u"?a.assigned[2].connection_id:null,connection4_id:typeof a.assigned[3]<"u"?a.assigned[3].connection_id:null,connection5_id:typeof a.assigned[4]<"u"?a.assigned[4].connection_id:null,connection6_id:typeof a.assigned[5]<"u"?a.assigned[5].connection_id:null,connection7_id:typeof a.assigned[6]<"u"?a.assigned[6].connection_id:null,connection8_id:typeof a.assigned[7]<"u"?a.assigned[7].connection_id:null,title:a.title}),m=e=>{e.preventDefault(),u(route("ping-group.update",a.id)),navigate(route("ping-group.index"))};return i(v,{auth:c,header:n("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Edit ping group"}),children:[n(_,{title:"Edit ping group"}),i("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[n("div",{className:"flex flex-wrap gap-2 mb-4",children:n(y,{href:route("ping-group.index"),children:"Back to ping groups"})}),n("section",{className:"bg-white dark:bg-gray-700 overflow-hidden shadow-sm sm:rounded-lg p-2 sm:p-6",children:i("form",{onSubmit:m,children:[i("div",{className:"grid gap-2 grid-cols-1 sm:grid-cols-6",children:[i("div",{className:"col-span-5 mb-3",children:[n(o,{forInput:"title",value:"Title"}),n(f,{name:"title",value:l.title,className:"mt-1 block w-full",autoComplete:"title",handleChange:e=>d("title",e.target.value),maxLength:64,required:!0}),n(k,{message:h.title,className:"mt-2"})]}),i("div",{className:"sm:col-span-2 col-span-6",children:[n("div",{className:"mb-2 block",children:n(o,{forInput:"connection1_id",value:"Server 1"})}),i(s,{onChange:e=>d("connection1_id",e.target.value),name:"connection1_id",required:!0,value:l.connection1_id,children:[n("option",{value:"",children:"Choose one"}),r.map(e=>i("option",{value:e.id,children:[e.server.hostname," (",e.server.title,") ",e.username," with ",e.key_id===null?"password":"key"]},e.id))]})]}),i("div",{className:"sm:col-span-2 col-span-6",children:[n("div",{className:"mb-2 block",children:n(o,{forInput:"connection2_id",value:"Server 2"})}),i(s,{onChange:e=>d("connection2_id",e.target.value),name:"connection2_id",required:!0,value:l.connection2_id,handleChange:e=>d("connection2_id",e.target.value),children:[n("option",{value:"",children:"Choose one"}),r.map(e=>i("option",{value:e.id,children:[e.server.hostname," (",e.server.title,") ",e.username," with ",e.key_id===null?"password":"key"]},e.id))]})]}),i("div",{className:"sm:col-span-2 col-span-6",children:[n("div",{className:"mb-2 block",children:n(o,{forInput:"connection3_id",value:"Server 3"})}),i(s,{onChange:e=>d("connection3_id",e.target.value),name:"connection3_id",value:l.connection3_id,handleChange:e=>d("connection3_id",e.target.value),children:[n("option",{value:"",children:"Choose one"}),r.map(e=>i("option",{value:e.id,children:[e.server.hostname," (",e.server.title,") ",e.username," with ",e.key_id===null?"password":"key"]},e.id))]})]}),i("div",{className:"sm:col-span-2 col-span-6",children:[n("div",{className:"mb-2 block",children:n(o,{forInput:"connection4_id",value:"Server 4"})}),i(s,{onChange:e=>d("connection4_id",e.target.value),name:"connection4_id",value:l.connection4_id,handleChange:e=>d("connection4_id",e.target.value),children:[n("option",{value:"",children:"Choose one"}),r.map(e=>i("option",{value:e.id,children:[e.server.hostname," (",e.server.title,") ",e.username," with ",e.key_id===null?"password":"key"]},e.id))]})]}),i("div",{className:"sm:col-span-2 col-span-6",children:[n("div",{className:"mb-2 block",children:n(o,{forInput:"connection5_id",value:"Server 5"})}),i(s,{onChange:e=>d("connection5_id",e.target.value),name:"connection5_id",value:l.connection5_id,handleChange:e=>d("connection5_id",e.target.value),children:[n("option",{value:"",children:"Choose one"}),r.map(e=>i("option",{value:e.id,children:[e.server.hostname," (",e.server.title,") ",e.username," with ",e.key_id===null?"password":"key"]},e.id))]})]}),i("div",{className:"sm:col-span-2 col-span-6",children:[n("div",{className:"mb-2 block",children:n(o,{forInput:"connection6_id",value:"Server 6"})}),i(s,{onChange:e=>d("connection6_id",e.target.value),name:"connection6_id",value:l.connection6_id,handleChange:e=>d("connection6_id",e.target.value),children:[n("option",{value:"",children:"Choose one"}),r.map(e=>i("option",{value:e.id,children:[e.server.hostname," (",e.server.title,") ",e.username," with ",e.key_id===null?"password":"key"]},e.id))]})]}),i("div",{className:"sm:col-span-2 col-span-6",children:[n("div",{className:"mb-2 block",children:n(o,{forInput:"connection7_id",value:"Server 7"})}),i(s,{onChange:e=>d("connection7_id",e.target.value),name:"connection7_id",value:l.connection7_id,handleChange:e=>d("connection7_id",e.target.value),children:[n("option",{value:"",children:"Choose one"}),r.map(e=>i("option",{value:e.id,children:[e.server.hostname," (",e.server.title,") ",e.username," with ",e.key_id===null?"password":"key"]},e.id))]})]}),i("div",{className:"sm:col-span-2 col-span-6",children:[n("div",{className:"mb-2 block",children:n(o,{forInput:"connection8_id",value:"Server 8"})}),i(s,{onChange:e=>d("connection8_id",e.target.value),name:"connection8_id",value:l.connection8_id,handleChange:e=>d("connection8_id",e.target.value),children:[n("option",{value:"",children:"Choose one"}),r.map(e=>i("option",{value:e.id,children:[e.server.hostname," (",e.server.title,") ",e.username," with ",e.key_id===null?"password":"key"]},e.id))]})]})]}),n(b,{processing:p,children:"Update ping group"})]})})]})]})}export{U as default}; diff --git a/public/build/assets/Edit-a6037d42.js b/public/build/assets/Edit-1ffa57a3.js similarity index 84% rename from public/build/assets/Edit-a6037d42.js rename to public/build/assets/Edit-1ffa57a3.js index 4478dd7..804cc84 100644 --- a/public/build/assets/Edit-a6037d42.js +++ b/public/build/assets/Edit-1ffa57a3.js @@ -1 +1 @@ -import{A as v}from"./AuthenticatedLayout-b0ac98cc.js";import{u as i,b as f,j as t,a as e,H as w}from"./app-7082a047.js";import{I as n}from"./InputLabel-04829bce.js";import{T as m,I as c}from"./TextInput-38986df9.js";import{U as N}from"./UpdateButton-5ed5f67f.js";import{B as x}from"./BackButton-c0685269.js";import{R as b}from"./Alert-af0dbb46.js";import"./ApplicationLogo-db4f8950.js";import"./transition-eb04b526.js";import"./index.esm-eebfcfab.js";import"./Toast-a9c7a83a.js";import"./Table-13305096.js";function A({auth:d}){const p=i().props.alert,s=i().props.resource,{data:r,setData:o,patch:u,processing:h,errors:l}=f({host:s.host,title:s.title,port:s.port,username:s.username,password:""}),g=a=>{a.preventDefault(),u(route("db.connection.update",s.id)),navigate(route("db.connection.show",s.id))};return t(v,{auth:d,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Edit DB connection"}),children:[e(w,{title:"Edit DB connection"}),t("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(x,{href:route("db.connection.show",s.id),children:"Back to DB connection"})}),e(b,{details:p}),e("section",{className:"bg-white dark:bg-gray-700 overflow-hidden shadow-sm sm:rounded-lg p-2 sm:p-6",children:t("form",{onSubmit:g,children:[t("div",{className:"grid gap-2 sm:grid-cols-1 md:grid-cols-4 sm:gap-4",children:[t("div",{className:"sm:col-span-1 col-span-4",children:[e(n,{forInput:"title",value:"Title"}),e(m,{name:"title",value:r.title,className:"mt-1 block w-full",autoComplete:"title",handleChange:a=>o("title",a.target.value),maxLength:64,required:!0}),e(c,{message:l.title,className:"mt-2"})]}),t("div",{className:"sm:col-span-1 col-span-4",children:[e(n,{forInput:"host",value:"Host"}),e(m,{name:"host",value:r.host,className:"mt-1 block w-full",autoComplete:"host",handleChange:a=>o("host",a.target.value),maxLength:64,required:!0}),e(c,{message:l.host,className:"mt-2"})]}),t("div",{className:"sm:col-span-1 col-span-4",children:[e(n,{forInput:"username",value:"Username"}),e(m,{name:"username",value:r.username,className:"mt-1 block w-full",autoComplete:"username",handleChange:a=>o("username",a.target.value),maxLength:64,required:!0}),e(c,{message:l.username,className:"mt-2"})]}),t("div",{className:"sm:col-span-1 col-span-4",children:[e(n,{forInput:"port",value:"Port"}),e(m,{type:"number",name:"port",className:"mt-1 block w-full",autoComplete:"port",value:r.port,handleChange:a=>o("port",a.target.value),required:!0}),e(c,{message:l.port,className:"mt-2"})]}),t("div",{className:"mt-2 sm:col-span-4 col-span-4",children:[e("p",{className:"text-gray-500 dark:text-gray-400",children:"Passwords are stored encrypted"}),e("p",{className:"text-yellow-500 dark:text-yellow-400",children:"You cannot edit the existing password, it must be re-set"})]}),t("div",{className:"md:col-span-2 col-span-4",children:[e(n,{forInput:"password",value:"Password"}),e(m,{name:"password",className:"mt-1 block w-full",autoComplete:"password",value:r.password,handleChange:a=>o("password",a.target.value),required:!0}),e(c,{message:l.password,className:"mt-2"})]})]}),e(N,{processing:h,children:"Update DB connection"})]})})]})]})}export{A as default}; +import{A as v}from"./AuthenticatedLayout-c4be06bd.js";import{u as i,b as f,j as t,a as e,H as w}from"./app-a8d4275f.js";import{I as n}from"./InputLabel-a7ee92ff.js";import{T as m,I as c}from"./TextInput-1e9aadbd.js";import{U as N}from"./UpdateButton-5faf9e0a.js";import{B as x}from"./BackButton-2b60c346.js";import{R as b}from"./Alert-d503f44b.js";import"./ApplicationLogo-ae419612.js";import"./transition-fbe58e1e.js";import"./index.esm-2010c99b.js";import"./Toast-ee00046f.js";import"./Table-f19b692a.js";function A({auth:d}){const p=i().props.alert,s=i().props.resource,{data:r,setData:o,patch:u,processing:h,errors:l}=f({host:s.host,title:s.title,port:s.port,username:s.username,password:""}),g=a=>{a.preventDefault(),u(route("db.connection.update",s.id)),navigate(route("db.connection.show",s.id))};return t(v,{auth:d,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Edit DB connection"}),children:[e(w,{title:"Edit DB connection"}),t("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(x,{href:route("db.connection.show",s.id),children:"Back to DB connection"})}),e(b,{details:p}),e("section",{className:"bg-white dark:bg-gray-700 overflow-hidden shadow-sm sm:rounded-lg p-2 sm:p-6",children:t("form",{onSubmit:g,children:[t("div",{className:"grid gap-2 sm:grid-cols-1 md:grid-cols-4 sm:gap-4",children:[t("div",{className:"sm:col-span-1 col-span-4",children:[e(n,{forInput:"title",value:"Title"}),e(m,{name:"title",value:r.title,className:"mt-1 block w-full",autoComplete:"title",handleChange:a=>o("title",a.target.value),maxLength:64,required:!0}),e(c,{message:l.title,className:"mt-2"})]}),t("div",{className:"sm:col-span-1 col-span-4",children:[e(n,{forInput:"host",value:"Host"}),e(m,{name:"host",value:r.host,className:"mt-1 block w-full",autoComplete:"host",handleChange:a=>o("host",a.target.value),maxLength:64,required:!0}),e(c,{message:l.host,className:"mt-2"})]}),t("div",{className:"sm:col-span-1 col-span-4",children:[e(n,{forInput:"username",value:"Username"}),e(m,{name:"username",value:r.username,className:"mt-1 block w-full",autoComplete:"username",handleChange:a=>o("username",a.target.value),maxLength:64,required:!0}),e(c,{message:l.username,className:"mt-2"})]}),t("div",{className:"sm:col-span-1 col-span-4",children:[e(n,{forInput:"port",value:"Port"}),e(m,{type:"number",name:"port",className:"mt-1 block w-full",autoComplete:"port",value:r.port,handleChange:a=>o("port",a.target.value),required:!0}),e(c,{message:l.port,className:"mt-2"})]}),t("div",{className:"mt-2 sm:col-span-4 col-span-4",children:[e("p",{className:"text-gray-500 dark:text-gray-400",children:"Passwords are stored encrypted"}),e("p",{className:"text-yellow-500 dark:text-yellow-400",children:"You cannot edit the existing password, it must be re-set"})]}),t("div",{className:"md:col-span-2 col-span-4",children:[e(n,{forInput:"password",value:"Password"}),e(m,{name:"password",className:"mt-1 block w-full",autoComplete:"password",value:r.password,handleChange:a=>o("password",a.target.value),required:!0}),e(c,{message:l.password,className:"mt-2"})]})]}),e(N,{processing:h,children:"Update DB connection"})]})})]})]})}export{A as default}; diff --git a/public/build/assets/Edit-4286d7ec.js b/public/build/assets/Edit-47a8f68f.js similarity index 92% rename from public/build/assets/Edit-4286d7ec.js rename to public/build/assets/Edit-47a8f68f.js index cdd0eed..697affc 100644 --- a/public/build/assets/Edit-4286d7ec.js +++ b/public/build/assets/Edit-47a8f68f.js @@ -1 +1 @@ -import{A as b}from"./AuthenticatedLayout-b0ac98cc.js";import{u as p,b as f,j as l,a as e,H as C}from"./app-7082a047.js";import{I as r}from"./InputLabel-04829bce.js";import{T as m,I as o}from"./TextInput-38986df9.js";import{S as i}from"./Toast-a9c7a83a.js";import"./Table-13305096.js";import{U as y}from"./UpdateButton-5ed5f67f.js";import{R as k}from"./Alert-af0dbb46.js";import{B as w}from"./BackButton-c0685269.js";import"./ApplicationLogo-db4f8950.js";import"./transition-eb04b526.js";import"./index.esm-eebfcfab.js";function E({auth:u}){const d=p().props.alert,s=p().props.resource,h=p().props.types,v=p().props.locations,{data:c,setData:t,patch:g,processing:_,errors:n}=f({title:s.title,hostname:s.hostname,server_type:s.type_id,location:s.location_id,ip:s.ip_ssh.ip,os:s.operating_system,cpu:s.cpu,cpu_cores:s.cpu_cores,cpu_freq:s.cpu_freq,disk_gb:s.disk_gb,ram_mb:s.ram_mb,swap_mb:s.swap_mb,ping_port:s.ping_port,price:s.price,term:s.payment_term,currency:s.currency}),N=a=>{a.preventDefault(),g(route("server.update",s.id))};return l(b,{auth:u,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Edit server"}),children:[e(C,{title:"Edit server"}),l("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(w,{href:route("server.show",s.id),children:"Back to server"})}),e(k,{details:d}),e("div",{className:"bg-white dark:bg-gray-700 overflow-hidden shadow-sm sm:rounded-lg p-2 sm:p-6",children:l("form",{onSubmit:N,children:[l("div",{className:"grid gap-2 sm:grid-cols-1 md:grid-cols-6 sm:gap-4",children:[l("div",{className:"sm:col-span-3 col-span-4",children:[e(r,{forInput:"hostname",value:"Hostname"}),e(m,{name:"hostname",value:c.hostname||"",className:"mt-1 block w-full",autoComplete:"hostname",handleChange:a=>t("hostname",a.target.value),required:!0}),e(o,{message:n.hostname,className:"mt-2"})]}),l("div",{className:"sm:col-span-3 col-span-4",children:[e(r,{forInput:"title",value:"Title"}),e(m,{name:"title",className:"mt-1 block w-full",autoComplete:"title",value:c.title||"",handleChange:a=>t("title",a.target.value),required:!0}),e(o,{message:n.title,className:"mt-2"})]}),l("div",{className:"sm:col-span-1 col-span-4",children:[e("div",{className:"mb-2 block",children:e(r,{forInput:"server_type",value:"Type"})}),l(i,{onChange:a=>t("server_type",a.target.value),name:"server_type",required:!0,value:s.type_id,children:[e("option",{value:"",children:"Choose"}),h.map(a=>e("option",{value:a.id,children:a.name},a.id))]})]}),l("div",{className:"sm:col-span-2 col-span-4",children:[e("div",{className:"mb-2 block",children:e(r,{forInput:"location",value:"Location"})}),l(i,{onChange:a=>t("location",a.target.value),name:"location",required:!0,value:s.location.id,children:[e("option",{value:"",children:"Choose"}),v.map(a=>e("option",{value:a.id,children:a.name},a.id))]})]}),l("div",{className:"sm:col-span-2 col-span-4",children:[e(r,{forInput:"ip",value:"IP address"}),e(m,{name:"ip",className:"mt-1 block w-full",autoComplete:"ip",value:s.ip_ssh.ip||"",handleChange:a=>t("ip",a.target.value),required:!0}),e(o,{message:n.ip,className:"mt-2"})]}),l("div",{className:"sm:col-span-1 col-span-4",children:[e(r,{forInput:"ping_port",value:"Ping port"}),e(m,{type:"number",name:"ping_port",className:"mt-1 block w-full",autoComplete:"ping_port",value:c.ping_port||"",handleChange:a=>t("ping_port",a.target.value)}),e(o,{message:n.ping_port,className:"mt-2"})]}),e("div",{className:"col-span-6 text-center mt-2",children:e("p",{className:"text-gray-400 dark:text-gray-300",children:"The following can be auto filled with the server connection"})}),l("div",{className:"sm:col-span-2 col-span-4",children:[e(r,{forInput:"os",value:"Operating system"}),e(m,{name:"os",className:"mt-1 block w-full",autoComplete:"os",value:c.os||"",handleChange:a=>t("os",a.target.value)}),e(o,{message:n.os,className:"mt-2"})]}),l("div",{className:"sm:col-span-2 col-span-4",children:[e(r,{forInput:"cpu",value:"CPU"}),e(m,{name:"cpu",className:"mt-1 block w-full",autoComplete:"cpu",value:c.cpu||"",handleChange:a=>t("cpu",a.target.value)}),e(o,{message:n.cpu,className:"mt-2"})]}),l("div",{className:"sm:col-span-1 col-span-4",children:[e(r,{forInput:"cpu_cores",value:"Cores"}),e(m,{type:"number",name:"cpu_cores",className:"mt-1 block w-full",autoComplete:"cpu_cores",value:c.cpu_cores||"",handleChange:a=>t("cpu_cores",a.target.value)}),e(o,{message:n.cpu_cores,className:"mt-2"})]}),l("div",{className:"sm:col-span-1 col-span-4",children:[e(r,{forInput:"cpu_freq",value:"Freq"}),e(m,{type:"number",step:"0.01",name:"cpu_freq",className:"mt-1 block w-full",autoComplete:"cpu_freq",value:c.cpu_freq||"",handleChange:a=>t("cpu_freq",a.target.value)}),e(o,{message:n.cpu_freq,className:"mt-2"})]}),l("div",{className:"sm:col-span-1 col-span-4",children:[e(r,{forInput:"disk_gb",value:"Disk GB"}),e(m,{type:"number",name:"disk_gb",className:"mt-1 block w-full",autoComplete:"disk_gb",value:c.disk_gb||"",handleChange:a=>t("disk_gb",a.target.value)}),e(o,{message:n.disk_gb,className:"mt-2"})]}),l("div",{className:"sm:col-span-1 col-span-4",children:[e(r,{forInput:"ram_mb",value:"RAM MB"}),e(m,{type:"number",step:"1",name:"ram_mb",className:"mt-1 block w-full",autoComplete:"ram_mb",value:c.ram_mb||"",handleChange:a=>t("ram_mb",a.target.value)}),e(o,{message:n.ram_mb,className:"mt-2"})]}),l("div",{className:"sm:col-span-1 col-span-4",children:[e(r,{forInput:"swap_mb",value:"SWAP MB"}),e(m,{type:"number",step:"1",name:"swap_mb",className:"mt-1 block w-full",autoComplete:"swap_mb",value:c.swap_mb||"",handleChange:a=>t("swap_mb",a.target.value)}),e(o,{message:n.swap_mb,className:"mt-2"})]}),l("div",{className:"sm:col-span-1 col-span-4",children:[e(r,{forInput:"price",value:"Price"}),e(m,{type:"number",step:"0.01",name:"price",className:"mt-1 block w-full",autoComplete:"Price",value:c.price||"",handleChange:a=>t("price",a.target.value)}),e(o,{message:n.price,className:"mt-2"})]}),l("div",{className:"sm:col-span-1 col-span-4",children:[e(r,{forInput:"currency",value:"Currency"}),l(i,{onChange:a=>t("currency",a.target.value),name:"currency",value:c.currency||"",children:[e("option",{value:"",children:"Choose"}),e("option",{value:"AUD",children:"AUD"},1),e("option",{value:"CAD",children:"CAD"},2),e("option",{value:"CHF",children:"CHF"},3),e("option",{value:"CNY",children:"CNY"},4),e("option",{value:"EUR",children:"EUR"},5),e("option",{value:"GBP",children:"GBP"},6),e("option",{value:"HKD",children:"HKD"},7),e("option",{value:"INR",children:"INR"},8),e("option",{value:"JPY",children:"JPY"},9),e("option",{value:"NZD",children:"NZD"},10),e("option",{value:"SGD",children:"SGD"},11),e("option",{value:"TWD",children:"TWD"},12),e("option",{value:"USD",children:"USD"},13)]}),e(o,{message:n.currency,className:"mt-2"})]}),l("div",{className:"sm:col-span-1 col-span-4",children:[e(r,{forInput:"term",value:"Term"}),l(i,{onChange:a=>t("term",a.target.value),name:"term",value:c.term||"",children:[e("option",{value:"",children:"Choose"}),e("option",{value:1,children:"Weekly"},1),e("option",{value:2,children:"Monthly"},2),e("option",{value:3,children:"Quarterly"},3),e("option",{value:4,children:"Semi annual"},4),e("option",{value:5,children:"Annual"},5),e("option",{value:6,children:"Bi Annual"},6),e("option",{value:7,children:"Tri Annual"},7)]}),e(o,{message:n.term,className:"mt-2"})]})]}),e(y,{processing:_,children:"Update server"})]})})]})]})}export{E as default}; +import{A as b}from"./AuthenticatedLayout-c4be06bd.js";import{u as p,b as f,j as l,a as e,H as C}from"./app-a8d4275f.js";import{I as r}from"./InputLabel-a7ee92ff.js";import{T as m,I as o}from"./TextInput-1e9aadbd.js";import{S as i}from"./Toast-ee00046f.js";import"./Table-f19b692a.js";import{U as y}from"./UpdateButton-5faf9e0a.js";import{R as k}from"./Alert-d503f44b.js";import{B as w}from"./BackButton-2b60c346.js";import"./ApplicationLogo-ae419612.js";import"./transition-fbe58e1e.js";import"./index.esm-2010c99b.js";function E({auth:u}){const d=p().props.alert,s=p().props.resource,h=p().props.types,v=p().props.locations,{data:c,setData:t,patch:g,processing:_,errors:n}=f({title:s.title,hostname:s.hostname,server_type:s.type_id,location:s.location_id,ip:s.ip_ssh.ip,os:s.operating_system,cpu:s.cpu,cpu_cores:s.cpu_cores,cpu_freq:s.cpu_freq,disk_gb:s.disk_gb,ram_mb:s.ram_mb,swap_mb:s.swap_mb,ping_port:s.ping_port,price:s.price,term:s.payment_term,currency:s.currency}),N=a=>{a.preventDefault(),g(route("server.update",s.id))};return l(b,{auth:u,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Edit server"}),children:[e(C,{title:"Edit server"}),l("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(w,{href:route("server.show",s.id),children:"Back to server"})}),e(k,{details:d}),e("div",{className:"bg-white dark:bg-gray-700 overflow-hidden shadow-sm sm:rounded-lg p-2 sm:p-6",children:l("form",{onSubmit:N,children:[l("div",{className:"grid gap-2 sm:grid-cols-1 md:grid-cols-6 sm:gap-4",children:[l("div",{className:"sm:col-span-3 col-span-4",children:[e(r,{forInput:"hostname",value:"Hostname"}),e(m,{name:"hostname",value:c.hostname||"",className:"mt-1 block w-full",autoComplete:"hostname",handleChange:a=>t("hostname",a.target.value),required:!0}),e(o,{message:n.hostname,className:"mt-2"})]}),l("div",{className:"sm:col-span-3 col-span-4",children:[e(r,{forInput:"title",value:"Title"}),e(m,{name:"title",className:"mt-1 block w-full",autoComplete:"title",value:c.title||"",handleChange:a=>t("title",a.target.value),required:!0}),e(o,{message:n.title,className:"mt-2"})]}),l("div",{className:"sm:col-span-1 col-span-4",children:[e("div",{className:"mb-2 block",children:e(r,{forInput:"server_type",value:"Type"})}),l(i,{onChange:a=>t("server_type",a.target.value),name:"server_type",required:!0,value:s.type_id,children:[e("option",{value:"",children:"Choose"}),h.map(a=>e("option",{value:a.id,children:a.name},a.id))]})]}),l("div",{className:"sm:col-span-2 col-span-4",children:[e("div",{className:"mb-2 block",children:e(r,{forInput:"location",value:"Location"})}),l(i,{onChange:a=>t("location",a.target.value),name:"location",required:!0,value:s.location.id,children:[e("option",{value:"",children:"Choose"}),v.map(a=>e("option",{value:a.id,children:a.name},a.id))]})]}),l("div",{className:"sm:col-span-2 col-span-4",children:[e(r,{forInput:"ip",value:"IP address"}),e(m,{name:"ip",className:"mt-1 block w-full",autoComplete:"ip",value:s.ip_ssh.ip||"",handleChange:a=>t("ip",a.target.value),required:!0}),e(o,{message:n.ip,className:"mt-2"})]}),l("div",{className:"sm:col-span-1 col-span-4",children:[e(r,{forInput:"ping_port",value:"Ping port"}),e(m,{type:"number",name:"ping_port",className:"mt-1 block w-full",autoComplete:"ping_port",value:c.ping_port||"",handleChange:a=>t("ping_port",a.target.value)}),e(o,{message:n.ping_port,className:"mt-2"})]}),e("div",{className:"col-span-6 text-center mt-2",children:e("p",{className:"text-gray-400 dark:text-gray-300",children:"The following can be auto filled with the server connection"})}),l("div",{className:"sm:col-span-2 col-span-4",children:[e(r,{forInput:"os",value:"Operating system"}),e(m,{name:"os",className:"mt-1 block w-full",autoComplete:"os",value:c.os||"",handleChange:a=>t("os",a.target.value)}),e(o,{message:n.os,className:"mt-2"})]}),l("div",{className:"sm:col-span-2 col-span-4",children:[e(r,{forInput:"cpu",value:"CPU"}),e(m,{name:"cpu",className:"mt-1 block w-full",autoComplete:"cpu",value:c.cpu||"",handleChange:a=>t("cpu",a.target.value)}),e(o,{message:n.cpu,className:"mt-2"})]}),l("div",{className:"sm:col-span-1 col-span-4",children:[e(r,{forInput:"cpu_cores",value:"Cores"}),e(m,{type:"number",name:"cpu_cores",className:"mt-1 block w-full",autoComplete:"cpu_cores",value:c.cpu_cores||"",handleChange:a=>t("cpu_cores",a.target.value)}),e(o,{message:n.cpu_cores,className:"mt-2"})]}),l("div",{className:"sm:col-span-1 col-span-4",children:[e(r,{forInput:"cpu_freq",value:"Freq"}),e(m,{type:"number",step:"0.01",name:"cpu_freq",className:"mt-1 block w-full",autoComplete:"cpu_freq",value:c.cpu_freq||"",handleChange:a=>t("cpu_freq",a.target.value)}),e(o,{message:n.cpu_freq,className:"mt-2"})]}),l("div",{className:"sm:col-span-1 col-span-4",children:[e(r,{forInput:"disk_gb",value:"Disk GB"}),e(m,{type:"number",name:"disk_gb",className:"mt-1 block w-full",autoComplete:"disk_gb",value:c.disk_gb||"",handleChange:a=>t("disk_gb",a.target.value)}),e(o,{message:n.disk_gb,className:"mt-2"})]}),l("div",{className:"sm:col-span-1 col-span-4",children:[e(r,{forInput:"ram_mb",value:"RAM MB"}),e(m,{type:"number",step:"1",name:"ram_mb",className:"mt-1 block w-full",autoComplete:"ram_mb",value:c.ram_mb||"",handleChange:a=>t("ram_mb",a.target.value)}),e(o,{message:n.ram_mb,className:"mt-2"})]}),l("div",{className:"sm:col-span-1 col-span-4",children:[e(r,{forInput:"swap_mb",value:"SWAP MB"}),e(m,{type:"number",step:"1",name:"swap_mb",className:"mt-1 block w-full",autoComplete:"swap_mb",value:c.swap_mb||"",handleChange:a=>t("swap_mb",a.target.value)}),e(o,{message:n.swap_mb,className:"mt-2"})]}),l("div",{className:"sm:col-span-1 col-span-4",children:[e(r,{forInput:"price",value:"Price"}),e(m,{type:"number",step:"0.01",name:"price",className:"mt-1 block w-full",autoComplete:"Price",value:c.price||"",handleChange:a=>t("price",a.target.value)}),e(o,{message:n.price,className:"mt-2"})]}),l("div",{className:"sm:col-span-1 col-span-4",children:[e(r,{forInput:"currency",value:"Currency"}),l(i,{onChange:a=>t("currency",a.target.value),name:"currency",value:c.currency||"",children:[e("option",{value:"",children:"Choose"}),e("option",{value:"AUD",children:"AUD"},1),e("option",{value:"CAD",children:"CAD"},2),e("option",{value:"CHF",children:"CHF"},3),e("option",{value:"CNY",children:"CNY"},4),e("option",{value:"EUR",children:"EUR"},5),e("option",{value:"GBP",children:"GBP"},6),e("option",{value:"HKD",children:"HKD"},7),e("option",{value:"INR",children:"INR"},8),e("option",{value:"JPY",children:"JPY"},9),e("option",{value:"NZD",children:"NZD"},10),e("option",{value:"SGD",children:"SGD"},11),e("option",{value:"TWD",children:"TWD"},12),e("option",{value:"USD",children:"USD"},13)]}),e(o,{message:n.currency,className:"mt-2"})]}),l("div",{className:"sm:col-span-1 col-span-4",children:[e(r,{forInput:"term",value:"Term"}),l(i,{onChange:a=>t("term",a.target.value),name:"term",value:c.term||"",children:[e("option",{value:"",children:"Choose"}),e("option",{value:1,children:"Weekly"},1),e("option",{value:2,children:"Monthly"},2),e("option",{value:3,children:"Quarterly"},3),e("option",{value:4,children:"Semi annual"},4),e("option",{value:5,children:"Annual"},5),e("option",{value:6,children:"Bi Annual"},6),e("option",{value:7,children:"Tri Annual"},7)]}),e(o,{message:n.term,className:"mt-2"})]})]}),e(y,{processing:_,children:"Update server"})]})})]})]})}export{E as default}; diff --git a/public/build/assets/Edit-5b0c88cb.js b/public/build/assets/Edit-5538f96f.js similarity index 84% rename from public/build/assets/Edit-5b0c88cb.js rename to public/build/assets/Edit-5538f96f.js index a3b855b..ac6712b 100644 --- a/public/build/assets/Edit-5b0c88cb.js +++ b/public/build/assets/Edit-5538f96f.js @@ -1 +1 @@ -import{A as N}from"./AuthenticatedLayout-b0ac98cc.js";import{u as n,b as _,j as s,a as e,H as k}from"./app-7082a047.js";import{I as l}from"./InputLabel-04829bce.js";import{T as d,I as m}from"./TextInput-38986df9.js";import{S as p}from"./Toast-a9c7a83a.js";import"./Table-13305096.js";import{U as y}from"./UpdateButton-5ed5f67f.js";import{B as b}from"./BackButton-c0685269.js";import{R as C}from"./Alert-af0dbb46.js";import"./ApplicationLogo-db4f8950.js";import"./transition-eb04b526.js";import"./index.esm-eebfcfab.js";function D({auth:c}){const u=n().props.servers,h=n().props.keys,r=n().props.resource,v=n().props.ip,g=n().props.alert,{data:o,setData:t,patch:f,processing:w,errors:i}=_({server_id:r.server_id,username:r.username,ssh_port:r.port,key_id:r.key_id,password:""}),x=a=>{a.preventDefault(),f(route("sftp.update",r.id)),navigate(route("sftp.show",r.id))};return s(N,{auth:c,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Edit SFTP connection"}),children:[e(k,{title:"Edit SFTP connection"}),s("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(b,{href:route("sftp.show",r.id),children:"Back to STP connection"})}),e(C,{details:g}),e("section",{className:"bg-white dark:bg-gray-700 overflow-hidden shadow-sm sm:rounded-lg p-2 sm:p-6",children:s("form",{onSubmit:x,children:[s("div",{className:"grid gap-2 sm:grid-cols-1 md:grid-cols-4 sm:gap-4",children:[s("div",{className:"sm:col-span-2 col-span-4",children:[e("div",{className:"mb-2 block",children:e(l,{forInput:"server_id",value:"Server"})}),s(p,{onChange:a=>t("server_id",a.target.value),name:"server_id",required:!0,value:o.server_id,handleChange:a=>t("server_id",a.target.value),children:[e("option",{value:"",children:"Choose one"}),u.map(a=>s("option",{value:a.id,children:[a.title," (",a.hostname," | ",v,")"]},a.id))]})]}),s("div",{className:"sm:col-span-1 col-span-4",children:[e(l,{forInput:"username",value:"Username"}),e(d,{id:"username",name:"username",value:o.username,className:"mt-1 block w-full",autoComplete:"username",handleChange:a=>t("username",a.target.value),maxLength:64,required:!0}),e(m,{message:i.username,className:"mt-2"})]}),s("div",{className:"sm:col-span-1 col-span-4",children:[e(l,{forInput:"ssh_port",value:"SSH port"}),e(d,{type:"number",name:"ssh_port",className:"mt-1 block w-full",autoComplete:"ssh_port",value:o.ssh_port,handleChange:a=>t("ssh_port",a.target.value),required:!0}),e(m,{message:i.ssh_port,className:"mt-2"})]}),e("p",{children:e("a",{className:"font-medium text-blue-600 dark:text-blue-500 hover:underline",href:route("key.index"),children:"Manage keys"})}),s("div",{className:"sm:col-span-4 col-span-4",children:[e("div",{className:"mb-2 block",children:e(l,{forInput:"key_id",value:"Key"})}),s(p,{onChange:a=>t("key_id",a.target.value),name:"key_id",value:o.key_id,handleChange:a=>t("key_id",a.target.value),children:[e("option",{value:"",children:"None. Use password"}),h.map(a=>e("option",{value:a.id,children:a.original_name},a.id))]})]}),s("div",{className:"mt-2 sm:col-span-4 col-span-4",children:[e("p",{className:"text-gray-500 dark:text-gray-400",children:"Passwords are stored encrypted"}),e("p",{className:"text-yellow-500 dark:text-yellow-400",children:"You cannot edit the existing password, it must be re-set"})]}),s("div",{className:"col-span-4",children:[e(l,{forInput:"password",value:"Password"}),e(d,{name:"password",className:"mt-1 block w-full",autoComplete:"password",value:o.password,handleChange:a=>t("password",a.target.value),required:!0}),e(m,{message:i.password,className:"mt-2"})]})]}),e(y,{processing:w,children:"Update SFTP connection"})]})})]})]})}export{D as default}; +import{A as N}from"./AuthenticatedLayout-c4be06bd.js";import{u as n,b as _,j as s,a as e,H as k}from"./app-a8d4275f.js";import{I as l}from"./InputLabel-a7ee92ff.js";import{T as d,I as m}from"./TextInput-1e9aadbd.js";import{S as p}from"./Toast-ee00046f.js";import"./Table-f19b692a.js";import{U as y}from"./UpdateButton-5faf9e0a.js";import{B as b}from"./BackButton-2b60c346.js";import{R as C}from"./Alert-d503f44b.js";import"./ApplicationLogo-ae419612.js";import"./transition-fbe58e1e.js";import"./index.esm-2010c99b.js";function D({auth:c}){const u=n().props.servers,h=n().props.keys,r=n().props.resource,v=n().props.ip,g=n().props.alert,{data:o,setData:t,patch:f,processing:w,errors:i}=_({server_id:r.server_id,username:r.username,ssh_port:r.port,key_id:r.key_id,password:""}),x=a=>{a.preventDefault(),f(route("sftp.update",r.id)),navigate(route("sftp.show",r.id))};return s(N,{auth:c,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Edit SFTP connection"}),children:[e(k,{title:"Edit SFTP connection"}),s("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(b,{href:route("sftp.show",r.id),children:"Back to STP connection"})}),e(C,{details:g}),e("section",{className:"bg-white dark:bg-gray-700 overflow-hidden shadow-sm sm:rounded-lg p-2 sm:p-6",children:s("form",{onSubmit:x,children:[s("div",{className:"grid gap-2 sm:grid-cols-1 md:grid-cols-4 sm:gap-4",children:[s("div",{className:"sm:col-span-2 col-span-4",children:[e("div",{className:"mb-2 block",children:e(l,{forInput:"server_id",value:"Server"})}),s(p,{onChange:a=>t("server_id",a.target.value),name:"server_id",required:!0,value:o.server_id,handleChange:a=>t("server_id",a.target.value),children:[e("option",{value:"",children:"Choose one"}),u.map(a=>s("option",{value:a.id,children:[a.title," (",a.hostname," | ",v,")"]},a.id))]})]}),s("div",{className:"sm:col-span-1 col-span-4",children:[e(l,{forInput:"username",value:"Username"}),e(d,{id:"username",name:"username",value:o.username,className:"mt-1 block w-full",autoComplete:"username",handleChange:a=>t("username",a.target.value),maxLength:64,required:!0}),e(m,{message:i.username,className:"mt-2"})]}),s("div",{className:"sm:col-span-1 col-span-4",children:[e(l,{forInput:"ssh_port",value:"SSH port"}),e(d,{type:"number",name:"ssh_port",className:"mt-1 block w-full",autoComplete:"ssh_port",value:o.ssh_port,handleChange:a=>t("ssh_port",a.target.value),required:!0}),e(m,{message:i.ssh_port,className:"mt-2"})]}),e("p",{children:e("a",{className:"font-medium text-blue-600 dark:text-blue-500 hover:underline",href:route("key.index"),children:"Manage keys"})}),s("div",{className:"sm:col-span-4 col-span-4",children:[e("div",{className:"mb-2 block",children:e(l,{forInput:"key_id",value:"Key"})}),s(p,{onChange:a=>t("key_id",a.target.value),name:"key_id",value:o.key_id,handleChange:a=>t("key_id",a.target.value),children:[e("option",{value:"",children:"None. Use password"}),h.map(a=>e("option",{value:a.id,children:a.original_name},a.id))]})]}),s("div",{className:"mt-2 sm:col-span-4 col-span-4",children:[e("p",{className:"text-gray-500 dark:text-gray-400",children:"Passwords are stored encrypted"}),e("p",{className:"text-yellow-500 dark:text-yellow-400",children:"You cannot edit the existing password, it must be re-set"})]}),s("div",{className:"col-span-4",children:[e(l,{forInput:"password",value:"Password"}),e(d,{name:"password",className:"mt-1 block w-full",autoComplete:"password",value:o.password,handleChange:a=>t("password",a.target.value),required:!0}),e(m,{message:i.password,className:"mt-2"})]})]}),e(y,{processing:w,children:"Update SFTP connection"})]})})]})]})}export{D as default}; diff --git a/public/build/assets/Edit-d4a51a69.js b/public/build/assets/Edit-5658baa6.js similarity index 94% rename from public/build/assets/Edit-d4a51a69.js rename to public/build/assets/Edit-5658baa6.js index 77cbf97..ec5282f 100644 --- a/public/build/assets/Edit-d4a51a69.js +++ b/public/build/assets/Edit-5658baa6.js @@ -1 +1 @@ -import{A as N}from"./AuthenticatedLayout-b0ac98cc.js";import{u as r,b,j as i,a as n,H as C}from"./app-7082a047.js";import{I as l}from"./InputLabel-04829bce.js";import{T as m,I as u}from"./TextInput-38986df9.js";import{S as t}from"./Toast-a9c7a83a.js";import"./Table-13305096.js";import{B as I}from"./BackButton-c0685269.js";import{R as k}from"./Alert-af0dbb46.js";import{U as x}from"./UpdateButton-5ed5f67f.js";import"./ApplicationLogo-db4f8950.js";import"./transition-eb04b526.js";import"./index.esm-eebfcfab.js";function L({auth:v}){const h=r().props.alert,p=r().props.commands,a=r().props.resource,c=r().props.connections,{data:d,setData:o,patch:g,processing:_,errors:s}=b({connection1_id:typeof a.assigned[0]<"u"?a.assigned[0].connection_id:null,connection2_id:typeof a.assigned[1]<"u"?a.assigned[1].connection_id:null,connection3_id:typeof a.assigned[2]<"u"?a.assigned[2].connection_id:null,connection4_id:typeof a.assigned[3]<"u"?a.assigned[3].connection_id:null,connection5_id:typeof a.assigned[4]<"u"?a.assigned[4].connection_id:null,connection6_id:typeof a.assigned[5]<"u"?a.assigned[5].connection_id:null,connection7_id:typeof a.assigned[6]<"u"?a.assigned[6].connection_id:null,connection8_id:typeof a.assigned[7]<"u"?a.assigned[7].connection_id:null,connection9_id:typeof a.assigned[8]<"u"?a.assigned[8].connection_id:null,connection10_id:typeof a.assigned[9]<"u"?a.assigned[9].connection_id:null,connection11_id:typeof a.assigned[10]<"u"?a.assigned[10].connection_id:null,connection12_id:typeof a.assigned[11]<"u"?a.assigned[11].connection_id:null,title:a.title,command_id:a.command_id,timeout:a.timeout}),f=e=>{e.preventDefault(),g(route("command-group.update",a.id)),navigate(route("command-group.show",a.id))};return i(N,{auth:v,header:i("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:["Edit command group: ",a.title]}),children:[n(C,{title:"Edit command group"}),i("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[n("div",{className:"flex flex-wrap gap-2 mb-4",children:n(I,{href:route("command-group.show",a.id),children:"Back to command group"})}),n(k,{details:h}),n("section",{className:"bg-white dark:bg-gray-700 overflow-hidden shadow-sm sm:rounded-lg p-2 sm:p-6",children:i("form",{onSubmit:f,children:[i("div",{className:"grid gap-2 grid-cols-1 sm:grid-cols-6",children:[i("div",{className:"col-span-2 mb-3",children:[n(l,{forInput:"title",value:"Title"}),n(m,{name:"title",value:d.title,className:"mt-1 block w-full",autoComplete:"title",handleChange:e=>o("title",e.target.value),maxLength:64,required:!0}),n(u,{message:s.title,className:"mt-2"})]}),i("div",{className:"col-span-1 mb-3",children:[n(l,{forInput:"timeout",value:"Timeout"}),n(m,{name:"timeout",value:d.timeout,className:"mt-1 block w-full",autoComplete:"timeout",handleChange:e=>o("timeout",e.target.value),max:999999,min:1,required:!0}),n(u,{message:s.timeout,className:"mt-2"})]}),i("div",{className:"sm:col-span-3 col-span-6",children:[n("div",{className:"mb-2 block",children:n(l,{forInput:"command_id",value:"Command"})}),i(t,{onChange:e=>o("command_id",e.target.value),name:"command_id",required:!0,value:d.command_id,children:[n("option",{value:"",children:"Choose one"}),p.map(e=>n("option",{value:e.id,children:e.title},e.id))]})]}),i("div",{className:"sm:col-span-2 col-span-6",children:[n("div",{className:"mb-2 block",children:n(l,{forInput:"connection1_id",value:"Server 1"})}),i(t,{onChange:e=>o("connection1_id",e.target.value),name:"connection1_id",required:!0,value:d.connection1_id,children:[n("option",{value:"",children:"Choose one"}),c.map(e=>i("option",{value:e.id,children:[e.server.hostname," (",e.server.title,")"]},e.id))]})]}),i("div",{className:"sm:col-span-2 col-span-6",children:[n("div",{className:"mb-2 block",children:n(l,{forInput:"server2_id",value:"Server 2"})}),i(t,{onChange:e=>o("connection2_id",e.target.value),name:"connection2_id",value:d.connection2_id,handleChange:e=>o("connection2_id",e.target.value),children:[n("option",{value:"",children:"None"}),c.map(e=>i("option",{value:e.id,children:[e.server.hostname," (",e.server.title,")"]},e.id))]})]}),i("div",{className:"sm:col-span-2 col-span-6",children:[n("div",{className:"mb-2 block",children:n(l,{forInput:"connection3_id",value:"Server 3"})}),i(t,{onChange:e=>o("connection3_id",e.target.value),name:"connection3_id",value:d.connection3_id,handleChange:e=>o("connection3_id",e.target.value),children:[n("option",{value:"",children:"None"}),c.map(e=>i("option",{value:e.id,children:[e.server.hostname," (",e.server.title,")"]},e.id))]})]}),i("div",{className:"sm:col-span-2 col-span-6",children:[n("div",{className:"mb-2 block",children:n(l,{forInput:"connection4_id",value:"Server 4"})}),i(t,{onChange:e=>o("connection4_id",e.target.value),name:"connection4_id",value:d.connection4_id,handleChange:e=>o("connection4_id",e.target.value),children:[n("option",{value:"",children:"None"}),c.map(e=>i("option",{value:e.id,children:[e.server.hostname," (",e.server.title,")"]},e.id))]})]}),i("div",{className:"sm:col-span-2 col-span-6",children:[n("div",{className:"mb-2 block",children:n(l,{forInput:"connection5_id",value:"Server 5"})}),i(t,{onChange:e=>o("connection5_id",e.target.value),name:"connection5_id",value:d.connection5_id,handleChange:e=>o("connection5_id",e.target.value),children:[n("option",{value:"",children:"None"}),c.map(e=>i("option",{value:e.id,children:[e.server.hostname," (",e.server.title,")"]},e.id))]})]}),i("div",{className:"sm:col-span-2 col-span-6",children:[n("div",{className:"mb-2 block",children:n(l,{forInput:"connection6_id",value:"Server 6"})}),i(t,{onChange:e=>o("connection6_id",e.target.value),name:"connection6_id",value:d.connection6_id,handleChange:e=>o("connection6_id",e.target.value),children:[n("option",{value:"",children:"None"}),c.map(e=>i("option",{value:e.id,children:[e.server.hostname," (",e.server.title,")"]},e.id))]})]}),i("div",{className:"sm:col-span-2 col-span-6",children:[n("div",{className:"mb-2 block",children:n(l,{forInput:"connection7_id",value:"Server 7"})}),i(t,{onChange:e=>o("connection7_id",e.target.value),name:"connection7_id",value:d.connection7_id,handleChange:e=>o("connection7_id",e.target.value),children:[n("option",{value:"",children:"None"}),c.map(e=>i("option",{value:e.id,children:[e.server.hostname," (",e.server.title,")"]},e.id))]})]}),i("div",{className:"sm:col-span-2 col-span-6",children:[n("div",{className:"mb-2 block",children:n(l,{forInput:"connection8_id",value:"Server 8"})}),i(t,{onChange:e=>o("connection8_id",e.target.value),name:"connection8_id",value:d.connection8_id,handleChange:e=>o("connection8_id",e.target.value),children:[n("option",{value:"",children:"None"}),c.map(e=>i("option",{value:e.id,children:[e.server.hostname," (",e.server.title,")"]},e.id))]})]}),i("div",{className:"sm:col-span-2 col-span-6",children:[n("div",{className:"mb-2 block",children:n(l,{forInput:"connection9_id",value:"Server 9"})}),i(t,{onChange:e=>o("connection9_id",e.target.value),name:"connection9_id",value:d.connection9_id,handleChange:e=>o("connection9_id",e.target.value),children:[n("option",{value:"",children:"None"}),c.map(e=>i("option",{value:e.id,children:[e.server.hostname," (",e.server.title,")"]},e.id))]})]}),i("div",{className:"sm:col-span-2 col-span-6",children:[n("div",{className:"mb-2 block",children:n(l,{forInput:"connection10_id",value:"Server 10"})}),i(t,{onChange:e=>o("connection10_id",e.target.value),name:"connection10_id",value:d.connection10_id,handleChange:e=>o("connection10_id",e.target.value),children:[n("option",{value:"",children:"None"}),c.map(e=>i("option",{value:e.id,children:[e.server.hostname," (",e.server.title,")"]},e.id))]})]}),i("div",{className:"sm:col-span-2 col-span-6",children:[n("div",{className:"mb-2 block",children:n(l,{forInput:"connection11_id",value:"Server 11"})}),i(t,{onChange:e=>o("connection11_id",e.target.value),name:"connection11_id",value:d.connection11_id,handleChange:e=>o("connection11_id",e.target.value),children:[n("option",{value:"",children:"None"}),c.map(e=>i("option",{value:e.id,children:[e.server.hostname," (",e.server.title,")"]},e.id))]})]}),i("div",{className:"sm:col-span-2 col-span-6",children:[n("div",{className:"mb-2 block",children:n(l,{forInput:"connection12_id",value:"Server 12"})}),i(t,{onChange:e=>o("connection12_id",e.target.value),name:"connection12_id",value:d.connection12_id,handleChange:e=>o("connection12_id",e.target.value),children:[n("option",{value:"",children:"None"}),c.map(e=>i("option",{value:e.id,children:[e.server.hostname," (",e.server.title,")"]},e.id))]})]})]}),n(x,{processing:_,children:"Update command group"})]})})]})]})}export{L as default}; +import{A as N}from"./AuthenticatedLayout-c4be06bd.js";import{u as r,b,j as i,a as n,H as C}from"./app-a8d4275f.js";import{I as l}from"./InputLabel-a7ee92ff.js";import{T as m,I as u}from"./TextInput-1e9aadbd.js";import{S as t}from"./Toast-ee00046f.js";import"./Table-f19b692a.js";import{B as I}from"./BackButton-2b60c346.js";import{R as k}from"./Alert-d503f44b.js";import{U as x}from"./UpdateButton-5faf9e0a.js";import"./ApplicationLogo-ae419612.js";import"./transition-fbe58e1e.js";import"./index.esm-2010c99b.js";function L({auth:v}){const h=r().props.alert,p=r().props.commands,a=r().props.resource,c=r().props.connections,{data:d,setData:o,patch:g,processing:_,errors:s}=b({connection1_id:typeof a.assigned[0]<"u"?a.assigned[0].connection_id:null,connection2_id:typeof a.assigned[1]<"u"?a.assigned[1].connection_id:null,connection3_id:typeof a.assigned[2]<"u"?a.assigned[2].connection_id:null,connection4_id:typeof a.assigned[3]<"u"?a.assigned[3].connection_id:null,connection5_id:typeof a.assigned[4]<"u"?a.assigned[4].connection_id:null,connection6_id:typeof a.assigned[5]<"u"?a.assigned[5].connection_id:null,connection7_id:typeof a.assigned[6]<"u"?a.assigned[6].connection_id:null,connection8_id:typeof a.assigned[7]<"u"?a.assigned[7].connection_id:null,connection9_id:typeof a.assigned[8]<"u"?a.assigned[8].connection_id:null,connection10_id:typeof a.assigned[9]<"u"?a.assigned[9].connection_id:null,connection11_id:typeof a.assigned[10]<"u"?a.assigned[10].connection_id:null,connection12_id:typeof a.assigned[11]<"u"?a.assigned[11].connection_id:null,title:a.title,command_id:a.command_id,timeout:a.timeout}),f=e=>{e.preventDefault(),g(route("command-group.update",a.id)),navigate(route("command-group.show",a.id))};return i(N,{auth:v,header:i("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:["Edit command group: ",a.title]}),children:[n(C,{title:"Edit command group"}),i("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[n("div",{className:"flex flex-wrap gap-2 mb-4",children:n(I,{href:route("command-group.show",a.id),children:"Back to command group"})}),n(k,{details:h}),n("section",{className:"bg-white dark:bg-gray-700 overflow-hidden shadow-sm sm:rounded-lg p-2 sm:p-6",children:i("form",{onSubmit:f,children:[i("div",{className:"grid gap-2 grid-cols-1 sm:grid-cols-6",children:[i("div",{className:"col-span-2 mb-3",children:[n(l,{forInput:"title",value:"Title"}),n(m,{name:"title",value:d.title,className:"mt-1 block w-full",autoComplete:"title",handleChange:e=>o("title",e.target.value),maxLength:64,required:!0}),n(u,{message:s.title,className:"mt-2"})]}),i("div",{className:"col-span-1 mb-3",children:[n(l,{forInput:"timeout",value:"Timeout"}),n(m,{name:"timeout",value:d.timeout,className:"mt-1 block w-full",autoComplete:"timeout",handleChange:e=>o("timeout",e.target.value),max:999999,min:1,required:!0}),n(u,{message:s.timeout,className:"mt-2"})]}),i("div",{className:"sm:col-span-3 col-span-6",children:[n("div",{className:"mb-2 block",children:n(l,{forInput:"command_id",value:"Command"})}),i(t,{onChange:e=>o("command_id",e.target.value),name:"command_id",required:!0,value:d.command_id,children:[n("option",{value:"",children:"Choose one"}),p.map(e=>n("option",{value:e.id,children:e.title},e.id))]})]}),i("div",{className:"sm:col-span-2 col-span-6",children:[n("div",{className:"mb-2 block",children:n(l,{forInput:"connection1_id",value:"Server 1"})}),i(t,{onChange:e=>o("connection1_id",e.target.value),name:"connection1_id",required:!0,value:d.connection1_id,children:[n("option",{value:"",children:"Choose one"}),c.map(e=>i("option",{value:e.id,children:[e.server.hostname," (",e.server.title,")"]},e.id))]})]}),i("div",{className:"sm:col-span-2 col-span-6",children:[n("div",{className:"mb-2 block",children:n(l,{forInput:"server2_id",value:"Server 2"})}),i(t,{onChange:e=>o("connection2_id",e.target.value),name:"connection2_id",value:d.connection2_id,handleChange:e=>o("connection2_id",e.target.value),children:[n("option",{value:"",children:"None"}),c.map(e=>i("option",{value:e.id,children:[e.server.hostname," (",e.server.title,")"]},e.id))]})]}),i("div",{className:"sm:col-span-2 col-span-6",children:[n("div",{className:"mb-2 block",children:n(l,{forInput:"connection3_id",value:"Server 3"})}),i(t,{onChange:e=>o("connection3_id",e.target.value),name:"connection3_id",value:d.connection3_id,handleChange:e=>o("connection3_id",e.target.value),children:[n("option",{value:"",children:"None"}),c.map(e=>i("option",{value:e.id,children:[e.server.hostname," (",e.server.title,")"]},e.id))]})]}),i("div",{className:"sm:col-span-2 col-span-6",children:[n("div",{className:"mb-2 block",children:n(l,{forInput:"connection4_id",value:"Server 4"})}),i(t,{onChange:e=>o("connection4_id",e.target.value),name:"connection4_id",value:d.connection4_id,handleChange:e=>o("connection4_id",e.target.value),children:[n("option",{value:"",children:"None"}),c.map(e=>i("option",{value:e.id,children:[e.server.hostname," (",e.server.title,")"]},e.id))]})]}),i("div",{className:"sm:col-span-2 col-span-6",children:[n("div",{className:"mb-2 block",children:n(l,{forInput:"connection5_id",value:"Server 5"})}),i(t,{onChange:e=>o("connection5_id",e.target.value),name:"connection5_id",value:d.connection5_id,handleChange:e=>o("connection5_id",e.target.value),children:[n("option",{value:"",children:"None"}),c.map(e=>i("option",{value:e.id,children:[e.server.hostname," (",e.server.title,")"]},e.id))]})]}),i("div",{className:"sm:col-span-2 col-span-6",children:[n("div",{className:"mb-2 block",children:n(l,{forInput:"connection6_id",value:"Server 6"})}),i(t,{onChange:e=>o("connection6_id",e.target.value),name:"connection6_id",value:d.connection6_id,handleChange:e=>o("connection6_id",e.target.value),children:[n("option",{value:"",children:"None"}),c.map(e=>i("option",{value:e.id,children:[e.server.hostname," (",e.server.title,")"]},e.id))]})]}),i("div",{className:"sm:col-span-2 col-span-6",children:[n("div",{className:"mb-2 block",children:n(l,{forInput:"connection7_id",value:"Server 7"})}),i(t,{onChange:e=>o("connection7_id",e.target.value),name:"connection7_id",value:d.connection7_id,handleChange:e=>o("connection7_id",e.target.value),children:[n("option",{value:"",children:"None"}),c.map(e=>i("option",{value:e.id,children:[e.server.hostname," (",e.server.title,")"]},e.id))]})]}),i("div",{className:"sm:col-span-2 col-span-6",children:[n("div",{className:"mb-2 block",children:n(l,{forInput:"connection8_id",value:"Server 8"})}),i(t,{onChange:e=>o("connection8_id",e.target.value),name:"connection8_id",value:d.connection8_id,handleChange:e=>o("connection8_id",e.target.value),children:[n("option",{value:"",children:"None"}),c.map(e=>i("option",{value:e.id,children:[e.server.hostname," (",e.server.title,")"]},e.id))]})]}),i("div",{className:"sm:col-span-2 col-span-6",children:[n("div",{className:"mb-2 block",children:n(l,{forInput:"connection9_id",value:"Server 9"})}),i(t,{onChange:e=>o("connection9_id",e.target.value),name:"connection9_id",value:d.connection9_id,handleChange:e=>o("connection9_id",e.target.value),children:[n("option",{value:"",children:"None"}),c.map(e=>i("option",{value:e.id,children:[e.server.hostname," (",e.server.title,")"]},e.id))]})]}),i("div",{className:"sm:col-span-2 col-span-6",children:[n("div",{className:"mb-2 block",children:n(l,{forInput:"connection10_id",value:"Server 10"})}),i(t,{onChange:e=>o("connection10_id",e.target.value),name:"connection10_id",value:d.connection10_id,handleChange:e=>o("connection10_id",e.target.value),children:[n("option",{value:"",children:"None"}),c.map(e=>i("option",{value:e.id,children:[e.server.hostname," (",e.server.title,")"]},e.id))]})]}),i("div",{className:"sm:col-span-2 col-span-6",children:[n("div",{className:"mb-2 block",children:n(l,{forInput:"connection11_id",value:"Server 11"})}),i(t,{onChange:e=>o("connection11_id",e.target.value),name:"connection11_id",value:d.connection11_id,handleChange:e=>o("connection11_id",e.target.value),children:[n("option",{value:"",children:"None"}),c.map(e=>i("option",{value:e.id,children:[e.server.hostname," (",e.server.title,")"]},e.id))]})]}),i("div",{className:"sm:col-span-2 col-span-6",children:[n("div",{className:"mb-2 block",children:n(l,{forInput:"connection12_id",value:"Server 12"})}),i(t,{onChange:e=>o("connection12_id",e.target.value),name:"connection12_id",value:d.connection12_id,handleChange:e=>o("connection12_id",e.target.value),children:[n("option",{value:"",children:"None"}),c.map(e=>i("option",{value:e.id,children:[e.server.hostname," (",e.server.title,")"]},e.id))]})]})]}),n(x,{processing:_,children:"Update command group"})]})})]})]})}export{L as default}; diff --git a/public/build/assets/Edit-f58e9d05.js b/public/build/assets/Edit-8e802a56.js similarity index 56% rename from public/build/assets/Edit-f58e9d05.js rename to public/build/assets/Edit-8e802a56.js index e4552fe..5c713f5 100644 --- a/public/build/assets/Edit-f58e9d05.js +++ b/public/build/assets/Edit-8e802a56.js @@ -1 +1 @@ -import{A as i}from"./AuthenticatedLayout-b0ac98cc.js";import o from"./DeleteUserForm-44981bd0.js";import d from"./UpdatePasswordForm-970880e4.js";import l from"./UpdateProfileInformationForm-f96428d6.js";import{u as p,j as e,a,H as c}from"./app-7082a047.js";import"./ApplicationLogo-db4f8950.js";import"./transition-eb04b526.js";import"./DangerButton-a6bef65a.js";import"./TextInput-38986df9.js";import"./InputLabel-04829bce.js";import"./UpdateButton-5ed5f67f.js";import"./index.esm-eebfcfab.js";import"./Toast-a9c7a83a.js";import"./Table-13305096.js";function U({auth:r,mustVerifyEmail:s,status:m}){const t=p().props.auth.user;return e(i,{auth:r,header:a("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Edit profile"}),children:[a(c,{title:t.name+" profile"}),a("div",{className:"py-12",children:e("div",{className:"max-w-7xl mx-auto sm:px-6 lg:px-8 space-y-6",children:[a("div",{className:"p-4 sm:p-8 bg-white dark:bg-gray-700 shadow sm:rounded-lg",children:a(l,{mustVerifyEmail:s,status:m,className:"max-w-6xl"})}),a("div",{className:"p-4 sm:p-8 bg-white dark:bg-gray-700 shadow sm:rounded-lg",children:a(d,{className:"max-w-6xl"})}),a("div",{className:"p-4 sm:p-8 bg-white dark:bg-gray-700 shadow sm:rounded-lg",children:a(o,{className:"max-w-xl"})})]})})]})}export{U as default}; +import{A as i}from"./AuthenticatedLayout-c4be06bd.js";import o from"./DeleteUserForm-dd56dadc.js";import d from"./UpdatePasswordForm-e9566b54.js";import l from"./UpdateProfileInformationForm-211dd28c.js";import{u as p,j as e,a,H as c}from"./app-a8d4275f.js";import"./ApplicationLogo-ae419612.js";import"./transition-fbe58e1e.js";import"./DangerButton-dd3abfc4.js";import"./TextInput-1e9aadbd.js";import"./InputLabel-a7ee92ff.js";import"./UpdateButton-5faf9e0a.js";import"./index.esm-2010c99b.js";import"./Toast-ee00046f.js";import"./Table-f19b692a.js";function U({auth:r,mustVerifyEmail:s,status:m}){const t=p().props.auth.user;return e(i,{auth:r,header:a("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Edit profile"}),children:[a(c,{title:t.name+" profile"}),a("div",{className:"py-12",children:e("div",{className:"max-w-7xl mx-auto sm:px-6 lg:px-8 space-y-6",children:[a("div",{className:"p-4 sm:p-8 bg-white dark:bg-gray-700 shadow sm:rounded-lg",children:a(l,{mustVerifyEmail:s,status:m,className:"max-w-6xl"})}),a("div",{className:"p-4 sm:p-8 bg-white dark:bg-gray-700 shadow sm:rounded-lg",children:a(d,{className:"max-w-6xl"})}),a("div",{className:"p-4 sm:p-8 bg-white dark:bg-gray-700 shadow sm:rounded-lg",children:a(o,{className:"max-w-xl"})})]})})]})}export{U as default}; diff --git a/public/build/assets/Edit-60bf2f39.js b/public/build/assets/Edit-98bfc13e.js similarity index 86% rename from public/build/assets/Edit-60bf2f39.js rename to public/build/assets/Edit-98bfc13e.js index bd7454b..bc5df1f 100644 --- a/public/build/assets/Edit-60bf2f39.js +++ b/public/build/assets/Edit-98bfc13e.js @@ -1 +1 @@ -import{A as f}from"./AuthenticatedLayout-b0ac98cc.js";import{u as i,b as _,j as t,a as e,H as b}from"./app-7082a047.js";import{I as r}from"./InputLabel-04829bce.js";import{T as m,I as c}from"./TextInput-38986df9.js";import{S as d}from"./Toast-a9c7a83a.js";import"./Table-13305096.js";import{R as x}from"./Alert-af0dbb46.js";import{B as N}from"./BackButton-c0685269.js";import{U as y}from"./UpdateButton-5ed5f67f.js";import"./ApplicationLogo-db4f8950.js";import"./transition-eb04b526.js";import"./index.esm-eebfcfab.js";function A({auth:p}){const u=i().props.alert,s=i().props.resource,{data:o,setData:l,patch:h,processing:v,reset:k,errors:n}=_({save_to:s.save_to,save_as:s.save_as,option:s.option,compress:s.compress,custom_flags:s.custom_flags,these_tables:s.these_tables}),g=a=>{a.preventDefault(),h(route("mysqldump.update",s.id)),navigate(route("mysqldump.show",s.id))};return t(f,{auth:p,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Edit MySQL dump"}),children:[e(b,{title:"Edit MySQL dump"}),t("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(N,{href:route("mysqldump.show",s.id),children:"Back to MySQL dump"})}),e(x,{details:u}),t("div",{className:"bg-white dark:bg-gray-700 overflow-hidden shadow-sm sm:rounded-lg p-2 sm:p-6",children:[t("h1",{className:"text-lg text-gray-800 dark:text-white mb-2",children:[e("span",{className:"text-gray-600 dark:text-gray-300",children:"Database:"})," ",s.database.name," (",s.database_conn.host,")",e("span",{className:"text-gray-600 dark:text-gray-300",children:" DB user:"})," ",s.database_conn.username," ",e("span",{className:"text-gray-600 dark:text-gray-300",children:"Server:"})," ",s.server.hostname," (",s.server.title,")"]}),t("form",{onSubmit:g,children:[t("div",{className:"grid gap-2 sm:grid-cols-1 md:grid-cols-6 sm:gap-4",children:[t("div",{className:"sm:col-span-3 col-span-4",children:[e(r,{forInput:"save_to",value:"Save to"}),e(m,{name:"save_to",className:"mt-1 block w-full",autoComplete:"save_to",value:o.save_to,handleChange:a=>l("save_to",a.target.value),maxLength:64}),e(c,{message:n.save_to,className:"mt-2"})]}),t("div",{className:"sm:col-span-3 col-span-4",children:[e(r,{forInput:"save_as",value:"Save as"}),e(m,{name:"save_as",className:"mt-1 block w-full",autoComplete:"save_as",value:o.save_as,handleChange:a=>l("save_as",a.target.value),maxLength:64}),e(c,{message:n.save_as,className:"mt-2"})]}),t("div",{className:"sm:col-span-2 col-span-4",children:[e("div",{className:"mb-2 block",children:e(r,{forInput:"option",value:"Options"})}),t(d,{onChange:a=>l("option",a.target.value),name:"option",required:!0,value:o.option,handleChange:a=>l("option",a.target.value),children:[e("option",{value:"0",children:"None"}),e("option",{value:"1",children:"--quick"}),e("option",{value:"2",children:"--opt"}),e("option",{value:"3",children:"--add-locks"}),e("option",{value:"4",children:"--single-transaction"})]})]}),t("div",{className:"sm:col-span-2 col-span-4",children:[e(r,{forInput:"custom_flags",value:"Custom flags"}),e(m,{name:"custom_flags",className:"mt-1 block w-full",autoComplete:"custom_flags",value:o.custom_flags,handleChange:a=>l("custom_flags",a.target.value),maxLength:64}),e(c,{message:n.custom_flags,className:"mt-2"})]}),t("div",{className:"sm:col-span-1 col-span-4",children:[e("div",{className:"mb-2 block",children:e(r,{forInput:"compress",value:"Compress"})}),t(d,{onChange:a=>l("compress",a.target.value),name:"compress",required:!0,value:o.compress,handleChange:a=>l("compress",a.target.value),children:[e("option",{value:"0",children:"No"}),e("option",{value:"1",children:"Yes"})]})]}),t("div",{className:"col-span-6",children:[e(r,{forInput:"these_tables",value:"These tables only (separate by space)"}),e(m,{name:"these_tables",className:"mt-1 block w-full",autoComplete:"these_tables",value:o.these_tables,handleChange:a=>l("these_tables",a.target.value),maxLength:255}),e(c,{message:n.these_tables,className:"mt-2"})]})]}),e(y,{processing:v,children:"Update MySQL dump"})]})]})]})]})}export{A as default}; +import{A as f}from"./AuthenticatedLayout-c4be06bd.js";import{u as i,b as _,j as t,a as e,H as b}from"./app-a8d4275f.js";import{I as r}from"./InputLabel-a7ee92ff.js";import{T as m,I as c}from"./TextInput-1e9aadbd.js";import{S as d}from"./Toast-ee00046f.js";import"./Table-f19b692a.js";import{R as x}from"./Alert-d503f44b.js";import{B as N}from"./BackButton-2b60c346.js";import{U as y}from"./UpdateButton-5faf9e0a.js";import"./ApplicationLogo-ae419612.js";import"./transition-fbe58e1e.js";import"./index.esm-2010c99b.js";function A({auth:p}){const u=i().props.alert,s=i().props.resource,{data:o,setData:l,patch:h,processing:v,reset:k,errors:n}=_({save_to:s.save_to,save_as:s.save_as,option:s.option,compress:s.compress,custom_flags:s.custom_flags,these_tables:s.these_tables}),g=a=>{a.preventDefault(),h(route("mysqldump.update",s.id)),navigate(route("mysqldump.show",s.id))};return t(f,{auth:p,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Edit MySQL dump"}),children:[e(b,{title:"Edit MySQL dump"}),t("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(N,{href:route("mysqldump.show",s.id),children:"Back to MySQL dump"})}),e(x,{details:u}),t("div",{className:"bg-white dark:bg-gray-700 overflow-hidden shadow-sm sm:rounded-lg p-2 sm:p-6",children:[t("h1",{className:"text-lg text-gray-800 dark:text-white mb-2",children:[e("span",{className:"text-gray-600 dark:text-gray-300",children:"Database:"})," ",s.database.name," (",s.database_conn.host,")",e("span",{className:"text-gray-600 dark:text-gray-300",children:" DB user:"})," ",s.database_conn.username," ",e("span",{className:"text-gray-600 dark:text-gray-300",children:"Server:"})," ",s.server.hostname," (",s.server.title,")"]}),t("form",{onSubmit:g,children:[t("div",{className:"grid gap-2 sm:grid-cols-1 md:grid-cols-6 sm:gap-4",children:[t("div",{className:"sm:col-span-3 col-span-4",children:[e(r,{forInput:"save_to",value:"Save to"}),e(m,{name:"save_to",className:"mt-1 block w-full",autoComplete:"save_to",value:o.save_to,handleChange:a=>l("save_to",a.target.value),maxLength:64}),e(c,{message:n.save_to,className:"mt-2"})]}),t("div",{className:"sm:col-span-3 col-span-4",children:[e(r,{forInput:"save_as",value:"Save as"}),e(m,{name:"save_as",className:"mt-1 block w-full",autoComplete:"save_as",value:o.save_as,handleChange:a=>l("save_as",a.target.value),maxLength:64}),e(c,{message:n.save_as,className:"mt-2"})]}),t("div",{className:"sm:col-span-2 col-span-4",children:[e("div",{className:"mb-2 block",children:e(r,{forInput:"option",value:"Options"})}),t(d,{onChange:a=>l("option",a.target.value),name:"option",required:!0,value:o.option,handleChange:a=>l("option",a.target.value),children:[e("option",{value:"0",children:"None"}),e("option",{value:"1",children:"--quick"}),e("option",{value:"2",children:"--opt"}),e("option",{value:"3",children:"--add-locks"}),e("option",{value:"4",children:"--single-transaction"})]})]}),t("div",{className:"sm:col-span-2 col-span-4",children:[e(r,{forInput:"custom_flags",value:"Custom flags"}),e(m,{name:"custom_flags",className:"mt-1 block w-full",autoComplete:"custom_flags",value:o.custom_flags,handleChange:a=>l("custom_flags",a.target.value),maxLength:64}),e(c,{message:n.custom_flags,className:"mt-2"})]}),t("div",{className:"sm:col-span-1 col-span-4",children:[e("div",{className:"mb-2 block",children:e(r,{forInput:"compress",value:"Compress"})}),t(d,{onChange:a=>l("compress",a.target.value),name:"compress",required:!0,value:o.compress,handleChange:a=>l("compress",a.target.value),children:[e("option",{value:"0",children:"No"}),e("option",{value:"1",children:"Yes"})]})]}),t("div",{className:"col-span-6",children:[e(r,{forInput:"these_tables",value:"These tables only (separate by space)"}),e(m,{name:"these_tables",className:"mt-1 block w-full",autoComplete:"these_tables",value:o.these_tables,handleChange:a=>l("these_tables",a.target.value),maxLength:255}),e(c,{message:n.these_tables,className:"mt-2"})]})]}),e(y,{processing:v,children:"Update MySQL dump"})]})]})]})]})}export{A as default}; diff --git a/public/build/assets/Edit-ac6331f8.js b/public/build/assets/Edit-d71960b1.js similarity index 88% rename from public/build/assets/Edit-ac6331f8.js rename to public/build/assets/Edit-d71960b1.js index a2321c1..4571ad3 100644 --- a/public/build/assets/Edit-ac6331f8.js +++ b/public/build/assets/Edit-d71960b1.js @@ -1 +1 @@ -import{A as B}from"./AuthenticatedLayout-b0ac98cc.js";import{j as r,a as e,u as p,r as v,b as E,H as z}from"./app-7082a047.js";import{I as o}from"./InputLabel-04829bce.js";import{T as l,I as i}from"./TextInput-38986df9.js";import{S as P,M as b,B as y}from"./Toast-a9c7a83a.js";import"./Table-13305096.js";import{H as D,j as S}from"./index.esm-eebfcfab.js";import{U as T}from"./UpdateButton-5ed5f67f.js";import{B as j}from"./BackButton-c0685269.js";import{R as q}from"./Alert-af0dbb46.js";import{T as A}from"./TealButton-9ca5476f.js";import{a as H}from"./axios-4a70c6fc.js";import"./ApplicationLogo-db4f8950.js";import"./transition-eb04b526.js";function R({className:d="",disabled:m,children:u,onClick:a}){return r("button",{onClick:a,className:"text-white bg-red-600 border border-transparent hover:bg-red-700 focus:ring-4 focus:ring-red-300 disabled:hover:bg-red-800 dark:bg-red-600 dark:hover:bg-red-700 dark:focus:ring-red-900 dark:disabled:hover:bg-red-600 focus:!ring-2 group flex h-min items-center justify-center p-0.5 text-center font-medium focus:z-10 rounded-lg text-white inline-flex items-center focus:ring-4 focus:outline-none font-medium rounded-lg text-sm px-5 py-1.5 text-center"+d,disabled:m,children:[e(D,{className:"mr-2 h-5 w-5"}),u]})}function $({auth:d}){const m=p().props.alert,u=p().props.servers,a=p().props.resource,[N,h]=v.useState(!1),[x,g]=v.useState(!1),{data:c,setData:s,patch:w,processing:k,errors:n}=E({ip:a.ip,asn:a.asn,org:a.org,isp:a.isp,timezone_gmt:a.timezone_gmt,country:a.country,city:a.city,continent:a.continent,server_id:a.server_id?a.server_id:null}),C=t=>{t.preventDefault(),w(route("ip.update",a.id)),navigate(route("ip.show",a.id))},I=()=>{const t={method:"DELETE",headers:{"X-CSRF-TOKEN":document.getElementsByName("csrf-token")[0].getAttribute("content")}};fetch(route("ip.destroy",a.id),t).then(f=>{f.redirected&&(window.location.href=f.url)})},_=()=>{g(!0),H.get(route("ip.geo.update",a.id)).then(t=>{window.location.reload()}).catch(t=>{console.log("Error fetching data"),g(!1)})};return r(B,{auth:d,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Edit IP address"}),children:[e(z,{title:"Edit IP"}),r("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[r("div",{className:"flex flex-wrap gap-2 mb-4",children:[e(j,{href:route("ip.show",a.id),children:"Back to IP"}),r(A,{onClick:_,disabled:x,children:[e(S,{className:"mr-2 h-5 w-5"}),"Refresh GEO IP"]}),e(R,{onClick:()=>h(!0),children:"Delete IP"})]}),e(q,{details:m}),e("section",{className:"bg-white dark:bg-gray-700 overflow-hidden shadow-sm sm:rounded-lg p-2 sm:p-6",children:r("form",{onSubmit:C,children:[r("div",{className:"grid gap-2 sm:grid-cols-2 sm:gap-4",children:[r("div",{className:"col-span-2",children:[e("div",{className:"mb-2 block",children:e(o,{forInput:"server_id",value:"Server"})}),r(P,{onChange:t=>s("server_id",t.target.value),name:"server_id",required:!0,value:a.server_id?a.server_id:null,handleChange:t=>s("server_id",t.target.value),children:[e("option",{value:"",children:"Choose"}),u.map(t=>r("option",{value:t.id,children:[t.hostname," (",t.title,")"]},t.id))]})]}),r("div",{children:[e(o,{forInput:"ip",value:"IP"}),e(l,{name:"ip",value:c.ip||"",className:"mt-1 block w-full",autoComplete:"ip",handleChange:t=>s("ip",t.target.value),required:!0}),e(i,{message:n.ip,className:"mt-2"})]}),r("div",{children:[e(o,{forInput:"asn",value:"asn"}),e(l,{name:"asn",className:"mt-1 block w-full",autoComplete:"asn",value:c.asn||"",handleChange:t=>s("asn",t.target.value),required:!0}),e(i,{message:n.asn,className:"mt-2"})]}),r("div",{children:[e(o,{forInput:"org",value:"org"}),e(l,{name:"org",className:"mt-1 block w-full",autoComplete:"org",value:a.org||"",handleChange:t=>s("org",t.target.value),required:!0}),e(i,{message:n.org,className:"mt-2"})]}),r("div",{children:[e(o,{forInput:"isp",value:"isp"}),e(l,{name:"isp",className:"mt-1 block w-full",autoComplete:"isp",value:c.isp||"",handleChange:t=>s("isp",t.target.value)}),e(i,{message:n.isp,className:"mt-2"})]}),r("div",{children:[e(o,{forInput:"timezone_gmt",value:"timezone_gmt"}),e(l,{name:"timezone_gmt",className:"mt-1 block w-full",autoComplete:"timezone_gmt",value:c.timezone_gmt||"",handleChange:t=>s("timezone_gmt",t.target.value)}),e(i,{message:n.timezone_gmt,className:"mt-2"})]}),r("div",{children:[e(o,{forInput:"country",value:"country"}),e(l,{name:"country",className:"mt-1 block w-full",autoComplete:"country",value:c.country||"",handleChange:t=>s("country",t.target.value)}),e(i,{message:n.country,className:"mt-2"})]}),r("div",{children:[e(o,{forInput:"city",value:"city"}),e(l,{name:"city",className:"mt-1 block w-full",autoComplete:"city",value:c.city||"",handleChange:t=>s("city",t.target.value)}),e(i,{message:n.cpu_freq,className:"mt-2"})]}),r("div",{children:[e(o,{forInput:"continent",value:"continent"}),e(l,{name:"continent",className:"mt-1 block w-full",autoComplete:"continent",value:c.continent||"",handleChange:t=>s("continent",t.target.value)}),e(i,{message:n.disk_gb,className:"mt-2"})]}),e("div",{})]}),e(T,{processing:k,children:"Update IP"})]})})]}),e(b,{show:N,size:"md",children:e(b.Body,{children:r("div",{className:"text-center",children:[e("h3",{className:"mb-5 text-lg font-normal text-gray-500 dark:text-gray-400",children:"Are you sure you want to delete this IP address?"}),r("div",{className:"flex justify-center gap-4",children:[e(y,{color:"failure",onClick:I,children:"Yes, I'm sure"}),e(y,{onClick:()=>h(!1),color:"gray",children:"No, cancel"})]})]})})})]})}export{$ as default}; +import{A as B}from"./AuthenticatedLayout-c4be06bd.js";import{j as r,a as e,u as p,r as v,b as E,H as z}from"./app-a8d4275f.js";import{I as o}from"./InputLabel-a7ee92ff.js";import{T as l,I as i}from"./TextInput-1e9aadbd.js";import{S as P,M as b,B as y}from"./Toast-ee00046f.js";import"./Table-f19b692a.js";import{H as D,j as S}from"./index.esm-2010c99b.js";import{U as T}from"./UpdateButton-5faf9e0a.js";import{B as j}from"./BackButton-2b60c346.js";import{R as q}from"./Alert-d503f44b.js";import{T as A}from"./TealButton-374c27c1.js";import{a as H}from"./axios-4a70c6fc.js";import"./ApplicationLogo-ae419612.js";import"./transition-fbe58e1e.js";function R({className:d="",disabled:m,children:u,onClick:a}){return r("button",{onClick:a,className:"text-white bg-red-600 border border-transparent hover:bg-red-700 focus:ring-4 focus:ring-red-300 disabled:hover:bg-red-800 dark:bg-red-600 dark:hover:bg-red-700 dark:focus:ring-red-900 dark:disabled:hover:bg-red-600 focus:!ring-2 group flex h-min items-center justify-center p-0.5 text-center font-medium focus:z-10 rounded-lg text-white inline-flex items-center focus:ring-4 focus:outline-none font-medium rounded-lg text-sm px-5 py-1.5 text-center"+d,disabled:m,children:[e(D,{className:"mr-2 h-5 w-5"}),u]})}function $({auth:d}){const m=p().props.alert,u=p().props.servers,a=p().props.resource,[N,h]=v.useState(!1),[x,g]=v.useState(!1),{data:c,setData:s,patch:w,processing:k,errors:n}=E({ip:a.ip,asn:a.asn,org:a.org,isp:a.isp,timezone_gmt:a.timezone_gmt,country:a.country,city:a.city,continent:a.continent,server_id:a.server_id?a.server_id:null}),C=t=>{t.preventDefault(),w(route("ip.update",a.id)),navigate(route("ip.show",a.id))},I=()=>{const t={method:"DELETE",headers:{"X-CSRF-TOKEN":document.getElementsByName("csrf-token")[0].getAttribute("content")}};fetch(route("ip.destroy",a.id),t).then(f=>{f.redirected&&(window.location.href=f.url)})},_=()=>{g(!0),H.get(route("ip.geo.update",a.id)).then(t=>{window.location.reload()}).catch(t=>{console.log("Error fetching data"),g(!1)})};return r(B,{auth:d,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Edit IP address"}),children:[e(z,{title:"Edit IP"}),r("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[r("div",{className:"flex flex-wrap gap-2 mb-4",children:[e(j,{href:route("ip.show",a.id),children:"Back to IP"}),r(A,{onClick:_,disabled:x,children:[e(S,{className:"mr-2 h-5 w-5"}),"Refresh GEO IP"]}),e(R,{onClick:()=>h(!0),children:"Delete IP"})]}),e(q,{details:m}),e("section",{className:"bg-white dark:bg-gray-700 overflow-hidden shadow-sm sm:rounded-lg p-2 sm:p-6",children:r("form",{onSubmit:C,children:[r("div",{className:"grid gap-2 sm:grid-cols-2 sm:gap-4",children:[r("div",{className:"col-span-2",children:[e("div",{className:"mb-2 block",children:e(o,{forInput:"server_id",value:"Server"})}),r(P,{onChange:t=>s("server_id",t.target.value),name:"server_id",required:!0,value:a.server_id?a.server_id:null,handleChange:t=>s("server_id",t.target.value),children:[e("option",{value:"",children:"Choose"}),u.map(t=>r("option",{value:t.id,children:[t.hostname," (",t.title,")"]},t.id))]})]}),r("div",{children:[e(o,{forInput:"ip",value:"IP"}),e(l,{name:"ip",value:c.ip||"",className:"mt-1 block w-full",autoComplete:"ip",handleChange:t=>s("ip",t.target.value),required:!0}),e(i,{message:n.ip,className:"mt-2"})]}),r("div",{children:[e(o,{forInput:"asn",value:"asn"}),e(l,{name:"asn",className:"mt-1 block w-full",autoComplete:"asn",value:c.asn||"",handleChange:t=>s("asn",t.target.value),required:!0}),e(i,{message:n.asn,className:"mt-2"})]}),r("div",{children:[e(o,{forInput:"org",value:"org"}),e(l,{name:"org",className:"mt-1 block w-full",autoComplete:"org",value:a.org||"",handleChange:t=>s("org",t.target.value),required:!0}),e(i,{message:n.org,className:"mt-2"})]}),r("div",{children:[e(o,{forInput:"isp",value:"isp"}),e(l,{name:"isp",className:"mt-1 block w-full",autoComplete:"isp",value:c.isp||"",handleChange:t=>s("isp",t.target.value)}),e(i,{message:n.isp,className:"mt-2"})]}),r("div",{children:[e(o,{forInput:"timezone_gmt",value:"timezone_gmt"}),e(l,{name:"timezone_gmt",className:"mt-1 block w-full",autoComplete:"timezone_gmt",value:c.timezone_gmt||"",handleChange:t=>s("timezone_gmt",t.target.value)}),e(i,{message:n.timezone_gmt,className:"mt-2"})]}),r("div",{children:[e(o,{forInput:"country",value:"country"}),e(l,{name:"country",className:"mt-1 block w-full",autoComplete:"country",value:c.country||"",handleChange:t=>s("country",t.target.value)}),e(i,{message:n.country,className:"mt-2"})]}),r("div",{children:[e(o,{forInput:"city",value:"city"}),e(l,{name:"city",className:"mt-1 block w-full",autoComplete:"city",value:c.city||"",handleChange:t=>s("city",t.target.value)}),e(i,{message:n.cpu_freq,className:"mt-2"})]}),r("div",{children:[e(o,{forInput:"continent",value:"continent"}),e(l,{name:"continent",className:"mt-1 block w-full",autoComplete:"continent",value:c.continent||"",handleChange:t=>s("continent",t.target.value)}),e(i,{message:n.disk_gb,className:"mt-2"})]}),e("div",{})]}),e(T,{processing:k,children:"Update IP"})]})})]}),e(b,{show:N,size:"md",children:e(b.Body,{children:r("div",{className:"text-center",children:[e("h3",{className:"mb-5 text-lg font-normal text-gray-500 dark:text-gray-400",children:"Are you sure you want to delete this IP address?"}),r("div",{className:"flex justify-center gap-4",children:[e(y,{color:"failure",onClick:I,children:"Yes, I'm sure"}),e(y,{onClick:()=>h(!1),color:"gray",children:"No, cancel"})]})]})})})]})}export{$ as default}; diff --git a/public/build/assets/Edit-debf2b8b.js b/public/build/assets/Edit-d7a6955d.js similarity index 84% rename from public/build/assets/Edit-debf2b8b.js rename to public/build/assets/Edit-d7a6955d.js index fccacbf..42396e5 100644 --- a/public/build/assets/Edit-debf2b8b.js +++ b/public/build/assets/Edit-d7a6955d.js @@ -1 +1 @@ -import{A as N}from"./AuthenticatedLayout-b0ac98cc.js";import{u as n,b as _,j as s,a as e,H as k}from"./app-7082a047.js";import{I as l}from"./InputLabel-04829bce.js";import{T as d,I as c}from"./TextInput-38986df9.js";import{S as m}from"./Toast-a9c7a83a.js";import"./Table-13305096.js";import{U as y}from"./UpdateButton-5ed5f67f.js";import{B as b}from"./BackButton-c0685269.js";import{R as C}from"./Alert-af0dbb46.js";import"./ApplicationLogo-db4f8950.js";import"./transition-eb04b526.js";import"./index.esm-eebfcfab.js";function R({auth:p}){const u=n().props.alert,h=n().props.servers,v=n().props.keys,r=n().props.resource,g=n().props.ip,{data:o,setData:t,patch:f,processing:w,errors:i}=_({server_id:r.server_id,username:r.username,ssh_port:r.ssh_port,key_id:r.key_id,password:""}),x=a=>{a.preventDefault(),f(route("connection.update",r.id)),navigate(route("connection.show",r.id))};return s(N,{auth:p,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Edit connection"}),children:[e(k,{title:"Edit connection"}),s("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(b,{href:route("connection.show",r.id),children:"Back to connection"})}),e(C,{details:u}),e("section",{className:"bg-white dark:bg-gray-700 overflow-hidden shadow-sm sm:rounded-lg p-2 sm:p-6",children:s("form",{onSubmit:x,children:[s("div",{className:"grid gap-2 sm:grid-cols-1 md:grid-cols-4 sm:gap-4",children:[s("div",{className:"sm:col-span-2 col-span-4",children:[e("div",{className:"mb-2 block",children:e(l,{forInput:"server_id",value:"Server"})}),s(m,{onChange:a=>t("server_id",a.target.value),name:"server_id",required:!0,value:o.server_id,handleChange:a=>t("server_id",a.target.value),children:[e("option",{value:"",children:"Choose one"}),h.map(a=>s("option",{value:a.id,children:[a.title," (",a.hostname," | ",g,")"]},a.id))]})]}),s("div",{className:"sm:col-span-1 col-span-4",children:[e(l,{forInput:"username",value:"Username"}),e(d,{id:"username",name:"username",value:o.username,className:"mt-1 block w-full",autoComplete:"username",handleChange:a=>t("username",a.target.value),maxLength:64,required:!0}),e(c,{message:i.username,className:"mt-2"})]}),s("div",{className:"sm:col-span-1 col-span-4",children:[e(l,{forInput:"ssh_port",value:"SSH port"}),e(d,{type:"number",name:"ssh_port",className:"mt-1 block w-full",autoComplete:"ssh_port",value:o.ssh_port,handleChange:a=>t("ssh_port",a.target.value),required:!0}),e(c,{message:i.ssh_port,className:"mt-2"})]}),e("p",{children:e("a",{className:"font-medium text-blue-600 dark:text-blue-500 hover:underline",href:route("key.index"),children:"Manage keys"})}),s("div",{className:"sm:col-span-4 col-span-4",children:[e("div",{className:"mb-2 block",children:e(l,{forInput:"key_id",value:"Key"})}),s(m,{onChange:a=>t("key_id",a.target.value),name:"key_id",value:o.key_id,handleChange:a=>t("key_id",a.target.value),children:[e("option",{value:"",children:"None. Use password"}),v.map(a=>e("option",{value:a.id,children:a.original_name},a.id))]})]}),s("div",{className:"mt-2 sm:col-span-4 col-span-4",children:[e("p",{className:"text-gray-500 dark:text-gray-400",children:"Passwords are stored encrypted"}),e("p",{className:"text-yellow-500 dark:text-yellow-400",children:"You cannot edit the existing password, it must be re-set"})]}),s("div",{className:"col-span-4",children:[e(l,{forInput:"password",value:"Password"}),e(d,{name:"password",className:"mt-1 block w-full",autoComplete:"password",value:o.password,handleChange:a=>t("password",a.target.value),required:!0}),e(c,{message:i.password,className:"mt-2"})]})]}),e(y,{processing:w,children:"Update connection"})]})})]})]})}export{R as default}; +import{A as N}from"./AuthenticatedLayout-c4be06bd.js";import{u as n,b as _,j as s,a as e,H as k}from"./app-a8d4275f.js";import{I as l}from"./InputLabel-a7ee92ff.js";import{T as d,I as c}from"./TextInput-1e9aadbd.js";import{S as m}from"./Toast-ee00046f.js";import"./Table-f19b692a.js";import{U as y}from"./UpdateButton-5faf9e0a.js";import{B as b}from"./BackButton-2b60c346.js";import{R as C}from"./Alert-d503f44b.js";import"./ApplicationLogo-ae419612.js";import"./transition-fbe58e1e.js";import"./index.esm-2010c99b.js";function R({auth:p}){const u=n().props.alert,h=n().props.servers,v=n().props.keys,r=n().props.resource,g=n().props.ip,{data:o,setData:t,patch:f,processing:w,errors:i}=_({server_id:r.server_id,username:r.username,ssh_port:r.ssh_port,key_id:r.key_id,password:""}),x=a=>{a.preventDefault(),f(route("connection.update",r.id)),navigate(route("connection.show",r.id))};return s(N,{auth:p,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Edit connection"}),children:[e(k,{title:"Edit connection"}),s("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(b,{href:route("connection.show",r.id),children:"Back to connection"})}),e(C,{details:u}),e("section",{className:"bg-white dark:bg-gray-700 overflow-hidden shadow-sm sm:rounded-lg p-2 sm:p-6",children:s("form",{onSubmit:x,children:[s("div",{className:"grid gap-2 sm:grid-cols-1 md:grid-cols-4 sm:gap-4",children:[s("div",{className:"sm:col-span-2 col-span-4",children:[e("div",{className:"mb-2 block",children:e(l,{forInput:"server_id",value:"Server"})}),s(m,{onChange:a=>t("server_id",a.target.value),name:"server_id",required:!0,value:o.server_id,handleChange:a=>t("server_id",a.target.value),children:[e("option",{value:"",children:"Choose one"}),h.map(a=>s("option",{value:a.id,children:[a.title," (",a.hostname," | ",g,")"]},a.id))]})]}),s("div",{className:"sm:col-span-1 col-span-4",children:[e(l,{forInput:"username",value:"Username"}),e(d,{id:"username",name:"username",value:o.username,className:"mt-1 block w-full",autoComplete:"username",handleChange:a=>t("username",a.target.value),maxLength:64,required:!0}),e(c,{message:i.username,className:"mt-2"})]}),s("div",{className:"sm:col-span-1 col-span-4",children:[e(l,{forInput:"ssh_port",value:"SSH port"}),e(d,{type:"number",name:"ssh_port",className:"mt-1 block w-full",autoComplete:"ssh_port",value:o.ssh_port,handleChange:a=>t("ssh_port",a.target.value),required:!0}),e(c,{message:i.ssh_port,className:"mt-2"})]}),e("p",{children:e("a",{className:"font-medium text-blue-600 dark:text-blue-500 hover:underline",href:route("key.index"),children:"Manage keys"})}),s("div",{className:"sm:col-span-4 col-span-4",children:[e("div",{className:"mb-2 block",children:e(l,{forInput:"key_id",value:"Key"})}),s(m,{onChange:a=>t("key_id",a.target.value),name:"key_id",value:o.key_id,handleChange:a=>t("key_id",a.target.value),children:[e("option",{value:"",children:"None. Use password"}),v.map(a=>e("option",{value:a.id,children:a.original_name},a.id))]})]}),s("div",{className:"mt-2 sm:col-span-4 col-span-4",children:[e("p",{className:"text-gray-500 dark:text-gray-400",children:"Passwords are stored encrypted"}),e("p",{className:"text-yellow-500 dark:text-yellow-400",children:"You cannot edit the existing password, it must be re-set"})]}),s("div",{className:"col-span-4",children:[e(l,{forInput:"password",value:"Password"}),e(d,{name:"password",className:"mt-1 block w-full",autoComplete:"password",value:o.password,handleChange:a=>t("password",a.target.value),required:!0}),e(c,{message:i.password,className:"mt-2"})]})]}),e(y,{processing:w,children:"Update connection"})]})})]})]})}export{R as default}; diff --git a/public/build/assets/Edit-7da4357e.js b/public/build/assets/Edit-dbb33c2c.js similarity index 79% rename from public/build/assets/Edit-7da4357e.js rename to public/build/assets/Edit-dbb33c2c.js index 1094ee6..51d2957 100644 --- a/public/build/assets/Edit-7da4357e.js +++ b/public/build/assets/Edit-dbb33c2c.js @@ -1 +1 @@ -import{A as w}from"./AuthenticatedLayout-b0ac98cc.js";import{u as d,r as y,b as k,j as t,a as e,H as B}from"./app-7082a047.js";import{I as i}from"./InputLabel-04829bce.js";import{T as c,I as u}from"./TextInput-38986df9.js";import{M as p,B as h}from"./Toast-a9c7a83a.js";import"./Table-13305096.js";import{D as C}from"./DangerButton-a6bef65a.js";import{U as E}from"./UpdateButton-5ed5f67f.js";import{B as I}from"./BackButton-c0685269.js";import"./ApplicationLogo-db4f8950.js";import"./transition-eb04b526.js";import"./index.esm-eebfcfab.js";function z({auth:f}){d().props.servers;const r=d().props.resource,[g,o]=y.useState(!1),{data:m,setData:s,patch:x,processing:v,errors:l}=k({title:r.title,command:r.command}),N=a=>{a.preventDefault(),x(route("command.update",r.id))},b=()=>{const a={method:"DELETE",headers:{"X-CSRF-TOKEN":document.getElementsByName("csrf-token")[0].getAttribute("content")}};fetch(route("command.destroy",r.id),a).then(n=>{n.redirected&&(window.location.href=n.url)})};return t(w,{auth:f,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Edit Command"}),children:[e(B,{title:"Edit command"}),t("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(I,{href:route("command.index"),children:"Back to commands"})}),e("div",{className:"bg-white dark:bg-gray-700 overflow-hidden shadow-sm sm:rounded-lg p-2 sm:p-6",children:t("form",{onSubmit:N,children:[t("div",{className:"grid gap-2 sm:grid-cols-2 sm:gap-4",children:[t("div",{className:"col-span-4",children:[e(i,{forInput:"title",value:"Title"}),e(c,{name:"title",value:m.title||"",className:"mt-1 block w-full",autoComplete:"title",handleChange:a=>s("title",a.target.value),required:!0}),e(u,{message:l.title,className:"mt-2"})]}),t("div",{className:"col-span-4",children:[e(i,{forInput:"command",value:"Command"}),e(c,{name:"command",className:"mt-1 block w-full",autoComplete:"command",value:m.command||"",handleChange:a=>s("command",a.target.value),required:!0}),e(u,{message:l.asn,className:"mt-2"})]})]}),e(E,{processing:v,children:"Update command"}),e(C,{onClick:()=>o(!0),type:"button",className:"inline-flex items-center px-5 py-2.5 ml-2 text-sm font-medium text-center text-white bg-red-700 rounded-lg focus:ring-4 focus:ring-red-200 dark:focus:ring-red-900 hover:bg-red-800",children:"Delete command"})]})})]}),e(p,{show:g,size:"md",children:e(p.Body,{children:t("div",{className:"text-center",children:[e("h3",{className:"mb-5 text-lg font-normal text-gray-500 dark:text-gray-400",children:"Are you sure you want to delete this command?"}),t("div",{className:"flex justify-center gap-4",children:[e(h,{color:"failure",onClick:b,children:"Yes, I'm sure"}),e(h,{onClick:()=>o(!1),color:"gray",children:"No, cancel"})]})]})})})]})}export{z as default}; +import{A as w}from"./AuthenticatedLayout-c4be06bd.js";import{u as d,r as y,b as k,j as t,a as e,H as B}from"./app-a8d4275f.js";import{I as i}from"./InputLabel-a7ee92ff.js";import{T as c,I as u}from"./TextInput-1e9aadbd.js";import{M as p,B as h}from"./Toast-ee00046f.js";import"./Table-f19b692a.js";import{D as C}from"./DangerButton-dd3abfc4.js";import{U as E}from"./UpdateButton-5faf9e0a.js";import{B as I}from"./BackButton-2b60c346.js";import"./ApplicationLogo-ae419612.js";import"./transition-fbe58e1e.js";import"./index.esm-2010c99b.js";function z({auth:f}){d().props.servers;const r=d().props.resource,[g,o]=y.useState(!1),{data:m,setData:s,patch:x,processing:v,errors:l}=k({title:r.title,command:r.command}),N=a=>{a.preventDefault(),x(route("command.update",r.id))},b=()=>{const a={method:"DELETE",headers:{"X-CSRF-TOKEN":document.getElementsByName("csrf-token")[0].getAttribute("content")}};fetch(route("command.destroy",r.id),a).then(n=>{n.redirected&&(window.location.href=n.url)})};return t(w,{auth:f,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Edit Command"}),children:[e(B,{title:"Edit command"}),t("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(I,{href:route("command.index"),children:"Back to commands"})}),e("div",{className:"bg-white dark:bg-gray-700 overflow-hidden shadow-sm sm:rounded-lg p-2 sm:p-6",children:t("form",{onSubmit:N,children:[t("div",{className:"grid gap-2 sm:grid-cols-2 sm:gap-4",children:[t("div",{className:"col-span-4",children:[e(i,{forInput:"title",value:"Title"}),e(c,{name:"title",value:m.title||"",className:"mt-1 block w-full",autoComplete:"title",handleChange:a=>s("title",a.target.value),required:!0}),e(u,{message:l.title,className:"mt-2"})]}),t("div",{className:"col-span-4",children:[e(i,{forInput:"command",value:"Command"}),e(c,{name:"command",className:"mt-1 block w-full",autoComplete:"command",value:m.command||"",handleChange:a=>s("command",a.target.value),required:!0}),e(u,{message:l.asn,className:"mt-2"})]})]}),e(E,{processing:v,children:"Update command"}),e(C,{onClick:()=>o(!0),type:"button",className:"inline-flex items-center px-5 py-2.5 ml-2 text-sm font-medium text-center text-white bg-red-700 rounded-lg focus:ring-4 focus:ring-red-200 dark:focus:ring-red-900 hover:bg-red-800",children:"Delete command"})]})})]}),e(p,{show:g,size:"md",children:e(p.Body,{children:t("div",{className:"text-center",children:[e("h3",{className:"mb-5 text-lg font-normal text-gray-500 dark:text-gray-400",children:"Are you sure you want to delete this command?"}),t("div",{className:"flex justify-center gap-4",children:[e(h,{color:"failure",onClick:b,children:"Yes, I'm sure"}),e(h,{onClick:()=>o(!1),color:"gray",children:"No, cancel"})]})]})})})]})}export{z as default}; diff --git a/public/build/assets/ForgotPassword-7debfaed.js b/public/build/assets/ForgotPassword-cc5498c4.js similarity index 77% rename from public/build/assets/ForgotPassword-7debfaed.js rename to public/build/assets/ForgotPassword-cc5498c4.js index d4bb32b..5a1a036 100644 --- a/public/build/assets/ForgotPassword-7debfaed.js +++ b/public/build/assets/ForgotPassword-cc5498c4.js @@ -1 +1 @@ -import{G as d}from"./GuestLayout-3dfccb91.js";import{T as u,I as c}from"./TextInput-38986df9.js";import{P as p}from"./PrimaryButton-aae876dd.js";import{b as w,j as t,a as e,H as f}from"./app-7082a047.js";import"./ApplicationLogo-db4f8950.js";function k({status:s}){const{data:r,setData:o,post:m,processing:l,errors:i}=w({email:""}),n=a=>{o(a.target.name,a.target.value)};return t(d,{children:[e(f,{title:"Forgot Password"}),e("div",{className:"mb-4 text-sm text-gray-600 dark:text-gray-300",children:"Forgot your password? No problem. Just let us know your email address and we will email you a password reset link that will allow you to choose a new one."}),s&&e("div",{className:"mb-4 font-medium text-sm text-green-600",children:s}),t("form",{onSubmit:a=>{a.preventDefault(),m(route("password.email"))},children:[e(u,{id:"password",type:"email",name:"email",value:r.email,className:"mt-1 block w-full",isFocused:!0,handleChange:n}),e(c,{message:i.email,className:"mt-2"}),e("div",{className:"flex items-center justify-end mt-4",children:e(p,{className:"ml-4",processing:l,children:"Email Password Reset Link"})})]})]})}export{k as default}; +import{G as d}from"./GuestLayout-fc7cb66d.js";import{T as u,I as c}from"./TextInput-1e9aadbd.js";import{P as p}from"./PrimaryButton-19cc4f5a.js";import{b as w,j as t,a as e,H as f}from"./app-a8d4275f.js";import"./ApplicationLogo-ae419612.js";function k({status:s}){const{data:r,setData:o,post:m,processing:l,errors:i}=w({email:""}),n=a=>{o(a.target.name,a.target.value)};return t(d,{children:[e(f,{title:"Forgot Password"}),e("div",{className:"mb-4 text-sm text-gray-600 dark:text-gray-300",children:"Forgot your password? No problem. Just let us know your email address and we will email you a password reset link that will allow you to choose a new one."}),s&&e("div",{className:"mb-4 font-medium text-sm text-green-600",children:s}),t("form",{onSubmit:a=>{a.preventDefault(),m(route("password.email"))},children:[e(u,{id:"password",type:"email",name:"email",value:r.email,className:"mt-1 block w-full",isFocused:!0,handleChange:n}),e(c,{message:i.email,className:"mt-2"}),e("div",{className:"flex items-center justify-end mt-4",children:e(p,{className:"ml-4",processing:l,children:"Email Password Reset Link"})})]})]})}export{k as default}; diff --git a/public/build/assets/FromTo-594329a5.js b/public/build/assets/FromTo-e70c4783.js similarity index 81% rename from public/build/assets/FromTo-594329a5.js rename to public/build/assets/FromTo-e70c4783.js index 439357c..e1982f2 100644 --- a/public/build/assets/FromTo-594329a5.js +++ b/public/build/assets/FromTo-e70c4783.js @@ -1 +1 @@ -import{A as u}from"./AuthenticatedLayout-b0ac98cc.js";import{u as a,r as v,j as t,a as e,H as x}from"./app-7082a047.js";import{s as _,G as i,g as b,a as y}from"./gridJsConfig-39d3aeab.js";import{R as N}from"./Alert-af0dbb46.js";import{B as w}from"./BackButton-c0685269.js";import{T as P}from"./TealButton-9ca5476f.js";import{a as k}from"./axios-4a70c6fc.js";import{b as A}from"./index.esm-eebfcfab.js";import{n as B}from"./helpers-2aabf79e.js";import{f as H}from"./index-9b0dda6f.js";import"./ApplicationLogo-db4f8950.js";import"./transition-eb04b526.js";import"./Toast-a9c7a83a.js";import"./Table-13305096.js";function L({auth:n}){const m=a().props.alert,s=a().props.pings,d=a().props.minPing,l=a().props.maxPing,c=a().props.avgPing,p=a().props.auth.user,[h,o]=v.useState(!1),g=()=>{o(!0);const r={headers:{Authorization:`Bearer ${p.api_token}`}};k.get(route("run.ping-from-to",[s[0].from_server.id,s[0].to_server.id]),r).then(f=>{window.location.reload()}).catch(f=>{console.log("Error running ping"),o(!1)})};return t(u,{auth:n,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Pings from "+s[0].from_server.hostname+" to "+s[0].to_server.hostname}),children:[e(x,{title:"Pings from "+s[0].from_server.hostname+" to "+s[0].to_server.hostname}),t("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[t("div",{className:"flex flex-wrap gap-2 mb-4",children:[e(w,{href:route("ping.index"),children:"Pings"}),t(P,{onClick:g,disabled:h,children:[e(A,{className:"mr-2 h-5 w-5"}),"Run this ping"]})]}),e(N,{details:m}),t("div",{className:"grid grid-cols-2 pb-2",children:[e("div",{className:"col md:col-span-1 col-span-2",children:t("h2",{className:"font-medium text-gray-900 dark:text-gray-300",children:["From: ",e("b",{children:e("a",{href:route("ip.show",s[0].from_server.ip_ssh.id),children:s[0].from_server.ip_ssh.ip})})," To: ",e("b",{children:e("a",{href:route("ip.show",s[0].to_server.ip_ssh.id),children:s[0].to_server.ip_ssh.ip})})]})}),e("div",{className:"col md:col-span-1 col-span-2 md:text-end",children:t("h2",{className:"font-medium text-gray-900 dark:text-gray-300",children:["Average: ",e("b",{children:B(c)})," Lowest: ",e("b",{children:d})," Highest: ",e("b",{children:l})]})})]}),e("section",{className:"pt-4 shadow-md dark:shadow-md bg-white/50 dark:bg-gray-700 rounded-lg",children:s.length===0?e("h2",{className:"text-md p-2 font-semibold leading-none text-yellow-500 md:text-lg dark:text-yellow-400",children:"No pings yet"}):e(_,{data:s,columns:[{id:"from_server_id",name:"From",sort:!1,data:r=>r.from_server?i(`${r.from_server.hostname}`):null},{id:"server_id",name:"To",sort:!0,data:r=>r.to_server?i(`${r.to_server.hostname}`):null},{id:"was_up",name:"Up",sort:!0,formatter:r=>r===1?"Y":"N"},{id:"avg",name:"AVG",sort:!0},{id:"min",name:"MIN",sort:!0},{id:"max",name:"MAX",sort:!0},{id:"created_at",name:"Datetime",sort:!0,formatter:r=>H(new Date(r),"yyyy-MM-dd HH:mm:ss")}],search:!1,className:b,pagination:y})})]})]})}export{L as default}; +import{A as u}from"./AuthenticatedLayout-c4be06bd.js";import{u as a,r as v,j as t,a as e,H as x}from"./app-a8d4275f.js";import{s as _,G as i,g as b,a as y}from"./gridJsConfig-143e158b.js";import{R as N}from"./Alert-d503f44b.js";import{B as w}from"./BackButton-2b60c346.js";import{T as P}from"./TealButton-374c27c1.js";import{a as k}from"./axios-4a70c6fc.js";import{b as A}from"./index.esm-2010c99b.js";import{n as B}from"./helpers-2aabf79e.js";import{f as H}from"./index-9b0dda6f.js";import"./ApplicationLogo-ae419612.js";import"./transition-fbe58e1e.js";import"./Toast-ee00046f.js";import"./Table-f19b692a.js";function L({auth:n}){const m=a().props.alert,s=a().props.pings,d=a().props.minPing,l=a().props.maxPing,c=a().props.avgPing,p=a().props.auth.user,[h,o]=v.useState(!1),g=()=>{o(!0);const r={headers:{Authorization:`Bearer ${p.api_token}`}};k.get(route("run.ping-from-to",[s[0].from_server.id,s[0].to_server.id]),r).then(f=>{window.location.reload()}).catch(f=>{console.log("Error running ping"),o(!1)})};return t(u,{auth:n,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Pings from "+s[0].from_server.hostname+" to "+s[0].to_server.hostname}),children:[e(x,{title:"Pings from "+s[0].from_server.hostname+" to "+s[0].to_server.hostname}),t("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[t("div",{className:"flex flex-wrap gap-2 mb-4",children:[e(w,{href:route("ping.index"),children:"Pings"}),t(P,{onClick:g,disabled:h,children:[e(A,{className:"mr-2 h-5 w-5"}),"Run this ping"]})]}),e(N,{details:m}),t("div",{className:"grid grid-cols-2 pb-2",children:[e("div",{className:"col md:col-span-1 col-span-2",children:t("h2",{className:"font-medium text-gray-900 dark:text-gray-300",children:["From: ",e("b",{children:e("a",{href:route("ip.show",s[0].from_server.ip_ssh.id),children:s[0].from_server.ip_ssh.ip})})," To: ",e("b",{children:e("a",{href:route("ip.show",s[0].to_server.ip_ssh.id),children:s[0].to_server.ip_ssh.ip})})]})}),e("div",{className:"col md:col-span-1 col-span-2 md:text-end",children:t("h2",{className:"font-medium text-gray-900 dark:text-gray-300",children:["Average: ",e("b",{children:B(c)})," Lowest: ",e("b",{children:d})," Highest: ",e("b",{children:l})]})})]}),e("section",{className:"pt-4 shadow-md dark:shadow-md bg-white/50 dark:bg-gray-700 rounded-lg",children:s.length===0?e("h2",{className:"text-md p-2 font-semibold leading-none text-yellow-500 md:text-lg dark:text-yellow-400",children:"No pings yet"}):e(_,{data:s,columns:[{id:"from_server_id",name:"From",sort:!1,data:r=>r.from_server?i(`${r.from_server.hostname}`):null},{id:"server_id",name:"To",sort:!0,data:r=>r.to_server?i(`${r.to_server.hostname}`):null},{id:"was_up",name:"Up",sort:!0,formatter:r=>r===1?"Y":"N"},{id:"avg",name:"AVG",sort:!0},{id:"min",name:"MIN",sort:!0},{id:"max",name:"MAX",sort:!0},{id:"created_at",name:"Datetime",sort:!0,formatter:r=>H(new Date(r),"yyyy-MM-dd HH:mm:ss")}],search:!1,className:b,pagination:y})})]})]})}export{L as default}; diff --git a/public/build/assets/GuestLayout-3dfccb91.js b/public/build/assets/GuestLayout-fc7cb66d.js similarity index 76% rename from public/build/assets/GuestLayout-3dfccb91.js rename to public/build/assets/GuestLayout-fc7cb66d.js index 0d86fb5..002f20b 100644 --- a/public/build/assets/GuestLayout-3dfccb91.js +++ b/public/build/assets/GuestLayout-fc7cb66d.js @@ -1 +1 @@ -import{A as a}from"./ApplicationLogo-db4f8950.js";import{j as m,a as e,L as i}from"./app-7082a047.js";function d({children:s,wide:r=!1}){return m("div",{className:"min-h-screen flex flex-col sm:justify-center items-center pt-6 sm:pt-0 bg-gray-100 dark:bg-gray-800",children:[e("div",{children:e(i,{href:"/",children:e(a,{className:"w-20 h-20 fill-current text-gray-500"})})}),e("div",{className:"w-full mt-6 "+(r?"sm:max-w-5xl":"sm:max-w-md")+" px-6 py-4 bg-white dark:bg-gray-700 shadow-md overflow-hidden sm:rounded-lg",children:s})]})}export{d as G}; +import{A as a}from"./ApplicationLogo-ae419612.js";import{j as m,a as e,L as i}from"./app-a8d4275f.js";function d({children:s,wide:r=!1}){return m("div",{className:"min-h-screen flex flex-col sm:justify-center items-center pt-6 sm:pt-0 bg-gray-100 dark:bg-gray-800",children:[e("div",{children:e(i,{href:"/",children:e(a,{className:"w-20 h-20 fill-current text-gray-500"})})}),e("div",{className:"w-full mt-6 "+(r?"sm:max-w-5xl":"sm:max-w-md")+" px-6 py-4 bg-white dark:bg-gray-700 shadow-md overflow-hidden sm:rounded-lg",children:s})]})}export{d as G}; diff --git a/public/build/assets/Index-a282e9dc.js b/public/build/assets/Index-0141e4b4.js similarity index 85% rename from public/build/assets/Index-a282e9dc.js rename to public/build/assets/Index-0141e4b4.js index 0f06753..df149ce 100644 --- a/public/build/assets/Index-a282e9dc.js +++ b/public/build/assets/Index-0141e4b4.js @@ -1 +1 @@ -import{A as o}from"./AuthenticatedLayout-b0ac98cc.js";import{a as e,r as d,F as m,u as l,j as t,H as c}from"./app-7082a047.js";import{d as u}from"./index.esm-eebfcfab.js";import{R as p}from"./Alert-af0dbb46.js";import{A as x}from"./AddButton-bf9b47af.js";import{a as h}from"./axios-4a70c6fc.js";import{F as g}from"./index.esm-d4b60c73.js";import{R as f}from"./ResourceEmptyText-25c44e25.js";import"./ApplicationLogo-db4f8950.js";import"./transition-eb04b526.js";import"./Toast-a9c7a83a.js";import"./Table-13305096.js";function y({href:i,className:s="",children:n,onClick:r,disabled:a}){return e("a",{href:i,onClick:r,className:`text-white bg-emerald-600 hover:bg-emerald-700 dark:bg-emerald-600 dark:hover:bg-emerald-700 border border-transparent focus:ring-4 focus:ring-emerald-300 disabled:hover:bg-emerald-700 dark:focus:ring-emerald-900 dark:disabled:hover:bg-emerald-600 focus:!ring-2 group flex h-min items-center justify-center p-0.5 text-sm focus:z-10 inline-flex items-center rounded-lg px-5 py-1.5 text-center hover:cursor-pointer ${a?"pointer-events-none cursor-progress":""}`+s,children:e("span",{className:"flex items-center rounded-md",children:n})})}function b({resource:i}){const[s,n]=d.useState(null);async function r(a){return await(await h.get(route("connection.authenticated",a.id))).data}return d.useEffect(()=>{r(i).then(a=>{n(a.result)})},[]),e(m,{children:e(g,{className:(()=>s?"md:ml-2 ml-1 h-3 w-3 text-green-300 dark:text-green-400 inline":s===null?"md:ml-2 ml-1 h-3 w-3 text-gray-300 dark:text-gray-500 inline":"md:ml-2 ml-1 h-3 w-3 text-red-300 dark:text-red-400 inline")(),title:(()=>s?"Able to connect":s===null?"unknown":"NOT able to connect")()})})}function P({auth:i}){const s=l().props.alert,n=l().props.connections;return t(o,{auth:i,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Server connections"}),children:[e(c,{title:"Server connections"}),t("div",{className:"py-8 px-1 mx-auto max-w-7xl lg:py-10",children:[t("div",{className:"flex flex-wrap gap-2 mb-4",children:[e(x,{href:route("connection.create"),children:"Add a connection"}),t(y,{href:route("key.index"),children:[e(u,{className:"mr-2 h-5 w-5"}),"Keys"]})]}),e(p,{details:s}),e("div",{className:"grid gap-2 grid-cols-1 sm:grid-cols-4 sm:gap-4",children:n.length===0?e(f,{resource:"connections"}):n.map(r=>e("section",{className:"bg-white/50 dark:bg-gray-700 rounded-lg shadow-sm hover:cursor-pointer",onClick:a=>window.location.href=route("connection.show",r.id),children:t("div",{className:"md:py-2 py-4 px-2 mx-auto max-w-6xl",children:[t("div",{className:"flex items-center justify-between mb-3",children:[t("div",{children:[e("span",{className:"bg-indigo-200 text-indigo-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-indigo-900 dark:text-indigo-300",children:(()=>typeof r.key_id<"u"&&r.key_id!==null?"KEY":typeof r.hashed_password<"u"&&n.hashed_password!==null?"HASH PASSWORD":"PASSWORD")()}),t("span",{className:"bg-green-100 text-green-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-green-900 dark:text-green-300",children:["PORT ",r.ssh_port]})]}),e("small",{className:"text-end",children:e(b,{resource:r})})]}),t("div",{className:"flex flex-col justify-center items-center pb-3",children:[e("h5",{className:"mb-1 text-xl font-medium text-gray-900 dark:text-white",children:r.username}),e("span",{className:"text-sm text-gray-500 dark:text-gray-400",children:r.server.hostname})]})]})},r.id))})]})]})}export{P as default}; +import{A as o}from"./AuthenticatedLayout-c4be06bd.js";import{a as e,r as d,F as m,u as l,j as t,H as c}from"./app-a8d4275f.js";import{d as u}from"./index.esm-2010c99b.js";import{R as p}from"./Alert-d503f44b.js";import{A as x}from"./AddButton-35ed8727.js";import{a as h}from"./axios-4a70c6fc.js";import{F as g}from"./index.esm-6d0014d4.js";import{R as f}from"./ResourceEmptyText-f0a77405.js";import"./ApplicationLogo-ae419612.js";import"./transition-fbe58e1e.js";import"./Toast-ee00046f.js";import"./Table-f19b692a.js";function y({href:i,className:s="",children:n,onClick:r,disabled:a}){return e("a",{href:i,onClick:r,className:`text-white bg-emerald-600 hover:bg-emerald-700 dark:bg-emerald-600 dark:hover:bg-emerald-700 border border-transparent focus:ring-4 focus:ring-emerald-300 disabled:hover:bg-emerald-700 dark:focus:ring-emerald-900 dark:disabled:hover:bg-emerald-600 focus:!ring-2 group flex h-min items-center justify-center p-0.5 text-sm focus:z-10 inline-flex items-center rounded-lg px-5 py-1.5 text-center hover:cursor-pointer ${a?"pointer-events-none cursor-progress":""}`+s,children:e("span",{className:"flex items-center rounded-md",children:n})})}function b({resource:i}){const[s,n]=d.useState(null);async function r(a){return await(await h.get(route("connection.authenticated",a.id))).data}return d.useEffect(()=>{r(i).then(a=>{n(a.result)})},[]),e(m,{children:e(g,{className:(()=>s?"md:ml-2 ml-1 h-3 w-3 text-green-300 dark:text-green-400 inline":s===null?"md:ml-2 ml-1 h-3 w-3 text-gray-300 dark:text-gray-500 inline":"md:ml-2 ml-1 h-3 w-3 text-red-300 dark:text-red-400 inline")(),title:(()=>s?"Able to connect":s===null?"unknown":"NOT able to connect")()})})}function P({auth:i}){const s=l().props.alert,n=l().props.connections;return t(o,{auth:i,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Server connections"}),children:[e(c,{title:"Server connections"}),t("div",{className:"py-8 px-1 mx-auto max-w-7xl lg:py-10",children:[t("div",{className:"flex flex-wrap gap-2 mb-4",children:[e(x,{href:route("connection.create"),children:"Add a connection"}),t(y,{href:route("key.index"),children:[e(u,{className:"mr-2 h-5 w-5"}),"Keys"]})]}),e(p,{details:s}),e("div",{className:"grid gap-2 grid-cols-1 sm:grid-cols-4 sm:gap-4",children:n.length===0?e(f,{resource:"connections"}):n.map(r=>e("section",{className:"bg-white/50 dark:bg-gray-700 rounded-lg shadow-sm hover:cursor-pointer",onClick:a=>window.location.href=route("connection.show",r.id),children:t("div",{className:"md:py-2 py-4 px-2 mx-auto max-w-6xl",children:[t("div",{className:"flex items-center justify-between mb-3",children:[t("div",{children:[e("span",{className:"bg-indigo-200 text-indigo-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-indigo-900 dark:text-indigo-300",children:(()=>typeof r.key_id<"u"&&r.key_id!==null?"KEY":typeof r.hashed_password<"u"&&n.hashed_password!==null?"HASH PASSWORD":"PASSWORD")()}),t("span",{className:"bg-green-100 text-green-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-green-900 dark:text-green-300",children:["PORT ",r.ssh_port]})]}),e("small",{className:"text-end",children:e(b,{resource:r})})]}),t("div",{className:"flex flex-col justify-center items-center pb-3",children:[e("h5",{className:"mb-1 text-xl font-medium text-gray-900 dark:text-white",children:r.username}),e("span",{className:"text-sm text-gray-500 dark:text-gray-400",children:r.server.hostname})]})]})},r.id))})]})]})}export{P as default}; diff --git a/public/build/assets/Index-6f7997ed.js b/public/build/assets/Index-16d0a9f8.js similarity index 71% rename from public/build/assets/Index-6f7997ed.js rename to public/build/assets/Index-16d0a9f8.js index e9ca765..d1b75f2 100644 --- a/public/build/assets/Index-6f7997ed.js +++ b/public/build/assets/Index-16d0a9f8.js @@ -1 +1 @@ -import{A as m}from"./AuthenticatedLayout-b0ac98cc.js";import{u as t,j as o,a,H as n}from"./app-7082a047.js";import{R as l}from"./Alert-af0dbb46.js";import{s as p,G as u,g as f,a as c}from"./gridJsConfig-39d3aeab.js";import{R as g}from"./ResourceEmptyText-25c44e25.js";import{n as s}from"./helpers-2aabf79e.js";import{f as x}from"./index-9b0dda6f.js";import"./ApplicationLogo-db4f8950.js";import"./transition-eb04b526.js";import"./Toast-a9c7a83a.js";import"./Table-13305096.js";import"./index.esm-eebfcfab.js";function A({auth:i}){const r=t().props.downloads,d=t().props.resource;return o(m,{auth:i,header:a("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Downloaded"}),children:[a(n,{title:"Downloaded"}),o("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[a("div",{className:"flex flex-wrap gap-2 mb-4"}),a(l,{details:d}),r.length>0?a("section",{className:"pt-4 shadow-md dark:shadow-md bg-white/50 dark:bg-gray-700 rounded-lg",children:a(p,{data:r,columns:[{id:"saved_as",name:"Saved as",sort:!0},{id:"size",name:"Size MB",sort:!0,formatter:e=>e!==null?s(e/1e3/1e3):null},{id:"speed_mbps",name:"DL speed Mbps",sort:!0,formatter:e=>e!==null?s(e):null},{id:"filename",name:"File"},{id:"id",name:"View",sort:!1,formatter:e=>u(`View`)},{id:"created_at",name:"Downloaded",sort:!0,formatter:e=>x(new Date(e),"yyyy-MM-dd HH:mm:ss")}],search:!0,className:f,pagination:c})}):a(g,{className:"ml-2 pb-4",resource:"Downloaded files"})]})]})}export{A as default}; +import{A as m}from"./AuthenticatedLayout-c4be06bd.js";import{u as t,j as o,a,H as n}from"./app-a8d4275f.js";import{R as l}from"./Alert-d503f44b.js";import{s as p,G as u,g as f,a as c}from"./gridJsConfig-143e158b.js";import{R as g}from"./ResourceEmptyText-f0a77405.js";import{n as s}from"./helpers-2aabf79e.js";import{f as x}from"./index-9b0dda6f.js";import"./ApplicationLogo-ae419612.js";import"./transition-fbe58e1e.js";import"./Toast-ee00046f.js";import"./Table-f19b692a.js";import"./index.esm-2010c99b.js";function A({auth:i}){const r=t().props.downloads,d=t().props.resource;return o(m,{auth:i,header:a("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Downloaded"}),children:[a(n,{title:"Downloaded"}),o("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[a("div",{className:"flex flex-wrap gap-2 mb-4"}),a(l,{details:d}),r.length>0?a("section",{className:"pt-4 shadow-md dark:shadow-md bg-white/50 dark:bg-gray-700 rounded-lg",children:a(p,{data:r,columns:[{id:"saved_as",name:"Saved as",sort:!0},{id:"size",name:"Size MB",sort:!0,formatter:e=>e!==null?s(e/1e3/1e3):null},{id:"speed_mbps",name:"DL speed Mbps",sort:!0,formatter:e=>e!==null?s(e):null},{id:"filename",name:"File"},{id:"id",name:"View",sort:!1,formatter:e=>u(`View`)},{id:"created_at",name:"Downloaded",sort:!0,formatter:e=>x(new Date(e),"yyyy-MM-dd HH:mm:ss")}],search:!0,className:f,pagination:c})}):a(g,{className:"ml-2 pb-4",resource:"Downloaded files"})]})]})}export{A as default}; diff --git a/public/build/assets/Index-92f3baad.js b/public/build/assets/Index-2b895f17.js similarity index 77% rename from public/build/assets/Index-92f3baad.js rename to public/build/assets/Index-2b895f17.js index e92e08b..84f96a3 100644 --- a/public/build/assets/Index-92f3baad.js +++ b/public/build/assets/Index-2b895f17.js @@ -1 +1 @@ -import{A as o}from"./AuthenticatedLayout-b0ac98cc.js";import{u as s,j as a,a as e,H as d}from"./app-7082a047.js";import{m,k as l}from"./index.esm-eebfcfab.js";import{R as c}from"./ResourceEmptyText-25c44e25.js";import{R as p}from"./Alert-af0dbb46.js";import{A as x}from"./AddButton-bf9b47af.js";import{T as h}from"./TealButton-9ca5476f.js";import{I as g}from"./IndigoButton-1fb48c06.js";import"./ApplicationLogo-db4f8950.js";import"./transition-eb04b526.js";import"./Toast-a9c7a83a.js";import"./Table-13305096.js";function B({auth:n}){const i=s().props.alert,r=s().props.databases;return a(o,{auth:n,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Databases"}),children:[e(d,{title:"Databases"}),a("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[a("div",{className:"flex flex-wrap gap-2 mb-4",children:[e(x,{href:route("db.create"),children:"Add database"}),a(h,{href:route("db.connection.index"),children:[e(m,{className:"mr-2 h-5 w-5"})," Database connections"]}),a(g,{href:route("mysqldump.index"),children:[e(l,{className:"mr-2 h-5 w-5"})," MySQLdump"]})]}),e(p,{details:i}),e("div",{className:"grid gap-2 grid-cols-1 sm:grid-cols-4 sm:gap-4",children:r.length>0?r.map(t=>e("section",{className:"bg-white/50 dark:bg-gray-700 rounded-lg shadow-sm hover:cursor-pointer",onClick:u=>window.location.href=route("db.show",t.id),children:a("div",{className:"md:py-2 py-4 px-2 mx-auto max-w-6xl",children:[a("div",{className:"flex items-center justify-between mb-3",children:[a("div",{children:[e("span",{className:"bg-indigo-200 text-indigo-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-indigo-900 dark:text-indigo-300",children:t.conn.type===1?"MySQL":"Other"}),t.conn.version!==null?e("span",{className:"bg-green-100 text-green-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-green-900 dark:text-green-300",children:t.conn.version}):null]}),e("small",{className:"text-end"})]}),a("div",{className:"flex flex-col items-center pb-3",children:[e("h5",{className:"mb-1 text-xl font-medium text-gray-900 dark:text-white",children:t.name}),a("span",{className:"text-sm text-gray-500 dark:text-gray-400",children:[t.conn.username,"@",t.conn.host]})]})]})},t.id)):e(c,{resource:"databases"})})]})]})}export{B as default}; +import{A as o}from"./AuthenticatedLayout-c4be06bd.js";import{u as s,j as a,a as e,H as d}from"./app-a8d4275f.js";import{m,k as l}from"./index.esm-2010c99b.js";import{R as c}from"./ResourceEmptyText-f0a77405.js";import{R as p}from"./Alert-d503f44b.js";import{A as x}from"./AddButton-35ed8727.js";import{T as h}from"./TealButton-374c27c1.js";import{I as g}from"./IndigoButton-819e4647.js";import"./ApplicationLogo-ae419612.js";import"./transition-fbe58e1e.js";import"./Toast-ee00046f.js";import"./Table-f19b692a.js";function B({auth:n}){const i=s().props.alert,r=s().props.databases;return a(o,{auth:n,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Databases"}),children:[e(d,{title:"Databases"}),a("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[a("div",{className:"flex flex-wrap gap-2 mb-4",children:[e(x,{href:route("db.create"),children:"Add database"}),a(h,{href:route("db.connection.index"),children:[e(m,{className:"mr-2 h-5 w-5"})," Database connections"]}),a(g,{href:route("mysqldump.index"),children:[e(l,{className:"mr-2 h-5 w-5"})," MySQLdump"]})]}),e(p,{details:i}),e("div",{className:"grid gap-2 grid-cols-1 sm:grid-cols-4 sm:gap-4",children:r.length>0?r.map(t=>e("section",{className:"bg-white/50 dark:bg-gray-700 rounded-lg shadow-sm hover:cursor-pointer",onClick:u=>window.location.href=route("db.show",t.id),children:a("div",{className:"md:py-2 py-4 px-2 mx-auto max-w-6xl",children:[a("div",{className:"flex items-center justify-between mb-3",children:[a("div",{children:[e("span",{className:"bg-indigo-200 text-indigo-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-indigo-900 dark:text-indigo-300",children:t.conn.type===1?"MySQL":"Other"}),t.conn.version!==null?e("span",{className:"bg-green-100 text-green-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-green-900 dark:text-green-300",children:t.conn.version}):null]}),e("small",{className:"text-end"})]}),a("div",{className:"flex flex-col items-center pb-3",children:[e("h5",{className:"mb-1 text-xl font-medium text-gray-900 dark:text-white",children:t.name}),a("span",{className:"text-sm text-gray-500 dark:text-gray-400",children:[t.conn.username,"@",t.conn.host]})]})]})},t.id)):e(c,{resource:"databases"})})]})]})}export{B as default}; diff --git a/public/build/assets/Index-7d0dd3a7.js b/public/build/assets/Index-38fe72e8.js similarity index 75% rename from public/build/assets/Index-7d0dd3a7.js rename to public/build/assets/Index-38fe72e8.js index b661d02..af0e143 100644 --- a/public/build/assets/Index-7d0dd3a7.js +++ b/public/build/assets/Index-38fe72e8.js @@ -1 +1 @@ -import{A as o}from"./AuthenticatedLayout-b0ac98cc.js";import{u as a,j as s,a as e,H as l}from"./app-7082a047.js";import{R as n}from"./Alert-af0dbb46.js";import{R as m}from"./ResourceEmptyText-25c44e25.js";import{A as c}from"./AddButton-bf9b47af.js";import"./ApplicationLogo-db4f8950.js";import"./transition-eb04b526.js";import"./Toast-a9c7a83a.js";import"./Table-13305096.js";import"./index.esm-eebfcfab.js";function v({auth:i}){const d=a().props.alert,t=a().props.keys;return s(o,{auth:i,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Keys"}),children:[e(l,{title:"Keys"}),s("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(c,{href:route("key.create"),children:"Add key"})}),e(n,{details:d}),e("div",{className:"grid gap-2 grid-cols-1 sm:grid-cols-4 sm:gap-4",children:t.length===0?e(m,{resource:"keys"}):t.map(r=>e("section",{className:"bg-white/50 dark:bg-gray-700 rounded-lg shadow-sm hover:cursor-pointer",onClick:p=>window.location.href=route("key.show",r.id),children:s("div",{className:"md:py-2 py-4 px-2 mx-auto max-w-6xl",children:[s("div",{className:"flex items-center justify-between mb-3",children:[e("div",{children:e("span",{className:"bg-indigo-200 text-indigo-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-indigo-900 dark:text-indigo-300",children:(()=>typeof r.hashed_password<"u"&&r.hashed_password!==null?"HASH PASSWORD":typeof r.password<"u"&&r.password!==null?"PASSWORD":"NO PASSWORD")()})}),e("small",{className:"text-end"})]}),e("div",{className:"flex flex-col justify-center items-center pb-3",children:e("h5",{className:"mb-2 lg font-medium text-gray-900 dark:text-white",children:r.original_name})})]})},r.id))})]})]})}export{v as default}; +import{A as o}from"./AuthenticatedLayout-c4be06bd.js";import{u as a,j as s,a as e,H as l}from"./app-a8d4275f.js";import{R as n}from"./Alert-d503f44b.js";import{R as m}from"./ResourceEmptyText-f0a77405.js";import{A as c}from"./AddButton-35ed8727.js";import"./ApplicationLogo-ae419612.js";import"./transition-fbe58e1e.js";import"./Toast-ee00046f.js";import"./Table-f19b692a.js";import"./index.esm-2010c99b.js";function v({auth:i}){const d=a().props.alert,t=a().props.keys;return s(o,{auth:i,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Keys"}),children:[e(l,{title:"Keys"}),s("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(c,{href:route("key.create"),children:"Add key"})}),e(n,{details:d}),e("div",{className:"grid gap-2 grid-cols-1 sm:grid-cols-4 sm:gap-4",children:t.length===0?e(m,{resource:"keys"}):t.map(r=>e("section",{className:"bg-white/50 dark:bg-gray-700 rounded-lg shadow-sm hover:cursor-pointer",onClick:p=>window.location.href=route("key.show",r.id),children:s("div",{className:"md:py-2 py-4 px-2 mx-auto max-w-6xl",children:[s("div",{className:"flex items-center justify-between mb-3",children:[e("div",{children:e("span",{className:"bg-indigo-200 text-indigo-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-indigo-900 dark:text-indigo-300",children:(()=>typeof r.hashed_password<"u"&&r.hashed_password!==null?"HASH PASSWORD":typeof r.password<"u"&&r.password!==null?"PASSWORD":"NO PASSWORD")()})}),e("small",{className:"text-end"})]}),e("div",{className:"flex flex-col justify-center items-center pb-3",children:e("h5",{className:"mb-2 lg font-medium text-gray-900 dark:text-white",children:r.original_name})})]})},r.id))})]})]})}export{v as default}; diff --git a/public/build/assets/Index-c08b9e64.js b/public/build/assets/Index-7532297a.js similarity index 73% rename from public/build/assets/Index-c08b9e64.js rename to public/build/assets/Index-7532297a.js index 87c6e6f..31e8402 100644 --- a/public/build/assets/Index-c08b9e64.js +++ b/public/build/assets/Index-7532297a.js @@ -1 +1 @@ -import{A as n}from"./AuthenticatedLayout-b0ac98cc.js";import{u as o,j as a,a as r,H as d}from"./app-7082a047.js";import{s as l,G as t,g as p,a as g}from"./gridJsConfig-39d3aeab.js";import{c as h}from"./index.esm-eebfcfab.js";import{I as u}from"./IndigoButton-1fb48c06.js";import{R as c}from"./Alert-af0dbb46.js";import{f}from"./index-9b0dda6f.js";import"./ApplicationLogo-db4f8950.js";import"./transition-eb04b526.js";import"./Toast-a9c7a83a.js";import"./Table-13305096.js";function G({auth:i}){const m=o().props.alert,s=o().props.pings;return a(n,{auth:i,header:r("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Pings"}),children:[r(d,{title:"Pings"}),a("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[r("div",{className:"flex flex-wrap gap-2 mb-4",children:a(u,{href:route("ping-group.index"),children:[r(h,{className:"mr-2 h-5 w-5"}),"Ping groups"]})}),r(c,{details:m}),s.length===0?r("h2",{className:"text-md p-2 font-semibold leading-none text-yellow-500 md:text-lg dark:text-yellow-400",children:"No pings yet"}):r("section",{className:"pt-4 shadow-md dark:shadow-md bg-white/50 dark:bg-gray-700 dark:shadow rounded-lg",children:r(l,{data:s,columns:[{id:"from_server_id",name:"From",sort:!1,data:e=>e.from_server?t(`${e.from_server.hostname}`):null},{id:"server_id",name:"To",sort:!0,data:e=>e.to_server?t(`${e.to_server.hostname}`):null},{id:"was_up",name:"Up",sort:!0,formatter:e=>e===1?t('Y'):t('N')},{id:"avg",name:"AVG",sort:!0},{id:"min",name:"MIN",sort:!0},{id:"max",name:"MAX",sort:!0},{id:"created_at",name:"Datetime",sort:!0,formatter:e=>f(new Date(e),"yyyy-MM-dd HH:mm:ss")}],search:!0,className:p,pagination:g})})]})]})}export{G as default}; +import{A as n}from"./AuthenticatedLayout-c4be06bd.js";import{u as o,j as a,a as r,H as d}from"./app-a8d4275f.js";import{s as l,G as t,g as p,a as g}from"./gridJsConfig-143e158b.js";import{c as h}from"./index.esm-2010c99b.js";import{I as u}from"./IndigoButton-819e4647.js";import{R as c}from"./Alert-d503f44b.js";import{f}from"./index-9b0dda6f.js";import"./ApplicationLogo-ae419612.js";import"./transition-fbe58e1e.js";import"./Toast-ee00046f.js";import"./Table-f19b692a.js";function G({auth:i}){const m=o().props.alert,s=o().props.pings;return a(n,{auth:i,header:r("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Pings"}),children:[r(d,{title:"Pings"}),a("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[r("div",{className:"flex flex-wrap gap-2 mb-4",children:a(u,{href:route("ping-group.index"),children:[r(h,{className:"mr-2 h-5 w-5"}),"Ping groups"]})}),r(c,{details:m}),s.length===0?r("h2",{className:"text-md p-2 font-semibold leading-none text-yellow-500 md:text-lg dark:text-yellow-400",children:"No pings yet"}):r("section",{className:"pt-4 shadow-md dark:shadow-md bg-white/50 dark:bg-gray-700 dark:shadow rounded-lg",children:r(l,{data:s,columns:[{id:"from_server_id",name:"From",sort:!1,data:e=>e.from_server?t(`${e.from_server.hostname}`):null},{id:"server_id",name:"To",sort:!0,data:e=>e.to_server?t(`${e.to_server.hostname}`):null},{id:"was_up",name:"Up",sort:!0,formatter:e=>e===1?t('Y'):t('N')},{id:"avg",name:"AVG",sort:!0},{id:"min",name:"MIN",sort:!0},{id:"max",name:"MAX",sort:!0},{id:"created_at",name:"Datetime",sort:!0,formatter:e=>f(new Date(e),"yyyy-MM-dd HH:mm:ss")}],search:!0,className:p,pagination:g})})]})]})}export{G as default}; diff --git a/public/build/assets/Index-3c6d510f.js b/public/build/assets/Index-7d7c852c.js similarity index 77% rename from public/build/assets/Index-3c6d510f.js rename to public/build/assets/Index-7d7c852c.js index c451e8c..ecd4237 100644 --- a/public/build/assets/Index-3c6d510f.js +++ b/public/build/assets/Index-7d7c852c.js @@ -1 +1 @@ -import{A as c}from"./AuthenticatedLayout-b0ac98cc.js";import{r as l,a as e,F as d,u as o,j as r,H as m}from"./app-7082a047.js";import{g as x}from"./index.esm-eebfcfab.js";import{R as u}from"./ResourceEmptyText-25c44e25.js";import{R as p}from"./Alert-af0dbb46.js";import{A as h}from"./AddButton-bf9b47af.js";import{T as f}from"./TealButton-9ca5476f.js";import{a as g}from"./axios-4a70c6fc.js";import{F as b}from"./index.esm-d4b60c73.js";import"./ApplicationLogo-db4f8950.js";import"./transition-eb04b526.js";import"./Toast-a9c7a83a.js";import"./Table-13305096.js";function w({resource:i}){const[a,s]=l.useState(null);async function t(n){return await(await g.get(route("db.connection.connect",n.id))).data}return l.useEffect(()=>{t(i).then(n=>{s(n.result)})},[]),e(d,{children:e(b,{className:(()=>a?"md:ml-2 ml-1 h-3 w-3 text-green-300 dark:text-green-400 inline":a===null?"md:ml-2 ml-1 h-3 w-3 text-gray-300 dark:text-gray-500 inline":"md:ml-2 ml-1 h-3 w-3 text-red-300 dark:text-red-400 inline")(),title:(()=>a?"Able to connect":a===null?"unknown":"NOT able to connect")()})})}function I({auth:i}){const a=o().props.alert,s=o().props.connections;return r(c,{auth:i,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"DB connections"}),children:[e(m,{title:"DB connections"}),r("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[r("div",{className:"flex flex-wrap gap-2 mb-4",children:[e(h,{href:route("db.connection.create"),children:"Add DB connection"}),r(f,{href:route("db.index"),children:[e(x,{className:"mr-2 h-5 w-5"}),"Databases"]})]}),e(p,{details:a}),e("div",{className:"grid gap-2 grid-cols-1 sm:grid-cols-4 sm:gap-4",children:s.length>0?s.map(t=>e("section",{className:"bg-white/50 dark:bg-gray-700 rounded-lg shadow-sm hover:cursor-pointer",onClick:n=>window.location.href=route("db.connection.show",t.id),children:r("div",{className:"md:py-2 py-4 px-2 mx-auto max-w-6xl",children:[r("div",{className:"flex items-center justify-between mb-3",children:[e("div",{}),e("small",{className:"text-end",children:e(w,{resource:t})})]}),r("div",{className:"flex flex-col items-center pb-3",children:[e("h5",{className:"mb-1 text-xl font-medium text-gray-900 dark:text-white",children:t.host}),e("span",{className:"text-md text-gray-500 dark:text-gray-400",children:t.title}),e("span",{className:"text-sm text-gray-500 dark:text-gray-300",children:t.username})]})]})},t.id)):e(u,{resource:"database connections"})})]})]})}export{I as default}; +import{A as c}from"./AuthenticatedLayout-c4be06bd.js";import{r as l,a as e,F as d,u as o,j as r,H as m}from"./app-a8d4275f.js";import{g as x}from"./index.esm-2010c99b.js";import{R as u}from"./ResourceEmptyText-f0a77405.js";import{R as p}from"./Alert-d503f44b.js";import{A as h}from"./AddButton-35ed8727.js";import{T as f}from"./TealButton-374c27c1.js";import{a as g}from"./axios-4a70c6fc.js";import{F as b}from"./index.esm-6d0014d4.js";import"./ApplicationLogo-ae419612.js";import"./transition-fbe58e1e.js";import"./Toast-ee00046f.js";import"./Table-f19b692a.js";function w({resource:i}){const[a,s]=l.useState(null);async function t(n){return await(await g.get(route("db.connection.connect",n.id))).data}return l.useEffect(()=>{t(i).then(n=>{s(n.result)})},[]),e(d,{children:e(b,{className:(()=>a?"md:ml-2 ml-1 h-3 w-3 text-green-300 dark:text-green-400 inline":a===null?"md:ml-2 ml-1 h-3 w-3 text-gray-300 dark:text-gray-500 inline":"md:ml-2 ml-1 h-3 w-3 text-red-300 dark:text-red-400 inline")(),title:(()=>a?"Able to connect":a===null?"unknown":"NOT able to connect")()})})}function I({auth:i}){const a=o().props.alert,s=o().props.connections;return r(c,{auth:i,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"DB connections"}),children:[e(m,{title:"DB connections"}),r("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[r("div",{className:"flex flex-wrap gap-2 mb-4",children:[e(h,{href:route("db.connection.create"),children:"Add DB connection"}),r(f,{href:route("db.index"),children:[e(x,{className:"mr-2 h-5 w-5"}),"Databases"]})]}),e(p,{details:a}),e("div",{className:"grid gap-2 grid-cols-1 sm:grid-cols-4 sm:gap-4",children:s.length>0?s.map(t=>e("section",{className:"bg-white/50 dark:bg-gray-700 rounded-lg shadow-sm hover:cursor-pointer",onClick:n=>window.location.href=route("db.connection.show",t.id),children:r("div",{className:"md:py-2 py-4 px-2 mx-auto max-w-6xl",children:[r("div",{className:"flex items-center justify-between mb-3",children:[e("div",{}),e("small",{className:"text-end",children:e(w,{resource:t})})]}),r("div",{className:"flex flex-col items-center pb-3",children:[e("h5",{className:"mb-1 text-xl font-medium text-gray-900 dark:text-white",children:t.host}),e("span",{className:"text-md text-gray-500 dark:text-gray-400",children:t.title}),e("span",{className:"text-sm text-gray-500 dark:text-gray-300",children:t.username})]})]})},t.id)):e(u,{resource:"database connections"})})]})]})}export{I as default}; diff --git a/public/build/assets/Index-07bb1c4d.js b/public/build/assets/Index-9569f8e1.js similarity index 80% rename from public/build/assets/Index-07bb1c4d.js rename to public/build/assets/Index-9569f8e1.js index 1079af7..1cf4a0b 100644 --- a/public/build/assets/Index-07bb1c4d.js +++ b/public/build/assets/Index-9569f8e1.js @@ -1 +1 @@ -import{A as m}from"./AuthenticatedLayout-b0ac98cc.js";import{r as i,a as e,F as o,u as d,j as s,H as c}from"./app-7082a047.js";import{R as p}from"./Alert-af0dbb46.js";import{A as u}from"./AddButton-bf9b47af.js";import{a as x}from"./axios-4a70c6fc.js";import{F as h}from"./index.esm-d4b60c73.js";import{R as f}from"./ResourceEmptyText-25c44e25.js";import"./ApplicationLogo-db4f8950.js";import"./transition-eb04b526.js";import"./Toast-a9c7a83a.js";import"./Table-13305096.js";import"./index.esm-eebfcfab.js";function g({resource:l}){const[r,n]=i.useState(null);async function t(a){return await(await x.get(route("sftp.authenticated",a.id))).data}return i.useEffect(()=>{t(l).then(a=>{n(a.result)})},[]),e(o,{children:e(h,{className:(()=>r?"md:ml-2 ml-1 h-3 w-3 text-green-300 dark:text-green-400 inline":r===null?"md:ml-2 ml-1 h-3 w-3 text-gray-300 dark:text-gray-500 inline":"md:ml-2 ml-1 h-3 w-3 text-red-300 dark:text-red-400 inline")(),title:(()=>r?"Able to connect":r===null?"unknown":"NOT able to connect")()})})}function E({auth:l}){const r=d().props.connections,n=d().props.alert;return s(m,{auth:l,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"SFTP connections"}),children:[e(c,{title:"SFTP connections"}),s("div",{className:"py-8 px-1 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(u,{href:route("sftp.create"),children:"Add SFTP connection"})}),e(p,{details:n}),e("div",{className:"grid gap-2 grid-cols-1 sm:grid-cols-4 sm:gap-4",children:r.length===0?e(f,{resource:"SFTP connections"}):r.map(t=>e("section",{className:"bg-white/50 dark:bg-gray-700 rounded-lg shadow-sm hover:cursor-pointer",onClick:a=>window.location.href=route("sftp.show",t.id),children:s("div",{className:"md:py-2 py-4 px-2 mx-auto max-w-6xl",children:[s("div",{className:"flex items-center justify-between mb-3",children:[s("div",{children:[e("span",{className:"bg-blue-100 text-blue-800 text-xs font-medium mr-2 px-2 py-0.5 rounded dark:bg-blue-900 dark:text-blue-300",children:(()=>typeof t.key_id<"u"&&t.key_id!==null?"KEY":"PASSWORD")()}),s("span",{className:"bg-purple-100 text-purple-800 text-xs font-medium mr-2 px-2 py-0.5 rounded dark:bg-purple-900 dark:text-purple-300",children:["PORT ",t.port]})]}),e("small",{className:"text-end",children:e(g,{resource:t})})]}),s("div",{className:"flex flex-col justify-center items-center pb-3",children:[e("h5",{className:"mb-1 text-xl font-medium text-gray-900 dark:text-white",children:t.username}),e("span",{className:"text-sm text-gray-500 dark:text-gray-400",children:t.server.hostname})]})]})},t.id))})]})]})}export{E as default}; +import{A as m}from"./AuthenticatedLayout-c4be06bd.js";import{r as i,a as e,F as o,u as d,j as s,H as c}from"./app-a8d4275f.js";import{R as p}from"./Alert-d503f44b.js";import{A as u}from"./AddButton-35ed8727.js";import{a as x}from"./axios-4a70c6fc.js";import{F as h}from"./index.esm-6d0014d4.js";import{R as f}from"./ResourceEmptyText-f0a77405.js";import"./ApplicationLogo-ae419612.js";import"./transition-fbe58e1e.js";import"./Toast-ee00046f.js";import"./Table-f19b692a.js";import"./index.esm-2010c99b.js";function g({resource:l}){const[r,n]=i.useState(null);async function t(a){return await(await x.get(route("sftp.authenticated",a.id))).data}return i.useEffect(()=>{t(l).then(a=>{n(a.result)})},[]),e(o,{children:e(h,{className:(()=>r?"md:ml-2 ml-1 h-3 w-3 text-green-300 dark:text-green-400 inline":r===null?"md:ml-2 ml-1 h-3 w-3 text-gray-300 dark:text-gray-500 inline":"md:ml-2 ml-1 h-3 w-3 text-red-300 dark:text-red-400 inline")(),title:(()=>r?"Able to connect":r===null?"unknown":"NOT able to connect")()})})}function E({auth:l}){const r=d().props.connections,n=d().props.alert;return s(m,{auth:l,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"SFTP connections"}),children:[e(c,{title:"SFTP connections"}),s("div",{className:"py-8 px-1 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(u,{href:route("sftp.create"),children:"Add SFTP connection"})}),e(p,{details:n}),e("div",{className:"grid gap-2 grid-cols-1 sm:grid-cols-4 sm:gap-4",children:r.length===0?e(f,{resource:"SFTP connections"}):r.map(t=>e("section",{className:"bg-white/50 dark:bg-gray-700 rounded-lg shadow-sm hover:cursor-pointer",onClick:a=>window.location.href=route("sftp.show",t.id),children:s("div",{className:"md:py-2 py-4 px-2 mx-auto max-w-6xl",children:[s("div",{className:"flex items-center justify-between mb-3",children:[s("div",{children:[e("span",{className:"bg-blue-100 text-blue-800 text-xs font-medium mr-2 px-2 py-0.5 rounded dark:bg-blue-900 dark:text-blue-300",children:(()=>typeof t.key_id<"u"&&t.key_id!==null?"KEY":"PASSWORD")()}),s("span",{className:"bg-purple-100 text-purple-800 text-xs font-medium mr-2 px-2 py-0.5 rounded dark:bg-purple-900 dark:text-purple-300",children:["PORT ",t.port]})]}),e("small",{className:"text-end",children:e(g,{resource:t})})]}),s("div",{className:"flex flex-col justify-center items-center pb-3",children:[e("h5",{className:"mb-1 text-xl font-medium text-gray-900 dark:text-white",children:t.username}),e("span",{className:"text-sm text-gray-500 dark:text-gray-400",children:t.server.hostname})]})]})},t.id))})]})]})}export{E as default}; diff --git a/public/build/assets/Index-d1be4756.js b/public/build/assets/Index-ac5ad5f9.js similarity index 79% rename from public/build/assets/Index-d1be4756.js rename to public/build/assets/Index-ac5ad5f9.js index 551c0e8..00182cc 100644 --- a/public/build/assets/Index-d1be4756.js +++ b/public/build/assets/Index-ac5ad5f9.js @@ -1 +1 @@ -import{A as u}from"./AuthenticatedLayout-b0ac98cc.js";import{u as l,r as f,j as a,a as e,H as p}from"./app-7082a047.js";import{s as x,G as i,g as y,a as w}from"./gridJsConfig-39d3aeab.js";import{R as N}from"./ResourceEmptyText-25c44e25.js";import{M as d,B as n}from"./Toast-a9c7a83a.js";import"./Table-13305096.js";import{H as v}from"./index.esm-eebfcfab.js";import{R as k}from"./Alert-af0dbb46.js";import{f as b}from"./index-9b0dda6f.js";import"./ApplicationLogo-db4f8950.js";import"./transition-eb04b526.js";function I({auth:m}){const c=l().props.alert,r=l().props.logs,[h,s]=f.useState(!1),g=()=>{const t={method:"DELETE",headers:{"X-CSRF-TOKEN":document.getElementsByName("csrf-token")[0].getAttribute("content")}};fetch(route("log.destroy-all"),t).then(o=>{o.redirected&&(window.location.href=o.url)})};return a(u,{auth:m,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Action logs"}),children:[e(p,{title:"Action logs"}),a("div",{className:"py-8 px-1 mx-auto max-w-7xl lg:py-10",children:[e(k,{details:c}),r.length===0?e(N,{className:"ml-2 pb-4",resource:"action logs"}):a("section",{className:"pt-4 shadow-md dark:shadow-md bg-white/50 dark:bg-gray-700 dark:shadow rounded-lg",children:[a("div",{className:"flex items-center justify-between mb-4",children:[e("div",{}),e("small",{className:"text-end",children:r.length>0?e(v,{className:"mr-2 h-6 w-6 text-gray-600 dark:text-white hover:text-gray-700 hover:dark:text-gray-300 inline hover:cursor-pointer",onClick:()=>s(!0),title:"Delete ALL logs"}):e("div",{})})]}),e(x,{data:r,columns:[{id:"id",name:"Hostname",sort:!1,data:t=>t.server?i(`${t.server.hostname}`):null},{id:"action",name:"Action",sort:!0},{id:"resource_type",name:"Resource",sort:!1},{id:"message",name:"Message",sort:!1},{id:"id",name:"View",data:t=>i(`View`)},{id:"created_at",name:"Datetime",sort:!0,formatter:t=>b(new Date(t),"yyyy-MM-dd HH:mm:ss")}],search:!0,className:y,pagination:w})]})]}),e(d,{show:h,size:"md",children:e(d.Body,{children:a("div",{className:"text-center",children:[e("h3",{className:"mb-5 text-lg font-normal text-gray-500 dark:text-gray-400",children:"Are you sure you want to delete all logs?"}),a("div",{className:"flex justify-center gap-4",children:[e(n,{color:"failure",onClick:g,children:"Yes, I'm sure"}),e(n,{onClick:()=>s(!1),color:"gray",children:"No, cancel"})]})]})})})]})}export{I as default}; +import{A as u}from"./AuthenticatedLayout-c4be06bd.js";import{u as l,r as f,j as a,a as e,H as p}from"./app-a8d4275f.js";import{s as x,G as i,g as y,a as w}from"./gridJsConfig-143e158b.js";import{R as N}from"./ResourceEmptyText-f0a77405.js";import{M as d,B as n}from"./Toast-ee00046f.js";import"./Table-f19b692a.js";import{H as v}from"./index.esm-2010c99b.js";import{R as k}from"./Alert-d503f44b.js";import{f as b}from"./index-9b0dda6f.js";import"./ApplicationLogo-ae419612.js";import"./transition-fbe58e1e.js";function I({auth:m}){const c=l().props.alert,r=l().props.logs,[h,s]=f.useState(!1),g=()=>{const t={method:"DELETE",headers:{"X-CSRF-TOKEN":document.getElementsByName("csrf-token")[0].getAttribute("content")}};fetch(route("log.destroy-all"),t).then(o=>{o.redirected&&(window.location.href=o.url)})};return a(u,{auth:m,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Action logs"}),children:[e(p,{title:"Action logs"}),a("div",{className:"py-8 px-1 mx-auto max-w-7xl lg:py-10",children:[e(k,{details:c}),r.length===0?e(N,{className:"ml-2 pb-4",resource:"action logs"}):a("section",{className:"pt-4 shadow-md dark:shadow-md bg-white/50 dark:bg-gray-700 dark:shadow rounded-lg",children:[a("div",{className:"flex items-center justify-between mb-4",children:[e("div",{}),e("small",{className:"text-end",children:r.length>0?e(v,{className:"mr-2 h-6 w-6 text-gray-600 dark:text-white hover:text-gray-700 hover:dark:text-gray-300 inline hover:cursor-pointer",onClick:()=>s(!0),title:"Delete ALL logs"}):e("div",{})})]}),e(x,{data:r,columns:[{id:"id",name:"Hostname",sort:!1,data:t=>t.server?i(`${t.server.hostname}`):null},{id:"action",name:"Action",sort:!0},{id:"resource_type",name:"Resource",sort:!1},{id:"message",name:"Message",sort:!1},{id:"id",name:"View",data:t=>i(`View`)},{id:"created_at",name:"Datetime",sort:!0,formatter:t=>b(new Date(t),"yyyy-MM-dd HH:mm:ss")}],search:!0,className:y,pagination:w})]})]}),e(d,{show:h,size:"md",children:e(d.Body,{children:a("div",{className:"text-center",children:[e("h3",{className:"mb-5 text-lg font-normal text-gray-500 dark:text-gray-400",children:"Are you sure you want to delete all logs?"}),a("div",{className:"flex justify-center gap-4",children:[e(n,{color:"failure",onClick:g,children:"Yes, I'm sure"}),e(n,{onClick:()=>s(!1),color:"gray",children:"No, cancel"})]})]})})})]})}export{I as default}; diff --git a/public/build/assets/Index-bc7cb92a.js b/public/build/assets/Index-bc7cb92a.js deleted file mode 100644 index 64a7980..0000000 --- a/public/build/assets/Index-bc7cb92a.js +++ /dev/null @@ -1 +0,0 @@ -import{A as i}from"./AuthenticatedLayout-b0ac98cc.js";import{u as r,j as t,a as e,H as l}from"./app-7082a047.js";import{R as o}from"./ResourceEmptyText-25c44e25.js";import{R as n}from"./Alert-af0dbb46.js";import{A as c}from"./AddButton-bf9b47af.js";import"./ApplicationLogo-db4f8950.js";import"./transition-eb04b526.js";import"./Toast-a9c7a83a.js";import"./Table-13305096.js";import"./index.esm-eebfcfab.js";function A({auth:d}){const m=r().props.alert,s=r().props.dumps;return t(i,{auth:d,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"MySQL dumps"}),children:[e(l,{title:"MySQL dumps"}),t("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(c,{href:route("mysqldump.create"),children:"Add MySQL dump"})}),e(n,{details:m}),e("div",{className:"grid gap-2 grid-cols-1 sm:grid-cols-4 sm:gap-4",children:s.length>0?s.map(a=>e("section",{className:"bg-white/50 dark:bg-gray-700 rounded-lg shadow-sm hover:cursor-pointer",onClick:p=>window.location.href=route("mysqldump.show",servers.id),children:t("div",{className:"md:py-2 py-4 px-2 mx-auto max-w-6xl",children:[t("div",{className:"flex items-center justify-between mb-3",children:[e("div",{}),e("small",{className:"text-end"})]}),t("div",{className:"flex flex-col items-center pb-3",children:[e("h2",{className:"mb-1 text-xl font-medium text-gray-900 dark:text-white",children:a.database.name}),t("span",{className:"text-sm text-gray-500 dark:text-gray-400",children:[a.database_conn.username,"@",a.database_conn.host]})]})]})},a.id)):e(o,{resource:"MySQL dumps"})})]})]})}export{A as default}; diff --git a/public/build/assets/Index-5f3af069.js b/public/build/assets/Index-c7c79db3.js similarity index 66% rename from public/build/assets/Index-5f3af069.js rename to public/build/assets/Index-c7c79db3.js index fdd37c7..0adbf3f 100644 --- a/public/build/assets/Index-5f3af069.js +++ b/public/build/assets/Index-c7c79db3.js @@ -1 +1 @@ -import{A as m}from"./AuthenticatedLayout-b0ac98cc.js";import{u as i,j as t,a as e,H as d}from"./app-7082a047.js";import"./Toast-a9c7a83a.js";import"./Table-13305096.js";import{C as p}from"./Card-4b32b85d.js";import{R as n}from"./Alert-af0dbb46.js";import{R as c}from"./ResourceEmptyText-25c44e25.js";import{A as g}from"./AddButton-bf9b47af.js";import{B as x}from"./BackButton-c0685269.js";import"./ApplicationLogo-db4f8950.js";import"./transition-eb04b526.js";import"./index.esm-eebfcfab.js";function j({auth:o}){const l=i().props.alert,a=i().props.groups;return t(m,{auth:o,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Ping groups"}),children:[e(d,{title:"Servers"}),t("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[t("div",{className:"flex flex-wrap gap-2 mb-4",children:[e(x,{href:route("ping.index"),children:"All pings"}),e(g,{href:route("ping-group.create"),children:"Create ping group"})]}),e(n,{details:l}),e("div",{className:"grid gap-2 grid-cols-1 sm:grid-cols-4 sm:gap-4",children:a.length>0?a.map(r=>e(p,{className:"dark:bg-gray-700 dark:border-gray-900",href:route("ping-group.show",r.id),children:t("div",{className:"flex flex-col items-center pb-3",children:[e("h5",{className:"mb-1 text-xl font-medium text-gray-900 dark:text-white",children:r.title}),r.assigned.map(s=>e("span",{className:"text-sm text-gray-500 dark:text-gray-400",children:s.server.hostname},s.server.id))]})},r.id)):e(c,{resource:"ping groups"})})]})]})}export{j as default}; +import{A as m}from"./AuthenticatedLayout-c4be06bd.js";import{u as i,j as t,a as e,H as d}from"./app-a8d4275f.js";import"./Toast-ee00046f.js";import"./Table-f19b692a.js";import{C as p}from"./Card-0ddd50a2.js";import{R as n}from"./Alert-d503f44b.js";import{R as c}from"./ResourceEmptyText-f0a77405.js";import{A as g}from"./AddButton-35ed8727.js";import{B as x}from"./BackButton-2b60c346.js";import"./ApplicationLogo-ae419612.js";import"./transition-fbe58e1e.js";import"./index.esm-2010c99b.js";function j({auth:o}){const l=i().props.alert,a=i().props.groups;return t(m,{auth:o,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Ping groups"}),children:[e(d,{title:"Servers"}),t("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[t("div",{className:"flex flex-wrap gap-2 mb-4",children:[e(x,{href:route("ping.index"),children:"All pings"}),e(g,{href:route("ping-group.create"),children:"Create ping group"})]}),e(n,{details:l}),e("div",{className:"grid gap-2 grid-cols-1 sm:grid-cols-4 sm:gap-4",children:a.length>0?a.map(r=>e(p,{className:"dark:bg-gray-700 dark:border-gray-900",href:route("ping-group.show",r.id),children:t("div",{className:"flex flex-col items-center pb-3",children:[e("h5",{className:"mb-1 text-xl font-medium text-gray-900 dark:text-white",children:r.title}),r.assigned.map(s=>e("span",{className:"text-sm text-gray-500 dark:text-gray-400",children:s.server.hostname},s.server.id))]})},r.id)):e(c,{resource:"ping groups"})})]})]})}export{j as default}; diff --git a/public/build/assets/Index-da7a7e22.js b/public/build/assets/Index-de2d1bc0.js similarity index 74% rename from public/build/assets/Index-da7a7e22.js rename to public/build/assets/Index-de2d1bc0.js index 9a8eb8f..c78fcaf 100644 --- a/public/build/assets/Index-da7a7e22.js +++ b/public/build/assets/Index-de2d1bc0.js @@ -1 +1 @@ -import{A as o}from"./AuthenticatedLayout-b0ac98cc.js";import{u as s,j as t,a as e,H as l}from"./app-7082a047.js";import"./Toast-a9c7a83a.js";import"./Table-13305096.js";import{C as i}from"./Card-4b32b85d.js";import{R as n}from"./Alert-af0dbb46.js";import{R as c}from"./ResourceEmptyText-25c44e25.js";import{A as p}from"./AddButton-bf9b47af.js";import"./ApplicationLogo-db4f8950.js";import"./transition-eb04b526.js";import"./index.esm-eebfcfab.js";function j({auth:m}){const d=s().props.alert,a=s().props.groups;return t(o,{auth:m,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Command groups"}),children:[e(l,{title:"Command groups"}),t("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(p,{href:route("command-group.create"),children:"Add command group"})}),e(n,{details:d}),e("div",{className:"grid gap-2 grid-cols-1 sm:grid-cols-4 sm:gap-4",children:a.length===0?e(c,{resource:"command groups"}):a.map(r=>t(i,{href:route("command-group.show",r.id),className:"dark:bg-gray-700 hover:dark:bg-gray-900",children:[e("div",{className:"flex justify-end px-1",children:e("span",{className:"bg-blue-100 text-blue-800 text-xs font-medium mr-2 px-2 py-0.5 rounded dark:bg-blue-900 dark:text-blue-300",children:(()=>r.server_count!==null?r.server_count===1?r.server_count+" server":r.server_count+" servers":"No servers")()})}),t("div",{className:"flex flex-col justify-center items-center pb-3",children:[e("h5",{className:"mb-1 lg font-medium text-gray-900 dark:text-white",children:r.title}),e("span",{className:"text-sm text-gray-500 dark:text-gray-400",children:r.the_command.title})]})]},r.id))})]})]})}export{j as default}; +import{A as o}from"./AuthenticatedLayout-c4be06bd.js";import{u as s,j as t,a as e,H as l}from"./app-a8d4275f.js";import"./Toast-ee00046f.js";import"./Table-f19b692a.js";import{C as i}from"./Card-0ddd50a2.js";import{R as n}from"./Alert-d503f44b.js";import{R as c}from"./ResourceEmptyText-f0a77405.js";import{A as p}from"./AddButton-35ed8727.js";import"./ApplicationLogo-ae419612.js";import"./transition-fbe58e1e.js";import"./index.esm-2010c99b.js";function j({auth:m}){const d=s().props.alert,a=s().props.groups;return t(o,{auth:m,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Command groups"}),children:[e(l,{title:"Command groups"}),t("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(p,{href:route("command-group.create"),children:"Add command group"})}),e(n,{details:d}),e("div",{className:"grid gap-2 grid-cols-1 sm:grid-cols-4 sm:gap-4",children:a.length===0?e(c,{resource:"command groups"}):a.map(r=>t(i,{href:route("command-group.show",r.id),className:"dark:bg-gray-700 hover:dark:bg-gray-900",children:[e("div",{className:"flex justify-end px-1",children:e("span",{className:"bg-blue-100 text-blue-800 text-xs font-medium mr-2 px-2 py-0.5 rounded dark:bg-blue-900 dark:text-blue-300",children:(()=>r.server_count!==null?r.server_count===1?r.server_count+" server":r.server_count+" servers":"No servers")()})}),t("div",{className:"flex flex-col justify-center items-center pb-3",children:[e("h5",{className:"mb-1 lg font-medium text-gray-900 dark:text-white",children:r.title}),e("span",{className:"text-sm text-gray-500 dark:text-gray-400",children:r.the_command.title})]})]},r.id))})]})]})}export{j as default}; diff --git a/public/build/assets/Index-3b09247c.js b/public/build/assets/Index-e20b5827.js similarity index 70% rename from public/build/assets/Index-3b09247c.js rename to public/build/assets/Index-e20b5827.js index 6fb192c..6e08eb7 100644 --- a/public/build/assets/Index-3b09247c.js +++ b/public/build/assets/Index-e20b5827.js @@ -1 +1 @@ -import{A as m}from"./AuthenticatedLayout-b0ac98cc.js";import{u as s,j as d,a,H as l}from"./app-7082a047.js";import{R as n}from"./Alert-af0dbb46.js";import{s as p,G as t,g as c,a as u}from"./gridJsConfig-39d3aeab.js";import{A as h}from"./AddButton-bf9b47af.js";import{R as f}from"./ResourceEmptyText-25c44e25.js";import{f as x}from"./index-9b0dda6f.js";import"./ApplicationLogo-db4f8950.js";import"./transition-eb04b526.js";import"./Toast-a9c7a83a.js";import"./Table-13305096.js";import"./index.esm-eebfcfab.js";function $({auth:i}){const o=s().props.alert,r=s().props.ips;return d(m,{auth:i,header:a("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"IP addresses"}),children:[a(l,{title:"IP addresses"}),d("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[a("div",{className:"flex flex-wrap gap-2 mb-4",children:a(h,{href:route("ip.create"),children:"Add IP"})}),a(n,{details:o}),r.length>0?a("section",{className:"pt-4 shadow-md dark:shadow-md bg-white/50 dark:bg-gray-700 dark:shadow rounded-lg",children:a(p,{data:r,columns:[{id:"ip",name:"IP",sort:!0},{id:"isp",name:"ISP",sort:!1},{id:"id",name:"Server",sort:!0,data:e=>e.server_id?t(`${e.server.hostname}`):null},{id:"id",name:"View",data:e=>t(`View`)},{id:"id",name:"Edit",data:e=>t(`Edit`)},{id:"created_at",name:"Created",sort:!0,formatter:e=>x(new Date(e),"yyyy-MM-dd HH:mm:ss")}],search:!0,className:c,pagination:u})}):a(f,{className:"ml-2 pb-4",resource:"IP addresses"})]})]})}export{$ as default}; +import{A as m}from"./AuthenticatedLayout-c4be06bd.js";import{u as s,j as d,a,H as l}from"./app-a8d4275f.js";import{R as n}from"./Alert-d503f44b.js";import{s as p,G as t,g as c,a as u}from"./gridJsConfig-143e158b.js";import{A as h}from"./AddButton-35ed8727.js";import{R as f}from"./ResourceEmptyText-f0a77405.js";import{f as x}from"./index-9b0dda6f.js";import"./ApplicationLogo-ae419612.js";import"./transition-fbe58e1e.js";import"./Toast-ee00046f.js";import"./Table-f19b692a.js";import"./index.esm-2010c99b.js";function $({auth:i}){const o=s().props.alert,r=s().props.ips;return d(m,{auth:i,header:a("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"IP addresses"}),children:[a(l,{title:"IP addresses"}),d("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[a("div",{className:"flex flex-wrap gap-2 mb-4",children:a(h,{href:route("ip.create"),children:"Add IP"})}),a(n,{details:o}),r.length>0?a("section",{className:"pt-4 shadow-md dark:shadow-md bg-white/50 dark:bg-gray-700 dark:shadow rounded-lg",children:a(p,{data:r,columns:[{id:"ip",name:"IP",sort:!0},{id:"isp",name:"ISP",sort:!1},{id:"id",name:"Server",sort:!0,data:e=>e.server_id?t(`${e.server.hostname}`):null},{id:"id",name:"View",data:e=>t(`View`)},{id:"id",name:"Edit",data:e=>t(`Edit`)},{id:"created_at",name:"Created",sort:!0,formatter:e=>x(new Date(e),"yyyy-MM-dd HH:mm:ss")}],search:!0,className:c,pagination:u})}):a(f,{className:"ml-2 pb-4",resource:"IP addresses"})]})]})}export{$ as default}; diff --git a/public/build/assets/Index-400e25dd.js b/public/build/assets/Index-e7c7b977.js similarity index 81% rename from public/build/assets/Index-400e25dd.js rename to public/build/assets/Index-e7c7b977.js index 1267f16..58d4751 100644 --- a/public/build/assets/Index-400e25dd.js +++ b/public/build/assets/Index-e7c7b977.js @@ -1 +1 @@ -import{A as o}from"./AuthenticatedLayout-b0ac98cc.js";import{r as d,a as e,F as m,u as l,j as a,H as c}from"./app-7082a047.js";import{R as p}from"./Alert-af0dbb46.js";import{A as x}from"./AddButton-bf9b47af.js";import{a as u}from"./axios-4a70c6fc.js";import{F as g}from"./index.esm-d4b60c73.js";import{R as h}from"./ResourceEmptyText-25c44e25.js";import"./ApplicationLogo-db4f8950.js";import"./transition-eb04b526.js";import"./Toast-a9c7a83a.js";import"./Table-13305096.js";import"./index.esm-eebfcfab.js";function f({resource:i}){const[r,s]=d.useState(null);async function t(n){return await(await u.get(route("check-is-up",n.id))).data}return d.useEffect(()=>{t(i).then(n=>{s(n.is_up)})},[]),e(m,{children:e(g,{className:(()=>r?"md:ml-2 ml-1 h-3 w-3 text-green-300 dark:text-green-400 inline":r===null?"md:ml-2 ml-1 h-3 w-3 text-gray-300 dark:text-gray-500 inline":"md:ml-2 ml-1 h-3 w-3 text-red-300 dark:text-red-400 inline")(),title:(()=>r?"online":r===null?"unknown":"offline")()})})}function U(){const i=l().props.alert,r=l().props.auth,s=l().props.servers;return a(o,{auth:r,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Servers"}),children:[e(c,{title:"Servers"}),a("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(x,{href:route("server.create"),children:"Add a server"})}),e(p,{details:i}),e("div",{className:"grid gap-2 grid-cols-1 sm:grid-cols-4 sm:gap-4",children:s.length===0?e(h,{resource:"servers"}):s.map(t=>e("section",{className:"bg-white/50 dark:bg-gray-700 rounded-lg shadow-sm hover:cursor-pointer",onClick:n=>window.location.href=route("server.show",t.id),children:a("div",{className:"md:py-2 py-4 px-2 mx-auto max-w-6xl",children:[a("div",{className:"flex items-center justify-between mb-3",children:[a("div",{children:[" ",t.operating_system!==null?e("span",{className:"bg-green-100 text-green-800 text-xs font-medium mr-2 px-2 py-0.5 rounded dark:bg-green-900 dark:text-green-300",children:t.operating_system}):null,e("span",{className:"bg-indigo-200 text-indigo-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-indigo-900 dark:text-indigo-300",children:t.type.name}),(()=>{if(t.conn===null)return e("span",{className:"bg-red-100 text-red-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-red-900 dark:text-red-300",children:"No connection"})})()]}),e("small",{className:"text-end",children:e(f,{resource:t})})]}),a("div",{className:"flex flex-col items-center pb-3",children:[e("h5",{className:"mb-1 text-xl font-medium text-gray-900 dark:text-white",children:t.hostname}),e("span",{className:"text-sm text-gray-500 dark:text-gray-400",children:t.title})]})]})},t.id))})]})]})}export{U as default}; +import{A as o}from"./AuthenticatedLayout-c4be06bd.js";import{r as d,a as e,F as m,u as l,j as a,H as c}from"./app-a8d4275f.js";import{R as p}from"./Alert-d503f44b.js";import{A as x}from"./AddButton-35ed8727.js";import{a as u}from"./axios-4a70c6fc.js";import{F as g}from"./index.esm-6d0014d4.js";import{R as h}from"./ResourceEmptyText-f0a77405.js";import"./ApplicationLogo-ae419612.js";import"./transition-fbe58e1e.js";import"./Toast-ee00046f.js";import"./Table-f19b692a.js";import"./index.esm-2010c99b.js";function f({resource:i}){const[r,s]=d.useState(null);async function t(n){return await(await u.get(route("check-is-up",n.id))).data}return d.useEffect(()=>{t(i).then(n=>{s(n.is_up)})},[]),e(m,{children:e(g,{className:(()=>r?"md:ml-2 ml-1 h-3 w-3 text-green-300 dark:text-green-400 inline":r===null?"md:ml-2 ml-1 h-3 w-3 text-gray-300 dark:text-gray-500 inline":"md:ml-2 ml-1 h-3 w-3 text-red-300 dark:text-red-400 inline")(),title:(()=>r?"online":r===null?"unknown":"offline")()})})}function U(){const i=l().props.alert,r=l().props.auth,s=l().props.servers;return a(o,{auth:r,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Servers"}),children:[e(c,{title:"Servers"}),a("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(x,{href:route("server.create"),children:"Add a server"})}),e(p,{details:i}),e("div",{className:"grid gap-2 grid-cols-1 sm:grid-cols-4 sm:gap-4",children:s.length===0?e(h,{resource:"servers"}):s.map(t=>e("section",{className:"bg-white/50 dark:bg-gray-700 rounded-lg shadow-sm hover:cursor-pointer",onClick:n=>window.location.href=route("server.show",t.id),children:a("div",{className:"md:py-2 py-4 px-2 mx-auto max-w-6xl",children:[a("div",{className:"flex items-center justify-between mb-3",children:[a("div",{children:[" ",t.operating_system!==null?e("span",{className:"bg-green-100 text-green-800 text-xs font-medium mr-2 px-2 py-0.5 rounded dark:bg-green-900 dark:text-green-300",children:t.operating_system}):null,e("span",{className:"bg-indigo-200 text-indigo-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-indigo-900 dark:text-indigo-300",children:t.type.name}),(()=>{if(t.conn===null)return e("span",{className:"bg-red-100 text-red-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-red-900 dark:text-red-300",children:"No connection"})})()]}),e("small",{className:"text-end",children:e(f,{resource:t})})]}),a("div",{className:"flex flex-col items-center pb-3",children:[e("h5",{className:"mb-1 text-xl font-medium text-gray-900 dark:text-white",children:t.hostname}),e("span",{className:"text-sm text-gray-500 dark:text-gray-400",children:t.title})]})]})},t.id))})]})]})}export{U as default}; diff --git a/public/build/assets/Index-13117e64.js b/public/build/assets/Index-ea3fc13f.js similarity index 71% rename from public/build/assets/Index-13117e64.js rename to public/build/assets/Index-ea3fc13f.js index ea980ab..547b80b 100644 --- a/public/build/assets/Index-13117e64.js +++ b/public/build/assets/Index-ea3fc13f.js @@ -1 +1 @@ -import{A as r}from"./AuthenticatedLayout-b0ac98cc.js";import{u as m,j as e,a,H as d}from"./app-7082a047.js";import{s as i,G as n,g as l,a as u}from"./gridJsConfig-39d3aeab.js";import{c}from"./index.esm-eebfcfab.js";import{I as p}from"./IndigoButton-1fb48c06.js";import{B as h}from"./BackButton-c0685269.js";import{f as x}from"./index-9b0dda6f.js";import"./ApplicationLogo-db4f8950.js";import"./transition-eb04b526.js";function v({auth:s}){const o=m().props.outputs;return e(r,{auth:s,header:a("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Command outputs"}),children:[a(d,{title:"Command outputs"}),e("div",{className:"py-6 px-2 mx-auto max-w-7xl lg:py-8",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:[a(h,{href:route("command.index"),children:"Back to commands"}),e(p,{href:route("command-group.index"),children:[a(c,{className:"mr-2 h-5 w-5"})," Command groups"]})]}),a("div",{className:"py-8 px-1 mx-auto max-w-7xl lg:py-10",children:a("section",{className:"pt-4 shadow-md dark:shadow-md bg-white/50 dark:bg-gray-700 dark:shadow rounded-lg",children:a(i,{data:o,columns:[{id:"id",name:"Hostname",sort:!1,data:t=>t.server.hostname},{id:"the_command",name:"Command",sort:!1},{id:"id",name:"View",sort:!1,data:t=>n(`View`)},{id:"created_at",name:"Datetime",sort:!0,formatter:t=>x(new Date(t),"yyyy-MM-dd HH:mm:ss")}],search:!0,className:l,pagination:u})})})]})]})}export{v as default}; +import{A as r}from"./AuthenticatedLayout-c4be06bd.js";import{u as m,j as e,a,H as d}from"./app-a8d4275f.js";import{s as i,G as n,g as l,a as u}from"./gridJsConfig-143e158b.js";import{c}from"./index.esm-2010c99b.js";import{I as p}from"./IndigoButton-819e4647.js";import{B as h}from"./BackButton-2b60c346.js";import{f as x}from"./index-9b0dda6f.js";import"./ApplicationLogo-ae419612.js";import"./transition-fbe58e1e.js";function v({auth:s}){const o=m().props.outputs;return e(r,{auth:s,header:a("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Command outputs"}),children:[a(d,{title:"Command outputs"}),e("div",{className:"py-6 px-2 mx-auto max-w-7xl lg:py-8",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:[a(h,{href:route("command.index"),children:"Back to commands"}),e(p,{href:route("command-group.index"),children:[a(c,{className:"mr-2 h-5 w-5"})," Command groups"]})]}),a("div",{className:"py-8 px-1 mx-auto max-w-7xl lg:py-10",children:a("section",{className:"pt-4 shadow-md dark:shadow-md bg-white/50 dark:bg-gray-700 dark:shadow rounded-lg",children:a(i,{data:o,columns:[{id:"id",name:"Hostname",sort:!1,data:t=>t.server.hostname},{id:"the_command",name:"Command",sort:!1},{id:"id",name:"View",sort:!1,data:t=>n(`View`)},{id:"created_at",name:"Datetime",sort:!0,formatter:t=>x(new Date(t),"yyyy-MM-dd HH:mm:ss")}],search:!0,className:l,pagination:u})})})]})]})}export{v as default}; diff --git a/public/build/assets/Index-f4385110.js b/public/build/assets/Index-f4385110.js new file mode 100644 index 0000000..032358c --- /dev/null +++ b/public/build/assets/Index-f4385110.js @@ -0,0 +1 @@ +import{A as i}from"./AuthenticatedLayout-c4be06bd.js";import{u as r,j as a,a as e,H as l}from"./app-a8d4275f.js";import{R as o}from"./ResourceEmptyText-f0a77405.js";import{R as n}from"./Alert-d503f44b.js";import{A as c}from"./AddButton-35ed8727.js";import"./ApplicationLogo-ae419612.js";import"./transition-fbe58e1e.js";import"./Toast-ee00046f.js";import"./Table-f19b692a.js";import"./index.esm-2010c99b.js";function A({auth:m}){const d=r().props.alert,s=r().props.dumps;return a(i,{auth:m,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"MySQL dumps"}),children:[e(l,{title:"MySQL dumps"}),a("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(c,{href:route("mysqldump.create"),children:"Add MySQL dump"})}),e(n,{details:d}),e("div",{className:"grid gap-2 grid-cols-1 sm:grid-cols-4 sm:gap-4",children:s.length>0?s.map(t=>e("section",{className:"bg-white/50 dark:bg-gray-700 rounded-lg shadow-sm hover:cursor-pointer",onClick:p=>window.location.href=route("mysqldump.show",t.id),children:a("div",{className:"md:py-2 py-4 px-2 mx-auto max-w-6xl",children:[e("div",{className:"flex items-center justify-between mb-3",children:e("small",{className:"text-end"})}),a("div",{className:"flex flex-col items-center pb-3",children:[e("h2",{className:"mb-1 text-xl font-medium text-gray-900 dark:text-white",children:t.database.name}),a("span",{className:"text-sm text-gray-500 dark:text-gray-400",children:[t.database_conn.username,"@",t.database_conn.host]})]})]})},t.id)):e(o,{resource:"MySQL dumps"})})]})]})}export{A as default}; diff --git a/public/build/assets/Index-26bbd460.js b/public/build/assets/Index-fefde8eb.js similarity index 74% rename from public/build/assets/Index-26bbd460.js rename to public/build/assets/Index-fefde8eb.js index c230e27..8ea0fd2 100644 --- a/public/build/assets/Index-26bbd460.js +++ b/public/build/assets/Index-fefde8eb.js @@ -1 +1 @@ -import{A as i}from"./AuthenticatedLayout-b0ac98cc.js";import{u as m,j as a,a as e,H as n}from"./app-7082a047.js";import{R as l}from"./Alert-af0dbb46.js";import{s as c,G as o,g as u,a as p}from"./gridJsConfig-39d3aeab.js";import{c as h}from"./index.esm-eebfcfab.js";import{A as x}from"./AddButton-bf9b47af.js";import{H as f}from"./index.esm-6768e5ef.js";import{f as g}from"./index-9b0dda6f.js";import"./ApplicationLogo-db4f8950.js";import"./transition-eb04b526.js";import"./Toast-a9c7a83a.js";import"./Table-13305096.js";function E({auth:d}){const s=m().props.alert,r=m().props.commands;return a(i,{auth:d,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Commands"}),children:[e(n,{title:"Commands"}),a("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(x,{href:route("command.create"),children:"Add command"})}),e(l,{details:s}),r.length===0?e("h2",{className:"text-md p-2 font-semibold leading-none text-yellow-500 md:text-lg dark:text-yellow-400",children:"No commands currently"}):a("section",{className:"pt-4 shadow-md dark:shadow-md bg-white/50 dark:bg-gray-700 dark:shadow rounded-lg",children:[a("div",{className:"flex items-center justify-between mb-2 px-3",children:[e("div",{}),a("small",{className:"text-end",children:[e(f,{className:"mr-2 md:ml-2 ml-1 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer",onClick:t=>window.location.href=route("outputs.index"),title:"Command outputs"}),e(h,{className:"md:ml-2 ml-1 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer",onClick:t=>window.location.href=route("command-group.index"),title:"Command groups"})]})]}),e(c,{data:r,columns:[{id:"title",name:"Name",sort:!0},{id:"command",name:"Command",sort:!1},{id:"id",name:"Edit",data:t=>o(`Edit`)},{id:"id",name:"Outputs",data:t=>o(`View`)},{id:"created_at",name:"Created",sort:!0,formatter:t=>g(new Date(t),"yyyy-MM-dd HH:mm:ss")}],search:!0,className:u,pagination:p})]})]})]})}export{E as default}; +import{A as i}from"./AuthenticatedLayout-c4be06bd.js";import{u as m,j as a,a as e,H as n}from"./app-a8d4275f.js";import{R as l}from"./Alert-d503f44b.js";import{s as c,G as o,g as u,a as p}from"./gridJsConfig-143e158b.js";import{c as h}from"./index.esm-2010c99b.js";import{A as x}from"./AddButton-35ed8727.js";import{H as f}from"./index.esm-456b3614.js";import{f as g}from"./index-9b0dda6f.js";import"./ApplicationLogo-ae419612.js";import"./transition-fbe58e1e.js";import"./Toast-ee00046f.js";import"./Table-f19b692a.js";function E({auth:d}){const s=m().props.alert,r=m().props.commands;return a(i,{auth:d,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Commands"}),children:[e(n,{title:"Commands"}),a("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(x,{href:route("command.create"),children:"Add command"})}),e(l,{details:s}),r.length===0?e("h2",{className:"text-md p-2 font-semibold leading-none text-yellow-500 md:text-lg dark:text-yellow-400",children:"No commands currently"}):a("section",{className:"pt-4 shadow-md dark:shadow-md bg-white/50 dark:bg-gray-700 dark:shadow rounded-lg",children:[a("div",{className:"flex items-center justify-between mb-2 px-3",children:[e("div",{}),a("small",{className:"text-end",children:[e(f,{className:"mr-2 md:ml-2 ml-1 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer",onClick:t=>window.location.href=route("outputs.index"),title:"Command outputs"}),e(h,{className:"md:ml-2 ml-1 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer",onClick:t=>window.location.href=route("command-group.index"),title:"Command groups"})]})]}),e(c,{data:r,columns:[{id:"title",name:"Name",sort:!0},{id:"command",name:"Command",sort:!1},{id:"id",name:"Edit",data:t=>o(`Edit`)},{id:"id",name:"Outputs",data:t=>o(`View`)},{id:"created_at",name:"Created",sort:!0,formatter:t=>g(new Date(t),"yyyy-MM-dd HH:mm:ss")}],search:!0,className:u,pagination:p})]})]})]})}export{E as default}; diff --git a/public/build/assets/IndexCommand-0375cc68.js b/public/build/assets/IndexCommand-c90ae7b2.js similarity index 76% rename from public/build/assets/IndexCommand-0375cc68.js rename to public/build/assets/IndexCommand-c90ae7b2.js index 1dc3d16..6c4f367 100644 --- a/public/build/assets/IndexCommand-0375cc68.js +++ b/public/build/assets/IndexCommand-c90ae7b2.js @@ -1 +1 @@ -import{A as i}from"./AuthenticatedLayout-b0ac98cc.js";import{u as r,j as o,a,H as d}from"./app-7082a047.js";import{s as n,G as l,g as p,a as c}from"./gridJsConfig-39d3aeab.js";import{B as u}from"./BackButton-c0685269.js";import{f}from"./index-9b0dda6f.js";import"./ApplicationLogo-db4f8950.js";import"./transition-eb04b526.js";import"./index.esm-eebfcfab.js";function v({auth:m}){const e=r().props.command,s=r().props.outputs;return o(i,{auth:m,header:a("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Command outputs for "+e.title}),children:[a(d,{title:"Command outputs for "+e.title}),o("div",{className:"py-6 px-2 mx-auto max-w-7xl lg:py-8",children:[a("div",{className:"flex flex-wrap gap-2 mb-4",children:a(u,{href:route("command.index"),children:"Back to commands"})}),a("div",{className:"py-8 px-1 mx-auto max-w-7xl lg:py-10",children:a("section",{className:"pt-4 shadow-md dark:shadow-md bg-white/50 dark:bg-gray-700 dark:shadow rounded-lg",children:a(n,{data:s,columns:[{id:"id",name:"Hostname",sort:!1,data:t=>t.server.hostname},{id:"the_command",name:"Command",sort:!1},{id:"id",name:"View",sort:!1,formatter:t=>l(`View`)},{id:"created_at",name:"Datetime",sort:!0,formatter:t=>f(new Date(t),"yyyy-MM-dd HH:mm:ss")}],search:!0,className:p,pagination:c})})})]})]})}export{v as default}; +import{A as i}from"./AuthenticatedLayout-c4be06bd.js";import{u as r,j as o,a,H as d}from"./app-a8d4275f.js";import{s as n,G as l,g as p,a as c}from"./gridJsConfig-143e158b.js";import{B as u}from"./BackButton-2b60c346.js";import{f}from"./index-9b0dda6f.js";import"./ApplicationLogo-ae419612.js";import"./transition-fbe58e1e.js";import"./index.esm-2010c99b.js";function v({auth:m}){const e=r().props.command,s=r().props.outputs;return o(i,{auth:m,header:a("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Command outputs for "+e.title}),children:[a(d,{title:"Command outputs for "+e.title}),o("div",{className:"py-6 px-2 mx-auto max-w-7xl lg:py-8",children:[a("div",{className:"flex flex-wrap gap-2 mb-4",children:a(u,{href:route("command.index"),children:"Back to commands"})}),a("div",{className:"py-8 px-1 mx-auto max-w-7xl lg:py-10",children:a("section",{className:"pt-4 shadow-md dark:shadow-md bg-white/50 dark:bg-gray-700 dark:shadow rounded-lg",children:a(n,{data:s,columns:[{id:"id",name:"Hostname",sort:!1,data:t=>t.server.hostname},{id:"the_command",name:"Command",sort:!1},{id:"id",name:"View",sort:!1,formatter:t=>l(`View`)},{id:"created_at",name:"Datetime",sort:!0,formatter:t=>f(new Date(t),"yyyy-MM-dd HH:mm:ss")}],search:!0,className:p,pagination:c})})})]})]})}export{v as default}; diff --git a/public/build/assets/IndexServer-82db712a.js b/public/build/assets/IndexServer-a55a48a4.js similarity index 79% rename from public/build/assets/IndexServer-82db712a.js rename to public/build/assets/IndexServer-a55a48a4.js index 6c7296c..d7070c5 100644 --- a/public/build/assets/IndexServer-82db712a.js +++ b/public/build/assets/IndexServer-a55a48a4.js @@ -1 +1 @@ -import{A as i}from"./AuthenticatedLayout-b0ac98cc.js";import{u as t,j as s,a,H as d}from"./app-7082a047.js";import{s as n,G as p,g as l,a as u}from"./gridJsConfig-39d3aeab.js";import{f as c}from"./index-9b0dda6f.js";import"./ApplicationLogo-db4f8950.js";import"./transition-eb04b526.js";function b({auth:o}){const m=t().props.outputs,r=t().props.server;return s(i,{auth:o,header:a("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Command outputs for "+r.hostname}),children:[a(d,{title:"Command outputs for "+r.hostname}),s("div",{className:"py-6 px-2 mx-auto max-w-7xl lg:py-8",children:[a("div",{className:"flex flex-wrap gap-2 mb-4"}),a("div",{className:"py-8 px-1 mx-auto max-w-7xl lg:py-10",children:a("section",{className:"p-2 shadow-md dark:shadow-md bg-white/50 dark:bg-transparent dark:shadow rounded-lg dark:border dark:border-gray-700",children:a(n,{data:m,columns:[{id:"id",name:"Hostname",sort:!1,data:e=>e.server.hostname},{id:"the_command",name:"Command",sort:!1},{id:"id",name:"View",sort:!1,formatter:e=>p(`View`)},{id:"created_at",name:"Datetime",sort:!0,formatter:e=>c(new Date(e),"yyyy-MM-dd HH:mm:ss")}],search:!0,className:l,pagination:u})})})]})]})}export{b as default}; +import{A as i}from"./AuthenticatedLayout-c4be06bd.js";import{u as t,j as s,a,H as d}from"./app-a8d4275f.js";import{s as n,G as p,g as l,a as u}from"./gridJsConfig-143e158b.js";import{f as c}from"./index-9b0dda6f.js";import"./ApplicationLogo-ae419612.js";import"./transition-fbe58e1e.js";function b({auth:o}){const m=t().props.outputs,r=t().props.server;return s(i,{auth:o,header:a("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Command outputs for "+r.hostname}),children:[a(d,{title:"Command outputs for "+r.hostname}),s("div",{className:"py-6 px-2 mx-auto max-w-7xl lg:py-8",children:[a("div",{className:"flex flex-wrap gap-2 mb-4"}),a("div",{className:"py-8 px-1 mx-auto max-w-7xl lg:py-10",children:a("section",{className:"p-2 shadow-md dark:shadow-md bg-white/50 dark:bg-transparent dark:shadow rounded-lg dark:border dark:border-gray-700",children:a(n,{data:m,columns:[{id:"id",name:"Hostname",sort:!1,data:e=>e.server.hostname},{id:"the_command",name:"Command",sort:!1},{id:"id",name:"View",sort:!1,formatter:e=>p(`View`)},{id:"created_at",name:"Datetime",sort:!0,formatter:e=>c(new Date(e),"yyyy-MM-dd HH:mm:ss")}],search:!0,className:l,pagination:u})})})]})]})}export{b as default}; diff --git a/public/build/assets/IndigoButton-1fb48c06.js b/public/build/assets/IndigoButton-819e4647.js similarity index 90% rename from public/build/assets/IndigoButton-1fb48c06.js rename to public/build/assets/IndigoButton-819e4647.js index 5c56869..b26242f 100644 --- a/public/build/assets/IndigoButton-1fb48c06.js +++ b/public/build/assets/IndigoButton-819e4647.js @@ -1 +1 @@ -import{a as e}from"./app-7082a047.js";function t({href:r,className:i="",children:o,onClick:n,disabled:d}){return e("a",{href:r,onClick:n,className:`text-white bg-indigo-700 hover:bg-indigo-800 dark:bg-indigo-600 dark:hover:bg-indigo-700 border border-transparent focus:ring-4 focus:ring-indigo-300 disabled:hover:bg-indigo-700 dark:focus:ring-indigo-900 dark:disabled:hover:bg-indigo-600 focus:!ring-2 group flex h-min items-center justify-center p-0.5 text-sm focus:z-10 inline-flex items-center rounded-lg px-5 py-1.5 text-center hover:cursor-pointer ${d?"cursor-progress":""}`+i,children:e("span",{className:"flex items-center rounded-md",children:o})})}export{t as I}; +import{a as e}from"./app-a8d4275f.js";function t({href:r,className:i="",children:o,onClick:n,disabled:d}){return e("a",{href:r,onClick:n,className:`text-white bg-indigo-700 hover:bg-indigo-800 dark:bg-indigo-600 dark:hover:bg-indigo-700 border border-transparent focus:ring-4 focus:ring-indigo-300 disabled:hover:bg-indigo-700 dark:focus:ring-indigo-900 dark:disabled:hover:bg-indigo-600 focus:!ring-2 group flex h-min items-center justify-center p-0.5 text-sm focus:z-10 inline-flex items-center rounded-lg px-5 py-1.5 text-center hover:cursor-pointer ${d?"cursor-progress":""}`+i,children:e("span",{className:"flex items-center rounded-md",children:o})})}export{t as I}; diff --git a/public/build/assets/InputLabel-04829bce.js b/public/build/assets/InputLabel-a7ee92ff.js similarity index 72% rename from public/build/assets/InputLabel-04829bce.js rename to public/build/assets/InputLabel-a7ee92ff.js index 49327f0..b05eb36 100644 --- a/public/build/assets/InputLabel-04829bce.js +++ b/public/build/assets/InputLabel-a7ee92ff.js @@ -1 +1 @@ -import{a as m}from"./app-7082a047.js";function l({forInput:e,value:t,className:r,children:a}){return m("label",{htmlFor:e,className:"block mb-2 text-sm font-medium text-gray-900 dark:text-white "+r,children:t||a})}export{l as I}; +import{a as m}from"./app-a8d4275f.js";function l({forInput:e,value:t,className:r,children:a}){return m("label",{htmlFor:e,className:"block mb-2 text-sm font-medium text-gray-900 dark:text-white "+r,children:t||a})}export{l as I}; diff --git a/public/build/assets/Login-827f9c7b.js b/public/build/assets/Login-db313af0.js similarity index 84% rename from public/build/assets/Login-827f9c7b.js rename to public/build/assets/Login-db313af0.js index 64ce229..21f2fd3 100644 --- a/public/build/assets/Login-827f9c7b.js +++ b/public/build/assets/Login-db313af0.js @@ -1 +1 @@ -import{a as e,b as f,r as h,j as r,H as x,L as b}from"./app-7082a047.js";import{G as w}from"./GuestLayout-3dfccb91.js";import{T as i,I as d}from"./TextInput-38986df9.js";import{I as c}from"./InputLabel-04829bce.js";import{P as y}from"./PrimaryButton-aae876dd.js";import"./ApplicationLogo-db4f8950.js";function N({name:t,value:o,handleChange:s}){return e("input",{type:"checkbox",name:t,value:o,className:"rounded border-gray-300 text-indigo-600 shadow-sm focus:ring-indigo-500",onChange:m=>s(m)})}function F({status:t,canResetPassword:o}){const{data:s,setData:m,post:u,processing:p,errors:l,reset:g}=f({email:"",password:"",remember:""});h.useEffect(()=>()=>{g("password")},[]);const n=a=>{m(a.target.name,a.target.type==="checkbox"?a.target.checked:a.target.value)};return r(w,{children:[e(x,{title:"Log in"}),t&&e("div",{className:"mb-4 font-medium text-sm text-green-600",children:t}),r("form",{onSubmit:a=>{a.preventDefault(),u(route("login"))},children:[r("div",{children:[e(c,{forInput:"email",value:"Email"}),e(i,{id:"email",type:"email",name:"email",value:s.email,className:"mt-1 block w-full",autoComplete:"username",isFocused:!0,handleChange:n}),e(d,{message:l.email,className:"mt-2"})]}),r("div",{className:"mt-4",children:[e(c,{forInput:"password",value:"Password"}),e(i,{id:"password",type:"password",name:"password",value:s.password,className:"mt-1 block w-full",autoComplete:"current-password",handleChange:n}),e(d,{message:l.password,className:"mt-2"})]}),e("div",{className:"block mt-4",children:r("label",{className:"flex items-center",children:[e(N,{name:"remember",value:s.remember,handleChange:n}),e("span",{className:"ml-2 text-sm text-gray-600 dark:text-gray-300",children:"Remember me"})]})}),r("div",{className:"flex items-center justify-end mt-4",children:[o&&e(b,{href:route("password.request"),className:"underline text-sm text-gray-600 dark:text-gray-300 hover:text-gray-900 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",children:"Forgot your password?"}),e(y,{className:"ml-4",processing:p,children:"Log in"})]})]})]})}export{F as default}; +import{a as e,b as f,r as h,j as r,H as x,L as b}from"./app-a8d4275f.js";import{G as w}from"./GuestLayout-fc7cb66d.js";import{T as i,I as d}from"./TextInput-1e9aadbd.js";import{I as c}from"./InputLabel-a7ee92ff.js";import{P as y}from"./PrimaryButton-19cc4f5a.js";import"./ApplicationLogo-ae419612.js";function N({name:t,value:o,handleChange:s}){return e("input",{type:"checkbox",name:t,value:o,className:"rounded border-gray-300 text-indigo-600 shadow-sm focus:ring-indigo-500",onChange:m=>s(m)})}function F({status:t,canResetPassword:o}){const{data:s,setData:m,post:u,processing:p,errors:l,reset:g}=f({email:"",password:"",remember:""});h.useEffect(()=>()=>{g("password")},[]);const n=a=>{m(a.target.name,a.target.type==="checkbox"?a.target.checked:a.target.value)};return r(w,{children:[e(x,{title:"Log in"}),t&&e("div",{className:"mb-4 font-medium text-sm text-green-600",children:t}),r("form",{onSubmit:a=>{a.preventDefault(),u(route("login"))},children:[r("div",{children:[e(c,{forInput:"email",value:"Email"}),e(i,{id:"email",type:"email",name:"email",value:s.email,className:"mt-1 block w-full",autoComplete:"username",isFocused:!0,handleChange:n}),e(d,{message:l.email,className:"mt-2"})]}),r("div",{className:"mt-4",children:[e(c,{forInput:"password",value:"Password"}),e(i,{id:"password",type:"password",name:"password",value:s.password,className:"mt-1 block w-full",autoComplete:"current-password",handleChange:n}),e(d,{message:l.password,className:"mt-2"})]}),e("div",{className:"block mt-4",children:r("label",{className:"flex items-center",children:[e(N,{name:"remember",value:s.remember,handleChange:n}),e("span",{className:"ml-2 text-sm text-gray-600 dark:text-gray-300",children:"Remember me"})]})}),r("div",{className:"flex items-center justify-end mt-4",children:[o&&e(b,{href:route("password.request"),className:"underline text-sm text-gray-600 dark:text-gray-300 hover:text-gray-900 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",children:"Forgot your password?"}),e(y,{className:"ml-4",processing:p,children:"Log in"})]})]})]})}export{F as default}; diff --git a/public/build/assets/Output-dd9f99a9.js b/public/build/assets/Output-2c144da2.js similarity index 96% rename from public/build/assets/Output-dd9f99a9.js rename to public/build/assets/Output-2c144da2.js index 91a03e6..90ecc92 100644 --- a/public/build/assets/Output-dd9f99a9.js +++ b/public/build/assets/Output-2c144da2.js @@ -1 +1 @@ -import{j as e,a}from"./app-7082a047.js";import{f as u}from"./index-9b0dda6f.js";function n({id:r,title:l,the_command:d,created_at:s,the_output:c,seconds:t,rows:o=6}){let m=new Date(s);return e("div",{className:"grid grid-cols-1 sm:grid-cols-2",children:[a("div",{className:"col-span-2",children:a("h2",{className:"mb-2 text-md text-gray-800 dark:text-white",children:l})}),a("div",{className:"col-span-1",children:a("h5",{className:"mb-1 text-sm text-gray-700 dark:text-gray-200",children:"The command"})}),a("div",{className:"col-span-2",children:a("textarea",{rows:2,id:"command",className:"block p-2.5 w-full text-sm text-gray-900 bg-gray-50 rounded-lg border border-gray-300 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-900 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",defaultValue:d})}),a("div",{className:"col-span-1 mt-3",children:e("h5",{className:"mb-1 text-sm text-gray-700 dark:text-gray-200",children:["The output",t!=null?e("span",{className:"text-gray-600 dark:text-gray-300",children:[" (",t,"s)"]}):null]})}),a("div",{className:"col-span-1 text-end mt-3",children:a("label",{htmlFor:"output"+r,className:"block mb-2 text-sm font-medium text-gray-900 dark:text-gray-400",children:u(m,"hh:mm:ssa do LLL yyyy")})}),a("div",{className:"col-span-2",children:a("textarea",{id:"output"+r,rows:o,className:"block p-2.5 w-full text-sm text-gray-900 bg-gray-50 rounded-lg border border-gray-300 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-900 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",defaultValue:c})})]})}export{n as O}; +import{j as e,a}from"./app-a8d4275f.js";import{f as u}from"./index-9b0dda6f.js";function n({id:r,title:l,the_command:d,created_at:s,the_output:c,seconds:t,rows:o=6}){let m=new Date(s);return e("div",{className:"grid grid-cols-1 sm:grid-cols-2",children:[a("div",{className:"col-span-2",children:a("h2",{className:"mb-2 text-md text-gray-800 dark:text-white",children:l})}),a("div",{className:"col-span-1",children:a("h5",{className:"mb-1 text-sm text-gray-700 dark:text-gray-200",children:"The command"})}),a("div",{className:"col-span-2",children:a("textarea",{rows:2,id:"command",className:"block p-2.5 w-full text-sm text-gray-900 bg-gray-50 rounded-lg border border-gray-300 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-900 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",defaultValue:d})}),a("div",{className:"col-span-1 mt-3",children:e("h5",{className:"mb-1 text-sm text-gray-700 dark:text-gray-200",children:["The output",t!=null?e("span",{className:"text-gray-600 dark:text-gray-300",children:[" (",t,"s)"]}):null]})}),a("div",{className:"col-span-1 text-end mt-3",children:a("label",{htmlFor:"output"+r,className:"block mb-2 text-sm font-medium text-gray-900 dark:text-gray-400",children:u(m,"hh:mm:ssa do LLL yyyy")})}),a("div",{className:"col-span-2",children:a("textarea",{id:"output"+r,rows:o,className:"block p-2.5 w-full text-sm text-gray-900 bg-gray-50 rounded-lg border border-gray-300 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-900 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500",defaultValue:c})})]})}export{n as O}; diff --git a/public/build/assets/PrimaryButton-aae876dd.js b/public/build/assets/PrimaryButton-19cc4f5a.js similarity index 89% rename from public/build/assets/PrimaryButton-aae876dd.js rename to public/build/assets/PrimaryButton-19cc4f5a.js index c24969b..ff67508 100644 --- a/public/build/assets/PrimaryButton-aae876dd.js +++ b/public/build/assets/PrimaryButton-19cc4f5a.js @@ -1 +1 @@ -import{a as n}from"./app-7082a047.js";function a({type:r="submit",className:t="",processing:e,children:o,onClick:i}){return n("button",{type:r,onClick:i,className:`inline-flex items-center px-4 py-2 bg-purple-600 dark:bg-purple-600 border border-transparent rounded-md font-semibold text-xs text-white uppercase tracking-widest hover:bg-purple-700 hover:dark:bg-purple-800 focus:bg-gray-700 active:bg-purple-900 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 transition ease-in-out duration-150 ${e&&"opacity-25"} `+t,disabled:e,children:o})}export{a as P}; +import{a as n}from"./app-a8d4275f.js";function a({type:r="submit",className:t="",processing:e,children:o,onClick:i}){return n("button",{type:r,onClick:i,className:`inline-flex items-center px-4 py-2 bg-purple-600 dark:bg-purple-600 border border-transparent rounded-md font-semibold text-xs text-white uppercase tracking-widest hover:bg-purple-700 hover:dark:bg-purple-800 focus:bg-gray-700 active:bg-purple-900 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 transition ease-in-out duration-150 ${e&&"opacity-25"} `+t,disabled:e,children:o})}export{a as P}; diff --git a/public/build/assets/ProgressBar-e6470a9f.js b/public/build/assets/ProgressBar-0f70cb6b.js similarity index 83% rename from public/build/assets/ProgressBar-e6470a9f.js rename to public/build/assets/ProgressBar-0f70cb6b.js index 70b2259..2b6bf17 100644 --- a/public/build/assets/ProgressBar-e6470a9f.js +++ b/public/build/assets/ProgressBar-0f70cb6b.js @@ -1 +1 @@ -import{a as s,j as r}from"./app-7082a047.js";function a({value:e}){return e!==null?s("div",{className:"w-full mt-4",children:s("div",{className:"shadow w-full bg-gray-200 dark:bg-gray-500",children:r("div",{className:"bg-blue-500 text-sm leading-none py-1 text-center text-white rounded-sm",style:{width:e+"%"},children:[e,"%"]})})}):s("div",{className:"w-full my-9"})}export{a as P}; +import{a as s,j as r}from"./app-a8d4275f.js";function a({value:e}){return e!==null?s("div",{className:"w-full mt-4",children:s("div",{className:"shadow w-full bg-gray-200 dark:bg-gray-500",children:r("div",{className:"bg-blue-500 text-sm leading-none py-1 text-center text-white rounded-sm",style:{width:e+"%"},children:[e,"%"]})})}):s("div",{className:"w-full my-9"})}export{a as P}; diff --git a/public/build/assets/Read-954020d4.js b/public/build/assets/Read-9f9d258b.js similarity index 98% rename from public/build/assets/Read-954020d4.js rename to public/build/assets/Read-9f9d258b.js index 2724cc7..b72a3d3 100644 --- a/public/build/assets/Read-954020d4.js +++ b/public/build/assets/Read-9f9d258b.js @@ -1,4 +1,4 @@ -import{A as se}from"./AuthenticatedLayout-b0ac98cc.js";import{g as oe,h as V,u as q,b as le,R as M,r as ue,j as F,a as v,H as de}from"./app-7082a047.js";import{I as Z}from"./InputLabel-04829bce.js";import{T as J,I as Q}from"./TextInput-38986df9.js";import{P as ee}from"./PrimaryButton-aae876dd.js";import{R as ce}from"./Alert-af0dbb46.js";import{a as pe}from"./axios-4a70c6fc.js";import{U as ge}from"./UpdateButton-5ed5f67f.js";import{B as fe}from"./BackButton-c0685269.js";import{n as Ee}from"./helpers-2aabf79e.js";import"./ApplicationLogo-db4f8950.js";import"./transition-eb04b526.js";import"./Toast-a9c7a83a.js";import"./Table-13305096.js";import"./index.esm-eebfcfab.js";var te={exports:{}};(function(S){var T=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/** +import{A as se}from"./AuthenticatedLayout-c4be06bd.js";import{g as oe,h as V,u as q,b as le,R as M,r as ue,j as F,a as v,H as de}from"./app-a8d4275f.js";import{I as Z}from"./InputLabel-a7ee92ff.js";import{T as J,I as Q}from"./TextInput-1e9aadbd.js";import{P as ee}from"./PrimaryButton-19cc4f5a.js";import{R as ce}from"./Alert-d503f44b.js";import{a as pe}from"./axios-4a70c6fc.js";import{U as ge}from"./UpdateButton-5faf9e0a.js";import{B as fe}from"./BackButton-2b60c346.js";import{n as Ee}from"./helpers-2aabf79e.js";import"./ApplicationLogo-ae419612.js";import"./transition-fbe58e1e.js";import"./Toast-ee00046f.js";import"./Table-f19b692a.js";import"./index.esm-2010c99b.js";var te={exports:{}};(function(S){var T=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/** * Prism: Lightweight, robust, elegant syntax highlighting * * @license MIT diff --git a/public/build/assets/Register-2e6be42c.js b/public/build/assets/Register-a3355c91.js similarity index 85% rename from public/build/assets/Register-2e6be42c.js rename to public/build/assets/Register-a3355c91.js index 0e73f4b..bc21790 100644 --- a/public/build/assets/Register-2e6be42c.js +++ b/public/build/assets/Register-a3355c91.js @@ -1 +1 @@ -import{b as p,r as f,j as a,a as e,H as g,L as w}from"./app-7082a047.js";import{G as h}from"./GuestLayout-3dfccb91.js";import{T as m,I as n}from"./TextInput-38986df9.js";import{I as i}from"./InputLabel-04829bce.js";import{P as N}from"./PrimaryButton-aae876dd.js";import"./ApplicationLogo-db4f8950.js";function _(){const{data:r,setData:l,post:d,processing:u,errors:t,reset:c}=p({name:"",email:"",password:"",password_confirmation:""});f.useEffect(()=>()=>{c("password","password_confirmation")},[]);const o=s=>{l(s.target.name,s.target.type==="checkbox"?s.target.checked:s.target.value)};return a(h,{children:[e(g,{title:"Register"}),a("form",{onSubmit:s=>{s.preventDefault(),d(route("register"))},children:[a("div",{children:[e(i,{forInput:"name",value:"Username"}),e(m,{id:"name",name:"name",value:r.name,className:"mt-1 block w-full",autoComplete:"name",isFocused:!0,handleChange:o,maxLength:32,required:!0}),e(n,{message:t.name,className:"mt-2"})]}),a("div",{className:"mt-4",children:[e(i,{forInput:"email",value:"Email"}),e(m,{id:"email",type:"email",name:"email",value:r.email,className:"mt-1 block w-full",autoComplete:"username",handleChange:o,required:!0}),e(n,{message:t.email,className:"mt-2"})]}),a("div",{className:"mt-4",children:[e(i,{forInput:"password",value:"Password"}),e(m,{id:"password",type:"password",name:"password",value:r.password,className:"mt-1 block w-full",autoComplete:"new-password",handleChange:o,required:!0}),e(n,{message:t.password,className:"mt-2"})]}),a("div",{className:"mt-4",children:[e(i,{forInput:"password_confirmation",value:"Confirm Password"}),e(m,{id:"password_confirmation",type:"password",name:"password_confirmation",value:r.password_confirmation,className:"mt-1 block w-full",handleChange:o,required:!0}),e(n,{message:t.password_confirmation,className:"mt-2"})]}),a("div",{className:"flex items-center justify-end mt-4",children:[e(w,{href:route("login"),className:"underline text-sm text-gray-600 dark:text-gray-300 hover:text-gray-900 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",children:"Already registered?"}),e(N,{className:"ml-4",processing:u,children:"Register"})]})]})]})}export{_ as default}; +import{b as p,r as f,j as a,a as e,H as g,L as w}from"./app-a8d4275f.js";import{G as h}from"./GuestLayout-fc7cb66d.js";import{T as m,I as n}from"./TextInput-1e9aadbd.js";import{I as i}from"./InputLabel-a7ee92ff.js";import{P as N}from"./PrimaryButton-19cc4f5a.js";import"./ApplicationLogo-ae419612.js";function _(){const{data:r,setData:l,post:d,processing:u,errors:t,reset:c}=p({name:"",email:"",password:"",password_confirmation:""});f.useEffect(()=>()=>{c("password","password_confirmation")},[]);const o=s=>{l(s.target.name,s.target.type==="checkbox"?s.target.checked:s.target.value)};return a(h,{children:[e(g,{title:"Register"}),a("form",{onSubmit:s=>{s.preventDefault(),d(route("register"))},children:[a("div",{children:[e(i,{forInput:"name",value:"Username"}),e(m,{id:"name",name:"name",value:r.name,className:"mt-1 block w-full",autoComplete:"name",isFocused:!0,handleChange:o,maxLength:32,required:!0}),e(n,{message:t.name,className:"mt-2"})]}),a("div",{className:"mt-4",children:[e(i,{forInput:"email",value:"Email"}),e(m,{id:"email",type:"email",name:"email",value:r.email,className:"mt-1 block w-full",autoComplete:"username",handleChange:o,required:!0}),e(n,{message:t.email,className:"mt-2"})]}),a("div",{className:"mt-4",children:[e(i,{forInput:"password",value:"Password"}),e(m,{id:"password",type:"password",name:"password",value:r.password,className:"mt-1 block w-full",autoComplete:"new-password",handleChange:o,required:!0}),e(n,{message:t.password,className:"mt-2"})]}),a("div",{className:"mt-4",children:[e(i,{forInput:"password_confirmation",value:"Confirm Password"}),e(m,{id:"password_confirmation",type:"password",name:"password_confirmation",value:r.password_confirmation,className:"mt-1 block w-full",handleChange:o,required:!0}),e(n,{message:t.password_confirmation,className:"mt-2"})]}),a("div",{className:"flex items-center justify-end mt-4",children:[e(w,{href:route("login"),className:"underline text-sm text-gray-600 dark:text-gray-300 hover:text-gray-900 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",children:"Already registered?"}),e(N,{className:"ml-4",processing:u,children:"Register"})]})]})]})}export{_ as default}; diff --git a/public/build/assets/ResetPassword-aa4a7494.js b/public/build/assets/ResetPassword-f5d7a2f5.js similarity index 80% rename from public/build/assets/ResetPassword-aa4a7494.js rename to public/build/assets/ResetPassword-f5d7a2f5.js index 35e045b..86bde7b 100644 --- a/public/build/assets/ResetPassword-aa4a7494.js +++ b/public/build/assets/ResetPassword-f5d7a2f5.js @@ -1 +1 @@ -import{b as f,r as h,j as a,a as s,H as v}from"./app-7082a047.js";import{G as g}from"./GuestLayout-3dfccb91.js";import{T as m,I as n}from"./TextInput-38986df9.js";import{I as l}from"./InputLabel-04829bce.js";import{P as N}from"./PrimaryButton-aae876dd.js";import"./ApplicationLogo-db4f8950.js";function j({token:i,email:d}){const{data:r,setData:p,post:u,processing:c,errors:o,reset:w}=f({token:i,email:d,password:"",password_confirmation:""});h.useEffect(()=>()=>{w("password","password_confirmation")},[]);const t=e=>{p(e.target.name,e.target.value)};return a(g,{children:[s(v,{title:"Reset Password"}),a("form",{onSubmit:e=>{e.preventDefault(),u(route("password.store"))},children:[a("div",{children:[s(l,{forInput:"email",value:"Email"}),s(m,{id:"email",type:"email",name:"email",value:r.email,className:"mt-1 block w-full",autoComplete:"username",handleChange:t}),s(n,{message:o.email,className:"mt-2"})]}),a("div",{className:"mt-4",children:[s(l,{forInput:"password",value:"Password"}),s(m,{id:"password",type:"password",name:"password",value:r.password,className:"mt-1 block w-full",autoComplete:"new-password",isFocused:!0,handleChange:t}),s(n,{message:o.password,className:"mt-2"})]}),a("div",{className:"mt-4",children:[s(l,{forInput:"password_confirmation",value:"Confirm Password"}),s(m,{type:"password",name:"password_confirmation",value:r.password_confirmation,className:"mt-1 block w-full",autoComplete:"new-password",handleChange:t}),s(n,{message:o.password_confirmation,className:"mt-2"})]}),s("div",{className:"flex items-center justify-end mt-4",children:s(N,{className:"ml-4",processing:c,children:"Reset Password"})})]})]})}export{j as default}; +import{b as f,r as h,j as a,a as s,H as v}from"./app-a8d4275f.js";import{G as g}from"./GuestLayout-fc7cb66d.js";import{T as m,I as n}from"./TextInput-1e9aadbd.js";import{I as l}from"./InputLabel-a7ee92ff.js";import{P as N}from"./PrimaryButton-19cc4f5a.js";import"./ApplicationLogo-ae419612.js";function j({token:i,email:d}){const{data:r,setData:p,post:u,processing:c,errors:o,reset:w}=f({token:i,email:d,password:"",password_confirmation:""});h.useEffect(()=>()=>{w("password","password_confirmation")},[]);const t=e=>{p(e.target.name,e.target.value)};return a(g,{children:[s(v,{title:"Reset Password"}),a("form",{onSubmit:e=>{e.preventDefault(),u(route("password.store"))},children:[a("div",{children:[s(l,{forInput:"email",value:"Email"}),s(m,{id:"email",type:"email",name:"email",value:r.email,className:"mt-1 block w-full",autoComplete:"username",handleChange:t}),s(n,{message:o.email,className:"mt-2"})]}),a("div",{className:"mt-4",children:[s(l,{forInput:"password",value:"Password"}),s(m,{id:"password",type:"password",name:"password",value:r.password,className:"mt-1 block w-full",autoComplete:"new-password",isFocused:!0,handleChange:t}),s(n,{message:o.password,className:"mt-2"})]}),a("div",{className:"mt-4",children:[s(l,{forInput:"password_confirmation",value:"Confirm Password"}),s(m,{type:"password",name:"password_confirmation",value:r.password_confirmation,className:"mt-1 block w-full",autoComplete:"new-password",handleChange:t}),s(n,{message:o.password_confirmation,className:"mt-2"})]}),s("div",{className:"flex items-center justify-end mt-4",children:s(N,{className:"ml-4",processing:c,children:"Reset Password"})})]})]})}export{j as default}; diff --git a/public/build/assets/ResourceEmptyText-25c44e25.js b/public/build/assets/ResourceEmptyText-f0a77405.js similarity index 73% rename from public/build/assets/ResourceEmptyText-25c44e25.js rename to public/build/assets/ResourceEmptyText-f0a77405.js index 77c89d9..7843b56 100644 --- a/public/build/assets/ResourceEmptyText-25c44e25.js +++ b/public/build/assets/ResourceEmptyText-f0a77405.js @@ -1 +1 @@ -import{j as o}from"./app-7082a047.js";function r({resource:e,className:t}){return o("h2",{className:"text-md p-2 font-semibold leading-none text-yellow-500 md:text-lg dark:text-yellow-400 "+t,children:["No ",e," currently"]})}export{r as R}; +import{j as o}from"./app-a8d4275f.js";function r({resource:e,className:t}){return o("h2",{className:"text-md p-2 font-semibold leading-none text-yellow-500 md:text-lg dark:text-yellow-400 "+t,children:["No ",e," currently"]})}export{r as R}; diff --git a/public/build/assets/Show-ef6961c5.js b/public/build/assets/Show-0584235d.js similarity index 86% rename from public/build/assets/Show-ef6961c5.js rename to public/build/assets/Show-0584235d.js index 8f4e91e..ff3d22a 100644 --- a/public/build/assets/Show-ef6961c5.js +++ b/public/build/assets/Show-0584235d.js @@ -1 +1 @@ -import{A as k}from"./AuthenticatedLayout-b0ac98cc.js";import{u as n,r as c,j as r,a as e,H as N}from"./app-7082a047.js";import{M as m,B as h}from"./Toast-a9c7a83a.js";import"./Table-13305096.js";import{H as v,j as B,l as z}from"./index.esm-eebfcfab.js";import{R as E}from"./Alert-af0dbb46.js";import{a as u}from"./axios-4a70c6fc.js";import{B as A}from"./BackButton-c0685269.js";import{n as x}from"./helpers-2aabf79e.js";import"./ApplicationLogo-db4f8950.js";import"./transition-eb04b526.js";function P({auth:g}){const p=n().props.alert,a=n().props.resource,l=n().props.tables,i=n().props.auth.user,[f,d]=c.useState(!1),[C,o]=c.useState(!1),b=()=>{const t={method:"DELETE",headers:{"X-CSRF-TOKEN":document.getElementsByName("csrf-token")[0].getAttribute("content")}};fetch(route("db.show.tables.destroy",[a.id]),t).then(s=>{s.redirected&&(window.location.href=s.url)})},w=()=>{o(!0);const t={headers:{Authorization:`Bearer ${i.api_token}`}};u.get(route("api.db.refresh",a.id),t).then(s=>{window.location.reload()}).catch(s=>{console.log("Error refreshing tables"),o(!1)})},y=()=>{o(!0);const t={headers:{Authorization:`Bearer ${i.api_token}`}};u.get(route("api.db.table.size",a.id),t).then(s=>{window.location.reload()}).catch(s=>{console.log("Error refreshing tables"),o(!1)})};return r(k,{auth:g,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:a.name+" tables"}),children:[e(N,{title:a.name+" tables"}),r("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(A,{href:route("db.show",a.id),children:"Back to Database"})}),e(E,{details:p}),e("section",{className:"bg-white/50 dark:bg-gray-700 rounded-lg shadow-sm",children:r("div",{className:"py-4 px-4 mx-auto max-w-7xl",children:[r("div",{className:"flex items-center justify-between",children:[e("div",{children:r("h2",{className:"mt-1 mb-2 text-xl font-bold leading-none text-gray-900 md:text-2xl dark:text-white",children:[a.name," (",a.conn.host,")"]})}),r("small",{className:"text-end",children:[e(v,{className:"mr-2 h-6 w-6 text-gray-600 dark:text-white hover:text-gray-700 hover:dark:text-gray-300 inline hover:cursor-pointer",onClick:()=>d(!0),title:"Delete table"}),e(B,{className:"md:ml-2 ml-1 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer",onClick:w,title:"Refresh tables"}),e(z,{className:"md:ml-3 ml-2 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer",onClick:y,title:"Get size and row counts"})]})]}),e("h2",{className:"mb-2 text-lg font-semibold text-gray-900 dark:text-white",children:"Tables"}),l.length>0?e("ul",{className:"max-w-md space-y-1 text-gray-500 list-none list-inside dark:text-gray-400",children:l.map(t=>r("li",{children:[e("a",{href:route("db.table.columns.show",[a.id,t.id]),children:t.name}),t.row_count!==null?r("span",{className:"ml-1 bg-indigo-100 text-indigo-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-indigo-900 dark:text-indigo-300",children:[x(t.row_count)," rows"]}):null,t.size_mb!==null?r("span",{className:"ml-1 bg-green-100 text-green-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-green-900 dark:text-green-300",children:[x(t.size_mb)," MB"]}):null]},t.id))}):e("p",{className:"text-md my-1 font-semibold text-gray-600 md:text-lg dark:text-gray-300",children:"There are no tables. Perhaps your connection is not correct"})]})})]}),e(m,{show:f,size:"md",children:e(m.Body,{children:r("div",{className:"text-center",children:[e("h3",{className:"mb-5 text-lg font-normal text-gray-500 dark:text-gray-400",children:"Are you sure you want to delete this table?"}),r("div",{className:"flex justify-center gap-4",children:[e(h,{color:"failure",onClick:b,children:"Yes, I'm sure"}),e(h,{onClick:()=>d(!1),color:"gray",children:"No, cancel"})]})]})})})]})}export{P as default}; +import{A as k}from"./AuthenticatedLayout-c4be06bd.js";import{u as n,r as c,j as r,a as e,H as N}from"./app-a8d4275f.js";import{M as m,B as h}from"./Toast-ee00046f.js";import"./Table-f19b692a.js";import{H as v,j as B,l as z}from"./index.esm-2010c99b.js";import{R as E}from"./Alert-d503f44b.js";import{a as u}from"./axios-4a70c6fc.js";import{B as A}from"./BackButton-2b60c346.js";import{n as x}from"./helpers-2aabf79e.js";import"./ApplicationLogo-ae419612.js";import"./transition-fbe58e1e.js";function P({auth:g}){const p=n().props.alert,a=n().props.resource,l=n().props.tables,i=n().props.auth.user,[f,d]=c.useState(!1),[C,o]=c.useState(!1),b=()=>{const t={method:"DELETE",headers:{"X-CSRF-TOKEN":document.getElementsByName("csrf-token")[0].getAttribute("content")}};fetch(route("db.show.tables.destroy",[a.id]),t).then(s=>{s.redirected&&(window.location.href=s.url)})},w=()=>{o(!0);const t={headers:{Authorization:`Bearer ${i.api_token}`}};u.get(route("api.db.refresh",a.id),t).then(s=>{window.location.reload()}).catch(s=>{console.log("Error refreshing tables"),o(!1)})},y=()=>{o(!0);const t={headers:{Authorization:`Bearer ${i.api_token}`}};u.get(route("api.db.table.size",a.id),t).then(s=>{window.location.reload()}).catch(s=>{console.log("Error refreshing tables"),o(!1)})};return r(k,{auth:g,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:a.name+" tables"}),children:[e(N,{title:a.name+" tables"}),r("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(A,{href:route("db.show",a.id),children:"Back to Database"})}),e(E,{details:p}),e("section",{className:"bg-white/50 dark:bg-gray-700 rounded-lg shadow-sm",children:r("div",{className:"py-4 px-4 mx-auto max-w-7xl",children:[r("div",{className:"flex items-center justify-between",children:[e("div",{children:r("h2",{className:"mt-1 mb-2 text-xl font-bold leading-none text-gray-900 md:text-2xl dark:text-white",children:[a.name," (",a.conn.host,")"]})}),r("small",{className:"text-end",children:[e(v,{className:"mr-2 h-6 w-6 text-gray-600 dark:text-white hover:text-gray-700 hover:dark:text-gray-300 inline hover:cursor-pointer",onClick:()=>d(!0),title:"Delete table"}),e(B,{className:"md:ml-2 ml-1 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer",onClick:w,title:"Refresh tables"}),e(z,{className:"md:ml-3 ml-2 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer",onClick:y,title:"Get size and row counts"})]})]}),e("h2",{className:"mb-2 text-lg font-semibold text-gray-900 dark:text-white",children:"Tables"}),l.length>0?e("ul",{className:"max-w-md space-y-1 text-gray-500 list-none list-inside dark:text-gray-400",children:l.map(t=>r("li",{children:[e("a",{href:route("db.table.columns.show",[a.id,t.id]),children:t.name}),t.row_count!==null?r("span",{className:"ml-1 bg-indigo-100 text-indigo-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-indigo-900 dark:text-indigo-300",children:[x(t.row_count)," rows"]}):null,t.size_mb!==null?r("span",{className:"ml-1 bg-green-100 text-green-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-green-900 dark:text-green-300",children:[x(t.size_mb)," MB"]}):null]},t.id))}):e("p",{className:"text-md my-1 font-semibold text-gray-600 md:text-lg dark:text-gray-300",children:"There are no tables. Perhaps your connection is not correct"})]})})]}),e(m,{show:f,size:"md",children:e(m.Body,{children:r("div",{className:"text-center",children:[e("h3",{className:"mb-5 text-lg font-normal text-gray-500 dark:text-gray-400",children:"Are you sure you want to delete this table?"}),r("div",{className:"flex justify-center gap-4",children:[e(h,{color:"failure",onClick:b,children:"Yes, I'm sure"}),e(h,{onClick:()=>d(!1),color:"gray",children:"No, cancel"})]})]})})})]})}export{P as default}; diff --git a/public/build/assets/Show-fba28704.js b/public/build/assets/Show-18ffc0d4.js similarity index 95% rename from public/build/assets/Show-fba28704.js rename to public/build/assets/Show-18ffc0d4.js index 1669d07..4e04393 100644 --- a/public/build/assets/Show-fba28704.js +++ b/public/build/assets/Show-18ffc0d4.js @@ -1 +1 @@ -import{A as F}from"./AuthenticatedLayout-b0ac98cc.js";import{j as a,a as e,F as m,r as b,R as i,u as y,H as j}from"./app-7082a047.js";import{D as k,M as N,B as v}from"./Toast-a9c7a83a.js";import"./Table-13305096.js";import{z as G,v as I,d as O,h as q,j as w,H as z,a as K,n as X,A as V}from"./index.esm-eebfcfab.js";import{R as Y}from"./Alert-af0dbb46.js";import{n as u}from"./helpers-2aabf79e.js";import{C as J}from"./CreatedAtText-a1e22ba4.js";import{U as Q}from"./UpdatedAtText-1126b185.js";import{a as p}from"./axios-4a70c6fc.js";import{B as W}from"./BackButton-c0685269.js";import{b as Z}from"./index.esm-6768e5ef.js";import"./ApplicationLogo-db4f8950.js";import"./transition-eb04b526.js";import"./index-9b0dda6f.js";function $({resource:t}){return a("dl",{className:"flex items-center space-x-6 mt-2",children:[a("div",{children:[e("dt",{className:"mb-2 font-light leading-none text-gray-900 dark:text-gray-300",children:"CPU"}),e("dd",{className:"mb-4 font-semibold text-gray-600 sm:mb-5 dark:text-white",children:t.cpu_cores??"-"})]}),a("div",{children:[e("dt",{className:"mb-2 font-light leading-none text-gray-900 dark:text-gray-300",children:"Ghz"}),e("dd",{className:"mb-4 font-semibold text-gray-600 sm:mb-5 dark:text-white",children:u(t.cpu_freq,3)??"-"})]}),e("div",{children:(()=>t.disk_tb!==null?a(m,{children:[e("dt",{className:"mb-2 font-light leading-none text-gray-900 dark:text-gray-300",children:"Disk TB"}),e("dd",{className:"mb-4 font-semibold text-gray-600 sm:mb-5 dark:text-white",children:u(t.disk_tb,3)})]}):a(m,{children:[e("dt",{className:"mb-2 font-light leading-none text-gray-900 dark:text-gray-300",children:"Disk GB"}),e("dd",{className:"mb-4 font-semibold text-gray-600 sm:mb-5 dark:text-white",children:t.disk_gb===null?"-":u(t.disk_gb,3)})]}))()}),e("div",{children:(()=>t.ram_gb!==null?a(m,{children:[e("dt",{className:"mb-2 font-light leading-none text-gray-900 dark:text-gray-300",children:"RAM GB"}),e("dd",{className:"mb-4 font-semibold text-gray-600 sm:mb-5 dark:text-white",children:u(t.ram_gb,3)})]}):a(m,{children:[e("dt",{className:"mb-2 font-light leading-none text-gray-900 dark:text-gray-300",children:"RAM MB"}),e("dd",{className:"mb-4 font-semibold text-gray-600 sm:mb-5 dark:text-white",children:t.ram_mb===null?"-":u(t.ram_mb,3)})]}))()}),e("div",{children:(()=>{if(t.price!==null&&t.currency!==null)return a(m,{children:[a("dt",{className:"mb-2 font-light leading-none text-gray-900 dark:text-gray-300",children:["Price ",t.currency]}),e("dd",{className:"mb-4 font-semibold text-gray-600 sm:mb-5 dark:text-white",children:t.price})]})})()})]})}function ee({connection:t=null}){return e(m,{children:e("dl",{className:"flex items-center space-x-6 mt-4",children:a("div",{children:[e("dt",{className:"mb-2 font-light leading-none text-gray-900 dark:text-gray-300",children:(()=>typeof t<"u"&&t!==null?e("p",{className:"mb-2 font-light leading-none text-gray-900 dark:text-gray-300 inline",children:"Connection"}):e("p",{className:"mb-2 font-semibold leading-none text-yellow-500 dark:text-yellow-400 inline",children:"No connection set, create a connection to fetch more information."}))()}),e("dd",{className:"",children:e("p",{className:"mb-4 font-semibold text-gray-600 sm:mb-5 dark:text-white inline",children:(()=>{if(typeof t<"u"&&t!==null)return typeof t.key_id<"u"&&t.key_id!==null?t.username+":"+t.ssh_port+" with key":t.password!=="undefined"?t.username+":"+t.ssh_port+" with password":""})()})})]})})})}function te({resource:t}){return a(m,{children:[e("h2",{className:"my-2 text-2xl font-bold leading-none text-gray-900 md:text-2xl dark:text-white",children:t.hostname}),e("p",{className:"mb-4 text-lg font-semibold leading-none text-gray-600 md:text-lg dark:text-gray-200",children:t.location!==null?t.location.name:""}),e("dl",{children:e("dd",{className:"mb-4 font-light text-gray-600 sm:mb-5 dark:text-gray-300",children:t.ips.map(n=>a("p",{children:[e(G,{className:"mr-2 mb-1 h-5 w-5 inline hover:cursor-grab dark:text-gray-300",onClick:()=>{navigator.clipboard.writeText(n.ip)},title:"Copy IP"}),e("a",{href:route("ip.show",n.id),children:n.ip}),n.is_main?e(I,{className:"ml-2 mb-1 h-5 w-5 inline text-yellow-500",title:"Main ip"}):null,n.is_ssh?e(O,{className:"ml-2 mb-1 h-5 w-5 inline text-green-500",title:"SSH ip"}):null]},n.id))})})]})}function ae({resource:t}){const[n,r]=b.useState(null),[d,h]=b.useState("Check if server is up"),o=()=>{p.get(route("check-is-up",t.id)).then(c=>{r(c.data.is_up)}).catch(c=>{r(!n)})};return e(m,{children:e(q,{className:(()=>n?"md:ml-3 ml-2 h-6 w-6 text-green-500 dark:text-green-400 inline hover:cursor-pointer":n===null?"md:ml-3 ml-2 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer":"md:ml-3 ml-2 h-6 w-6 text-red-500 dark:text-red-400 inline hover:cursor-pointer")(),onClick:o,title:d})})}function re({serverId:t,usage:n,uptime:r}){const[d,h]=i.useState(!1),[o,c]=i.useState(!1),[s,f]=i.useState("-"),[g,x]=i.useState("-"),[_,C]=i.useState("-"),[S,B]=i.useState("-"),[A,U]=i.useState("-"),[D,H]=i.useState("-"),[L,R]=i.useState("-"),[P,M]=i.useState("-"),[E,T]=i.useState("-");return a("div",{className:"grid md:grid-cols-2 grid-cols-1",children:[e("div",{className:"md:col-span-2",children:a("dl",{className:"flex items-center space-x-6 mt-4",children:[a("div",{children:[e("dt",{className:d?"mb-2 font-light leading-none text-white/50 dark:text-gray-900":"mb-2 font-light leading-none text-gray-900 dark:text-gray-300 hover:dark:text-gray-200",children:e(w,{title:"Refresh usage stats",onClick:()=>{h(!0),p.get(route("server.usage",t)).then(l=>{f(u(l.data.cpu_used_percent,3)),x(u(l.data.ram_used_percent,3)),C(l.data.disk_used_percent),B(u(l.data.disk_available_gb,3)+" GB"),console.log("Updated usage"),h(!1)}).catch(l=>{console.log("Error fetching usage data"),h(!1)})},className:d?"mt-2 h-5 w-5 text-white/50 dark:text-gray-700":"mt-2 h-5 w-5 hover:cursor-pointer"})}),e("dd",{className:"mb-4 font-semibold text-gray-600 sm:mb-5 dark:text-white"})]}),a("div",{children:[e("dt",{className:"mb-2 font-light leading-none text-gray-900 dark:text-gray-300",children:"CPU %"}),e("dd",{className:"mb-4 font-semibold text-gray-600 sm:mb-5 dark:text-white",children:s})]}),a("div",{children:[e("dt",{className:"mb-2 font-light leading-none text-gray-900 dark:text-gray-300",children:"RAM %"}),e("dd",{className:"mb-4 font-semibold text-gray-600 sm:mb-5 dark:text-white",children:g})]}),a("div",{children:[e("dt",{className:"mb-2 font-light leading-none text-gray-900 dark:text-gray-300",children:"Disk %"}),e("dd",{className:"mb-4 font-semibold text-gray-600 sm:mb-5 dark:text-white",children:_})]}),a("div",{children:[e("dt",{className:"mb-2 font-light leading-none text-gray-900 dark:text-gray-300",children:"Disk Avail"}),e("dd",{className:"mb-4 font-semibold text-gray-600 sm:mb-5 dark:text-white",children:S})]})]})}),e("div",{className:"md:col-span-1 md:col-span-2",children:a("dl",{className:"flex items-center space-x-6 mt-4",children:[a("div",{children:[e("dt",{className:o?"mb-2 font-light leading-none text-white/50 dark:text-gray-900":"mb-2 font-light leading-none text-gray-900 dark:text-gray-300 hover:dark:text-gray-200",children:e(w,{title:"Refresh usage stats",onClick:()=>{c(!0),p.get(route("server.uptime",t)).then(l=>{U(l.data.last_minute),H(l.data.last_5_minutes),R(l.data.last_15_minutes),M(l.data.users),T(l.data.uptime),console.log("Updated uptime"),c(!1)}).catch(l=>{console.log("Error fetching uptime data"),c(!1)})},className:o?"mt-2 h-5 w-5 text-white/50 dark:text-gray-700":"mt-2 h-5 w-5 hover:cursor-pointer"})}),e("dd",{className:"mb-4 font-semibold text-gray-600 sm:mb-5 dark:text-white"})]}),a("div",{children:[e("dt",{className:"mb-2 font-light leading-none text-gray-900 dark:text-gray-300",children:"Load 1m"}),e("dd",{className:"mb-4 font-semibold text-gray-600 sm:mb-5 dark:text-white",children:A})]}),a("div",{children:[e("dt",{className:"mb-2 font-light leading-none text-gray-900 dark:text-gray-300",children:"Load 5m"}),e("dd",{className:"mb-4 font-semibold text-gray-600 sm:mb-5 dark:text-white",children:D})]}),a("div",{children:[e("dt",{className:"mb-2 font-light leading-none text-gray-900 dark:text-gray-300",children:"Load 15m"}),e("dd",{className:"mb-4 font-semibold text-gray-600 sm:mb-5 dark:text-white",children:L})]}),a("div",{children:[e("dt",{className:"mb-2 font-light leading-none text-gray-900 dark:text-gray-300",children:"Users"}),e("dd",{className:"mb-4 font-semibold text-gray-600 sm:mb-5 dark:text-white",children:P})]}),a("div",{children:[e("dt",{className:"mb-2 font-light leading-none text-gray-900 dark:text-gray-300",children:"Uptime"}),e("dd",{className:"mb-4 font-semibold text-gray-600 sm:mb-5 dark:text-white",children:E})]})]})})]})}function ne({serverId:t,servers:n}){const[r,d]=i.useState(!1),[h,o]=i.useState(null),[c,s]=i.useState("Ping another server"),f=g=>{d(!0),s("Pinging....."),p.get(route("run.ping-from-to",[t,g.target.id])).then(x=>{console.log("Ran ping"),Object.keys(x.data).length===0?o(""):o("AVG: "+x.data.avg+" MIN: "+x.data.min+" MAX: "+x.data.max),d(!1),s("Ping another server")}).catch(x=>{console.log("Error running ping"),d(!1),s("Ping another server")})};return a("div",{className:"grid md:grid-cols-2 grid-cols-1 mt-2",children:[e("div",{className:"col-span-2 md:col-span-1",children:e(k,{label:c,dismissOnClick:!1,disabled:r,className:"dark:bg-gray-500",size:"sm",children:n.map(g=>e(k.Item,{className:r?"hidden":null,children:a("a",{onClick:f,id:g.id,children:[g.hostname," (",g.title,")"]})},g.id))})}),e("div",{className:"col-span-2 md:col-span-1",children:e("code",{className:"text-red-500 dark:text-red-400",children:h})})]})}function ie({commands:t}){return e("dl",{children:e("dd",{className:"mb-2 font-light text-gray-600 sm:mb-5 dark:text-gray-300",children:t.map(n=>e("code",{className:"text-red-500 dark:text-red-400",children:e("p",{className:"mt-2",children:e("a",{href:route("outputs.show",n.id),children:n.the_command})})},n.id))})})}function we({auth:t}){const n=y().props.alert,r=y().props.resource,d=y().props.servers,[h,o]=b.useState(!1),c=()=>{const s={method:"DELETE",headers:{"X-CSRF-TOKEN":document.getElementsByName("csrf-token")[0].getAttribute("content")}};fetch(route("server.destroy",r.id),s).then(f=>{f.redirected&&(window.location.href=f.url)})};return a(F,{auth:t,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:r.title}),children:[e(j,{title:"Server "+r.hostname}),a("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(W,{href:route("server.index"),children:"Back to servers"})}),e(Y,{details:n}),e("section",{className:"bg-white/50 dark:bg-gray-700 rounded-lg shadow-sm",children:a("div",{className:"py-4 px-4 mx-auto max-w-7xl",children:[a("div",{className:"flex items-center justify-between mb-4",children:[a("div",{children:[r.operating_system!==null?e("span",{className:"bg-green-100 text-green-800 text-xs font-medium mr-2 px-2 py-0.5 rounded dark:bg-green-900 dark:text-green-300",children:r.operating_system}):null,e("span",{className:"bg-indigo-200 text-indigo-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-indigo-900 dark:text-indigo-300",children:r.type.name})]}),a("small",{className:"text-end",children:[e(z,{className:"mr-2 h-6 w-6 text-gray-600 dark:text-white hover:text-gray-700 hover:dark:text-gray-300 inline hover:cursor-pointer",onClick:()=>o(!0),title:"Delete server"}),(()=>{if(typeof r.conn<"u"&&r.conn!==null&&(typeof r.cpu_freq>"u"||r.cpu_freq===null))return e(Z,{className:"md:ml-2 ml-1 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer",onClick:s=>window.location.href=route("server.get-information",r.id),title:"Fetch server specs"})})(),e(K,{className:"md:ml-2 ml-1 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer",onClick:s=>window.location.href=route("server.edit",r.id),title:"Edit server"}),(()=>{if(typeof r.conn<"u"&&r.conn!==null)return e(X,{className:"md:ml-2 ml-1 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer",onClick:s=>window.location.href=route("connection.show",r.conn.id),title:"Go to connection"})})(),(()=>{if(typeof r.sftp_conn<"u"&&r.sftp_conn!==null)return e(V,{className:"md:ml-3 ml-2 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer",onClick:s=>window.location.href=route("sftp.show",r.sftp_conn.id),title:"Go to SFTP connection"})})(),e(ae,{resource:r})]})]}),a("div",{className:"grid md:grid-cols-2 grid-cols-1",children:[e("div",{className:"md:col-span-1 col-span-2",children:e(te,{resource:r})}),a("div",{className:"md:col-span-1 col-span-2",children:[e("p",{className:"mb-2 text-gray-700 dark:text-gray-300",children:r.cpu??null}),e(ee,{connection:r.conn})]})]}),a("div",{className:"grid md:grid-cols-2 grid-cols-1",children:[e("div",{className:"col-span-1",children:e($,{resource:r})}),e("div",{className:"col-span-1",children:(()=>{if(r.conn!==null&&r.conn.outputs_last3!==null&&r.conn.outputs_last3.length>0)return a(m,{children:[e("p",{className:"mb-2 text-gray-800 dark:text-gray-200",children:"Last 3 commands ran"}),e(ie,{commands:r.conn.outputs_last3})]})})()})]}),e(re,{serverId:r.id,usage:null,uptime:null}),(()=>{if(typeof r.conn<"u"&&r.conn!==null&&d.length>0)return e(ne,{serverId:r.id,servers:d})})(),a("div",{className:"grid md:grid-cols-2 grid-cols-1 mt-4",children:[e("div",{className:"col-span-1",children:e(J,{created_at:r.created_at,string_format:"hh:mm:ssa do LLL yyyy"})}),e("div",{className:"col-span-1",children:e(Q,{updated_at:r.updated_at,string_format:"hh:mm:ssa do LLL yyyy"})})]})]})})]}),e(N,{show:h,size:"md",children:e(N.Body,{children:a("div",{className:"text-center",children:[e("h3",{className:"mb-5 text-lg font-normal text-gray-500 dark:text-gray-400",children:"Are you sure you want to delete this server?"}),a("div",{className:"flex justify-center gap-4",children:[e(v,{color:"failure",onClick:c,children:"Yes, I'm sure"}),e(v,{onClick:()=>o(!1),color:"gray",children:"No, cancel"})]})]})})})]})}export{we as default}; +import{A as F}from"./AuthenticatedLayout-c4be06bd.js";import{j as a,a as e,F as m,r as b,R as i,u as y,H as j}from"./app-a8d4275f.js";import{D as k,M as N,B as v}from"./Toast-ee00046f.js";import"./Table-f19b692a.js";import{z as G,v as I,d as O,h as q,j as w,H as z,a as K,n as X,A as V}from"./index.esm-2010c99b.js";import{R as Y}from"./Alert-d503f44b.js";import{n as u}from"./helpers-2aabf79e.js";import{C as J}from"./CreatedAtText-a06948df.js";import{U as Q}from"./UpdatedAtText-9a96553e.js";import{a as p}from"./axios-4a70c6fc.js";import{B as W}from"./BackButton-2b60c346.js";import{b as Z}from"./index.esm-456b3614.js";import"./ApplicationLogo-ae419612.js";import"./transition-fbe58e1e.js";import"./index-9b0dda6f.js";function $({resource:t}){return a("dl",{className:"flex items-center space-x-6 mt-2",children:[a("div",{children:[e("dt",{className:"mb-2 font-light leading-none text-gray-900 dark:text-gray-300",children:"CPU"}),e("dd",{className:"mb-4 font-semibold text-gray-600 sm:mb-5 dark:text-white",children:t.cpu_cores??"-"})]}),a("div",{children:[e("dt",{className:"mb-2 font-light leading-none text-gray-900 dark:text-gray-300",children:"Ghz"}),e("dd",{className:"mb-4 font-semibold text-gray-600 sm:mb-5 dark:text-white",children:u(t.cpu_freq,3)??"-"})]}),e("div",{children:(()=>t.disk_tb!==null?a(m,{children:[e("dt",{className:"mb-2 font-light leading-none text-gray-900 dark:text-gray-300",children:"Disk TB"}),e("dd",{className:"mb-4 font-semibold text-gray-600 sm:mb-5 dark:text-white",children:u(t.disk_tb,3)})]}):a(m,{children:[e("dt",{className:"mb-2 font-light leading-none text-gray-900 dark:text-gray-300",children:"Disk GB"}),e("dd",{className:"mb-4 font-semibold text-gray-600 sm:mb-5 dark:text-white",children:t.disk_gb===null?"-":u(t.disk_gb,3)})]}))()}),e("div",{children:(()=>t.ram_gb!==null?a(m,{children:[e("dt",{className:"mb-2 font-light leading-none text-gray-900 dark:text-gray-300",children:"RAM GB"}),e("dd",{className:"mb-4 font-semibold text-gray-600 sm:mb-5 dark:text-white",children:u(t.ram_gb,3)})]}):a(m,{children:[e("dt",{className:"mb-2 font-light leading-none text-gray-900 dark:text-gray-300",children:"RAM MB"}),e("dd",{className:"mb-4 font-semibold text-gray-600 sm:mb-5 dark:text-white",children:t.ram_mb===null?"-":u(t.ram_mb,3)})]}))()}),e("div",{children:(()=>{if(t.price!==null&&t.currency!==null)return a(m,{children:[a("dt",{className:"mb-2 font-light leading-none text-gray-900 dark:text-gray-300",children:["Price ",t.currency]}),e("dd",{className:"mb-4 font-semibold text-gray-600 sm:mb-5 dark:text-white",children:t.price})]})})()})]})}function ee({connection:t=null}){return e(m,{children:e("dl",{className:"flex items-center space-x-6 mt-4",children:a("div",{children:[e("dt",{className:"mb-2 font-light leading-none text-gray-900 dark:text-gray-300",children:(()=>typeof t<"u"&&t!==null?e("p",{className:"mb-2 font-light leading-none text-gray-900 dark:text-gray-300 inline",children:"Connection"}):e("p",{className:"mb-2 font-semibold leading-none text-yellow-500 dark:text-yellow-400 inline",children:"No connection set, create a connection to fetch more information."}))()}),e("dd",{className:"",children:e("p",{className:"mb-4 font-semibold text-gray-600 sm:mb-5 dark:text-white inline",children:(()=>{if(typeof t<"u"&&t!==null)return typeof t.key_id<"u"&&t.key_id!==null?t.username+":"+t.ssh_port+" with key":t.password!=="undefined"?t.username+":"+t.ssh_port+" with password":""})()})})]})})})}function te({resource:t}){return a(m,{children:[e("h2",{className:"my-2 text-2xl font-bold leading-none text-gray-900 md:text-2xl dark:text-white",children:t.hostname}),e("p",{className:"mb-4 text-lg font-semibold leading-none text-gray-600 md:text-lg dark:text-gray-200",children:t.location!==null?t.location.name:""}),e("dl",{children:e("dd",{className:"mb-4 font-light text-gray-600 sm:mb-5 dark:text-gray-300",children:t.ips.map(n=>a("p",{children:[e(G,{className:"mr-2 mb-1 h-5 w-5 inline hover:cursor-grab dark:text-gray-300",onClick:()=>{navigator.clipboard.writeText(n.ip)},title:"Copy IP"}),e("a",{href:route("ip.show",n.id),children:n.ip}),n.is_main?e(I,{className:"ml-2 mb-1 h-5 w-5 inline text-yellow-500",title:"Main ip"}):null,n.is_ssh?e(O,{className:"ml-2 mb-1 h-5 w-5 inline text-green-500",title:"SSH ip"}):null]},n.id))})})]})}function ae({resource:t}){const[n,r]=b.useState(null),[d,h]=b.useState("Check if server is up"),o=()=>{p.get(route("check-is-up",t.id)).then(c=>{r(c.data.is_up)}).catch(c=>{r(!n)})};return e(m,{children:e(q,{className:(()=>n?"md:ml-3 ml-2 h-6 w-6 text-green-500 dark:text-green-400 inline hover:cursor-pointer":n===null?"md:ml-3 ml-2 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer":"md:ml-3 ml-2 h-6 w-6 text-red-500 dark:text-red-400 inline hover:cursor-pointer")(),onClick:o,title:d})})}function re({serverId:t,usage:n,uptime:r}){const[d,h]=i.useState(!1),[o,c]=i.useState(!1),[s,f]=i.useState("-"),[g,x]=i.useState("-"),[_,C]=i.useState("-"),[S,B]=i.useState("-"),[A,U]=i.useState("-"),[D,H]=i.useState("-"),[L,R]=i.useState("-"),[P,M]=i.useState("-"),[E,T]=i.useState("-");return a("div",{className:"grid md:grid-cols-2 grid-cols-1",children:[e("div",{className:"md:col-span-2",children:a("dl",{className:"flex items-center space-x-6 mt-4",children:[a("div",{children:[e("dt",{className:d?"mb-2 font-light leading-none text-white/50 dark:text-gray-900":"mb-2 font-light leading-none text-gray-900 dark:text-gray-300 hover:dark:text-gray-200",children:e(w,{title:"Refresh usage stats",onClick:()=>{h(!0),p.get(route("server.usage",t)).then(l=>{f(u(l.data.cpu_used_percent,3)),x(u(l.data.ram_used_percent,3)),C(l.data.disk_used_percent),B(u(l.data.disk_available_gb,3)+" GB"),console.log("Updated usage"),h(!1)}).catch(l=>{console.log("Error fetching usage data"),h(!1)})},className:d?"mt-2 h-5 w-5 text-white/50 dark:text-gray-700":"mt-2 h-5 w-5 hover:cursor-pointer"})}),e("dd",{className:"mb-4 font-semibold text-gray-600 sm:mb-5 dark:text-white"})]}),a("div",{children:[e("dt",{className:"mb-2 font-light leading-none text-gray-900 dark:text-gray-300",children:"CPU %"}),e("dd",{className:"mb-4 font-semibold text-gray-600 sm:mb-5 dark:text-white",children:s})]}),a("div",{children:[e("dt",{className:"mb-2 font-light leading-none text-gray-900 dark:text-gray-300",children:"RAM %"}),e("dd",{className:"mb-4 font-semibold text-gray-600 sm:mb-5 dark:text-white",children:g})]}),a("div",{children:[e("dt",{className:"mb-2 font-light leading-none text-gray-900 dark:text-gray-300",children:"Disk %"}),e("dd",{className:"mb-4 font-semibold text-gray-600 sm:mb-5 dark:text-white",children:_})]}),a("div",{children:[e("dt",{className:"mb-2 font-light leading-none text-gray-900 dark:text-gray-300",children:"Disk Avail"}),e("dd",{className:"mb-4 font-semibold text-gray-600 sm:mb-5 dark:text-white",children:S})]})]})}),e("div",{className:"md:col-span-1 md:col-span-2",children:a("dl",{className:"flex items-center space-x-6 mt-4",children:[a("div",{children:[e("dt",{className:o?"mb-2 font-light leading-none text-white/50 dark:text-gray-900":"mb-2 font-light leading-none text-gray-900 dark:text-gray-300 hover:dark:text-gray-200",children:e(w,{title:"Refresh usage stats",onClick:()=>{c(!0),p.get(route("server.uptime",t)).then(l=>{U(l.data.last_minute),H(l.data.last_5_minutes),R(l.data.last_15_minutes),M(l.data.users),T(l.data.uptime),console.log("Updated uptime"),c(!1)}).catch(l=>{console.log("Error fetching uptime data"),c(!1)})},className:o?"mt-2 h-5 w-5 text-white/50 dark:text-gray-700":"mt-2 h-5 w-5 hover:cursor-pointer"})}),e("dd",{className:"mb-4 font-semibold text-gray-600 sm:mb-5 dark:text-white"})]}),a("div",{children:[e("dt",{className:"mb-2 font-light leading-none text-gray-900 dark:text-gray-300",children:"Load 1m"}),e("dd",{className:"mb-4 font-semibold text-gray-600 sm:mb-5 dark:text-white",children:A})]}),a("div",{children:[e("dt",{className:"mb-2 font-light leading-none text-gray-900 dark:text-gray-300",children:"Load 5m"}),e("dd",{className:"mb-4 font-semibold text-gray-600 sm:mb-5 dark:text-white",children:D})]}),a("div",{children:[e("dt",{className:"mb-2 font-light leading-none text-gray-900 dark:text-gray-300",children:"Load 15m"}),e("dd",{className:"mb-4 font-semibold text-gray-600 sm:mb-5 dark:text-white",children:L})]}),a("div",{children:[e("dt",{className:"mb-2 font-light leading-none text-gray-900 dark:text-gray-300",children:"Users"}),e("dd",{className:"mb-4 font-semibold text-gray-600 sm:mb-5 dark:text-white",children:P})]}),a("div",{children:[e("dt",{className:"mb-2 font-light leading-none text-gray-900 dark:text-gray-300",children:"Uptime"}),e("dd",{className:"mb-4 font-semibold text-gray-600 sm:mb-5 dark:text-white",children:E})]})]})})]})}function ne({serverId:t,servers:n}){const[r,d]=i.useState(!1),[h,o]=i.useState(null),[c,s]=i.useState("Ping another server"),f=g=>{d(!0),s("Pinging....."),p.get(route("run.ping-from-to",[t,g.target.id])).then(x=>{console.log("Ran ping"),Object.keys(x.data).length===0?o(""):o("AVG: "+x.data.avg+" MIN: "+x.data.min+" MAX: "+x.data.max),d(!1),s("Ping another server")}).catch(x=>{console.log("Error running ping"),d(!1),s("Ping another server")})};return a("div",{className:"grid md:grid-cols-2 grid-cols-1 mt-2",children:[e("div",{className:"col-span-2 md:col-span-1",children:e(k,{label:c,dismissOnClick:!1,disabled:r,className:"dark:bg-gray-500",size:"sm",children:n.map(g=>e(k.Item,{className:r?"hidden":null,children:a("a",{onClick:f,id:g.id,children:[g.hostname," (",g.title,")"]})},g.id))})}),e("div",{className:"col-span-2 md:col-span-1",children:e("code",{className:"text-red-500 dark:text-red-400",children:h})})]})}function ie({commands:t}){return e("dl",{children:e("dd",{className:"mb-2 font-light text-gray-600 sm:mb-5 dark:text-gray-300",children:t.map(n=>e("code",{className:"text-red-500 dark:text-red-400",children:e("p",{className:"mt-2",children:e("a",{href:route("outputs.show",n.id),children:n.the_command})})},n.id))})})}function we({auth:t}){const n=y().props.alert,r=y().props.resource,d=y().props.servers,[h,o]=b.useState(!1),c=()=>{const s={method:"DELETE",headers:{"X-CSRF-TOKEN":document.getElementsByName("csrf-token")[0].getAttribute("content")}};fetch(route("server.destroy",r.id),s).then(f=>{f.redirected&&(window.location.href=f.url)})};return a(F,{auth:t,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:r.title}),children:[e(j,{title:"Server "+r.hostname}),a("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(W,{href:route("server.index"),children:"Back to servers"})}),e(Y,{details:n}),e("section",{className:"bg-white/50 dark:bg-gray-700 rounded-lg shadow-sm",children:a("div",{className:"py-4 px-4 mx-auto max-w-7xl",children:[a("div",{className:"flex items-center justify-between mb-4",children:[a("div",{children:[r.operating_system!==null?e("span",{className:"bg-green-100 text-green-800 text-xs font-medium mr-2 px-2 py-0.5 rounded dark:bg-green-900 dark:text-green-300",children:r.operating_system}):null,e("span",{className:"bg-indigo-200 text-indigo-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-indigo-900 dark:text-indigo-300",children:r.type.name})]}),a("small",{className:"text-end",children:[e(z,{className:"mr-2 h-6 w-6 text-gray-600 dark:text-white hover:text-gray-700 hover:dark:text-gray-300 inline hover:cursor-pointer",onClick:()=>o(!0),title:"Delete server"}),(()=>{if(typeof r.conn<"u"&&r.conn!==null&&(typeof r.cpu_freq>"u"||r.cpu_freq===null))return e(Z,{className:"md:ml-2 ml-1 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer",onClick:s=>window.location.href=route("server.get-information",r.id),title:"Fetch server specs"})})(),e(K,{className:"md:ml-2 ml-1 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer",onClick:s=>window.location.href=route("server.edit",r.id),title:"Edit server"}),(()=>{if(typeof r.conn<"u"&&r.conn!==null)return e(X,{className:"md:ml-2 ml-1 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer",onClick:s=>window.location.href=route("connection.show",r.conn.id),title:"Go to connection"})})(),(()=>{if(typeof r.sftp_conn<"u"&&r.sftp_conn!==null)return e(V,{className:"md:ml-3 ml-2 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer",onClick:s=>window.location.href=route("sftp.show",r.sftp_conn.id),title:"Go to SFTP connection"})})(),e(ae,{resource:r})]})]}),a("div",{className:"grid md:grid-cols-2 grid-cols-1",children:[e("div",{className:"md:col-span-1 col-span-2",children:e(te,{resource:r})}),a("div",{className:"md:col-span-1 col-span-2",children:[e("p",{className:"mb-2 text-gray-700 dark:text-gray-300",children:r.cpu??null}),e(ee,{connection:r.conn})]})]}),a("div",{className:"grid md:grid-cols-2 grid-cols-1",children:[e("div",{className:"col-span-1",children:e($,{resource:r})}),e("div",{className:"col-span-1",children:(()=>{if(r.conn!==null&&r.conn.outputs_last3!==null&&r.conn.outputs_last3.length>0)return a(m,{children:[e("p",{className:"mb-2 text-gray-800 dark:text-gray-200",children:"Last 3 commands ran"}),e(ie,{commands:r.conn.outputs_last3})]})})()})]}),e(re,{serverId:r.id,usage:null,uptime:null}),(()=>{if(typeof r.conn<"u"&&r.conn!==null&&d.length>0)return e(ne,{serverId:r.id,servers:d})})(),a("div",{className:"grid md:grid-cols-2 grid-cols-1 mt-4",children:[e("div",{className:"col-span-1",children:e(J,{created_at:r.created_at,string_format:"hh:mm:ssa do LLL yyyy"})}),e("div",{className:"col-span-1",children:e(Q,{updated_at:r.updated_at,string_format:"hh:mm:ssa do LLL yyyy"})})]})]})})]}),e(N,{show:h,size:"md",children:e(N.Body,{children:a("div",{className:"text-center",children:[e("h3",{className:"mb-5 text-lg font-normal text-gray-500 dark:text-gray-400",children:"Are you sure you want to delete this server?"}),a("div",{className:"flex justify-center gap-4",children:[e(v,{color:"failure",onClick:c,children:"Yes, I'm sure"}),e(v,{onClick:()=>o(!1),color:"gray",children:"No, cancel"})]})]})})})]})}export{we as default}; diff --git a/public/build/assets/Show-d6b2f4bb.js b/public/build/assets/Show-21f6ec1c.js similarity index 87% rename from public/build/assets/Show-d6b2f4bb.js rename to public/build/assets/Show-21f6ec1c.js index 0db4793..611d6c0 100644 --- a/public/build/assets/Show-d6b2f4bb.js +++ b/public/build/assets/Show-21f6ec1c.js @@ -1 +1 @@ -import{A as x}from"./AuthenticatedLayout-b0ac98cc.js";import{u as i,r as g,j as t,a as e,H as y}from"./app-7082a047.js";import{M as o,B as d}from"./Toast-a9c7a83a.js";import"./Table-13305096.js";import{H as p,k as u}from"./index.esm-eebfcfab.js";import{R as f}from"./Alert-af0dbb46.js";import{C as N}from"./CreatedAtText-a1e22ba4.js";import{B as k}from"./BackButton-c0685269.js";import"./ApplicationLogo-db4f8950.js";import"./transition-eb04b526.js";import"./index-9b0dda6f.js";function T({auth:n}){const c=i().props.alert,r=i().props.resource,[m,s]=g.useState(!1),h=()=>{const a={method:"DELETE",headers:{"X-CSRF-TOKEN":document.getElementsByName("csrf-token")[0].getAttribute("content")}};fetch(route("key.destroy",r.id),a).then(l=>{l.redirected&&(window.location.href=l.url)})};return t(x,{auth:n,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Key "+r.original_name}),children:[e(y,{title:"Key "+r.id}),t("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(k,{href:route("key.index"),children:"Back to keys"})}),e(f,{details:c}),e("section",{className:"bg-white/50 dark:bg-gray-700 rounded-lg shadow-sm",children:t("div",{className:"py-4 px-4 mx-auto max-w-7xl",children:[t("div",{className:"flex items-center justify-between",children:[e("span",{className:"bg-indigo-100 text-indigo-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-indigo-900 dark:text-indigo-300",children:r.password===null?"No password":"Has password"}),t("small",{className:"text-sm text-gray-700",children:[e(p,{className:"mr-2 h-6 w-6 text-gray-600 dark:text-white hover:text-gray-700 hover:dark:text-gray-300 inline hover:cursor-pointer",onClick:()=>s(!0),title:"Delete key"}),e(u,{className:"md:ml-2 ml-1 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer",onClick:a=>window.location.href=route("key.download",r.id),title:"Download key"})]})]}),t("div",{className:"grid grid-cols-2",children:[t("div",{className:"md:col-span-1 col-span-2",children:[e("h2",{className:"mt-4 mb-2 text-xl font-bold leading-none text-gray-900 md:text-2xl dark:text-white",children:r.original_name}),e("p",{className:"mb-4 text-lg font-bold leading-none text-gray-600 md:text-lg dark:text-gray-400",children:r.file_id})]}),e("div",{className:"md:col-span-1 col-span-2 pl-4",children:(()=>r.conn.length>0?t("div",{className:"mt-2",children:[t("h2",{className:"text-md font-bold my-2 text-gray-800 md:text-lg dark:text-gray-200",children:["Servers using this key (",r.conn.length,")"]}),e("ul",{className:"list-disc",children:r.conn.map(a=>e("li",{className:"text-gray-800 dark:text-gray-300",children:t("a",{href:route("server.show",a.server.id),children:[a.server.hostname," (",a.server.title,")"]})},a.server.id))})]}):e("h2",{className:"text-md ml-2 my-4 font-semibold leading-none text-gray-800 md:text-lg dark:text-gray-300",children:"There are no servers in this group"}))()})]}),t("div",{className:"grid md:grid-cols-2 grid-cols-1",children:[e("div",{className:"col-span-1",children:e(N,{created_at:r.created_at,string_format:"hh:mm:ssa do LLL yyyy"})}),e("div",{className:"col-span-1"})]})]})})]}),e(o,{show:m,size:"md",children:e(o.Body,{children:t("div",{className:"text-center",children:[e("h3",{className:"mb-5 text-lg font-normal text-gray-500 dark:text-gray-400",children:"Are you sure you want to delete this Key?"}),t("div",{className:"flex justify-center gap-4",children:[e(d,{color:"failure",onClick:h,children:"Yes, I'm sure"}),e(d,{onClick:()=>s(!1),color:"gray",children:"No, cancel"})]})]})})})]})}export{T as default}; +import{A as x}from"./AuthenticatedLayout-c4be06bd.js";import{u as i,r as g,j as t,a as e,H as y}from"./app-a8d4275f.js";import{M as o,B as d}from"./Toast-ee00046f.js";import"./Table-f19b692a.js";import{H as p,k as u}from"./index.esm-2010c99b.js";import{R as f}from"./Alert-d503f44b.js";import{C as N}from"./CreatedAtText-a06948df.js";import{B as k}from"./BackButton-2b60c346.js";import"./ApplicationLogo-ae419612.js";import"./transition-fbe58e1e.js";import"./index-9b0dda6f.js";function T({auth:n}){const c=i().props.alert,r=i().props.resource,[m,s]=g.useState(!1),h=()=>{const a={method:"DELETE",headers:{"X-CSRF-TOKEN":document.getElementsByName("csrf-token")[0].getAttribute("content")}};fetch(route("key.destroy",r.id),a).then(l=>{l.redirected&&(window.location.href=l.url)})};return t(x,{auth:n,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Key "+r.original_name}),children:[e(y,{title:"Key "+r.id}),t("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(k,{href:route("key.index"),children:"Back to keys"})}),e(f,{details:c}),e("section",{className:"bg-white/50 dark:bg-gray-700 rounded-lg shadow-sm",children:t("div",{className:"py-4 px-4 mx-auto max-w-7xl",children:[t("div",{className:"flex items-center justify-between",children:[e("span",{className:"bg-indigo-100 text-indigo-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-indigo-900 dark:text-indigo-300",children:r.password===null?"No password":"Has password"}),t("small",{className:"text-sm text-gray-700",children:[e(p,{className:"mr-2 h-6 w-6 text-gray-600 dark:text-white hover:text-gray-700 hover:dark:text-gray-300 inline hover:cursor-pointer",onClick:()=>s(!0),title:"Delete key"}),e(u,{className:"md:ml-2 ml-1 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer",onClick:a=>window.location.href=route("key.download",r.id),title:"Download key"})]})]}),t("div",{className:"grid grid-cols-2",children:[t("div",{className:"md:col-span-1 col-span-2",children:[e("h2",{className:"mt-4 mb-2 text-xl font-bold leading-none text-gray-900 md:text-2xl dark:text-white",children:r.original_name}),e("p",{className:"mb-4 text-lg font-bold leading-none text-gray-600 md:text-lg dark:text-gray-400",children:r.file_id})]}),e("div",{className:"md:col-span-1 col-span-2 pl-4",children:(()=>r.conn.length>0?t("div",{className:"mt-2",children:[t("h2",{className:"text-md font-bold my-2 text-gray-800 md:text-lg dark:text-gray-200",children:["Servers using this key (",r.conn.length,")"]}),e("ul",{className:"list-disc",children:r.conn.map(a=>e("li",{className:"text-gray-800 dark:text-gray-300",children:t("a",{href:route("server.show",a.server.id),children:[a.server.hostname," (",a.server.title,")"]})},a.server.id))})]}):e("h2",{className:"text-md ml-2 my-4 font-semibold leading-none text-gray-800 md:text-lg dark:text-gray-300",children:"There are no servers in this group"}))()})]}),t("div",{className:"grid md:grid-cols-2 grid-cols-1",children:[e("div",{className:"col-span-1",children:e(N,{created_at:r.created_at,string_format:"hh:mm:ssa do LLL yyyy"})}),e("div",{className:"col-span-1"})]})]})})]}),e(o,{show:m,size:"md",children:e(o.Body,{children:t("div",{className:"text-center",children:[e("h3",{className:"mb-5 text-lg font-normal text-gray-500 dark:text-gray-400",children:"Are you sure you want to delete this Key?"}),t("div",{className:"flex justify-center gap-4",children:[e(d,{color:"failure",onClick:h,children:"Yes, I'm sure"}),e(d,{onClick:()=>s(!1),color:"gray",children:"No, cancel"})]})]})})})]})}export{T as default}; diff --git a/public/build/assets/Show-54a97050.js b/public/build/assets/Show-2beff3b5.js similarity index 70% rename from public/build/assets/Show-54a97050.js rename to public/build/assets/Show-2beff3b5.js index 570c377..1d384f0 100644 --- a/public/build/assets/Show-54a97050.js +++ b/public/build/assets/Show-2beff3b5.js @@ -1 +1 @@ -import{A as s}from"./AuthenticatedLayout-b0ac98cc.js";import{u as o,j as r,a as t,H as i}from"./app-7082a047.js";import"./Toast-a9c7a83a.js";import"./Table-13305096.js";import{e as m}from"./index.esm-eebfcfab.js";import{C as d}from"./Card-4b32b85d.js";import{O as l}from"./Output-dd9f99a9.js";import"./ApplicationLogo-db4f8950.js";import"./transition-eb04b526.js";import"./index-9b0dda6f.js";function y({auth:a}){const e=o().props.resource;return r(s,{auth:a,header:t("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Command "+e.id}),children:[t(i,{title:"Command "+e.id}),r("div",{className:"py-6 px-2 mx-auto max-w-7xl lg:py-8",children:[t("div",{className:"flex flex-wrap gap-2 mb-4"}),t("div",{className:"grid gap-2 grid-cols-1 sm:gap-4",children:r(d,{className:"dark:bg-gray-700",children:[t("div",{className:"flex items-center justify-between",children:t("small",{className:"text-end",children:t(m,{className:"md:ml-3 ml-2 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer",onClick:n=>window.location.href=route("server.show",e.server.id),title:"Go to server"})})}),t(l,{title:e.server.hostname,the_command:e.the_command,created_at:e.created_at,the_output:e.output,seconds:e.seconds_taken,rows:22})]})})]})]})}export{y as default}; +import{A as s}from"./AuthenticatedLayout-c4be06bd.js";import{u as o,j as r,a as t,H as i}from"./app-a8d4275f.js";import"./Toast-ee00046f.js";import"./Table-f19b692a.js";import{e as m}from"./index.esm-2010c99b.js";import{C as d}from"./Card-0ddd50a2.js";import{O as l}from"./Output-2c144da2.js";import"./ApplicationLogo-ae419612.js";import"./transition-fbe58e1e.js";import"./index-9b0dda6f.js";function y({auth:a}){const e=o().props.resource;return r(s,{auth:a,header:t("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Command "+e.id}),children:[t(i,{title:"Command "+e.id}),r("div",{className:"py-6 px-2 mx-auto max-w-7xl lg:py-8",children:[t("div",{className:"flex flex-wrap gap-2 mb-4"}),t("div",{className:"grid gap-2 grid-cols-1 sm:gap-4",children:r(d,{className:"dark:bg-gray-700",children:[t("div",{className:"flex items-center justify-between",children:t("small",{className:"text-end",children:t(m,{className:"md:ml-3 ml-2 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer",onClick:n=>window.location.href=route("server.show",e.server.id),title:"Go to server"})})}),t(l,{title:e.server.hostname,the_command:e.the_command,created_at:e.created_at,the_output:e.output,seconds:e.seconds_taken,rows:22})]})})]})]})}export{y as default}; diff --git a/public/build/assets/Show-9ca211b4.js b/public/build/assets/Show-5033bd43.js similarity index 89% rename from public/build/assets/Show-9ca211b4.js rename to public/build/assets/Show-5033bd43.js index 8839de8..cf4026c 100644 --- a/public/build/assets/Show-9ca211b4.js +++ b/public/build/assets/Show-5033bd43.js @@ -1 +1 @@ -import{A as H}from"./AuthenticatedLayout-b0ac98cc.js";import{u as s,r as i,b as M,j as a,a as e,H as P,c as F}from"./app-7082a047.js";import{S as L,M as v,B as y}from"./Toast-a9c7a83a.js";import"./Table-13305096.js";import{H as K,a as X,e as q,f as z}from"./index.esm-eebfcfab.js";import{I as d}from"./InputLabel-04829bce.js";import{T as w,I as h}from"./TextInput-38986df9.js";import{P as G}from"./PrimaryButton-aae876dd.js";import{O as J}from"./Output-dd9f99a9.js";import{R as Q}from"./Alert-af0dbb46.js";import{B as V}from"./BackButton-c0685269.js";import"./ApplicationLogo-db4f8950.js";import"./transition-eb04b526.js";import"./index-9b0dda6f.js";function de({auth:N}){const k=s().props.alert,o=s().props.resource,b=s().props.method,_=s().props.ip,C=s().props.commands,[p,I]=i.useState(!1),[E,g]=i.useState(0),[m,x]=i.useState(!1),S=t=>{I(t.target.checked),n.email=t.target.checked},{data:n,setData:c,post:Y,processing:B,reset:U,errors:u}=M({the_command1:"",command_id:"",timeout:"10",email:""});i.useEffect(()=>{let t;return m?t=setInterval(()=>{g(r=>r+10)},10):m||clearInterval(t),()=>clearInterval(t)},[m]);const[T,f]=i.useState(!1);async function R(){g(0),x(!0);const t=await fetch(route("connection.run",o.id),{method:"POST",headers:{"X-CSRF-TOKEN":document.getElementsByName("csrf-token")[0].getAttribute("content"),"Content-Type":"application/json",Accept:"*/*"},body:JSON.stringify({the_command1:n.the_command1,command_id:n.command_id||null,timeout:n.timeout||10,email:n.email||!1})});return x(!1),t.json()}const O=t=>{t.preventDefault();const r=document.getElementById("command_output_div"),A=F.createRoot(r);R().then(l=>{const D=e(J,{id:"commandOutput",title:null,the_command:l.the_command,created_at:new Date,the_output:l.output??l.message,seconds:l.seconds_taken,rows:10});A.render(D),c("command_id","")})},j=()=>{const t={method:"DELETE",headers:{"X-CSRF-TOKEN":document.getElementsByName("csrf-token")[0].getAttribute("content")}};fetch(route("connection.destroy",o.id),t).then(r=>{r.redirected&&(window.location.href=r.url)})};return a(H,{auth:N,header:a("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:[o.username,"@",_,":",o.ssh_port," (",o.server.hostname,") with a ",b.string]}),children:[e(P,{title:"Connection "+o.id}),a("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(V,{href:route("connection.index"),children:"Back to connections"})}),e(Q,{details:k}),e("section",{className:"bg-white/50 dark:bg-gray-700 rounded-lg shadow-sm",children:a("div",{className:"py-4 px-4 mx-auto max-w-7xl",children:[a("div",{className:"flex items-center justify-between mb-4",children:[e("h1",{className:"text-2xl font-bold text-gray-800 dark:text-white",children:"Run command"}),a("small",{className:"text-end",children:[e(K,{className:"mr-2 h-6 w-6 text-gray-600 dark:text-white hover:text-gray-700 hover:dark:text-gray-300 inline hover:cursor-pointer",onClick:()=>f(!0),title:"Delete connection"}),e(X,{className:"md:ml-2 ml-1 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer",onClick:t=>window.location.href=route("connection.edit",o.id),title:"Edit connection"}),e(q,{className:"md:ml-3 ml-2 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer",onClick:t=>window.location.href=route("server.show",o.server.id),title:"Go to server"}),e(z,{className:"md:ml-3 ml-2 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer",onClick:t=>window.location.href=route("connection.debug",o.id),title:"Debug connection"})]})]}),a("form",{onSubmit:O,children:[a("div",{className:"grid gap-2 sm:grid-cols-1 md:grid-cols-4 sm:gap-4",children:[a("div",{className:"sm:col-span-4 col-span-4",children:[e(d,{forInput:"the_command1",value:"Command"}),e(w,{handleChange:t=>c("the_command1",t.target.value),name:"the_command1",value:n.the_command1,className:"mt-1 block w-full",autoComplete:"the_command1",maxLength:64}),e(h,{message:u.the_command1,className:"mt-2"})]}),a("div",{className:"sm:col-span-2 col-span-4",children:[e("div",{className:"mb-2 block",children:e(d,{forInput:"command_id",value:"From commands"})}),a(L,{onChange:t=>c("command_id",t.target.value),name:"command_id",value:n.command_id,children:[e("option",{value:"",children:"Choose"}),C.map(t=>e("option",{value:t.id,children:t.title},t.id))]})]}),a("div",{className:"sm:col-span-1 col-span-4",children:[e(d,{forInput:"timeout",value:"Timeout"}),e(w,{type:"number",name:"timeout",className:"mt-1 block w-full",autoComplete:"timeout",value:n.timeout,handleChange:t=>c("timeout",t.target.value),min:1,max:999999}),e(h,{message:u.timeout,className:"mt-2"})]}),a("div",{className:"sm:col-span-1 col-span-4",children:[e(d,{forInput:"email",value:"Send output to email"}),e("input",{type:"checkbox",name:"email",value:p?1:0,onChange:S,checked:p}),e(h,{message:u.email,className:"mt-2"})]})]}),e(G,{className:"inline-flex items-center px-5 py-2.5 mt-4 sm:mt-6 text-sm font-medium text-center text-white bg-primary-700 rounded-lg focus:ring-4 focus:ring-primary-200 dark:focus:ring-primary-900",processing:B,children:"Run"})]})]})}),a("section",{className:"bg-white/50 dark:bg-gray-700 rounded-lg mt-4",children:[e("h1",{className:"text-2xl font-bold text-gray-800 dark:text-white pl-4 pt-2",children:"Command output"}),e("p",{className:"pl-4 text-gray-700 dark:text-gray-300",children:e("a",{href:route("outputs.show.server",o.server.id),children:"View all"})}),e("div",{className:"pt-2 px-4 mx-auto max-w-7xl",children:m?a("p",{className:"text-gray-600 dark:text-gray-300 mb-2",children:[e("code",{className:"text-red-500 bg-gray-300 dark:bg-black p-1 rounded-md my-2",children:n.the_command1??null})," ",E/1e3%60,"s"]}):null}),e("div",{className:"py-4 px-4 mx-auto max-w-7xl",id:"command_output_div",children:e("span",{className:"text-gray-400 dark:text-gray-500",children:"No output yet"})})]})]}),e(v,{show:T,size:"md",children:e(v.Body,{children:a("div",{className:"text-center",children:[e("h3",{className:"mb-5 text-lg font-normal text-gray-500 dark:text-gray-400",children:"Are you sure you want to delete this Connection?"}),a("div",{className:"flex justify-center gap-4",children:[e(y,{color:"failure",onClick:j,children:"Yes, I'm sure"}),e(y,{onClick:()=>f(!1),color:"gray",children:"No, cancel"})]})]})})})]})}export{de as default}; +import{A as H}from"./AuthenticatedLayout-c4be06bd.js";import{u as s,r as i,b as M,j as a,a as e,H as P,c as F}from"./app-a8d4275f.js";import{S as L,M as v,B as y}from"./Toast-ee00046f.js";import"./Table-f19b692a.js";import{H as K,a as X,e as q,f as z}from"./index.esm-2010c99b.js";import{I as d}from"./InputLabel-a7ee92ff.js";import{T as w,I as h}from"./TextInput-1e9aadbd.js";import{P as G}from"./PrimaryButton-19cc4f5a.js";import{O as J}from"./Output-2c144da2.js";import{R as Q}from"./Alert-d503f44b.js";import{B as V}from"./BackButton-2b60c346.js";import"./ApplicationLogo-ae419612.js";import"./transition-fbe58e1e.js";import"./index-9b0dda6f.js";function de({auth:N}){const k=s().props.alert,o=s().props.resource,b=s().props.method,_=s().props.ip,C=s().props.commands,[p,I]=i.useState(!1),[E,g]=i.useState(0),[m,x]=i.useState(!1),S=t=>{I(t.target.checked),n.email=t.target.checked},{data:n,setData:c,post:Y,processing:B,reset:U,errors:u}=M({the_command1:"",command_id:"",timeout:"10",email:""});i.useEffect(()=>{let t;return m?t=setInterval(()=>{g(r=>r+10)},10):m||clearInterval(t),()=>clearInterval(t)},[m]);const[T,f]=i.useState(!1);async function R(){g(0),x(!0);const t=await fetch(route("connection.run",o.id),{method:"POST",headers:{"X-CSRF-TOKEN":document.getElementsByName("csrf-token")[0].getAttribute("content"),"Content-Type":"application/json",Accept:"*/*"},body:JSON.stringify({the_command1:n.the_command1,command_id:n.command_id||null,timeout:n.timeout||10,email:n.email||!1})});return x(!1),t.json()}const O=t=>{t.preventDefault();const r=document.getElementById("command_output_div"),A=F.createRoot(r);R().then(l=>{const D=e(J,{id:"commandOutput",title:null,the_command:l.the_command,created_at:new Date,the_output:l.output??l.message,seconds:l.seconds_taken,rows:10});A.render(D),c("command_id","")})},j=()=>{const t={method:"DELETE",headers:{"X-CSRF-TOKEN":document.getElementsByName("csrf-token")[0].getAttribute("content")}};fetch(route("connection.destroy",o.id),t).then(r=>{r.redirected&&(window.location.href=r.url)})};return a(H,{auth:N,header:a("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:[o.username,"@",_,":",o.ssh_port," (",o.server.hostname,") with a ",b.string]}),children:[e(P,{title:"Connection "+o.id}),a("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(V,{href:route("connection.index"),children:"Back to connections"})}),e(Q,{details:k}),e("section",{className:"bg-white/50 dark:bg-gray-700 rounded-lg shadow-sm",children:a("div",{className:"py-4 px-4 mx-auto max-w-7xl",children:[a("div",{className:"flex items-center justify-between mb-4",children:[e("h1",{className:"text-2xl font-bold text-gray-800 dark:text-white",children:"Run command"}),a("small",{className:"text-end",children:[e(K,{className:"mr-2 h-6 w-6 text-gray-600 dark:text-white hover:text-gray-700 hover:dark:text-gray-300 inline hover:cursor-pointer",onClick:()=>f(!0),title:"Delete connection"}),e(X,{className:"md:ml-2 ml-1 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer",onClick:t=>window.location.href=route("connection.edit",o.id),title:"Edit connection"}),e(q,{className:"md:ml-3 ml-2 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer",onClick:t=>window.location.href=route("server.show",o.server.id),title:"Go to server"}),e(z,{className:"md:ml-3 ml-2 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer",onClick:t=>window.location.href=route("connection.debug",o.id),title:"Debug connection"})]})]}),a("form",{onSubmit:O,children:[a("div",{className:"grid gap-2 sm:grid-cols-1 md:grid-cols-4 sm:gap-4",children:[a("div",{className:"sm:col-span-4 col-span-4",children:[e(d,{forInput:"the_command1",value:"Command"}),e(w,{handleChange:t=>c("the_command1",t.target.value),name:"the_command1",value:n.the_command1,className:"mt-1 block w-full",autoComplete:"the_command1",maxLength:64}),e(h,{message:u.the_command1,className:"mt-2"})]}),a("div",{className:"sm:col-span-2 col-span-4",children:[e("div",{className:"mb-2 block",children:e(d,{forInput:"command_id",value:"From commands"})}),a(L,{onChange:t=>c("command_id",t.target.value),name:"command_id",value:n.command_id,children:[e("option",{value:"",children:"Choose"}),C.map(t=>e("option",{value:t.id,children:t.title},t.id))]})]}),a("div",{className:"sm:col-span-1 col-span-4",children:[e(d,{forInput:"timeout",value:"Timeout"}),e(w,{type:"number",name:"timeout",className:"mt-1 block w-full",autoComplete:"timeout",value:n.timeout,handleChange:t=>c("timeout",t.target.value),min:1,max:999999}),e(h,{message:u.timeout,className:"mt-2"})]}),a("div",{className:"sm:col-span-1 col-span-4",children:[e(d,{forInput:"email",value:"Send output to email"}),e("input",{type:"checkbox",name:"email",value:p?1:0,onChange:S,checked:p}),e(h,{message:u.email,className:"mt-2"})]})]}),e(G,{className:"inline-flex items-center px-5 py-2.5 mt-4 sm:mt-6 text-sm font-medium text-center text-white bg-primary-700 rounded-lg focus:ring-4 focus:ring-primary-200 dark:focus:ring-primary-900",processing:B,children:"Run"})]})]})}),a("section",{className:"bg-white/50 dark:bg-gray-700 rounded-lg mt-4",children:[e("h1",{className:"text-2xl font-bold text-gray-800 dark:text-white pl-4 pt-2",children:"Command output"}),e("p",{className:"pl-4 text-gray-700 dark:text-gray-300",children:e("a",{href:route("outputs.show.server",o.server.id),children:"View all"})}),e("div",{className:"pt-2 px-4 mx-auto max-w-7xl",children:m?a("p",{className:"text-gray-600 dark:text-gray-300 mb-2",children:[e("code",{className:"text-red-500 bg-gray-300 dark:bg-black p-1 rounded-md my-2",children:n.the_command1??null})," ",E/1e3%60,"s"]}):null}),e("div",{className:"py-4 px-4 mx-auto max-w-7xl",id:"command_output_div",children:e("span",{className:"text-gray-400 dark:text-gray-500",children:"No output yet"})})]})]}),e(v,{show:T,size:"md",children:e(v.Body,{children:a("div",{className:"text-center",children:[e("h3",{className:"mb-5 text-lg font-normal text-gray-500 dark:text-gray-400",children:"Are you sure you want to delete this Connection?"}),a("div",{className:"flex justify-center gap-4",children:[e(y,{color:"failure",onClick:j,children:"Yes, I'm sure"}),e(y,{onClick:()=>f(!1),color:"gray",children:"No, cancel"})]})]})})})]})}export{de as default}; diff --git a/public/build/assets/Show-329ea5f0.js b/public/build/assets/Show-6bb0ca92.js similarity index 84% rename from public/build/assets/Show-329ea5f0.js rename to public/build/assets/Show-6bb0ca92.js index 7915bc6..abd3ad1 100644 --- a/public/build/assets/Show-329ea5f0.js +++ b/public/build/assets/Show-6bb0ca92.js @@ -1 +1 @@ -import{A as d}from"./AuthenticatedLayout-b0ac98cc.js";import{u as l,j as a,a as e,H as n}from"./app-7082a047.js";import{C as s}from"./CreatedAtText-a1e22ba4.js";import{B as i}from"./BackButton-c0685269.js";import"./ApplicationLogo-db4f8950.js";import"./transition-eb04b526.js";import"./index-9b0dda6f.js";import"./index.esm-eebfcfab.js";function u({auth:r}){const t=l().props.resource;return a(d,{auth:r,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Log #"+t.id}),children:[e(n,{title:"Log #"+t.id}),a("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(i,{href:route("log.index"),children:"All logs"})}),e("section",{className:"bg-white/50 dark:bg-gray-700 rounded-lg shadow-sm",children:e("div",{className:"py-6 px-2 mx-auto max-w-6xl lg:py-10",children:a("div",{className:"grid grid-cols-2",children:[a("div",{className:"md:col-span-2 col-span-2",children:[e("span",{className:"bg-indigo-200 text-indigo-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-indigo-900 dark:text-indigo-300",children:t.action}),e("h2",{className:"mt-4 mb-2 text-xl font-bold leading-none text-gray-900 md:text-2xl dark:text-white",children:t.resource_type}),e("p",{className:"mb-4 text-md font-bold leading-none text-gray-800 md:text-lg dark:text-gray-300",children:t.message}),e(s,{created_at:t.created_at,string_format:"hh:mm:ssa do LLL yyyy",pre_text:"When: "})]}),a("div",{className:"md:col-span-1 col-span-2 pl-4",children:[(()=>{if(t.server_id!==null)return e("div",{className:"mt-2",children:a("h2",{className:"text-md font-bold my-2 text-gray-800 md:text-lg dark:text-gray-200",children:[e("span",{className:"text-gray-600 dark:text-gray-400",children:"Server:"})," ",t.server.hostname," ",t.server.title]})})})(),(()=>{if(t.connection_id!==null)return e("div",{className:"mt-2",children:a("h2",{className:"text-md font-bold my-2 text-gray-800 md:text-lg dark:text-gray-200",children:[e("span",{className:"text-gray-600 dark:text-gray-400",children:"Connection:"})," ",t.connection.username," with ",t.connection.key_id===null?"Password":"Key"]})})})(),(()=>{if(t.command_id!==null)return e("div",{className:"mt-2",children:a("h2",{className:"text-md font-bold my-2 text-gray-800 md:text-lg dark:text-gray-200",children:[e("span",{className:"text-gray-600 dark:text-gray-400",children:"Command:"})," ",t.command.command]})})})()]})]})})})]})]})}export{u as default}; +import{A as d}from"./AuthenticatedLayout-c4be06bd.js";import{u as l,j as a,a as e,H as n}from"./app-a8d4275f.js";import{C as s}from"./CreatedAtText-a06948df.js";import{B as i}from"./BackButton-2b60c346.js";import"./ApplicationLogo-ae419612.js";import"./transition-fbe58e1e.js";import"./index-9b0dda6f.js";import"./index.esm-2010c99b.js";function u({auth:r}){const t=l().props.resource;return a(d,{auth:r,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Log #"+t.id}),children:[e(n,{title:"Log #"+t.id}),a("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(i,{href:route("log.index"),children:"All logs"})}),e("section",{className:"bg-white/50 dark:bg-gray-700 rounded-lg shadow-sm",children:e("div",{className:"py-6 px-2 mx-auto max-w-6xl lg:py-10",children:a("div",{className:"grid grid-cols-2",children:[a("div",{className:"md:col-span-2 col-span-2",children:[e("span",{className:"bg-indigo-200 text-indigo-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-indigo-900 dark:text-indigo-300",children:t.action}),e("h2",{className:"mt-4 mb-2 text-xl font-bold leading-none text-gray-900 md:text-2xl dark:text-white",children:t.resource_type}),e("p",{className:"mb-4 text-md font-bold leading-none text-gray-800 md:text-lg dark:text-gray-300",children:t.message}),e(s,{created_at:t.created_at,string_format:"hh:mm:ssa do LLL yyyy",pre_text:"When: "})]}),a("div",{className:"md:col-span-1 col-span-2 pl-4",children:[(()=>{if(t.server_id!==null)return e("div",{className:"mt-2",children:a("h2",{className:"text-md font-bold my-2 text-gray-800 md:text-lg dark:text-gray-200",children:[e("span",{className:"text-gray-600 dark:text-gray-400",children:"Server:"})," ",t.server.hostname," ",t.server.title]})})})(),(()=>{if(t.connection_id!==null)return e("div",{className:"mt-2",children:a("h2",{className:"text-md font-bold my-2 text-gray-800 md:text-lg dark:text-gray-200",children:[e("span",{className:"text-gray-600 dark:text-gray-400",children:"Connection:"})," ",t.connection.username," with ",t.connection.key_id===null?"Password":"Key"]})})})(),(()=>{if(t.command_id!==null)return e("div",{className:"mt-2",children:a("h2",{className:"text-md font-bold my-2 text-gray-800 md:text-lg dark:text-gray-200",children:[e("span",{className:"text-gray-600 dark:text-gray-400",children:"Command:"})," ",t.command.command]})})})()]})]})})})]})]})}export{u as default}; diff --git a/public/build/assets/Show-988870be.js b/public/build/assets/Show-7af75fb9.js similarity index 88% rename from public/build/assets/Show-988870be.js rename to public/build/assets/Show-7af75fb9.js index a09a376..955be1c 100644 --- a/public/build/assets/Show-988870be.js +++ b/public/build/assets/Show-7af75fb9.js @@ -1 +1 @@ -import{A as x}from"./AuthenticatedLayout-b0ac98cc.js";import{u as s,r as g,j as a,a as e,H as p}from"./app-7082a047.js";import{M as l,B as o}from"./Toast-a9c7a83a.js";import"./Table-13305096.js";import{H as y,a as f,e as u,z as N}from"./index.esm-eebfcfab.js";import{R as b}from"./Alert-af0dbb46.js";import{C as v}from"./CreatedAtText-a1e22ba4.js";import{U as w}from"./UpdatedAtText-1126b185.js";import{B as k}from"./BackButton-c0685269.js";import"./ApplicationLogo-db4f8950.js";import"./transition-eb04b526.js";import"./index-9b0dda6f.js";function S({auth:n}){const c=s().props.alert,t=s().props.resource,[m,i]=g.useState(!1),h=()=>{const r={method:"DELETE",headers:{"X-CSRF-TOKEN":document.getElementsByName("csrf-token")[0].getAttribute("content")}};fetch(route("ip.destroy",t.id),r).then(d=>{d.redirected&&(window.location.href=d.url)})};return a(x,{auth:n,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"IP "+t.ip}),children:[e(p,{title:"IP "+t.ip}),a("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(k,{href:route("ip.index"),children:"Back to IPs"})}),e(b,{details:c}),e("section",{className:"bg-white/50 dark:bg-gray-700 rounded-lg shadow-sm",children:a("div",{className:"py-4 px-4 mx-auto max-w-7xl",children:[a("div",{className:"flex items-center justify-between",children:[e("span",{className:"bg-indigo-100 text-indigo-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-indigo-900 dark:text-indigo-300",children:t.is_ipv4===1?"IPv4":"IPv6"}),a("small",{className:"text-end",children:[e(y,{className:"mr-2 h-6 w-6 text-gray-600 dark:text-white hover:text-gray-700 hover:dark:text-gray-300 inline hover:cursor-pointer",onClick:()=>i(!0),title:"Delete IP address"}),e(f,{className:"md:ml-2 ml-1 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer",onClick:r=>window.location.href=route("ip.edit",t.id),title:"Edit IP address"}),e(u,{className:"md:ml-3 ml-2 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer",onClick:r=>window.location.href=route("server.show",t.server.id),title:"Go to server"})]})]}),a("div",{className:"grid md:grid-cols-2 grid-cols-1",children:[a("div",{className:"md:col-span-1 col-span-2",children:[a("h2",{className:"mt-4 mb-2 text-xl font-bold leading-none text-gray-900 md:text-2xl dark:text-white",children:[t.ip," ",e(N,{className:"mr-4 mb-1 h-5 w-5 inline hover:cursor-grab text-gray-500 dark:text-gray-300",onClick:()=>{navigator.clipboard.writeText(t.ip)},title:"Copy IP"})]}),a("p",{className:"mb-4 text-xl font-bold leading-none text-gray-800 md:text-2xl dark:text-gray-300",children:[t.server.hostname," (",t.server.title,")"]}),a("p",{className:"mb-4 text-lg font-bold leading-none text-gray-700 md:text-xl dark:text-gray-300",children:[t.asn," ",t.org]})]}),e("div",{className:"md:col-span-1 col-span-2 md:mt-4",children:a("dl",{className:"flex space-x-2 sm:space-x-10",children:[a("div",{children:[e("dt",{className:"mb-2 font-semibold leading-none text-gray-900 dark:text-white",children:"Country"}),e("dd",{className:"mb-4 font-light text-gray-500 sm:mb-5 dark:text-gray-400",children:t.country})]}),a("div",{children:[e("dt",{className:"mb-2 font-semibold leading-none text-gray-900 dark:text-white",children:"City"}),e("dd",{className:"mb-4 font-light text-gray-500 sm:mb-5 dark:text-gray-400",children:t.city})]}),a("div",{children:[e("dt",{className:"mb-2 font-semibold leading-none text-gray-900 dark:text-white",children:"Continent"}),e("dd",{className:"mb-4 font-light text-gray-500 sm:mb-5 dark:text-gray-400",children:t.continent})]}),a("div",{children:[e("dt",{className:"mb-2 font-semibold leading-none text-gray-900 dark:text-white",children:"GMT"}),e("dd",{className:"mb-4 font-light text-gray-500 sm:mb-5 dark:text-gray-400",children:t.timezone_gmt})]})]})})]}),a("div",{className:"grid md:grid-cols-2 grid-cols-1",children:[e("div",{className:"col-span-1",children:e(v,{created_at:t.created_at,string_format:"hh:mm:ssa do LLL yyyy"})}),e("div",{className:"col-span-1",children:e(w,{updated_at:t.updated_at,string_format:"hh:mm:ssa do LLL yyyy"})})]})]})})]}),e(l,{show:m,size:"md",children:e(l.Body,{children:a("div",{className:"text-center",children:[e("h3",{className:"mb-5 text-lg font-normal text-gray-500 dark:text-gray-400",children:"Are you sure you want to delete this IP address?"}),a("div",{className:"flex justify-center gap-4",children:[e(o,{color:"failure",onClick:h,children:"Yes, I'm sure"}),e(o,{onClick:()=>i(!1),color:"gray",children:"No, cancel"})]})]})})})]})}export{S as default}; +import{A as x}from"./AuthenticatedLayout-c4be06bd.js";import{u as s,r as g,j as a,a as e,H as p}from"./app-a8d4275f.js";import{M as l,B as o}from"./Toast-ee00046f.js";import"./Table-f19b692a.js";import{H as y,a as f,e as u,z as N}from"./index.esm-2010c99b.js";import{R as b}from"./Alert-d503f44b.js";import{C as v}from"./CreatedAtText-a06948df.js";import{U as w}from"./UpdatedAtText-9a96553e.js";import{B as k}from"./BackButton-2b60c346.js";import"./ApplicationLogo-ae419612.js";import"./transition-fbe58e1e.js";import"./index-9b0dda6f.js";function S({auth:n}){const c=s().props.alert,t=s().props.resource,[m,i]=g.useState(!1),h=()=>{const r={method:"DELETE",headers:{"X-CSRF-TOKEN":document.getElementsByName("csrf-token")[0].getAttribute("content")}};fetch(route("ip.destroy",t.id),r).then(d=>{d.redirected&&(window.location.href=d.url)})};return a(x,{auth:n,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"IP "+t.ip}),children:[e(p,{title:"IP "+t.ip}),a("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(k,{href:route("ip.index"),children:"Back to IPs"})}),e(b,{details:c}),e("section",{className:"bg-white/50 dark:bg-gray-700 rounded-lg shadow-sm",children:a("div",{className:"py-4 px-4 mx-auto max-w-7xl",children:[a("div",{className:"flex items-center justify-between",children:[e("span",{className:"bg-indigo-100 text-indigo-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-indigo-900 dark:text-indigo-300",children:t.is_ipv4===1?"IPv4":"IPv6"}),a("small",{className:"text-end",children:[e(y,{className:"mr-2 h-6 w-6 text-gray-600 dark:text-white hover:text-gray-700 hover:dark:text-gray-300 inline hover:cursor-pointer",onClick:()=>i(!0),title:"Delete IP address"}),e(f,{className:"md:ml-2 ml-1 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer",onClick:r=>window.location.href=route("ip.edit",t.id),title:"Edit IP address"}),e(u,{className:"md:ml-3 ml-2 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer",onClick:r=>window.location.href=route("server.show",t.server.id),title:"Go to server"})]})]}),a("div",{className:"grid md:grid-cols-2 grid-cols-1",children:[a("div",{className:"md:col-span-1 col-span-2",children:[a("h2",{className:"mt-4 mb-2 text-xl font-bold leading-none text-gray-900 md:text-2xl dark:text-white",children:[t.ip," ",e(N,{className:"mr-4 mb-1 h-5 w-5 inline hover:cursor-grab text-gray-500 dark:text-gray-300",onClick:()=>{navigator.clipboard.writeText(t.ip)},title:"Copy IP"})]}),a("p",{className:"mb-4 text-xl font-bold leading-none text-gray-800 md:text-2xl dark:text-gray-300",children:[t.server.hostname," (",t.server.title,")"]}),a("p",{className:"mb-4 text-lg font-bold leading-none text-gray-700 md:text-xl dark:text-gray-300",children:[t.asn," ",t.org]})]}),e("div",{className:"md:col-span-1 col-span-2 md:mt-4",children:a("dl",{className:"flex space-x-2 sm:space-x-10",children:[a("div",{children:[e("dt",{className:"mb-2 font-semibold leading-none text-gray-900 dark:text-white",children:"Country"}),e("dd",{className:"mb-4 font-light text-gray-500 sm:mb-5 dark:text-gray-400",children:t.country})]}),a("div",{children:[e("dt",{className:"mb-2 font-semibold leading-none text-gray-900 dark:text-white",children:"City"}),e("dd",{className:"mb-4 font-light text-gray-500 sm:mb-5 dark:text-gray-400",children:t.city})]}),a("div",{children:[e("dt",{className:"mb-2 font-semibold leading-none text-gray-900 dark:text-white",children:"Continent"}),e("dd",{className:"mb-4 font-light text-gray-500 sm:mb-5 dark:text-gray-400",children:t.continent})]}),a("div",{children:[e("dt",{className:"mb-2 font-semibold leading-none text-gray-900 dark:text-white",children:"GMT"}),e("dd",{className:"mb-4 font-light text-gray-500 sm:mb-5 dark:text-gray-400",children:t.timezone_gmt})]})]})})]}),a("div",{className:"grid md:grid-cols-2 grid-cols-1",children:[e("div",{className:"col-span-1",children:e(v,{created_at:t.created_at,string_format:"hh:mm:ssa do LLL yyyy"})}),e("div",{className:"col-span-1",children:e(w,{updated_at:t.updated_at,string_format:"hh:mm:ssa do LLL yyyy"})})]})]})})]}),e(l,{show:m,size:"md",children:e(l.Body,{children:a("div",{className:"text-center",children:[e("h3",{className:"mb-5 text-lg font-normal text-gray-500 dark:text-gray-400",children:"Are you sure you want to delete this IP address?"}),a("div",{className:"flex justify-center gap-4",children:[e(o,{color:"failure",onClick:h,children:"Yes, I'm sure"}),e(o,{onClick:()=>i(!1),color:"gray",children:"No, cancel"})]})]})})})]})}export{S as default}; diff --git a/public/build/assets/Show-47dee60a.js b/public/build/assets/Show-9ce9bf3a.js similarity index 86% rename from public/build/assets/Show-47dee60a.js rename to public/build/assets/Show-9ce9bf3a.js index a349911..01853a8 100644 --- a/public/build/assets/Show-47dee60a.js +++ b/public/build/assets/Show-9ce9bf3a.js @@ -1 +1 @@ -import{A as p}from"./AuthenticatedLayout-b0ac98cc.js";import{r as i,a as e,F as f,u as h,j as r,H as y}from"./app-7082a047.js";import{M as x,B as u}from"./Toast-a9c7a83a.js";import"./Table-13305096.js";import{h as w,H as k,a as b,i as v}from"./index.esm-eebfcfab.js";import{R as N}from"./Alert-af0dbb46.js";import{a as g}from"./axios-4a70c6fc.js";import{B}from"./BackButton-c0685269.js";import{C}from"./CreatedAtText-a1e22ba4.js";import{U as L}from"./UpdatedAtText-1126b185.js";import"./ApplicationLogo-db4f8950.js";import"./transition-eb04b526.js";import"./index-9b0dda6f.js";function S({resource:s}){const[n,t]=i.useState(null),[l,d]=i.useState("Check if can connect"),c=()=>{g.get(route("db.connection.connect",s.id)).then(a=>{t(a.data.result)}).catch(a=>{t(!n)})};return e(f,{children:e(w,{className:(()=>n?"md:ml-3 ml-2 h-6 w-6 text-green-500 dark:text-green-400 inline hover:cursor-pointer":n===null?"md:ml-3 ml-2 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer":"md:ml-3 ml-2 h-6 w-6 text-red-500 dark:text-red-400 inline hover:cursor-pointer")(),onClick:c,title:l})})}function P({auth:s}){const n=h().props.alert,t=h().props.resource,[l,d]=i.useState(!1);i.useState(null);const c=()=>{const o={method:"DELETE",headers:{"X-CSRF-TOKEN":document.getElementsByName("csrf-token")[0].getAttribute("content")}};fetch(route("db.connection.destroy",t.id),o).then(m=>{m.redirected&&(window.location.href=m.url)})},a=()=>{g.get(route("db.connection.version",t.id)).then(o=>{window.location.reload()}).catch(o=>{console.log("Error getting version")})};return r(p,{auth:s,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"DB connections"}),children:[e(y,{title:"DB connection"}),r("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(B,{href:route("db.connection.index"),children:"Back to DB connections"})}),e(N,{details:n}),e("section",{className:"bg-white/50 dark:bg-gray-700 rounded-lg shadow-sm",children:r("div",{className:"py-4 px-4 mx-auto max-w-7xl",children:[r("div",{className:"flex items-center justify-between",children:[r("div",{children:[" ",e("span",{className:"bg-indigo-200 text-indigo-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-indigo-900 dark:text-indigo-300",children:t.type===1?"MySQL":"Other"}),t.version!==null?e("span",{className:"bg-green-100 text-green-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-green-900 dark:text-green-300",children:t.version}):null]}),r("small",{className:"text-end",children:[e(k,{className:"mr-2 h-6 w-6 text-gray-600 dark:text-white hover:text-gray-700 hover:dark:text-gray-300 inline hover:cursor-pointer",onClick:()=>d(!0),title:"Delete database connection"}),e(b,{className:"md:ml-2 ml-1 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer",onClick:o=>window.location.href=route("db.connection.edit",t.id),title:"Edit database connection"}),e(v,{className:"md:ml-3 ml-2 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer",onClick:a,title:"Get database version"}),e(S,{resource:t})]})]}),e("h2",{className:"mt-4 mb-2 text-xl font-bold leading-none text-gray-900 md:text-2xl dark:text-white",children:t.host}),e("p",{className:"mb-4 text-xl font-bold leading-none text-gray-600 md:text-xl dark:text-gray-300",children:t.title}),r("div",{className:"grid md:grid-cols-2 grid-cols-1",children:[e("div",{className:"col-span-1",children:e(C,{created_at:t.created_at,string_format:"hh:mm:ssa do LLL yyyy"})}),e("div",{className:"col-span-1",children:e(L,{updated_at:t.updated_at,string_format:"hh:mm:ssa do LLL yyyy"})})]})]})})]}),e(x,{show:l,size:"md",children:e(x.Body,{children:r("div",{className:"text-center",children:[e("h3",{className:"mb-5 text-lg font-normal text-gray-500 dark:text-gray-400",children:"Are you sure you want to delete this DB connection?"}),r("div",{className:"flex justify-center gap-4",children:[e(u,{color:"failure",onClick:c,children:"Yes, I'm sure"}),e(u,{onClick:()=>d(!1),color:"gray",children:"No, cancel"})]})]})})})]})}export{P as default}; +import{A as p}from"./AuthenticatedLayout-c4be06bd.js";import{r as i,a as e,F as f,u as h,j as r,H as y}from"./app-a8d4275f.js";import{M as x,B as u}from"./Toast-ee00046f.js";import"./Table-f19b692a.js";import{h as w,H as k,a as b,i as v}from"./index.esm-2010c99b.js";import{R as N}from"./Alert-d503f44b.js";import{a as g}from"./axios-4a70c6fc.js";import{B}from"./BackButton-2b60c346.js";import{C}from"./CreatedAtText-a06948df.js";import{U as L}from"./UpdatedAtText-9a96553e.js";import"./ApplicationLogo-ae419612.js";import"./transition-fbe58e1e.js";import"./index-9b0dda6f.js";function S({resource:s}){const[n,t]=i.useState(null),[l,d]=i.useState("Check if can connect"),c=()=>{g.get(route("db.connection.connect",s.id)).then(a=>{t(a.data.result)}).catch(a=>{t(!n)})};return e(f,{children:e(w,{className:(()=>n?"md:ml-3 ml-2 h-6 w-6 text-green-500 dark:text-green-400 inline hover:cursor-pointer":n===null?"md:ml-3 ml-2 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer":"md:ml-3 ml-2 h-6 w-6 text-red-500 dark:text-red-400 inline hover:cursor-pointer")(),onClick:c,title:l})})}function P({auth:s}){const n=h().props.alert,t=h().props.resource,[l,d]=i.useState(!1);i.useState(null);const c=()=>{const o={method:"DELETE",headers:{"X-CSRF-TOKEN":document.getElementsByName("csrf-token")[0].getAttribute("content")}};fetch(route("db.connection.destroy",t.id),o).then(m=>{m.redirected&&(window.location.href=m.url)})},a=()=>{g.get(route("db.connection.version",t.id)).then(o=>{window.location.reload()}).catch(o=>{console.log("Error getting version")})};return r(p,{auth:s,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"DB connections"}),children:[e(y,{title:"DB connection"}),r("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(B,{href:route("db.connection.index"),children:"Back to DB connections"})}),e(N,{details:n}),e("section",{className:"bg-white/50 dark:bg-gray-700 rounded-lg shadow-sm",children:r("div",{className:"py-4 px-4 mx-auto max-w-7xl",children:[r("div",{className:"flex items-center justify-between",children:[r("div",{children:[" ",e("span",{className:"bg-indigo-200 text-indigo-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-indigo-900 dark:text-indigo-300",children:t.type===1?"MySQL":"Other"}),t.version!==null?e("span",{className:"bg-green-100 text-green-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-green-900 dark:text-green-300",children:t.version}):null]}),r("small",{className:"text-end",children:[e(k,{className:"mr-2 h-6 w-6 text-gray-600 dark:text-white hover:text-gray-700 hover:dark:text-gray-300 inline hover:cursor-pointer",onClick:()=>d(!0),title:"Delete database connection"}),e(b,{className:"md:ml-2 ml-1 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer",onClick:o=>window.location.href=route("db.connection.edit",t.id),title:"Edit database connection"}),e(v,{className:"md:ml-3 ml-2 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer",onClick:a,title:"Get database version"}),e(S,{resource:t})]})]}),e("h2",{className:"mt-4 mb-2 text-xl font-bold leading-none text-gray-900 md:text-2xl dark:text-white",children:t.host}),e("p",{className:"mb-4 text-xl font-bold leading-none text-gray-600 md:text-xl dark:text-gray-300",children:t.title}),r("div",{className:"grid md:grid-cols-2 grid-cols-1",children:[e("div",{className:"col-span-1",children:e(C,{created_at:t.created_at,string_format:"hh:mm:ssa do LLL yyyy"})}),e("div",{className:"col-span-1",children:e(L,{updated_at:t.updated_at,string_format:"hh:mm:ssa do LLL yyyy"})})]})]})})]}),e(x,{show:l,size:"md",children:e(x.Body,{children:r("div",{className:"text-center",children:[e("h3",{className:"mb-5 text-lg font-normal text-gray-500 dark:text-gray-400",children:"Are you sure you want to delete this DB connection?"}),r("div",{className:"flex justify-center gap-4",children:[e(u,{color:"failure",onClick:c,children:"Yes, I'm sure"}),e(u,{onClick:()=>d(!1),color:"gray",children:"No, cancel"})]})]})})})]})}export{P as default}; diff --git a/public/build/assets/Show-55461f68.js b/public/build/assets/Show-a69f5cc8.js similarity index 87% rename from public/build/assets/Show-55461f68.js rename to public/build/assets/Show-a69f5cc8.js index 1f32148..2eabe98 100644 --- a/public/build/assets/Show-55461f68.js +++ b/public/build/assets/Show-a69f5cc8.js @@ -1 +1 @@ -import{A as h}from"./AuthenticatedLayout-b0ac98cc.js";import{u as l,r as p,j as a,a as e,H as u}from"./app-7082a047.js";import{R as g}from"./Alert-af0dbb46.js";import{H as b,j as y,k as f}from"./index.esm-eebfcfab.js";import{a as w}from"./axios-4a70c6fc.js";import{B as k}from"./BackButton-c0685269.js";import"./ApplicationLogo-db4f8950.js";import"./transition-eb04b526.js";import"./Toast-a9c7a83a.js";import"./Table-13305096.js";function M({auth:d}){const n=l().props.alert;l().props.resource;const s=l().props.database,r=l().props.table,o=l().props.columns,i=l().props.auth.user,[N,m]=p.useState(!1),x=()=>{const t={headers:{Authorization:`Bearer ${i.api_token}`}};w.get(route("api.db.table.refresh",[s.id,r.id]),t).then(c=>{window.location.reload()}).catch(c=>{console.log("Error refreshing columns")})};return a(h,{auth:d,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:r.name+" table columns"}),children:[e(u,{title:r.name+" table columns"}),a("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(k,{href:route("db.show.tables",s.id),children:"Back to database tables"})}),e(g,{details:n}),e("section",{className:"bg-white/50 dark:bg-gray-700 rounded-lg shadow-sm",children:a("div",{className:"py-4 px-4 mx-auto max-w-7xl",children:[a("div",{className:"flex items-center justify-between",children:[a("div",{children:[a("h2",{className:"mb-3 text-xl font-bold leading-none text-gray-900 md:text-2xl dark:text-white",children:[s.name,", ",r.name," table columns"]}),e("p",{className:"mb-4 text-sm text-gray-900 dark:text-white",children:"Click column name to download as array"})]}),a("small",{className:"text-end",children:[e(b,{className:"mr-2 h-6 w-6 text-gray-600 dark:text-white hover:text-gray-700 hover:dark:text-gray-300 inline hover:cursor-pointer",onClick:()=>m(!0),title:"Delete columns"}),e(y,{className:"md:ml-2 ml-1 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer",onClick:x,title:"Refresh columns"}),e(f,{className:"md:ml-3 ml-2 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer",onClick:t=>window.location.href=route("db.table.columns.download",[s.id,r.id]),title:"Download as JSON"})]})]}),e("ul",{className:"max-w-3xl space-y-1 text-gray-500 list-none list-inside dark:text-gray-400",children:o.map(t=>a("li",{children:[e("span",{className:"text-gray-900 dark:text-gray-200",children:e("a",{href:route("db.table.columns.download.single",[s.id,r.id,t.id]),children:t.name})}),e("span",{className:"ml-2 bg-blue-100 text-blue-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-blue-900 dark:text-blue-300",children:t.type}),t.is_nullable===1?e("span",{className:"ml-1 bg-indigo-100 text-indigo-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-indigo-900 dark:text-indigo-300",children:"nullable"}):e("span",{className:"bg-red-100 text-red-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-red-900 dark:text-red-300",children:"NOT nullable"}),t.default!==null?a("span",{className:"ml-1 bg-green-100 text-green-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-green-900 dark:text-green-300",children:["Default: ",t.default]}):null,t.key!==null?a("span",{className:"ml-1 bg-yellow-100 text-yellow-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-yellow-900 dark:text-yellow-300",children:["Key: ",t.key]}):null,t.extra!==null?a("span",{className:"ml-1 bg-gray-100 text-gray-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-gray-700 dark:text-gray-300",children:["Extra: ",t.extra]}):null]},t.id))})]})})]})]})}export{M as default}; +import{A as h}from"./AuthenticatedLayout-c4be06bd.js";import{u as l,r as p,j as a,a as e,H as u}from"./app-a8d4275f.js";import{R as g}from"./Alert-d503f44b.js";import{H as b,j as y,k as f}from"./index.esm-2010c99b.js";import{a as w}from"./axios-4a70c6fc.js";import{B as k}from"./BackButton-2b60c346.js";import"./ApplicationLogo-ae419612.js";import"./transition-fbe58e1e.js";import"./Toast-ee00046f.js";import"./Table-f19b692a.js";function M({auth:d}){const n=l().props.alert;l().props.resource;const s=l().props.database,r=l().props.table,o=l().props.columns,i=l().props.auth.user,[N,m]=p.useState(!1),x=()=>{const t={headers:{Authorization:`Bearer ${i.api_token}`}};w.get(route("api.db.table.refresh",[s.id,r.id]),t).then(c=>{window.location.reload()}).catch(c=>{console.log("Error refreshing columns")})};return a(h,{auth:d,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:r.name+" table columns"}),children:[e(u,{title:r.name+" table columns"}),a("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(k,{href:route("db.show.tables",s.id),children:"Back to database tables"})}),e(g,{details:n}),e("section",{className:"bg-white/50 dark:bg-gray-700 rounded-lg shadow-sm",children:a("div",{className:"py-4 px-4 mx-auto max-w-7xl",children:[a("div",{className:"flex items-center justify-between",children:[a("div",{children:[a("h2",{className:"mb-3 text-xl font-bold leading-none text-gray-900 md:text-2xl dark:text-white",children:[s.name,", ",r.name," table columns"]}),e("p",{className:"mb-4 text-sm text-gray-900 dark:text-white",children:"Click column name to download as array"})]}),a("small",{className:"text-end",children:[e(b,{className:"mr-2 h-6 w-6 text-gray-600 dark:text-white hover:text-gray-700 hover:dark:text-gray-300 inline hover:cursor-pointer",onClick:()=>m(!0),title:"Delete columns"}),e(y,{className:"md:ml-2 ml-1 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer",onClick:x,title:"Refresh columns"}),e(f,{className:"md:ml-3 ml-2 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer",onClick:t=>window.location.href=route("db.table.columns.download",[s.id,r.id]),title:"Download as JSON"})]})]}),e("ul",{className:"max-w-3xl space-y-1 text-gray-500 list-none list-inside dark:text-gray-400",children:o.map(t=>a("li",{children:[e("span",{className:"text-gray-900 dark:text-gray-200",children:e("a",{href:route("db.table.columns.download.single",[s.id,r.id,t.id]),children:t.name})}),e("span",{className:"ml-2 bg-blue-100 text-blue-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-blue-900 dark:text-blue-300",children:t.type}),t.is_nullable===1?e("span",{className:"ml-1 bg-indigo-100 text-indigo-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-indigo-900 dark:text-indigo-300",children:"nullable"}):e("span",{className:"bg-red-100 text-red-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-red-900 dark:text-red-300",children:"NOT nullable"}),t.default!==null?a("span",{className:"ml-1 bg-green-100 text-green-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-green-900 dark:text-green-300",children:["Default: ",t.default]}):null,t.key!==null?a("span",{className:"ml-1 bg-yellow-100 text-yellow-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-yellow-900 dark:text-yellow-300",children:["Key: ",t.key]}):null,t.extra!==null?a("span",{className:"ml-1 bg-gray-100 text-gray-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-gray-700 dark:text-gray-300",children:["Extra: ",t.extra]}):null]},t.id))})]})})]})]})}export{M as default}; diff --git a/public/build/assets/Show-87b730ad.js b/public/build/assets/Show-adab10ed.js similarity index 88% rename from public/build/assets/Show-87b730ad.js rename to public/build/assets/Show-adab10ed.js index 2a6310f..8c54434 100644 --- a/public/build/assets/Show-87b730ad.js +++ b/public/build/assets/Show-adab10ed.js @@ -1 +1 @@ -import{A as g}from"./AuthenticatedLayout-b0ac98cc.js";import{u as l,r as p,j as t,a as e,H as f}from"./app-7082a047.js";import{M as s,B as i}from"./Toast-a9c7a83a.js";import"./Table-13305096.js";import{H as u,k as w,o as y}from"./index.esm-eebfcfab.js";import{R as v}from"./Alert-af0dbb46.js";import{C as N}from"./CreatedAtText-a1e22ba4.js";import{B as k}from"./BackButton-c0685269.js";import{n}from"./helpers-2aabf79e.js";import"./ApplicationLogo-db4f8950.js";import"./transition-eb04b526.js";import"./index-9b0dda6f.js";function L({auth:c}){const m=l().props.alert,a=l().props.resource,[h,o]=p.useState(!1),x=()=>{const r={method:"DELETE",headers:{"X-CSRF-TOKEN":document.getElementsByName("csrf-token")[0].getAttribute("content")}};fetch(route("downloaded.destroy",a.id),r).then(d=>{d.redirected&&(window.location.href=d.url)})};return t(g,{auth:c,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"File "+a.saved_as}),children:[e(f,{title:"File "+a.saved_as}),t("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(k,{href:route("downloaded.index"),children:"Back to downloaded"})}),e(v,{details:m}),e("section",{className:"bg-white/50 dark:bg-gray-700 rounded-lg shadow-sm",children:t("div",{className:"py-4 px-4 mx-auto max-w-7xl",children:[t("div",{className:"flex items-center justify-between",children:[t("div",{children:[t("span",{className:"bg-indigo-100 text-indigo-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-indigo-900 dark:text-indigo-300",children:["Size ",n(a.size/1e3/1e3)," MB"]}),t("span",{className:"ml-1 bg-green-100 text-green-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-green-900 dark:text-green-300",children:["DL speed ",n(a.speed_mbps)," Mbps"]})]}),t("small",{className:"text-sm text-gray-700",children:[e(u,{className:"mr-2 h-6 w-6 text-gray-600 dark:text-white hover:text-gray-700 hover:dark:text-gray-300 inline hover:cursor-pointer",onClick:()=>o(!0),title:"Delete file"}),e(w,{className:"md:ml-2 ml-1 h-6 w-6 text-gray-600 dark:text-white inline hover:text-gray-700 hover:dark:text-gray-300 inline hover:cursor-pointer",onClick:r=>window.location.href=route("downloaded.download",a.id),title:"Download file through browser"}),e(y,{className:"md:ml-3 ml-2 h-6 w-6 text-gray-600 dark:text-white inline hover:text-gray-700 hover:dark:text-gray-300 inline hover:cursor-pointer",onClick:r=>window.location.href=route("downloaded.upload.form",a.id),title:"Upload file to another SFTP"})]})]}),t("div",{className:"grid grid-cols-2",children:[e("div",{className:"md:col-span-1 col-span-2",children:e("h2",{className:"mt-4 mb-2 text-xl font-bold leading-none text-gray-900 md:text-2xl dark:text-white",children:a.saved_as})}),e("div",{className:"md:col-span-1 col-span-2",children:t("p",{className:"mt-4 mb-4 text-lg font-bold leading-none text-gray-600 md:text-lg dark:text-gray-400",children:["Downloaded from ",t("span",{className:"text-gray-700 dark:text-gray-300",children:[a.conn.server.hostname," ",a.from_dir,"/",a.filename]})]})})]}),t("div",{className:"grid md:grid-cols-2 grid-cols-1",children:[e("div",{className:"col-span-1",children:e(N,{created_at:a.created_at,string_format:"hh:mm:ssa do LLL yyyy",pre_text:"Downloaded: "})}),e("div",{className:"col-span-1"})]})]})})]}),e(s,{show:h,size:"md",children:e(s.Body,{children:t("div",{className:"text-center",children:[e("h3",{className:"mb-5 text-lg font-normal text-gray-500 dark:text-gray-400",children:"Are you sure you want to delete this File?"}),t("div",{className:"flex justify-center gap-4",children:[e(i,{color:"failure",onClick:x,children:"Yes, I'm sure"}),e(i,{onClick:()=>o(!1),color:"gray",children:"No, cancel"})]})]})})})]})}export{L as default}; +import{A as g}from"./AuthenticatedLayout-c4be06bd.js";import{u as l,r as p,j as t,a as e,H as f}from"./app-a8d4275f.js";import{M as s,B as i}from"./Toast-ee00046f.js";import"./Table-f19b692a.js";import{H as u,k as w,o as y}from"./index.esm-2010c99b.js";import{R as v}from"./Alert-d503f44b.js";import{C as N}from"./CreatedAtText-a06948df.js";import{B as k}from"./BackButton-2b60c346.js";import{n}from"./helpers-2aabf79e.js";import"./ApplicationLogo-ae419612.js";import"./transition-fbe58e1e.js";import"./index-9b0dda6f.js";function L({auth:c}){const m=l().props.alert,a=l().props.resource,[h,o]=p.useState(!1),x=()=>{const r={method:"DELETE",headers:{"X-CSRF-TOKEN":document.getElementsByName("csrf-token")[0].getAttribute("content")}};fetch(route("downloaded.destroy",a.id),r).then(d=>{d.redirected&&(window.location.href=d.url)})};return t(g,{auth:c,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"File "+a.saved_as}),children:[e(f,{title:"File "+a.saved_as}),t("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(k,{href:route("downloaded.index"),children:"Back to downloaded"})}),e(v,{details:m}),e("section",{className:"bg-white/50 dark:bg-gray-700 rounded-lg shadow-sm",children:t("div",{className:"py-4 px-4 mx-auto max-w-7xl",children:[t("div",{className:"flex items-center justify-between",children:[t("div",{children:[t("span",{className:"bg-indigo-100 text-indigo-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-indigo-900 dark:text-indigo-300",children:["Size ",n(a.size/1e3/1e3)," MB"]}),t("span",{className:"ml-1 bg-green-100 text-green-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-green-900 dark:text-green-300",children:["DL speed ",n(a.speed_mbps)," Mbps"]})]}),t("small",{className:"text-sm text-gray-700",children:[e(u,{className:"mr-2 h-6 w-6 text-gray-600 dark:text-white hover:text-gray-700 hover:dark:text-gray-300 inline hover:cursor-pointer",onClick:()=>o(!0),title:"Delete file"}),e(w,{className:"md:ml-2 ml-1 h-6 w-6 text-gray-600 dark:text-white inline hover:text-gray-700 hover:dark:text-gray-300 inline hover:cursor-pointer",onClick:r=>window.location.href=route("downloaded.download",a.id),title:"Download file through browser"}),e(y,{className:"md:ml-3 ml-2 h-6 w-6 text-gray-600 dark:text-white inline hover:text-gray-700 hover:dark:text-gray-300 inline hover:cursor-pointer",onClick:r=>window.location.href=route("downloaded.upload.form",a.id),title:"Upload file to another SFTP"})]})]}),t("div",{className:"grid grid-cols-2",children:[e("div",{className:"md:col-span-1 col-span-2",children:e("h2",{className:"mt-4 mb-2 text-xl font-bold leading-none text-gray-900 md:text-2xl dark:text-white",children:a.saved_as})}),e("div",{className:"md:col-span-1 col-span-2",children:t("p",{className:"mt-4 mb-4 text-lg font-bold leading-none text-gray-600 md:text-lg dark:text-gray-400",children:["Downloaded from ",t("span",{className:"text-gray-700 dark:text-gray-300",children:[a.conn.server.hostname," ",a.from_dir,"/",a.filename]})]})})]}),t("div",{className:"grid md:grid-cols-2 grid-cols-1",children:[e("div",{className:"col-span-1",children:e(N,{created_at:a.created_at,string_format:"hh:mm:ssa do LLL yyyy",pre_text:"Downloaded: "})}),e("div",{className:"col-span-1"})]})]})})]}),e(s,{show:h,size:"md",children:e(s.Body,{children:t("div",{className:"text-center",children:[e("h3",{className:"mb-5 text-lg font-normal text-gray-500 dark:text-gray-400",children:"Are you sure you want to delete this File?"}),t("div",{className:"flex justify-center gap-4",children:[e(i,{color:"failure",onClick:x,children:"Yes, I'm sure"}),e(i,{onClick:()=>o(!1),color:"gray",children:"No, cancel"})]})]})})})]})}export{L as default}; diff --git a/public/build/assets/Show-f981e826.js b/public/build/assets/Show-c1aba46a.js similarity index 83% rename from public/build/assets/Show-f981e826.js rename to public/build/assets/Show-c1aba46a.js index 66fa0d4..fc98afd 100644 --- a/public/build/assets/Show-f981e826.js +++ b/public/build/assets/Show-c1aba46a.js @@ -1 +1 @@ -import{A as x}from"./AuthenticatedLayout-b0ac98cc.js";import{u as o,r as f,b as y,j as r,a as e,H as w}from"./app-7082a047.js";import{M as l,B as d}from"./Toast-a9c7a83a.js";import"./Table-13305096.js";import{H as v,a as N,b as k}from"./index.esm-eebfcfab.js";import{s as b,g as A,a as H}from"./gridJsConfig-39d3aeab.js";import{R as M}from"./Alert-af0dbb46.js";import{B}from"./BackButton-c0685269.js";import{f as E}from"./index-9b0dda6f.js";import"./ApplicationLogo-db4f8950.js";import"./transition-eb04b526.js";function J({auth:m}){const c=o().props.alert,a=o().props.pingGroup,i=o().props.pings,[p,s]=f.useState(!1),{post:g}=y({}),h=t=>{t.preventDefault(),g(route("ping-group.run2",a.id))},u=()=>{const t={method:"DELETE",headers:{"X-CSRF-TOKEN":document.getElementsByName("csrf-token")[0].getAttribute("content")}};fetch(route("ping-group.destroy",a.id),t).then(n=>{n.redirected&&(window.location.href=n.url)})};return r(x,{auth:m,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Ping group: "+a.title}),children:[e(w,{title:"Ping group "+a.title}),r("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-2",children:e(B,{href:route("ping.index"),children:"All pings"})}),e(M,{details:c}),e("div",{className:"px-1 mx-auto max-w-7xl",children:r("section",{className:"pt-4 shadow-md dark:shadow-md bg-white/50 dark:bg-gray-700 dark:shadow rounded-lg",children:[r("div",{className:"flex items-center justify-between mb-2 px-2",children:[e("div",{}),r("small",{className:"text-end",children:[e(v,{className:"mr-2 h-6 w-6 text-gray-600 dark:text-white hover:text-gray-700 hover:dark:text-gray-300 inline hover:cursor-pointer",onClick:()=>s(!0),title:"Delete ping group"}),e(N,{className:"md:ml-2 ml-1 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer",onClick:t=>window.location.href=route("ping-group.edit",a.id),title:"Edit ping group"}),e(k,{className:"md:ml-3 ml-1 h-6 w-6 text-gray-600 dark:text-white hover:text-gray-700 hover:dark:text-gray-300 inline hover:cursor-pointer",onClick:h,title:"Run ping group"})]})]}),i.length===0?e("h2",{className:"text-md pl-2 pb-2 my-4 font-semibold leading-none text-gray-700 md:text-lg dark:text-gray-400",children:"No pings yet"}):e(b,{data:i,columns:[{id:"from_server_id",name:"From",sort:!1,data:t=>t.from_server.hostname},{id:"server_id",name:"To",sort:!0,data:t=>t.to_server.hostname},{id:"was_up",name:"Up",sort:!0,formatter:t=>t===1?"Y":"N"},{id:"avg",name:"AVG",sort:!0},{id:"min",name:"MIN",sort:!0},{id:"max",name:"MAX",sort:!0},{id:"created_at",name:"Datetime",sort:!0,formatter:t=>E(new Date(t),"yyyy-MM-dd HH:mm:ss")}],search:!0,className:A,pagination:H})]})})]}),e(l,{show:p,size:"md",children:e(l.Body,{children:r("div",{className:"text-center",children:[e("h3",{className:"mb-5 text-lg font-normal text-gray-500 dark:text-gray-400",children:"Are you sure you want to delete this Ping group?"}),r("div",{className:"flex justify-center gap-4",children:[e(d,{color:"failure",onClick:u,children:"Yes, I'm sure"}),e(d,{onClick:()=>s(!1),color:"gray",children:"No, cancel"})]})]})})})]})}export{J as default}; +import{A as x}from"./AuthenticatedLayout-c4be06bd.js";import{u as o,r as f,b as y,j as r,a as e,H as w}from"./app-a8d4275f.js";import{M as l,B as d}from"./Toast-ee00046f.js";import"./Table-f19b692a.js";import{H as v,a as N,b as k}from"./index.esm-2010c99b.js";import{s as b,g as A,a as H}from"./gridJsConfig-143e158b.js";import{R as M}from"./Alert-d503f44b.js";import{B}from"./BackButton-2b60c346.js";import{f as E}from"./index-9b0dda6f.js";import"./ApplicationLogo-ae419612.js";import"./transition-fbe58e1e.js";function J({auth:m}){const c=o().props.alert,a=o().props.pingGroup,i=o().props.pings,[p,s]=f.useState(!1),{post:g}=y({}),h=t=>{t.preventDefault(),g(route("ping-group.run2",a.id))},u=()=>{const t={method:"DELETE",headers:{"X-CSRF-TOKEN":document.getElementsByName("csrf-token")[0].getAttribute("content")}};fetch(route("ping-group.destroy",a.id),t).then(n=>{n.redirected&&(window.location.href=n.url)})};return r(x,{auth:m,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Ping group: "+a.title}),children:[e(w,{title:"Ping group "+a.title}),r("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-2",children:e(B,{href:route("ping.index"),children:"All pings"})}),e(M,{details:c}),e("div",{className:"px-1 mx-auto max-w-7xl",children:r("section",{className:"pt-4 shadow-md dark:shadow-md bg-white/50 dark:bg-gray-700 dark:shadow rounded-lg",children:[r("div",{className:"flex items-center justify-between mb-2 px-2",children:[e("div",{}),r("small",{className:"text-end",children:[e(v,{className:"mr-2 h-6 w-6 text-gray-600 dark:text-white hover:text-gray-700 hover:dark:text-gray-300 inline hover:cursor-pointer",onClick:()=>s(!0),title:"Delete ping group"}),e(N,{className:"md:ml-2 ml-1 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer",onClick:t=>window.location.href=route("ping-group.edit",a.id),title:"Edit ping group"}),e(k,{className:"md:ml-3 ml-1 h-6 w-6 text-gray-600 dark:text-white hover:text-gray-700 hover:dark:text-gray-300 inline hover:cursor-pointer",onClick:h,title:"Run ping group"})]})]}),i.length===0?e("h2",{className:"text-md pl-2 pb-2 my-4 font-semibold leading-none text-gray-700 md:text-lg dark:text-gray-400",children:"No pings yet"}):e(b,{data:i,columns:[{id:"from_server_id",name:"From",sort:!1,data:t=>t.from_server.hostname},{id:"server_id",name:"To",sort:!0,data:t=>t.to_server.hostname},{id:"was_up",name:"Up",sort:!0,formatter:t=>t===1?"Y":"N"},{id:"avg",name:"AVG",sort:!0},{id:"min",name:"MIN",sort:!0},{id:"max",name:"MAX",sort:!0},{id:"created_at",name:"Datetime",sort:!0,formatter:t=>E(new Date(t),"yyyy-MM-dd HH:mm:ss")}],search:!0,className:A,pagination:H})]})})]}),e(l,{show:p,size:"md",children:e(l.Body,{children:r("div",{className:"text-center",children:[e("h3",{className:"mb-5 text-lg font-normal text-gray-500 dark:text-gray-400",children:"Are you sure you want to delete this Ping group?"}),r("div",{className:"flex justify-center gap-4",children:[e(d,{color:"failure",onClick:u,children:"Yes, I'm sure"}),e(d,{onClick:()=>s(!1),color:"gray",children:"No, cancel"})]})]})})})]})}export{J as default}; diff --git a/public/build/assets/Show-3e58a32e.js b/public/build/assets/Show-ead32f20.js similarity index 87% rename from public/build/assets/Show-3e58a32e.js rename to public/build/assets/Show-ead32f20.js index 53db52d..6b18a28 100644 --- a/public/build/assets/Show-3e58a32e.js +++ b/public/build/assets/Show-ead32f20.js @@ -1 +1 @@ -import{A as p}from"./AuthenticatedLayout-b0ac98cc.js";import{u as o,r as x,j as t,a as e,H as y}from"./app-7082a047.js";import{M as l,B as i}from"./Toast-a9c7a83a.js";import"./Table-13305096.js";import{H as f,a as N,b as v}from"./index.esm-eebfcfab.js";import{R as w}from"./Alert-af0dbb46.js";import{C as k}from"./CreatedAtText-a1e22ba4.js";import{B as b}from"./BackButton-c0685269.js";import{a as C}from"./axios-4a70c6fc.js";import{U as E}from"./UpdatedAtText-1126b185.js";import"./ApplicationLogo-db4f8950.js";import"./transition-eb04b526.js";import"./index-9b0dda6f.js";function O({auth:n}){const m=o().props.auth.user,c=o().props.alert,r=o().props.resource,[h,s]=x.useState(!1),g=()=>{const a={method:"DELETE",headers:{"X-CSRF-TOKEN":document.getElementsByName("csrf-token")[0].getAttribute("content")}};fetch(route("command-group.destroy",r.id),a).then(d=>{d.redirected&&(window.location.href=d.url)})},u=()=>{C.get(route("command-group.run",r.id)).then(a=>{}).catch(a=>{console.log("Error running this command group")})};return t(p,{auth:n,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Command group: "+r.title}),children:[e(y,{title:"Command group "+r.id}),t("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(b,{href:route("command-group.index"),children:"Back to command groups"})}),e(w,{details:c}),e("section",{className:"bg-white/50 dark:bg-gray-700 rounded-lg shadow-sm",children:t("div",{className:"py-4 px-4 mx-auto max-w-7xl",children:[t("div",{className:"flex items-center justify-between mb-2",children:[e("h2",{className:"mb-2 text-xl font-bold leading-none text-gray-900 md:text-2xl dark:text-white",children:r.title}),t("small",{className:"text-end",children:[e(f,{className:"mr-2 h-6 w-6 text-gray-600 dark:text-white hover:text-gray-700 hover:dark:text-gray-300 inline hover:cursor-pointer",onClick:()=>s(!0),title:"Delete command group"}),e(N,{className:"md:ml-2 ml-1 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer",onClick:a=>window.location.href=route("command-group.edit",r.id),title:"Edit command group"}),e(v,{className:"md:ml-3 ml-1 h-6 w-6 text-gray-600 dark:text-white hover:text-gray-700 hover:dark:text-gray-300 inline hover:cursor-pointer",onClick:u,title:"Run command group"})]})]}),t("div",{className:"grid grid-cols-2",children:[t("div",{className:"md:col-span-1 col-span-2",children:[e("code",{className:"text-red-500 bg-gray-300 dark:bg-black p-1 rounded-md my-2",children:r.the_command.command}),r.email_output?t("p",{className:"my-2 text-md text-gray-900 dark:text-white",children:["Emails to ",m.email]}):null]}),e("div",{className:"md:col-span-1 col-span-2",children:(()=>r.assigned.length>0?t("div",{className:"mt-2",children:[e("h2",{className:"text-md font-bold mb-2 text-gray-800 md:text-lg dark:text-gray-200",children:"Servers in group"}),e("ul",{className:"list-disc",children:r.assigned.map(a=>e("li",{className:"text-gray-800 dark:text-gray-300",children:t("a",{href:route("server.show",a.server.id),children:[a.server.hostname," (",a.server.title,")"]})},a.server.id))})]}):e("h2",{className:"text-md ml-2 my-4 font-semibold leading-none text-gray-800 md:text-lg dark:text-gray-300",children:"There are no servers in this group"}))()})]}),t("div",{className:"grid md:grid-cols-2 grid-cols-1",children:[e("div",{className:"col-span-1",children:e(k,{created_at:r.created_at,string_format:"hh:mm:ssa do LLL yyyy"})}),e("div",{className:"col-span-1",children:e(E,{updated_at:r.updated_at,string_format:"hh:mm:ssa do LLL yyyy"})})]})]})})]}),e(l,{show:h,size:"md",children:e(l.Body,{children:t("div",{className:"text-center",children:[e("h3",{className:"mb-5 text-lg font-normal text-gray-500 dark:text-gray-400",children:"Are you sure you want to delete this Command group?"}),t("div",{className:"flex justify-center gap-4",children:[e(i,{color:"failure",onClick:g,children:"Yes, I'm sure"}),e(i,{onClick:()=>s(!1),color:"gray",children:"No, cancel"})]})]})})})]})}export{O as default}; +import{A as p}from"./AuthenticatedLayout-c4be06bd.js";import{u as o,r as x,j as t,a as e,H as y}from"./app-a8d4275f.js";import{M as l,B as i}from"./Toast-ee00046f.js";import"./Table-f19b692a.js";import{H as f,a as N,b as v}from"./index.esm-2010c99b.js";import{R as w}from"./Alert-d503f44b.js";import{C as k}from"./CreatedAtText-a06948df.js";import{B as b}from"./BackButton-2b60c346.js";import{a as C}from"./axios-4a70c6fc.js";import{U as E}from"./UpdatedAtText-9a96553e.js";import"./ApplicationLogo-ae419612.js";import"./transition-fbe58e1e.js";import"./index-9b0dda6f.js";function O({auth:n}){const m=o().props.auth.user,c=o().props.alert,r=o().props.resource,[h,s]=x.useState(!1),g=()=>{const a={method:"DELETE",headers:{"X-CSRF-TOKEN":document.getElementsByName("csrf-token")[0].getAttribute("content")}};fetch(route("command-group.destroy",r.id),a).then(d=>{d.redirected&&(window.location.href=d.url)})},u=()=>{C.get(route("command-group.run",r.id)).then(a=>{}).catch(a=>{console.log("Error running this command group")})};return t(p,{auth:n,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"Command group: "+r.title}),children:[e(y,{title:"Command group "+r.id}),t("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(b,{href:route("command-group.index"),children:"Back to command groups"})}),e(w,{details:c}),e("section",{className:"bg-white/50 dark:bg-gray-700 rounded-lg shadow-sm",children:t("div",{className:"py-4 px-4 mx-auto max-w-7xl",children:[t("div",{className:"flex items-center justify-between mb-2",children:[e("h2",{className:"mb-2 text-xl font-bold leading-none text-gray-900 md:text-2xl dark:text-white",children:r.title}),t("small",{className:"text-end",children:[e(f,{className:"mr-2 h-6 w-6 text-gray-600 dark:text-white hover:text-gray-700 hover:dark:text-gray-300 inline hover:cursor-pointer",onClick:()=>s(!0),title:"Delete command group"}),e(N,{className:"md:ml-2 ml-1 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer",onClick:a=>window.location.href=route("command-group.edit",r.id),title:"Edit command group"}),e(v,{className:"md:ml-3 ml-1 h-6 w-6 text-gray-600 dark:text-white hover:text-gray-700 hover:dark:text-gray-300 inline hover:cursor-pointer",onClick:u,title:"Run command group"})]})]}),t("div",{className:"grid grid-cols-2",children:[t("div",{className:"md:col-span-1 col-span-2",children:[e("code",{className:"text-red-500 bg-gray-300 dark:bg-black p-1 rounded-md my-2",children:r.the_command.command}),r.email_output?t("p",{className:"my-2 text-md text-gray-900 dark:text-white",children:["Emails to ",m.email]}):null]}),e("div",{className:"md:col-span-1 col-span-2",children:(()=>r.assigned.length>0?t("div",{className:"mt-2",children:[e("h2",{className:"text-md font-bold mb-2 text-gray-800 md:text-lg dark:text-gray-200",children:"Servers in group"}),e("ul",{className:"list-disc",children:r.assigned.map(a=>e("li",{className:"text-gray-800 dark:text-gray-300",children:t("a",{href:route("server.show",a.server.id),children:[a.server.hostname," (",a.server.title,")"]})},a.server.id))})]}):e("h2",{className:"text-md ml-2 my-4 font-semibold leading-none text-gray-800 md:text-lg dark:text-gray-300",children:"There are no servers in this group"}))()})]}),t("div",{className:"grid md:grid-cols-2 grid-cols-1",children:[e("div",{className:"col-span-1",children:e(k,{created_at:r.created_at,string_format:"hh:mm:ssa do LLL yyyy"})}),e("div",{className:"col-span-1",children:e(E,{updated_at:r.updated_at,string_format:"hh:mm:ssa do LLL yyyy"})})]})]})})]}),e(l,{show:h,size:"md",children:e(l.Body,{children:t("div",{className:"text-center",children:[e("h3",{className:"mb-5 text-lg font-normal text-gray-500 dark:text-gray-400",children:"Are you sure you want to delete this Command group?"}),t("div",{className:"flex justify-center gap-4",children:[e(i,{color:"failure",onClick:g,children:"Yes, I'm sure"}),e(i,{onClick:()=>s(!1),color:"gray",children:"No, cancel"})]})]})})})]})}export{O as default}; diff --git a/public/build/assets/Show-7553bff0.js b/public/build/assets/Show-f0f0541e.js similarity index 91% rename from public/build/assets/Show-7553bff0.js rename to public/build/assets/Show-f0f0541e.js index 0eaf983..2a96f54 100644 --- a/public/build/assets/Show-7553bff0.js +++ b/public/build/assets/Show-f0f0541e.js @@ -1 +1 @@ -import{A as L}from"./AuthenticatedLayout-b0ac98cc.js";import{u,b as U,r as n,j as a,a as e,H as q,c as M}from"./app-7082a047.js";import{M as b,B as _}from"./Toast-a9c7a83a.js";import"./Table-13305096.js";import{H as K,a as X,B as z,e as G,C as J}from"./index.esm-eebfcfab.js";import{I as p}from"./InputLabel-04829bce.js";import{T as h,I as g}from"./TextInput-38986df9.js";import{P as f}from"./PrimaryButton-aae876dd.js";import{O as V}from"./Output-dd9f99a9.js";import{R as Y}from"./Alert-af0dbb46.js";import{B as Q}from"./BackButton-c0685269.js";import{P as W}from"./ProgressBar-e6470a9f.js";import{a as Z}from"./axios-4a70c6fc.js";import"./ApplicationLogo-db4f8950.js";import"./transition-eb04b526.js";import"./index-9b0dda6f.js";function fe({auth:S}){const r=u().props.resource,C=u().props.ip,I=u().props.alert,{data:l,setData:o,post:P,processing:m,reset:$,errors:i}=U({the_command1:"",file:"",save_as:""}),[d,x]=n.useState(!1),[T,v]=n.useState(null),[E,y]=n.useState(!1),[B,w]=n.useState(0),[c,N]=n.useState(!1);n.useEffect(()=>{let t;return c?t=setInterval(()=>{w(s=>s+10)},10):c||clearInterval(t),()=>clearInterval(t)},[c]);async function F(){w(0),N(!0);const t=await fetch(route("sftp.run",r.id),{method:"POST",headers:{"X-CSRF-TOKEN":document.getElementsByName("csrf-token")[0].getAttribute("content"),"Content-Type":"application/json",Accept:"*/*"},body:JSON.stringify({the_command1:l.the_command1})});return N(!1),t.json()}const D=t=>{t.preventDefault();const s=document.getElementById("command_output_div"),H=M.createRoot(s);F().then(k=>{const j=e(V,{id:"commandOutput",title:null,the_command:l.the_command1,created_at:new Date,the_output:k.output,seconds:k.seconds_taken,rows:10});H.render(j)})};async function R(t){return await(await Z.get(route("sftp.upload.progress",t.id))).data}n.useEffect(()=>{let t;return d?t=setInterval(()=>{R(r).then(s=>{v(s.progress)})},500):d||(v(null),clearInterval(t)),()=>clearInterval(t)},[d]);const O=t=>{t.preventDefault(),P(route("sftp.upload",r.id),{onStart:s=>{x(!0)},onFinish:s=>{x(!1)}})},A=()=>{const t={method:"DELETE",headers:{"X-CSRF-TOKEN":document.getElementsByName("csrf-token")[0].getAttribute("content")}};fetch(route("sftp.destroy",r.id),t).then(s=>{s.redirected&&(window.location.href=s.url)})};return a(L,{auth:S,header:a("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:[r.username,"@",C,":",r.port," (",r.server.hostname,")"]}),children:[e(q,{title:"SFTP connection "+r.id}),a("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(Q,{href:route("sftp.index"),children:"Back to SFTP connections"})}),e(Y,{details:I}),a("section",{className:"bg-white/50 dark:bg-gray-700 rounded-lg shadow-sm",children:[a("div",{className:"py-6 px-4 mx-auto max-w-7xl",children:[a("div",{className:"flex items-center justify-between mb-4",children:[e("h1",{className:"text-2xl font-bold text-gray-800 dark:text-white",children:"Run SFTP command"}),a("small",{className:"text-end",children:[e(K,{className:"mr-2 h-6 w-6 text-gray-600 dark:text-white hover:text-gray-700 hover:dark:text-gray-300 inline hover:cursor-pointer",onClick:()=>y(!0),title:"Delete SFTP connection"}),e(X,{className:"md:ml-2 ml-1 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer",onClick:t=>window.location.href=route("sftp.edit",r.id),title:"Edit SFTP connection"}),e(z,{className:"md:ml-2 ml-1 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer",onClick:t=>window.location.href=route("sftp.read",r.id),title:"Read a file"}),e(G,{className:"md:ml-3 ml-2 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer",onClick:t=>window.location.href=route("server.show",r.server.id),title:"Go to server"}),e(J,{className:"md:ml-3 ml-2 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer",onClick:t=>window.location.href=route("sftp.create-download-to-server",r.id),title:"Download a file to this host server"})]})]}),a("form",{onSubmit:D,children:[e("div",{className:"grid gap-2 sm:grid-cols-1 md:grid-cols-4 sm:gap-4",children:a("div",{className:"col-span-4",children:[e(p,{forInput:"the_command1",value:"Command"}),e(h,{name:"the_command1",value:l.the_command1,className:"mt-1 block w-full",autoComplete:"the_command1",handleChange:t=>o("the_command1",t.target.value),maxLength:64,required:!0}),e(g,{message:i.the_command1,className:"mt-2"})]})}),e(f,{className:"inline-flex items-center px-5 py-2.5 mt-4 sm:mt-6 text-sm font-medium text-center text-white bg-primary-700 rounded-lg focus:ring-4 focus:ring-primary-200 dark:focus:ring-primary-900 hover:bg-primary-800",processing:m,children:"Run"})]})]}),a("div",{className:"py-2 px-4 mx-auto max-w-7xl",children:[a("div",{className:"grid gap-2 sm:grid-cols-1 md:grid-cols-4 sm:gap-4",children:[e("div",{className:"col-span-2",children:a("form",{action:route("sftp.download",r.id),method:"post",children:[e("input",{type:"hidden",name:"_token",value:document.getElementsByName("csrf-token")[0].getAttribute("content")}),e("div",{className:"grid gap-2 sm:grid-cols-1 md:grid-cols-4 sm:gap-4",children:a("div",{className:"col-span-4",children:[e("p",{className:"text-lg text-gray-800 dark:text-white pb-2",children:"Download a file"}),e(p,{forInput:"file",value:"Full file path and name"}),e(h,{name:"file",value:l.file,className:"mt-1 block w-full",autoComplete:"file",handleChange:t=>o("file",t.target.value),maxLength:255,required:!0}),e(g,{message:i.file,className:"mt-2"})]})}),e(f,{className:"inline-flex items-center px-5 py-2.5 mt-4 sm:mt-6 text-sm font-medium text-center text-white bg-primary-700 rounded-lg focus:ring-4 focus:ring-primary-200 dark:focus:ring-primary-900 hover:bg-primary-800",processing:m,children:"Download file"})]})}),e("div",{className:"col-span-2",children:a("form",{onSubmit:O,children:[a("div",{className:"grid gap-2 sm:grid-cols-1 md:grid-cols-4 sm:gap-4",children:[a("div",{className:"col-span-3",children:[e("p",{className:"text-lg text-gray-800 dark:text-white pb-2",children:"Upload a file"}),e(p,{forInput:"save_as",value:"Save as"}),e(h,{name:"save_as",value:l.save_as,className:"mt-1 block w-full",autoComplete:"file",handleChange:t=>o("save_as",t.target.value),maxLength:255,required:!0}),e(g,{message:i.save_as,className:"mt-2"})]}),a("div",{className:"col-span-1",children:[e("p",{className:"text-lg text-gray-800 dark:text-white pb-2",children:"‌"}),e("label",{className:"block mb-1 text-sm font-medium text-gray-900 dark:text-white",children:"File"}),e("input",{type:"file",className:"w-full px-4 py-2",name:"the_file",onChange:t=>o("the_file",t.target.files[0])}),e("span",{className:"text-red-600",children:i.the_file})]})]}),e(f,{className:"inline-flex items-center px-5 py-2.5 mt-3",processing:m,children:"Upload file"})]})})]}),e(W,{value:T})]})]}),a("section",{className:"bg-white/50 dark:bg-gray-700 rounded-lg mt-4",children:[e("h1",{className:"text-2xl font-bold text-gray-800 dark:text-white pl-4 pt-2",children:"SFTP Command output"}),e("div",{className:"pt-2 px-4 mx-auto max-w-7xl",children:c?a("p",{className:"text-gray-600 dark:text-gray-300 mb-2",children:[e("code",{className:"text-red-500 bg-gray-300 dark:bg-black p-1 rounded-md my-2",children:l.the_command1??null})," ",B/1e3%60,"s"]}):null}),e("div",{className:"py-4 px-4 mx-auto max-w-7xl",id:"command_output_div",children:e("span",{className:"text-gray-400 dark:text-gray-500",children:"Nothing run yet"})})]})]}),e(b,{show:E,size:"md",children:e(b.Body,{children:a("div",{className:"text-center",children:[e("h3",{className:"mb-5 text-lg font-normal text-gray-500 dark:text-gray-400",children:"Are you sure you want to delete this SFTP Connection?"}),a("div",{className:"flex justify-center gap-4",children:[e(_,{color:"failure",onClick:A,children:"Yes, I'm sure"}),e(_,{onClick:()=>y(!1),color:"gray",children:"No, cancel"})]})]})})})]})}export{fe as default}; +import{A as L}from"./AuthenticatedLayout-c4be06bd.js";import{u,b as U,r as n,j as a,a as e,H as q,c as M}from"./app-a8d4275f.js";import{M as b,B as _}from"./Toast-ee00046f.js";import"./Table-f19b692a.js";import{H as K,a as X,B as z,e as G,C as J}from"./index.esm-2010c99b.js";import{I as p}from"./InputLabel-a7ee92ff.js";import{T as h,I as g}from"./TextInput-1e9aadbd.js";import{P as f}from"./PrimaryButton-19cc4f5a.js";import{O as V}from"./Output-2c144da2.js";import{R as Y}from"./Alert-d503f44b.js";import{B as Q}from"./BackButton-2b60c346.js";import{P as W}from"./ProgressBar-0f70cb6b.js";import{a as Z}from"./axios-4a70c6fc.js";import"./ApplicationLogo-ae419612.js";import"./transition-fbe58e1e.js";import"./index-9b0dda6f.js";function fe({auth:S}){const r=u().props.resource,C=u().props.ip,I=u().props.alert,{data:l,setData:o,post:P,processing:m,reset:$,errors:i}=U({the_command1:"",file:"",save_as:""}),[d,x]=n.useState(!1),[T,v]=n.useState(null),[E,y]=n.useState(!1),[B,w]=n.useState(0),[c,N]=n.useState(!1);n.useEffect(()=>{let t;return c?t=setInterval(()=>{w(s=>s+10)},10):c||clearInterval(t),()=>clearInterval(t)},[c]);async function F(){w(0),N(!0);const t=await fetch(route("sftp.run",r.id),{method:"POST",headers:{"X-CSRF-TOKEN":document.getElementsByName("csrf-token")[0].getAttribute("content"),"Content-Type":"application/json",Accept:"*/*"},body:JSON.stringify({the_command1:l.the_command1})});return N(!1),t.json()}const D=t=>{t.preventDefault();const s=document.getElementById("command_output_div"),H=M.createRoot(s);F().then(k=>{const j=e(V,{id:"commandOutput",title:null,the_command:l.the_command1,created_at:new Date,the_output:k.output,seconds:k.seconds_taken,rows:10});H.render(j)})};async function R(t){return await(await Z.get(route("sftp.upload.progress",t.id))).data}n.useEffect(()=>{let t;return d?t=setInterval(()=>{R(r).then(s=>{v(s.progress)})},500):d||(v(null),clearInterval(t)),()=>clearInterval(t)},[d]);const O=t=>{t.preventDefault(),P(route("sftp.upload",r.id),{onStart:s=>{x(!0)},onFinish:s=>{x(!1)}})},A=()=>{const t={method:"DELETE",headers:{"X-CSRF-TOKEN":document.getElementsByName("csrf-token")[0].getAttribute("content")}};fetch(route("sftp.destroy",r.id),t).then(s=>{s.redirected&&(window.location.href=s.url)})};return a(L,{auth:S,header:a("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:[r.username,"@",C,":",r.port," (",r.server.hostname,")"]}),children:[e(q,{title:"SFTP connection "+r.id}),a("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(Q,{href:route("sftp.index"),children:"Back to SFTP connections"})}),e(Y,{details:I}),a("section",{className:"bg-white/50 dark:bg-gray-700 rounded-lg shadow-sm",children:[a("div",{className:"py-6 px-4 mx-auto max-w-7xl",children:[a("div",{className:"flex items-center justify-between mb-4",children:[e("h1",{className:"text-2xl font-bold text-gray-800 dark:text-white",children:"Run SFTP command"}),a("small",{className:"text-end",children:[e(K,{className:"mr-2 h-6 w-6 text-gray-600 dark:text-white hover:text-gray-700 hover:dark:text-gray-300 inline hover:cursor-pointer",onClick:()=>y(!0),title:"Delete SFTP connection"}),e(X,{className:"md:ml-2 ml-1 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer",onClick:t=>window.location.href=route("sftp.edit",r.id),title:"Edit SFTP connection"}),e(z,{className:"md:ml-2 ml-1 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer",onClick:t=>window.location.href=route("sftp.read",r.id),title:"Read a file"}),e(G,{className:"md:ml-3 ml-2 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer",onClick:t=>window.location.href=route("server.show",r.server.id),title:"Go to server"}),e(J,{className:"md:ml-3 ml-2 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer",onClick:t=>window.location.href=route("sftp.create-download-to-server",r.id),title:"Download a file to this host server"})]})]}),a("form",{onSubmit:D,children:[e("div",{className:"grid gap-2 sm:grid-cols-1 md:grid-cols-4 sm:gap-4",children:a("div",{className:"col-span-4",children:[e(p,{forInput:"the_command1",value:"Command"}),e(h,{name:"the_command1",value:l.the_command1,className:"mt-1 block w-full",autoComplete:"the_command1",handleChange:t=>o("the_command1",t.target.value),maxLength:64,required:!0}),e(g,{message:i.the_command1,className:"mt-2"})]})}),e(f,{className:"inline-flex items-center px-5 py-2.5 mt-4 sm:mt-6 text-sm font-medium text-center text-white bg-primary-700 rounded-lg focus:ring-4 focus:ring-primary-200 dark:focus:ring-primary-900 hover:bg-primary-800",processing:m,children:"Run"})]})]}),a("div",{className:"py-2 px-4 mx-auto max-w-7xl",children:[a("div",{className:"grid gap-2 sm:grid-cols-1 md:grid-cols-4 sm:gap-4",children:[e("div",{className:"col-span-2",children:a("form",{action:route("sftp.download",r.id),method:"post",children:[e("input",{type:"hidden",name:"_token",value:document.getElementsByName("csrf-token")[0].getAttribute("content")}),e("div",{className:"grid gap-2 sm:grid-cols-1 md:grid-cols-4 sm:gap-4",children:a("div",{className:"col-span-4",children:[e("p",{className:"text-lg text-gray-800 dark:text-white pb-2",children:"Download a file"}),e(p,{forInput:"file",value:"Full file path and name"}),e(h,{name:"file",value:l.file,className:"mt-1 block w-full",autoComplete:"file",handleChange:t=>o("file",t.target.value),maxLength:255,required:!0}),e(g,{message:i.file,className:"mt-2"})]})}),e(f,{className:"inline-flex items-center px-5 py-2.5 mt-4 sm:mt-6 text-sm font-medium text-center text-white bg-primary-700 rounded-lg focus:ring-4 focus:ring-primary-200 dark:focus:ring-primary-900 hover:bg-primary-800",processing:m,children:"Download file"})]})}),e("div",{className:"col-span-2",children:a("form",{onSubmit:O,children:[a("div",{className:"grid gap-2 sm:grid-cols-1 md:grid-cols-4 sm:gap-4",children:[a("div",{className:"col-span-3",children:[e("p",{className:"text-lg text-gray-800 dark:text-white pb-2",children:"Upload a file"}),e(p,{forInput:"save_as",value:"Save as"}),e(h,{name:"save_as",value:l.save_as,className:"mt-1 block w-full",autoComplete:"file",handleChange:t=>o("save_as",t.target.value),maxLength:255,required:!0}),e(g,{message:i.save_as,className:"mt-2"})]}),a("div",{className:"col-span-1",children:[e("p",{className:"text-lg text-gray-800 dark:text-white pb-2",children:"‌"}),e("label",{className:"block mb-1 text-sm font-medium text-gray-900 dark:text-white",children:"File"}),e("input",{type:"file",className:"w-full px-4 py-2",name:"the_file",onChange:t=>o("the_file",t.target.files[0])}),e("span",{className:"text-red-600",children:i.the_file})]})]}),e(f,{className:"inline-flex items-center px-5 py-2.5 mt-3",processing:m,children:"Upload file"})]})})]}),e(W,{value:T})]})]}),a("section",{className:"bg-white/50 dark:bg-gray-700 rounded-lg mt-4",children:[e("h1",{className:"text-2xl font-bold text-gray-800 dark:text-white pl-4 pt-2",children:"SFTP Command output"}),e("div",{className:"pt-2 px-4 mx-auto max-w-7xl",children:c?a("p",{className:"text-gray-600 dark:text-gray-300 mb-2",children:[e("code",{className:"text-red-500 bg-gray-300 dark:bg-black p-1 rounded-md my-2",children:l.the_command1??null})," ",B/1e3%60,"s"]}):null}),e("div",{className:"py-4 px-4 mx-auto max-w-7xl",id:"command_output_div",children:e("span",{className:"text-gray-400 dark:text-gray-500",children:"Nothing run yet"})})]})]}),e(b,{show:E,size:"md",children:e(b.Body,{children:a("div",{className:"text-center",children:[e("h3",{className:"mb-5 text-lg font-normal text-gray-500 dark:text-gray-400",children:"Are you sure you want to delete this SFTP Connection?"}),a("div",{className:"flex justify-center gap-4",children:[e(_,{color:"failure",onClick:A,children:"Yes, I'm sure"}),e(_,{onClick:()=>y(!1),color:"gray",children:"No, cancel"})]})]})})})]})}export{fe as default}; diff --git a/public/build/assets/Show-19b7cd7f.js b/public/build/assets/Show-f503323b.js similarity index 81% rename from public/build/assets/Show-19b7cd7f.js rename to public/build/assets/Show-f503323b.js index 7e14f1e..c0ae30a 100644 --- a/public/build/assets/Show-19b7cd7f.js +++ b/public/build/assets/Show-f503323b.js @@ -1 +1 @@ -import{A as p}from"./AuthenticatedLayout-b0ac98cc.js";import{u as i,r as l,j as a,a as e,H as u}from"./app-7082a047.js";import{M as n,B as d}from"./Toast-a9c7a83a.js";import"./Table-13305096.js";import{H as g,n as f}from"./index.esm-eebfcfab.js";import{R as y}from"./Alert-af0dbb46.js";import{B as w}from"./BackButton-c0685269.js";import{C as b}from"./CreatedAtText-a1e22ba4.js";import{U as N}from"./UpdatedAtText-1126b185.js";import{a as k}from"./index.esm-6768e5ef.js";import"./ApplicationLogo-db4f8950.js";import"./transition-eb04b526.js";import"./index-9b0dda6f.js";function D({auth:c}){const m=i().props.alert,t=i().props.resource,[h,o]=l.useState(!1);l.useState(null);const x=()=>{const r={method:"DELETE",headers:{"X-CSRF-TOKEN":document.getElementsByName("csrf-token")[0].getAttribute("content")}};fetch(route("db.destroy",t.id),r).then(s=>{s.redirected&&(window.location.href=s.url)})};return a(p,{auth:c,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:t.name+" database"}),children:[e(u,{title:t.name+" database"}),a("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(w,{href:route("db.index"),children:"Back to databases"})}),e(y,{details:m}),e("section",{className:"bg-white/50 dark:bg-gray-700 rounded-lg shadow-sm",children:a("div",{className:"py-4 px-4 mx-auto max-w-7xl",children:[a("div",{className:"flex items-center justify-between",children:[e("div",{}),a("small",{className:"text-end",children:[e(g,{className:"mr-2 h-6 w-6 text-gray-600 dark:text-white hover:text-gray-700 hover:dark:text-gray-300 inline hover:cursor-pointer",onClick:()=>o(!0),title:"Delete database"}),e(k,{className:"md:ml-2 ml-1 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer",onClick:r=>window.location.href=route("db.show.tables",t.id),title:"View tables"}),e(f,{className:"md:ml-3 ml-2 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer",onClick:r=>window.location.href=route("db.connection.show",t.db_connection_id),title:"View connection"})]})]}),e("h2",{className:"mt-4 mb-2 text-xl font-bold leading-none text-gray-900 md:text-2xl dark:text-white",children:t.name}),a("p",{className:"mb-4 text-xl font-bold leading-none text-gray-600 md:text-xl dark:text-gray-300",children:[t.conn.host," (",t.conn.title,")"]}),a("div",{className:"grid md:grid-cols-2 grid-cols-1",children:[e("div",{className:"col-span-1",children:e(b,{created_at:t.created_at,string_format:"hh:mm:ssa do LLL yyyy"})}),e("div",{className:"col-span-1",children:e(N,{updated_at:t.updated_at,string_format:"hh:mm:ssa do LLL yyyy"})})]})]})})]}),e(n,{show:h,size:"md",children:e(n.Body,{children:a("div",{className:"text-center",children:[e("h3",{className:"mb-5 text-lg font-normal text-gray-500 dark:text-gray-400",children:"Are you sure you want to delete this database?"}),a("div",{className:"flex justify-center gap-4",children:[e(d,{color:"failure",onClick:x,children:"Yes, I'm sure"}),e(d,{onClick:()=>o(!1),color:"gray",children:"No, cancel"})]})]})})})]})}export{D as default}; +import{A as p}from"./AuthenticatedLayout-c4be06bd.js";import{u as i,r as l,j as a,a as e,H as u}from"./app-a8d4275f.js";import{M as n,B as d}from"./Toast-ee00046f.js";import"./Table-f19b692a.js";import{H as g,n as f}from"./index.esm-2010c99b.js";import{R as y}from"./Alert-d503f44b.js";import{B as w}from"./BackButton-2b60c346.js";import{C as b}from"./CreatedAtText-a06948df.js";import{U as N}from"./UpdatedAtText-9a96553e.js";import{a as k}from"./index.esm-456b3614.js";import"./ApplicationLogo-ae419612.js";import"./transition-fbe58e1e.js";import"./index-9b0dda6f.js";function D({auth:c}){const m=i().props.alert,t=i().props.resource,[h,o]=l.useState(!1);l.useState(null);const x=()=>{const r={method:"DELETE",headers:{"X-CSRF-TOKEN":document.getElementsByName("csrf-token")[0].getAttribute("content")}};fetch(route("db.destroy",t.id),r).then(s=>{s.redirected&&(window.location.href=s.url)})};return a(p,{auth:c,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:t.name+" database"}),children:[e(u,{title:t.name+" database"}),a("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(w,{href:route("db.index"),children:"Back to databases"})}),e(y,{details:m}),e("section",{className:"bg-white/50 dark:bg-gray-700 rounded-lg shadow-sm",children:a("div",{className:"py-4 px-4 mx-auto max-w-7xl",children:[a("div",{className:"flex items-center justify-between",children:[e("div",{}),a("small",{className:"text-end",children:[e(g,{className:"mr-2 h-6 w-6 text-gray-600 dark:text-white hover:text-gray-700 hover:dark:text-gray-300 inline hover:cursor-pointer",onClick:()=>o(!0),title:"Delete database"}),e(k,{className:"md:ml-2 ml-1 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer",onClick:r=>window.location.href=route("db.show.tables",t.id),title:"View tables"}),e(f,{className:"md:ml-3 ml-2 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer",onClick:r=>window.location.href=route("db.connection.show",t.db_connection_id),title:"View connection"})]})]}),e("h2",{className:"mt-4 mb-2 text-xl font-bold leading-none text-gray-900 md:text-2xl dark:text-white",children:t.name}),a("p",{className:"mb-4 text-xl font-bold leading-none text-gray-600 md:text-xl dark:text-gray-300",children:[t.conn.host," (",t.conn.title,")"]}),a("div",{className:"grid md:grid-cols-2 grid-cols-1",children:[e("div",{className:"col-span-1",children:e(b,{created_at:t.created_at,string_format:"hh:mm:ssa do LLL yyyy"})}),e("div",{className:"col-span-1",children:e(N,{updated_at:t.updated_at,string_format:"hh:mm:ssa do LLL yyyy"})})]})]})})]}),e(n,{show:h,size:"md",children:e(n.Body,{children:a("div",{className:"text-center",children:[e("h3",{className:"mb-5 text-lg font-normal text-gray-500 dark:text-gray-400",children:"Are you sure you want to delete this database?"}),a("div",{className:"flex justify-center gap-4",children:[e(d,{color:"failure",onClick:x,children:"Yes, I'm sure"}),e(d,{onClick:()=>o(!1),color:"gray",children:"No, cancel"})]})]})})})]})}export{D as default}; diff --git a/public/build/assets/Show-324ac644.js b/public/build/assets/Show-f6933070.js similarity index 87% rename from public/build/assets/Show-324ac644.js rename to public/build/assets/Show-f6933070.js index 2627cef..5928a30 100644 --- a/public/build/assets/Show-324ac644.js +++ b/public/build/assets/Show-f6933070.js @@ -1 +1 @@ -import{A as p}from"./AuthenticatedLayout-b0ac98cc.js";import{u as d,r as n,j as a,a as e,H as y}from"./app-7082a047.js";import{M as o,B as i}from"./Toast-a9c7a83a.js";import"./Table-13305096.js";import{H as f,a as b,b as w}from"./index.esm-eebfcfab.js";import{R as N}from"./Alert-af0dbb46.js";import{a as k}from"./axios-4a70c6fc.js";import{B as v}from"./BackButton-c0685269.js";import{C as m}from"./CreatedAtText-a1e22ba4.js";import{U as L}from"./UpdatedAtText-1126b185.js";import"./ApplicationLogo-db4f8950.js";import"./transition-eb04b526.js";import"./index-9b0dda6f.js";function R({auth:c}){const h=d().props.alert,t=d().props.resource,[x,s]=n.useState(!1);n.useState(null);const u=()=>{const r={method:"DELETE",headers:{"X-CSRF-TOKEN":document.getElementsByName("csrf-token")[0].getAttribute("content")}};fetch(route("mysqldump.destroy",t.id),r).then(l=>{l.redirected&&(window.location.href=l.url)})},g=()=>{k.get(route("mysqldump.run",t.id)).then(r=>{window.location.reload()}).catch(r=>{console.log("Error getting version")})};return a(p,{auth:c,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"MySQL dump"}),children:[e(y,{title:"MySQL dump"}),a("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(v,{href:route("mysqldump.index"),children:"Back to MySQL dumps"})}),e(N,{details:h}),e("section",{className:"bg-white/50 dark:bg-gray-700 rounded-lg shadow-sm",children:a("div",{className:"py-4 px-4 mx-auto max-w-7xl",children:[a("div",{className:"flex items-center justify-between",children:[a("div",{children:[" ",e("span",{className:"bg-indigo-200 text-indigo-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-indigo-900 dark:text-indigo-300",children:a("a",{href:route("db.show",t.database.id),children:["Database ",t.database.name]})}),t.version!==null?e("span",{className:"bg-green-100 text-green-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-green-900 dark:text-green-300",children:a("a",{href:route("server.show",t.server.id),children:["Server ",t.server.title]})}):null]}),a("small",{className:"text-end",children:[e(f,{className:"mr-2 h-6 w-6 text-gray-600 dark:text-white hover:text-gray-700 hover:dark:text-gray-300 inline hover:cursor-pointer",onClick:()=>s(!0),title:"Delete MySQL dump"}),e(b,{className:"md:ml-2 ml-1 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer",onClick:r=>window.location.href=route("mysqldump.edit",t.id),title:"Edit MySQL dump"}),e(w,{className:"md:ml-3 ml-1 h-6 w-6 text-gray-600 dark:text-white hover:text-gray-700 hover:dark:text-gray-300 inline hover:cursor-pointer",onClick:g,title:"Run this MySQL dump"})]})]}),(()=>typeof t.these_tables<"u"&&t.these_tables!==null?a("h2",{className:"mt-4 mb-2 text-xl font-bold leading-none text-gray-600 md:text-2xl dark:text-gray-300",children:["These tables only: ",e("span",{className:"text-gray-900 dark:text-white",children:t.these_tables})]}):e("h2",{className:"mt-4 mb-2 text-xl font-bold leading-none text-gray-900 md:text-2xl dark:text-white",children:"Whole database"}))(),a("h2",{className:"mt-4 mb-2 text-md font-bold leading-none text-gray-600 md:text-xl dark:text-gray-300",children:["Save as: ",a("span",{className:"text-gray-900 dark:text-white",children:[t.save_to,"/",t.save_as]})]}),a("h2",{className:"mt-4 mb-2 text-xl font-bold leading-none text-gray-600 md:text-xl dark:text-gray-300",children:["DB user: ",e("span",{className:"text-gray-900 dark:text-white",children:t.database_conn.username})]}),e("p",{className:"mb-4 text-xl font-bold leading-none md:text-2xl text-gray-900 dark:text-white",children:t.compress===1?"compress":null}),e("p",{className:"mb-4 text-xl font-bold leading-none text-gray-800 md:text-2xl dark:text-gray-300",children:t.flags}),a("div",{className:"grid md:grid-cols-3 grid-cols-3",children:[e("div",{className:"col-span-1",children:e(m,{created_at:t.created_at,string_format:"hh:mm:ssa do LLL yyyy"})}),e("div",{className:"col-span-1",children:e(L,{updated_at:t.updated_at,string_format:"hh:mm:ssa do LLL yyyy"})}),e("div",{className:"col-span-1",children:t.last_ran!==null?e(m,{created_at:t.last_ran,string_format:"hh:mm:ssa do LLL yyyy",pre_text:"Last ran at: "}):null})]})]})})]}),e(o,{show:x,size:"md",children:e(o.Body,{children:a("div",{className:"text-center",children:[e("h3",{className:"mb-5 text-lg font-normal text-gray-500 dark:text-gray-400",children:"Are you sure you want to delete this MySQL dump?"}),a("div",{className:"flex justify-center gap-4",children:[e(i,{color:"failure",onClick:u,children:"Yes, I'm sure"}),e(i,{onClick:()=>s(!1),color:"gray",children:"No, cancel"})]})]})})})]})}export{R as default}; +import{A as p}from"./AuthenticatedLayout-c4be06bd.js";import{u as d,r as n,j as a,a as e,H as y}from"./app-a8d4275f.js";import{M as o,B as i}from"./Toast-ee00046f.js";import"./Table-f19b692a.js";import{H as f,a as b,b as w}from"./index.esm-2010c99b.js";import{R as N}from"./Alert-d503f44b.js";import{a as k}from"./axios-4a70c6fc.js";import{B as v}from"./BackButton-2b60c346.js";import{C as m}from"./CreatedAtText-a06948df.js";import{U as L}from"./UpdatedAtText-9a96553e.js";import"./ApplicationLogo-ae419612.js";import"./transition-fbe58e1e.js";import"./index-9b0dda6f.js";function R({auth:c}){const h=d().props.alert,t=d().props.resource,[x,s]=n.useState(!1);n.useState(null);const u=()=>{const r={method:"DELETE",headers:{"X-CSRF-TOKEN":document.getElementsByName("csrf-token")[0].getAttribute("content")}};fetch(route("mysqldump.destroy",t.id),r).then(l=>{l.redirected&&(window.location.href=l.url)})},g=()=>{k.get(route("mysqldump.run",t.id)).then(r=>{window.location.reload()}).catch(r=>{console.log("Error getting version")})};return a(p,{auth:c,header:e("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:"MySQL dump"}),children:[e(y,{title:"MySQL dump"}),a("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[e("div",{className:"flex flex-wrap gap-2 mb-4",children:e(v,{href:route("mysqldump.index"),children:"Back to MySQL dumps"})}),e(N,{details:h}),e("section",{className:"bg-white/50 dark:bg-gray-700 rounded-lg shadow-sm",children:a("div",{className:"py-4 px-4 mx-auto max-w-7xl",children:[a("div",{className:"flex items-center justify-between",children:[a("div",{children:[" ",e("span",{className:"bg-indigo-200 text-indigo-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-indigo-900 dark:text-indigo-300",children:a("a",{href:route("db.show",t.database.id),children:["Database ",t.database.name]})}),t.version!==null?e("span",{className:"bg-green-100 text-green-800 text-xs font-medium mr-2 px-2.5 py-0.5 rounded dark:bg-green-900 dark:text-green-300",children:a("a",{href:route("server.show",t.server.id),children:["Server ",t.server.title]})}):null]}),a("small",{className:"text-end",children:[e(f,{className:"mr-2 h-6 w-6 text-gray-600 dark:text-white hover:text-gray-700 hover:dark:text-gray-300 inline hover:cursor-pointer",onClick:()=>s(!0),title:"Delete MySQL dump"}),e(b,{className:"md:ml-2 ml-1 h-6 w-6 text-gray-600 dark:text-white inline hover:cursor-pointer",onClick:r=>window.location.href=route("mysqldump.edit",t.id),title:"Edit MySQL dump"}),e(w,{className:"md:ml-3 ml-1 h-6 w-6 text-gray-600 dark:text-white hover:text-gray-700 hover:dark:text-gray-300 inline hover:cursor-pointer",onClick:g,title:"Run this MySQL dump"})]})]}),(()=>typeof t.these_tables<"u"&&t.these_tables!==null?a("h2",{className:"mt-4 mb-2 text-xl font-bold leading-none text-gray-600 md:text-2xl dark:text-gray-300",children:["These tables only: ",e("span",{className:"text-gray-900 dark:text-white",children:t.these_tables})]}):e("h2",{className:"mt-4 mb-2 text-xl font-bold leading-none text-gray-900 md:text-2xl dark:text-white",children:"Whole database"}))(),a("h2",{className:"mt-4 mb-2 text-md font-bold leading-none text-gray-600 md:text-xl dark:text-gray-300",children:["Save as: ",a("span",{className:"text-gray-900 dark:text-white",children:[t.save_to,"/",t.save_as]})]}),a("h2",{className:"mt-4 mb-2 text-xl font-bold leading-none text-gray-600 md:text-xl dark:text-gray-300",children:["DB user: ",e("span",{className:"text-gray-900 dark:text-white",children:t.database_conn.username})]}),e("p",{className:"mb-4 text-xl font-bold leading-none md:text-2xl text-gray-900 dark:text-white",children:t.compress===1?"compress":null}),e("p",{className:"mb-4 text-xl font-bold leading-none text-gray-800 md:text-2xl dark:text-gray-300",children:t.flags}),a("div",{className:"grid md:grid-cols-3 grid-cols-3",children:[e("div",{className:"col-span-1",children:e(m,{created_at:t.created_at,string_format:"hh:mm:ssa do LLL yyyy"})}),e("div",{className:"col-span-1",children:e(L,{updated_at:t.updated_at,string_format:"hh:mm:ssa do LLL yyyy"})}),e("div",{className:"col-span-1",children:t.last_ran!==null?e(m,{created_at:t.last_ran,string_format:"hh:mm:ssa do LLL yyyy",pre_text:"Last ran at: "}):null})]})]})})]}),e(o,{show:x,size:"md",children:e(o.Body,{children:a("div",{className:"text-center",children:[e("h3",{className:"mb-5 text-lg font-normal text-gray-500 dark:text-gray-400",children:"Are you sure you want to delete this MySQL dump?"}),a("div",{className:"flex justify-center gap-4",children:[e(i,{color:"failure",onClick:u,children:"Yes, I'm sure"}),e(i,{onClick:()=>s(!1),color:"gray",children:"No, cancel"})]})]})})})]})}export{R as default}; diff --git a/public/build/assets/ShowPublic-38433de5.js b/public/build/assets/ShowPublic-38433de5.js deleted file mode 100644 index 5edaed9..0000000 --- a/public/build/assets/ShowPublic-38433de5.js +++ /dev/null @@ -1 +0,0 @@ -import{u as r,j as a,a as e,H as o}from"./app-7082a047.js";import"./Toast-a9c7a83a.js";import"./Table-13305096.js";import{C as s}from"./Card-4b32b85d.js";import{O as m}from"./Output-dd9f99a9.js";import{G as i}from"./GuestLayout-3dfccb91.js";import"./index.esm-eebfcfab.js";import"./index-9b0dda6f.js";import"./ApplicationLogo-db4f8950.js";function g(){const t=r().props.resource;return a(i,{wide:!0,children:[e(o,{title:"Command "+t.id}),e("div",{className:"py-6 px-2 mx-auto max-w-7xl lg:py-8",children:e("div",{className:"grid gap-2 grid-cols-1 sm:gap-4",children:e(s,{children:e(m,{title:"Command "+t.id,the_command:t.the_command,created_at:t.created_at,the_output:t.output,seconds:t.seconds_taken})})})})]})}export{g as default}; diff --git a/public/build/assets/ShowPublic-a0427d9c.js b/public/build/assets/ShowPublic-a0427d9c.js new file mode 100644 index 0000000..53cc3ab --- /dev/null +++ b/public/build/assets/ShowPublic-a0427d9c.js @@ -0,0 +1 @@ +import{u as r,j as a,a as e,H as o}from"./app-a8d4275f.js";import"./Toast-ee00046f.js";import"./Table-f19b692a.js";import{C as s}from"./Card-0ddd50a2.js";import{O as m}from"./Output-2c144da2.js";import{G as i}from"./GuestLayout-fc7cb66d.js";import"./index.esm-2010c99b.js";import"./index-9b0dda6f.js";import"./ApplicationLogo-ae419612.js";function g(){const t=r().props.resource;return a(i,{wide:!0,children:[e(o,{title:"Command "+t.id}),e("div",{className:"py-6 px-2 mx-auto max-w-7xl lg:py-8",children:e("div",{className:"grid gap-2 grid-cols-1 sm:gap-4",children:e(s,{children:e(m,{title:"Command "+t.id,the_command:t.the_command,created_at:t.created_at,the_output:t.output,seconds:t.seconds_taken})})})})]})}export{g as default}; diff --git a/public/build/assets/Table-13305096.js b/public/build/assets/Table-f19b692a.js similarity index 99% rename from public/build/assets/Table-13305096.js rename to public/build/assets/Table-f19b692a.js index 98f356f..32aa390 100644 --- a/public/build/assets/Table-13305096.js +++ b/public/build/assets/Table-f19b692a.js @@ -1,4 +1,4 @@ -import{g as m,r as b,a as d}from"./app-7082a047.js";var f={exports:{}};/*! +import{g as m,r as b,a as d}from"./app-a8d4275f.js";var f={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames diff --git a/public/build/assets/TealButton-9ca5476f.js b/public/build/assets/TealButton-374c27c1.js similarity index 90% rename from public/build/assets/TealButton-9ca5476f.js rename to public/build/assets/TealButton-374c27c1.js index 30f4b82..c4d7f9e 100644 --- a/public/build/assets/TealButton-9ca5476f.js +++ b/public/build/assets/TealButton-374c27c1.js @@ -1 +1 @@ -import{a as e}from"./app-7082a047.js";function i({href:r,className:t="",children:n,onClick:a,disabled:o}){return e("a",{href:r,onClick:a,className:`text-white bg-teal-500 hover:bg-teal-700 dark:bg-teal-500 dark:hover:bg-teal-700 border border-transparent focus:ring-4 focus:ring-teal-300 disabled:hover:bg-teal-700 dark:focus:ring-teal-900 dark:disabled:hover:bg-teal-600 focus:!ring-2 group flex h-min items-center justify-center p-0.5 text-sm focus:z-10 inline-flex items-center rounded-lg px-5 py-1.5 text-center hover:cursor-pointer ${o?"pointer-events-none cursor-progress":""}`+t,children:e("span",{className:"flex items-center rounded-md",children:n})})}export{i as T}; +import{a as e}from"./app-a8d4275f.js";function i({href:r,className:t="",children:n,onClick:a,disabled:o}){return e("a",{href:r,onClick:a,className:`text-white bg-teal-500 hover:bg-teal-700 dark:bg-teal-500 dark:hover:bg-teal-700 border border-transparent focus:ring-4 focus:ring-teal-300 disabled:hover:bg-teal-700 dark:focus:ring-teal-900 dark:disabled:hover:bg-teal-600 focus:!ring-2 group flex h-min items-center justify-center p-0.5 text-sm focus:z-10 inline-flex items-center rounded-lg px-5 py-1.5 text-center hover:cursor-pointer ${o?"pointer-events-none cursor-progress":""}`+t,children:e("span",{className:"flex items-center rounded-md",children:n})})}export{i as T}; diff --git a/public/build/assets/TextInput-38986df9.js b/public/build/assets/TextInput-1e9aadbd.js similarity index 93% rename from public/build/assets/TextInput-38986df9.js rename to public/build/assets/TextInput-1e9aadbd.js index 3f37dd7..bf4243c 100644 --- a/public/build/assets/TextInput-38986df9.js +++ b/public/build/assets/TextInput-1e9aadbd.js @@ -1 +1 @@ -import{a,r as t}from"./app-7082a047.js";function w({message:r,className:e=""}){return r?a("p",{className:"text-sm text-red-600 "+e,children:r}):null}const E=t.forwardRef(function({type:e="text",name:n,id:c,value:u,className:d,autoComplete:f,required:i,step:l,minLength:p,maxLength:x,min:g,max:m,isFocused:y,handleChange:b,disabled:k},o){const s=o||t.useRef();return t.useEffect(()=>{y&&s.current.focus()},[]),a("div",{className:"flex flex-col items-start",children:a("input",{type:e,name:n,id:c,value:u,className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-primary-600 focus:border-primary-600 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-primary-500 dark:focus:border-primary-500"+d,ref:s,autoComplete:f,required:i,step:l,minLength:p,maxLength:x,min:g,max:m,onChange:h=>b(h),disabled:k})})});export{w as I,E as T}; +import{a,r as t}from"./app-a8d4275f.js";function w({message:r,className:e=""}){return r?a("p",{className:"text-sm text-red-600 "+e,children:r}):null}const E=t.forwardRef(function({type:e="text",name:n,id:c,value:u,className:d,autoComplete:f,required:i,step:l,minLength:p,maxLength:x,min:g,max:m,isFocused:y,handleChange:b,disabled:k},o){const s=o||t.useRef();return t.useEffect(()=>{y&&s.current.focus()},[]),a("div",{className:"flex flex-col items-start",children:a("input",{type:e,name:n,id:c,value:u,className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-primary-600 focus:border-primary-600 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-primary-500 dark:focus:border-primary-500"+d,ref:s,autoComplete:f,required:i,step:l,minLength:p,maxLength:x,min:g,max:m,onChange:h=>b(h),disabled:k})})});export{w as I,E as T}; diff --git a/public/build/assets/Toast-a9c7a83a.js b/public/build/assets/Toast-ee00046f.js similarity index 99% rename from public/build/assets/Toast-a9c7a83a.js rename to public/build/assets/Toast-ee00046f.js index e517464..c51f2e8 100644 --- a/public/build/assets/Toast-a9c7a83a.js +++ b/public/build/assets/Toast-ee00046f.js @@ -1,4 +1,4 @@ -import{r as p,a as u,j as k,F as Z,R as de,e as ut,f as dt}from"./app-7082a047.js";import{u as E,c as y}from"./Table-13305096.js";import{p as ft,q as mt,r as pt,s as Fn,t as Bn,u as jn,G as Hn,v as zn,w as Gn}from"./index.esm-eebfcfab.js";function ne(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function Ie(e){if(!ne(e))return e;const o={...e};return Object.keys(e).forEach(n=>{o[n]=Ie(e[n])}),o}function j(e,o){if(ne(o)&&Object.keys(o).length===0)return Ie({...e,...o});let n={...e,...o};return ne(o)&&ne(e)&&Object.keys(o).forEach(t=>{ne(o[t])&&t in e&&ne(e[t])?n[t]=j(e[t],o[t]):n[t]=ne(o[t])?Ie(o[t]):o[t]}),n}const ht=p.createContext(void 0);function gt(){const e=p.useContext(ht);if(!e)throw new Error("useAccordionContext should be used within the AccordionPanelContext provider!");return e}const bt=({children:e,className:o,theme:n={},...t})=>{const{isOpen:r}=gt(),i=j(E().theme.accordion.content,n);return u("div",{className:y(i.base,o),"data-testid":"flowbite-accordion-content",hidden:!r,...t,children:e})},vt=({children:e,...o})=>{const{alwaysOpen:n}=o,[t,r]=p.useState(o.isOpen),i=n?{...o,isOpen:t,setOpen:()=>r(!t)}:o;return u(ht.Provider,{value:i,children:e})},yt=({as:e="h2",children:o,className:n,theme:t={},...r})=>{const{arrowIcon:i,flush:s,isOpen:a,setOpen:l}=gt(),d=()=>typeof l<"u"&&l(),c=j(E().theme.accordion.title,t);return k("button",{className:y(c.base,c.flush[s?"on":"off"],c.open[a?"on":"off"],n),onClick:d,type:"button",...r,children:[u(e,{className:c.heading,"data-testid":"flowbite-accordion-heading",children:o}),i&&u(i,{"aria-hidden":!0,className:y(c.arrow.base,c.arrow.open[a?"on":"off"]),"data-testid":"flowbite-accordion-arrow"})]})},wt=({alwaysOpen:e=!1,arrowIcon:o=ft,children:n,flush:t=!1,collapseAll:r=!1,className:i,theme:s={},...a})=>{const[l,d]=p.useState(r?-1:0),c=p.useMemo(()=>p.Children.map(n,(f,h)=>p.cloneElement(f,{alwaysOpen:e,arrowIcon:o,flush:t,isOpen:l===h,setOpen:()=>d(h)})),[e,o,n,t,l]),m=j(E().theme.accordion.root,s);return u("div",{className:y(m.base,m.flush[t?"on":"off"],i),"data-testid":"flowbite-accordion",...a,children:c})};wt.displayName="Accordion";vt.displayName="Accordion.Panel";yt.displayName="Accordion.Title";bt.displayName="Accordion.Content";Object.assign(wt,{Panel:vt,Title:yt,Content:bt});const xt=({children:e,className:o,theme:n={},...t})=>{const r=j(E().theme.avatarGroup.root,n);return u("div",{"data-testid":"avatar-group-element",className:y(r.base,o),...t,children:e})};xt.displayName="Avatar.Group";const Nt=({total:e,href:o,className:n,theme:t={}})=>{const r=j(E().theme.avatarGroupCounter.root,t);return k("a",{className:y(r.base,n),href:o,children:["+",e]})};Nt.displayName="Avatar.GroupCounter";const Ct=({alt:e="",bordered:o=!1,children:n,img:t,color:r="light",rounded:i=!1,size:s="md",stacked:a=!1,status:l,statusPosition:d="top-left",placeholderInitials:c="",className:m,theme:f={},...h})=>{const b=j(E().theme.avatar,f),N=y(o&&b.root.bordered,o&&b.root.color[r],i&&b.root.rounded,a&&b.root.stacked,b.img.on,b.root.size[s]),x={alt:e,className:y(N,b.img.on),"data-testid":"flowbite-avatar-img"};return k("div",{className:y(b.root.base,m),"data-testid":"flowbite-avatar",...h,children:[k("div",{className:"relative",children:[t?typeof t=="string"?u("img",{...x,src:t}):t(x):c?u("div",{className:y(b.img.off,b.initials.base,i&&b.root.rounded,a&&b.root.stacked,o&&b.root.bordered,o&&b.root.color[r]),"data-testid":"flowbite-avatar-initials-placeholder",children:u("span",{className:y(b.initials.text),"data-testid":"flowbite-avatar-initials-placeholder-text",children:c})}):u("div",{className:y(N,b.img.off),"data-testid":"flowbite-avatar-img",children:u("svg",{className:b.img.placeholder,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:u("path",{fillRule:"evenodd",d:"M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z",clipRule:"evenodd"})})}),l&&u("span",{"data-testid":"flowbite-avatar-status",className:y(b.status.base,b.status[l],b.root.statusPosition[d])})]}),n&&u("div",{children:n})]})};Ct.displayName="Avatar";Object.assign(Ct,{Group:xt,Counter:Nt});const Wn=({children:e,color:o="info",href:n,icon:t,size:r="xs",className:i,theme:s={},...a})=>{const l=j(E().theme.badge,s),d=()=>k("span",{className:y(l.root.base,l.root.color[o],l.icon[t?"on":"off"],l.root.size[r],i),"data-testid":"flowbite-badge",...a,children:[t&&u(t,{"aria-hidden":!0,className:l.icon.size[r],"data-testid":"flowbite-badge-icon"}),e&&u("span",{children:e})]});return n?u("a",{className:l.root.href,href:n,children:u(d,{})}):u(d,{})},Rt=p.forwardRef(({children:e,className:o,href:n,icon:t,theme:r={},...i},s)=>{const a=typeof n<"u",l=a?"a":"span",d=j(E().theme.breadcrumb.item,r);return k("li",{className:y(d.base,o),...i,children:[u(mt,{"aria-hidden":!0,className:d.chevron,"data-testid":"flowbite-breadcrumb-separator"}),k(l,{ref:s,className:d.href[a?"on":"off"],"data-testid":"flowbite-breadcrumb-item",href:n,children:[t&&u(t,{"aria-hidden":!0,className:d.icon}),e]})]})});Rt.displayName="Breadcrumb.Item";const Et=({children:e,className:o,theme:n={},...t})=>{const r=j(E().theme.breadcrumb.root,n);return u("nav",{"aria-label":"Breadcrumb",className:y(r.base,o),...t,children:u("ol",{className:r.list,children:e})})};Et.displayName="Breadcrumb";Object.assign(Et,{Item:Rt});const Tt=({children:e,outline:o,pill:n,className:t,...r})=>{const i=p.useMemo(()=>p.Children.map(e,(a,l)=>p.cloneElement(a,{outline:o,pill:n,positionInGroup:l===0?"start":l===e.length-1?"end":"middle"})),[e,o,n]),s=E().theme.buttonGroup;return u("div",{className:y(s.base,t),role:"group",...r,children:i})};Tt.displayName="Button.Group";const Lt=p.forwardRef(({children:e,color:o="info",disabled:n=!1,gradientDuoTone:t,gradientMonochrome:r,href:i,label:s,outline:a=!1,pill:l=!1,fullSized:d,positionInGroup:c="none",size:m="md",className:f,...h},b)=>{const N=typeof i<"u",{buttonGroup:x,button:C}=E().theme,v=N?"a":"button",w=h;return u(v,{className:y(n&&C.disabled,!t&&!r&&C.color[o],t&&!r&&C.gradientDuoTone[t],!t&&r&&C.gradient[r],x.position[c],a&&(C.outline.color[o]??C.outline.color.default),C.base,C.pill[l?"on":"off"],d&&C.fullSized,f),disabled:n,href:i,type:N?void 0:"button",ref:b,...w,children:u("span",{className:y(C.inner.base,C.inner.position[c],C.outline[a?"on":"off"],C.outline.pill[a&&l?"on":"off"],C.size[m],a&&!C.outline.color[o]&&C.inner.outline),children:k(Z,{children:[typeof e<"u"&&e,typeof s<"u"&&u("span",{className:C.label,"data-testid":"flowbite-button-label",children:s})]})})})});Lt.displayName="Button";const Vn=Object.assign(Lt,{Group:Tt});/*! ***************************************************************************** +import{r as p,a as u,j as k,F as Z,R as de,e as ut,f as dt}from"./app-a8d4275f.js";import{u as E,c as y}from"./Table-f19b692a.js";import{p as ft,q as mt,r as pt,s as Fn,t as Bn,u as jn,G as Hn,v as zn,w as Gn}from"./index.esm-2010c99b.js";function ne(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function Ie(e){if(!ne(e))return e;const o={...e};return Object.keys(e).forEach(n=>{o[n]=Ie(e[n])}),o}function j(e,o){if(ne(o)&&Object.keys(o).length===0)return Ie({...e,...o});let n={...e,...o};return ne(o)&&ne(e)&&Object.keys(o).forEach(t=>{ne(o[t])&&t in e&&ne(e[t])?n[t]=j(e[t],o[t]):n[t]=ne(o[t])?Ie(o[t]):o[t]}),n}const ht=p.createContext(void 0);function gt(){const e=p.useContext(ht);if(!e)throw new Error("useAccordionContext should be used within the AccordionPanelContext provider!");return e}const bt=({children:e,className:o,theme:n={},...t})=>{const{isOpen:r}=gt(),i=j(E().theme.accordion.content,n);return u("div",{className:y(i.base,o),"data-testid":"flowbite-accordion-content",hidden:!r,...t,children:e})},vt=({children:e,...o})=>{const{alwaysOpen:n}=o,[t,r]=p.useState(o.isOpen),i=n?{...o,isOpen:t,setOpen:()=>r(!t)}:o;return u(ht.Provider,{value:i,children:e})},yt=({as:e="h2",children:o,className:n,theme:t={},...r})=>{const{arrowIcon:i,flush:s,isOpen:a,setOpen:l}=gt(),d=()=>typeof l<"u"&&l(),c=j(E().theme.accordion.title,t);return k("button",{className:y(c.base,c.flush[s?"on":"off"],c.open[a?"on":"off"],n),onClick:d,type:"button",...r,children:[u(e,{className:c.heading,"data-testid":"flowbite-accordion-heading",children:o}),i&&u(i,{"aria-hidden":!0,className:y(c.arrow.base,c.arrow.open[a?"on":"off"]),"data-testid":"flowbite-accordion-arrow"})]})},wt=({alwaysOpen:e=!1,arrowIcon:o=ft,children:n,flush:t=!1,collapseAll:r=!1,className:i,theme:s={},...a})=>{const[l,d]=p.useState(r?-1:0),c=p.useMemo(()=>p.Children.map(n,(f,h)=>p.cloneElement(f,{alwaysOpen:e,arrowIcon:o,flush:t,isOpen:l===h,setOpen:()=>d(h)})),[e,o,n,t,l]),m=j(E().theme.accordion.root,s);return u("div",{className:y(m.base,m.flush[t?"on":"off"],i),"data-testid":"flowbite-accordion",...a,children:c})};wt.displayName="Accordion";vt.displayName="Accordion.Panel";yt.displayName="Accordion.Title";bt.displayName="Accordion.Content";Object.assign(wt,{Panel:vt,Title:yt,Content:bt});const xt=({children:e,className:o,theme:n={},...t})=>{const r=j(E().theme.avatarGroup.root,n);return u("div",{"data-testid":"avatar-group-element",className:y(r.base,o),...t,children:e})};xt.displayName="Avatar.Group";const Nt=({total:e,href:o,className:n,theme:t={}})=>{const r=j(E().theme.avatarGroupCounter.root,t);return k("a",{className:y(r.base,n),href:o,children:["+",e]})};Nt.displayName="Avatar.GroupCounter";const Ct=({alt:e="",bordered:o=!1,children:n,img:t,color:r="light",rounded:i=!1,size:s="md",stacked:a=!1,status:l,statusPosition:d="top-left",placeholderInitials:c="",className:m,theme:f={},...h})=>{const b=j(E().theme.avatar,f),N=y(o&&b.root.bordered,o&&b.root.color[r],i&&b.root.rounded,a&&b.root.stacked,b.img.on,b.root.size[s]),x={alt:e,className:y(N,b.img.on),"data-testid":"flowbite-avatar-img"};return k("div",{className:y(b.root.base,m),"data-testid":"flowbite-avatar",...h,children:[k("div",{className:"relative",children:[t?typeof t=="string"?u("img",{...x,src:t}):t(x):c?u("div",{className:y(b.img.off,b.initials.base,i&&b.root.rounded,a&&b.root.stacked,o&&b.root.bordered,o&&b.root.color[r]),"data-testid":"flowbite-avatar-initials-placeholder",children:u("span",{className:y(b.initials.text),"data-testid":"flowbite-avatar-initials-placeholder-text",children:c})}):u("div",{className:y(N,b.img.off),"data-testid":"flowbite-avatar-img",children:u("svg",{className:b.img.placeholder,fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:u("path",{fillRule:"evenodd",d:"M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z",clipRule:"evenodd"})})}),l&&u("span",{"data-testid":"flowbite-avatar-status",className:y(b.status.base,b.status[l],b.root.statusPosition[d])})]}),n&&u("div",{children:n})]})};Ct.displayName="Avatar";Object.assign(Ct,{Group:xt,Counter:Nt});const Wn=({children:e,color:o="info",href:n,icon:t,size:r="xs",className:i,theme:s={},...a})=>{const l=j(E().theme.badge,s),d=()=>k("span",{className:y(l.root.base,l.root.color[o],l.icon[t?"on":"off"],l.root.size[r],i),"data-testid":"flowbite-badge",...a,children:[t&&u(t,{"aria-hidden":!0,className:l.icon.size[r],"data-testid":"flowbite-badge-icon"}),e&&u("span",{children:e})]});return n?u("a",{className:l.root.href,href:n,children:u(d,{})}):u(d,{})},Rt=p.forwardRef(({children:e,className:o,href:n,icon:t,theme:r={},...i},s)=>{const a=typeof n<"u",l=a?"a":"span",d=j(E().theme.breadcrumb.item,r);return k("li",{className:y(d.base,o),...i,children:[u(mt,{"aria-hidden":!0,className:d.chevron,"data-testid":"flowbite-breadcrumb-separator"}),k(l,{ref:s,className:d.href[a?"on":"off"],"data-testid":"flowbite-breadcrumb-item",href:n,children:[t&&u(t,{"aria-hidden":!0,className:d.icon}),e]})]})});Rt.displayName="Breadcrumb.Item";const Et=({children:e,className:o,theme:n={},...t})=>{const r=j(E().theme.breadcrumb.root,n);return u("nav",{"aria-label":"Breadcrumb",className:y(r.base,o),...t,children:u("ol",{className:r.list,children:e})})};Et.displayName="Breadcrumb";Object.assign(Et,{Item:Rt});const Tt=({children:e,outline:o,pill:n,className:t,...r})=>{const i=p.useMemo(()=>p.Children.map(e,(a,l)=>p.cloneElement(a,{outline:o,pill:n,positionInGroup:l===0?"start":l===e.length-1?"end":"middle"})),[e,o,n]),s=E().theme.buttonGroup;return u("div",{className:y(s.base,t),role:"group",...r,children:i})};Tt.displayName="Button.Group";const Lt=p.forwardRef(({children:e,color:o="info",disabled:n=!1,gradientDuoTone:t,gradientMonochrome:r,href:i,label:s,outline:a=!1,pill:l=!1,fullSized:d,positionInGroup:c="none",size:m="md",className:f,...h},b)=>{const N=typeof i<"u",{buttonGroup:x,button:C}=E().theme,v=N?"a":"button",w=h;return u(v,{className:y(n&&C.disabled,!t&&!r&&C.color[o],t&&!r&&C.gradientDuoTone[t],!t&&r&&C.gradient[r],x.position[c],a&&(C.outline.color[o]??C.outline.color.default),C.base,C.pill[l?"on":"off"],d&&C.fullSized,f),disabled:n,href:i,type:N?void 0:"button",ref:b,...w,children:u("span",{className:y(C.inner.base,C.inner.position[c],C.outline[a?"on":"off"],C.outline.pill[a&&l?"on":"off"],C.size[m],a&&!C.outline.color[o]&&C.inner.outline),children:k(Z,{children:[typeof e<"u"&&e,typeof s<"u"&&u("span",{className:C.label,"data-testid":"flowbite-button-label",children:s})]})})})});Lt.displayName="Button";const Vn=Object.assign(Lt,{Group:Tt});/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any diff --git a/public/build/assets/UpdateButton-5ed5f67f.js b/public/build/assets/UpdateButton-5faf9e0a.js similarity index 82% rename from public/build/assets/UpdateButton-5ed5f67f.js rename to public/build/assets/UpdateButton-5faf9e0a.js index 1ec9956..db14a1d 100644 --- a/public/build/assets/UpdateButton-5ed5f67f.js +++ b/public/build/assets/UpdateButton-5faf9e0a.js @@ -1 +1 @@ -import{j as o}from"./index.esm-eebfcfab.js";import{j as n,a as i}from"./app-7082a047.js";function d({type:e="submit",className:r="",processing:t,children:s,onClick:p}){return n("button",{type:e,onClick:p,className:"text-white bg-purple-600 hover:bg-purple-700 dark:bg-purple-600 dark:hover:bg-purple-700 mt-6 uppercase font-semibold tracking-widest focus:ring-4 focus:ring-purple-300 disabled:hover:bg-purple-800 border border-transparent dark:focus:ring-purple-900 dark:disabled:hover:bg-purple-600 focus:!ring-2 group flex h-min items-center justify-center p-0.5 focus:z-10 inline-flex items-center focus:outline-none rounded-md text-xs px-5 py-2 text-center "+r,disabled:t,children:[i(o,{className:"mr-2 h-5 w-5"}),s]})}export{d as U}; +import{j as o}from"./index.esm-2010c99b.js";import{j as n,a as i}from"./app-a8d4275f.js";function d({type:e="submit",className:r="",processing:t,children:s,onClick:p}){return n("button",{type:e,onClick:p,className:"text-white bg-purple-600 hover:bg-purple-700 dark:bg-purple-600 dark:hover:bg-purple-700 mt-6 uppercase font-semibold tracking-widest focus:ring-4 focus:ring-purple-300 disabled:hover:bg-purple-800 border border-transparent dark:focus:ring-purple-900 dark:disabled:hover:bg-purple-600 focus:!ring-2 group flex h-min items-center justify-center p-0.5 focus:z-10 inline-flex items-center focus:outline-none rounded-md text-xs px-5 py-2 text-center "+r,disabled:t,children:[i(o,{className:"mr-2 h-5 w-5"}),s]})}export{d as U}; diff --git a/public/build/assets/UpdatePasswordForm-970880e4.js b/public/build/assets/UpdatePasswordForm-e9566b54.js similarity index 87% rename from public/build/assets/UpdatePasswordForm-970880e4.js rename to public/build/assets/UpdatePasswordForm-e9566b54.js index 0f1079d..d28acce 100644 --- a/public/build/assets/UpdatePasswordForm-970880e4.js +++ b/public/build/assets/UpdatePasswordForm-e9566b54.js @@ -1 +1 @@ -import{r as i,b as g,j as r,a as s}from"./app-7082a047.js";import{T as c,I as d}from"./TextInput-38986df9.js";import{I as p}from"./InputLabel-04829bce.js";import{U as v}from"./UpdateButton-5ed5f67f.js";import{t as N}from"./transition-eb04b526.js";import"./index.esm-eebfcfab.js";function k({className:u}){const l=i.useRef(),m=i.useRef(),{data:o,setData:t,errors:e,put:w,reset:n,processing:f,recentlySuccessful:h}=g({current_password:"",password:"",password_confirmation:""});return r("section",{className:u,children:[r("header",{children:[s("h2",{className:"text-lg font-medium text-gray-900 dark:text-white",children:"Update Password"}),s("p",{className:"mt-1 text-sm text-gray-600 dark:text-gray-400",children:"Ensure your account is using a long, random password to stay secure."})]}),s("form",{onSubmit:a=>{a.preventDefault(),w(route("password.update"),{preserveScroll:!0,onSuccess:()=>n(),onError:()=>{e.password&&(n("password","password_confirmation"),l.current.focus()),e.current_password&&(n("current_password"),m.current.focus())}})},className:"mt-6 space-y-6",children:r("div",{className:"grid grid-cols-1 md:grid-cols-6 sm:gap-4",children:[r("div",{className:"sm:col-span-3 col-span-4 mb-2",children:[s(p,{for:"current_password",value:"Current Password"}),s(c,{id:"current_password",ref:m,value:o.current_password,handleChange:a=>t("current_password",a.target.value),type:"password",className:"mt-1 block w-full",autoComplete:"current-password"}),s(d,{message:e.current_password,className:"mt-2"})]}),r("div",{className:"sm:col-span-3 col-span-4 mb-2",children:[s(p,{for:"password",value:"New Password"}),s(c,{id:"password",ref:l,value:o.password,handleChange:a=>t("password",a.target.value),type:"password",className:"mt-1 block w-full",autoComplete:"new-password"}),s(d,{message:e.password,className:"mt-2"})]}),r("div",{className:"sm:col-span-3 col-span-4 mb-2",children:[s(p,{for:"password_confirmation",value:"Confirm Password"}),s(c,{id:"password_confirmation",value:o.password_confirmation,handleChange:a=>t("password_confirmation",a.target.value),type:"password",className:"mt-1 block w-full",autoComplete:"new-password"}),s(d,{message:e.password_confirmation,className:"mt-2"})]}),r("div",{className:"flex items-center gap-4 sm:col-span-6 col-span-4 mb-2",children:[s(v,{processing:f,children:"Update password"}),s(N,{show:h,enterFrom:"opacity-0",leaveTo:"opacity-0",className:"transition ease-in-out",children:s("p",{className:"text-sm text-gray-600",children:"Saved."})})]})]})})]})}export{k as default}; +import{r as i,b as g,j as r,a as s}from"./app-a8d4275f.js";import{T as c,I as d}from"./TextInput-1e9aadbd.js";import{I as p}from"./InputLabel-a7ee92ff.js";import{U as v}from"./UpdateButton-5faf9e0a.js";import{t as N}from"./transition-fbe58e1e.js";import"./index.esm-2010c99b.js";function k({className:u}){const l=i.useRef(),m=i.useRef(),{data:o,setData:t,errors:e,put:w,reset:n,processing:f,recentlySuccessful:h}=g({current_password:"",password:"",password_confirmation:""});return r("section",{className:u,children:[r("header",{children:[s("h2",{className:"text-lg font-medium text-gray-900 dark:text-white",children:"Update Password"}),s("p",{className:"mt-1 text-sm text-gray-600 dark:text-gray-400",children:"Ensure your account is using a long, random password to stay secure."})]}),s("form",{onSubmit:a=>{a.preventDefault(),w(route("password.update"),{preserveScroll:!0,onSuccess:()=>n(),onError:()=>{e.password&&(n("password","password_confirmation"),l.current.focus()),e.current_password&&(n("current_password"),m.current.focus())}})},className:"mt-6 space-y-6",children:r("div",{className:"grid grid-cols-1 md:grid-cols-6 sm:gap-4",children:[r("div",{className:"sm:col-span-3 col-span-4 mb-2",children:[s(p,{for:"current_password",value:"Current Password"}),s(c,{id:"current_password",ref:m,value:o.current_password,handleChange:a=>t("current_password",a.target.value),type:"password",className:"mt-1 block w-full",autoComplete:"current-password"}),s(d,{message:e.current_password,className:"mt-2"})]}),r("div",{className:"sm:col-span-3 col-span-4 mb-2",children:[s(p,{for:"password",value:"New Password"}),s(c,{id:"password",ref:l,value:o.password,handleChange:a=>t("password",a.target.value),type:"password",className:"mt-1 block w-full",autoComplete:"new-password"}),s(d,{message:e.password,className:"mt-2"})]}),r("div",{className:"sm:col-span-3 col-span-4 mb-2",children:[s(p,{for:"password_confirmation",value:"Confirm Password"}),s(c,{id:"password_confirmation",value:o.password_confirmation,handleChange:a=>t("password_confirmation",a.target.value),type:"password",className:"mt-1 block w-full",autoComplete:"new-password"}),s(d,{message:e.password_confirmation,className:"mt-2"})]}),r("div",{className:"flex items-center gap-4 sm:col-span-6 col-span-4 mb-2",children:[s(v,{processing:f,children:"Update password"}),s(N,{show:h,enterFrom:"opacity-0",leaveTo:"opacity-0",className:"transition ease-in-out",children:s("p",{className:"text-sm text-gray-600",children:"Saved."})})]})]})})]})}export{k as default}; diff --git a/public/build/assets/UpdateProfileInformationForm-f96428d6.js b/public/build/assets/UpdateProfileInformationForm-211dd28c.js similarity index 94% rename from public/build/assets/UpdateProfileInformationForm-f96428d6.js rename to public/build/assets/UpdateProfileInformationForm-211dd28c.js index eb3bfde..289d041 100644 --- a/public/build/assets/UpdateProfileInformationForm-f96428d6.js +++ b/public/build/assets/UpdateProfileInformationForm-211dd28c.js @@ -1 +1 @@ -import{T as r,I as t}from"./TextInput-38986df9.js";import{I as s}from"./InputLabel-04829bce.js";import{u as g,b as f,j as n,a as e,L as k}from"./app-7082a047.js";import{S as m}from"./Toast-a9c7a83a.js";import"./Table-13305096.js";import{z as x}from"./index.esm-eebfcfab.js";import{U as N}from"./UpdateButton-5ed5f67f.js";import{t as y}from"./transition-eb04b526.js";function S({mustVerifyEmail:_,status:d,className:p}){const i=g().props.auth.user,{data:o,setData:c,patch:u,errors:l,processing:h,recentlySuccessful:v}=f({name:i.name,email:i.email,api_token:i.api_token,login_ip_only:i.login_ip_only||"",api_ip_only:i.api_ip_only||"",check_uptime_server_index:i.check_uptime_server_index,check_uptime_connection_index:i.check_uptime_connection_index,check_uptime_sftp_connection_index:i.check_uptime_sftp_connection_index,check_uptime_db_connection_index:i.check_uptime_db_connection_index,allow_api_access:i.allow_api_access,log_connections:i.log_connections});return n("section",{className:p,children:[n("header",{children:[e("h2",{className:"text-lg font-medium text-gray-900 dark:text-white",children:"Profile Information"}),e("p",{className:"mt-1 text-sm text-gray-600 dark:text-gray-400",children:"Update your account's username, email and settings."})]}),e("form",{onSubmit:a=>{a.preventDefault(),u(route("profile.update"))},className:"mt-6 space-y-6",children:n("div",{className:"grid grid-cols-1 md:grid-cols-6 sm:gap-4",children:[n("div",{className:"md:col-start-1 md:col-end-4 col-span-4 mb-2",children:[e(s,{for:"api_token",value:"API key"}),e(r,{id:"api_token",className:"mt-1 block w-full",value:o.api_token,handleChange:a=>c("api_token",a.target.value),disabled:!0,autoComplete:"api_token"}),e(t,{className:"mt-2",message:l.api_token})]}),e("div",{className:"md:col-span-2 col-span-4 mb-2",children:e(x,{className:"mr-2 mt-4 h-5 w-5 inline hover:cursor-grab dark:text-gray-300",onClick:()=>{navigator.clipboard.writeText(o.api_token)},title:"Copy API key"})}),n("div",{className:"sm:col-span-3 col-span-4 mb-2",children:[e(s,{for:"login_ip_only",value:"Login allowed from this IP address only"}),e(r,{id:"login_ip_only",className:"mt-1 block w-full",value:o.login_ip_only,handleChange:a=>c("login_ip_only",a.target.value),autoComplete:"login_ip_only"}),e(t,{className:"mt-2",message:l.login_ip_only})]}),n("div",{className:"sm:col-span-3 col-span-4 mb-2",children:[e(s,{for:"api_ip_only",value:"API access allowed from this IP address only"}),e(r,{id:"api_ip_only",className:"mt-1 block w-full",value:o.api_ip_only,handleChange:a=>c("api_ip_only",a.target.value),autoComplete:"api_ip_only"}),e(t,{className:"mt-2",message:l.api_ip_only})]}),n("div",{className:"sm:col-span-3 col-span-4 mb-2",children:[e(s,{for:"allow_api_access",value:"Allow API access"}),n(m,{name:"allow_api_access",value:o.allow_api_access,onChange:a=>c("allow_api_access",a.target.value),children:[e("option",{value:0,children:"No"}),e("option",{value:1,children:"Yes"})]}),e(t,{className:"mt-2",message:l.allow_api_access})]}),n("div",{className:"sm:col-span-3 col-span-4 mb-2",children:[e(s,{for:"log_connections",value:"Log connections"}),n(m,{name:"log_connections",value:o.log_connections,onChange:a=>c("log_connections",a.target.value),children:[e("option",{value:0,children:"No"}),e("option",{value:1,children:"Yes"})]}),e(t,{className:"mt-2",message:l.log_connections})]}),n("div",{className:"sm:col-span-3 col-span-4 mb-2",children:[e(s,{for:"check_uptime_server_index",value:"Check server uptime at servers index page"}),n(m,{name:"check_uptime_server_index",value:o.check_uptime_server_index,onChange:a=>c("check_uptime_server_index",a.target.value),children:[e("option",{value:0,children:"No"}),e("option",{value:1,children:"Yes"})]}),e(t,{className:"mt-2",message:l.check_uptime_server_index})]}),n("div",{className:"sm:col-span-3 col-span-4 mb-2",children:[e(s,{for:"check_uptime_connection_index",value:"Check server uptime at servers index page"}),n(m,{name:"check_uptime_connection_index",value:o.check_uptime_connection_index,onChange:a=>c("check_uptime_connection_index",a.target.value),children:[e("option",{value:0,children:"No"}),e("option",{value:1,children:"Yes"})]}),e(t,{className:"mt-2",message:l.check_uptime_connection_index})]}),n("div",{className:"sm:col-span-3 col-span-4 mb-2",children:[e(s,{for:"check_uptime_sftp_connection_index",value:"Check server uptime at servers index page"}),n(m,{name:"check_uptime_sftp_connection_index",value:o.check_uptime_sftp_connection_index,onChange:a=>c("check_uptime_sftp_connection_index",a.target.value),children:[e("option",{value:0,children:"No"}),e("option",{value:1,children:"Yes"})]}),e(t,{className:"mt-2",message:l.check_uptime_sftp_connection_index})]}),n("div",{className:"sm:col-span-3 col-span-4 mb-2",children:[e(s,{for:"check_uptime_db_connection_index",value:"Check server uptime at servers index page"}),n(m,{name:"check_uptime_db_connection_index",value:o.check_uptime_db_connection_index,onChange:a=>c("check_uptime_db_connection_index",a.target.value),children:[e("option",{value:0,children:"No"}),e("option",{value:1,children:"Yes"})]}),e(t,{className:"mt-2",message:l.check_uptime_db_connection_index})]}),n("div",{className:"sm:col-span-3 col-span-4 mb-2",children:[e(s,{for:"name",value:"Username"}),e(r,{id:"name",className:"mt-1 block w-full",value:o.name,handleChange:a=>c("name",a.target.value),required:!0,isFocused:!0,autoComplete:"name"}),e(t,{className:"mt-2",message:l.name})]}),n("div",{className:"sm:col-span-3 col-span-4 mb-2",children:[e(s,{for:"email",value:"Email"}),e(r,{id:"email",type:"email",className:"mt-1 block w-full",value:o.email,handleChange:a=>c("email",a.target.value),required:!0,autoComplete:"email"}),e(t,{className:"mt-2",message:l.email})]}),_&&i.email_verified_at===null&&n("div",{children:[n("p",{className:"text-sm mt-2 text-gray-800",children:["Your email address is unverified.",e(k,{href:route("verification.send"),method:"post",as:"button",className:"underline text-sm text-gray-600 hover:text-gray-900 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",children:"Click here to re-send the verification email."})]}),d==="verification-link-sent"&&e("div",{className:"mt-2 font-medium text-sm text-green-600",children:"A new verification link has been sent to your email address."})]}),n("div",{className:"flex items-center gap-4",children:[e(N,{processing:h,children:"Update"}),e(y,{show:v,enterFrom:"opacity-0",leaveTo:"opacity-0",className:"transition ease-in-out",children:e("p",{className:"text-sm text-gray-600 dark:text-green-500 mt-2",children:"Saved."})})]})]})})]})}export{S as default}; +import{T as r,I as t}from"./TextInput-1e9aadbd.js";import{I as s}from"./InputLabel-a7ee92ff.js";import{u as g,b as f,j as n,a as e,L as k}from"./app-a8d4275f.js";import{S as m}from"./Toast-ee00046f.js";import"./Table-f19b692a.js";import{z as x}from"./index.esm-2010c99b.js";import{U as N}from"./UpdateButton-5faf9e0a.js";import{t as y}from"./transition-fbe58e1e.js";function S({mustVerifyEmail:_,status:d,className:p}){const i=g().props.auth.user,{data:o,setData:c,patch:u,errors:l,processing:h,recentlySuccessful:v}=f({name:i.name,email:i.email,api_token:i.api_token,login_ip_only:i.login_ip_only||"",api_ip_only:i.api_ip_only||"",check_uptime_server_index:i.check_uptime_server_index,check_uptime_connection_index:i.check_uptime_connection_index,check_uptime_sftp_connection_index:i.check_uptime_sftp_connection_index,check_uptime_db_connection_index:i.check_uptime_db_connection_index,allow_api_access:i.allow_api_access,log_connections:i.log_connections});return n("section",{className:p,children:[n("header",{children:[e("h2",{className:"text-lg font-medium text-gray-900 dark:text-white",children:"Profile Information"}),e("p",{className:"mt-1 text-sm text-gray-600 dark:text-gray-400",children:"Update your account's username, email and settings."})]}),e("form",{onSubmit:a=>{a.preventDefault(),u(route("profile.update"))},className:"mt-6 space-y-6",children:n("div",{className:"grid grid-cols-1 md:grid-cols-6 sm:gap-4",children:[n("div",{className:"md:col-start-1 md:col-end-4 col-span-4 mb-2",children:[e(s,{for:"api_token",value:"API key"}),e(r,{id:"api_token",className:"mt-1 block w-full",value:o.api_token,handleChange:a=>c("api_token",a.target.value),disabled:!0,autoComplete:"api_token"}),e(t,{className:"mt-2",message:l.api_token})]}),e("div",{className:"md:col-span-2 col-span-4 mb-2",children:e(x,{className:"mr-2 mt-4 h-5 w-5 inline hover:cursor-grab dark:text-gray-300",onClick:()=>{navigator.clipboard.writeText(o.api_token)},title:"Copy API key"})}),n("div",{className:"sm:col-span-3 col-span-4 mb-2",children:[e(s,{for:"login_ip_only",value:"Login allowed from this IP address only"}),e(r,{id:"login_ip_only",className:"mt-1 block w-full",value:o.login_ip_only,handleChange:a=>c("login_ip_only",a.target.value),autoComplete:"login_ip_only"}),e(t,{className:"mt-2",message:l.login_ip_only})]}),n("div",{className:"sm:col-span-3 col-span-4 mb-2",children:[e(s,{for:"api_ip_only",value:"API access allowed from this IP address only"}),e(r,{id:"api_ip_only",className:"mt-1 block w-full",value:o.api_ip_only,handleChange:a=>c("api_ip_only",a.target.value),autoComplete:"api_ip_only"}),e(t,{className:"mt-2",message:l.api_ip_only})]}),n("div",{className:"sm:col-span-3 col-span-4 mb-2",children:[e(s,{for:"allow_api_access",value:"Allow API access"}),n(m,{name:"allow_api_access",value:o.allow_api_access,onChange:a=>c("allow_api_access",a.target.value),children:[e("option",{value:0,children:"No"}),e("option",{value:1,children:"Yes"})]}),e(t,{className:"mt-2",message:l.allow_api_access})]}),n("div",{className:"sm:col-span-3 col-span-4 mb-2",children:[e(s,{for:"log_connections",value:"Log connections"}),n(m,{name:"log_connections",value:o.log_connections,onChange:a=>c("log_connections",a.target.value),children:[e("option",{value:0,children:"No"}),e("option",{value:1,children:"Yes"})]}),e(t,{className:"mt-2",message:l.log_connections})]}),n("div",{className:"sm:col-span-3 col-span-4 mb-2",children:[e(s,{for:"check_uptime_server_index",value:"Check server uptime at servers index page"}),n(m,{name:"check_uptime_server_index",value:o.check_uptime_server_index,onChange:a=>c("check_uptime_server_index",a.target.value),children:[e("option",{value:0,children:"No"}),e("option",{value:1,children:"Yes"})]}),e(t,{className:"mt-2",message:l.check_uptime_server_index})]}),n("div",{className:"sm:col-span-3 col-span-4 mb-2",children:[e(s,{for:"check_uptime_connection_index",value:"Check server uptime at servers index page"}),n(m,{name:"check_uptime_connection_index",value:o.check_uptime_connection_index,onChange:a=>c("check_uptime_connection_index",a.target.value),children:[e("option",{value:0,children:"No"}),e("option",{value:1,children:"Yes"})]}),e(t,{className:"mt-2",message:l.check_uptime_connection_index})]}),n("div",{className:"sm:col-span-3 col-span-4 mb-2",children:[e(s,{for:"check_uptime_sftp_connection_index",value:"Check server uptime at servers index page"}),n(m,{name:"check_uptime_sftp_connection_index",value:o.check_uptime_sftp_connection_index,onChange:a=>c("check_uptime_sftp_connection_index",a.target.value),children:[e("option",{value:0,children:"No"}),e("option",{value:1,children:"Yes"})]}),e(t,{className:"mt-2",message:l.check_uptime_sftp_connection_index})]}),n("div",{className:"sm:col-span-3 col-span-4 mb-2",children:[e(s,{for:"check_uptime_db_connection_index",value:"Check server uptime at servers index page"}),n(m,{name:"check_uptime_db_connection_index",value:o.check_uptime_db_connection_index,onChange:a=>c("check_uptime_db_connection_index",a.target.value),children:[e("option",{value:0,children:"No"}),e("option",{value:1,children:"Yes"})]}),e(t,{className:"mt-2",message:l.check_uptime_db_connection_index})]}),n("div",{className:"sm:col-span-3 col-span-4 mb-2",children:[e(s,{for:"name",value:"Username"}),e(r,{id:"name",className:"mt-1 block w-full",value:o.name,handleChange:a=>c("name",a.target.value),required:!0,isFocused:!0,autoComplete:"name"}),e(t,{className:"mt-2",message:l.name})]}),n("div",{className:"sm:col-span-3 col-span-4 mb-2",children:[e(s,{for:"email",value:"Email"}),e(r,{id:"email",type:"email",className:"mt-1 block w-full",value:o.email,handleChange:a=>c("email",a.target.value),required:!0,autoComplete:"email"}),e(t,{className:"mt-2",message:l.email})]}),_&&i.email_verified_at===null&&n("div",{children:[n("p",{className:"text-sm mt-2 text-gray-800",children:["Your email address is unverified.",e(k,{href:route("verification.send"),method:"post",as:"button",className:"underline text-sm text-gray-600 hover:text-gray-900 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",children:"Click here to re-send the verification email."})]}),d==="verification-link-sent"&&e("div",{className:"mt-2 font-medium text-sm text-green-600",children:"A new verification link has been sent to your email address."})]}),n("div",{className:"flex items-center gap-4",children:[e(N,{processing:h,children:"Update"}),e(y,{show:v,enterFrom:"opacity-0",leaveTo:"opacity-0",className:"transition ease-in-out",children:e("p",{className:"text-sm text-gray-600 dark:text-green-500 mt-2",children:"Saved."})})]})]})})]})}export{S as default}; diff --git a/public/build/assets/UpdatedAtText-1126b185.js b/public/build/assets/UpdatedAtText-9a96553e.js similarity index 81% rename from public/build/assets/UpdatedAtText-1126b185.js rename to public/build/assets/UpdatedAtText-9a96553e.js index 46fd814..a6f654e 100644 --- a/public/build/assets/UpdatedAtText-1126b185.js +++ b/public/build/assets/UpdatedAtText-9a96553e.js @@ -1 +1 @@ -import{j as d,a as r}from"./app-7082a047.js";import{f as m}from"./index-9b0dda6f.js";function o({updated_at:t,string_format:a="hh:mma do LLL yyyy"}){let e=m(new Date(t),a);return d("p",{className:"my-4 text-md leading-none text-gray-900 dark:text-white",children:[r("span",{className:"font-light",children:"Updated:"})," ",e]})}export{o as U}; +import{j as d,a as r}from"./app-a8d4275f.js";import{f as m}from"./index-9b0dda6f.js";function o({updated_at:t,string_format:a="hh:mma do LLL yyyy"}){let e=m(new Date(t),a);return d("p",{className:"my-4 text-md leading-none text-gray-900 dark:text-white",children:[r("span",{className:"font-light",children:"Updated:"})," ",e]})}export{o as U}; diff --git a/public/build/assets/Upload-bdf30158.js b/public/build/assets/Upload-0deed469.js similarity index 77% rename from public/build/assets/Upload-bdf30158.js rename to public/build/assets/Upload-0deed469.js index 249b1e6..92c9673 100644 --- a/public/build/assets/Upload-bdf30158.js +++ b/public/build/assets/Upload-0deed469.js @@ -1 +1 @@ -import{A as y}from"./AuthenticatedLayout-b0ac98cc.js";import{u as i,b as N,r as l,j as s,a,H as I}from"./app-7082a047.js";import{I as p}from"./InputLabel-04829bce.js";import{T as P,I as S}from"./TextInput-38986df9.js";import{S as k}from"./Toast-a9c7a83a.js";import"./Table-13305096.js";import{P as U}from"./PrimaryButton-aae876dd.js";import{R as B}from"./Alert-af0dbb46.js";import{B as C}from"./BackButton-c0685269.js";import{a as E}from"./axios-4a70c6fc.js";import{P as F}from"./ProgressBar-e6470a9f.js";import"./ApplicationLogo-db4f8950.js";import"./transition-eb04b526.js";import"./index.esm-eebfcfab.js";function Q({auth:u}){const g=i().props.alert,t=i().props.resource,v=i().props.connections,{data:d,setData:o,post:h,processing:f,reset:T,errors:x}=N({connection_id:"",save_as:t.saved_as}),[n,c]=l.useState(!1),[_,m]=l.useState(null);async function w(e){return await(await E.get(route("downloaded.upload.progress",e.id))).data}l.useEffect(()=>{let e;return n?e=setInterval(()=>{w(t).then(r=>{m(r.progress)})},500):n||(m(null),clearInterval(e)),()=>clearInterval(e)},[n]);const b=e=>{e.preventDefault(),h(route("downloaded.upload",t.id),{onStart:r=>{c(!0)},onFinish:r=>{c(!1)}})};return s(y,{auth:u,header:s("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:["Upload ",t.saved_as," to SFTP"]}),children:[a(I,{title:"Upload "+t.saved_as}),s("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[a("div",{className:"flex flex-wrap gap-2 mb-4",children:a(C,{href:route("downloaded.index"),children:"Back to downloaded files"})}),a(B,{details:g}),s("div",{className:"bg-white dark:bg-gray-700 overflow-hidden shadow-sm sm:rounded-lg p-2 sm:p-6",children:[s("form",{onSubmit:b,children:[s("div",{className:"grid gap-2 sm:grid-cols-1 md:grid-cols-6 sm:gap-4",children:[s("div",{className:"sm:col-span-2 col-span-4",children:[a("div",{className:"mb-2 block",children:a(p,{forInput:"connection_id",value:"SFTP connection"})}),s(k,{onChange:e=>o("connection_id",e.target.value),name:"connection_id",required:!0,value:d.connection_id,handleChange:e=>o("connection_id",e.target.value),children:[a("option",{value:"",children:"Choose"}),v.map(e=>s("option",{value:e.id,children:[e.username,"@",e.server.hostname," (",e.server.title,")"]},e.id))]})]}),s("div",{className:"sm:col-span-4 col-span-4",children:[a(p,{forInput:"save_as",value:"Save as"}),a(P,{name:"save_as",className:"mt-1 block w-full",autoComplete:"save_as",value:d.save_as,handleChange:e=>o("save_as",e.target.value),maxLength:125,required:!0}),a(S,{message:x.save_as,className:"mt-2"})]})]}),a(U,{className:"inline-flex items-center px-5 py-2.5 mt-4 sm:mt-6 text-sm font-medium text-center text-white bg-primary-700 rounded-lg focus:ring-4 focus:ring-primary-200 dark:focus:ring-primary-900 hover:bg-primary-800",processing:f,children:"Upload"})]}),a(F,{value:_})]})]})]})}export{Q as default}; +import{A as y}from"./AuthenticatedLayout-c4be06bd.js";import{u as i,b as N,r as l,j as s,a,H as I}from"./app-a8d4275f.js";import{I as p}from"./InputLabel-a7ee92ff.js";import{T as P,I as S}from"./TextInput-1e9aadbd.js";import{S as k}from"./Toast-ee00046f.js";import"./Table-f19b692a.js";import{P as U}from"./PrimaryButton-19cc4f5a.js";import{R as B}from"./Alert-d503f44b.js";import{B as C}from"./BackButton-2b60c346.js";import{a as E}from"./axios-4a70c6fc.js";import{P as F}from"./ProgressBar-0f70cb6b.js";import"./ApplicationLogo-ae419612.js";import"./transition-fbe58e1e.js";import"./index.esm-2010c99b.js";function Q({auth:u}){const g=i().props.alert,t=i().props.resource,v=i().props.connections,{data:d,setData:o,post:h,processing:f,reset:T,errors:x}=N({connection_id:"",save_as:t.saved_as}),[n,c]=l.useState(!1),[_,m]=l.useState(null);async function w(e){return await(await E.get(route("downloaded.upload.progress",e.id))).data}l.useEffect(()=>{let e;return n?e=setInterval(()=>{w(t).then(r=>{m(r.progress)})},500):n||(m(null),clearInterval(e)),()=>clearInterval(e)},[n]);const b=e=>{e.preventDefault(),h(route("downloaded.upload",t.id),{onStart:r=>{c(!0)},onFinish:r=>{c(!1)}})};return s(y,{auth:u,header:s("h2",{className:"font-semibold text-xl text-gray-800 dark:text-white leading-tight",children:["Upload ",t.saved_as," to SFTP"]}),children:[a(I,{title:"Upload "+t.saved_as}),s("div",{className:"py-8 px-2 mx-auto max-w-7xl lg:py-10",children:[a("div",{className:"flex flex-wrap gap-2 mb-4",children:a(C,{href:route("downloaded.index"),children:"Back to downloaded files"})}),a(B,{details:g}),s("div",{className:"bg-white dark:bg-gray-700 overflow-hidden shadow-sm sm:rounded-lg p-2 sm:p-6",children:[s("form",{onSubmit:b,children:[s("div",{className:"grid gap-2 sm:grid-cols-1 md:grid-cols-6 sm:gap-4",children:[s("div",{className:"sm:col-span-2 col-span-4",children:[a("div",{className:"mb-2 block",children:a(p,{forInput:"connection_id",value:"SFTP connection"})}),s(k,{onChange:e=>o("connection_id",e.target.value),name:"connection_id",required:!0,value:d.connection_id,handleChange:e=>o("connection_id",e.target.value),children:[a("option",{value:"",children:"Choose"}),v.map(e=>s("option",{value:e.id,children:[e.username,"@",e.server.hostname," (",e.server.title,")"]},e.id))]})]}),s("div",{className:"sm:col-span-4 col-span-4",children:[a(p,{forInput:"save_as",value:"Save as"}),a(P,{name:"save_as",className:"mt-1 block w-full",autoComplete:"save_as",value:d.save_as,handleChange:e=>o("save_as",e.target.value),maxLength:125,required:!0}),a(S,{message:x.save_as,className:"mt-2"})]})]}),a(U,{className:"inline-flex items-center px-5 py-2.5 mt-4 sm:mt-6 text-sm font-medium text-center text-white bg-primary-700 rounded-lg focus:ring-4 focus:ring-primary-200 dark:focus:ring-primary-900 hover:bg-primary-800",processing:f,children:"Upload"})]}),a(F,{value:_})]})]})]})}export{Q as default}; diff --git a/public/build/assets/VerifyEmail-5f1f7b59.js b/public/build/assets/VerifyEmail-aee564a7.js similarity index 79% rename from public/build/assets/VerifyEmail-5f1f7b59.js rename to public/build/assets/VerifyEmail-aee564a7.js index f6e4332..1e84c6e 100644 --- a/public/build/assets/VerifyEmail-5f1f7b59.js +++ b/public/build/assets/VerifyEmail-aee564a7.js @@ -1 +1 @@ -import{G as s}from"./GuestLayout-3dfccb91.js";import{P as a}from"./PrimaryButton-aae876dd.js";import{b as d,j as t,a as e,H as m,L as l}from"./app-7082a047.js";import"./ApplicationLogo-db4f8950.js";function y({status:i}){const{post:n,processing:o}=d();return t(s,{children:[e(m,{title:"Email Verification"}),e("div",{className:"mb-4 text-sm text-gray-600",children:"Thanks for signing up! Before getting started, could you verify your email address by clicking on the link we just emailed to you? If you didn't receive the email, we will gladly send you another."}),i==="verification-link-sent"&&e("div",{className:"mb-4 font-medium text-sm text-green-600",children:"A new verification link has been sent to the email address you provided during registration."}),e("form",{onSubmit:r=>{r.preventDefault(),n(route("verification.send"))},children:t("div",{className:"mt-4 flex items-center justify-between",children:[e(a,{processing:o,children:"Resend Verification Email"}),e(l,{href:route("logout"),method:"post",as:"button",className:"underline text-sm text-gray-600 hover:text-gray-900 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",children:"Log Out"})]})})]})}export{y as default}; +import{G as s}from"./GuestLayout-fc7cb66d.js";import{P as a}from"./PrimaryButton-19cc4f5a.js";import{b as d,j as t,a as e,H as m,L as l}from"./app-a8d4275f.js";import"./ApplicationLogo-ae419612.js";function y({status:i}){const{post:n,processing:o}=d();return t(s,{children:[e(m,{title:"Email Verification"}),e("div",{className:"mb-4 text-sm text-gray-600",children:"Thanks for signing up! Before getting started, could you verify your email address by clicking on the link we just emailed to you? If you didn't receive the email, we will gladly send you another."}),i==="verification-link-sent"&&e("div",{className:"mb-4 font-medium text-sm text-green-600",children:"A new verification link has been sent to the email address you provided during registration."}),e("form",{onSubmit:r=>{r.preventDefault(),n(route("verification.send"))},children:t("div",{className:"mt-4 flex items-center justify-between",children:[e(a,{processing:o,children:"Resend Verification Email"}),e(l,{href:route("logout"),method:"post",as:"button",className:"underline text-sm text-gray-600 hover:text-gray-900 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",children:"Log Out"})]})})]})}export{y as default}; diff --git a/public/build/assets/app-7082a047.js b/public/build/assets/app-a8d4275f.js similarity index 89% rename from public/build/assets/app-7082a047.js rename to public/build/assets/app-a8d4275f.js index 068ca85..1170f19 100644 --- a/public/build/assets/app-7082a047.js +++ b/public/build/assets/app-a8d4275f.js @@ -117,4 +117,4 @@ Please specify a more appropriate element using the "as" attribute. For example: * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var dw=Mi,pw=Symbol.for("react.element"),vw=Symbol.for("react.fragment"),hw=Object.prototype.hasOwnProperty,mw=dw.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,yw={key:!0,ref:!0,__self:!0,__source:!0};function uh(e,t,n){var r,i={},o=null,l=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(l=t.ref);for(r in t)hw.call(t,r)&&!yw.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:pw,type:e,key:o,ref:l,props:i,_owner:mw.current}}Ml.Fragment=vw;Ml.jsx=uh;Ml.jsxs=uh;lh.exports=Ml;var Js=lh.exports;const _w=Js.Fragment,gw=Js.jsx,Pw=Js.jsxs;var sd;const Sw=((sd=window.document.getElementsByTagName("title")[0])==null?void 0:sd.innerText)||"Laravel";th({title:e=>`${e} - ${Sw}`,resolve:e=>fw(`./Pages/${e}.jsx`,Object.assign({"./Pages/ActionLogs/Index.jsx":()=>j(()=>import("./Index-d1be4756.js"),["assets/Index-d1be4756.js","assets/AuthenticatedLayout-b0ac98cc.js","assets/ApplicationLogo-db4f8950.js","assets/transition-eb04b526.js","assets/gridJsConfig-39d3aeab.js","assets/ResourceEmptyText-25c44e25.js","assets/Toast-a9c7a83a.js","assets/Table-13305096.js","assets/index.esm-eebfcfab.js","assets/Alert-af0dbb46.js","assets/index-9b0dda6f.js"]),"./Pages/ActionLogs/Show.jsx":()=>j(()=>import("./Show-329ea5f0.js"),["assets/Show-329ea5f0.js","assets/AuthenticatedLayout-b0ac98cc.js","assets/ApplicationLogo-db4f8950.js","assets/transition-eb04b526.js","assets/CreatedAtText-a1e22ba4.js","assets/index-9b0dda6f.js","assets/BackButton-c0685269.js","assets/index.esm-eebfcfab.js"]),"./Pages/Auth/ConfirmPassword.jsx":()=>j(()=>import("./ConfirmPassword-78c1dd81.js"),["assets/ConfirmPassword-78c1dd81.js","assets/GuestLayout-3dfccb91.js","assets/ApplicationLogo-db4f8950.js","assets/TextInput-38986df9.js","assets/InputLabel-04829bce.js","assets/PrimaryButton-aae876dd.js"]),"./Pages/Auth/ForgotPassword.jsx":()=>j(()=>import("./ForgotPassword-7debfaed.js"),["assets/ForgotPassword-7debfaed.js","assets/GuestLayout-3dfccb91.js","assets/ApplicationLogo-db4f8950.js","assets/TextInput-38986df9.js","assets/PrimaryButton-aae876dd.js"]),"./Pages/Auth/Login.jsx":()=>j(()=>import("./Login-827f9c7b.js"),["assets/Login-827f9c7b.js","assets/GuestLayout-3dfccb91.js","assets/ApplicationLogo-db4f8950.js","assets/TextInput-38986df9.js","assets/InputLabel-04829bce.js","assets/PrimaryButton-aae876dd.js"]),"./Pages/Auth/Register.jsx":()=>j(()=>import("./Register-2e6be42c.js"),["assets/Register-2e6be42c.js","assets/GuestLayout-3dfccb91.js","assets/ApplicationLogo-db4f8950.js","assets/TextInput-38986df9.js","assets/InputLabel-04829bce.js","assets/PrimaryButton-aae876dd.js"]),"./Pages/Auth/ResetPassword.jsx":()=>j(()=>import("./ResetPassword-aa4a7494.js"),["assets/ResetPassword-aa4a7494.js","assets/GuestLayout-3dfccb91.js","assets/ApplicationLogo-db4f8950.js","assets/TextInput-38986df9.js","assets/InputLabel-04829bce.js","assets/PrimaryButton-aae876dd.js"]),"./Pages/Auth/VerifyEmail.jsx":()=>j(()=>import("./VerifyEmail-5f1f7b59.js"),["assets/VerifyEmail-5f1f7b59.js","assets/GuestLayout-3dfccb91.js","assets/ApplicationLogo-db4f8950.js","assets/PrimaryButton-aae876dd.js"]),"./Pages/CommandGroups/Create.jsx":()=>j(()=>import("./Create-b6e26c0a.js"),["assets/Create-b6e26c0a.js","assets/AuthenticatedLayout-b0ac98cc.js","assets/ApplicationLogo-db4f8950.js","assets/transition-eb04b526.js","assets/InputLabel-04829bce.js","assets/TextInput-38986df9.js","assets/PrimaryButton-aae876dd.js","assets/BackButton-c0685269.js","assets/index.esm-eebfcfab.js","assets/Alert-af0dbb46.js","assets/Toast-a9c7a83a.js","assets/Table-13305096.js"]),"./Pages/CommandGroups/Edit.jsx":()=>j(()=>import("./Edit-d4a51a69.js"),["assets/Edit-d4a51a69.js","assets/AuthenticatedLayout-b0ac98cc.js","assets/ApplicationLogo-db4f8950.js","assets/transition-eb04b526.js","assets/InputLabel-04829bce.js","assets/TextInput-38986df9.js","assets/Toast-a9c7a83a.js","assets/Table-13305096.js","assets/index.esm-eebfcfab.js","assets/BackButton-c0685269.js","assets/Alert-af0dbb46.js","assets/UpdateButton-5ed5f67f.js"]),"./Pages/CommandGroups/Index.jsx":()=>j(()=>import("./Index-da7a7e22.js"),["assets/Index-da7a7e22.js","assets/AuthenticatedLayout-b0ac98cc.js","assets/ApplicationLogo-db4f8950.js","assets/transition-eb04b526.js","assets/Toast-a9c7a83a.js","assets/Table-13305096.js","assets/index.esm-eebfcfab.js","assets/Card-4b32b85d.js","assets/Alert-af0dbb46.js","assets/ResourceEmptyText-25c44e25.js","assets/AddButton-bf9b47af.js"]),"./Pages/CommandGroups/Show.jsx":()=>j(()=>import("./Show-3e58a32e.js"),["assets/Show-3e58a32e.js","assets/AuthenticatedLayout-b0ac98cc.js","assets/ApplicationLogo-db4f8950.js","assets/transition-eb04b526.js","assets/Toast-a9c7a83a.js","assets/Table-13305096.js","assets/index.esm-eebfcfab.js","assets/Alert-af0dbb46.js","assets/CreatedAtText-a1e22ba4.js","assets/index-9b0dda6f.js","assets/BackButton-c0685269.js","assets/axios-4a70c6fc.js","assets/UpdatedAtText-1126b185.js"]),"./Pages/Commands/Create.jsx":()=>j(()=>import("./Create-6722570a.js"),["assets/Create-6722570a.js","assets/AuthenticatedLayout-b0ac98cc.js","assets/ApplicationLogo-db4f8950.js","assets/transition-eb04b526.js","assets/InputLabel-04829bce.js","assets/TextInput-38986df9.js","assets/PrimaryButton-aae876dd.js","assets/BackButton-c0685269.js","assets/index.esm-eebfcfab.js"]),"./Pages/Commands/Edit.jsx":()=>j(()=>import("./Edit-7da4357e.js"),["assets/Edit-7da4357e.js","assets/AuthenticatedLayout-b0ac98cc.js","assets/ApplicationLogo-db4f8950.js","assets/transition-eb04b526.js","assets/InputLabel-04829bce.js","assets/TextInput-38986df9.js","assets/Toast-a9c7a83a.js","assets/Table-13305096.js","assets/index.esm-eebfcfab.js","assets/DangerButton-a6bef65a.js","assets/UpdateButton-5ed5f67f.js","assets/BackButton-c0685269.js"]),"./Pages/Commands/Index.jsx":()=>j(()=>import("./Index-26bbd460.js"),["assets/Index-26bbd460.js","assets/AuthenticatedLayout-b0ac98cc.js","assets/ApplicationLogo-db4f8950.js","assets/transition-eb04b526.js","assets/Alert-af0dbb46.js","assets/Toast-a9c7a83a.js","assets/Table-13305096.js","assets/index.esm-eebfcfab.js","assets/gridJsConfig-39d3aeab.js","assets/AddButton-bf9b47af.js","assets/index.esm-6768e5ef.js","assets/index-9b0dda6f.js"]),"./Pages/Connections/Create.jsx":()=>j(()=>import("./Create-3aa71eec.js"),["assets/Create-3aa71eec.js","assets/AuthenticatedLayout-b0ac98cc.js","assets/ApplicationLogo-db4f8950.js","assets/transition-eb04b526.js","assets/InputLabel-04829bce.js","assets/TextInput-38986df9.js","assets/Toast-a9c7a83a.js","assets/Table-13305096.js","assets/index.esm-eebfcfab.js","assets/PrimaryButton-aae876dd.js","assets/Alert-af0dbb46.js","assets/BackButton-c0685269.js"]),"./Pages/Connections/Edit.jsx":()=>j(()=>import("./Edit-debf2b8b.js"),["assets/Edit-debf2b8b.js","assets/AuthenticatedLayout-b0ac98cc.js","assets/ApplicationLogo-db4f8950.js","assets/transition-eb04b526.js","assets/InputLabel-04829bce.js","assets/TextInput-38986df9.js","assets/Toast-a9c7a83a.js","assets/Table-13305096.js","assets/index.esm-eebfcfab.js","assets/UpdateButton-5ed5f67f.js","assets/BackButton-c0685269.js","assets/Alert-af0dbb46.js"]),"./Pages/Connections/Index.jsx":()=>j(()=>import("./Index-a282e9dc.js"),["assets/Index-a282e9dc.js","assets/AuthenticatedLayout-b0ac98cc.js","assets/ApplicationLogo-db4f8950.js","assets/transition-eb04b526.js","assets/index.esm-eebfcfab.js","assets/Alert-af0dbb46.js","assets/Toast-a9c7a83a.js","assets/Table-13305096.js","assets/AddButton-bf9b47af.js","assets/axios-4a70c6fc.js","assets/index.esm-d4b60c73.js","assets/ResourceEmptyText-25c44e25.js"]),"./Pages/Connections/Show.jsx":()=>j(()=>import("./Show-9ca211b4.js"),["assets/Show-9ca211b4.js","assets/AuthenticatedLayout-b0ac98cc.js","assets/ApplicationLogo-db4f8950.js","assets/transition-eb04b526.js","assets/Toast-a9c7a83a.js","assets/Table-13305096.js","assets/index.esm-eebfcfab.js","assets/InputLabel-04829bce.js","assets/TextInput-38986df9.js","assets/PrimaryButton-aae876dd.js","assets/Output-dd9f99a9.js","assets/index-9b0dda6f.js","assets/Alert-af0dbb46.js","assets/BackButton-c0685269.js"]),"./Pages/Dashboard.jsx":()=>j(()=>import("./Dashboard-28f30d59.js"),["assets/Dashboard-28f30d59.js","assets/AuthenticatedLayout-b0ac98cc.js","assets/ApplicationLogo-db4f8950.js","assets/transition-eb04b526.js","assets/Table-13305096.js","assets/AddButton-bf9b47af.js","assets/index.esm-eebfcfab.js","assets/index-9b0dda6f.js"]),"./Pages/DatabaseConnections/Create.jsx":()=>j(()=>import("./Create-e3219b41.js"),["assets/Create-e3219b41.js","assets/AuthenticatedLayout-b0ac98cc.js","assets/ApplicationLogo-db4f8950.js","assets/transition-eb04b526.js","assets/InputLabel-04829bce.js","assets/TextInput-38986df9.js","assets/Toast-a9c7a83a.js","assets/Table-13305096.js","assets/index.esm-eebfcfab.js","assets/PrimaryButton-aae876dd.js","assets/Alert-af0dbb46.js","assets/axios-4a70c6fc.js","assets/BackButton-c0685269.js"]),"./Pages/DatabaseConnections/Edit.jsx":()=>j(()=>import("./Edit-a6037d42.js"),["assets/Edit-a6037d42.js","assets/AuthenticatedLayout-b0ac98cc.js","assets/ApplicationLogo-db4f8950.js","assets/transition-eb04b526.js","assets/InputLabel-04829bce.js","assets/TextInput-38986df9.js","assets/UpdateButton-5ed5f67f.js","assets/index.esm-eebfcfab.js","assets/BackButton-c0685269.js","assets/Alert-af0dbb46.js","assets/Toast-a9c7a83a.js","assets/Table-13305096.js"]),"./Pages/DatabaseConnections/Index.jsx":()=>j(()=>import("./Index-3c6d510f.js"),["assets/Index-3c6d510f.js","assets/AuthenticatedLayout-b0ac98cc.js","assets/ApplicationLogo-db4f8950.js","assets/transition-eb04b526.js","assets/index.esm-eebfcfab.js","assets/ResourceEmptyText-25c44e25.js","assets/Alert-af0dbb46.js","assets/Toast-a9c7a83a.js","assets/Table-13305096.js","assets/AddButton-bf9b47af.js","assets/TealButton-9ca5476f.js","assets/axios-4a70c6fc.js","assets/index.esm-d4b60c73.js"]),"./Pages/DatabaseConnections/Show.jsx":()=>j(()=>import("./Show-47dee60a.js"),["assets/Show-47dee60a.js","assets/AuthenticatedLayout-b0ac98cc.js","assets/ApplicationLogo-db4f8950.js","assets/transition-eb04b526.js","assets/Toast-a9c7a83a.js","assets/Table-13305096.js","assets/index.esm-eebfcfab.js","assets/Alert-af0dbb46.js","assets/axios-4a70c6fc.js","assets/BackButton-c0685269.js","assets/CreatedAtText-a1e22ba4.js","assets/index-9b0dda6f.js","assets/UpdatedAtText-1126b185.js"]),"./Pages/DatabaseTableColumns/Show.jsx":()=>j(()=>import("./Show-55461f68.js"),["assets/Show-55461f68.js","assets/AuthenticatedLayout-b0ac98cc.js","assets/ApplicationLogo-db4f8950.js","assets/transition-eb04b526.js","assets/Alert-af0dbb46.js","assets/Toast-a9c7a83a.js","assets/Table-13305096.js","assets/index.esm-eebfcfab.js","assets/axios-4a70c6fc.js","assets/BackButton-c0685269.js"]),"./Pages/DatabaseTables/Show.jsx":()=>j(()=>import("./Show-ef6961c5.js"),["assets/Show-ef6961c5.js","assets/AuthenticatedLayout-b0ac98cc.js","assets/ApplicationLogo-db4f8950.js","assets/transition-eb04b526.js","assets/Toast-a9c7a83a.js","assets/Table-13305096.js","assets/index.esm-eebfcfab.js","assets/Alert-af0dbb46.js","assets/axios-4a70c6fc.js","assets/BackButton-c0685269.js","assets/helpers-2aabf79e.js"]),"./Pages/Databases/Create.jsx":()=>j(()=>import("./Create-c040c543.js"),["assets/Create-c040c543.js","assets/AuthenticatedLayout-b0ac98cc.js","assets/ApplicationLogo-db4f8950.js","assets/transition-eb04b526.js","assets/InputLabel-04829bce.js","assets/TextInput-38986df9.js","assets/Toast-a9c7a83a.js","assets/Table-13305096.js","assets/index.esm-eebfcfab.js","assets/PrimaryButton-aae876dd.js","assets/Alert-af0dbb46.js","assets/axios-4a70c6fc.js","assets/BackButton-c0685269.js"]),"./Pages/Databases/Index.jsx":()=>j(()=>import("./Index-92f3baad.js"),["assets/Index-92f3baad.js","assets/AuthenticatedLayout-b0ac98cc.js","assets/ApplicationLogo-db4f8950.js","assets/transition-eb04b526.js","assets/index.esm-eebfcfab.js","assets/ResourceEmptyText-25c44e25.js","assets/Alert-af0dbb46.js","assets/Toast-a9c7a83a.js","assets/Table-13305096.js","assets/AddButton-bf9b47af.js","assets/TealButton-9ca5476f.js","assets/IndigoButton-1fb48c06.js"]),"./Pages/Databases/Show.jsx":()=>j(()=>import("./Show-19b7cd7f.js"),["assets/Show-19b7cd7f.js","assets/AuthenticatedLayout-b0ac98cc.js","assets/ApplicationLogo-db4f8950.js","assets/transition-eb04b526.js","assets/Toast-a9c7a83a.js","assets/Table-13305096.js","assets/index.esm-eebfcfab.js","assets/Alert-af0dbb46.js","assets/BackButton-c0685269.js","assets/CreatedAtText-a1e22ba4.js","assets/index-9b0dda6f.js","assets/UpdatedAtText-1126b185.js","assets/index.esm-6768e5ef.js"]),"./Pages/Downloaded/Index.jsx":()=>j(()=>import("./Index-6f7997ed.js"),["assets/Index-6f7997ed.js","assets/AuthenticatedLayout-b0ac98cc.js","assets/ApplicationLogo-db4f8950.js","assets/transition-eb04b526.js","assets/Alert-af0dbb46.js","assets/Toast-a9c7a83a.js","assets/Table-13305096.js","assets/index.esm-eebfcfab.js","assets/gridJsConfig-39d3aeab.js","assets/ResourceEmptyText-25c44e25.js","assets/helpers-2aabf79e.js","assets/index-9b0dda6f.js"]),"./Pages/Downloaded/Show.jsx":()=>j(()=>import("./Show-87b730ad.js"),["assets/Show-87b730ad.js","assets/AuthenticatedLayout-b0ac98cc.js","assets/ApplicationLogo-db4f8950.js","assets/transition-eb04b526.js","assets/Toast-a9c7a83a.js","assets/Table-13305096.js","assets/index.esm-eebfcfab.js","assets/Alert-af0dbb46.js","assets/CreatedAtText-a1e22ba4.js","assets/index-9b0dda6f.js","assets/BackButton-c0685269.js","assets/helpers-2aabf79e.js"]),"./Pages/Downloaded/Upload.jsx":()=>j(()=>import("./Upload-bdf30158.js"),["assets/Upload-bdf30158.js","assets/AuthenticatedLayout-b0ac98cc.js","assets/ApplicationLogo-db4f8950.js","assets/transition-eb04b526.js","assets/InputLabel-04829bce.js","assets/TextInput-38986df9.js","assets/Toast-a9c7a83a.js","assets/Table-13305096.js","assets/index.esm-eebfcfab.js","assets/PrimaryButton-aae876dd.js","assets/Alert-af0dbb46.js","assets/BackButton-c0685269.js","assets/axios-4a70c6fc.js","assets/ProgressBar-e6470a9f.js"]),"./Pages/IPs/Create.jsx":()=>j(()=>import("./Create-fdaa7a35.js"),["assets/Create-fdaa7a35.js","assets/AuthenticatedLayout-b0ac98cc.js","assets/ApplicationLogo-db4f8950.js","assets/transition-eb04b526.js","assets/InputLabel-04829bce.js","assets/TextInput-38986df9.js","assets/Toast-a9c7a83a.js","assets/Table-13305096.js","assets/index.esm-eebfcfab.js","assets/PrimaryButton-aae876dd.js","assets/Alert-af0dbb46.js","assets/BackButton-c0685269.js"]),"./Pages/IPs/Edit.jsx":()=>j(()=>import("./Edit-ac6331f8.js"),["assets/Edit-ac6331f8.js","assets/AuthenticatedLayout-b0ac98cc.js","assets/ApplicationLogo-db4f8950.js","assets/transition-eb04b526.js","assets/InputLabel-04829bce.js","assets/TextInput-38986df9.js","assets/Toast-a9c7a83a.js","assets/Table-13305096.js","assets/index.esm-eebfcfab.js","assets/UpdateButton-5ed5f67f.js","assets/BackButton-c0685269.js","assets/Alert-af0dbb46.js","assets/TealButton-9ca5476f.js","assets/axios-4a70c6fc.js"]),"./Pages/IPs/Index.jsx":()=>j(()=>import("./Index-3b09247c.js"),["assets/Index-3b09247c.js","assets/AuthenticatedLayout-b0ac98cc.js","assets/ApplicationLogo-db4f8950.js","assets/transition-eb04b526.js","assets/Alert-af0dbb46.js","assets/Toast-a9c7a83a.js","assets/Table-13305096.js","assets/index.esm-eebfcfab.js","assets/gridJsConfig-39d3aeab.js","assets/AddButton-bf9b47af.js","assets/ResourceEmptyText-25c44e25.js","assets/index-9b0dda6f.js"]),"./Pages/IPs/Show.jsx":()=>j(()=>import("./Show-988870be.js"),["assets/Show-988870be.js","assets/AuthenticatedLayout-b0ac98cc.js","assets/ApplicationLogo-db4f8950.js","assets/transition-eb04b526.js","assets/Toast-a9c7a83a.js","assets/Table-13305096.js","assets/index.esm-eebfcfab.js","assets/Alert-af0dbb46.js","assets/CreatedAtText-a1e22ba4.js","assets/index-9b0dda6f.js","assets/UpdatedAtText-1126b185.js","assets/BackButton-c0685269.js"]),"./Pages/Keys/Create.jsx":()=>j(()=>import("./Create-64b52f00.js"),["assets/Create-64b52f00.js","assets/AuthenticatedLayout-b0ac98cc.js","assets/ApplicationLogo-db4f8950.js","assets/transition-eb04b526.js","assets/InputLabel-04829bce.js","assets/TextInput-38986df9.js","assets/PrimaryButton-aae876dd.js","assets/BackButton-c0685269.js","assets/index.esm-eebfcfab.js","assets/Alert-af0dbb46.js","assets/Toast-a9c7a83a.js","assets/Table-13305096.js"]),"./Pages/Keys/Index.jsx":()=>j(()=>import("./Index-7d0dd3a7.js"),["assets/Index-7d0dd3a7.js","assets/AuthenticatedLayout-b0ac98cc.js","assets/ApplicationLogo-db4f8950.js","assets/transition-eb04b526.js","assets/Alert-af0dbb46.js","assets/Toast-a9c7a83a.js","assets/Table-13305096.js","assets/index.esm-eebfcfab.js","assets/ResourceEmptyText-25c44e25.js","assets/AddButton-bf9b47af.js"]),"./Pages/Keys/Show.jsx":()=>j(()=>import("./Show-d6b2f4bb.js"),["assets/Show-d6b2f4bb.js","assets/AuthenticatedLayout-b0ac98cc.js","assets/ApplicationLogo-db4f8950.js","assets/transition-eb04b526.js","assets/Toast-a9c7a83a.js","assets/Table-13305096.js","assets/index.esm-eebfcfab.js","assets/Alert-af0dbb46.js","assets/CreatedAtText-a1e22ba4.js","assets/index-9b0dda6f.js","assets/BackButton-c0685269.js"]),"./Pages/MySQLDumps/Create.jsx":()=>j(()=>import("./Create-0ac539c9.js"),["assets/Create-0ac539c9.js","assets/AuthenticatedLayout-b0ac98cc.js","assets/ApplicationLogo-db4f8950.js","assets/transition-eb04b526.js","assets/InputLabel-04829bce.js","assets/TextInput-38986df9.js","assets/Toast-a9c7a83a.js","assets/Table-13305096.js","assets/index.esm-eebfcfab.js","assets/PrimaryButton-aae876dd.js","assets/Alert-af0dbb46.js","assets/axios-4a70c6fc.js","assets/BackButton-c0685269.js"]),"./Pages/MySQLDumps/Edit.jsx":()=>j(()=>import("./Edit-60bf2f39.js"),["assets/Edit-60bf2f39.js","assets/AuthenticatedLayout-b0ac98cc.js","assets/ApplicationLogo-db4f8950.js","assets/transition-eb04b526.js","assets/InputLabel-04829bce.js","assets/TextInput-38986df9.js","assets/Toast-a9c7a83a.js","assets/Table-13305096.js","assets/index.esm-eebfcfab.js","assets/Alert-af0dbb46.js","assets/BackButton-c0685269.js","assets/UpdateButton-5ed5f67f.js"]),"./Pages/MySQLDumps/Index.jsx":()=>j(()=>import("./Index-bc7cb92a.js"),["assets/Index-bc7cb92a.js","assets/AuthenticatedLayout-b0ac98cc.js","assets/ApplicationLogo-db4f8950.js","assets/transition-eb04b526.js","assets/ResourceEmptyText-25c44e25.js","assets/Alert-af0dbb46.js","assets/Toast-a9c7a83a.js","assets/Table-13305096.js","assets/index.esm-eebfcfab.js","assets/AddButton-bf9b47af.js"]),"./Pages/MySQLDumps/Show.jsx":()=>j(()=>import("./Show-324ac644.js"),["assets/Show-324ac644.js","assets/AuthenticatedLayout-b0ac98cc.js","assets/ApplicationLogo-db4f8950.js","assets/transition-eb04b526.js","assets/Toast-a9c7a83a.js","assets/Table-13305096.js","assets/index.esm-eebfcfab.js","assets/Alert-af0dbb46.js","assets/axios-4a70c6fc.js","assets/BackButton-c0685269.js","assets/CreatedAtText-a1e22ba4.js","assets/index-9b0dda6f.js","assets/UpdatedAtText-1126b185.js"]),"./Pages/Outputs/Index.jsx":()=>j(()=>import("./Index-13117e64.js"),["assets/Index-13117e64.js","assets/AuthenticatedLayout-b0ac98cc.js","assets/ApplicationLogo-db4f8950.js","assets/transition-eb04b526.js","assets/gridJsConfig-39d3aeab.js","assets/index.esm-eebfcfab.js","assets/IndigoButton-1fb48c06.js","assets/BackButton-c0685269.js","assets/index-9b0dda6f.js"]),"./Pages/Outputs/IndexCommand.jsx":()=>j(()=>import("./IndexCommand-0375cc68.js"),["assets/IndexCommand-0375cc68.js","assets/AuthenticatedLayout-b0ac98cc.js","assets/ApplicationLogo-db4f8950.js","assets/transition-eb04b526.js","assets/gridJsConfig-39d3aeab.js","assets/BackButton-c0685269.js","assets/index.esm-eebfcfab.js","assets/index-9b0dda6f.js"]),"./Pages/Outputs/IndexServer.jsx":()=>j(()=>import("./IndexServer-82db712a.js"),["assets/IndexServer-82db712a.js","assets/AuthenticatedLayout-b0ac98cc.js","assets/ApplicationLogo-db4f8950.js","assets/transition-eb04b526.js","assets/gridJsConfig-39d3aeab.js","assets/index-9b0dda6f.js"]),"./Pages/Outputs/Show.jsx":()=>j(()=>import("./Show-54a97050.js"),["assets/Show-54a97050.js","assets/AuthenticatedLayout-b0ac98cc.js","assets/ApplicationLogo-db4f8950.js","assets/transition-eb04b526.js","assets/Toast-a9c7a83a.js","assets/Table-13305096.js","assets/index.esm-eebfcfab.js","assets/Card-4b32b85d.js","assets/Output-dd9f99a9.js","assets/index-9b0dda6f.js"]),"./Pages/Outputs/ShowPublic.jsx":()=>j(()=>import("./ShowPublic-38433de5.js"),["assets/ShowPublic-38433de5.js","assets/Toast-a9c7a83a.js","assets/Table-13305096.js","assets/index.esm-eebfcfab.js","assets/Card-4b32b85d.js","assets/Output-dd9f99a9.js","assets/index-9b0dda6f.js","assets/GuestLayout-3dfccb91.js","assets/ApplicationLogo-db4f8950.js"]),"./Pages/PingGroups/Create.jsx":()=>j(()=>import("./Create-d26bb95e.js"),["assets/Create-d26bb95e.js","assets/AuthenticatedLayout-b0ac98cc.js","assets/ApplicationLogo-db4f8950.js","assets/transition-eb04b526.js","assets/InputLabel-04829bce.js","assets/TextInput-38986df9.js","assets/Toast-a9c7a83a.js","assets/Table-13305096.js","assets/index.esm-eebfcfab.js","assets/PrimaryButton-aae876dd.js","assets/BackButton-c0685269.js","assets/Alert-af0dbb46.js"]),"./Pages/PingGroups/Edit.jsx":()=>j(()=>import("./Edit-51282f38.js"),["assets/Edit-51282f38.js","assets/AuthenticatedLayout-b0ac98cc.js","assets/ApplicationLogo-db4f8950.js","assets/transition-eb04b526.js","assets/InputLabel-04829bce.js","assets/TextInput-38986df9.js","assets/Toast-a9c7a83a.js","assets/Table-13305096.js","assets/index.esm-eebfcfab.js","assets/BackButton-c0685269.js","assets/UpdateButton-5ed5f67f.js"]),"./Pages/PingGroups/Index.jsx":()=>j(()=>import("./Index-5f3af069.js"),["assets/Index-5f3af069.js","assets/AuthenticatedLayout-b0ac98cc.js","assets/ApplicationLogo-db4f8950.js","assets/transition-eb04b526.js","assets/Toast-a9c7a83a.js","assets/Table-13305096.js","assets/index.esm-eebfcfab.js","assets/Card-4b32b85d.js","assets/Alert-af0dbb46.js","assets/ResourceEmptyText-25c44e25.js","assets/AddButton-bf9b47af.js","assets/BackButton-c0685269.js"]),"./Pages/PingGroups/Show.jsx":()=>j(()=>import("./Show-f981e826.js"),["assets/Show-f981e826.js","assets/AuthenticatedLayout-b0ac98cc.js","assets/ApplicationLogo-db4f8950.js","assets/transition-eb04b526.js","assets/Toast-a9c7a83a.js","assets/Table-13305096.js","assets/index.esm-eebfcfab.js","assets/gridJsConfig-39d3aeab.js","assets/Alert-af0dbb46.js","assets/BackButton-c0685269.js","assets/index-9b0dda6f.js"]),"./Pages/Pings/FromTo.jsx":()=>j(()=>import("./FromTo-594329a5.js"),["assets/FromTo-594329a5.js","assets/AuthenticatedLayout-b0ac98cc.js","assets/ApplicationLogo-db4f8950.js","assets/transition-eb04b526.js","assets/gridJsConfig-39d3aeab.js","assets/Alert-af0dbb46.js","assets/Toast-a9c7a83a.js","assets/Table-13305096.js","assets/index.esm-eebfcfab.js","assets/BackButton-c0685269.js","assets/TealButton-9ca5476f.js","assets/axios-4a70c6fc.js","assets/helpers-2aabf79e.js","assets/index-9b0dda6f.js"]),"./Pages/Pings/Index.jsx":()=>j(()=>import("./Index-c08b9e64.js"),["assets/Index-c08b9e64.js","assets/AuthenticatedLayout-b0ac98cc.js","assets/ApplicationLogo-db4f8950.js","assets/transition-eb04b526.js","assets/gridJsConfig-39d3aeab.js","assets/index.esm-eebfcfab.js","assets/IndigoButton-1fb48c06.js","assets/Alert-af0dbb46.js","assets/Toast-a9c7a83a.js","assets/Table-13305096.js","assets/index-9b0dda6f.js"]),"./Pages/Profile/Edit.jsx":()=>j(()=>import("./Edit-f58e9d05.js"),["assets/Edit-f58e9d05.js","assets/AuthenticatedLayout-b0ac98cc.js","assets/ApplicationLogo-db4f8950.js","assets/transition-eb04b526.js","assets/DeleteUserForm-44981bd0.js","assets/DangerButton-a6bef65a.js","assets/TextInput-38986df9.js","assets/InputLabel-04829bce.js","assets/UpdatePasswordForm-970880e4.js","assets/UpdateButton-5ed5f67f.js","assets/index.esm-eebfcfab.js","assets/UpdateProfileInformationForm-f96428d6.js","assets/Toast-a9c7a83a.js","assets/Table-13305096.js"]),"./Pages/Profile/Partials/DeleteUserForm.jsx":()=>j(()=>import("./DeleteUserForm-44981bd0.js"),["assets/DeleteUserForm-44981bd0.js","assets/DangerButton-a6bef65a.js","assets/TextInput-38986df9.js","assets/InputLabel-04829bce.js","assets/transition-eb04b526.js"]),"./Pages/Profile/Partials/UpdatePasswordForm.jsx":()=>j(()=>import("./UpdatePasswordForm-970880e4.js"),["assets/UpdatePasswordForm-970880e4.js","assets/TextInput-38986df9.js","assets/InputLabel-04829bce.js","assets/UpdateButton-5ed5f67f.js","assets/index.esm-eebfcfab.js","assets/transition-eb04b526.js"]),"./Pages/Profile/Partials/UpdateProfileInformationForm.jsx":()=>j(()=>import("./UpdateProfileInformationForm-f96428d6.js"),["assets/UpdateProfileInformationForm-f96428d6.js","assets/TextInput-38986df9.js","assets/InputLabel-04829bce.js","assets/Toast-a9c7a83a.js","assets/Table-13305096.js","assets/index.esm-eebfcfab.js","assets/UpdateButton-5ed5f67f.js","assets/transition-eb04b526.js"]),"./Pages/Servers/Create.jsx":()=>j(()=>import("./Create-087a4612.js"),["assets/Create-087a4612.js","assets/AuthenticatedLayout-b0ac98cc.js","assets/ApplicationLogo-db4f8950.js","assets/transition-eb04b526.js","assets/InputLabel-04829bce.js","assets/TextInput-38986df9.js","assets/Toast-a9c7a83a.js","assets/Table-13305096.js","assets/index.esm-eebfcfab.js","assets/PrimaryButton-aae876dd.js","assets/Alert-af0dbb46.js","assets/BackButton-c0685269.js"]),"./Pages/Servers/Edit.jsx":()=>j(()=>import("./Edit-4286d7ec.js"),["assets/Edit-4286d7ec.js","assets/AuthenticatedLayout-b0ac98cc.js","assets/ApplicationLogo-db4f8950.js","assets/transition-eb04b526.js","assets/InputLabel-04829bce.js","assets/TextInput-38986df9.js","assets/Toast-a9c7a83a.js","assets/Table-13305096.js","assets/index.esm-eebfcfab.js","assets/UpdateButton-5ed5f67f.js","assets/Alert-af0dbb46.js","assets/BackButton-c0685269.js"]),"./Pages/Servers/Index.jsx":()=>j(()=>import("./Index-400e25dd.js"),["assets/Index-400e25dd.js","assets/AuthenticatedLayout-b0ac98cc.js","assets/ApplicationLogo-db4f8950.js","assets/transition-eb04b526.js","assets/Alert-af0dbb46.js","assets/Toast-a9c7a83a.js","assets/Table-13305096.js","assets/index.esm-eebfcfab.js","assets/AddButton-bf9b47af.js","assets/axios-4a70c6fc.js","assets/index.esm-d4b60c73.js","assets/ResourceEmptyText-25c44e25.js"]),"./Pages/Servers/Show.jsx":()=>j(()=>import("./Show-fba28704.js"),["assets/Show-fba28704.js","assets/AuthenticatedLayout-b0ac98cc.js","assets/ApplicationLogo-db4f8950.js","assets/transition-eb04b526.js","assets/Toast-a9c7a83a.js","assets/Table-13305096.js","assets/index.esm-eebfcfab.js","assets/Alert-af0dbb46.js","assets/helpers-2aabf79e.js","assets/CreatedAtText-a1e22ba4.js","assets/index-9b0dda6f.js","assets/UpdatedAtText-1126b185.js","assets/axios-4a70c6fc.js","assets/BackButton-c0685269.js","assets/index.esm-6768e5ef.js"]),"./Pages/Sftp/Create.jsx":()=>j(()=>import("./Create-68302484.js"),["assets/Create-68302484.js","assets/AuthenticatedLayout-b0ac98cc.js","assets/ApplicationLogo-db4f8950.js","assets/transition-eb04b526.js","assets/InputLabel-04829bce.js","assets/TextInput-38986df9.js","assets/Toast-a9c7a83a.js","assets/Table-13305096.js","assets/index.esm-eebfcfab.js","assets/PrimaryButton-aae876dd.js","assets/Alert-af0dbb46.js","assets/axios-4a70c6fc.js","assets/BackButton-c0685269.js"]),"./Pages/Sftp/CreateDownload.jsx":()=>j(()=>import("./CreateDownload-e4031443.js"),["assets/CreateDownload-e4031443.js","assets/AuthenticatedLayout-b0ac98cc.js","assets/ApplicationLogo-db4f8950.js","assets/transition-eb04b526.js","assets/InputLabel-04829bce.js","assets/TextInput-38986df9.js","assets/PrimaryButton-aae876dd.js","assets/Alert-af0dbb46.js","assets/Toast-a9c7a83a.js","assets/Table-13305096.js","assets/index.esm-eebfcfab.js","assets/BackButton-c0685269.js","assets/TealButton-9ca5476f.js","assets/ProgressBar-e6470a9f.js","assets/axios-4a70c6fc.js"]),"./Pages/Sftp/Edit.jsx":()=>j(()=>import("./Edit-5b0c88cb.js"),["assets/Edit-5b0c88cb.js","assets/AuthenticatedLayout-b0ac98cc.js","assets/ApplicationLogo-db4f8950.js","assets/transition-eb04b526.js","assets/InputLabel-04829bce.js","assets/TextInput-38986df9.js","assets/Toast-a9c7a83a.js","assets/Table-13305096.js","assets/index.esm-eebfcfab.js","assets/UpdateButton-5ed5f67f.js","assets/BackButton-c0685269.js","assets/Alert-af0dbb46.js"]),"./Pages/Sftp/Index.jsx":()=>j(()=>import("./Index-07bb1c4d.js"),["assets/Index-07bb1c4d.js","assets/AuthenticatedLayout-b0ac98cc.js","assets/ApplicationLogo-db4f8950.js","assets/transition-eb04b526.js","assets/Alert-af0dbb46.js","assets/Toast-a9c7a83a.js","assets/Table-13305096.js","assets/index.esm-eebfcfab.js","assets/AddButton-bf9b47af.js","assets/axios-4a70c6fc.js","assets/index.esm-d4b60c73.js","assets/ResourceEmptyText-25c44e25.js"]),"./Pages/Sftp/Read.jsx":()=>j(()=>import("./Read-954020d4.js"),["assets/Read-954020d4.js","assets/AuthenticatedLayout-b0ac98cc.js","assets/ApplicationLogo-db4f8950.js","assets/transition-eb04b526.js","assets/InputLabel-04829bce.js","assets/TextInput-38986df9.js","assets/PrimaryButton-aae876dd.js","assets/Alert-af0dbb46.js","assets/Toast-a9c7a83a.js","assets/Table-13305096.js","assets/index.esm-eebfcfab.js","assets/axios-4a70c6fc.js","assets/UpdateButton-5ed5f67f.js","assets/BackButton-c0685269.js","assets/helpers-2aabf79e.js","assets/Read-113cb615.css"]),"./Pages/Sftp/Show.jsx":()=>j(()=>import("./Show-7553bff0.js"),["assets/Show-7553bff0.js","assets/AuthenticatedLayout-b0ac98cc.js","assets/ApplicationLogo-db4f8950.js","assets/transition-eb04b526.js","assets/Toast-a9c7a83a.js","assets/Table-13305096.js","assets/index.esm-eebfcfab.js","assets/InputLabel-04829bce.js","assets/TextInput-38986df9.js","assets/PrimaryButton-aae876dd.js","assets/Output-dd9f99a9.js","assets/index-9b0dda6f.js","assets/Alert-af0dbb46.js","assets/BackButton-c0685269.js","assets/ProgressBar-e6470a9f.js","assets/axios-4a70c6fc.js"])})),setup({el:e,App:t,props:n}){Pv(e).render(gw(t,{...n}))}});cw.init({color:"#4B5563"});export{_w as F,bS as H,ZS as L,xm as R,gw as a,YS as b,cc as c,Ew as d,_v as e,ww as f,cd as g,ei as h,Pw as j,Mi as r,JS as u}; + */var dw=Mi,pw=Symbol.for("react.element"),vw=Symbol.for("react.fragment"),hw=Object.prototype.hasOwnProperty,mw=dw.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,yw={key:!0,ref:!0,__self:!0,__source:!0};function uh(e,t,n){var r,i={},o=null,l=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(l=t.ref);for(r in t)hw.call(t,r)&&!yw.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:pw,type:e,key:o,ref:l,props:i,_owner:mw.current}}Ml.Fragment=vw;Ml.jsx=uh;Ml.jsxs=uh;lh.exports=Ml;var Js=lh.exports;const _w=Js.Fragment,gw=Js.jsx,Pw=Js.jsxs;var sd;const Sw=((sd=window.document.getElementsByTagName("title")[0])==null?void 0:sd.innerText)||"Laravel";th({title:e=>`${e} - ${Sw}`,resolve:e=>fw(`./Pages/${e}.jsx`,Object.assign({"./Pages/ActionLogs/Index.jsx":()=>j(()=>import("./Index-ac5ad5f9.js"),["assets/Index-ac5ad5f9.js","assets/AuthenticatedLayout-c4be06bd.js","assets/ApplicationLogo-ae419612.js","assets/transition-fbe58e1e.js","assets/gridJsConfig-143e158b.js","assets/ResourceEmptyText-f0a77405.js","assets/Toast-ee00046f.js","assets/Table-f19b692a.js","assets/index.esm-2010c99b.js","assets/Alert-d503f44b.js","assets/index-9b0dda6f.js"]),"./Pages/ActionLogs/Show.jsx":()=>j(()=>import("./Show-6bb0ca92.js"),["assets/Show-6bb0ca92.js","assets/AuthenticatedLayout-c4be06bd.js","assets/ApplicationLogo-ae419612.js","assets/transition-fbe58e1e.js","assets/CreatedAtText-a06948df.js","assets/index-9b0dda6f.js","assets/BackButton-2b60c346.js","assets/index.esm-2010c99b.js"]),"./Pages/Auth/ConfirmPassword.jsx":()=>j(()=>import("./ConfirmPassword-8e0dba9b.js"),["assets/ConfirmPassword-8e0dba9b.js","assets/GuestLayout-fc7cb66d.js","assets/ApplicationLogo-ae419612.js","assets/TextInput-1e9aadbd.js","assets/InputLabel-a7ee92ff.js","assets/PrimaryButton-19cc4f5a.js"]),"./Pages/Auth/ForgotPassword.jsx":()=>j(()=>import("./ForgotPassword-cc5498c4.js"),["assets/ForgotPassword-cc5498c4.js","assets/GuestLayout-fc7cb66d.js","assets/ApplicationLogo-ae419612.js","assets/TextInput-1e9aadbd.js","assets/PrimaryButton-19cc4f5a.js"]),"./Pages/Auth/Login.jsx":()=>j(()=>import("./Login-db313af0.js"),["assets/Login-db313af0.js","assets/GuestLayout-fc7cb66d.js","assets/ApplicationLogo-ae419612.js","assets/TextInput-1e9aadbd.js","assets/InputLabel-a7ee92ff.js","assets/PrimaryButton-19cc4f5a.js"]),"./Pages/Auth/Register.jsx":()=>j(()=>import("./Register-a3355c91.js"),["assets/Register-a3355c91.js","assets/GuestLayout-fc7cb66d.js","assets/ApplicationLogo-ae419612.js","assets/TextInput-1e9aadbd.js","assets/InputLabel-a7ee92ff.js","assets/PrimaryButton-19cc4f5a.js"]),"./Pages/Auth/ResetPassword.jsx":()=>j(()=>import("./ResetPassword-f5d7a2f5.js"),["assets/ResetPassword-f5d7a2f5.js","assets/GuestLayout-fc7cb66d.js","assets/ApplicationLogo-ae419612.js","assets/TextInput-1e9aadbd.js","assets/InputLabel-a7ee92ff.js","assets/PrimaryButton-19cc4f5a.js"]),"./Pages/Auth/VerifyEmail.jsx":()=>j(()=>import("./VerifyEmail-aee564a7.js"),["assets/VerifyEmail-aee564a7.js","assets/GuestLayout-fc7cb66d.js","assets/ApplicationLogo-ae419612.js","assets/PrimaryButton-19cc4f5a.js"]),"./Pages/CommandGroups/Create.jsx":()=>j(()=>import("./Create-8aff2dca.js"),["assets/Create-8aff2dca.js","assets/AuthenticatedLayout-c4be06bd.js","assets/ApplicationLogo-ae419612.js","assets/transition-fbe58e1e.js","assets/InputLabel-a7ee92ff.js","assets/TextInput-1e9aadbd.js","assets/PrimaryButton-19cc4f5a.js","assets/BackButton-2b60c346.js","assets/index.esm-2010c99b.js","assets/Alert-d503f44b.js","assets/Toast-ee00046f.js","assets/Table-f19b692a.js"]),"./Pages/CommandGroups/Edit.jsx":()=>j(()=>import("./Edit-5658baa6.js"),["assets/Edit-5658baa6.js","assets/AuthenticatedLayout-c4be06bd.js","assets/ApplicationLogo-ae419612.js","assets/transition-fbe58e1e.js","assets/InputLabel-a7ee92ff.js","assets/TextInput-1e9aadbd.js","assets/Toast-ee00046f.js","assets/Table-f19b692a.js","assets/index.esm-2010c99b.js","assets/BackButton-2b60c346.js","assets/Alert-d503f44b.js","assets/UpdateButton-5faf9e0a.js"]),"./Pages/CommandGroups/Index.jsx":()=>j(()=>import("./Index-de2d1bc0.js"),["assets/Index-de2d1bc0.js","assets/AuthenticatedLayout-c4be06bd.js","assets/ApplicationLogo-ae419612.js","assets/transition-fbe58e1e.js","assets/Toast-ee00046f.js","assets/Table-f19b692a.js","assets/index.esm-2010c99b.js","assets/Card-0ddd50a2.js","assets/Alert-d503f44b.js","assets/ResourceEmptyText-f0a77405.js","assets/AddButton-35ed8727.js"]),"./Pages/CommandGroups/Show.jsx":()=>j(()=>import("./Show-ead32f20.js"),["assets/Show-ead32f20.js","assets/AuthenticatedLayout-c4be06bd.js","assets/ApplicationLogo-ae419612.js","assets/transition-fbe58e1e.js","assets/Toast-ee00046f.js","assets/Table-f19b692a.js","assets/index.esm-2010c99b.js","assets/Alert-d503f44b.js","assets/CreatedAtText-a06948df.js","assets/index-9b0dda6f.js","assets/BackButton-2b60c346.js","assets/axios-4a70c6fc.js","assets/UpdatedAtText-9a96553e.js"]),"./Pages/Commands/Create.jsx":()=>j(()=>import("./Create-0779bb52.js"),["assets/Create-0779bb52.js","assets/AuthenticatedLayout-c4be06bd.js","assets/ApplicationLogo-ae419612.js","assets/transition-fbe58e1e.js","assets/InputLabel-a7ee92ff.js","assets/TextInput-1e9aadbd.js","assets/PrimaryButton-19cc4f5a.js","assets/BackButton-2b60c346.js","assets/index.esm-2010c99b.js"]),"./Pages/Commands/Edit.jsx":()=>j(()=>import("./Edit-dbb33c2c.js"),["assets/Edit-dbb33c2c.js","assets/AuthenticatedLayout-c4be06bd.js","assets/ApplicationLogo-ae419612.js","assets/transition-fbe58e1e.js","assets/InputLabel-a7ee92ff.js","assets/TextInput-1e9aadbd.js","assets/Toast-ee00046f.js","assets/Table-f19b692a.js","assets/index.esm-2010c99b.js","assets/DangerButton-dd3abfc4.js","assets/UpdateButton-5faf9e0a.js","assets/BackButton-2b60c346.js"]),"./Pages/Commands/Index.jsx":()=>j(()=>import("./Index-fefde8eb.js"),["assets/Index-fefde8eb.js","assets/AuthenticatedLayout-c4be06bd.js","assets/ApplicationLogo-ae419612.js","assets/transition-fbe58e1e.js","assets/Alert-d503f44b.js","assets/Toast-ee00046f.js","assets/Table-f19b692a.js","assets/index.esm-2010c99b.js","assets/gridJsConfig-143e158b.js","assets/AddButton-35ed8727.js","assets/index.esm-456b3614.js","assets/index-9b0dda6f.js"]),"./Pages/Connections/Create.jsx":()=>j(()=>import("./Create-e07d654c.js"),["assets/Create-e07d654c.js","assets/AuthenticatedLayout-c4be06bd.js","assets/ApplicationLogo-ae419612.js","assets/transition-fbe58e1e.js","assets/InputLabel-a7ee92ff.js","assets/TextInput-1e9aadbd.js","assets/Toast-ee00046f.js","assets/Table-f19b692a.js","assets/index.esm-2010c99b.js","assets/PrimaryButton-19cc4f5a.js","assets/Alert-d503f44b.js","assets/BackButton-2b60c346.js"]),"./Pages/Connections/Edit.jsx":()=>j(()=>import("./Edit-d7a6955d.js"),["assets/Edit-d7a6955d.js","assets/AuthenticatedLayout-c4be06bd.js","assets/ApplicationLogo-ae419612.js","assets/transition-fbe58e1e.js","assets/InputLabel-a7ee92ff.js","assets/TextInput-1e9aadbd.js","assets/Toast-ee00046f.js","assets/Table-f19b692a.js","assets/index.esm-2010c99b.js","assets/UpdateButton-5faf9e0a.js","assets/BackButton-2b60c346.js","assets/Alert-d503f44b.js"]),"./Pages/Connections/Index.jsx":()=>j(()=>import("./Index-0141e4b4.js"),["assets/Index-0141e4b4.js","assets/AuthenticatedLayout-c4be06bd.js","assets/ApplicationLogo-ae419612.js","assets/transition-fbe58e1e.js","assets/index.esm-2010c99b.js","assets/Alert-d503f44b.js","assets/Toast-ee00046f.js","assets/Table-f19b692a.js","assets/AddButton-35ed8727.js","assets/axios-4a70c6fc.js","assets/index.esm-6d0014d4.js","assets/ResourceEmptyText-f0a77405.js"]),"./Pages/Connections/Show.jsx":()=>j(()=>import("./Show-5033bd43.js"),["assets/Show-5033bd43.js","assets/AuthenticatedLayout-c4be06bd.js","assets/ApplicationLogo-ae419612.js","assets/transition-fbe58e1e.js","assets/Toast-ee00046f.js","assets/Table-f19b692a.js","assets/index.esm-2010c99b.js","assets/InputLabel-a7ee92ff.js","assets/TextInput-1e9aadbd.js","assets/PrimaryButton-19cc4f5a.js","assets/Output-2c144da2.js","assets/index-9b0dda6f.js","assets/Alert-d503f44b.js","assets/BackButton-2b60c346.js"]),"./Pages/Dashboard.jsx":()=>j(()=>import("./Dashboard-27286ec0.js"),["assets/Dashboard-27286ec0.js","assets/AuthenticatedLayout-c4be06bd.js","assets/ApplicationLogo-ae419612.js","assets/transition-fbe58e1e.js","assets/Table-f19b692a.js","assets/AddButton-35ed8727.js","assets/index.esm-2010c99b.js","assets/index-9b0dda6f.js"]),"./Pages/DatabaseConnections/Create.jsx":()=>j(()=>import("./Create-48747bbc.js"),["assets/Create-48747bbc.js","assets/AuthenticatedLayout-c4be06bd.js","assets/ApplicationLogo-ae419612.js","assets/transition-fbe58e1e.js","assets/InputLabel-a7ee92ff.js","assets/TextInput-1e9aadbd.js","assets/Toast-ee00046f.js","assets/Table-f19b692a.js","assets/index.esm-2010c99b.js","assets/PrimaryButton-19cc4f5a.js","assets/Alert-d503f44b.js","assets/axios-4a70c6fc.js","assets/BackButton-2b60c346.js"]),"./Pages/DatabaseConnections/Edit.jsx":()=>j(()=>import("./Edit-1ffa57a3.js"),["assets/Edit-1ffa57a3.js","assets/AuthenticatedLayout-c4be06bd.js","assets/ApplicationLogo-ae419612.js","assets/transition-fbe58e1e.js","assets/InputLabel-a7ee92ff.js","assets/TextInput-1e9aadbd.js","assets/UpdateButton-5faf9e0a.js","assets/index.esm-2010c99b.js","assets/BackButton-2b60c346.js","assets/Alert-d503f44b.js","assets/Toast-ee00046f.js","assets/Table-f19b692a.js"]),"./Pages/DatabaseConnections/Index.jsx":()=>j(()=>import("./Index-7d7c852c.js"),["assets/Index-7d7c852c.js","assets/AuthenticatedLayout-c4be06bd.js","assets/ApplicationLogo-ae419612.js","assets/transition-fbe58e1e.js","assets/index.esm-2010c99b.js","assets/ResourceEmptyText-f0a77405.js","assets/Alert-d503f44b.js","assets/Toast-ee00046f.js","assets/Table-f19b692a.js","assets/AddButton-35ed8727.js","assets/TealButton-374c27c1.js","assets/axios-4a70c6fc.js","assets/index.esm-6d0014d4.js"]),"./Pages/DatabaseConnections/Show.jsx":()=>j(()=>import("./Show-9ce9bf3a.js"),["assets/Show-9ce9bf3a.js","assets/AuthenticatedLayout-c4be06bd.js","assets/ApplicationLogo-ae419612.js","assets/transition-fbe58e1e.js","assets/Toast-ee00046f.js","assets/Table-f19b692a.js","assets/index.esm-2010c99b.js","assets/Alert-d503f44b.js","assets/axios-4a70c6fc.js","assets/BackButton-2b60c346.js","assets/CreatedAtText-a06948df.js","assets/index-9b0dda6f.js","assets/UpdatedAtText-9a96553e.js"]),"./Pages/DatabaseTableColumns/Show.jsx":()=>j(()=>import("./Show-a69f5cc8.js"),["assets/Show-a69f5cc8.js","assets/AuthenticatedLayout-c4be06bd.js","assets/ApplicationLogo-ae419612.js","assets/transition-fbe58e1e.js","assets/Alert-d503f44b.js","assets/Toast-ee00046f.js","assets/Table-f19b692a.js","assets/index.esm-2010c99b.js","assets/axios-4a70c6fc.js","assets/BackButton-2b60c346.js"]),"./Pages/DatabaseTables/Show.jsx":()=>j(()=>import("./Show-0584235d.js"),["assets/Show-0584235d.js","assets/AuthenticatedLayout-c4be06bd.js","assets/ApplicationLogo-ae419612.js","assets/transition-fbe58e1e.js","assets/Toast-ee00046f.js","assets/Table-f19b692a.js","assets/index.esm-2010c99b.js","assets/Alert-d503f44b.js","assets/axios-4a70c6fc.js","assets/BackButton-2b60c346.js","assets/helpers-2aabf79e.js"]),"./Pages/Databases/Create.jsx":()=>j(()=>import("./Create-10da5554.js"),["assets/Create-10da5554.js","assets/AuthenticatedLayout-c4be06bd.js","assets/ApplicationLogo-ae419612.js","assets/transition-fbe58e1e.js","assets/InputLabel-a7ee92ff.js","assets/TextInput-1e9aadbd.js","assets/Toast-ee00046f.js","assets/Table-f19b692a.js","assets/index.esm-2010c99b.js","assets/PrimaryButton-19cc4f5a.js","assets/Alert-d503f44b.js","assets/axios-4a70c6fc.js","assets/BackButton-2b60c346.js"]),"./Pages/Databases/Index.jsx":()=>j(()=>import("./Index-2b895f17.js"),["assets/Index-2b895f17.js","assets/AuthenticatedLayout-c4be06bd.js","assets/ApplicationLogo-ae419612.js","assets/transition-fbe58e1e.js","assets/index.esm-2010c99b.js","assets/ResourceEmptyText-f0a77405.js","assets/Alert-d503f44b.js","assets/Toast-ee00046f.js","assets/Table-f19b692a.js","assets/AddButton-35ed8727.js","assets/TealButton-374c27c1.js","assets/IndigoButton-819e4647.js"]),"./Pages/Databases/Show.jsx":()=>j(()=>import("./Show-f503323b.js"),["assets/Show-f503323b.js","assets/AuthenticatedLayout-c4be06bd.js","assets/ApplicationLogo-ae419612.js","assets/transition-fbe58e1e.js","assets/Toast-ee00046f.js","assets/Table-f19b692a.js","assets/index.esm-2010c99b.js","assets/Alert-d503f44b.js","assets/BackButton-2b60c346.js","assets/CreatedAtText-a06948df.js","assets/index-9b0dda6f.js","assets/UpdatedAtText-9a96553e.js","assets/index.esm-456b3614.js"]),"./Pages/Downloaded/Index.jsx":()=>j(()=>import("./Index-16d0a9f8.js"),["assets/Index-16d0a9f8.js","assets/AuthenticatedLayout-c4be06bd.js","assets/ApplicationLogo-ae419612.js","assets/transition-fbe58e1e.js","assets/Alert-d503f44b.js","assets/Toast-ee00046f.js","assets/Table-f19b692a.js","assets/index.esm-2010c99b.js","assets/gridJsConfig-143e158b.js","assets/ResourceEmptyText-f0a77405.js","assets/helpers-2aabf79e.js","assets/index-9b0dda6f.js"]),"./Pages/Downloaded/Show.jsx":()=>j(()=>import("./Show-adab10ed.js"),["assets/Show-adab10ed.js","assets/AuthenticatedLayout-c4be06bd.js","assets/ApplicationLogo-ae419612.js","assets/transition-fbe58e1e.js","assets/Toast-ee00046f.js","assets/Table-f19b692a.js","assets/index.esm-2010c99b.js","assets/Alert-d503f44b.js","assets/CreatedAtText-a06948df.js","assets/index-9b0dda6f.js","assets/BackButton-2b60c346.js","assets/helpers-2aabf79e.js"]),"./Pages/Downloaded/Upload.jsx":()=>j(()=>import("./Upload-0deed469.js"),["assets/Upload-0deed469.js","assets/AuthenticatedLayout-c4be06bd.js","assets/ApplicationLogo-ae419612.js","assets/transition-fbe58e1e.js","assets/InputLabel-a7ee92ff.js","assets/TextInput-1e9aadbd.js","assets/Toast-ee00046f.js","assets/Table-f19b692a.js","assets/index.esm-2010c99b.js","assets/PrimaryButton-19cc4f5a.js","assets/Alert-d503f44b.js","assets/BackButton-2b60c346.js","assets/axios-4a70c6fc.js","assets/ProgressBar-0f70cb6b.js"]),"./Pages/IPs/Create.jsx":()=>j(()=>import("./Create-7793a29e.js"),["assets/Create-7793a29e.js","assets/AuthenticatedLayout-c4be06bd.js","assets/ApplicationLogo-ae419612.js","assets/transition-fbe58e1e.js","assets/InputLabel-a7ee92ff.js","assets/TextInput-1e9aadbd.js","assets/Toast-ee00046f.js","assets/Table-f19b692a.js","assets/index.esm-2010c99b.js","assets/PrimaryButton-19cc4f5a.js","assets/Alert-d503f44b.js","assets/BackButton-2b60c346.js"]),"./Pages/IPs/Edit.jsx":()=>j(()=>import("./Edit-d71960b1.js"),["assets/Edit-d71960b1.js","assets/AuthenticatedLayout-c4be06bd.js","assets/ApplicationLogo-ae419612.js","assets/transition-fbe58e1e.js","assets/InputLabel-a7ee92ff.js","assets/TextInput-1e9aadbd.js","assets/Toast-ee00046f.js","assets/Table-f19b692a.js","assets/index.esm-2010c99b.js","assets/UpdateButton-5faf9e0a.js","assets/BackButton-2b60c346.js","assets/Alert-d503f44b.js","assets/TealButton-374c27c1.js","assets/axios-4a70c6fc.js"]),"./Pages/IPs/Index.jsx":()=>j(()=>import("./Index-e20b5827.js"),["assets/Index-e20b5827.js","assets/AuthenticatedLayout-c4be06bd.js","assets/ApplicationLogo-ae419612.js","assets/transition-fbe58e1e.js","assets/Alert-d503f44b.js","assets/Toast-ee00046f.js","assets/Table-f19b692a.js","assets/index.esm-2010c99b.js","assets/gridJsConfig-143e158b.js","assets/AddButton-35ed8727.js","assets/ResourceEmptyText-f0a77405.js","assets/index-9b0dda6f.js"]),"./Pages/IPs/Show.jsx":()=>j(()=>import("./Show-7af75fb9.js"),["assets/Show-7af75fb9.js","assets/AuthenticatedLayout-c4be06bd.js","assets/ApplicationLogo-ae419612.js","assets/transition-fbe58e1e.js","assets/Toast-ee00046f.js","assets/Table-f19b692a.js","assets/index.esm-2010c99b.js","assets/Alert-d503f44b.js","assets/CreatedAtText-a06948df.js","assets/index-9b0dda6f.js","assets/UpdatedAtText-9a96553e.js","assets/BackButton-2b60c346.js"]),"./Pages/Keys/Create.jsx":()=>j(()=>import("./Create-f375067f.js"),["assets/Create-f375067f.js","assets/AuthenticatedLayout-c4be06bd.js","assets/ApplicationLogo-ae419612.js","assets/transition-fbe58e1e.js","assets/InputLabel-a7ee92ff.js","assets/TextInput-1e9aadbd.js","assets/PrimaryButton-19cc4f5a.js","assets/BackButton-2b60c346.js","assets/index.esm-2010c99b.js","assets/Alert-d503f44b.js","assets/Toast-ee00046f.js","assets/Table-f19b692a.js"]),"./Pages/Keys/Index.jsx":()=>j(()=>import("./Index-38fe72e8.js"),["assets/Index-38fe72e8.js","assets/AuthenticatedLayout-c4be06bd.js","assets/ApplicationLogo-ae419612.js","assets/transition-fbe58e1e.js","assets/Alert-d503f44b.js","assets/Toast-ee00046f.js","assets/Table-f19b692a.js","assets/index.esm-2010c99b.js","assets/ResourceEmptyText-f0a77405.js","assets/AddButton-35ed8727.js"]),"./Pages/Keys/Show.jsx":()=>j(()=>import("./Show-21f6ec1c.js"),["assets/Show-21f6ec1c.js","assets/AuthenticatedLayout-c4be06bd.js","assets/ApplicationLogo-ae419612.js","assets/transition-fbe58e1e.js","assets/Toast-ee00046f.js","assets/Table-f19b692a.js","assets/index.esm-2010c99b.js","assets/Alert-d503f44b.js","assets/CreatedAtText-a06948df.js","assets/index-9b0dda6f.js","assets/BackButton-2b60c346.js"]),"./Pages/MySQLDumps/Create.jsx":()=>j(()=>import("./Create-968f70e3.js"),["assets/Create-968f70e3.js","assets/AuthenticatedLayout-c4be06bd.js","assets/ApplicationLogo-ae419612.js","assets/transition-fbe58e1e.js","assets/InputLabel-a7ee92ff.js","assets/TextInput-1e9aadbd.js","assets/Toast-ee00046f.js","assets/Table-f19b692a.js","assets/index.esm-2010c99b.js","assets/PrimaryButton-19cc4f5a.js","assets/Alert-d503f44b.js","assets/axios-4a70c6fc.js","assets/BackButton-2b60c346.js"]),"./Pages/MySQLDumps/Edit.jsx":()=>j(()=>import("./Edit-98bfc13e.js"),["assets/Edit-98bfc13e.js","assets/AuthenticatedLayout-c4be06bd.js","assets/ApplicationLogo-ae419612.js","assets/transition-fbe58e1e.js","assets/InputLabel-a7ee92ff.js","assets/TextInput-1e9aadbd.js","assets/Toast-ee00046f.js","assets/Table-f19b692a.js","assets/index.esm-2010c99b.js","assets/Alert-d503f44b.js","assets/BackButton-2b60c346.js","assets/UpdateButton-5faf9e0a.js"]),"./Pages/MySQLDumps/Index.jsx":()=>j(()=>import("./Index-f4385110.js"),["assets/Index-f4385110.js","assets/AuthenticatedLayout-c4be06bd.js","assets/ApplicationLogo-ae419612.js","assets/transition-fbe58e1e.js","assets/ResourceEmptyText-f0a77405.js","assets/Alert-d503f44b.js","assets/Toast-ee00046f.js","assets/Table-f19b692a.js","assets/index.esm-2010c99b.js","assets/AddButton-35ed8727.js"]),"./Pages/MySQLDumps/Show.jsx":()=>j(()=>import("./Show-f6933070.js"),["assets/Show-f6933070.js","assets/AuthenticatedLayout-c4be06bd.js","assets/ApplicationLogo-ae419612.js","assets/transition-fbe58e1e.js","assets/Toast-ee00046f.js","assets/Table-f19b692a.js","assets/index.esm-2010c99b.js","assets/Alert-d503f44b.js","assets/axios-4a70c6fc.js","assets/BackButton-2b60c346.js","assets/CreatedAtText-a06948df.js","assets/index-9b0dda6f.js","assets/UpdatedAtText-9a96553e.js"]),"./Pages/Outputs/Index.jsx":()=>j(()=>import("./Index-ea3fc13f.js"),["assets/Index-ea3fc13f.js","assets/AuthenticatedLayout-c4be06bd.js","assets/ApplicationLogo-ae419612.js","assets/transition-fbe58e1e.js","assets/gridJsConfig-143e158b.js","assets/index.esm-2010c99b.js","assets/IndigoButton-819e4647.js","assets/BackButton-2b60c346.js","assets/index-9b0dda6f.js"]),"./Pages/Outputs/IndexCommand.jsx":()=>j(()=>import("./IndexCommand-c90ae7b2.js"),["assets/IndexCommand-c90ae7b2.js","assets/AuthenticatedLayout-c4be06bd.js","assets/ApplicationLogo-ae419612.js","assets/transition-fbe58e1e.js","assets/gridJsConfig-143e158b.js","assets/BackButton-2b60c346.js","assets/index.esm-2010c99b.js","assets/index-9b0dda6f.js"]),"./Pages/Outputs/IndexServer.jsx":()=>j(()=>import("./IndexServer-a55a48a4.js"),["assets/IndexServer-a55a48a4.js","assets/AuthenticatedLayout-c4be06bd.js","assets/ApplicationLogo-ae419612.js","assets/transition-fbe58e1e.js","assets/gridJsConfig-143e158b.js","assets/index-9b0dda6f.js"]),"./Pages/Outputs/Show.jsx":()=>j(()=>import("./Show-2beff3b5.js"),["assets/Show-2beff3b5.js","assets/AuthenticatedLayout-c4be06bd.js","assets/ApplicationLogo-ae419612.js","assets/transition-fbe58e1e.js","assets/Toast-ee00046f.js","assets/Table-f19b692a.js","assets/index.esm-2010c99b.js","assets/Card-0ddd50a2.js","assets/Output-2c144da2.js","assets/index-9b0dda6f.js"]),"./Pages/Outputs/ShowPublic.jsx":()=>j(()=>import("./ShowPublic-a0427d9c.js"),["assets/ShowPublic-a0427d9c.js","assets/Toast-ee00046f.js","assets/Table-f19b692a.js","assets/index.esm-2010c99b.js","assets/Card-0ddd50a2.js","assets/Output-2c144da2.js","assets/index-9b0dda6f.js","assets/GuestLayout-fc7cb66d.js","assets/ApplicationLogo-ae419612.js"]),"./Pages/PingGroups/Create.jsx":()=>j(()=>import("./Create-ed7017f9.js"),["assets/Create-ed7017f9.js","assets/AuthenticatedLayout-c4be06bd.js","assets/ApplicationLogo-ae419612.js","assets/transition-fbe58e1e.js","assets/InputLabel-a7ee92ff.js","assets/TextInput-1e9aadbd.js","assets/Toast-ee00046f.js","assets/Table-f19b692a.js","assets/index.esm-2010c99b.js","assets/PrimaryButton-19cc4f5a.js","assets/BackButton-2b60c346.js","assets/Alert-d503f44b.js"]),"./Pages/PingGroups/Edit.jsx":()=>j(()=>import("./Edit-07062319.js"),["assets/Edit-07062319.js","assets/AuthenticatedLayout-c4be06bd.js","assets/ApplicationLogo-ae419612.js","assets/transition-fbe58e1e.js","assets/InputLabel-a7ee92ff.js","assets/TextInput-1e9aadbd.js","assets/Toast-ee00046f.js","assets/Table-f19b692a.js","assets/index.esm-2010c99b.js","assets/BackButton-2b60c346.js","assets/UpdateButton-5faf9e0a.js"]),"./Pages/PingGroups/Index.jsx":()=>j(()=>import("./Index-c7c79db3.js"),["assets/Index-c7c79db3.js","assets/AuthenticatedLayout-c4be06bd.js","assets/ApplicationLogo-ae419612.js","assets/transition-fbe58e1e.js","assets/Toast-ee00046f.js","assets/Table-f19b692a.js","assets/index.esm-2010c99b.js","assets/Card-0ddd50a2.js","assets/Alert-d503f44b.js","assets/ResourceEmptyText-f0a77405.js","assets/AddButton-35ed8727.js","assets/BackButton-2b60c346.js"]),"./Pages/PingGroups/Show.jsx":()=>j(()=>import("./Show-c1aba46a.js"),["assets/Show-c1aba46a.js","assets/AuthenticatedLayout-c4be06bd.js","assets/ApplicationLogo-ae419612.js","assets/transition-fbe58e1e.js","assets/Toast-ee00046f.js","assets/Table-f19b692a.js","assets/index.esm-2010c99b.js","assets/gridJsConfig-143e158b.js","assets/Alert-d503f44b.js","assets/BackButton-2b60c346.js","assets/index-9b0dda6f.js"]),"./Pages/Pings/FromTo.jsx":()=>j(()=>import("./FromTo-e70c4783.js"),["assets/FromTo-e70c4783.js","assets/AuthenticatedLayout-c4be06bd.js","assets/ApplicationLogo-ae419612.js","assets/transition-fbe58e1e.js","assets/gridJsConfig-143e158b.js","assets/Alert-d503f44b.js","assets/Toast-ee00046f.js","assets/Table-f19b692a.js","assets/index.esm-2010c99b.js","assets/BackButton-2b60c346.js","assets/TealButton-374c27c1.js","assets/axios-4a70c6fc.js","assets/helpers-2aabf79e.js","assets/index-9b0dda6f.js"]),"./Pages/Pings/Index.jsx":()=>j(()=>import("./Index-7532297a.js"),["assets/Index-7532297a.js","assets/AuthenticatedLayout-c4be06bd.js","assets/ApplicationLogo-ae419612.js","assets/transition-fbe58e1e.js","assets/gridJsConfig-143e158b.js","assets/index.esm-2010c99b.js","assets/IndigoButton-819e4647.js","assets/Alert-d503f44b.js","assets/Toast-ee00046f.js","assets/Table-f19b692a.js","assets/index-9b0dda6f.js"]),"./Pages/Profile/Edit.jsx":()=>j(()=>import("./Edit-8e802a56.js"),["assets/Edit-8e802a56.js","assets/AuthenticatedLayout-c4be06bd.js","assets/ApplicationLogo-ae419612.js","assets/transition-fbe58e1e.js","assets/DeleteUserForm-dd56dadc.js","assets/DangerButton-dd3abfc4.js","assets/TextInput-1e9aadbd.js","assets/InputLabel-a7ee92ff.js","assets/UpdatePasswordForm-e9566b54.js","assets/UpdateButton-5faf9e0a.js","assets/index.esm-2010c99b.js","assets/UpdateProfileInformationForm-211dd28c.js","assets/Toast-ee00046f.js","assets/Table-f19b692a.js"]),"./Pages/Profile/Partials/DeleteUserForm.jsx":()=>j(()=>import("./DeleteUserForm-dd56dadc.js"),["assets/DeleteUserForm-dd56dadc.js","assets/DangerButton-dd3abfc4.js","assets/TextInput-1e9aadbd.js","assets/InputLabel-a7ee92ff.js","assets/transition-fbe58e1e.js"]),"./Pages/Profile/Partials/UpdatePasswordForm.jsx":()=>j(()=>import("./UpdatePasswordForm-e9566b54.js"),["assets/UpdatePasswordForm-e9566b54.js","assets/TextInput-1e9aadbd.js","assets/InputLabel-a7ee92ff.js","assets/UpdateButton-5faf9e0a.js","assets/index.esm-2010c99b.js","assets/transition-fbe58e1e.js"]),"./Pages/Profile/Partials/UpdateProfileInformationForm.jsx":()=>j(()=>import("./UpdateProfileInformationForm-211dd28c.js"),["assets/UpdateProfileInformationForm-211dd28c.js","assets/TextInput-1e9aadbd.js","assets/InputLabel-a7ee92ff.js","assets/Toast-ee00046f.js","assets/Table-f19b692a.js","assets/index.esm-2010c99b.js","assets/UpdateButton-5faf9e0a.js","assets/transition-fbe58e1e.js"]),"./Pages/Servers/Create.jsx":()=>j(()=>import("./Create-f76523b8.js"),["assets/Create-f76523b8.js","assets/AuthenticatedLayout-c4be06bd.js","assets/ApplicationLogo-ae419612.js","assets/transition-fbe58e1e.js","assets/InputLabel-a7ee92ff.js","assets/TextInput-1e9aadbd.js","assets/Toast-ee00046f.js","assets/Table-f19b692a.js","assets/index.esm-2010c99b.js","assets/PrimaryButton-19cc4f5a.js","assets/Alert-d503f44b.js","assets/BackButton-2b60c346.js"]),"./Pages/Servers/Edit.jsx":()=>j(()=>import("./Edit-47a8f68f.js"),["assets/Edit-47a8f68f.js","assets/AuthenticatedLayout-c4be06bd.js","assets/ApplicationLogo-ae419612.js","assets/transition-fbe58e1e.js","assets/InputLabel-a7ee92ff.js","assets/TextInput-1e9aadbd.js","assets/Toast-ee00046f.js","assets/Table-f19b692a.js","assets/index.esm-2010c99b.js","assets/UpdateButton-5faf9e0a.js","assets/Alert-d503f44b.js","assets/BackButton-2b60c346.js"]),"./Pages/Servers/Index.jsx":()=>j(()=>import("./Index-e7c7b977.js"),["assets/Index-e7c7b977.js","assets/AuthenticatedLayout-c4be06bd.js","assets/ApplicationLogo-ae419612.js","assets/transition-fbe58e1e.js","assets/Alert-d503f44b.js","assets/Toast-ee00046f.js","assets/Table-f19b692a.js","assets/index.esm-2010c99b.js","assets/AddButton-35ed8727.js","assets/axios-4a70c6fc.js","assets/index.esm-6d0014d4.js","assets/ResourceEmptyText-f0a77405.js"]),"./Pages/Servers/Show.jsx":()=>j(()=>import("./Show-18ffc0d4.js"),["assets/Show-18ffc0d4.js","assets/AuthenticatedLayout-c4be06bd.js","assets/ApplicationLogo-ae419612.js","assets/transition-fbe58e1e.js","assets/Toast-ee00046f.js","assets/Table-f19b692a.js","assets/index.esm-2010c99b.js","assets/Alert-d503f44b.js","assets/helpers-2aabf79e.js","assets/CreatedAtText-a06948df.js","assets/index-9b0dda6f.js","assets/UpdatedAtText-9a96553e.js","assets/axios-4a70c6fc.js","assets/BackButton-2b60c346.js","assets/index.esm-456b3614.js"]),"./Pages/Sftp/Create.jsx":()=>j(()=>import("./Create-cc4ea34c.js"),["assets/Create-cc4ea34c.js","assets/AuthenticatedLayout-c4be06bd.js","assets/ApplicationLogo-ae419612.js","assets/transition-fbe58e1e.js","assets/InputLabel-a7ee92ff.js","assets/TextInput-1e9aadbd.js","assets/Toast-ee00046f.js","assets/Table-f19b692a.js","assets/index.esm-2010c99b.js","assets/PrimaryButton-19cc4f5a.js","assets/Alert-d503f44b.js","assets/axios-4a70c6fc.js","assets/BackButton-2b60c346.js"]),"./Pages/Sftp/CreateDownload.jsx":()=>j(()=>import("./CreateDownload-bfd4b75c.js"),["assets/CreateDownload-bfd4b75c.js","assets/AuthenticatedLayout-c4be06bd.js","assets/ApplicationLogo-ae419612.js","assets/transition-fbe58e1e.js","assets/InputLabel-a7ee92ff.js","assets/TextInput-1e9aadbd.js","assets/PrimaryButton-19cc4f5a.js","assets/Alert-d503f44b.js","assets/Toast-ee00046f.js","assets/Table-f19b692a.js","assets/index.esm-2010c99b.js","assets/BackButton-2b60c346.js","assets/TealButton-374c27c1.js","assets/ProgressBar-0f70cb6b.js","assets/axios-4a70c6fc.js"]),"./Pages/Sftp/Edit.jsx":()=>j(()=>import("./Edit-5538f96f.js"),["assets/Edit-5538f96f.js","assets/AuthenticatedLayout-c4be06bd.js","assets/ApplicationLogo-ae419612.js","assets/transition-fbe58e1e.js","assets/InputLabel-a7ee92ff.js","assets/TextInput-1e9aadbd.js","assets/Toast-ee00046f.js","assets/Table-f19b692a.js","assets/index.esm-2010c99b.js","assets/UpdateButton-5faf9e0a.js","assets/BackButton-2b60c346.js","assets/Alert-d503f44b.js"]),"./Pages/Sftp/Index.jsx":()=>j(()=>import("./Index-9569f8e1.js"),["assets/Index-9569f8e1.js","assets/AuthenticatedLayout-c4be06bd.js","assets/ApplicationLogo-ae419612.js","assets/transition-fbe58e1e.js","assets/Alert-d503f44b.js","assets/Toast-ee00046f.js","assets/Table-f19b692a.js","assets/index.esm-2010c99b.js","assets/AddButton-35ed8727.js","assets/axios-4a70c6fc.js","assets/index.esm-6d0014d4.js","assets/ResourceEmptyText-f0a77405.js"]),"./Pages/Sftp/Read.jsx":()=>j(()=>import("./Read-9f9d258b.js"),["assets/Read-9f9d258b.js","assets/AuthenticatedLayout-c4be06bd.js","assets/ApplicationLogo-ae419612.js","assets/transition-fbe58e1e.js","assets/InputLabel-a7ee92ff.js","assets/TextInput-1e9aadbd.js","assets/PrimaryButton-19cc4f5a.js","assets/Alert-d503f44b.js","assets/Toast-ee00046f.js","assets/Table-f19b692a.js","assets/index.esm-2010c99b.js","assets/axios-4a70c6fc.js","assets/UpdateButton-5faf9e0a.js","assets/BackButton-2b60c346.js","assets/helpers-2aabf79e.js","assets/Read-113cb615.css"]),"./Pages/Sftp/Show.jsx":()=>j(()=>import("./Show-f0f0541e.js"),["assets/Show-f0f0541e.js","assets/AuthenticatedLayout-c4be06bd.js","assets/ApplicationLogo-ae419612.js","assets/transition-fbe58e1e.js","assets/Toast-ee00046f.js","assets/Table-f19b692a.js","assets/index.esm-2010c99b.js","assets/InputLabel-a7ee92ff.js","assets/TextInput-1e9aadbd.js","assets/PrimaryButton-19cc4f5a.js","assets/Output-2c144da2.js","assets/index-9b0dda6f.js","assets/Alert-d503f44b.js","assets/BackButton-2b60c346.js","assets/ProgressBar-0f70cb6b.js","assets/axios-4a70c6fc.js"])})),setup({el:e,App:t,props:n}){Pv(e).render(gw(t,{...n}))}});cw.init({color:"#4B5563"});export{_w as F,bS as H,ZS as L,xm as R,gw as a,YS as b,cc as c,Ew as d,_v as e,ww as f,cd as g,ei as h,Pw as j,Mi as r,JS as u}; diff --git a/public/build/assets/gridJsConfig-39d3aeab.js b/public/build/assets/gridJsConfig-143e158b.js similarity index 99% rename from public/build/assets/gridJsConfig-39d3aeab.js rename to public/build/assets/gridJsConfig-143e158b.js index 553c004..bb47239 100644 --- a/public/build/assets/gridJsConfig-39d3aeab.js +++ b/public/build/assets/gridJsConfig-143e158b.js @@ -1,4 +1,4 @@ -import{r as wn,d as Et}from"./app-7082a047.js";function jn(n,t){for(var e=0;en.length)&&(t=n.length);for(var e=0,r=new Array(t);e=n.length?{done:!0}:{done:!1,value:n[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +import{r as wn,d as Et}from"./app-a8d4275f.js";function jn(n,t){for(var e=0;en.length)&&(t=n.length);for(var e=0,r=new Array(t);e=n.length?{done:!0}:{done:!1,value:n[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var R;(function(n){n[n.Init=0]="Init",n[n.Loading=1]="Loading",n[n.Loaded=2]="Loaded",n[n.Rendered=3]="Rendered",n[n.Error=4]="Error"})(R||(R={}));var _n,g,rt,ot,tn,Mn,it,dn={},ut=[],It=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function X(n,t){for(var e in t)n[e]=t[e];return n}function at(n){var t=n.parentNode;t&&t.removeChild(n)}function _(n,t,e){var r,o,i,u={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:u[i]=t[i];if(arguments.length>2&&(u.children=arguments.length>3?_n.call(arguments,2):e),typeof n=="function"&&n.defaultProps!=null)for(i in n.defaultProps)u[i]===void 0&&(u[i]=n.defaultProps[i]);return ln(n,u,r,o,null)}function ln(n,t,e,r,o){var i={type:n,props:t,key:e,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:o??++rt};return o==null&&g.vnode!=null&&g.vnode(i),i}function Tt(){return{current:null}}function q(n){return n.children}function en(n,t){this.props=n,this.context=t}function on(n,t){if(t==null)return n.__?on(n.__,n.__.__k.indexOf(n)+1):null;for(var e;t0?ln(c.type,c.props,c.key,c.ref?c.ref:null,c.__v):c)!=null){if(c.__=e,c.__b=e.__b+1,(p=v[a])===null||p&&c.key==p.key&&c.type===p.type)v[a]=void 0;else for(h=0;h0&&(this.callbacks[o].forEach(function(i){return i.apply(void 0,[].slice.call(r,1))}),!0)},n}();(function(n){n[n.Initiator=0]="Initiator",n[n.ServerFilter=1]="ServerFilter",n[n.ServerSort=2]="ServerSort",n[n.ServerLimit=3]="ServerLimit",n[n.Extractor=4]="Extractor",n[n.Transformer=5]="Transformer",n[n.Filter=6]="Filter",n[n.Sort=7]="Sort",n[n.Limit=8]="Limit"})(j||(j={}));var $=function(n){function t(r){var o;return(o=n.call(this)||this).id=void 0,o._props=void 0,o._props={},o.id=_t(),r&&o.setProps(r),o}T(t,n);var e=t.prototype;return e.process=function(){var r=[].slice.call(arguments);this.validateProps instanceof Function&&this.validateProps.apply(this,r),this.emit.apply(this,["beforeProcess"].concat(r));var o=this._process.apply(this,r);return this.emit.apply(this,["afterProcess"].concat(r)),o},e.setProps=function(r){return Object.assign(this._props,r),this.emit("propsUpdated",this),this},D(t,[{key:"props",get:function(){return this._props}}]),t}(Ln),Dt=function(n){function t(){return n.apply(this,arguments)||this}return T(t,n),t.prototype._process=function(e){return this.props.keyword?(r=String(this.props.keyword).trim(),o=this.props.columns,i=this.props.ignoreHiddenColumns,u=e,s=this.props.selector,r=r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),new vn(u.rows.filter(function(l,f){return l.cells.some(function(a,h){if(!a||i&&o&&o[h]&&typeof o[h]=="object"&&o[h].hidden)return!1;var p="";if(typeof s=="function")p=s(a.data,f,h);else if(typeof a.data=="object"){var c=a.data;c&&c.props&&c.props.content&&(p=c.props.content)}else p=String(a.data);return new RegExp(r,"gi").test(p)})}))):e;var r,o,i,u,s},D(t,[{key:"type",get:function(){return j.Filter}}]),t}($);function x(){var n="gridjs";return""+n+[].slice.call(arguments).reduce(function(t,e){return t+"-"+e},"")}function S(){return[].slice.call(arguments).map(function(n){return n?n.toString():""}).filter(function(n){return n}).reduce(function(n,t){return(n||"")+" "+t},"").trim()}var an,I,kn,Un,Bn=function(n){function t(){return n.apply(this,arguments)||this}return T(t,n),t.prototype._process=function(e){if(!this.props.keyword)return e;var r={};return this.props.url&&(r.url=this.props.url(e.url,this.props.keyword)),this.props.body&&(r.body=this.props.body(e.body,this.props.keyword)),k({},e,r)},D(t,[{key:"type",get:function(){return j.ServerFilter}}]),t}($),un=0,vt=[],fn=[],Wn=g.__b,qn=g.__r,zn=g.diffed,$n=g.__c,Vn=g.unmount;function gn(n,t){g.__h&&g.__h(I,n,un||t),un=0;var e=I.__H||(I.__H={__:[],__h:[]});return n>=e.__.length&&e.__.push({__V:fn}),e.__[n]}function G(n){return un=1,function(t,e,r){var o=gn(an++,2);if(o.t=t,!o.__c&&(o.__=[Kn(void 0,e),function(u){var s=o.__N?o.__N[0]:o.__[0],l=o.t(s,u);s!==l&&(o.__N=[l,o.__[1]],o.__c.setState({}))}],o.__c=I,!I.u)){I.u=!0;var i=I.shouldComponentUpdate;I.shouldComponentUpdate=function(u,s,l){if(!o.__c.__H)return!0;var f=o.__c.__H.__.filter(function(h){return h.__c});if(f.every(function(h){return!h.__N}))return!i||i.call(this,u,s,l);var a=!1;return f.forEach(function(h){if(h.__N){var p=h.__[0];h.__=h.__N,h.__N=void 0,p!==h.__[0]&&(a=!0)}}),!(!a&&o.__c.props===u)&&(!i||i.call(this,u,s,l))}}return o.__N||o.__}(Kn,n)}function O(n,t){var e=gn(an++,3);!g.__s&&yt(e.__H,t)&&(e.__=n,e.i=t,I.__H.__h.push(e))}function sn(n){return un=5,gt(function(){return{current:n}},[])}function gt(n,t){var e=gn(an++,7);return yt(e.__H,t)?(e.__V=n(),e.i=t,e.__h=n,e.__V):e.__}function Ht(){for(var n;n=vt.shift();)if(n.__P&&n.__H)try{n.__H.__h.forEach(pn),n.__H.__h.forEach(En),n.__H.__h=[]}catch(t){n.__H.__h=[],g.__e(t,n.__v)}}g.__b=function(n){I=null,Wn&&Wn(n)},g.__r=function(n){qn&&qn(n),an=0;var t=(I=n.__c).__H;t&&(kn===I?(t.__h=[],I.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=fn,e.__N=e.i=void 0})):(t.__h.forEach(pn),t.__h.forEach(En),t.__h=[])),kn=I},g.diffed=function(n){zn&&zn(n);var t=n.__c;t&&t.__H&&(t.__H.__h.length&&(vt.push(t)!==1&&Un===g.requestAnimationFrame||((Un=g.requestAnimationFrame)||Mt)(Ht)),t.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==fn&&(e.__=e.__V),e.i=void 0,e.__V=fn})),kn=I=null},g.__c=function(n,t){t.some(function(e){try{e.__h.forEach(pn),e.__h=e.__h.filter(function(r){return!r.__||En(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],g.__e(r,e.__v)}}),$n&&$n(n,t)},g.unmount=function(n){Vn&&Vn(n);var t,e=n.__c;e&&e.__H&&(e.__H.__.forEach(function(r){try{pn(r)}catch(o){t=o}}),e.__H=void 0,t&&g.__e(t,e.__v))};var Gn=typeof requestAnimationFrame=="function";function Mt(n){var t,e=function(){clearTimeout(r),Gn&&cancelAnimationFrame(t),setTimeout(n)},r=setTimeout(e,100);Gn&&(t=requestAnimationFrame(e))}function pn(n){var t=I,e=n.__c;typeof e=="function"&&(n.__c=void 0,e()),I=t}function En(n){var t=I;n.__c=n.__(),I=t}function yt(n,t){return!n||n.length!==t.length||t.some(function(e,r){return e!==n[r]})}function Kn(n,t){return typeof t=="function"?t(n):t}function F(){return function(n){var t=I.context[n.__c],e=gn(an++,9);return e.c=n,t?(e.__==null&&(e.__=!0,t.sub(I)),t.props.value):n.__}(xt)}var Ot={search:{placeholder:"Type a keyword..."},sort:{sortAsc:"Sort column ascending",sortDesc:"Sort column descending"},pagination:{previous:"Previous",next:"Next",navigate:function(n,t){return"Page "+n+" of "+t},page:function(n){return"Page "+n},showing:"Showing",of:"of",to:"to",results:"results"},loading:"Loading...",noRecordsFound:"No matching records found",error:"An error happened while fetching the data"},Ft=function(){function n(e){this._language=void 0,this._defaultLanguage=void 0,this._language=e,this._defaultLanguage=Ot}var t=n.prototype;return t.getString=function(e,r){if(!r||!e)return null;var o=e.split("."),i=o[0];if(r[i]){var u=r[i];return typeof u=="string"?function(){return u}:typeof u=="function"?u:this.getString(o.slice(1).join("."),u)}return null},t.translate=function(e){var r,o=this.getString(e,this._language);return(r=o||this.getString(e,this._defaultLanguage))?r.apply(void 0,[].slice.call(arguments,1)):e},n}();function yn(){var n=F();return function(t){var e;return(e=n.translator).translate.apply(e,[t].concat([].slice.call(arguments,1)))}}var Xn=function(n){return function(t){return k({},t,{search:{keyword:n}})}};function nn(){return F().store}function z(n){var t=nn(),e=G(n(t.getState())),r=e[0],o=e[1];return O(function(){return t.subscribe(function(){var i=n(t.getState());r!==i&&o(i)})},[]),r}function Rt(){var n,t=G(void 0),e=t[0],r=t[1],o=F(),i=o.search,u=yn(),s=nn().dispatch,l=z(function(c){return c.search});O(function(){e&&e.setProps({keyword:l==null?void 0:l.keyword})},[l,e]),O(function(){r(i.server?new Bn({keyword:i.keyword,url:i.server.url,body:i.server.body}):new Dt({keyword:i.keyword,columns:o.header&&o.header.columns,ignoreHiddenColumns:i.ignoreHiddenColumns||i.ignoreHiddenColumns===void 0,selector:i.selector})),i.keyword&&s(Xn(i.keyword))},[i]),O(function(){return o.pipeline.register(e),function(){return o.pipeline.unregister(e)}},[o,e]);var f,a,h,p=function(c,d){return un=8,gt(function(){return c},d)}((f=function(c){c.target instanceof HTMLInputElement&&s(Xn(c.target.value))},a=e instanceof Bn?i.debounceTimeout||250:0,function(){var c=arguments;return new Promise(function(d){h&&clearTimeout(h),h=setTimeout(function(){return d(f.apply(void 0,[].slice.call(c)))},a)})}),[i,e]);return _("div",{className:x(S("search",(n=o.className)==null?void 0:n.search))},_("input",{type:"search",placeholder:u("search.placeholder"),"aria-label":u("search.placeholder"),onInput:p,className:S(x("input"),x("search","input")),value:(l==null?void 0:l.keyword)||""}))}var Jn=function(n){function t(){return n.apply(this,arguments)||this}T(t,n);var e=t.prototype;return e.validateProps=function(){if(isNaN(Number(this.props.limit))||isNaN(Number(this.props.page)))throw Error("Invalid parameters passed")},e._process=function(r){var o=this.props.page;return new vn(r.rows.slice(o*this.props.limit,(o+1)*this.props.limit))},D(t,[{key:"type",get:function(){return j.Limit}}]),t}($),Zn=function(n){function t(){return n.apply(this,arguments)||this}return T(t,n),t.prototype._process=function(e){var r={};return this.props.url&&(r.url=this.props.url(e.url,this.props.page,this.props.limit)),this.props.body&&(r.body=this.props.body(e.body,this.props.page,this.props.limit)),k({},e,r)},D(t,[{key:"type",get:function(){return j.ServerLimit}}]),t}($);function Ut(){var n=F(),t=n.pagination,e=t.server,r=t.summary,o=r===void 0||r,i=t.nextButton,u=i===void 0||i,s=t.prevButton,l=s===void 0||s,f=t.buttonsCount,a=f===void 0?3:f,h=t.limit,p=h===void 0?10:h,c=t.page,d=c===void 0?0:c,P=t.resetPageOnUpdate,y=P===void 0||P,v=sn(null),N=G(d),b=N[0],w=N[1],V=G(0),U=V[0],L=V[1],m=yn();O(function(){return v.current=e?new Zn({limit:p,page:b,url:e.url,body:e.body}):new Jn({limit:p,page:b}),v.current instanceof Zn?n.pipeline.on("afterProcess",function(E){return L(E.length)}):v.current instanceof Jn&&v.current.on("beforeProcess",function(E){return L(E.length)}),n.pipeline.on("updated",W),n.pipeline.register(v.current),n.pipeline.on("error",function(){L(0),w(0)}),function(){n.pipeline.unregister(v.current),n.pipeline.off("updated",W)}},[]);var W=function(E){y&&E!==v.current&&w(0)},C=function(){return Math.ceil(U/p)},K=function(E){if(E>=C()||E<0||E===b)return null;w(E),v.current.setProps({page:E})};return _("div",{className:S(x("pagination"),n.className.pagination)},_(q,null,o&&U>0&&_("div",{role:"status","aria-live":"polite",className:S(x("summary"),n.className.paginationSummary),title:m("pagination.navigate",b+1,C())},m("pagination.showing")," ",_("b",null,m(""+(b*p+1)))," ",m("pagination.to")," ",_("b",null,m(""+Math.min((b+1)*p,U)))," ",m("pagination.of")," ",_("b",null,m(""+U))," ",m("pagination.results"))),_("div",{className:x("pages")},l&&_("button",{tabIndex:0,role:"button",disabled:b===0,onClick:function(){return K(b-1)},title:m("pagination.previous"),"aria-label":m("pagination.previous"),className:S(n.className.paginationButton,n.className.paginationButtonPrev)},m("pagination.previous")),function(){if(a<=0)return null;var E=Math.min(C(),a),Z=Math.min(b,Math.floor(E/2));return b+Math.floor(E/2)>=C()&&(Z=E-(C()-b)),_(q,null,C()>E&&b-Z>0&&_(q,null,_("button",{tabIndex:0,role:"button",onClick:function(){return K(0)},title:m("pagination.firstPage"),"aria-label":m("pagination.firstPage"),className:n.className.paginationButton},m("1")),_("button",{tabIndex:-1,className:S(x("spread"),n.className.paginationButton)},"...")),Array.from(Array(E).keys()).map(function(A){return b+(A-Z)}).map(function(A){return _("button",{tabIndex:0,role:"button",onClick:function(){return K(A)},className:S(b===A?S(x("currentPage"),n.className.paginationButtonCurrent):null,n.className.paginationButton),title:m("pagination.page",A+1),"aria-label":m("pagination.page",A+1)},m(""+(A+1)))}),C()>E&&C()>b+Z+1&&_(q,null,_("button",{tabIndex:-1,className:S(x("spread"),n.className.paginationButton)},"..."),_("button",{tabIndex:0,role:"button",onClick:function(){return K(C()-1)},title:m("pagination.page",C()),"aria-label":m("pagination.page",C()),className:n.className.paginationButton},m(""+C()))))}(),u&&_("button",{tabIndex:0,role:"button",disabled:C()===b+1||C()===0,onClick:function(){return K(b+1)},title:m("pagination.next"),"aria-label":m("pagination.next"),className:S(n.className.paginationButton,n.className.paginationButtonNext)},m("pagination.next"))))}function Bt(n,t){return typeof n=="string"?n.indexOf("%")>-1?t/100*parseInt(n,10):parseInt(n,10):n}function Nn(n){return n?Math.floor(n)+"px":""}function Wt(n){var t=n.tableRef.cloneNode(!0);return t.style.position="absolute",t.style.width="100%",t.style.zIndex="-2147483640",t.style.visibility="hidden",_("div",{ref:function(e){e&&e.appendChild(t)}})}function qt(n){if(!n)return"";var t=n.split(" ");return t.length===1&&/([a-z][A-Z])+/g.test(n)?n:t.map(function(e,r){return r==0?e.toLowerCase():e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}).join("")}var J,B=new(function(){function n(){}var t=n.prototype;return t.format=function(e,r){return"[Grid.js] ["+r.toUpperCase()+"]: "+e},t.error=function(e,r){r===void 0&&(r=!1);var o=this.format(e,"error");if(r)throw Error(o);console.error(o)},t.warn=function(e){console.warn(this.format(e,"warn"))},t.info=function(e){console.info(this.format(e,"info"))},n}());(function(n){n[n.Header=0]="Header",n[n.Footer=1]="Footer",n[n.Cell=2]="Cell"})(J||(J={}));var zt=function(){function n(){this.plugins=void 0,this.plugins=[]}var t=n.prototype;return t.get=function(e){return this.plugins.find(function(r){return r.id===e})},t.add=function(e){return e.id?this.get(e.id)?(B.error("Duplicate plugin ID: "+e.id),this):(this.plugins.push(e),this):(B.error("Plugin ID cannot be empty"),this)},t.remove=function(e){var r=this.get(e);return r&&this.plugins.splice(this.plugins.indexOf(r),1),this},t.list=function(e){var r;return r=e!=null||e!=null?this.plugins.filter(function(o){return o.position===e}):this.plugins,r.sort(function(o,i){return o.order&&i.order?o.order-i.order:1})},n}();function bn(n){var t=this,e=F();if(n.pluginId){var r=e.plugin.get(n.pluginId);return r?_(q,{},_(r.component,k({plugin:r},n.props))):null}return n.position!==void 0?_(q,{},e.plugin.list(n.position).map(function(o){return _(o.component,k({plugin:o},t.props.props))})):null}var Y=function(n){function t(){var r;return(r=n.call(this)||this)._columns=void 0,r._columns=[],r}T(t,n);var e=t.prototype;return e.adjustWidth=function(r,o,i){var u=r.container,s=r.autoWidth;if(!u)return this;var l=u.clientWidth,f={};o.current&&s&&(rn(_(Wt,{tableRef:o.current}),i.current),f=function(c){var d=c.querySelector("table");if(!d)return{};var P=d.className,y=d.style.cssText;d.className=P+" "+x("shadowTable"),d.style.tableLayout="auto",d.style.width="auto",d.style.padding="0",d.style.margin="0",d.style.border="none",d.style.outline="none";var v=Array.from(d.parentNode.querySelectorAll("thead th")).reduce(function(N,b){var w;return b.style.width=b.clientWidth+"px",k(((w={})[b.getAttribute("data-column-id")]={minWidth:b.clientWidth},w),N)},{});return d.className=P,d.style.cssText=y,d.style.tableLayout="auto",Array.from(d.parentNode.querySelectorAll("thead th")).reduce(function(N,b){return N[b.getAttribute("data-column-id")].width=b.clientWidth,N},v)}(i.current));for(var a,h=H(t.tabularFormat(this.columns).reduce(function(c,d){return c.concat(d)},[]));!(a=h()).done;){var p=a.value;p.columns&&p.columns.length>0||(!p.width&&s?p.id in f&&(p.width=Nn(f[p.id].width),p.minWidth=Nn(f[p.id].minWidth)):p.width=Nn(Bt(p.width,l)))}return o.current&&s&&rn(null,i.current),this},e.setSort=function(r,o){for(var i,u=H(o||this.columns||[]);!(i=u()).done;){var s=i.value;s.columns&&s.columns.length>0?s.sort=void 0:s.sort===void 0&&r?s.sort={}:s.sort?typeof s.sort=="object"&&(s.sort=k({},s.sort)):s.sort=void 0,s.columns&&this.setSort(r,s.columns)}},e.setResizable=function(r,o){for(var i,u=H(o||this.columns||[]);!(i=u()).done;){var s=i.value;s.resizable===void 0&&(s.resizable=r),s.columns&&this.setResizable(r,s.columns)}},e.setID=function(r){for(var o,i=H(r||this.columns||[]);!(o=i()).done;){var u=o.value;u.id||typeof u.name!="string"||(u.id=qt(u.name)),u.id||B.error('Could not find a valid ID for one of the columns. Make sure a valid "id" is set for all columns.'),u.columns&&this.setID(u.columns)}},e.populatePlugins=function(r,o){for(var i,u=H(o);!(i=u()).done;){var s=i.value;s.plugin!==void 0&&r.add(k({id:s.id},s.plugin,{position:J.Cell}))}},t.fromColumns=function(r){for(var o,i=new t,u=H(r);!(o=u()).done;){var s=o.value;if(typeof s=="string"||ot(s))i.columns.push({name:s});else if(typeof s=="object"){var l=s;l.columns&&(l.columns=t.fromColumns(l.columns).columns),typeof l.plugin=="object"&&l.data===void 0&&(l.data=null),i.columns.push(s)}}return i},t.createFromConfig=function(r){var o=new t;return r.from?o.columns=t.fromHTMLTable(r.from).columns:r.columns?o.columns=t.fromColumns(r.columns).columns:!r.data||typeof r.data[0]!="object"||r.data[0]instanceof Array||(o.columns=Object.keys(r.data[0]).map(function(i){return{name:i}})),o.columns.length?(o.setID(),o.setSort(r.sort),o.setResizable(r.resizable),o.populatePlugins(r.plugin,o.columns),o):null},t.fromHTMLTable=function(r){for(var o,i=new t,u=H(r.querySelector("thead").querySelectorAll("th"));!(o=u()).done;){var s=o.value;i.columns.push({name:s.innerHTML,width:s.width})}return i},t.tabularFormat=function(r){var o=[],i=r||[],u=[];if(i&&i.length){o.push(i);for(var s,l=H(i);!(s=l()).done;){var f=s.value;f.columns&&f.columns.length&&(u=u.concat(f.columns))}u.length&&(o=o.concat(this.tabularFormat(u)))}return o},t.leafColumns=function(r){var o=[],i=r||[];if(i&&i.length)for(var u,s=H(i);!(u=s()).done;){var l=u.value;l.columns&&l.columns.length!==0||o.push(l),l.columns&&(o=o.concat(this.leafColumns(l.columns)))}return o},t.maximumDepth=function(r){return this.tabularFormat([r]).length-1},D(t,[{key:"columns",get:function(){return this._columns},set:function(r){this._columns=r}},{key:"visibleColumns",get:function(){return this._columns.filter(function(r){return!r.hidden})}}]),t}(mn),bt=function(){},Qn=function(n){function t(r){var o;return(o=n.call(this)||this).data=void 0,o.set(r),o}T(t,n);var e=t.prototype;return e.get=function(){try{return Promise.resolve(this.data()).then(function(r){return{data:r,total:r.length}})}catch(r){return Promise.reject(r)}},e.set=function(r){return r instanceof Array?this.data=function(){return r}:r instanceof Function&&(this.data=r),this},t}(bt),wt=function(n){function t(r){var o;return(o=n.call(this)||this).options=void 0,o.options=r,o}T(t,n);var e=t.prototype;return e.handler=function(r){return typeof this.options.handle=="function"?this.options.handle(r):r.ok?r.json():(B.error("Could not fetch data: "+r.status+" - "+r.statusText,!0),null)},e.get=function(r){var o=k({},this.options,r);return typeof o.data=="function"?o.data(o):fetch(o.url,o).then(this.handler.bind(this)).then(function(i){return{data:o.then(i),total:typeof o.total=="function"?o.total(i):void 0}})},t}(bt),$t=function(){function n(){}return n.createFromConfig=function(t){var e=null;return t.data&&(e=new Qn(t.data)),t.from&&(e=new Qn(this.tableElementToArray(t.from)),t.from.style.display="none"),t.server&&(e=new wt(t.server)),e||B.error("Could not determine the storage type",!0),e},n.tableElementToArray=function(t){for(var e,r,o=[],i=H(t.querySelector("tbody").querySelectorAll("tr"));!(e=i()).done;){for(var u,s=[],l=H(e.value.querySelectorAll("td"));!(u=l()).done;){var f=u.value;f.childNodes.length===1&&f.childNodes[0].nodeType===Node.TEXT_NODE?s.push((r=f.innerHTML,new DOMParser().parseFromString(r,"text/html").documentElement.textContent)):s.push(mt(f.innerHTML))}o.push(s)}return o},n}(),Yn=typeof Symbol<"u"?Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")):"@@iterator";function M(n,t,e){if(!n.s){if(e instanceof Q){if(!e.s)return void(e.o=M.bind(null,n,t));1&t&&(t=e.s),e=e.v}if(e&&e.then)return void e.then(M.bind(null,n,t),M.bind(null,n,2));n.s=t,n.v=e;var r=n.o;r&&r(n)}}var Q=function(){function n(){}return n.prototype.then=function(t,e){var r=new n,o=this.s;if(o){var i=1&o?t:e;if(i){try{M(r,1,i(this.v))}catch(u){M(r,2,u)}return r}return this}return this.o=function(u){try{var s=u.v;1&u.s?M(r,1,t?t(s):s):e?M(r,1,e(s)):M(r,2,s)}catch(l){M(r,2,l)}},r},n}();function nt(n){return n instanceof Q&&1&n.s}var Vt=function(n){function t(r){var o;return(o=n.call(this)||this)._steps=new Map,o.cache=new Map,o.lastProcessorIndexUpdated=-1,r&&r.forEach(function(i){return o.register(i)}),o}T(t,n);var e=t.prototype;return e.clearCache=function(){this.cache=new Map,this.lastProcessorIndexUpdated=-1},e.register=function(r,o){if(o===void 0&&(o=null),r){if(r.type===null)throw Error("Processor type is not defined");r.on("propsUpdated",this.processorPropsUpdated.bind(this)),this.addProcessorByPriority(r,o),this.afterRegistered(r)}},e.unregister=function(r){if(r){var o=this._steps.get(r.type);o&&o.length&&(this._steps.set(r.type,o.filter(function(i){return i!=r})),this.emit("updated",r))}},e.addProcessorByPriority=function(r,o){var i=this._steps.get(r.type);if(!i){var u=[];this._steps.set(r.type,u),i=u}if(o===null||o<0)i.push(r);else if(i[o]){var s=i.slice(0,o-1),l=i.slice(o+1);this._steps.set(r.type,s.concat(r).concat(l))}else i[o]=r},e.getStepsByType=function(r){return this.steps.filter(function(o){return o.type===r})},e.getSortedProcessorTypes=function(){return Object.keys(j).filter(function(r){return!isNaN(Number(r))}).map(function(r){return Number(r)})},e.process=function(r){try{var o=function(a){return i.lastProcessorIndexUpdated=s.length,i.emit("afterProcess",l),l},i=this,u=i.lastProcessorIndexUpdated,s=i.steps,l=r,f=function(a,h){try{var p=function(c,d,P){if(typeof c[Yn]=="function"){var y,v,N,b=c[Yn]();if(function L(m){try{for(;!(y=b.next()).done;)if((m=d(y.value))&&m.then){if(!nt(m))return void m.then(L,N||(N=M.bind(null,v=new Q,2)));m=m.v}v?M(v,1,m):v=m}catch(W){M(v||(v=new Q),2,W)}}(),b.return){var w=function(L){try{y.done||b.return()}catch{}return L};if(v&&v.then)return v.then(w,function(L){throw w(L)});w()}return v}if(!("length"in c))throw new TypeError("Object is not iterable");for(var V=[],U=0;U=u)return Promise.resolve(c.process(l)).then(function(y){i.cache.set(c.id,l=y)});l=i.cache.get(c.id)}();if(P&&P.then)return P.then(function(){})})}catch(c){return h(c)}return p&&p.then?p.then(void 0,h):p}(0,function(a){throw B.error(a),i.emit("error",l),a});return Promise.resolve(f&&f.then?f.then(o):o())}catch(a){return Promise.reject(a)}},e.findProcessorIndexByID=function(r){return this.steps.findIndex(function(o){return o.id==r})},e.setLastProcessorIndex=function(r){var o=this.findProcessorIndexByID(r.id);this.lastProcessorIndexUpdated>o&&(this.lastProcessorIndexUpdated=o)},e.processorPropsUpdated=function(r){this.setLastProcessorIndex(r),this.emit("propsUpdated"),this.emit("updated",r)},e.afterRegistered=function(r){this.setLastProcessorIndex(r),this.emit("afterRegister"),this.emit("updated",r)},D(t,[{key:"steps",get:function(){for(var r,o=[],i=H(this.getSortedProcessorTypes());!(r=i()).done;){var u=this._steps.get(r.value);u&&u.length&&(o=o.concat(u))}return o.filter(function(s){return s})}}]),t}(Ln),Gt=function(n){function t(){return n.apply(this,arguments)||this}return T(t,n),t.prototype._process=function(e){try{return Promise.resolve(this.props.storage.get(e))}catch(r){return Promise.reject(r)}},D(t,[{key:"type",get:function(){return j.Extractor}}]),t}($),Kt=function(n){function t(){return n.apply(this,arguments)||this}return T(t,n),t.prototype._process=function(e){var r=vn.fromArray(e.data);return r.length=e.total,r},D(t,[{key:"type",get:function(){return j.Transformer}}]),t}($),Xt=function(n){function t(){return n.apply(this,arguments)||this}return T(t,n),t.prototype._process=function(){return Object.entries(this.props.serverStorageOptions).filter(function(e){return typeof e[1]!="function"}).reduce(function(e,r){var o;return k({},e,((o={})[r[0]]=r[1],o))},{})},D(t,[{key:"type",get:function(){return j.Initiator}}]),t}($),Jt=function(n){function t(){return n.apply(this,arguments)||this}T(t,n);var e=t.prototype;return e.castData=function(r){if(!r||!r.length)return[];if(!this.props.header||!this.props.header.columns)return r;var o=Y.leafColumns(this.props.header.columns);return r[0]instanceof Array?r.map(function(i){var u=0;return o.map(function(s,l){return s.data!==void 0?(u++,typeof s.data=="function"?s.data(i):s.data):i[l-u]})}):typeof r[0]!="object"||r[0]instanceof Array?[]:r.map(function(i){return o.map(function(u,s){return u.data!==void 0?typeof u.data=="function"?u.data(i):u.data:u.id?i[u.id]:(B.error("Could not find the correct cell for column at position "+s+`. Make sure either 'id' or 'selector' is defined for all columns.`),null)})})},e._process=function(r){return{data:this.castData(r.data),total:r.total}},D(t,[{key:"type",get:function(){return j.Transformer}}]),t}($),Zt=function(){function n(){}return n.createFromConfig=function(t){var e=new Vt;return t.storage instanceof wt&&e.register(new Xt({serverStorageOptions:t.server})),e.register(new Gt({storage:t.storage})),e.register(new Jt({header:t.header})),e.register(new Kt),e},n}(),Qt=function(n){var t=this;this.state=void 0,this.listeners=[],this.isDispatching=!1,this.getState=function(){return t.state},this.getListeners=function(){return t.listeners},this.dispatch=function(e){if(typeof e!="function")throw new Error("Reducer is not a function");if(t.isDispatching)throw new Error("Reducers may not dispatch actions");t.isDispatching=!0;var r=t.state;try{t.state=e(t.state)}finally{t.isDispatching=!1}for(var o,i=H(t.listeners);!(o=i()).done;)(0,o.value)(t.state,r);return t.state},this.subscribe=function(e){if(typeof e!="function")throw new Error("Listener is not a function");return t.listeners=[].concat(t.listeners,[e]),function(){return t.listeners=t.listeners.filter(function(r){return r!==e})}},this.state=n},xt=function(n,t){var e={__c:t="__cC"+it++,__:null,Consumer:function(r,o){return r.children(o)},Provider:function(r){var o,i;return this.getChildContext||(o=[],(i={})[t]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(u){this.props.value!==u.value&&o.some(Cn)},this.sub=function(u){o.push(u);var s=u.componentWillUnmount;u.componentWillUnmount=function(){o.splice(o.indexOf(u),1),s&&s.call(u)}}),r.children}};return e.Provider.__=e.Consumer.contextType=e}(),Yt=function(){function n(){Object.assign(this,n.defaultConfig())}var t=n.prototype;return t.assign=function(e){return Object.assign(this,e)},t.update=function(e){return e?(this.assign(n.fromPartialConfig(k({},this,e))),this):this},n.defaultConfig=function(){return{store:new Qt({status:R.Init,header:void 0,data:null}),plugin:new zt,tableRef:{current:null},width:"100%",height:"auto",autoWidth:!0,style:{},className:{}}},n.fromPartialConfig=function(e){var r=new n().assign(e);return typeof e.sort=="boolean"&&e.sort&&r.assign({sort:{multiColumn:!0}}),r.assign({header:Y.createFromConfig(r)}),r.assign({storage:$t.createFromConfig(r)}),r.assign({pipeline:Zt.createFromConfig(r)}),r.assign({translator:new Ft(r.language)}),r.search&&r.plugin.add({id:"search",position:J.Header,component:Rt}),r.pagination&&r.plugin.add({id:"pagination",position:J.Footer,component:Ut}),r.plugins&&r.plugins.forEach(function(o){return r.plugin.add(o)}),r},n}();function kt(n){var t,e=F();return _("td",k({role:n.role,colSpan:n.colSpan,"data-column-id":n.column&&n.column.id,className:S(x("td"),n.className,e.className.td),style:k({},n.style,e.style.td),onClick:function(r){n.messageCell||e.eventEmitter.emit("cellClick",r,n.cell,n.column,n.row)}},(t=n.column)?typeof t.attributes=="function"?t.attributes(n.cell.data,n.row,n.column):t.attributes:{}),n.column&&typeof n.column.formatter=="function"?n.column.formatter(n.cell.data,n.row,n.column):n.column&&n.column.plugin?_(bn,{pluginId:n.column.id,props:{column:n.column,cell:n.cell,row:n.row}}):n.cell.data)}function An(n){var t=F(),e=z(function(r){return r.header});return _("tr",{className:S(x("tr"),t.className.tr),onClick:function(r){n.messageRow||t.eventEmitter.emit("rowClick",r,n.row)}},n.children?n.children:n.row.cells.map(function(r,o){var i=function(u){if(e){var s=Y.leafColumns(e.columns);if(s)return s[u]}return null}(o);return i&&i.hidden?null:_(kt,{key:r.id,cell:r,row:n.row,column:i})}))}function Sn(n){return _(An,{messageRow:!0},_(kt,{role:"alert",colSpan:n.colSpan,messageCell:!0,cell:new Tn(n.message),className:S(x("message"),n.className?n.className:null)}))}function ne(){var n=F(),t=z(function(u){return u.data}),e=z(function(u){return u.status}),r=z(function(u){return u.header}),o=yn(),i=function(){return r?r.visibleColumns.length:0};return _("tbody",{className:S(x("tbody"),n.className.tbody)},t&&t.rows.map(function(u){return _(An,{key:u.id,row:u})}),e===R.Loading&&(!t||t.length===0)&&_(Sn,{message:o("loading"),colSpan:i(),className:S(x("loading"),n.className.loading)}),e===R.Rendered&&t&&t.length===0&&_(Sn,{message:o("noRecordsFound"),colSpan:i(),className:S(x("notfound"),n.className.notfound)}),e===R.Error&&_(Sn,{message:o("error"),colSpan:i(),className:S(x("error"),n.className.error)}))}var te=function(n){function t(){return n.apply(this,arguments)||this}T(t,n);var e=t.prototype;return e.validateProps=function(){for(var r,o=H(this.props.columns);!(r=o()).done;){var i=r.value;i.direction===void 0&&(i.direction=1),i.direction!==1&&i.direction!==-1&&B.error("Invalid sort direction "+i.direction)}},e.compare=function(r,o){return r>o?1:r1&&(f=!0,l=!0):u===0?l=!0:u>0&&!e?(l=!0,f=!0):u>0&&e&&(l=!0),f&&(i=[]),l)i.push({index:n,direction:t,compare:r});else if(h){var p=i.indexOf(s);i[p].direction=t}else if(a){var c=i.indexOf(s);i.splice(c,1)}return k({},o,{sort:{columns:i}})}},Nt=function(n,t,e){return function(r){var o=(r.sort?[].concat(r.sort.columns):[]).find(function(i){return i.index===n});return k({},r,o?tt(n,o.direction===1?-1:1,t,e)(r):tt(n,1,t,e)(r))}},ee=function(n){function t(){return n.apply(this,arguments)||this}return T(t,n),t.prototype._process=function(e){var r={};return this.props.url&&(r.url=this.props.url(e.url,this.props.columns)),this.props.body&&(r.body=this.props.body(e.body,this.props.columns)),k({},e,r)},D(t,[{key:"type",get:function(){return j.ServerSort}}]),t}($);function re(n){var t=F(),e=yn(),r=G(0),o=r[0],i=r[1],u=G(void 0),s=u[0],l=u[1],f=z(function(c){return c.sort}),a=nn().dispatch,h=t.sort;O(function(){var c=p();c&&l(c)},[]),O(function(){return t.pipeline.register(s),function(){return t.pipeline.unregister(s)}},[t,s]),O(function(){if(f){var c=f.columns.find(function(d){return d.index===n.index});i(c?c.direction:0)}},[f]),O(function(){s&&f&&s.setProps({columns:f.columns})},[f]);var p=function(){var c=j.Sort;return h&&typeof h.server=="object"&&(c=j.ServerSort),t.pipeline.getStepsByType(c).length===0?c===j.ServerSort?new ee(k({columns:f?f.columns:[]},h.server)):new te({columns:f?f.columns:[]}):null};return _("button",{tabIndex:-1,"aria-label":e("sort.sort"+(o===1?"Desc":"Asc")),title:e("sort.sort"+(o===1?"Desc":"Asc")),className:S(x("sort"),x("sort",function(c){return c===1?"asc":c===-1?"desc":"neutral"}(o)),t.className.sort),onClick:function(c){c.preventDefault(),c.stopPropagation(),a(Nt(n.index,c.shiftKey===!0&&h.multiColumn,n.compare))}})}function oe(n){var t,e=function(u){return u instanceof MouseEvent?Math.floor(u.pageX):Math.floor(u.changedTouches[0].pageX)},r=function(u){u.stopPropagation();var s,l,f,a,h,p=parseInt(n.thRef.current.style.width,10)-e(u);s=function(c){return o(c,p)},(l=10)===void 0&&(l=100),t=function(){var c=[].slice.call(arguments);f?(clearTimeout(a),a=setTimeout(function(){Date.now()-h>=l&&(s.apply(void 0,c),h=Date.now())},Math.max(l-(Date.now()-h),0))):(s.apply(void 0,c),h=Date.now(),f=!0)},document.addEventListener("mouseup",i),document.addEventListener("touchend",i),document.addEventListener("mousemove",t),document.addEventListener("touchmove",t)},o=function(u,s){u.stopPropagation();var l=n.thRef.current;s+e(u)>=parseInt(l.style.minWidth,10)&&(l.style.width=s+e(u)+"px")},i=function u(s){s.stopPropagation(),document.removeEventListener("mouseup",u),document.removeEventListener("mousemove",t),document.removeEventListener("touchmove",t),document.removeEventListener("touchend",u)};return _("div",{className:S(x("th"),x("resizable")),onMouseDown:r,onTouchStart:r,onClick:function(u){return u.stopPropagation()}})}function ie(n){var t=F(),e=sn(null),r=G({}),o=r[0],i=r[1],u=nn().dispatch;O(function(){if(t.fixedHeader&&e.current){var a=e.current.offsetTop;typeof a=="number"&&i({top:a})}},[e]);var s,l=function(){return n.column.sort!=null},f=function(a){a.stopPropagation(),l()&&u(Nt(n.index,a.shiftKey===!0&&t.sort.multiColumn,n.column.sort.compare))};return _("th",k({ref:e,"data-column-id":n.column&&n.column.id,className:S(x("th"),l()?x("th","sort"):null,t.fixedHeader?x("th","fixed"):null,t.className.th),onClick:f,style:k({},t.style.th,{minWidth:n.column.minWidth,width:n.column.width},o,n.style),onKeyDown:function(a){l()&&a.which===13&&f(a)},rowSpan:n.rowSpan>1?n.rowSpan:void 0,colSpan:n.colSpan>1?n.colSpan:void 0},(s=n.column)?typeof s.attributes=="function"?s.attributes(null,null,n.column):s.attributes:{},l()?{tabIndex:0}:{}),_("div",{className:x("th","content")},n.column.name!==void 0?n.column.name:n.column.plugin!==void 0?_(bn,{pluginId:n.column.plugin.id,props:{column:n.column}}):null),l()&&_(re,k({index:n.index},n.column.sort)),n.column.resizable&&n.index0?(B.error("The container element "+r+" is not empty. Make sure the container is empty and call render() again"),this):(this.config.container=r,rn(this.createElement(),r),this)},t}(Ln);/*! ***************************************************************************** Copyright (c) Microsoft Corporation. diff --git a/public/build/assets/index.esm-eebfcfab.js b/public/build/assets/index.esm-2010c99b.js similarity index 99% rename from public/build/assets/index.esm-eebfcfab.js rename to public/build/assets/index.esm-2010c99b.js index e72615b..236c1f7 100644 --- a/public/build/assets/index.esm-eebfcfab.js +++ b/public/build/assets/index.esm-2010c99b.js @@ -1 +1 @@ -import{R as d,a as u,j as z}from"./app-7082a047.js";var s={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},v=d.createContext&&d.createContext(s),n=globalThis&&globalThis.__assign||function(){return n=Object.assign||function(a){for(var r,e=1,i=arguments.length;et in e?Fe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,X=(e,t,n)=>(we(e,typeof t!="symbol"?t+"":t,n),n);let Ce=class{constructor(){X(this,"current",this.detect()),X(this,"handoffState","pending"),X(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},A=new Ce,D=(e,t)=>{A.isServer?l.useEffect(e,t):l.useLayoutEffect(e,t)};function j(e){let t=l.useRef(e);return D(()=>{t.current=e},[e]),t}function Se(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function R(){let e=[],t={addEventListener(n,r,i,d){return n.addEventListener(r,i,d),t.add(()=>n.removeEventListener(r,i,d))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return Se(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,i){let d=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:i}),this.add(()=>{Object.assign(n.style,{[r]:d})})},group(n){let r=R();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let i of e.splice(r,1))i()}},dispose(){for(let n of e.splice(0))n()}};return t}function ae(){let[e]=l.useState(R);return l.useEffect(()=>()=>e.dispose(),[e]),e}let $=function(e){let t=j(e);return F.useCallback((...n)=>t.current(...n),[t])};function se(){let[e,t]=l.useState(A.isHandoffComplete);return e&&A.isHandoffComplete===!1&&t(!1),l.useEffect(()=>{e!==!0&&t(!0)},[e]),l.useEffect(()=>A.handoff(),[]),e}function y(e,t,...n){if(e in t){let i=t[e];return typeof i=="function"?i(...n):i}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,y),r}let oe=Symbol();function We(e,t=!0){return Object.assign(e,{[oe]:t})}function ue(...e){let t=l.useRef(e);l.useEffect(()=>{t.current=e},[e]);let n=$(r=>{for(let i of t.current)i!=null&&(typeof i=="function"?i(r):i.current=r)});return e.every(r=>r==null||(r==null?void 0:r[oe]))?void 0:n}function K(...e){return e.filter(Boolean).join(" ")}var ce=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(ce||{}),w=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(w||{});function de({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:d=!0,name:f}){let o=fe(t,e);if(d)return H(o,n,r,f);let u=i??0;if(u&2){let{static:s=!1,...c}=o;if(s)return H(c,n,r,f)}if(u&1){let{unmount:s=!0,...c}=o;return y(s?0:1,{[0](){return null},[1](){return H({...c,hidden:!0,style:{display:"none"}},n,r,f)}})}return H(o,n,r,f)}function H(e,t={},n,r){let{as:i=n,children:d,refName:f="ref",...o}=Y(e,["unmount","static"]),u=e.ref!==void 0?{[f]:e.ref}:{},s=typeof d=="function"?d(t):d;"className"in o&&o.className&&typeof o.className=="function"&&(o.className=o.className(t));let c={};if(t){let p=!1,v=[];for(let[h,a]of Object.entries(t))typeof a=="boolean"&&(p=!0),a===!0&&v.push(h);p&&(c["data-headlessui-state"]=v.join(" "))}if(i===l.Fragment&&Object.keys(ie(o)).length>0){if(!l.isValidElement(s)||Array.isArray(s)&&s.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(o).map(a=>` - ${a}`).join(` +import{r as l,R as F,a as re}from"./app-a8d4275f.js";var Fe=Object.defineProperty,we=(e,t,n)=>t in e?Fe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,X=(e,t,n)=>(we(e,typeof t!="symbol"?t+"":t,n),n);let Ce=class{constructor(){X(this,"current",this.detect()),X(this,"handoffState","pending"),X(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},A=new Ce,D=(e,t)=>{A.isServer?l.useEffect(e,t):l.useLayoutEffect(e,t)};function j(e){let t=l.useRef(e);return D(()=>{t.current=e},[e]),t}function Se(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function R(){let e=[],t={addEventListener(n,r,i,d){return n.addEventListener(r,i,d),t.add(()=>n.removeEventListener(r,i,d))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return Se(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,i){let d=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:i}),this.add(()=>{Object.assign(n.style,{[r]:d})})},group(n){let r=R();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let i of e.splice(r,1))i()}},dispose(){for(let n of e.splice(0))n()}};return t}function ae(){let[e]=l.useState(R);return l.useEffect(()=>()=>e.dispose(),[e]),e}let $=function(e){let t=j(e);return F.useCallback((...n)=>t.current(...n),[t])};function se(){let[e,t]=l.useState(A.isHandoffComplete);return e&&A.isHandoffComplete===!1&&t(!1),l.useEffect(()=>{e!==!0&&t(!0)},[e]),l.useEffect(()=>A.handoff(),[]),e}function y(e,t,...n){if(e in t){let i=t[e];return typeof i=="function"?i(...n):i}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,y),r}let oe=Symbol();function We(e,t=!0){return Object.assign(e,{[oe]:t})}function ue(...e){let t=l.useRef(e);l.useEffect(()=>{t.current=e},[e]);let n=$(r=>{for(let i of t.current)i!=null&&(typeof i=="function"?i(r):i.current=r)});return e.every(r=>r==null||(r==null?void 0:r[oe]))?void 0:n}function K(...e){return e.filter(Boolean).join(" ")}var ce=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(ce||{}),w=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(w||{});function de({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:d=!0,name:f}){let o=fe(t,e);if(d)return H(o,n,r,f);let u=i??0;if(u&2){let{static:s=!1,...c}=o;if(s)return H(c,n,r,f)}if(u&1){let{unmount:s=!0,...c}=o;return y(s?0:1,{[0](){return null},[1](){return H({...c,hidden:!0,style:{display:"none"}},n,r,f)}})}return H(o,n,r,f)}function H(e,t={},n,r){let{as:i=n,children:d,refName:f="ref",...o}=Y(e,["unmount","static"]),u=e.ref!==void 0?{[f]:e.ref}:{},s=typeof d=="function"?d(t):d;"className"in o&&o.className&&typeof o.className=="function"&&(o.className=o.className(t));let c={};if(t){let p=!1,v=[];for(let[h,a]of Object.entries(t))typeof a=="boolean"&&(p=!0),a===!0&&v.push(h);p&&(c["data-headlessui-state"]=v.join(" "))}if(i===l.Fragment&&Object.keys(ie(o)).length>0){if(!l.isValidElement(s)||Array.isArray(s)&&s.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(o).map(a=>` - ${a}`).join(` `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(a=>` - ${a}`).join(` `)].join(` `));let p=s.props,v=typeof(p==null?void 0:p.className)=="function"?(...a)=>K(p==null?void 0:p.className(...a),o.className):K(p==null?void 0:p.className,o.className),h=v?{className:v}:{};return l.cloneElement(s,Object.assign({},fe(s.props,ie(Y(o,["ref"]))),c,u,Oe(s.ref,u.ref),h))}return l.createElement(i,Object.assign({},Y(o,["ref"]),i!==l.Fragment&&u,i!==l.Fragment&&c),s)}function Oe(...e){return{ref:e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}}function fe(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):t[i]=r[i];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](i,...d){let f=n[r];for(let o of f){if((i instanceof Event||(i==null?void 0:i.nativeEvent)instanceof Event)&&i.defaultPrevented)return;o(i,...d)}}});return t}function Z(e){var t;return Object.assign(l.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function ie(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function Y(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}let ee=l.createContext(null);ee.displayName="OpenClosedContext";var T=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(T||{});function me(){return l.useContext(ee)}function $e({value:e,children:t}){return F.createElement(ee.Provider,{value:e},t)}function te(){let e=l.useRef(!1);return D(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function je(e=0){let[t,n]=l.useState(e),r=te(),i=l.useCallback(u=>{r.current&&n(s=>s|u)},[t,r]),d=l.useCallback(u=>!!(t&u),[t]),f=l.useCallback(u=>{r.current&&n(s=>s&~u)},[n,r]),o=l.useCallback(u=>{r.current&&n(s=>s^u)},[n]);return{flags:t,addFlag:i,hasFlag:d,removeFlag:f,toggleFlag:o}}function Ne(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function _(e,...t){e&&t.length>0&&e.classList.add(...t)}function J(e,...t){e&&t.length>0&&e.classList.remove(...t)}function Re(e,t){let n=R();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:i}=getComputedStyle(e),[d,f]=[r,i].map(u=>{let[s=0]=u.split(",").filter(Boolean).map(c=>c.includes("ms")?parseFloat(c):parseFloat(c)*1e3).sort((c,p)=>p-c);return s}),o=d+f;if(o!==0){n.group(s=>{s.setTimeout(()=>{t(),s.dispose()},o),s.addEventListener(e,"transitionrun",c=>{c.target===c.currentTarget&&s.dispose()})});let u=n.addEventListener(e,"transitionend",s=>{s.target===s.currentTarget&&(t(),u())})}else t();return n.add(()=>t()),n.dispose}function xe(e,t,n,r){let i=n?"enter":"leave",d=R(),f=r!==void 0?Ne(r):()=>{};i==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let o=y(i,{enter:()=>t.enter,leave:()=>t.leave}),u=y(i,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),s=y(i,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return J(e,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),_(e,...o,...s),d.nextFrame(()=>{J(e,...s),_(e,...u),Re(e,()=>(J(e,...o),_(e,...t.entered),f()))}),d.dispose}function Pe({container:e,direction:t,classes:n,onStart:r,onStop:i}){let d=te(),f=ae(),o=j(t);D(()=>{let u=R();f.add(u.dispose);let s=e.current;if(s&&o.current!=="idle"&&d.current)return u.dispose(),r.current(o.current),u.add(xe(s,n.current,o.current==="enter",()=>{u.dispose(),i.current(o.current)})),u.dispose},[t])}function O(e=""){return e.split(" ").filter(t=>t.trim().length>1)}let q=l.createContext(null);q.displayName="TransitionContext";var Le=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Le||{});function ke(){let e=l.useContext(q);if(e===null)throw new Error("A is used but it is missing a parent or .");return e}function He(){let e=l.useContext(I);if(e===null)throw new Error("A is used but it is missing a parent or .");return e}let I=l.createContext(null);I.displayName="NestingContext";function M(e){return"children"in e?M(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function pe(e,t){let n=j(e),r=l.useRef([]),i=te(),d=ae(),f=$((h,a=w.Hidden)=>{let g=r.current.findIndex(({el:m})=>m===h);g!==-1&&(y(a,{[w.Unmount](){r.current.splice(g,1)},[w.Hidden](){r.current[g].state="hidden"}}),d.microTask(()=>{var m;!M(r)&&i.current&&((m=n.current)==null||m.call(n))}))}),o=$(h=>{let a=r.current.find(({el:g})=>g===h);return a?a.state!=="visible"&&(a.state="visible"):r.current.push({el:h,state:"visible"}),()=>f(h,w.Unmount)}),u=l.useRef([]),s=l.useRef(Promise.resolve()),c=l.useRef({enter:[],leave:[],idle:[]}),p=$((h,a,g)=>{u.current.splice(0),t&&(t.chains.current[a]=t.chains.current[a].filter(([m])=>m!==h)),t==null||t.chains.current[a].push([h,new Promise(m=>{u.current.push(m)})]),t==null||t.chains.current[a].push([h,new Promise(m=>{Promise.all(c.current[a].map(([b,E])=>E)).then(()=>m())})]),a==="enter"?s.current=s.current.then(()=>t==null?void 0:t.wait.current).then(()=>g(a)):g(a)}),v=$((h,a,g)=>{Promise.all(c.current[a].splice(0).map(([m,b])=>b)).then(()=>{var m;(m=u.current.shift())==null||m()}).then(()=>g(a))});return l.useMemo(()=>({children:r,register:o,unregister:f,onStart:p,onStop:v,wait:s,chains:c}),[o,f,r,p,v,c,s])}function Ae(){}let De=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function le(e){var t;let n={};for(let r of De)n[r]=(t=e[r])!=null?t:Ae;return n}function qe(e){let t=l.useRef(le(e));return l.useEffect(()=>{t.current=le(e)},[e]),t}let Ie="div",he=ce.RenderStrategy;function Me(e,t){let{beforeEnter:n,afterEnter:r,beforeLeave:i,afterLeave:d,enter:f,enterFrom:o,enterTo:u,entered:s,leave:c,leaveFrom:p,leaveTo:v,...h}=e,a=l.useRef(null),g=ue(a,t),m=h.unmount?w.Unmount:w.Hidden,{show:b,appear:E,initial:ge}=ke(),[C,U]=l.useState(b?"visible":"hidden"),ne=He(),{register:x,unregister:P}=ne,B=l.useRef(null);l.useEffect(()=>x(a),[x,a]),l.useEffect(()=>{if(m===w.Hidden&&a.current){if(b&&C!=="visible"){U("visible");return}return y(C,{hidden:()=>P(a),visible:()=>x(a)})}},[C,a,x,P,b,m]);let V=j({enter:O(f),enterFrom:O(o),enterTo:O(u),entered:O(s),leave:O(c),leaveFrom:O(p),leaveTo:O(v)}),L=qe({beforeEnter:n,afterEnter:r,beforeLeave:i,afterLeave:d}),z=se();l.useEffect(()=>{if(z&&C==="visible"&&a.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[a,C,z]);let G=ge&&!E,be=(()=>!z||G||B.current===b?"idle":b?"enter":"leave")(),N=je(0),ye=$(S=>y(S,{enter:()=>{N.addFlag(T.Opening),L.current.beforeEnter()},leave:()=>{N.addFlag(T.Closing),L.current.beforeLeave()},idle:()=>{}})),Ee=$(S=>y(S,{enter:()=>{N.removeFlag(T.Opening),L.current.afterEnter()},leave:()=>{N.removeFlag(T.Closing),L.current.afterLeave()},idle:()=>{}})),k=pe(()=>{U("hidden"),P(a)},ne);Pe({container:a,classes:V,direction:be,onStart:j(S=>{k.onStart(a,S,ye)}),onStop:j(S=>{k.onStop(a,S,Ee),S==="leave"&&!M(k)&&(U("hidden"),P(a))})}),l.useEffect(()=>{G&&(m===w.Hidden?B.current=null:B.current=b)},[b,G,C]);let W=h,Te={ref:g};return E&&b&&(W={...W,className:K(h.className,...V.current.enter,...V.current.enterFrom)}),F.createElement(I.Provider,{value:k},F.createElement($e,{value:y(C,{visible:T.Open,hidden:T.Closed})|N.flags},de({ourProps:Te,theirProps:W,defaultTag:Ie,features:he,visible:C==="visible",name:"Transition.Child"})))}function Ue(e,t){let{show:n,appear:r=!1,unmount:i,...d}=e,f=l.useRef(null),o=ue(f,t);se();let u=me();if(n===void 0&&u!==null&&(n=(u&T.Open)===T.Open),![!0,!1].includes(n))throw new Error("A is used but it is missing a `show={true | false}` prop.");let[s,c]=l.useState(n?"visible":"hidden"),p=pe(()=>{c("hidden")}),[v,h]=l.useState(!0),a=l.useRef([n]);D(()=>{v!==!1&&a.current[a.current.length-1]!==n&&(a.current.push(n),h(!1))},[a,n]);let g=l.useMemo(()=>({show:n,appear:r,initial:v}),[n,r,v]);l.useEffect(()=>{if(n)c("visible");else if(!M(p))c("hidden");else{let b=f.current;if(!b)return;let E=b.getBoundingClientRect();E.x===0&&E.y===0&&E.width===0&&E.height===0&&c("hidden")}},[n,p]);let m={unmount:i};return re(I.Provider,{value:p,children:re(q.Provider,{value:g,children:de({ourProps:{...m,as:l.Fragment,children:F.createElement(ve,{ref:o,...m,...d})},theirProps:{},defaultTag:l.Fragment,features:he,visible:s==="visible",name:"Transition"})})})}function Be(e,t){let n=l.useContext(q)!==null,r=me()!==null;return F.createElement(F.Fragment,null,!n&&r?F.createElement(Q,{ref:t,...e}):F.createElement(ve,{ref:t,...e}))}let Q=Z(Ue),ve=Z(Me),Ve=Z(Be),Xe=Object.assign(Q,{Child:Ve,Root:Q});export{me as C,Z as D,ce as S,We as T,de as X,D as a,j as b,Se as c,R as d,T as e,te as f,se as l,$ as o,ae as p,A as s,Xe as t,y as u,ue as y};