diff --git a/.vscode/launch.json b/.vscode/launch.json index 7b1442ec..0b528730 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,6 +1,7 @@ { "version": "0.2.0", "configurations": [ + { "name": "Attach to Docker", "type": "go", diff --git a/docker-compose.local.yml b/docker-compose.local.yml index 47388b9a..43212f32 100644 --- a/docker-compose.local.yml +++ b/docker-compose.local.yml @@ -51,3 +51,8 @@ volumes: driver: local caddy_config_local: driver: local + +networks: + default: + name: containers_default + external: true diff --git a/frontend/src/components/ProxyHostForm.tsx b/frontend/src/components/ProxyHostForm.tsx index 0b34b413..94fe5298 100644 --- a/frontend/src/components/ProxyHostForm.tsx +++ b/frontend/src/components/ProxyHostForm.tsx @@ -6,7 +6,7 @@ import { useRemoteServers } from '../hooks/useRemoteServers' import { useDomains } from '../hooks/useDomains' import { useCertificates } from '../hooks/useCertificates' import { useDocker } from '../hooks/useDocker' -import { parse } from 'tldts' +// import { parse } from 'tldts' interface ProxyHostFormProps { host?: ProxyHost @@ -44,7 +44,6 @@ export default function ProxyHostForm({ host, onSubmit, onCancel }: ProxyHostFor const [dontAskAgain, setDontAskAgain] = useState(false) // Test Connection State - const [testStatus, setTestStatus] = useState<'idle' | 'testing' | 'success' | 'error'>('idle') useEffect(() => { const stored = localStorage.getItem('cpmp_dont_ask_domain') @@ -53,7 +52,12 @@ export default function ProxyHostForm({ host, onSubmit, onCancel }: ProxyHostFor } }, []) + // import { parse } from 'tldts' + +interface ProxyHostFormProps { +// ...existing code... const checkNewDomains = (input: string) => { + /* if (dontAskAgain) return const domainList = input.split(',').map(d => d.trim()).filter(d => d) @@ -78,8 +82,10 @@ export default function ProxyHostForm({ host, onSubmit, onCancel }: ProxyHostFor } } } + */ } + const handleSaveDomain = async () => { try { await createDomain(pendingDomain) diff --git a/frontend/src/index.css b/frontend/src/index.css index d8255eac..89cfa7df 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -37,6 +37,7 @@ body { margin: 0; min-width: 320px; min-height: 100vh; + zoom: 0.75; } #root {