|
@ -7,7 +7,7 @@ import GenericPage from '../layout/GenericPage'; |
|
|
import DisconnectButton from './DisconnectButton'; |
|
|
import DisconnectButton from './DisconnectButton'; |
|
|
import GenericPageHeader from '../layout/GenericPageHeader'; |
|
|
import GenericPageHeader from '../layout/GenericPageHeader'; |
|
|
import setDefaultSettings from '../shared/setDefaultSettings'; |
|
|
import setDefaultSettings from '../shared/setDefaultSettings'; |
|
|
import { StyledButton, StyledNavItem, StyledPopover } from '../shared/styled'; |
|
|
import { StyledButton, StyledNavItem } from '../shared/styled'; |
|
|
import PlaybackConfig from './ConfigPanels/PlaybackConfig'; |
|
|
import PlaybackConfig from './ConfigPanels/PlaybackConfig'; |
|
|
import LookAndFeelConfig from './ConfigPanels/LookAndFeelConfig'; |
|
|
import LookAndFeelConfig from './ConfigPanels/LookAndFeelConfig'; |
|
|
import PlayerConfig from './ConfigPanels/PlayerConfig'; |
|
|
import PlayerConfig from './ConfigPanels/PlayerConfig'; |
|
@ -20,6 +20,7 @@ import { useAppDispatch, useAppSelector } from '../../redux/hooks'; |
|
|
import { setActive } from '../../redux/configSlice'; |
|
|
import { setActive } from '../../redux/configSlice'; |
|
|
import { apiController } from '../../api/controller'; |
|
|
import { apiController } from '../../api/controller'; |
|
|
import ExternalConfig from './ConfigPanels/ExternalConfig'; |
|
|
import ExternalConfig from './ConfigPanels/ExternalConfig'; |
|
|
|
|
|
import Popup from '../shared/Popup'; |
|
|
|
|
|
|
|
|
const GITHUB_RELEASE_URL = 'https://api.github.com/repos/jeffvli/sonixd/releases?per_page=3'; |
|
|
const GITHUB_RELEASE_URL = 'https://api.github.com/repos/jeffvli/sonixd/releases?per_page=3'; |
|
|
|
|
|
|
|
@ -148,7 +149,7 @@ const Config = () => { |
|
|
trigger="click" |
|
|
trigger="click" |
|
|
placement="auto" |
|
|
placement="auto" |
|
|
speaker={ |
|
|
speaker={ |
|
|
<StyledPopover title={t('Confirm')}> |
|
|
<Popup title={t('Confirm')}> |
|
|
<div>{t('Are you sure you want to reset your settings to default?')}</div> |
|
|
<div>{t('Are you sure you want to reset your settings to default?')}</div> |
|
|
<strong>{t('WARNING: This will reload the application')}</strong> |
|
|
<strong>{t('WARNING: This will reload the application')}</strong> |
|
|
<div> |
|
|
<div> |
|
@ -164,7 +165,7 @@ const Config = () => { |
|
|
{t('Yes')} |
|
|
{t('Yes')} |
|
|
</StyledButton> |
|
|
</StyledButton> |
|
|
</div> |
|
|
</div> |
|
|
</StyledPopover> |
|
|
</Popup> |
|
|
} |
|
|
} |
|
|
> |
|
|
> |
|
|
<StyledButton size="sm">{t('Reset defaults')}</StyledButton> |
|
|
<StyledButton size="sm">{t('Reset defaults')}</StyledButton> |
|
@ -175,7 +176,7 @@ const Config = () => { |
|
|
enterable |
|
|
enterable |
|
|
preventOverflow |
|
|
preventOverflow |
|
|
speaker={ |
|
|
speaker={ |
|
|
<StyledPopover> |
|
|
<Popup> |
|
|
<> |
|
|
<> |
|
|
{t('Current version:')} {packageJson.version} |
|
|
{t('Current version:')} {packageJson.version} |
|
|
<br /> |
|
|
<br /> |
|
@ -207,7 +208,7 @@ const Config = () => { |
|
|
{t('View CHANGELOG')} |
|
|
{t('View CHANGELOG')} |
|
|
</StyledButton> |
|
|
</StyledButton> |
|
|
</> |
|
|
</> |
|
|
</StyledPopover> |
|
|
</Popup> |
|
|
} |
|
|
} |
|
|
> |
|
|
> |
|
|
<StyledButton |
|
|
<StyledButton |
|
|