mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-21 07:26:18 -05:00
Renaming HelpPopup to InfoPopup to avoid confusion with future Help features.
This commit is contained in:
parent
190a76febe
commit
ee36b90e8e
8 changed files with 31 additions and 31 deletions
|
|
@ -24,7 +24,7 @@ import {
|
|||
ExternalCardLink,
|
||||
FileIcon,
|
||||
findPosterPath,
|
||||
HelpHeader,
|
||||
InfoHeader,
|
||||
humanFileSize,
|
||||
isoDatetimeToAgoPopup,
|
||||
mimetypeColor,
|
||||
|
|
@ -268,7 +268,7 @@ function ArchivePage() {
|
|||
<Tab menu={tabMenu} panes={tabPanes}/>
|
||||
|
||||
<Segment>
|
||||
<HelpHeader
|
||||
<InfoHeader
|
||||
headerContent='History'
|
||||
popupContent='Other archives of this URL created at different times.'
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -724,7 +724,7 @@ export function CardPoster({to, file}) {
|
|||
}
|
||||
}
|
||||
|
||||
export function HelpPopup({
|
||||
export function InfoPopup({
|
||||
icon = 'info circle',
|
||||
size = null,
|
||||
content,
|
||||
|
|
@ -743,7 +743,7 @@ export function HelpPopup({
|
|||
/>
|
||||
}
|
||||
|
||||
export function HelpHeader({
|
||||
export function InfoHeader({
|
||||
icon,
|
||||
headerSize = 'h2',
|
||||
iconSize,
|
||||
|
|
@ -759,7 +759,7 @@ export function HelpHeader({
|
|||
<Header as={headerSize}>{headerContent} {required && <RequiredAsterisk/>}</Header>
|
||||
</label>
|
||||
<span>
|
||||
<HelpPopup content={popupContent} iconSize={iconSize} icon={icon} position={popupPosition}/>
|
||||
<InfoPopup content={popupContent} iconSize={iconSize} icon={icon} position={popupPosition}/>
|
||||
</span>
|
||||
</div>
|
||||
}
|
||||
|
|
@ -774,7 +774,7 @@ export function HotspotToggle() {
|
|||
checked={on === true}
|
||||
onChange={checked => setHotspot(checked)}
|
||||
/>
|
||||
{disabled && <HelpPopup content='Hotspot is not supported on this server'/>}
|
||||
{disabled && <InfoPopup content='Hotspot is not supported on this server'/>}
|
||||
</div>;
|
||||
}
|
||||
|
||||
|
|
@ -788,7 +788,7 @@ export function ThrottleToggle() {
|
|||
checked={on === true}
|
||||
onChange={checked => setThrottle(checked)}
|
||||
/>
|
||||
{disabled && <HelpPopup content='CPU Power-save is not supported on this server'/>}
|
||||
{disabled && <InfoPopup content='CPU Power-save is not supported on this server'/>}
|
||||
</div>;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -3,8 +3,8 @@ import {getDownloaders, postDownload, putDownload} from "../api";
|
|||
import {
|
||||
APIButton,
|
||||
DirectorySearch,
|
||||
HelpHeader,
|
||||
HelpPopup,
|
||||
InfoHeader,
|
||||
InfoPopup,
|
||||
mergeDeep,
|
||||
RequiredAsterisk,
|
||||
useLocalStorage
|
||||
|
|
@ -57,7 +57,7 @@ export function MaximumPagesInputForm({form, required, name = 'max_pages', path
|
|||
|
||||
export function DestinationForm({
|
||||
form,
|
||||
helpContent,
|
||||
infoContent,
|
||||
label = 'Destination',
|
||||
name = 'destination',
|
||||
path = 'destination',
|
||||
|
|
@ -65,9 +65,9 @@ export function DestinationForm({
|
|||
}) {
|
||||
const [inputProps, inputAttrs] = form.getCustomProps({name, path, required});
|
||||
const {disabled, value, onChange} = inputProps;
|
||||
const helpPopup = helpContent ? <HelpPopup content={helpContent}/> : null;
|
||||
const infoPopup = infoContent ? <InfoPopup content={infoContent}/> : null;
|
||||
return <SForm.Field>
|
||||
<label>{label} {required && <RequiredAsterisk/>}{helpPopup}</label>
|
||||
<label>{label} {required && <RequiredAsterisk/>}{infoPopup}</label>
|
||||
<DirectorySearch
|
||||
required={required}
|
||||
value={value}
|
||||
|
|
@ -157,7 +157,7 @@ export function TitleInclusionInput({form, path = 'settings.title_include'}) {
|
|||
});
|
||||
|
||||
return <>
|
||||
<HelpHeader
|
||||
<InfoHeader
|
||||
headerSize='h4'
|
||||
headerContent='Title Match Words'
|
||||
popupContent='List of words, separated by commas, that titles must contain to be downloaded.'
|
||||
|
|
@ -179,7 +179,7 @@ export function TitleExclusionInput({form, path = 'settings.title_exclude'}) {
|
|||
});
|
||||
|
||||
return <>
|
||||
<HelpHeader
|
||||
<InfoHeader
|
||||
headerSize='h4'
|
||||
headerContent='Title Exclusion Words'
|
||||
popupContent='List of words, separated by commas, that may not appear in titles to be downloaded.'
|
||||
|
|
@ -266,7 +266,7 @@ export function VideoResolutionSelectorForm({form, name = 'video_resolutions', p
|
|||
const [inputProps, inputAttrs] = form.getSelectionProps({name, path});
|
||||
|
||||
return <>
|
||||
<HelpHeader
|
||||
<InfoHeader
|
||||
headerSize='h5'
|
||||
headerContent='Video Resolutions'
|
||||
popupContent='Videos will be downloaded in the first available resolution from the list you select.'
|
||||
|
|
@ -288,7 +288,7 @@ function VideoFormatSelectorForm({form, name = 'video_format', path = 'settings.
|
|||
});
|
||||
|
||||
return <>
|
||||
<HelpHeader
|
||||
<InfoHeader
|
||||
headerSize='h5'
|
||||
headerContent='Video Format'
|
||||
popupContent='Videos will be downloaded in this format, or transcoded if not available.'
|
||||
|
|
@ -316,7 +316,7 @@ function VideoDurationLimit({form, name, path, label, helpContent, placeholder,
|
|||
|
||||
export function VideoTagsForm({form}) {
|
||||
return <>
|
||||
<HelpHeader
|
||||
<InfoHeader
|
||||
headerSize='h4'
|
||||
headerContent='Videos Tags'
|
||||
popupContent='Tag all Videos with these Tags.'
|
||||
|
|
@ -327,7 +327,7 @@ export function VideoTagsForm({form}) {
|
|||
|
||||
export function ChannelTagNameForm({form}) {
|
||||
return <>
|
||||
<HelpHeader
|
||||
<InfoHeader
|
||||
headerSize='h4'
|
||||
headerContent='Channel Tag'
|
||||
popupContent='If the Channel is new, apply this Tag.'
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import {
|
|||
APIButton,
|
||||
ErrorMessage,
|
||||
HandPointMessage,
|
||||
HelpPopup,
|
||||
InfoPopup,
|
||||
humanFileSize,
|
||||
IframeViewer,
|
||||
InfoMessage,
|
||||
|
|
@ -245,9 +245,9 @@ class ManageMap extends React.Component {
|
|||
</TableRow>
|
||||
}
|
||||
|
||||
let spaceHelpPopup = <HelpPopup
|
||||
let spaceInfoPopup = <InfoPopup
|
||||
content='Upon importing, a PBF file will consume more disk space than the original file.'/>;
|
||||
let timeHelpPopup = <HelpPopup content='Estimated for a Raspberry Pi 4'/>;
|
||||
let timeInfoPopup = <InfoPopup content='Estimated for a Raspberry Pi 4'/>;
|
||||
|
||||
return <PageContainer>
|
||||
<WROLModeMessage content='Cannot modify Map'/>
|
||||
|
|
@ -263,8 +263,8 @@ class ManageMap extends React.Component {
|
|||
<TableHeaderCell>PBF File</TableHeaderCell>
|
||||
<TableHeaderCell>Imported</TableHeaderCell>
|
||||
<TableHeaderCell>Size</TableHeaderCell>
|
||||
<TableHeaderCell>Space Required {spaceHelpPopup}</TableHeaderCell>
|
||||
<TableHeaderCell>Time to Import {timeHelpPopup}</TableHeaderCell>
|
||||
<TableHeaderCell>Space Required {spaceInfoPopup}</TableHeaderCell>
|
||||
<TableHeaderCell>Time to Import {timeInfoPopup}</TableHeaderCell>
|
||||
</TableRow>
|
||||
</TableHeader>
|
||||
<TableBody>
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ import {ButtonGroup, Container, Dimmer, Dropdown, GridColumn, GridRow, Icon, Inp
|
|||
import {
|
||||
APIButton,
|
||||
ErrorMessage,
|
||||
HelpPopup,
|
||||
InfoPopup,
|
||||
HotspotToggle,
|
||||
ThrottleToggle,
|
||||
Toggle,
|
||||
|
|
@ -318,7 +318,7 @@ export function SettingsPage() {
|
|||
<FormInput
|
||||
label={<>
|
||||
<b>Download Timeout</b>
|
||||
<HelpPopup content='Downloads will be stopped after this many seconds have elapsed.
|
||||
<InfoPopup content='Downloads will be stopped after this many seconds have elapsed.
|
||||
Downloads will never timeout if this is empty.'/>
|
||||
</>}
|
||||
value={state.download_timeout}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import {Accordion, Header, Progress, Segment, Statistic, StatisticGroup, Table} from "../Theme";
|
||||
import React, {useContext} from "react";
|
||||
import {HelpHeader, humanBandwidth, humanFileSize, LoadStatistic, useTitle} from "../Common";
|
||||
import {InfoHeader, humanBandwidth, humanFileSize, LoadStatistic, useTitle} from "../Common";
|
||||
import {ProgressPlaceholder} from "../Placeholder";
|
||||
import Grid from "semantic-ui-react/dist/commonjs/collections/Grid";
|
||||
import {Media, SettingsContext, StatusContext, ThemeContext} from "../../contexts/contexts";
|
||||
|
|
@ -281,7 +281,7 @@ export function StatusPage() {
|
|||
</Media>
|
||||
|
||||
<Segment>
|
||||
<HelpHeader
|
||||
<InfoHeader
|
||||
headerSize='h2'
|
||||
headerContent='Drive Bandwidth'
|
||||
popupContent='Inaccurate during startup. Becomes more accurate as the system is used.'
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import {HelpPopup, roundDigits, Toggle, useLocalStorage, useLocalStorageInt} from "../Common";
|
||||
import {InfoPopup, roundDigits, Toggle, useLocalStorage, useLocalStorageInt} from "../Common";
|
||||
import React, {useState} from "react";
|
||||
import {Form, Header, Segment, Table} from "../Theme";
|
||||
import Grid from "semantic-ui-react/dist/commonjs/collections/Grid";
|
||||
|
|
@ -301,7 +301,7 @@ const PowerLossCalculator = ({volts, setVolts}) => {
|
|||
/>
|
||||
</Grid.Column>
|
||||
<Grid.Column mobile={4} tablet={2}>
|
||||
<HelpPopup
|
||||
<InfoPopup
|
||||
content='Length is one way. This length will be doubled to account for return wire.'/>
|
||||
</Grid.Column>
|
||||
</Grid.Row>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import React from "react";
|
||||
import _ from "lodash";
|
||||
import {HelpPopup, RequiredAsterisk, Toggle, validURL, validURLs} from "../components/Common";
|
||||
import {InfoPopup, RequiredAsterisk, Toggle, validURL, validURLs} from "../components/Common";
|
||||
import {FormInput, Icon, TextArea} from "../components/Theme";
|
||||
import Message from "semantic-ui-react/dist/commonjs/collections/Message";
|
||||
|
||||
|
|
@ -310,7 +310,7 @@ export function InputForm({
|
|||
<label htmlFor={`${name}_input`}>
|
||||
<b>{label} {required && <RequiredAsterisk/>}</b>
|
||||
{helpContent &&
|
||||
<HelpPopup
|
||||
<InfoPopup
|
||||
content={helpContent}
|
||||
position={helpPosition}
|
||||
/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue