Admin support for creating 3rd party external link actions (#72)

* WIP external actions

* Add comment

* Add support for external actions icons and colors
This commit is contained in:
Gabe Kangas
2021-03-15 15:27:19 -07:00
committed by GitHub
parent f2092f928e
commit 195ac23bb2
6 changed files with 294 additions and 1 deletions

View File

@ -4,7 +4,7 @@ import React, { useState, useEffect } from 'react';
import PropTypes from 'prop-types';
import { STATUS, fetchData, FETCH_INTERVAL, SERVER_CONFIG } from './apis';
import { ConfigDetails, UpdateArgs } from '../types/config-section';
import { ConfigDetails, UpdateArgs, ExternalAction } from '../types/config-section';
import { DEFAULT_VARIANT_STATE } from './config-constants';
export const initialServerConfigState: ConfigDetails = {
@ -44,6 +44,7 @@ export const initialServerConfigState: ConfigDetails = {
cpuUsageLevel: 3,
videoQualityVariants: [DEFAULT_VARIANT_STATE],
},
externalActions: [],
};
const initialServerStatusState = {