feat(frontend)!: sveltekit 3 on the v0.7.0 template, typescript 6, adapter-auto dropped; backend base moves to trixie

This commit is contained in:
hh committed 2026-10-10 23:18:57 +00:00
1 parent b1ffebe858
commit 4d16105e92
116 files changed
+756 -711

No files matched your search

+4 -3
View File
@@ -1,7 +1,8 @@
import { accounts } from "$lib/stores/accounts.svelte";
import { auth } from "$lib/stores/auth.svelte";
import { accounts } from "#lib/stores/accounts.svelte.js";
import { auth } from "#lib/stores/auth.svelte.js";
import { PUBLIC_API_BASE_URL } from "$app/env/public";
const BASE = import.meta.env.VITE_API_BASE ?? "/api";
const BASE = PUBLIC_API_BASE_URL;
const RETRY_DELAY = 2500;
export type AvatarKind = "peer" | "chat";
+4 -3
View File
@@ -1,8 +1,9 @@
import { accounts } from "#lib/stores/accounts.svelte.js";
import { auth } from "#lib/stores/auth.svelte.js";
import { PUBLIC_API_BASE_URL } from "$app/env/public";
import { goto } from "$app/navigation";
import { accounts } from "$lib/stores/accounts.svelte";
import { auth } from "$lib/stores/auth.svelte";
const BASE = import.meta.env.VITE_API_BASE ?? "/api";
const BASE = PUBLIC_API_BASE_URL;
const MAX_LIMIT = 500;
export class ApiError extends Error {
+4 -3
View File
@@ -1,7 +1,8 @@
import { accounts } from "$lib/stores/accounts.svelte";
import { auth } from "$lib/stores/auth.svelte";
import { accounts } from "#lib/stores/accounts.svelte.js";
import { auth } from "#lib/stores/auth.svelte.js";
import { PUBLIC_API_BASE_URL } from "$app/env/public";
const BASE = import.meta.env.VITE_API_BASE ?? "/api";
const BASE = PUBLIC_API_BASE_URL;
const RETRY_DELAY = 2500;
export interface CustomEmojiAsset {
+4 -3
View File
@@ -1,7 +1,8 @@
import { accounts } from "$lib/stores/accounts.svelte";
import { auth } from "$lib/stores/auth.svelte";
import { accounts } from "#lib/stores/accounts.svelte.js";
import { auth } from "#lib/stores/auth.svelte.js";
import { PUBLIC_API_BASE_URL } from "$app/env/public";
const BASE = import.meta.env.VITE_API_BASE ?? "/api";
const BASE = PUBLIC_API_BASE_URL;
const FILENAME_STAR = /filename\*=UTF-8''([^;]+)/i;
const FILENAME_PLAIN = /filename="?([^";]+)"?/i;
+3 -3
View File
@@ -1,4 +1,4 @@
import { request } from "$lib/api/client";
import { request } from "#lib/api/client.js";
import type {
Account,
Alert,
@@ -35,8 +35,8 @@ import type {
VolumeBucket,
Watch,
WatchedBot,
} from "$lib/api/types";
import { accounts } from "$lib/stores/accounts.svelte";
} from "#lib/api/types.js";
import { accounts } from "#lib/stores/accounts.svelte.js";
interface Page {
limit?: number;
+4 -4
View File
@@ -1,7 +1,7 @@
import { requestMedia } from "$lib/api/client";
import { getMessageMedia, transcribeMedia } from "$lib/api/endpoints";
import type { MediaRef } from "$lib/api/types";
import { accounts } from "$lib/stores/accounts.svelte";
import { requestMedia } from "#lib/api/client.js";
import { getMessageMedia, transcribeMedia } from "#lib/api/endpoints.js";
import type { MediaRef } from "#lib/api/types.js";
import { accounts } from "#lib/stores/accounts.svelte.js";
const TRANSCRIBE_TRIES = 10;
const TRANSCRIBE_DELAY = 2000;
+3 -3
View File
@@ -1,6 +1,6 @@
import { request } from "$lib/api/client";
import type { FileShare, FileShareHit, ShareSubject } from "$lib/api/types";
import { accounts } from "$lib/stores/accounts.svelte";
import { request } from "#lib/api/client.js";
import type { FileShare, FileShareHit, ShareSubject } from "#lib/api/types.js";
import { accounts } from "#lib/stores/accounts.svelte.js";
export interface ShareSettings {
expiresInSeconds: number | null;
+4 -3
View File
@@ -1,7 +1,8 @@
import { accounts } from "$lib/stores/accounts.svelte";
import { auth } from "$lib/stores/auth.svelte";
import { accounts } from "#lib/stores/accounts.svelte.js";
import { auth } from "#lib/stores/auth.svelte.js";
import { PUBLIC_API_BASE_URL } from "$app/env/public";
const BASE = import.meta.env.VITE_API_BASE ?? "/api";
const BASE = PUBLIC_API_BASE_URL;
const MAX_CACHED = 100;