Fix wrong type

import, make auth and chat work
This commit is contained in:
Wuesteon 2025-12-04 23:25:25 +01:00
parent b8f9bc107c
commit 9c47119535
261 changed files with 24453 additions and 443 deletions

View file

@ -1,6 +1,7 @@
import { Module, Global, OnModuleDestroy } from '@nestjs/common';
import { ConfigService } from '@nestjs/config';
import { getDb, closeConnection, type Database } from './connection';
import { getDb, closeConnection } from './connection';
import type { Database } from './connection';
export const DATABASE_CONNECTION = 'DATABASE_CONNECTION';

View file

@ -1,8 +1,9 @@
import { Injectable, Inject } from '@nestjs/common';
import { eq, and } from 'drizzle-orm';
import { DATABASE_CONNECTION } from '../db/database.module';
import { type Database } from '../db/connection';
import { favorites, type Favorite, type NewFavorite } from '../db/schema';
import { Database } from '../db/connection';
import { favorites } from '../db/schema';
import type { Favorite, NewFavorite } from '../db/schema';
@Injectable()
export class FavoriteService {

View file

@ -1,8 +1,9 @@
import { Injectable, Inject, NotFoundException } from '@nestjs/common';
import { eq, and } from 'drizzle-orm';
import { DATABASE_CONNECTION } from '../db/database.module';
import { type Database } from '../db/connection';
import { userLists, type UserList, type NewUserList } from '../db/schema';
import { Database } from '../db/connection';
import { userLists } from '../db/schema';
import type { UserList, NewUserList } from '../db/schema';
@Injectable()
export class ListService {

View file

@ -5,7 +5,8 @@
import { useMemo } from 'react';
import { useIsDarkMode, useThemeType } from '~/store/settingsStore';
import { getTheme, getCategoryGradient, type ThemeColors } from '~/themes/definitions';
import { getTheme, getCategoryGradient } from '~/themes/definitions';
import type { ThemeColors } from '~/themes/definitions';
import type { ThemeType } from '~/store/settingsStore';
export interface UseThemeReturn {

View file

@ -1,5 +1,6 @@
<script lang="ts">
import { toast, type Toast } from '$lib/stores/toast';
import { toast } from '$lib/stores/toast';
import type { Toast } from '$lib/stores/toast';
import { fade, fly } from 'svelte/transition';
let toasts = $state<Toast[]>([]);

View file

@ -4,7 +4,8 @@
*/
import { browser } from '$app/environment';
import { initializeWebAuth, type UserData } from '@manacore/shared-auth';
import { initializeWebAuth } from '@manacore/shared-auth';
import type { UserData } from '@manacore/shared-auth';
// Initialize Mana Core Auth only on the client side
// TODO: Use PUBLIC_MANA_CORE_AUTH_URL from env when available

View file

@ -1,5 +1,6 @@
<script lang="ts">
import { authorsDE, quotesDE, type Author } from '@zitare/shared';
import { authorsDE, quotesDE } from '@zitare/shared';
import type { Author } from '@zitare/shared';
import { PageHeader } from '@manacore/shared-ui';
import AuthorCard from '$lib/components/AuthorCard.svelte';

View file

@ -1,5 +1,6 @@
<script lang="ts">
import { listsStore, type QuoteList } from '$lib/stores/lists';
import { listsStore } from '$lib/stores/lists';
import type { QuoteList } from '$lib/stores/lists';
import { quotesDE } from '@zitare/shared';
import { PageHeader } from '@manacore/shared-ui';
import { toast } from '$lib/stores/toast';

View file

@ -1,6 +1,7 @@
<script lang="ts">
import { page } from '$app/stores';
import { listsStore, type QuoteList } from '$lib/stores/lists';
import { listsStore } from '$lib/stores/lists';
import type { QuoteList } from '$lib/stores/lists';
import { quotesDE, authorsDE } from '@zitare/shared';
import QuoteCard from '$lib/components/QuoteCard.svelte';
import { toast } from '$lib/stores/toast';

View file

@ -1,5 +1,6 @@
<script lang="ts">
import { quotesDE, authorsDE, type Quote, type Author } from '@zitare/shared';
import { quotesDE, authorsDE } from '@zitare/shared';
import type { Quote, Author } from '@zitare/shared';
import QuoteCard from '$lib/components/QuoteCard.svelte';
import AuthorCard from '$lib/components/AuthorCard.svelte';

View file

@ -1,5 +1,6 @@
<script lang="ts">
import { toast, type Toast } from '../stores/toast';
import { toast } from '../stores/toast';
import type { Toast } from '../stores/toast';
import { fade, fly } from 'svelte/transition';
let toasts = $state<Toast[]>([]);