diff --git a/app.vue b/app.vue
index ffdb884..f606843 100644
--- a/app.vue
+++ b/app.vue
@@ -9,17 +9,17 @@
const banner = useState("banner", () => false);
-let currentTheme = "dark" // default theme
-const savedTheme = localStorage.getItem("selectedTheme");
-if (savedTheme) {
- currentTheme = savedTheme;
+let current_theme = "dark" // default theme
+const saved_theme = localStorage.getItem("selectedTheme");
+if (saved_theme) {
+ current_theme = saved_theme;
}
useHead({
link: [
{
rel: "stylesheet",
- href: `/themes/${currentTheme}.css`
+ href: `/themes/${current_theme}.css`
}
]
})
diff --git a/components/MemberEntry.vue b/components/MemberEntry.vue
deleted file mode 100644
index 3eed3c5..0000000
--- a/components/MemberEntry.vue
+++ /dev/null
@@ -1,40 +0,0 @@
-
-
-
![]()
-
-
{{ props.member.user.display_name ?? props.member.user.username }}
-
-
-
-
-
-
-
diff --git a/components/Message.vue b/components/Message.vue
index e8a91b5..e8bb600 100644
--- a/components/Message.vue
+++ b/components/Message.vue
@@ -10,8 +10,6 @@
{{ username }}
- Yesterday at
- {{ date.toLocaleDateString(undefined) }},
{{ date.toLocaleTimeString(undefined, { timeStyle: "short" }) }}
@@ -51,7 +49,6 @@ const messageElement = ref();
const dateHidden = ref(true);
const date = new Date(props.timestamp);
-const currentDate: Date = new Date()
console.log("message:", props.text);
console.log("author:", props.username);
@@ -77,17 +74,6 @@ onMounted(async () => {
// showHover.value = !showHover.value;
//}
-function getDayDifference(date1: Date, date2: Date) {
- const midnight1 = new Date(date1.getFullYear(), date1.getMonth(), date1.getDate());
- const midnight2 = new Date(date2.getFullYear(), date2.getMonth(), date2.getDate());
-
- const timeDifference = midnight2.getTime() - midnight1.getTime();
-
- const dayDifference = timeDifference / (1000 * 60 * 60 * 24);
-
- return Math.round(dayDifference);
-}
-
\ No newline at end of file
diff --git a/components/UserArea.vue b/components/UserArea.vue
deleted file mode 100644
index d922c3f..0000000
--- a/components/UserArea.vue
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
- HELLO!!
-
-
-
-
-
-
\ No newline at end of file
diff --git a/components/UserPopup.vue b/components/UserPopup.vue
index 3a65cf0..b27ecea 100644
--- a/components/UserPopup.vue
+++ b/components/UserPopup.vue
@@ -1,8 +1,6 @@
@@ -81,7 +78,7 @@ const guilds: GuildResponse[] | undefined = await fetchWithApi("/me/guilds");
padding-right: .5dvw;
}
-.sidebar-icon {
+.server-icon {
width: 3rem;
height: 3rem;
}
@@ -113,11 +110,6 @@ const guilds: GuildResponse[] | undefined = await fetchWithApi("/me/guilds");
padding-bottom: 1dvh;
}
-#settings-menu {
- position: absolute;
- bottom: .25dvh
-}
-
#servers-list {
display: flex;
flex-direction: column;
diff --git a/pages/servers/[serverId]/channels/[channelId].vue b/pages/servers/[serverId]/channels/[channelId].vue
index 699b9a3..f0e3e08 100644
--- a/pages/servers/[serverId]/channels/[channelId].vue
+++ b/pages/servers/[serverId]/channels/[channelId].vue
@@ -26,7 +26,11 @@
-
+
+
![]()
+
+
{{ member.user.display_name ?? member.user.username }}
+
@@ -46,8 +50,7 @@ const channel = ref();
const showInvitePopup = ref(false);
-import UserPopup from "~/components/UserPopup.vue";
-import type { ChannelResponse, GuildMemberResponse, GuildResponse, MessageResponse } from "~/types/interfaces";
+import type { ChannelResponse, GuildResponse, MessageResponse } from "~/types/interfaces";
//const servers = await fetchWithApi("/servers") as { uuid: string, name: string, description: string }[];
//console.log("channelid: servers:", servers);
@@ -75,9 +78,6 @@ function toggleInvitePopup(e: Event) {
e.preventDefault();
showInvitePopup.value = !showInvitePopup.value;
}
-
-function handleMemberClick(member: GuildMemberResponse) {
-}