Remove referrers from links

This commit is contained in:
schroda
2024-05-04 23:54:33 +02:00
parent b892c93d7a
commit 3a7c93ea06
6 changed files with 20 additions and 10 deletions

View File

@@ -65,7 +65,7 @@ export const VersionUpdateInfoDialog = ({
<DialogActions> <DialogActions>
<Stack sx={{ width: '100%' }} direction="row" justifyContent={changelogUrl ? 'space-between' : 'end'}> <Stack sx={{ width: '100%' }} direction="row" justifyContent={changelogUrl ? 'space-between' : 'end'}>
{changelogUrl && ( {changelogUrl && (
<Button href={changelogUrl} target="_blank"> <Button href={changelogUrl} target="_blank" rel="noreferrer">
{t('global.button.changelog')} {t('global.button.changelog')}
</Button> </Button>
)} )}
@@ -98,7 +98,13 @@ export const VersionUpdateInfoDialog = ({
)} )}
</PopupState> </PopupState>
{actionUrl ? ( {actionUrl ? (
<Button disabled={disabled} variant="contained" href={actionUrl} target="_blank"> <Button
disabled={disabled}
variant="contained"
href={actionUrl}
target="_blank"
rel="noreferrer"
>
{actionTitle} {actionTitle}
</Button> </Button>
) : ( ) : (

View File

@@ -156,7 +156,7 @@ export const WebUIUpdateChecker = () => {
</DialogContentText> </DialogContentText>
</DialogContent> </DialogContent>
<DialogActions> <DialogActions>
<Button href={changelogUrl} target="_blank"> <Button href={changelogUrl} target="_blank" rel="noreferrer">
{t('global.button.changelog')} {t('global.button.changelog')}
</Button> </Button>
<Button <Button

View File

@@ -140,7 +140,11 @@ export function Settings() {
secondary={ secondary={
<> <>
<span>{t('settings.label.language_description')} </span> <span>{t('settings.label.language_description')} </span>
<Link href="https://hosted.weblate.org/projects/suwayomi/suwayomi-webui"> <Link
href="https://hosted.weblate.org/projects/suwayomi/suwayomi-webui"
target="_blank"
rel="noreferrer"
>
{t('global.language.title.weblate')} {t('global.language.title.weblate')}
</Link> </Link>
</> </>

View File

@@ -299,7 +299,7 @@ export function SourceMangas() {
const messageExtra = isLocalSource ? ( const messageExtra = isLocalSource ? (
<> <>
<span>{t('source.local_source.label.checkout')} </span> <span>{t('source.local_source.label.checkout')} </span>
<Link href="https://github.com/Suwayomi/Suwayomi-Server/wiki/Local-Source"> <Link href="https://github.com/Suwayomi/Suwayomi-Server/wiki/Local-Source" target="_blank" rel="noreferrer">
{t('source.local_source.label.guide')} {t('source.local_source.label.guide')}
</Link> </Link>
</> </>

View File

@@ -334,16 +334,16 @@ export function About() {
</ListSubheader> </ListSubheader>
} }
> >
<ListItemLink to={aboutServer.github}> <ListItemLink to={aboutServer.github} target="_blank" rel="noreferrer">
<ListItemText primary={t('settings.about.server.label.github')} secondary={aboutServer.github} /> <ListItemText primary={t('settings.about.server.label.github')} secondary={aboutServer.github} />
</ListItemLink> </ListItemLink>
<ListItemLink to="https://github.com/Suwayomi/Suwayomi-WebUI"> <ListItemLink to="https://github.com/Suwayomi/Suwayomi-WebUI" target="_blank" rel="noreferrer">
<ListItemText <ListItemText
primary={t('settings.about.webui.label.github')} primary={t('settings.about.webui.label.github')}
secondary="https://github.com/Suwayomi/Suwayomi-WebUI" secondary="https://github.com/Suwayomi/Suwayomi-WebUI"
/> />
</ListItemLink> </ListItemLink>
<ListItemLink to={aboutServer.discord}> <ListItemLink to={aboutServer.discord} target="_blank" rel="noreferrer">
<ListItemText primary={t('global.label.discord')} secondary={aboutServer.discord} /> <ListItemText primary={t('global.label.discord')} secondary={aboutServer.discord} />
</ListItemLink> </ListItemLink>
</List> </List>

View File

@@ -245,14 +245,14 @@ export const ServerSettings = () => {
primary={t('settings.server.cloudflare.flaresolverr.enabled.label.title')} primary={t('settings.server.cloudflare.flaresolverr.enabled.label.title')}
secondary={ secondary={
<Trans i18nKey="settings.server.cloudflare.flaresolverr.enabled.label.description"> <Trans i18nKey="settings.server.cloudflare.flaresolverr.enabled.label.description">
See{' '} See
<Link <Link
href="https://github.com/FlareSolverr/FlareSolverr?tab=readme-ov-file#installation" href="https://github.com/FlareSolverr/FlareSolverr?tab=readme-ov-file#installation"
target="_blank" target="_blank"
rel="noreferrer" rel="noreferrer"
> >
FlareSolverr FlareSolverr
</Link>{' '} </Link>
for information on how to set it up for information on how to set it up
</Trans> </Trans>
} }