first commit
linter / quality (push) Canceled after 0s
tests / ci (8.3) (push) Canceled after 0s
tests / ci (8.4) (push) Canceled after 0s
tests / ci (8.5) (push) Canceled after 0s

This commit is contained in:
salam committed 2026-10-06 18:53:03 +02:00
commit e687b4437b
418 files changed
+33577

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
export type User = {
id: number;
name: string;
email: string;
avatar?: string;
email_verified_at: string | null;
created_at: string;
updated_at: string;
[key: string]: unknown;
};
export type Auth = {
user: User;
};
export type TwoFactorConfigContent = {
title: string;
description: string;
buttonText: string;
};
+28
View File
@@ -0,0 +1,28 @@
import type { Auth } from '@/types/auth';
// 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,
options?: { eager?: boolean },
) => Record<string, T>;
}
}
declare module '@inertiajs/core' {
export interface InertiaConfig {
sharedPageProps: {
name: string;
auth: Auth;
sidebarOpen: boolean;
[key: string]: unknown;
};
}
}
+3
View File
@@ -0,0 +1,3 @@
export * from './auth';
export * from './navigation';
export * from './ui';
+18
View File
@@ -0,0 +1,18 @@
import type { LinkComponentBaseProps } from '@inertiajs/core';
import type { Component, SvelteComponent } from 'svelte';
type NavIcon =
| Component<{ class?: string }>
| (new (...args: any[]) => SvelteComponent<{ class?: string }>);
export type BreadcrumbItem = {
title: string;
href: NonNullable<LinkComponentBaseProps['href']>;
};
export type NavItem = {
title: string;
href: NonNullable<LinkComponentBaseProps['href']>;
icon?: NavIcon;
isActive?: boolean;
};
+9
View File
@@ -0,0 +1,9 @@
export type Appearance = 'light' | 'dark' | 'system';
export type ResolvedAppearance = 'light' | 'dark';
export type AppVariant = 'header' | 'sidebar';
export type FlashToast = {
type: 'success' | 'info' | 'warning' | 'error';
message: string;
};