Merge branch 'guild-settings' into guild-joining
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful

This commit is contained in:
SauceyRed 2025-07-13 01:44:43 +02:00
commit cf32b62ae7
Signed by: sauceyred
GPG key ID: 270B096EF6E9A462
67 changed files with 2621 additions and 255 deletions

7
types/hooks.ts Normal file
View file

@ -0,0 +1,7 @@
import type { RuntimeNuxtHooks } from 'nuxt/schema';
declare module "nuxt/schema" {
interface RuntimeNuxtHooks {
"app:message:right-clicked": (payload: { messageId: string }) => void
}
}

View file

@ -44,7 +44,8 @@ export interface MessageResponse {
channel_uuid: string,
user_uuid: string,
message: string,
user: UserResponse
reply_to: string | null,
user: UserResponse,
}
export interface InviteResponse {
@ -58,9 +59,12 @@ export interface UserResponse {
username: string,
display_name: string | null,
avatar: string | null,
pronouns: string | null,
about: string | null,
email?: string,
email_verified?: boolean
}
email_verified?: boolean,
friends_since: string | null,
}
export interface StatsResponse {
accounts: number,
@ -94,3 +98,8 @@ export interface ModalProps {
onClose?: () => void,
onCancel?: () => void
}
export interface ContextMenuItem {
name: string,
callback: (...args: any[]) => any;
}

20
types/props.ts Normal file
View file

@ -0,0 +1,20 @@
import type { MessageResponse, UserResponse } from "./interfaces";
export interface MessageProps {
class?: string,
img?: string | null,
author?: UserResponse
text: string,
timestamp: number,
format: "12" | "24",
type: "normal" | "grouped",
marginBottom: boolean,
last: boolean,
messageId: string,
replyingTo?: boolean,
editing?: boolean,
me: UserResponse
message: MessageResponse,
replyMessage?: MessageResponse
isMentioned?: boolean,
}

9
types/settings.ts Normal file
View file

@ -0,0 +1,9 @@
export interface ClientSettings {
selectedThemeId?: string, // the ID of the theme, not the URL, for example "dark"
timeFormat?: TimeFormat
}
export interface TimeFormat {
index: number,
format: "auto" | "12" | "24"
}