-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
diff --git a/pages/index.vue b/pages/index.vue
index cb5f57e..30e0793 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -1,18 +1,4 @@
-
-
-
-
-
-
-
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/pages/me/[userId].vue b/pages/me/[userId].vue
index 209ffab..650e14f 100644
--- a/pages/me/[userId].vue
+++ b/pages/me/[userId].vue
@@ -8,6 +8,14 @@
\ No newline at end of file
diff --git a/public/themes/layout/gorb.css b/public/themes/layout/gorb.css
index 1cee0b4..37b5834 100644
--- a/public/themes/layout/gorb.css
+++ b/public/themes/layout/gorb.css
@@ -8,8 +8,11 @@ complementaryColor = white
--sidebar-icon-width: 2.5em;
--sidebar-icon-gap: .25em;
--sidebar-margin: .5em;
+
+ --navbar-height: 5dvh;
+ --navbar-icon-size: 3dvh;
+ --navbar-gap: calc(3dvh * .2);
- --minor-radius: .35em;
--standard-radius: .5em;
--button-radius: .6em;
--guild-icon-radius: 15%;
diff --git a/public/themes/style/ash.css b/public/themes/style/ash.css
index e33fbf6..495fa15 100644
--- a/public/themes/style/ash.css
+++ b/public/themes/style/ash.css
@@ -10,15 +10,15 @@ complementaryColor = white
--reply-text-color: #969696;
--danger-text-color: #ff0000;
- --chat-background-color: #383432;
- --chat-highlighted-background-color: #4c4a48;
+ --chat-background-color: #2f2e2d;
+ --chat-highlighted-background-color: #3f3b38;
--chat-important-background-color: #ffcf5f38;
--chat-important-highlighted-background-color: #ffa86f4f;
--chat-featured-message-color: #4f3f2f60;
--popup-background-color: #2f2828;
--popup-highlighted-background-color: #382f2f;
- --sidebar-background-color: #322f2d;
+ --sidebar-background-color: #3e3a37;
--sidebar-highlighted-background-color: #46423b;
--topbar-background-color: #3a3733;
--chatbox-background-color: #3a3733;
diff --git a/public/themes/style/dark.css b/public/themes/style/dark.css
index 420e8c9..d23ed76 100644
--- a/public/themes/style/dark.css
+++ b/public/themes/style/dark.css
@@ -10,16 +10,16 @@ complementaryColor = white
--reply-text-color: #969696;
--danger-text-color: #ff0000;
- --chat-background-color: #282624;
- --chat-highlighted-background-color: #383430;
+ --chat-background-color: #1f1e1d;
+ --chat-highlighted-background-color: #2f2b28;
--chat-important-background-color: #ffc44f2f;
--chat-important-highlighted-background-color: #ffa45f4a;
--chat-featured-message-color: #4f2f1f58;
--popup-background-color: #2f1f1f;
--popup-highlighted-background-color: #3f2f2f;
- --sidebar-background-color: #1f1e1d;
- --sidebar-highlighted-background-color: #2f2b28;
+ --sidebar-background-color: #2e2a27;
+ --sidebar-highlighted-background-color: #36322b;
--topbar-background-color: #2a2723;
--chatbox-background-color: #1a1713;
diff --git a/public/themes/style/light.css b/public/themes/style/light.css
index cd1f55b..78bf2f9 100644
--- a/public/themes/style/light.css
+++ b/public/themes/style/light.css
@@ -10,13 +10,13 @@ complementaryColor = black
--reply-text-color: #969696;
--danger-text-color: #ff0000;
- --chat-background-color: #f0edeb;
- --chat-highlighted-background-color: #aba8a4;
+ --chat-background-color: #f0ebe8;
+ --chat-highlighted-background-color: #e8e4e0;
--chat-important-background-color: #df5f0b26;
--chat-important-hightlighted-background-color: #df5f0b3d;
--chat-featured-message-color: #e8ac841f;
- --popup-background-color: #b8b4b0;
- --popup-highlighted-background-color: #a6a4a2;
+ --popup-background-color: #e8e4e0;
+ --popup-highlighted-background-color: #dfdbd6;
--sidebar-background-color: #dbd8d4;
--sidebar-highlighted-background-color: #d4d0ca;
diff --git a/types/interfaces.ts b/types/interfaces.ts
index d175d76..bb6489b 100644
--- a/types/interfaces.ts
+++ b/types/interfaces.ts
@@ -121,3 +121,22 @@ export interface ContextMenuInterface {
pointerY: number,
items: ContextMenuItem[]
}
+
+export interface NavbarItem {
+ title: string,
+ icon: string,
+ hasPing?: boolean, // whether to draw a "ping" icon or not
+ callback: (...args: any[]) => any;
+}
+
+export interface INavbar {
+ guild: GuildResponse
+ channel: ChannelResponse
+}
+
+export interface NavbarOptions {
+ guild?: GuildResponse
+ channel?: ChannelResponse
+ isDirectMessages?: boolean
+}
+
diff --git a/types/props.ts b/types/props.ts
index 5796d83..f25ae8d 100644
--- a/types/props.ts
+++ b/types/props.ts
@@ -1,9 +1,21 @@
-import type { MessageResponse, UserResponse } from "./interfaces";
+import type { GuildMemberResponse, MessageResponse, UserResponse } from "./interfaces";
export interface MessageProps {
- message: MessageResponse,
- replyMessage?: MessageResponse,
+ class?: string,
+ img?: string | null,
+ author: GuildMemberResponse
+ text: string,
+ timestamp: number,
+ format: "12" | "24",
type: "normal" | "grouped",
+ marginBottom: boolean,
+ authorColor: string,
+ last: boolean,
+ messageId: string,
+ replyingTo?: boolean,
editing?: boolean,
+ me: UserResponse
+ message: MessageResponse,
+ replyMessage?: MessageResponse
isMentioned?: boolean,
}
\ No newline at end of file
diff --git a/utils/replyToMessage.ts b/utils/replyToMessage.ts
index 1ff4df7..83f4eda 100644
--- a/utils/replyToMessage.ts
+++ b/utils/replyToMessage.ts
@@ -9,7 +9,7 @@ export default (element: HTMLDivElement, props: MessageProps) => {
const messageBox = document.getElementById("message-box") as HTMLDivElement;
if (messageBox) {
const div = document.createElement("div");
- const messageReply = h(MessageReply, { author: getDisplayName(props.message.member), text: props.message.message || "", id: props.message.uuid, replyId: props.replyMessage?.uuid || element.dataset.messageId!, maxWidth: "full" });
+ const messageReply = h(MessageReply, { author: getDisplayName(props.author), text: props.text || "", id: props.message.uuid, replyId: props.replyMessage?.uuid || element.dataset.messageId!, maxWidth: "full" });
messageBox.prepend(div);
render(messageReply, div);
const message = document.querySelector(`.message[data-message-id='${props.message.uuid}']`);