diff --git a/package.json b/package.json index 6e4943ce..f5e03c45 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "photon-lemmy", - "version": "1.28.5", + "version": "1.29.0", "private": true, "scripts": { "dev": "vite dev", diff --git a/src/lib/auth.ts b/src/lib/auth.ts index c13045de..a19fe4e6 100644 --- a/src/lib/auth.ts +++ b/src/lib/auth.ts @@ -16,6 +16,7 @@ import { get, writable } from 'svelte/store' import { MINIMUM_VERSION, versionIsSupported } from '$lib/version.js' import { browser } from '$app/environment' import { env } from '$env/dynamic/public' +import type { ResumableItem } from './lemmy/item' const getDefaultProfile = (): Profile => ({ id: -1, @@ -42,7 +43,7 @@ export interface Profile { user?: PersonData username?: string avatar?: string - favorites?: number[] + favorites?: ResumableItem[] color?: string } diff --git a/src/lib/components/lemmy/comment/CommentVote.svelte b/src/lib/components/lemmy/comment/CommentVote.svelte index b3dccd77..4cda666d 100644 --- a/src/lib/components/lemmy/comment/CommentVote.svelte +++ b/src/lib/components/lemmy/comment/CommentVote.svelte @@ -16,6 +16,7 @@ import { vote as voteItem } from '$lib/lemmy/contentview' import { shouldShowVoteColor } from '../post/PostVote.svelte' import { fly } from 'svelte/transition' + import { backOut } from 'svelte/easing' export let vote: number = 0 export let upvotes: number @@ -48,8 +49,8 @@ {#key upvotes} @@ -69,8 +70,8 @@ {#key downvotes} diff --git a/src/lib/components/lemmy/comment/Comments.svelte b/src/lib/components/lemmy/comment/Comments.svelte index 4db232f9..e2fd645e 100644 --- a/src/lib/components/lemmy/comment/Comments.svelte +++ b/src/lib/components/lemmy/comment/Comments.svelte @@ -17,6 +17,7 @@ import { profile } from '$lib/auth.js' import { Button } from 'mono-svelte' import { afterNavigate } from '$app/navigation' + import { backOut } from 'svelte/easing' export let nodes: CommentNodeI[] export let isParent: boolean @@ -106,7 +107,7 @@