2023-10-23 23:33:39 +02:00
|
|
|
import { channelExample } from "../channels/channel"
|
|
|
|
import { memberExampleComplete } from "../members/member"
|
2022-01-01 20:42:25 +01:00
|
|
|
|
|
|
|
export const messageExample = {
|
|
|
|
id: 1,
|
2023-10-23 23:33:39 +02:00
|
|
|
value: "Hello, world!",
|
|
|
|
type: "text" as "text" | "file",
|
|
|
|
mimetype: "text/plain",
|
2022-01-01 20:42:25 +01:00
|
|
|
memberId: memberExampleComplete.id,
|
|
|
|
channelId: channelExample.id,
|
|
|
|
createdAt: new Date().toISOString(),
|
2023-10-23 23:33:39 +02:00
|
|
|
updatedAt: new Date().toISOString(),
|
2022-01-01 20:42:25 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
export const messageExampleComplete = {
|
|
|
|
...messageExample,
|
2023-10-23 23:33:39 +02:00
|
|
|
member: memberExampleComplete,
|
2022-01-01 20:42:25 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
export const messageExampleComplete2 = {
|
2022-01-07 21:21:38 +01:00
|
|
|
...messageExampleComplete,
|
2022-01-01 20:42:25 +01:00
|
|
|
id: 2,
|
2023-10-23 23:33:39 +02:00
|
|
|
value: 'Message with bad html: <script>alert("xss")</script>',
|
2022-01-07 21:21:38 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
export const messageExampleComplete3 = {
|
|
|
|
...messageExampleComplete,
|
|
|
|
id: 3,
|
|
|
|
value:
|
2023-10-23 23:33:39 +02:00
|
|
|
"Message with **bold text** and *italic text*.\nNewlines and some emoji: :smile:",
|
2022-01-07 21:21:38 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
export const messageExampleComplete4 = {
|
|
|
|
...messageExampleComplete,
|
|
|
|
id: 4,
|
|
|
|
value: `The Quadratic Formula:
|
|
|
|
|
|
|
|
**Theorem 1**: $(a, b, c) \\in \\mathbb{R}^3$, the solutions of $ax^2 + bx + c = 0$ are:
|
|
|
|
|
|
|
|
$x = \\frac{-b \\pm \\sqrt{b^2 - 4ac}}{2a}$
|
2023-10-23 23:33:39 +02:00
|
|
|
`,
|
2022-01-07 21:21:38 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
export const messageExampleComplete5 = {
|
|
|
|
...messageExampleComplete,
|
|
|
|
id: 5,
|
2023-10-23 23:33:39 +02:00
|
|
|
value: ":wave:",
|
2022-01-07 21:21:38 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
export const messageExampleComplete6 = {
|
|
|
|
...messageExampleComplete,
|
|
|
|
id: 6,
|
2023-10-23 23:33:39 +02:00
|
|
|
value: "/uploads/messages/image.png",
|
|
|
|
type: "file",
|
|
|
|
mimetype: "image/png",
|
2022-01-07 21:21:38 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
export const messageExampleComplete7 = {
|
|
|
|
...messageExampleComplete,
|
|
|
|
id: 7,
|
2023-10-23 23:33:39 +02:00
|
|
|
value: "/uploads/messages/audio.mp3",
|
|
|
|
type: "file",
|
|
|
|
mimetype: "audio/mp3",
|
2022-01-07 21:21:38 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
export const messageExampleComplete8 = {
|
|
|
|
...messageExampleComplete,
|
|
|
|
id: 8,
|
2023-10-23 23:33:39 +02:00
|
|
|
value: "/uploads/messages/video.mp4",
|
|
|
|
type: "file",
|
|
|
|
mimetype: "video/mp4",
|
2022-01-07 21:21:38 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
export const messageExampleComplete9 = {
|
|
|
|
...messageExampleComplete,
|
|
|
|
id: 9,
|
2023-10-23 23:33:39 +02:00
|
|
|
value: "/uploads/messages/download.zip",
|
|
|
|
type: "file",
|
|
|
|
mimetype: "application/zip",
|
2022-01-01 20:42:25 +01:00
|
|
|
}
|