init commit

This commit is contained in:
unurled 2025-06-23 23:12:40 +02:00
commit c9d982669a
461 changed files with 30317 additions and 0 deletions

15
resources/js/types/global.d.ts vendored Normal file
View file

@ -0,0 +1,15 @@
import { PageProps as InertiaPageProps } from '@inertiajs/core';
import { AxiosInstance } from 'axios';
import type { route as routeFn } from 'ziggy-js';
import { PageProps as AppPageProps } from './';
declare global {
const route: typeof routeFn;
interface Window {
axios: AxiosInstance;
}
}
declare module '@inertiajs/core' {
interface PageProps extends InertiaPageProps, AppPageProps {}
}

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

@ -0,0 +1,46 @@
import '@inertiajs/svelte';
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?: any;
isActive?: boolean;
requireAdmin?: boolean;
}
export type PageProps<T extends Record<string, unknown> = Record<string, unknown>> = T & {
name: string;
quote: { message: string; author: string };
auth: Auth;
[key: string]: unknown;
ziggy: Config & { location: string };
};
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;
export interface Permission {
name: string;
display_name: string;
description: string;
is_wildcard: boolean;
}

2
resources/js/types/vite-env.d.ts vendored Normal file
View file

@ -0,0 +1,2 @@
/// <reference types="svelte" />
/// <reference types="vite/client" />