refactor: switch posts to barrel export

This commit is contained in:
James Xylight committed 2025-09-07 10:20:04 -07:00
1 parent 0281e6f56a
commit bb30a86dc4
47 files changed
+424 -528

No files matched your search

@@ -14,7 +14,6 @@
let { post, blur = false }: Props = $props()
let imageLoaded: boolean | null = $state(null)
onMount(() => {
imageLoaded = false
})
@@ -1,13 +1,13 @@
<script lang="ts">
import {
iframeType,
type MediaType,
} from '$lib/components/lemmy/post/helpers.js'
import PostLink from '$lib/components/lemmy/post/link/PostLink.svelte'
import { settings, type View } from '$lib/settings.svelte.js'
import type { Post } from '$lib/client/types'
import PostIframe from './PostIframe.svelte'
import PostImage from './PostImage.svelte'
import {
PostImage,
PostIframe,
PostLink,
type MediaType,
iframeType,
} from '..'
interface Props {
view?: View
@@ -1,15 +1,10 @@
<script lang="ts">
import {
bestImageURL,
postLink,
type MediaType,
} from '$lib/components/lemmy/post/helpers.js'
import { bestImageURL, postLink, type MediaType } from '..'
import { showImage } from '$lib/components/ui/ExpandableImage.svelte'
import { t } from '$lib/i18n/translations'
import { settings, type View } from '$lib/settings.svelte.js'
import type { Post } from '$lib/client/types'
import { modal } from 'mono-svelte'
import Button from 'mono-svelte/button/Button.svelte'
import { modal, Button } from 'mono-svelte'
import {
DocumentText,
ExclamationTriangle,