feat: add v0.19.0 support

This commit is contained in:
Xyphyn committed 2023-09-28 17:09:09 -07:00
1 parent b3b8a10e44
commit 119ab53946
62 files changed
+188 -157

No files matched your search

+1 -3
View File
@@ -8,9 +8,7 @@ export async function load({ fetch }) {
let site = get(siteStore)
if (!site) {
const res = await getClient(undefined, fetch).getSite({
auth: jwt,
})
const res = await getClient(undefined, fetch).getSite()
site = res
}
-1
View File
@@ -12,7 +12,6 @@ export async function load({ data, fetch, url }) {
const unreadOnly = (url.searchParams.get('unreadOnly') || 'true') == 'true'
const res = await getClient(undefined, fetch).listRegistrationApplications({
auth: jwt,
page: page,
limit: 40,
unread_only: unreadOnly,
@@ -25,7 +25,6 @@
try {
await getClient().approveRegistrationApplication({
approve: approve,
auth: $profile.jwt,
id: application.registration_application.id,
})
toast({
-1
View File
@@ -24,7 +24,6 @@
try {
await getClient().editSite({
auth: jwt,
...formData,
})
toast({
-2
View File
@@ -66,7 +66,6 @@
if (!blocked) allowedInstances.push(instance)
await getClient().editSite({
auth: $profile.jwt,
blocked_instances: blockedInstances,
allowed_instances: allowedInstances,
})
@@ -102,7 +101,6 @@
)
return await getClient().editSite({
auth: $profile.jwt,
allowed_instances: allowedInstances,
blocked_instances: blockedInstances,
})
+1 -3
View File
@@ -3,9 +3,7 @@ import { getClient } from '$lib/lemmy.js'
import { get } from 'svelte/store'
export async function load({ fetch, parent }) {
const instances = await getClient(undefined, fetch).getFederatedInstances({
auth: get(profile)?.jwt,
})
const instances = await getClient(undefined, fetch).getFederatedInstances()
return {
federated_instances: instances,
-1
View File
@@ -24,7 +24,6 @@
try {
await getClient().editSite({
auth: $profile.jwt,
taglines: taglines,
})
toast({
-1
View File
@@ -28,7 +28,6 @@
const result = await trycatch(() =>
getClient().addAdmin({
added: false,
auth: $profile!.jwt!,
person_id: id,
})
)