import { DeesElement, customElement, html, css, cssManager, property, state, type TemplateResult, } from '@design.estate/dees-element'; declare global { interface HTMLElementTagNameMap { 'sz-service-create-view': SzServiceCreateView; } } export interface IRegistry { id: string; name: string; url: string; } export interface IPortMapping { hostPort: string; containerPort: string; protocol: 'tcp' | 'udp'; } export interface IEnvVar { key: string; value: string; } export interface IVolumeMount { hostPath: string; containerPath: string; readOnly: boolean; } export interface IServiceConfig { name: string; image: string; ports: IPortMapping[]; envVars: IEnvVar[]; volumes: IVolumeMount[]; cpuLimit: string; memoryLimit: string; restartPolicy: 'always' | 'on-failure' | 'never'; networkMode: string; } @customElement('sz-service-create-view') export class SzServiceCreateView extends DeesElement { public static demo = () => html`