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 @@
import { browser } from '$app/environment';
import { themes, defaultTheme, type ThemePreset } from './presets';
import { themes, defaultTheme } from './presets';
import type { ThemePreset } from './presets';
import { writable, derived, get } from 'svelte/store';
export type ThemeMode = 'light' | 'dark' | 'system';

View file

@ -1,5 +1,6 @@
import { fail } from '@sveltejs/kit';
import { pb, generateTagSlug, DEFAULT_TAG_COLORS, type Tag } from '$lib/pocketbase';
import { pb, generateTagSlug, DEFAULT_TAG_COLORS } from '$lib/pocketbase';
import type { Tag } from '$lib/pocketbase';
import type { Actions, PageServerLoad } from './$types';
export const load: PageServerLoad = async ({ locals }) => {

View file

@ -1,5 +1,6 @@
import { fail } from '@sveltejs/kit';
import { pb, generateShortCode, type Link, type Click, type User } from '$lib/pocketbase';
import { pb, generateShortCode } from '$lib/pocketbase';
import type { Link, Click, User } from '$lib/pocketbase';
import { getCollection } from '$lib/content';
import type { BlogPostWithMeta } from '../content/config';
import type { Actions, PageServerLoad } from './$types';

View file

@ -1,5 +1,6 @@
import { redirect, error, fail } from '@sveltejs/kit';
import { parseUserAgent, type Link } from '$lib/pocketbase';
import { parseUserAgent } from '$lib/pocketbase';
import type { Link } from '$lib/pocketbase';
import { linkCache } from '$lib/server/linkCache';
import type { PageServerLoad, Actions } from './$types';

View file

@ -1,5 +1,6 @@
import { error } from '@sveltejs/kit';
import { pb, type User, type Link } from '$lib/pocketbase';
import { pb } from '$lib/pocketbase';
import type { User, Link } from '$lib/pocketbase';
import type { PageServerLoad } from './$types';
export const load: PageServerLoad = async ({ params }) => {