- start a README to document config admin later - update constants - add instanceUrl field to public details; if empty, then turn off yp.enabled. - edit YP/Directory settings; hide if instanceUrl is empty - update toggleswitch logic

This commit is contained in:
gingervitis
2021-01-03 00:29:37 -08:00
committed by Gabe Kangas
parent c6e978f182
commit c61e7e9c14
7 changed files with 188 additions and 58 deletions

View File

@ -2,15 +2,27 @@ import React, { useState, useEffect } from 'react';
import PropTypes, { any } from 'prop-types';
import { STATUS, fetchData, FETCH_INTERVAL, SERVER_CONFIG } from './apis';
import { UpdateArgs } from '../types/config-section';
import { ConfigDetails, UpdateArgs } from '../types/config-section';
export const initialServerConfigState = {
export const initialServerConfigState: ConfigDetails = {
streamKey: '',
instanceDetails: {
extraPageContent: '',
logo: '',
name: '',
nsfw: false,
streamTitle: '',
summary: '',
tags: [],
title: '',
},
ffmpegPath: '',
rtmpServerPort: '',
webServerPort: '',
s3: {},
yp: {
enabled: false,
instanceUrl: '',
},
videoSettings: {
videoQualityVariants: [