From edcc3efe1d971923215a5946e9d76fea168413af Mon Sep 17 00:00:00 2001
From: dragongoose <19649813+dragongoose@users.noreply.github.com>
Date: Fri, 24 Mar 2023 18:48:45 -0400
Subject: [PATCH] Fix frontend for seperate backend, and make preferences page
---
.env | 2 +
env.d.ts | 10 ++++
package.json | 3 +-
src/components/ErrorMessage.vue | 40 +++++++++++++
src/components/TwitchChat.vue | 4 +-
src/router/index.ts | 7 ++-
src/views/CategoryView.vue | 102 +++++++++++++++++---------------
src/views/HomepageView.vue | 49 ++++++++-------
src/views/PreferencesView.vue | 69 +++++++++++++++++++++
src/views/UserView.vue | 40 ++++---------
tailwind.config.js | 5 +-
11 files changed, 230 insertions(+), 101 deletions(-)
create mode 100644 .env
create mode 100644 src/components/ErrorMessage.vue
create mode 100644 src/views/PreferencesView.vue
diff --git a/.env b/.env
new file mode 100644
index 0000000..694ad76
--- /dev/null
+++ b/.env
@@ -0,0 +1,2 @@
+VITE_BACKEND_URL=http://localhost:7000
+VITE_INSTANCE_URL=http://localhost:5173
\ No newline at end of file
diff --git a/env.d.ts b/env.d.ts
index 11f02fe..5a8edb6 100644
--- a/env.d.ts
+++ b/env.d.ts
@@ -1 +1,11 @@
/// this wasn't supposed to happen
+ the server was encountered an error while retriving the data, and now we're here :3
+ please contact the administrator with this code error identifier: {{ errorMessage.code }}oops...
+
Connecting to {{ channelName }}.
++ Connecting to {{ channelName }}. +
Appearance
+Content
++ Note: Settings, follows, and any other persistent data + is stored with cookies. +
+ +