mirror of
https://github.com/owncast/owncast.git
synced 2024-10-10 19:16:02 +00:00
Ran codemod upgrade tool
This commit is contained in:
parent
a65dd748ea
commit
c11047fc4e
@ -95,7 +95,7 @@ export const VideoLatency: FC = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="config-video-latency-container">
|
(<div className="config-video-latency-container">
|
||||||
<Title level={3} className="section-title">
|
<Title level={3} className="section-title">
|
||||||
Latency Buffer
|
Latency Buffer
|
||||||
</Title>
|
</Title>
|
||||||
@ -115,20 +115,21 @@ export const VideoLatency: FC = () => {
|
|||||||
Read to learn more.
|
Read to learn more.
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div className="segment-slider-container">
|
<div className="segment-slider-container">
|
||||||
<Slider
|
<Slider
|
||||||
tipFormatter={value => SLIDER_COMMENTS[value]}
|
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
min={0}
|
min={0}
|
||||||
max={4}
|
max={4}
|
||||||
marks={SLIDER_MARKS}
|
marks={SLIDER_MARKS}
|
||||||
defaultValue={selectedOption}
|
defaultValue={selectedOption}
|
||||||
value={selectedOption}
|
value={selectedOption}
|
||||||
|
tooltip={{
|
||||||
|
formatter: value => SLIDER_COMMENTS[value]
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
<p className="selected-value-note">{SLIDER_COMMENTS[selectedOption]}</p>
|
<p className="selected-value-note">{SLIDER_COMMENTS[selectedOption]}</p>
|
||||||
<FormStatusIndicator status={submitStatus} />
|
<FormStatusIndicator status={submitStatus} />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>)
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -113,7 +113,7 @@ export const VideoVariantForm: FC<VideoVariantFormProps> = ({
|
|||||||
'video-passthrough-enabled': videoPassthroughEnabled,
|
'video-passthrough-enabled': videoPassthroughEnabled,
|
||||||
});
|
});
|
||||||
return (
|
return (
|
||||||
<div className={classes}>
|
(<div className={classes}>
|
||||||
<div className="video-varient-alert">
|
<div className="video-varient-alert">
|
||||||
<Alert
|
<Alert
|
||||||
type="info"
|
type="info"
|
||||||
@ -139,7 +139,6 @@ export const VideoVariantForm: FC<VideoVariantFormProps> = ({
|
|||||||
below video encoding settings.
|
below video encoding settings.
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<Row gutter={16}>
|
<Row gutter={16}>
|
||||||
<Col xs={24} lg={{ span: 24, pull: 3 }} className="video-text-field-container">
|
<Col xs={24} lg={{ span: 24, pull: 3 }} className="video-text-field-container">
|
||||||
<TextField
|
<TextField
|
||||||
@ -157,7 +156,6 @@ export const VideoVariantForm: FC<VideoVariantFormProps> = ({
|
|||||||
</p>
|
</p>
|
||||||
<div className="segment-slider-container">
|
<div className="segment-slider-container">
|
||||||
<Slider
|
<Slider
|
||||||
tipFormatter={value => ENCODER_PRESET_TOOLTIPS[value]}
|
|
||||||
onChange={handleVideoCpuUsageLevelChange}
|
onChange={handleVideoCpuUsageLevelChange}
|
||||||
min={0}
|
min={0}
|
||||||
max={Object.keys(ENCODER_PRESET_SLIDER_MARKS).length - 1}
|
max={Object.keys(ENCODER_PRESET_SLIDER_MARKS).length - 1}
|
||||||
@ -165,6 +163,9 @@ export const VideoVariantForm: FC<VideoVariantFormProps> = ({
|
|||||||
defaultValue={dataState.cpuUsageLevel}
|
defaultValue={dataState.cpuUsageLevel}
|
||||||
value={dataState.cpuUsageLevel}
|
value={dataState.cpuUsageLevel}
|
||||||
disabled={dataState.videoPassthrough}
|
disabled={dataState.videoPassthrough}
|
||||||
|
tooltip={{
|
||||||
|
formatter: value => ENCODER_PRESET_TOOLTIPS[value]
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
<p className="selected-value-note">{cpuUsageNote()}</p>
|
<p className="selected-value-note">{cpuUsageNote()}</p>
|
||||||
</div>
|
</div>
|
||||||
@ -193,7 +194,6 @@ export const VideoVariantForm: FC<VideoVariantFormProps> = ({
|
|||||||
<p className="description">{VIDEO_BITRATE_DEFAULTS.tip}</p>
|
<p className="description">{VIDEO_BITRATE_DEFAULTS.tip}</p>
|
||||||
<div className="segment-slider-container">
|
<div className="segment-slider-container">
|
||||||
<Slider
|
<Slider
|
||||||
tipFormatter={value => `${value} ${VIDEO_BITRATE_DEFAULTS.unit}`}
|
|
||||||
disabled={dataState.videoPassthrough}
|
disabled={dataState.videoPassthrough}
|
||||||
defaultValue={dataState.videoBitrate}
|
defaultValue={dataState.videoBitrate}
|
||||||
value={dataState.videoBitrate}
|
value={dataState.videoBitrate}
|
||||||
@ -202,6 +202,9 @@ export const VideoVariantForm: FC<VideoVariantFormProps> = ({
|
|||||||
min={VIDEO_BITRATE_DEFAULTS.min}
|
min={VIDEO_BITRATE_DEFAULTS.min}
|
||||||
max={VIDEO_BITRATE_DEFAULTS.max}
|
max={VIDEO_BITRATE_DEFAULTS.max}
|
||||||
marks={VIDEO_BITRATE_SLIDER_MARKS}
|
marks={VIDEO_BITRATE_SLIDER_MARKS}
|
||||||
|
tooltip={{
|
||||||
|
formatter: value => `${value} ${VIDEO_BITRATE_DEFAULTS.unit}`
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
<p className="selected-value-note">{selectedVideoBRnote()}</p>
|
<p className="selected-value-note">{selectedVideoBRnote()}</p>
|
||||||
</div>
|
</div>
|
||||||
@ -315,7 +318,6 @@ export const VideoVariantForm: FC<VideoVariantFormProps> = ({
|
|||||||
<p className="description">{FRAMERATE_DEFAULTS.tip}</p>
|
<p className="description">{FRAMERATE_DEFAULTS.tip}</p>
|
||||||
<div className="segment-slider-container">
|
<div className="segment-slider-container">
|
||||||
<Slider
|
<Slider
|
||||||
tipFormatter={value => `${value} ${FRAMERATE_DEFAULTS.unit}`}
|
|
||||||
defaultValue={dataState.framerate}
|
defaultValue={dataState.framerate}
|
||||||
value={dataState.framerate}
|
value={dataState.framerate}
|
||||||
onChange={handleFramerateChange}
|
onChange={handleFramerateChange}
|
||||||
@ -324,6 +326,9 @@ export const VideoVariantForm: FC<VideoVariantFormProps> = ({
|
|||||||
max={FRAMERATE_DEFAULTS.max}
|
max={FRAMERATE_DEFAULTS.max}
|
||||||
marks={FRAMERATE_SLIDER_MARKS}
|
marks={FRAMERATE_SLIDER_MARKS}
|
||||||
disabled={dataState.videoPassthrough}
|
disabled={dataState.videoPassthrough}
|
||||||
|
tooltip={{
|
||||||
|
formatter: value => `${value} ${FRAMERATE_DEFAULTS.unit}`
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
<p className="selected-value-note">{selectedFramerateNote()}</p>
|
<p className="selected-value-note">{selectedFramerateNote()}</p>
|
||||||
</div>
|
</div>
|
||||||
@ -339,6 +344,6 @@ export const VideoVariantForm: FC<VideoVariantFormProps> = ({
|
|||||||
</div>
|
</div>
|
||||||
</Panel>
|
</Panel>
|
||||||
</Collapse>
|
</Collapse>
|
||||||
</div>
|
</div>)
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -40,7 +40,7 @@ const DirectoryInfoModal: FC<DirectoryInfoModalProps> = ({ cancelPressed, okPres
|
|||||||
<Modal
|
<Modal
|
||||||
width="70%"
|
width="70%"
|
||||||
title="Owncast Directory"
|
title="Owncast Directory"
|
||||||
visible
|
open
|
||||||
onCancel={cancelPressed}
|
onCancel={cancelPressed}
|
||||||
footer={
|
footer={
|
||||||
<div>
|
<div>
|
||||||
|
@ -9,7 +9,7 @@ export type FatalErrorStateModalProps = {
|
|||||||
export const FatalErrorStateModal: FC<FatalErrorStateModalProps> = ({ title, message }) => (
|
export const FatalErrorStateModal: FC<FatalErrorStateModalProps> = ({ title, message }) => (
|
||||||
<Modal
|
<Modal
|
||||||
title={title}
|
title={title}
|
||||||
visible
|
open
|
||||||
footer={null}
|
footer={null}
|
||||||
closable={false}
|
closable={false}
|
||||||
keyboard={false}
|
keyboard={false}
|
||||||
|
@ -37,7 +37,7 @@ const FederationInfoModal: FC<FederationInfoModalProps> = ({ cancelPressed, okPr
|
|||||||
<Modal
|
<Modal
|
||||||
width="70%"
|
width="70%"
|
||||||
title="Enable Social Features"
|
title="Enable Social Features"
|
||||||
visible
|
open
|
||||||
onCancel={cancelPressed}
|
onCancel={cancelPressed}
|
||||||
footer={
|
footer={
|
||||||
<div>
|
<div>
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
@import '~antd/dist/antd.less'; // Introduce the official dark less style entry file
|
/* @import '~antd/dist/antd.less';*/ // Introduce the official dark less style entry file
|
||||||
@import './theme.less'; // Import ant design theme definition
|
@import './theme.less'; // Import ant design theme definition
|
||||||
|
Loading…
x
Reference in New Issue
Block a user