Skip to content

Commit

Permalink
Open external links in new tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
dokempf committed Oct 8, 2024
1 parent 2fa1528 commit cff9160
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/components/fields/CustomDataTypeGND.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<span class="easydb-custom-gnd">
{fdata.conceptName}
<A href={fdata.conceptURI}>
<A href={fdata.conceptURI} target="_blank" rel="noopener noreferrer">
<ArrowUpRightFromSquareOutline class="w-4 h-4"/>
</A>
</span>
2 changes: 1 addition & 1 deletion src/components/fields/CustomDataTypeGazetteer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@


{fdata.displayName} {detailString()}
<A href={"https://gazetteer.dainst.org/app/#!/show/" + fdata.gazId}>
<A href={"https://gazetteer.dainst.org/app/#!/show/" + fdata.gazId} target="_blank" rel="noopener noreferrer">
<ArrowUpRightFromSquareOutline class="w-4 h-4"/>
</A>
2 changes: 1 addition & 1 deletion src/components/fields/CustomDataTypeGeonames.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
</script>

{fdata.conceptName}
<A href={fdata.conceptURI}>
<A href={fdata.conceptURI} target="_blank" rel="noopener noreferrer">
<ArrowUpRightFromSquareOutline class="w-4 h-4"/>
</A>
6 changes: 5 additions & 1 deletion src/components/fields/CustomDataTypeGeoref.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@
import { A } from "flowbite-svelte";
</script>

MapBox visualization is not implemented in this viewer. Look at it in the <A href="{$easydbInstanceStore}/#/details/{$systemidStore.at(-1)}">EasyDB instance</A> instead.
MapBox visualization is not implemented in this viewer. Look at it in the
<A href="{$easydbInstanceStore}/#/details/{$systemidStore.at(-1)}" target="_blank" rel="noopener noreferrer">
EasyDB instance
</A>
instead.
2 changes: 1 addition & 1 deletion src/components/fields/CustomDataTypeGetty.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<span class="easydb-custom-getty">
{fdata.conceptName}
<A href={fdata.conceptURI}>
<A href={fdata.conceptURI} target="_blank" rel="noopener noreferrer">
<ArrowUpRightFromSquareOutline class="w-4 h-4"/>
</A>
</span>
Expand Down
4 changes: 3 additions & 1 deletion src/components/fields/CustomDataTypeLink.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,6 @@
}
</script>

<A href={fdata.url}>{findText()}</A>
<A href={fdata.url} target="_blank" rel="noopener noreferrer">
{findText()}
</A>
2 changes: 1 addition & 1 deletion src/components/fields/CustomDataTypeUBHDGND.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

<span class="easydb-custom-ubhdgnd">
{fdata.conceptName}{detailString(fdata.conceptDetails)}
<A href={fdata.conceptURI}>
<A href={fdata.conceptURI} target="_blank" rel="noopener noreferrer">
<ArrowUpRightFromSquareOutline class="w-4 h-4"/>
</A>
</span>
6 changes: 5 additions & 1 deletion src/components/splitter/DetailLinkedSplitter.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@
import { A } from "flowbite-svelte";
</script>

Omitting linked objects in this viewer. Look at it in the <A href="{$easydbInstanceStore}/#/details/{$systemidStore.at(-1)}">EasyDB instance</A> instead.
Omitting linked objects in this viewer. Look at it in the
<A href="{$easydbInstanceStore}/#/details/{$systemidStore.at(-1)}" target="_blank" rel="noopener noreferrer">
EasyDB instance
</A>
instead.

0 comments on commit cff9160

Please sign in to comment.