Merge branch 'main' into friends-list
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
ci/woodpecker/pr/build-and-publish Pipeline was successful

This commit is contained in:
Twig 2025-07-12 19:27:19 +02:00
commit 457405186a
No known key found for this signature in database
12 changed files with 347 additions and 30 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 {
@ -84,3 +85,8 @@ export interface ScrollPosition {
offsetTop: number,
offsetLeft: number
}
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,
}