feat: add more admin options
This commit is contained in:
1 parent
d43447b3f9
commit
83f51f76b0
3 files changed
+51
-3
No files matched your search
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "photon-lemmy",
|
||||
"version": "0.5.3",
|
||||
"version": "0.5.4",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "vite dev",
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
<script lang="ts">
|
||||
import { createEventDispatcher } from 'svelte'
|
||||
|
||||
export let label: string = ''
|
||||
export let type: 'text' | 'password' | 'email' | null | undefined = 'text'
|
||||
export let label: string | number | undefined = ''
|
||||
export let type: 'text' | 'password' | 'email' | 'number' | null | undefined =
|
||||
'text'
|
||||
export let value: string = ''
|
||||
export let required = false
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
import { getClient } from '$lib/lemmy.js'
|
||||
import type { EditSite } from 'lemmy-js-client'
|
||||
import type { PageData } from './$types.js'
|
||||
import SectionTitle from '$lib/components/ui/SectionTitle.svelte'
|
||||
|
||||
export let data: PageData
|
||||
|
||||
@@ -122,6 +123,52 @@
|
||||
>
|
||||
Require email verification
|
||||
</Checkbox>
|
||||
<Checkbox
|
||||
checked={local_site.application_email_admins ?? true}
|
||||
on:change={(e) => {
|
||||
local_site.application_email_admins =
|
||||
!local_site.application_email_admins
|
||||
}}
|
||||
>
|
||||
Email admins on receiving new applications
|
||||
</Checkbox>
|
||||
<Checkbox
|
||||
checked={local_site.reports_email_admins ?? true}
|
||||
on:change={(e) => {
|
||||
local_site.reports_email_admins = !local_site.reports_email_admins
|
||||
}}
|
||||
>
|
||||
Email admins on receiving new reports
|
||||
</Checkbox>
|
||||
<Checkbox
|
||||
checked={local_site.private_instance ?? true}
|
||||
on:change={(e) => {
|
||||
local_site.private_instance = !local_site.private_instance
|
||||
}}
|
||||
>
|
||||
Private instance
|
||||
</Checkbox>
|
||||
<Checkbox
|
||||
checked={local_site.hide_modlog_mod_names ?? true}
|
||||
on:change={(e) => {
|
||||
local_site.hide_modlog_mod_names = !local_site.hide_modlog_mod_names
|
||||
}}
|
||||
>
|
||||
Hide modlog mod names
|
||||
</Checkbox>
|
||||
<TextInput
|
||||
bind:value={local_site.slur_filter_regex}
|
||||
label="Slur filter regex"
|
||||
placeholder="(word1|word2)"
|
||||
/>
|
||||
<Checkbox
|
||||
checked={local_site.federation_enabled ?? true}
|
||||
on:change={(e) => {
|
||||
local_site.federation_enabled = !local_site.federation_enabled
|
||||
}}
|
||||
>
|
||||
Federation enabled
|
||||
</Checkbox>
|
||||
{/if}
|
||||
<Button color="primary" size="lg" loading={saving} disabled={saving} submit>
|
||||
Save
|
||||
|
||||
Reference in new issue
Block a user