Skip to content

Commit 180ca72

Browse files
committed
update anchor links
1 parent 9ab7c6f commit 180ca72

File tree

14 files changed

+34
-14
lines changed

14 files changed

+34
-14
lines changed

src/containers/Editor/components/BottomBar.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,11 @@ export const BottomBar = () => {
145145

146146
<StyledRight>
147147
<StyledBottomBarItem>Nodes: {nodeCount}</StyledBottomBarItem>
148-
<Link href="https://github.com/AykutSarac/jsoncrack.com/discussions" target="_blank">
148+
<Link
149+
href="https://github.com/AykutSarac/jsoncrack.com/discussions"
150+
target="_blank"
151+
rel="noopener"
152+
>
149153
<StyledBottomBarItem>
150154
<VscFeedback />
151155
Feedback

src/containers/Editor/components/views/GraphView/CustomNode/TextRenderer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const isURL = (word: string) => {
2020
const Linkify = (text: string) => {
2121
const addMarkup = (word: string) => {
2222
return isURL(word)
23-
? `<a onclick="event.stopPropagation()" href="${word}" style="text-decoration: underline; pointer-events: all;" target="_blank" rel="noreferrer">${word}</a>`
23+
? `<a onclick="event.stopPropagation()" href="${word}" style="text-decoration: underline; pointer-events: all;" target="_blank" rel="noopener noreferrer">${word}</a>`
2424
: word;
2525
};
2626

src/containers/Editor/components/views/GraphView/NotSupported.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ export const NotSupported = () => {
166166
<StyledInfo>
167167
Use ToDiagram for larger data size, faster performance, and more features.
168168
</StyledInfo>
169-
<Link href="https://todiagram.com" target="_blank" passHref>
169+
<Link href="https://todiagram.com" target="_blank" passHref rel="noopener">
170170
<Button
171171
mt="lg"
172172
size="lg"

src/containers/Landing/HeroSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export const HeroSection = () => {
104104
<StyledHeroSection>
105105
<StyledHeroSectionBody>
106106
<Stack flex="1" miw={250} mx="auto" align="center">
107-
<Link href="https://todiagram.com?ref=jsoncrack.com">
107+
<Link href="https://todiagram.com?ref=jsoncrack.com" rel="noopener">
108108
<Flex justify="center" fz="sm" c="gray.8" gap="8" align="center">
109109
built by
110110
<Image src="/assets/todiagram_logo.png" alt="Todiagram Logo" h={14} loading="eager" />

src/containers/Landing/LovedBy.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const Featured = ({ stars }: LovedByProps) => {
2727
<StyledFeaturedItem
2828
href="https://github.com/AykutSarac/jsoncrack.com"
2929
target="_blank"
30-
rel="noreferrer"
30+
rel="noopener"
3131
>
3232
<FaGithub color="black" size={28} />
3333
<Text fz="md" fw={600} c="gray.8">
@@ -38,7 +38,7 @@ const Featured = ({ stars }: LovedByProps) => {
3838
<StyledFeaturedItem
3939
href="https://news.ycombinator.com/item?id=32626873"
4040
target="_blank"
41-
rel="noreferrer"
41+
rel="noopener"
4242
>
4343
<FaHackerNews color="#FF6600" size={28} />
4444
<Text fz="md" fw={600} c="gray.8">
@@ -48,7 +48,7 @@ const Featured = ({ stars }: LovedByProps) => {
4848
<StyledFeaturedItem
4949
href="https://www.producthunt.com/products/JSON-Crack"
5050
target="_blank"
51-
rel="noreferrer"
51+
rel="noopener"
5252
>
5353
<FaProductHunt color="#DA552F" size={28} />
5454
<Text fz="md" fw={600} c="gray.8">
@@ -68,9 +68,9 @@ export const LovedBy = ({ stars }: LovedByProps) => {
6868
component="a"
6969
href="https://twitter.com/intent/post?text=Looking%20to%20understand%20or%20explore%20some%20JSON%3F%20Just%20paste%20or%20upload%20to%20visualize%20it%20as%20a%20graph%20with%20https%3A%2F%2Fjsoncrack.com%20%F0%9F%98%8D%20"
7070
target="_blank"
71-
rel="noreferrer"
7271
color="black"
7372
leftSection={<FaXTwitter />}
73+
rel="noopener"
7474
>
7575
Share on X
7676
</Button>
@@ -80,6 +80,7 @@ export const LovedBy = ({ stars }: LovedByProps) => {
8080
target="_blank"
8181
color="#0077B5"
8282
leftSection={<FaLinkedin />}
83+
rel="noopener"
8384
>
8485
Share on LinkedIn
8586
</Button>

src/containers/Landing/SeePremium.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ export const SeePremium = () => {
6464
mt="xl"
6565
rightSection={<FaArrowRightLong />}
6666
radius="xl"
67+
rel="noopener"
6768
>
6869
See more
6970
</Button>

src/containers/Modals/JPathModal/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export const JPathModal = ({ opened, onClose }: ModalProps) => {
3838
fz="sm"
3939
target="_blank"
4040
href="https://docs.oracle.com/cd/E60058_01/PDF/8.0.8.x/8.0.8.0.0/PMF_HTML/JsonPath_Expressions.htm"
41+
rel="noopener noreferrer"
4142
>
4243
Read documentation. <VscLinkExternal />
4344
</Anchor>

src/containers/Modals/JQModal/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const JQModal = ({ opened, onClose }: ModalProps) => {
1919
fz="sm"
2020
target="_blank"
2121
href="https://jqlang.github.io/jq/manual/"
22-
rel="noreferrer"
22+
rel="noopener noreferrer"
2323
>
2424
Read documentation. <VscLinkExternal />
2525
</Anchor>

src/containers/Modals/SchemaModal/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export const SchemaModal = ({ opened, onClose }: ModalProps) => {
7676
fz="sm"
7777
target="_blank"
7878
href="https://niem.github.io/json/sample-schema/"
79-
rel="noreferrer"
79+
rel="noopener noreferrer"
8080
>
8181
View Examples <VscLinkExternal />
8282
</Anchor>

src/containers/Modals/UpgradeModal/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export const UpgradeModal = ({ opened, onClose }: ModalProps) => {
5858
<List.Item>Tabs for multiple documents</List.Item>
5959
<List.Item>...faster, and more</List.Item>
6060
</List>
61-
<Link href="https://todiagram.com" target="_blank" passHref>
61+
<Link href="https://todiagram.com" target="_blank" passHref rel="noopener">
6262
<Button
6363
color="green"
6464
fullWidth

0 commit comments

Comments
 (0)