misc: Organize components
This commit is contained in:
1 parent
a5460a03b4
commit
7d3f29d9eb
17 files changed
+24
-22
No files matched your search
@@ -1,6 +1,6 @@
|
||||
<script lang="ts">
|
||||
import { page } from '$app/stores'
|
||||
import Link from '$lib/components/Link.svelte'
|
||||
import Link from '$lib/components/input/Link.svelte'
|
||||
</script>
|
||||
|
||||
<div class="flex flex-col mx-auto gap-4 justify-center items-center">
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import Navbar from '$lib/components/Navbar.svelte'
|
||||
import Navbar from '$lib/components/ui/Navbar.svelte'
|
||||
import '../style/app.css'
|
||||
import { navigating, page } from '$app/stores'
|
||||
import nProgress from 'nprogress'
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<script lang="ts">
|
||||
import { goto } from '$app/navigation'
|
||||
import { page } from '$app/stores'
|
||||
import Button from '$lib/components/Button.svelte'
|
||||
import Card from '$lib/components/Card.svelte'
|
||||
import Link from '$lib/components/Link.svelte'
|
||||
import MultiSelect from '$lib/components/MultiSelect.svelte'
|
||||
import Button from '$lib/components/input/Button.svelte'
|
||||
import Card from '$lib/components/ui/Card.svelte'
|
||||
import Link from '$lib/components/input/Link.svelte'
|
||||
import MultiSelect from '$lib/components/input/MultiSelect.svelte'
|
||||
import {
|
||||
Calendar,
|
||||
ChatBubbleLeftEllipsis,
|
||||
@@ -16,9 +16,9 @@
|
||||
} from 'svelte-hero-icons'
|
||||
import Avatar from './post/[id]/Avatar.svelte'
|
||||
import Post from './post/[id]/Post.svelte'
|
||||
import FormattedNumber from '$lib/components/FormattedNumber.svelte'
|
||||
import FormattedNumber from '$lib/components/util/FormattedNumber.svelte'
|
||||
import Markdown from '$lib/components/markdown/Markdown.svelte'
|
||||
import RelativeDate from '$lib/components/RelativeDate.svelte'
|
||||
import RelativeDate from '$lib/components/util/RelativeDate.svelte'
|
||||
|
||||
export let data
|
||||
</script>
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
<script lang="ts">
|
||||
import { page } from '$app/stores'
|
||||
import Link from '$lib/components/Link.svelte'
|
||||
import MultiSelect from '$lib/components/MultiSelect.svelte'
|
||||
import Link from '$lib/components/input/Link.svelte'
|
||||
import MultiSelect from '$lib/components/input/MultiSelect.svelte'
|
||||
import SvelteMarkdown from 'svelte-markdown'
|
||||
import Avatar from '../../post/[id]/Avatar.svelte'
|
||||
import Post from '../../post/[id]/Post.svelte'
|
||||
import { goto } from '$app/navigation'
|
||||
import RelativeDate from '$lib/components/RelativeDate.svelte'
|
||||
import RelativeDate from '$lib/components/util/RelativeDate.svelte'
|
||||
import {
|
||||
Calendar,
|
||||
ChatBubbleOvalLeftEllipsis,
|
||||
@@ -15,8 +15,8 @@
|
||||
PencilSquare,
|
||||
UserGroup,
|
||||
} from 'svelte-hero-icons'
|
||||
import FormattedNumber from '$lib/components/FormattedNumber.svelte'
|
||||
import Card from '$lib/components/Card.svelte'
|
||||
import FormattedNumber from '$lib/components/util/FormattedNumber.svelte'
|
||||
import Card from '$lib/components/ui/Card.svelte'
|
||||
|
||||
export let data
|
||||
</script>
|
||||
@@ -115,6 +115,8 @@
|
||||
{community.community_view.community.name}
|
||||
</h1>
|
||||
<SvelteMarkdown source={community.community_view.community.description} />
|
||||
{:catch}
|
||||
<p>Failed to load community. This is likely an issue on Lemmy's end.</p>
|
||||
{/await}
|
||||
</Card>
|
||||
</div>
|
||||
@@ -1,6 +1,6 @@
|
||||
<script lang="ts">
|
||||
import { goto } from '$app/navigation'
|
||||
import MultiSelect from '$lib/components/MultiSelect.svelte'
|
||||
import MultiSelect from '$lib/components/input/MultiSelect.svelte'
|
||||
import { page } from '$app/stores'
|
||||
import {
|
||||
ChatBubbleLeftEllipsis,
|
||||
@@ -10,7 +10,7 @@
|
||||
UserGroup,
|
||||
} from 'svelte-hero-icons'
|
||||
import CommunityLink from '$lib/components/community/CommunityLink.svelte'
|
||||
import Link from '$lib/components/Link.svelte'
|
||||
import Link from '$lib/components/input/Link.svelte'
|
||||
import { Color } from '$lib/ui/colors.js'
|
||||
|
||||
export let data
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import Button from '$lib/components/Button.svelte'
|
||||
import Button from '$lib/components/input/Button.svelte'
|
||||
|
||||
let url = ''
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import MultiSelect from '$lib/components/MultiSelect.svelte'
|
||||
import MultiSelect from '$lib/components/input/MultiSelect.svelte'
|
||||
import type {
|
||||
GetCommentsResponse,
|
||||
GetPostResponse,
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
import Avatar from './Avatar.svelte'
|
||||
import type { CommentNodeI } from './comments.js'
|
||||
import SvelteMarkdown from 'svelte-markdown'
|
||||
import RelativeDate from '$lib/components/RelativeDate.svelte'
|
||||
import Button from '$lib/components/Button.svelte'
|
||||
import RelativeDate from '$lib/components/util/RelativeDate.svelte'
|
||||
import Button from '$lib/components/input/Button.svelte'
|
||||
import { Color } from '$lib/ui/colors.js'
|
||||
|
||||
export let node: CommentNodeI
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
Icon,
|
||||
} from 'svelte-hero-icons'
|
||||
import type { CommentNodeI } from './comments.js'
|
||||
import RelativeDate from '$lib/components/RelativeDate.svelte'
|
||||
import RelativeDate from '$lib/components/util/RelativeDate.svelte'
|
||||
import CommunityLink from '$lib/components/community/CommunityLink.svelte'
|
||||
import { isImage } from '$lib/ui/image.js'
|
||||
|
||||
|
||||
Reference in new issue
Block a user