test(caddy): cover invalid path branches; ci: handle go test non-zero when coverage file exists

This commit is contained in:
CI
2025-11-29 08:55:25 +00:00
parent 0c62118989
commit fcc273262c
51 changed files with 1117 additions and 205 deletions

View File

@@ -63,7 +63,7 @@ export default function AccessListSelector({ value, onChange }: AccessListSelect
</a>
{' • '}
<a
href="https://wikid82.github.io/cpmp/docs/security.html#acl-best-practices-by-service-type"
href="https://wikid82.github.io/charon/docs/security.html#acl-best-practices-by-service-type"
target="_blank"
rel="noopener noreferrer"
className="text-blue-400 hover:underline inline-flex items-center gap-1"

View File

@@ -75,7 +75,7 @@ export default function Layout({ children }: LayoutProps) {
<div className="min-h-screen bg-light-bg dark:bg-dark-bg flex transition-colors duration-200">
{/* Mobile Header */}
<div className="lg:hidden fixed top-0 left-0 right-0 h-16 bg-white dark:bg-dark-sidebar border-b border-gray-200 dark:border-gray-800 flex items-center justify-between px-4 z-40">
<img src="/banner.png" alt="CPM+" height={1280} width={640} />
<img src="/banner.png" alt="Charon" height={1280} width={640} />
<div className="flex items-center gap-2">
<NotificationCenter />
<ThemeToggle />
@@ -94,9 +94,9 @@ export default function Layout({ children }: LayoutProps) {
`}>
<div className={`h-20 flex items-center justify-center border-b border-gray-200 dark:border-gray-800`}>
{isCollapsed ? (
<img src="/logo.png" alt="CPM+" className="h-12 w-10" />
<img src="/logo.png" alt="Charon" className="h-12 w-10" />
) : (
<img src="/banner.png" alt="CPM+" className="h-16 w-auto" />
<img src="/banner.png" alt="Charon" className="h-16 w-auto" />
)}
</div>

View File

@@ -108,7 +108,7 @@ export default function ProxyHostForm({ host, onSubmit, onCancel }: ProxyHostFor
const [charonInternalIP, setCharonInternalIP] = useState<string>('')
const [copiedField, setCopiedField] = useState<string | null>(null)
// Fetch CPMP internal IP on mount
// Fetch Charon internal IP on mount (legacy: CPMP internal IP)
useEffect(() => {
fetch('/api/v1/health')
.then(res => res.json())

View File

@@ -52,7 +52,7 @@ describe('Layout', () => {
</Layout>
)
const logos = screen.getAllByAltText('CPM+')
const logos = screen.getAllByAltText('Charon')
expect(logos.length).toBeGreaterThan(0)
expect(logos[0]).toBeInTheDocument()
})