mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-12 21:23:45 +01:00
* update doc links to point to docs.overleaf.com instead of the old learn wiki * fix broken link to LaTeX positioning wiki article in figure modal help * point figure positioning help link to the docs.overleaf.com page * point figure/table label help links to specific anchors on the captioning-and-referencing-figures doc page * point figure modal error-help link to the graphicx-loading doc page * normalize target/rel on docs.overleaf.com links opened in a new tab * open figure modal and SSO help links in a new tab now that they point off-site * add eslint rule enforcing rel=noopener noreferrer on docs.overleaf.com links * extend require-rel-for-docs-links to also check OLButton * add lint script catching missing rel on docs.overleaf.com links in pug templates * fix require-rel-for-docs-links autofix crash on valueless rel attribute Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * add regression test for require-rel-for-docs-links valueless-rel autofix * revert `target=_blank` on figure modal and SSO help links --------- Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> GitOrigin-RevId: b6111341e1080fd7e4b42f6a1a18c27ea0fd7d8c
32 lines
868 B
TypeScript
32 lines
868 B
TypeScript
import { FC } from 'react'
|
|
import Notification from '@/shared/components/notification'
|
|
import { Trans, useTranslation } from 'react-i18next'
|
|
import Bowser from 'bowser'
|
|
|
|
export const isDeprecatedBrowser = () => {
|
|
const parser = Bowser.getParser(window.navigator.userAgent)
|
|
return parser.satisfies({
|
|
safari: '~15',
|
|
})
|
|
}
|
|
|
|
export const DeprecatedBrowser: FC = () => {
|
|
const { t } = useTranslation()
|
|
|
|
return (
|
|
<Notification
|
|
type="warning"
|
|
title={t('support_for_your_browser_is_ending_soon')}
|
|
content={
|
|
<Trans
|
|
i18nKey="to_continue_using_upgrade_or_change_your_browser"
|
|
components={[
|
|
// eslint-disable-next-line jsx-a11y/anchor-has-content,react/jsx-key
|
|
<a href="https://docs.overleaf.com/troubleshooting-and-support/supported-browsers" />,
|
|
]}
|
|
/>
|
|
}
|
|
/>
|
|
)
|
|
}
|