misc: change $site to a $state

This commit is contained in:
James Xylight committed 2025-02-09 11:17:01 -08:00
1 parent a94dd5f3d4
commit 8dcca84e60
85 files changed
+153 -140

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@
Icon,
Inbox,
} from 'svelte-hero-icons'
import { getClient } from '$lib/lemmy.js'
import { getClient } from '$lib/lemmy.svelte.js'
import { goto } from '$app/navigation'
import { page } from '$app/state'
import Pageination from '$lib/components/ui/Pageination.svelte'
+1 -1
View File
@@ -1,6 +1,6 @@
import { profile } from '$lib/auth.svelte'
import { publishedToDate } from '$lib/components/util/date.js'
import { getClient } from '$lib/lemmy.js'
import { getClient } from '$lib/lemmy.svelte.js'
import {
generalizeCommentReply,
generalizePersonMention,
+1 -1
View File
@@ -1,7 +1,7 @@
<script lang="ts">
import Comment from '$lib/components/lemmy/comment/Comment.svelte'
import UserLink from '$lib/components/lemmy/user/UserLink.svelte'
import { getClient } from '$lib/lemmy.js'
import { getClient } from '$lib/lemmy.svelte.js'
import { notifications, profile } from '$lib/auth.svelte.js'
import {
ArrowUturnLeft,
+1 -1
View File
@@ -1,4 +1,4 @@
import { client } from '$lib/lemmy.js'
import { client } from '$lib/lemmy.svelte.js'
import { awaitIfServer } from '$lib/promise.js'
export async function load({ fetch, url }) {
@@ -8,7 +8,7 @@
import Header from '$lib/components/ui/layout/pages/Header.svelte'
import { fly } from 'svelte/transition'
import { backOut, expoOut } from 'svelte/easing'
import { client } from '$lib/lemmy'
import { client } from '$lib/lemmy.svelte'
import { errorMessage } from '$lib/lemmy/error'
import type { PrivateMessageResponse } from 'lemmy-js-client'
import { flip } from 'svelte/animate'
@@ -1,4 +1,4 @@
import { client } from '$lib/lemmy.js'
import { client } from '$lib/lemmy.svelte.js'
import { awaitIfServer } from '$lib/promise.js'
export async function load({ fetch, params }) {