feat: add federation management
This commit is contained in:
1 parent
0c6cab22f3
commit
e530dcd05f
17 files changed
+386
-33
No files matched your search
+1
-18
@@ -44,7 +44,7 @@
|
||||
</script>
|
||||
|
||||
<div class={containerClass}>
|
||||
{#each options.slice(0, 4) as option, index}
|
||||
{#each options as option, index}
|
||||
<button
|
||||
class={buttonClass(selected == option)}
|
||||
on:click|preventDefault={() => (selected = option)}
|
||||
@@ -59,22 +59,5 @@
|
||||
{/if}
|
||||
</button>
|
||||
{/each}
|
||||
{#if options.length > 4}
|
||||
<select
|
||||
bind:value={selected}
|
||||
class="bg-inherit text-sm mr-2 p-1.5 rounded-md cursor-pointer {options
|
||||
.slice(4)
|
||||
.includes(selected)
|
||||
? 'bg-slate-900 text-slate-50 dark:bg-zinc-100 dark:text-black w-max'
|
||||
: 'w-4'}"
|
||||
>
|
||||
<Button color="tertiary">
|
||||
<Icon src={ChevronDown} size="16" mini />
|
||||
</Button>
|
||||
{#each options.slice(4) as option, index}
|
||||
<option value={option}>{optionNames[index + 4] || option}</option>
|
||||
{/each}
|
||||
</select>
|
||||
{/if}
|
||||
</div>
|
||||
<slot {selected} />
|
||||
@@ -2,7 +2,6 @@
|
||||
import type { CommentResponse } from 'lemmy-js-client'
|
||||
import { getClient } from '$lib/lemmy.js'
|
||||
import { createEventDispatcher } from 'svelte'
|
||||
import MultiSelect from '$lib/components/input/MultiSelect.svelte'
|
||||
import Markdown from '$lib/components/markdown/Markdown.svelte'
|
||||
import { profile } from '$lib/auth.js'
|
||||
import { toast } from 'mono-svelte'
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
import { profile } from '$lib/auth.js'
|
||||
import MarkdownEditor from '$lib/components/markdown/MarkdownEditor.svelte'
|
||||
import { Fire, Icon, Trash } from 'svelte-hero-icons'
|
||||
import MultiSelect from '$lib/components/input/MultiSelect.svelte'
|
||||
import MultiSelect from '$lib/components/input/Switch.svelte'
|
||||
import { removalTemplate } from '$lib/components/lemmy/moderation/moderation.js'
|
||||
import { userSettings } from '$lib/settings.js'
|
||||
import { fullCommunityName } from '$lib/util.js'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<script lang="ts">
|
||||
import { profile } from '$lib/auth.js'
|
||||
import MultiSelect from '$lib/components/input/MultiSelect.svelte'
|
||||
import MultiSelect from '$lib/components/input/Switch.svelte'
|
||||
import Markdown from '$lib/components/markdown/Markdown.svelte'
|
||||
import { ImageInput, toast } from 'mono-svelte'
|
||||
import { uploadImage } from '$lib/lemmy.js'
|
||||
|
||||
@@ -10,6 +10,8 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
<ul class="divide-y divide-slate-200 dark:divide-zinc-900 flex flex-col">
|
||||
<ul
|
||||
class="divide-y divide-slate-200 dark:divide-zinc-900 flex flex-col {$$props.class}"
|
||||
>
|
||||
<slot {action} />
|
||||
</ul>
|
||||
Reference in new issue
Block a user