feat: add public pgp key

This commit is contained in:
Alexander Daichendt 2022-07-29 23:02:56 +02:00
parent ef0fac10b6
commit ca5aefc244
3 changed files with 65 additions and 9 deletions

View file

@ -4,21 +4,23 @@
import Icon from 'mdi-svelte';
export let href: string;
export let disableIcon = false;
export let disablePrefetch = false;
// svelte-ignore unused-export-let
export let rel = '';
const internal = !href.startsWith('http');
let spin = false;
// external props
let props: Record<string,string|boolean> = {
rel: "nofollow noreferrer noopener",
target: "_blank"
}
if(internal) {
if (internal) {
// internal props
props = {
"sveltekit:prefetch": true
if (!disablePrefetch ){
props = {
"sveltekit:prefetch": true
}
}
}
</script>
@ -27,9 +29,6 @@
{...$$props}
{...props}
{href}
on:mouseover={() => (spin = true)}
on:focus={() => (spin = true)}
on:mouseleave={() => (spin = false)}
>
{#if !disableIcon && !internal}
<Icon path={internal ? mdiChevronRight : mdiLinkVariant} size="1rem" />