ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.
Python astracloudflarecontrol-panelcyberpaneldnsfablehosting-control-panelhosting-panelkimi-k3server-managementserverkitubuntu-web-panelwebserver
feat(18-4): Create DomainConfigPanel
Juan Denisb803a3e638b0
diff --git a/frontend/src/components/workflow/panels/DomainConfigPanel.jsx b/frontend/src/components/workflow/panels/DomainConfigPanel.jsxnew file mode 100644index 00000000..94233f3f--- /dev/null+++ b/frontend/src/components/workflow/panels/DomainConfigPanel.jsx@@ -0,0 +1,77 @@+import React from 'react';+import { Globe } from 'lucide-react';+import ConfigPanel from '../ConfigPanel';++const DomainConfigPanel = ({ node, onChange, onClose }) => {+ const data = node?.data || {};++ const handleChange = (field, value) => {+ const updates = { ...data, [field]: value };++ // Clear expiry date if SSL is not valid+ if (field === 'ssl' && value !== 'valid') {+ updates.sslExpiry = '';+ }++ onChange(updates);+ };++ return (+ <ConfigPanel+ isOpen={!!node}+ title="Domain"+ icon={Globe}+ headerColor="#10b981"+ onClose={onClose}+ >+ <div className="form-group">+ <label>Domain Name</label>+ <input+ type="text"+ value={data.name || ''}+ onChange={(e) => handleChange('name', e.target.value)}+ placeholder="example.com"+ />+ <span className="form-hint">Enter domain without http:// or https://</span>+ </div>++ <div className="form-group">+ <label>SSL Status</label>+ <select+ value={data.ssl || 'none'}+ onChange={(e) => handleChange('ssl', e.target.value)}+ >+ <option value="none">No SSL</option>+ <option value="valid">Valid Certificate</option>+ <option value="expired">Expired Certificate</option>+ </select>+ </div>++ {data.ssl === 'valid' && (+ <div className="form-group">+ <label>SSL Expiry Date</label>+ <input+ type="date"+ value={data.sslExpiry || ''}+ onChange={(e) => handleChange('sslExpiry', e.target.value)}+ />+ <span className="form-hint">Certificate expiration date</span>+ </div>+ )}++ <div className="form-group">+ <label>DNS Status</label>+ <select+ value={data.dnsStatus || 'pending'}+ onChange={(e) => handleChange('dnsStatus', e.target.value)}+ >+ <option value="pending">Pending Propagation</option>+ <option value="propagated">Propagated</option>+ </select>+ <span className="form-hint">DNS record propagation status</span>+ </div>+ </ConfigPanel>+ );+};++export default DomainConfigPanel;