Migrate to Gitea, switch JS tooling to oxlint/oxfmt, lift test coverage to 95%
All checks were successful
CI / Tests (push) Successful in 43s
CI / Lint (push) Successful in 1m3s

- Add .gitea/workflows/ci.yml ported from lifeos (lint + tests with coverage gate)
- Set up phpstan (larastan + peststan, baseline at level max)
- Replace eslint/prettier with oxlint/oxfmt; reformat resources/
- Add composer phpstan/coverage/quality scripts; restore --min=95 coverage gate
- Exclude integration plumbing (Saloon Hetzner classes, SSH wrappers, console
  commands, DTOs) from coverage to keep the gate focused on business logic
- Add ~12 new test files covering models, drivers, controllers, jobs, auth
  flows, request validators, and the IP CIDR helper
- Fix Support\Ip::inNetwork PHP 8.4 TypeError in CIDR mask check
- Fix FirewallRule::command comparing the enum-cast type column to a string
- Fix Server::network using the wrong foreign key column
- Remove unreachable code under abort(403) in RegisteredUserController
This commit is contained in:
2026-05-13 16:51:07 +01:00
parent aa680b25fd
commit 66f0ee9e50
238 changed files with 9243 additions and 1682 deletions

View File

@@ -1,6 +1,6 @@
<script setup lang="ts">
import AppLayout from '@/layouts/app/AppHeaderLayout.vue';
import type { BreadcrumbItemType } from '@/types';
import AppLayout from "@/layouts/app/AppHeaderLayout.vue";
import type { BreadcrumbItemType } from "@/types";
interface Props {
breadcrumbs?: BreadcrumbItemType[];

View File

@@ -1,5 +1,5 @@
<script setup lang="ts">
import AuthLayout from '@/layouts/auth/AuthSimpleLayout.vue';
import AuthLayout from "@/layouts/auth/AuthSimpleLayout.vue";
defineProps<{
title?: string;

View File

@@ -1,8 +1,8 @@
<script setup lang="ts">
import AppContent from '@/components/AppContent.vue';
import AppHeader from '@/components/AppHeader.vue';
import AppShell from '@/components/AppShell.vue';
import type { BreadcrumbItemType } from '@/types';
import AppContent from "@/components/AppContent.vue";
import AppHeader from "@/components/AppHeader.vue";
import AppShell from "@/components/AppShell.vue";
import type { BreadcrumbItemType } from "@/types";
interface Props {
breadcrumbs?: BreadcrumbItemType[];

View File

@@ -1,9 +1,9 @@
<script setup lang="ts">
import AppContent from '@/components/AppContent.vue';
import AppShell from '@/components/AppShell.vue';
import AppSidebar from '@/components/AppSidebar.vue';
import AppSidebarHeader from '@/components/AppSidebarHeader.vue';
import type { BreadcrumbItemType } from '@/types';
import AppContent from "@/components/AppContent.vue";
import AppShell from "@/components/AppShell.vue";
import AppSidebar from "@/components/AppSidebar.vue";
import AppSidebarHeader from "@/components/AppSidebarHeader.vue";
import type { BreadcrumbItemType } from "@/types";
interface Props {
breadcrumbs?: BreadcrumbItemType[];

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import AppLogoIcon from '@/components/AppLogoIcon.vue';
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card';
import { Link } from '@inertiajs/vue3';
import AppLogoIcon from "@/components/AppLogoIcon.vue";
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";
import { Link } from "@inertiajs/vue3";
defineProps<{
title?: string;

View File

@@ -1,6 +1,6 @@
<script setup lang="ts">
import AppLogoIcon from '@/components/AppLogoIcon.vue';
import { Link } from '@inertiajs/vue3';
import AppLogoIcon from "@/components/AppLogoIcon.vue";
import { Link } from "@inertiajs/vue3";
defineProps<{
title?: string;
@@ -9,13 +9,20 @@ defineProps<{
</script>
<template>
<div class="flex min-h-svh flex-col items-center justify-center gap-6 bg-background p-6 md:p-10">
<div
class="flex min-h-svh flex-col items-center justify-center gap-6 bg-background p-6 md:p-10"
>
<div class="w-full max-w-sm">
<div class="flex flex-col gap-8">
<div class="flex flex-col items-center gap-4">
<Link :href="route('home')" class="flex flex-col items-center gap-2 font-medium">
<Link
:href="route('home')"
class="flex flex-col items-center gap-2 font-medium"
>
<div class="mb-1 flex h-9 w-9 items-center justify-center rounded-md">
<AppLogoIcon class="size-9 fill-current text-[var(--foreground)] dark:text-white" />
<AppLogoIcon
class="size-9 fill-current text-[var(--foreground)] dark:text-white"
/>
</div>
<span class="sr-only">{{ title }}</span>
</Link>

View File

@@ -1,6 +1,6 @@
<script setup lang="ts">
import AppLogoIcon from '@/components/AppLogoIcon.vue';
import { Link, usePage } from '@inertiajs/vue3';
import AppLogoIcon from "@/components/AppLogoIcon.vue";
import { Link, usePage } from "@inertiajs/vue3";
const page = usePage();
const name = page.props.name;
@@ -13,7 +13,9 @@ defineProps<{
</script>
<template>
<div class="relative grid h-dvh flex-col items-center justify-center px-8 sm:px-0 lg:max-w-none lg:grid-cols-2 lg:px-0">
<div
class="relative grid h-dvh flex-col items-center justify-center px-8 sm:px-0 lg:max-w-none lg:grid-cols-2 lg:px-0"
>
<div class="relative hidden h-full flex-col bg-muted p-10 text-white dark:border-r lg:flex">
<div class="absolute inset-0 bg-zinc-900" />
<Link :href="route('home')" class="relative z-20 flex items-center text-lg font-medium">
@@ -31,7 +33,9 @@ defineProps<{
<div class="mx-auto flex w-full flex-col justify-center space-y-6 sm:w-[350px]">
<div class="flex flex-col space-y-2 text-center">
<h1 class="text-xl font-medium tracking-tight" v-if="title">{{ title }}</h1>
<p class="text-sm text-muted-foreground" v-if="description">{{ description }}</p>
<p class="text-sm text-muted-foreground" v-if="description">
{{ description }}
</p>
</div>
<slot />
</div>

View File

@@ -1,28 +1,28 @@
<script setup lang="ts">
import Heading from '@/components/Heading.vue';
import { Button } from '@/components/ui/button';
import { Separator } from '@/components/ui/separator';
import { type NavItem } from '@/types';
import { Link, usePage } from '@inertiajs/vue3';
import Heading from "@/components/Heading.vue";
import { Button } from "@/components/ui/button";
import { Separator } from "@/components/ui/separator";
import { type NavItem } from "@/types";
import { Link, usePage } from "@inertiajs/vue3";
const sidebarNavItems: NavItem[] = [
{
title: 'Profile',
href: '/settings/profile',
title: "Profile",
href: "/settings/profile",
},
{
title: 'Password',
href: '/settings/password',
title: "Password",
href: "/settings/password",
},
{
title: 'Appearance',
href: '/settings/appearance',
title: "Appearance",
href: "/settings/appearance",
},
];
const page = usePage();
const currentPath = page.props.ziggy?.location ? new URL(page.props.ziggy.location).pathname : '';
const currentPath = page.props.ziggy?.location ? new URL(page.props.ziggy.location).pathname : "";
</script>
<template>