chore: better Prettier config for easier reviews
This commit is contained in:
@ -1,33 +1,33 @@
|
||||
import { channelExample } from '../channels/channel'
|
||||
import { memberExampleComplete } from '../members/member'
|
||||
import { channelExample } from "../channels/channel"
|
||||
import { memberExampleComplete } from "../members/member"
|
||||
|
||||
export const messageExample = {
|
||||
id: 1,
|
||||
value: 'Hello, world!',
|
||||
type: 'text' as 'text' | 'file',
|
||||
mimetype: 'text/plain',
|
||||
value: "Hello, world!",
|
||||
type: "text" as "text" | "file",
|
||||
mimetype: "text/plain",
|
||||
memberId: memberExampleComplete.id,
|
||||
channelId: channelExample.id,
|
||||
createdAt: new Date().toISOString(),
|
||||
updatedAt: new Date().toISOString()
|
||||
updatedAt: new Date().toISOString(),
|
||||
}
|
||||
|
||||
export const messageExampleComplete = {
|
||||
...messageExample,
|
||||
member: memberExampleComplete
|
||||
member: memberExampleComplete,
|
||||
}
|
||||
|
||||
export const messageExampleComplete2 = {
|
||||
...messageExampleComplete,
|
||||
id: 2,
|
||||
value: 'Message with bad html: <script>alert("xss")</script>'
|
||||
value: 'Message with bad html: <script>alert("xss")</script>',
|
||||
}
|
||||
|
||||
export const messageExampleComplete3 = {
|
||||
...messageExampleComplete,
|
||||
id: 3,
|
||||
value:
|
||||
'Message with **bold text** and *italic text*.\nNewlines and some emoji: :smile:'
|
||||
"Message with **bold text** and *italic text*.\nNewlines and some emoji: :smile:",
|
||||
}
|
||||
|
||||
export const messageExampleComplete4 = {
|
||||
@ -38,43 +38,43 @@ export const messageExampleComplete4 = {
|
||||
**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}$
|
||||
`
|
||||
`,
|
||||
}
|
||||
|
||||
export const messageExampleComplete5 = {
|
||||
...messageExampleComplete,
|
||||
id: 5,
|
||||
value: ':wave:'
|
||||
value: ":wave:",
|
||||
}
|
||||
|
||||
export const messageExampleComplete6 = {
|
||||
...messageExampleComplete,
|
||||
id: 6,
|
||||
value: '/uploads/messages/image.png',
|
||||
type: 'file',
|
||||
mimetype: 'image/png'
|
||||
value: "/uploads/messages/image.png",
|
||||
type: "file",
|
||||
mimetype: "image/png",
|
||||
}
|
||||
|
||||
export const messageExampleComplete7 = {
|
||||
...messageExampleComplete,
|
||||
id: 7,
|
||||
value: '/uploads/messages/audio.mp3',
|
||||
type: 'file',
|
||||
mimetype: 'audio/mp3'
|
||||
value: "/uploads/messages/audio.mp3",
|
||||
type: "file",
|
||||
mimetype: "audio/mp3",
|
||||
}
|
||||
|
||||
export const messageExampleComplete8 = {
|
||||
...messageExampleComplete,
|
||||
id: 8,
|
||||
value: '/uploads/messages/video.mp4',
|
||||
type: 'file',
|
||||
mimetype: 'video/mp4'
|
||||
value: "/uploads/messages/video.mp4",
|
||||
type: "file",
|
||||
mimetype: "video/mp4",
|
||||
}
|
||||
|
||||
export const messageExampleComplete9 = {
|
||||
...messageExampleComplete,
|
||||
id: 9,
|
||||
value: '/uploads/messages/download.zip',
|
||||
type: 'file',
|
||||
mimetype: 'application/zip'
|
||||
value: "/uploads/messages/download.zip",
|
||||
type: "file",
|
||||
mimetype: "application/zip",
|
||||
}
|
||||
|
Reference in New Issue
Block a user