initial commit

This commit is contained in:
2026-01-07 12:20:47 -07:00
commit f7766ff77f
74 changed files with 18452 additions and 0 deletions

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

@@ -0,0 +1,26 @@
import { AppPageProps } from '@/types/index';
// Extend ImportMeta interface for Vite...
declare module 'vite/client' {
interface ImportMetaEnv {
readonly VITE_APP_NAME: string;
[key: string]: string | boolean | undefined;
}
interface ImportMeta {
readonly env: ImportMetaEnv;
readonly glob: <T>(pattern: string) => Record<string, () => Promise<T>>;
}
}
declare module '@inertiajs/core' {
interface PageProps extends InertiaPageProps, AppPageProps {}
}
declare module 'vue' {
interface ComponentCustomProperties {
$inertia: typeof Router;
$page: Page;
$headManager: ReturnType<typeof createHeadManager>;
}
}

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

@@ -0,0 +1,19 @@
export interface Auth {
user: User;
}
export type AppPageProps<T extends Record<string, unknown> = Record<string, unknown>> = T & {
name: string;
quote: { message: string; author: string };
auth: Auth;
};
export interface User {
id: number;
name: string;
email: string;
avatar?: string;
email_verified_at: string | null;
created_at: string;
updated_at: string;
}