misc: improve bundle size
This commit is contained in:
1 parent
338a758219
commit
d9da0d9fd0
4 files changed
+4
-20
No files matched your search
@@ -36,7 +36,6 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@dicebear/core": "^6.0.4",
|
"@dicebear/core": "^6.0.4",
|
||||||
"@dicebear/initials": "^6.0.4",
|
"@dicebear/initials": "^6.0.4",
|
||||||
"@tailwindcss/container-queries": "^0.1.1",
|
|
||||||
"lemmy-js-client": "^0.18.0-rc.2",
|
"lemmy-js-client": "^0.18.0-rc.2",
|
||||||
"markdown-it": "^13.0.1"
|
"markdown-it": "^13.0.1"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -7,10 +7,7 @@
|
|||||||
import { userSettings } from '$lib/settings.js'
|
import { userSettings } from '$lib/settings.js'
|
||||||
import PostLink from '$lib/components/lemmy/post/PostLink.svelte'
|
import PostLink from '$lib/components/lemmy/post/PostLink.svelte'
|
||||||
import PostMeta from '$lib/components/lemmy/post/PostMeta.svelte'
|
import PostMeta from '$lib/components/lemmy/post/PostMeta.svelte'
|
||||||
import Modal from '$lib/components/ui/modal/Modal.svelte'
|
|
||||||
import PostForm from '$lib/components/lemmy/post/PostForm.svelte'
|
|
||||||
import { ToastType, toast } from '$lib/components/ui/toasts/toasts.js'
|
import { ToastType, toast } from '$lib/components/ui/toasts/toasts.js'
|
||||||
import Markdown from '$lib/components/markdown/Markdown.svelte'
|
|
||||||
|
|
||||||
export let post: PostView
|
export let post: PostView
|
||||||
|
|
||||||
@@ -105,17 +102,14 @@
|
|||||||
/>
|
/>
|
||||||
{/if}
|
{/if}
|
||||||
{#if post.post.body && !post.post.nsfw}
|
{#if post.post.body && !post.post.nsfw}
|
||||||
<div
|
<p
|
||||||
class="text-sm line-clamp-3 bg-slate-100 dark:bg-zinc-800
|
class="text-sm line-clamp-3 bg-slate-100 dark:bg-zinc-800
|
||||||
border border-slate-200 dark:border-zinc-700 rounded-md p-2"
|
border border-slate-200 dark:border-zinc-700 rounded-md p-2"
|
||||||
>
|
>
|
||||||
<Markdown
|
{post.post.body.length > 350
|
||||||
inline
|
|
||||||
source={post.post.body.length > 350
|
|
||||||
? `${post.post.body.slice(0, 350)}...`
|
? `${post.post.body.slice(0, 350)}...`
|
||||||
: post.post.body}
|
: post.post.body}
|
||||||
/>
|
</p>
|
||||||
</div>
|
|
||||||
{/if}
|
{/if}
|
||||||
{/if}
|
{/if}
|
||||||
{#if actions}
|
{#if actions}
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { goto } from '$app/navigation'
|
|
||||||
import Button from '$lib/components/input/Button.svelte'
|
import Button from '$lib/components/input/Button.svelte'
|
||||||
import Link from '$lib/components/input/Link.svelte'
|
import Link from '$lib/components/input/Link.svelte'
|
||||||
import ShieldIcon from '$lib/components/lemmy/moderation/ShieldIcon.svelte'
|
import ShieldIcon from '$lib/components/lemmy/moderation/ShieldIcon.svelte'
|
||||||
@@ -9,9 +8,7 @@
|
|||||||
import Spinner from '$lib/components/ui/loader/Spinner.svelte'
|
import Spinner from '$lib/components/ui/loader/Spinner.svelte'
|
||||||
import Menu from '$lib/components/ui/menu/Menu.svelte'
|
import Menu from '$lib/components/ui/menu/Menu.svelte'
|
||||||
import MenuButton from '$lib/components/ui/menu/MenuButton.svelte'
|
import MenuButton from '$lib/components/ui/menu/MenuButton.svelte'
|
||||||
import { ToastType, toast } from '$lib/components/ui/toasts/toasts.js'
|
import { authData, instance, user } from '$lib/lemmy.js'
|
||||||
import { authData, getInstance, instance, user } from '$lib/lemmy.js'
|
|
||||||
import { Color } from '$lib/ui/colors.js'
|
|
||||||
import {
|
import {
|
||||||
ArrowLeftOnRectangle,
|
ArrowLeftOnRectangle,
|
||||||
ArrowRightOnRectangle,
|
ArrowRightOnRectangle,
|
||||||
@@ -25,7 +22,6 @@
|
|||||||
Plus,
|
Plus,
|
||||||
UserCircle,
|
UserCircle,
|
||||||
} from 'svelte-hero-icons'
|
} from 'svelte-hero-icons'
|
||||||
import { get } from 'svelte/store'
|
|
||||||
|
|
||||||
let scrollY = 0
|
let scrollY = 0
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -313,11 +313,6 @@
|
|||||||
svelte-hmr "^0.15.2"
|
svelte-hmr "^0.15.2"
|
||||||
vitefu "^0.2.4"
|
vitefu "^0.2.4"
|
||||||
|
|
||||||
"@tailwindcss/container-queries@^0.1.1":
|
|
||||||
version "0.1.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/@tailwindcss/container-queries/-/container-queries-0.1.1.tgz#9a759ce2cb8736a4c6a0cb93aeb740573a731974"
|
|
||||||
integrity sha512-p18dswChx6WnTSaJCSGx6lTmrGzNNvm2FtXmiO6AuA1V4U5REyoqwmT6kgAsIMdjo07QdAfYXHJ4hnMtfHzWgA==
|
|
||||||
|
|
||||||
"@tootallnate/once@2":
|
"@tootallnate/once@2":
|
||||||
version "2.0.0"
|
version "2.0.0"
|
||||||
resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-2.0.0.tgz#f544a148d3ab35801c1f633a7441fd87c2e484bf"
|
resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-2.0.0.tgz#f544a148d3ab35801c1f633a7441fd87c2e484bf"
|
||||||
|
|||||||
Reference in new issue
Block a user