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