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,5 +1,6 @@
<script lang="ts">
import { AppSlider, type AppItem } from '@manacore/shared-ui';
import { AppSlider } from '@manacore/shared-ui';
import type { AppItem } from '@manacore/shared-ui';
import { MANA_APPS, APP_STATUS_LABELS, APP_SLIDER_LABELS } from '@manacore/shared-branding';
// Convert MANA_APPS to AppItem format (German)

View file

@ -1,5 +1,6 @@
<script lang="ts">
import { toastStore, type Toast } from '$lib/stores/toast.svelte';
import { toastStore } from '$lib/stores/toast.svelte';
import type { Toast } from '$lib/stores/toast.svelte';
import { X, CheckCircle, XCircle, Warning, Info } from '@manacore/shared-icons';
let toasts = $derived(toastStore.toasts);

View file

@ -5,7 +5,8 @@
* so we don't need to pass it from the frontend.
*/
import { conversationApi, chatApi, type Conversation, type Message, type ChatMessage } from './api';
import { conversationApi, chatApi } from './api';
import type { Conversation, Message, ChatMessage } from './api';
export type { Conversation, Message };

View file

@ -2,7 +2,8 @@
* Document Service - CRUD operations via Backend API
*/
import { documentApi, conversationApi, type Document } from './api';
import { documentApi, conversationApi } from './api';
import type { Document } from './api';
export type { Document };

View file

@ -2,7 +2,8 @@
* Space Service - CRUD operations via Backend API
*/
import { spaceApi, type Space, type SpaceMember } from './api';
import { spaceApi } from './api';
import type { Space, SpaceMember } from './api';
export type { Space, SpaceMember };

View file

@ -2,7 +2,8 @@
* Template Service - CRUD operations via Backend API
*/
import { templateApi, type Template } from './api';
import { templateApi } from './api';
import type { Template } from './api';
export type { Template };

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';
import { PUBLIC_MANA_CORE_AUTH_URL } from '$env/static/public';
// Initialize Mana Core Auth only on the client side

View file

@ -2,7 +2,8 @@
* Chat Store - Manages current chat state using Svelte 5 runes
*/
import { chatService, type ChatCompletionRequest } from '$lib/services/chat';
import { chatService } from '$lib/services/chat';
import type { ChatCompletionRequest } from '$lib/services/chat';
import type { Message, AIModel, ChatMessage } from '@chat/types';
// State

View file

@ -2,7 +2,8 @@
import { onMount } from 'svelte';
import { theme } from '$lib/stores/theme';
import { userSettings } from '$lib/stores/user-settings.svelte';
import { THEME_DEFINITIONS, type ThemeVariant } from '@manacore/shared-theme';
import { THEME_DEFINITIONS } from '@manacore/shared-theme';
import type { ThemeVariant } from '@manacore/shared-theme';
import {
SettingsPage,
SettingsSection,