Working on arthome

This commit is contained in:
2024-08-25 18:33:37 +02:00
parent a5120d006a
commit a1e31a89a7
49 changed files with 3139 additions and 284 deletions

26
types/auth.d.ts vendored
View File

@@ -1,13 +1,35 @@
// auth.d.ts
import type { Subscription } from '~~/types/types'
declare module '#auth-utils' {
interface User {
email: string
id: number
name: string
username: string
email: string
avatar: string | null
githubId?: number | null
googleId?: string | null
description: string
private: boolean
language: string
location: string
subscription: Subscription
}
interface UserSession {
email: string
id: number
name: string
username: string
email: string
avatar: string | null
githubId?: number | null
googleId?: string | null
description: string
private: boolean
language: string
location: string
subscription: Subscription
}
}

View File

@@ -1,5 +1,8 @@
import type { ParsedContent } from '@nuxt/content'
export const Subscription = ['free', 'paid'] as const
// todo: delete
export interface AppType extends ParsedContent {
primary?: boolean
name: string