misc: use mono-svelte text input
This commit is contained in:
1 parent
e9168d055e
commit
5ed5395712
15 files changed
+22
-92
No files matched your search
@@ -2,13 +2,11 @@
|
||||
import { goto } from '$app/navigation'
|
||||
import { profile } from '$lib/auth.js'
|
||||
import FileInput from '$lib/components/input/FileInput.svelte'
|
||||
import TextArea from '$lib/components/input/TextArea.svelte'
|
||||
import TextInput from '$lib/components/input/TextInput.svelte'
|
||||
import MarkdownEditor from '$lib/components/markdown/MarkdownEditor.svelte'
|
||||
import { toast } from '$lib/components/ui/toasts/toasts.js'
|
||||
import { getClient, uploadImage } from '$lib/lemmy.js'
|
||||
import { addSubscription } from '$lib/lemmy/user.js'
|
||||
import { Button, Checkbox } from 'mono-svelte'
|
||||
import { Button, Checkbox, TextInput } from 'mono-svelte'
|
||||
|
||||
/**
|
||||
* The community ID to edit.
|
||||
@@ -117,7 +115,7 @@
|
||||
on:input={() => {
|
||||
formData.name = formData.name.toLowerCase().replaceAll(' ', '_')
|
||||
}}
|
||||
disabled={edit}
|
||||
disabled={edit != undefined}
|
||||
/>
|
||||
<TextInput required label="Display name" bind:value={formData.displayName} />
|
||||
<FileInput label="Icon" bind:files={formData.icon} image />
|
||||
|
||||
@@ -4,9 +4,8 @@
|
||||
import type { Community, Person, PersonView } from 'lemmy-js-client'
|
||||
import { getClient } from '$lib/lemmy.js'
|
||||
import { toast } from '$lib/components/ui/toasts/toasts.js'
|
||||
import TextInput from '$lib/components/input/TextInput.svelte'
|
||||
import { profile } from '$lib/auth.js'
|
||||
import { Button, Checkbox, Modal } from 'mono-svelte'
|
||||
import { Button, Checkbox, Modal, TextInput } from 'mono-svelte'
|
||||
|
||||
export let open = false
|
||||
let item: Person | undefined
|
||||
|
||||
@@ -2,16 +2,12 @@
|
||||
import { createEventDispatcher, onDestroy, onMount } from 'svelte'
|
||||
import { getClient, uploadImage } from '$lib/lemmy.js'
|
||||
import type { Community, Post, PostView } from 'lemmy-js-client'
|
||||
import TextInput from '$lib/components/input/TextInput.svelte'
|
||||
import TextArea from '$lib/components/input/TextArea.svelte'
|
||||
import FileInput from '$lib/components/input/FileInput.svelte'
|
||||
import { toast } from '$lib/components/ui/toasts/toasts.js'
|
||||
import SearchInput from '$lib/components/input/SearchInput.svelte'
|
||||
import { Check, Icon, Photo } from 'svelte-hero-icons'
|
||||
import { profile } from '$lib/auth.js'
|
||||
import MarkdownEditor from '$lib/components/markdown/MarkdownEditor.svelte'
|
||||
import { placeholders } from '$lib/util.js'
|
||||
import { Checkbox } from 'mono-svelte'
|
||||
import { Checkbox, TextInput } from 'mono-svelte'
|
||||
import { getSessionStorage, setSessionStorage } from '$lib/session.js'
|
||||
import MenuButton from '$lib/components/ui/menu/MenuButton.svelte'
|
||||
import ObjectAutocomplete from '$lib/components/lemmy/ObjectAutocomplete.svelte'
|
||||
@@ -190,7 +186,7 @@
|
||||
bind:q={communitySearch}
|
||||
bind:items={communities}
|
||||
jwt={$profile?.jwt}
|
||||
listing_type="All"
|
||||
listing_type="All"
|
||||
on:select={(e) => {
|
||||
const c = e.detail
|
||||
if (!c) {
|
||||
|
||||
Reference in new issue
Block a user