lint
This commit is contained in:
parent
4c685e1a1e
commit
a3ae5a3926
|
@ -1,10 +1,10 @@
|
|||
<script lang="ts">
|
||||
import Router, { location, querystring, replace } from 'svelte-spa-router'
|
||||
import Router, { location, replace } from 'svelte-spa-router'
|
||||
import { wrap } from 'svelte-spa-router/wrap'
|
||||
|
||||
import Navbar from './lib/Navbar.svelte'
|
||||
import Sidebar from './lib/Sidebar.svelte'
|
||||
import Footer from './lib/Footer.svelte'
|
||||
// import Footer from './lib/Footer.svelte'
|
||||
import Home from './lib/Home.svelte'
|
||||
import Chat from './lib/Chat.svelte'
|
||||
import NewChat from './lib/NewChat.svelte'
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
import { pinMainMenu } from './Storage.svelte'
|
||||
import logo from '../assets/logo.svg'
|
||||
// import ChatOptionMenu from './ChatOptionMenu.svelte'
|
||||
import Fa from 'svelte-fa/src/fa.svelte';
|
||||
import Fa from 'svelte-fa/src/fa.svelte'
|
||||
import { faBars, faXmark } from '@fortawesome/free-solid-svg-icons/index'
|
||||
|
||||
// $: activeChatId = $params && $params.chatId ? parseInt($params.chatId) : undefined
|
||||
|
@ -14,13 +14,13 @@
|
|||
<div class="navbar-item">
|
||||
|
||||
{#if $pinMainMenu}
|
||||
<button class="button" on:click|stopPropagation={()=>{$pinMainMenu=false}}>
|
||||
<button class="button" on:click|stopPropagation={() => { $pinMainMenu = false }}>
|
||||
<span class="icon">
|
||||
<Fa icon={faXmark} />
|
||||
</span>
|
||||
</button>
|
||||
{:else}
|
||||
<button class="button" on:click|stopPropagation={()=>{$pinMainMenu=true}}>
|
||||
<button class="button" on:click|stopPropagation={() => { $pinMainMenu = true }}>
|
||||
<span class="icon">
|
||||
<Fa icon={faBars} />
|
||||
</span>
|
||||
|
|
|
@ -4,9 +4,9 @@
|
|||
import { apiKeyStorage, chatsStorage, pinMainMenu } from './Storage.svelte'
|
||||
import Fa from 'svelte-fa/src/fa.svelte'
|
||||
import { faSquarePlus, faKey } from '@fortawesome/free-solid-svg-icons/index'
|
||||
import ChatOptionMenu from './ChatOptionMenu.svelte';
|
||||
import ChatOptionMenu from './ChatOptionMenu.svelte'
|
||||
import logo from '../assets/logo.svg'
|
||||
import { clickOutside } from 'svelte-use-click-outside';
|
||||
import { clickOutside } from 'svelte-use-click-outside'
|
||||
|
||||
$: sortedChats = $chatsStorage.sort((a, b) => b.id - a.id)
|
||||
|
||||
|
|
Loading…
Reference in New Issue