- 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
59 lines
1.8 KiB
Vue
59 lines
1.8 KiB
Vue
<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";
|
|
|
|
const sidebarNavItems: NavItem[] = [
|
|
{
|
|
title: "Profile",
|
|
href: "/settings/profile",
|
|
},
|
|
{
|
|
title: "Password",
|
|
href: "/settings/password",
|
|
},
|
|
{
|
|
title: "Appearance",
|
|
href: "/settings/appearance",
|
|
},
|
|
];
|
|
|
|
const page = usePage();
|
|
|
|
const currentPath = page.props.ziggy?.location ? new URL(page.props.ziggy.location).pathname : "";
|
|
</script>
|
|
|
|
<template>
|
|
<div class="px-4 py-6">
|
|
<Heading title="Settings" description="Manage your profile and account settings" />
|
|
|
|
<div class="flex flex-col space-y-8 md:space-y-0 lg:flex-row lg:space-x-12 lg:space-y-0">
|
|
<aside class="w-full max-w-xl lg:w-48">
|
|
<nav class="flex flex-col space-x-0 space-y-1">
|
|
<Button
|
|
v-for="item in sidebarNavItems"
|
|
:key="item.href"
|
|
variant="ghost"
|
|
:class="['w-full justify-start', { 'bg-muted': currentPath === item.href }]"
|
|
as-child
|
|
>
|
|
<Link :href="item.href">
|
|
{{ item.title }}
|
|
</Link>
|
|
</Button>
|
|
</nav>
|
|
</aside>
|
|
|
|
<Separator class="my-6 md:hidden" />
|
|
|
|
<div class="flex-1 md:max-w-2xl">
|
|
<section class="max-w-xl space-y-12">
|
|
<slot />
|
|
</section>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|