diff --git a/__tests__/components/AnnounceBanner.tsx b/__tests__/components/AnnounceBanner.tsx index ef51e155d..8b9a8b8a6 100644 --- a/__tests__/components/AnnounceBanner.tsx +++ b/__tests__/components/AnnounceBanner.tsx @@ -71,7 +71,7 @@ describe('AnnounceBanner component', () => { 'href', 'https://nasa-gcn.github.io/gcn-presentation/' ) - expect(link).toHaveAttribute('rel', 'external') + expect(link).toHaveAttribute('rel', 'external noopener') }) }) diff --git a/app/components/ClientSampleCode.tsx b/app/components/ClientSampleCode.tsx index 965c6f901..d9c078369 100644 --- a/app/components/ClientSampleCode.tsx +++ b/app/components/ClientSampleCode.tsx @@ -39,7 +39,8 @@ export function ClientSampleCode({ Open a terminal and run this command to install with{' '} pip @@ -51,7 +52,8 @@ export function ClientSampleCode({ or this command to install with with{' '} conda @@ -118,7 +120,8 @@ export function ClientSampleCode({ Open a terminal and run this command to install with{' '} npm @@ -201,7 +204,8 @@ export function ClientSampleCode({ Open a terminal and run this command to install with{' '} npm @@ -286,7 +290,8 @@ export function ClientSampleCode({ First,{' '} install librdkafka @@ -540,14 +545,16 @@ export function ClientSampleCode({ The following instructions are for the official Kafka command line tools which use Java and come with either{' '} Apache Kafka {' '} version 3.4.0 or newer or{' '} Confluent diff --git a/app/components/NoticeFormat.tsx b/app/components/NoticeFormat.tsx index 91f3f28dd..acf1789f6 100644 --- a/app/components/NoticeFormat.tsx +++ b/app/components/NoticeFormat.tsx @@ -48,7 +48,8 @@ export function NoticeFormatInput({ <> VOEvent XML. See{' '} documentation @@ -64,7 +65,8 @@ export function NoticeFormatInput({ <> 160-byte binary format. Field packing is{' '} specific to each notice type. @@ -80,7 +82,11 @@ export function NoticeFormatInput({ description: ( <> New notice types in JSON format defined using{' '} - + JSON schema diff --git a/app/root/AnnounceBanner.tsx b/app/root/AnnounceBanner.tsx index faf60919e..4eaeb2066 100644 --- a/app/root/AnnounceBanner.tsx +++ b/app/root/AnnounceBanner.tsx @@ -53,7 +53,8 @@ export default function AnnounceBanner({

If you cannot attend live, then you can get the{' '} presentation @@ -77,7 +78,7 @@ export function AnnouncementEvent(props: { {props.time}

(best for {props.region}):
- + {props.linkstring} diff --git a/app/root/Footer.tsx b/app/root/Footer.tsx index 6cf20bb4b..e535408be 100644 --- a/app/root/Footer.tsx +++ b/app/root/Footer.tsx @@ -95,27 +95,44 @@ export function Footer() { A service of the{' '} - + Astrophysics Science Division {' '} at{' '} - + NASA {' '} - + Goddard Space Flight Center - + About NASA Accessibility @@ -123,7 +140,8 @@ export function Footer() { Budget and Performance @@ -131,30 +149,44 @@ export function Footer() { No FEAR Act - + FOIA Requests - + Office of the Inspector General - + Privacy Policy Vulnerability Disclosure Policy @@ -163,7 +195,7 @@ export function Footer() { Looking for U.S. government information and services?{' '} - + Visit USA.gov diff --git a/app/routes/docs_._schema-browser.schema.($version).$/route.tsx b/app/routes/docs_._schema-browser.schema.($version).$/route.tsx index e40ad6c4f..1e95bf395 100644 --- a/app/routes/docs_._schema-browser.schema.($version).$/route.tsx +++ b/app/routes/docs_._schema-browser.schema.($version).$/route.tsx @@ -252,7 +252,8 @@ function SchemaBody({ View the source on{' '} GitHub @@ -303,7 +304,8 @@ function SchemaBody({ individually valid, based on their respective properties. See{' '} allOf @@ -323,7 +325,8 @@ function SchemaBody({ individually valid based on their respective properties. See{' '} anyOf @@ -343,7 +346,8 @@ function SchemaBody({ individually valid based on their respective properties. See{' '} oneOf diff --git a/app/routes/user.email._index/route.tsx b/app/routes/user.email._index/route.tsx index 402c08939..ac1d3f2d1 100644 --- a/app/routes/user.email._index/route.tsx +++ b/app/routes/user.email._index/route.tsx @@ -212,7 +212,11 @@ export default function () {

Note that your preferenes here do not affect prior subscriptions on the old web site,{' '} - + https://gcn.gsfc.nasa.gov/ . To change your GCN Classic Notice subscriptions, please{' '} diff --git a/app/routes/user.endorsements/route.tsx b/app/routes/user.endorsements/route.tsx index 1a7515d55..ccf5dcb21 100644 --- a/app/routes/user.endorsements/route.tsx +++ b/app/routes/user.endorsements/route.tsx @@ -129,7 +129,11 @@ export default function () {

Peer endorsements (inspired by{' '} - + arXiv ) help us to grow the GCN community sustainably while protecting the diff --git a/package.json b/package.json index cdbddbb78..fd85c58be 100644 --- a/package.json +++ b/package.json @@ -193,6 +193,12 @@ "children": "never", "propElementValues": "always" } + ], + "react/jsx-no-target-blank": [ + "error", + { + "allowReferrer": true + } ] }, "overrides": [