Initializing a diagnostic tools. WIP

This commit is contained in:
John Livingston
2021-04-09 21:28:16 +02:00
parent 8b3763761b
commit 59cd78ee82
7 changed files with 115 additions and 5 deletions

View File

@ -1,10 +1,8 @@
interface InitSettingsOptions {
registerSetting: (options: RegisterServerSettingOptions) => void
}
import { getBaseRouter } from './helpers'
export function initSettings ({
registerSetting
}: InitSettingsOptions): void {
}: RegisterServerOptions): void {
registerSetting({
name: 'chat-auto-display',
label: 'Automatically open the chat',
@ -54,6 +52,18 @@ export function initSettings ({
private: false
})
registerSetting({
name: 'chat-use-prosody',
label: 'Use builtin Prosody XMPP Server',
type: 'input-checkbox',
// /!\ dont auto-activate on existing settups. FIXME: how to do this?
default: false, // TODO: set to true when peertube has fixed https://github.com/Chocobozzz/PeerTube/issues/3838
private: false,
descriptionHTML: 'If checked, this will use a builtin XMPP server. This is the recommanded setup.<br>' +
'TODO: add link to documentation.<br>' +
'<a href="' + getBaseRouter() + 'settings/diagnostic" target="_blank">Launch diagnostic</a>.<br>'
})
registerSetting({
name: 'chat-use-builtin',
label: 'Use builtin ConverseJS',