From df89356dc05ba596a6f8b75d8c3707cd66136050 Mon Sep 17 00:00:00 2001 From: Webifi Date: Tue, 30 May 2023 17:35:36 -0500 Subject: [PATCH] Begin testing new UI layout --- src/App.svelte | 13 +-- src/app.scss | 164 +++++++++++++++++++++++++++++----- src/lib/Chat.svelte | 18 ++-- src/lib/ChatOptionMenu.svelte | 14 +-- src/lib/Sidebar.svelte | 69 ++++++++------ src/lib/Stats.svelte | 6 +- 6 files changed, 207 insertions(+), 77 deletions(-) diff --git a/src/App.svelte b/src/App.svelte index efe1dcc..87f3965 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -10,13 +10,6 @@ import NewChat from './lib/NewChat.svelte' import { chatsStorage, apiKeyStorage } from './lib/Storage.svelte' - // Check if the API key is passed in as a "key" query parameter - if so, save it - // Example: https://niek.github.io/chatgpt-web/#/?key=sk-... - const urlParams: URLSearchParams = new URLSearchParams($querystring) - if (urlParams.has('key')) { - apiKeyStorage.set(urlParams.get('key') as string) - } - // The definition of the routes with some conditions const routes = { '/': Home, @@ -37,11 +30,11 @@ '*': Home } - document.body.classList.add('has-navbar-fixed-top') + // document.body.classList.add('something') - +
@@ -57,4 +50,4 @@
-