mirror of
https://github.com/owncast/owncast.git
synced 2025-11-01 10:55:57 +08:00
- 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:
@ -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: [
|
||||
|
||||
Reference in New Issue
Block a user