This commit is contained in:
2025-12-23 19:26:23 +01:00
commit da7e984965
94 changed files with 26350 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
export interface AuthFeatures {
registration: boolean
password_reset: boolean
remember_me: boolean
email_verification: boolean
}
export interface AuthPageConfig {
title: string
description: string
icon: string
submit_label: string
}
export interface AuthProvider {
key: string
label: string
icon: string
}
export interface AuthLegal {
terms_url: string | null
privacy_url: string | null
show_in_register: boolean
}
export interface AuthConfig {
appName: string
features: AuthFeatures
login: AuthPageConfig
register: AuthPageConfig
forgotPassword: AuthPageConfig
resetPassword: AuthPageConfig
providers: AuthProvider[]
legal: AuthLegal
}

View File

@@ -0,0 +1 @@
export * from './config'

View File

@@ -0,0 +1,4 @@
// Re-export all types for convenience
export * from './auth'
export * from './inertia'
export * from './models'

View File

@@ -0,0 +1,6 @@
export interface Flash {
success: string | null
error: string | null
message: string | null
status: string | null
}

View File

@@ -0,0 +1,2 @@
export * from './flash'
export * from './page-props'

View File

@@ -0,0 +1,11 @@
import type { AuthConfig } from '../auth'
import type { User } from '../models'
import type { Flash } from './flash'
export interface PageProps {
auth: {
user: User | null
}
flash: Flash
authConfig: AuthConfig
}

View File

@@ -0,0 +1 @@
export * from './user'

View File

@@ -0,0 +1,11 @@
export interface User {
id: number
username: string
first_name: string
last_name: string
full_name: string
email: string
email_verified_at: string | null
created_at: string
updated_at: string
}