initial commit
Some checks failed
linter / quality (push) Failing after 3m48s
tests / ci (push) Failing after 4m13s

This commit is contained in:
2025-07-12 15:01:28 -07:00
commit ee37c6de85
265 changed files with 28931 additions and 0 deletions

5
resources/js/types/globals.d.ts vendored Normal file
View File

@@ -0,0 +1,5 @@
import type { route as routeFn } from 'ziggy-js';
declare global {
const route: typeof routeFn;
}

39
resources/js/types/index.d.ts vendored Normal file
View File

@@ -0,0 +1,39 @@
import type { PageProps } from '@inertiajs/core';
import type { LucideIcon } from 'lucide-vue-next';
import type { Config } from 'ziggy-js';
export interface Auth {
user: User;
}
export interface BreadcrumbItem {
title: string;
href: string;
}
export interface NavItem {
title: string;
href: string;
icon?: LucideIcon;
isActive?: boolean;
}
export interface SharedData extends PageProps {
name: string;
quote: { message: string; author: string };
auth: Auth;
ziggy: Config & { location: string };
sidebarOpen: boolean;
}
export interface User {
id: number;
name: string;
email: string;
avatar?: string;
email_verified_at: string | null;
created_at: string;
updated_at: string;
}
export type BreadcrumbItemType = BreadcrumbItem;

12
resources/js/types/ziggy.d.ts vendored Normal file
View File

@@ -0,0 +1,12 @@
import { RouteParams, Router } from 'ziggy-js';
declare global {
function route(): Router;
function route(name: string, params?: RouteParams<typeof name> | undefined, absolute?: boolean): string;
}
declare module '@vue/runtime-core' {
interface ComponentCustomProperties {
route: typeof route;
}
}