Merge branch 'main' into friends-list
This commit is contained in:
commit
457405186a
12 changed files with 347 additions and 30 deletions
7
types/hooks.ts
Normal file
7
types/hooks.ts
Normal 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
|
||||
}
|
||||
}
|
|
@ -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
20
types/props.ts
Normal 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,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue