UNPKG

klioso

Version:

Multi-Service Provider Management System for WordPress and Web Development with Enhanced Scanner

2 lines (1 loc) 5.01 kB
import{j as e,L as a}from"./app-DZ07njAd.js";import{A as t}from"./AuthenticatedLayout-BKOGad_C.js";import{B as r}from"./Button-D6Jcp-tA.js";import{B as i}from"./BackButton-DWEPPwYa.js";import{D as n}from"./DeleteButton-BGbjowl2.js";import{W as d}from"./WebsitePlugins-Dc03Be5X.js";import"./ApplicationLogo-GDc3W5ND.js";import"./transition-BCwV6od8.js";import"./Form-DWGkysrX.js";function p({website:s,allPlugins:l=[]}){return e.jsx(t,{header:e.jsx("h1",{className:"text-2xl font-bold text-gray-800",children:"Website Details"}),children:e.jsxs("div",{className:"max-w-4xl mx-auto space-y-6 mt-8",children:[e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx(i,{fallbackRoute:"/websites"}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(r,{as:a,href:`/websites/${s.id}/edit`,children:"Edit Website"}),e.jsx(n,{resource:s,resourceName:"website",deleteRoute:`/websites/${s.id}`})]})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow p-6",children:[e.jsx("h2",{className:"text-lg font-semibold mb-4",children:"Website Information"}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700",children:"Domain Name"}),e.jsx("p",{className:"mt-1 text-sm text-gray-900",children:s.domain_name})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700",children:"Platform"}),e.jsx("p",{className:"mt-1 text-sm text-gray-900",children:s.platform||"-"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700",children:"Status"}),e.jsx("span",{className:`mt-1 inline-flex px-2 py-1 text-xs font-semibold rounded-full ${s.status==="active"?"bg-green-100 text-green-800":s.status==="inactive"?"bg-red-100 text-red-800":"bg-gray-100 text-gray-800"}`,children:s.status||"Unknown"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700",children:"Client"}),e.jsx("p",{className:"mt-1 text-sm text-gray-900",children:s.client?e.jsx(a,{href:`/clients/${s.client.id}`,className:"text-blue-600 hover:underline",children:s.client.name}):e.jsx("span",{className:"text-gray-500 italic",children:"No client assigned"})})]}),s.notes&&e.jsxs("div",{className:"md:col-span-2",children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700",children:"Notes"}),e.jsx("p",{className:"mt-1 text-sm text-gray-900",children:s.notes})]})]})]}),e.jsxs("div",{className:"bg-white rounded-lg shadow p-6",children:[e.jsx("h2",{className:"text-lg font-semibold mb-4",children:"Service Providers"}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700",children:e.jsxs("span",{className:"inline-flex items-center",children:[e.jsx("span",{className:"w-3 h-3 bg-blue-500 rounded-full mr-2"}),"Hosting Provider"]})}),e.jsx("p",{className:"mt-1 text-sm text-gray-900",children:s.hostingProvider?e.jsx(a,{href:`/hosting-providers/${s.hostingProvider.id}`,className:"text-blue-600 hover:underline",children:s.hostingProvider.name}):e.jsx("span",{className:"text-gray-500 italic",children:"Not assigned"})})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700",children:e.jsxs("span",{className:"inline-flex items-center",children:[e.jsx("span",{className:"w-3 h-3 bg-green-500 rounded-full mr-2"}),"DNS Provider"]})}),e.jsx("p",{className:"mt-1 text-sm text-gray-900",children:s.dnsProvider?e.jsx(a,{href:`/hosting-providers/${s.dnsProvider.id}`,className:"text-blue-600 hover:underline",children:s.dnsProvider.name}):e.jsx("span",{className:"text-gray-500 italic",children:"Not assigned"})})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700",children:e.jsxs("span",{className:"inline-flex items-center",children:[e.jsx("span",{className:"w-3 h-3 bg-yellow-500 rounded-full mr-2"}),"Email Provider"]})}),e.jsx("p",{className:"mt-1 text-sm text-gray-900",children:s.emailProvider?e.jsx(a,{href:`/hosting-providers/${s.emailProvider.id}`,className:"text-blue-600 hover:underline",children:s.emailProvider.name}):e.jsx("span",{className:"text-gray-500 italic",children:"Not assigned"})})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700",children:e.jsxs("span",{className:"inline-flex items-center",children:[e.jsx("span",{className:"w-3 h-3 bg-purple-500 rounded-full mr-2"}),"Domain Registrar"]})}),e.jsx("p",{className:"mt-1 text-sm text-gray-900",children:s.domainRegistrar?e.jsx(a,{href:`/hosting-providers/${s.domainRegistrar.id}`,className:"text-blue-600 hover:underline",children:s.domainRegistrar.name}):e.jsx("span",{className:"text-gray-500 italic",children:"Not assigned"})})]})]})]}),e.jsx("div",{className:"bg-white rounded-lg shadow p-6",children:e.jsx(d,{website:s,allPlugins:l,websitePlugins:s.plugins||[]})})]})})}export{p as default};