sql generator

This commit is contained in:
Jan Prochazka
2021-04-01 08:09:22 +02:00
parent a1993214e2
commit d62177d996
10 changed files with 175 additions and 44 deletions

View File

@@ -1,12 +1,17 @@
<script lang="ts">
import getElectron from '../utility/getElectron';
export let href;
export let href = undefined;
export let onClick = undefined;
const electron = getElectron();
</script>
{#if electron}
{#if onClick}
<a on:click={onClick}>
<slot />
</a>
{:else if electron}
<a on:click={() => electron.shell.openExternal(href)}>
<slot />
</a>