Skip to content

Commit

Permalink
Merge branch 'RobertBoes-patch-1'
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexVanderbist committed Feb 1, 2024
2 parents d34740b + d82a2aa commit 93f4515
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 7 deletions.
1 change: 1 addition & 0 deletions resources/js/components/AppDebugWarning.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export default function AppDebugWarning() {
<a
className="mt-1.5 underline inline-flex items-center gap-2"
target="_blank"
rel="noopener noreferrer"
href="https://flareapp.io/docs/ignition-for-laravel/security"
>
<FontAwesomeIcon icon={faShieldAlt} className="text-sm opacity-50" />
Expand Down
24 changes: 19 additions & 5 deletions resources/js/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,30 @@ export default function Footer() {
</li>
<li>·</li>
<li>
<a href="https://github.com/spatie/laravel-ignition" target="_blank"
className="hover:text-red-500">Source</a>
<a
href="https://github.com/spatie/laravel-ignition"
target="_blank"
rel="noopener noreferrer"
className="hover:text-red-500"
>Source</a>
</li>
<li>·</li>
<li>
<a href="https://flareapp.io/docs/ignition/introducing-ignition/overview" target="_blank"
className="hover:text-red-500">Docs</a>
<a
href="https://flareapp.io/docs/ignition/introducing-ignition/overview"
target="_blank"
rel="noopener noreferrer"
className="hover:text-red-500"
>Docs</a>
</li>
<li>·</li>
<li>
<a href="https://laravel.com" target="_blank" className="hover:text-red-500">Laravel</a>
<a
href="https://laravel.com"
target="_blank"
rel="noopener noreferrer"
className="hover:text-red-500"
>Laravel</a>
</li>
</ul>
<div className="text-sm flex items-center">
Expand All @@ -30,6 +43,7 @@ export default function Footer() {
<a
href="https://flareapp.io/?utm_campaign=ignition&utm_source=ignition"
target="_blank"
rel="noopener noreferrer"
className="font-medium hover:text-purple-500"
>
<FlareIcon className={"inline-block -mt-1 ml-1 mr-px"}/>
Expand Down
7 changes: 6 additions & 1 deletion resources/js/components/NavBarItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,12 @@ export default function NavBarItem({

return (
<li ref={navRef}>
<a href={href || `#${name}`} target={href ? '_blank' : '_self'} onClick={onClickHandler}>
<a
href={href || `#${name}`}
target={href ? '_blank' : '_self'}
onClick={onClickHandler}
rel={href ? 'noopener noreferrer' : ''}
>
<button
className={`
group px-3 sm:px-5 h-10 uppercase tracking-wider text-xs font-medium
Expand Down
1 change: 1 addition & 0 deletions resources/js/components/SettingsDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ export default function SettingsDropdown({ isOpen }: Props) {
className="text-xs ~text-gray-500 hover:text-red-500 flex items-center underline transition-colors"
href="https://flareapp.io/ignition?utm_campaign=ignition&utm_source=ignition"
target="_blank"
rel="noopener noreferrer"
>
Docs
<IgnitionIcon />
Expand Down
3 changes: 2 additions & 1 deletion resources/js/components/ShareDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default function ShareDropdown({ isOpen }: Props) {
try {
const response = await shareClient(igniteData, selectedSectionNames);

window.open(response.owner_url);
window.open(response.owner_url, '_blank', 'noopener,noreferrer');

setPublicUrl(response.public_url);
} catch (e) {
Expand All @@ -78,6 +78,7 @@ export default function ShareDropdown({ isOpen }: Props) {
className="text-xs ~text-gray-500 hover:text-violet-500 flex items-center underline transition-colors"
href="https://flareapp.io/docs/ignition/introducing-ignition/sharing-errors?utm_campaign=ignition&utm_source=ignition"
target="_blank"
rel="noopener noreferrer"
>
Docs
<FlareIcon />
Expand Down
1 change: 1 addition & 0 deletions resources/js/components/ui/CopyableUrl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export default function CopyableUrl({url, openText, helpText}: Props) {
<a
href={url}
target="_blank"
rel="noopener noreferrer"
className="underline ~text-violet-500 hover:~text-violet-600"
>
<FontAwesomeIcon icon={faExternalLinkAlt} className="opacity-50 text-xs mr-1"/>
Expand Down

0 comments on commit 93f4515

Please sign in to comment.