🆙 Init V3

This commit is contained in:
DuckieTM
2026-01-31 09:10:52 +01:00
commit 7feb10ab15
1733 changed files with 53405 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
export class ChatEntryType
{
public static TYPE_CHAT = 1;
public static TYPE_ROOM_INFO = 2;
public static TYPE_IM = 3;
}
@@ -0,0 +1,6 @@
export const ChatHistoryCurrentDate = () =>
{
const currentTime = new Date();
return `${ currentTime.getHours().toString().padStart(2, '0') }:${ currentTime.getMinutes().toString().padStart(2, '0') }`;
};
+17
View File
@@ -0,0 +1,17 @@
export interface IChatEntry
{
id: number;
webId: number;
entityId: number;
name: string;
look?: string;
message?: string;
entityType?: number;
style?: number;
chatType?: number;
imageUrl?: string;
color?: string;
roomId: number;
timestamp: string;
type: number;
}
@@ -0,0 +1,5 @@
export interface IRoomHistoryEntry
{
id: number;
name: string;
}
@@ -0,0 +1,6 @@
export const MessengerHistoryCurrentDate = (secondsSinceNow: number = 0) =>
{
const currentTime = secondsSinceNow ? new Date(Date.now() - secondsSinceNow * 1000) : new Date();
return `${ currentTime.getHours().toString().padStart(2, '0') }:${ currentTime.getMinutes().toString().padStart(2, '0') }`;
};
+5
View File
@@ -0,0 +1,5 @@
export * from './ChatEntryType';
export * from './ChatHistoryCurrentDate';
export * from './IChatEntry';
export * from './IRoomHistoryEntry';
export * from './MessengerHistoryCurrentDate';