kopia lustrzana https://github.com/cloudflare/wildebeest
remove Access configuration leftovers
rodzic
bf9ac13aef
commit
26c25adac4
|
@ -2,8 +2,6 @@ export type InstanceConfig = {
|
|||
title?: string
|
||||
email?: string
|
||||
description?: string
|
||||
accessAud?: string
|
||||
accessDomain?: string
|
||||
}
|
||||
|
||||
const DEFAULT_THUMBNAIL =
|
||||
|
|
|
@ -26,8 +26,6 @@ describe('Mastodon APIs', () => {
|
|||
uri: 'uri',
|
||||
email: 'email',
|
||||
description: 'description',
|
||||
accessAud: '1',
|
||||
accessDomain: 'foo',
|
||||
}
|
||||
await configure(db, data)
|
||||
|
||||
|
@ -50,8 +48,6 @@ describe('Mastodon APIs', () => {
|
|||
uri: 'uri',
|
||||
email: 'email',
|
||||
description: 'description',
|
||||
accessAud: '1',
|
||||
accessDomain: 'foo',
|
||||
}
|
||||
await configure(db, data)
|
||||
|
||||
|
|
|
@ -28,8 +28,6 @@ describe('Wildebeest', () => {
|
|||
title: 'title',
|
||||
description: 'description',
|
||||
email: 'email',
|
||||
accessDomain,
|
||||
accessAud,
|
||||
})
|
||||
|
||||
const headers = {
|
||||
|
|
|
@ -2,7 +2,7 @@ import { $, component$, useStore, useClientEffect$, useSignal } from '@builder.i
|
|||
import { MastodonLogo } from '~/components/MastodonLogo'
|
||||
import { useDomain } from '~/utils/useDomain'
|
||||
import Step1 from './step-1'
|
||||
import { type InstanceConfig, testAccess, testInstance } from './utils'
|
||||
import { type InstanceConfig, testInstance } from './utils'
|
||||
|
||||
export default component$(() => {
|
||||
const domain = useDomain()
|
||||
|
@ -14,8 +14,6 @@ export default component$(() => {
|
|||
title: `${domain} Wildebeest`,
|
||||
email: `admin@${domain}`,
|
||||
description: 'My personal Wildebeest instance (powered by Cloudflare)',
|
||||
accessDomain: '',
|
||||
accessAud: '',
|
||||
})
|
||||
|
||||
useClientEffect$(async () => {
|
||||
|
|
|
@ -2,8 +2,6 @@ export type InstanceConfig = {
|
|||
title?: string
|
||||
email?: string
|
||||
description?: string
|
||||
accessAud: string
|
||||
accessDomain: string
|
||||
}
|
||||
|
||||
export async function configure(data: InstanceConfig) {
|
||||
|
@ -16,11 +14,6 @@ export async function configure(data: InstanceConfig) {
|
|||
}
|
||||
}
|
||||
|
||||
export async function testAccess(): Promise<boolean> {
|
||||
const res = await fetch('/start-instance-test-access')
|
||||
return res.ok
|
||||
}
|
||||
|
||||
export async function testInstance(): Promise<boolean> {
|
||||
const res = await fetch('/api/v1/instance')
|
||||
const data = await res.json<{ title?: string }>()
|
||||
|
|
Ładowanie…
Reference in New Issue