Remove missing href warnings
This commit is contained in:
parent
c98d83c2ef
commit
2608ad32e6
|
@ -62,10 +62,10 @@
|
||||||
{#if apiKey}
|
{#if apiKey}
|
||||||
<article class="message is-info">
|
<article class="message is-info">
|
||||||
<div class="message-body">
|
<div class="message-body">
|
||||||
<!-- svelte-ignore a11y-missing-attribute a11y-click-events-have-key-events -->
|
|
||||||
Select an existing chat on the sidebar, or
|
Select an existing chat on the sidebar, or
|
||||||
<a
|
<a
|
||||||
on:click={() => {
|
href={"#"}
|
||||||
|
on:click|preventDefault={() => {
|
||||||
activeChatId = addChat();
|
activeChatId = addChat();
|
||||||
}}>create a new chat</a
|
}}>create a new chat</a
|
||||||
>
|
>
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
export let apiKey: string;
|
export let apiKey: string;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<!-- svelte-ignore a11y-missing-attribute a11y-click-events-have-key-events -->
|
|
||||||
<aside class="menu">
|
<aside class="menu">
|
||||||
<p class="menu-label">Chats</p>
|
<p class="menu-label">Chats</p>
|
||||||
<ul class="menu-list">
|
<ul class="menu-list">
|
||||||
|
@ -19,12 +18,14 @@
|
||||||
{#each sortedChats as chat}
|
{#each sortedChats as chat}
|
||||||
<li>
|
<li>
|
||||||
<a
|
<a
|
||||||
|
href={"#"}
|
||||||
class="panel-block {!apiKey
|
class="panel-block {!apiKey
|
||||||
? 'is-disabled'
|
? 'is-disabled'
|
||||||
: ''} {activeChatId === chat.id
|
: ''} {activeChatId === chat.id
|
||||||
? 'has-background-light'
|
? 'has-background-light'
|
||||||
: ''}"
|
: ''}"
|
||||||
on:click={() => (activeChatId = chat.id)}>Chat {chat.id}</a
|
on:click|preventDefault={() => (activeChatId = chat.id)}
|
||||||
|
>Chat {chat.id}</a
|
||||||
>
|
>
|
||||||
</li>
|
</li>
|
||||||
{/each}
|
{/each}
|
||||||
|
@ -36,26 +37,29 @@
|
||||||
<ul class="menu-list">
|
<ul class="menu-list">
|
||||||
<li>
|
<li>
|
||||||
<a
|
<a
|
||||||
|
href={"#"}
|
||||||
class="panel-block {!apiKey ? 'is-disabled' : ''} {activeChatId
|
class="panel-block {!apiKey ? 'is-disabled' : ''} {activeChatId
|
||||||
? ''
|
? ''
|
||||||
: 'has-background-light'}"
|
: 'has-background-light'}"
|
||||||
on:click={() => {
|
on:click|preventDefault={() => {
|
||||||
activeChatId = null;
|
activeChatId = null;
|
||||||
}}><span class="greyscale mr-2">🔑</span> API key</a
|
}}><span class="greyscale mr-2">🔑</span> API key</a
|
||||||
>
|
>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a
|
<a
|
||||||
|
href={"#"}
|
||||||
class="panel-block {!apiKey ? 'is-disabled' : ''}"
|
class="panel-block {!apiKey ? 'is-disabled' : ''}"
|
||||||
on:click={() => {
|
on:click|preventDefault={() => {
|
||||||
activeChatId = addChat();
|
activeChatId = addChat();
|
||||||
}}><span class="greyscale mr-2">➕</span> New chat</a
|
}}><span class="greyscale mr-2">➕</span> New chat</a
|
||||||
>
|
>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a
|
<a
|
||||||
|
href={"#"}
|
||||||
class="panel-block {!apiKey ? 'is-disabled' : ''}"
|
class="panel-block {!apiKey ? 'is-disabled' : ''}"
|
||||||
on:click={() => {
|
on:click|preventDefault={() => {
|
||||||
clearChats();
|
clearChats();
|
||||||
activeChatId = null;
|
activeChatId = null;
|
||||||
}}><span class="greyscale mr-2">🗑️</span> Clear chats</a
|
}}><span class="greyscale mr-2">🗑️</span> Clear chats</a
|
||||||
|
|
Loading…
Reference in New Issue