Compare commits
2 Commits
9092012cf7
...
709ae0c6ee
Author | SHA1 | Date | |
---|---|---|---|
709ae0c6ee | |||
faa3eaa007 |
@ -34,7 +34,7 @@ export async function addReport(report: Report) {
|
|||||||
const { data, error } = await actions.report.addReport({
|
const { data, error } = await actions.report.addReport({
|
||||||
reason: report.reason,
|
reason: report.reason,
|
||||||
body: report.body,
|
body: report.body,
|
||||||
createdAt: report.createdAt,
|
createdAt: report.createdAt as unknown as string,
|
||||||
reporter: report.reporter.id,
|
reporter: report.reporter.id,
|
||||||
reported: report.reported?.id ?? null
|
reported: report.reported?.id ?? null
|
||||||
});
|
});
|
||||||
|
@ -7,8 +7,8 @@
|
|||||||
let previewDialogElem: HTMLDialogElement;
|
let previewDialogElem: HTMLDialogElement;
|
||||||
|
|
||||||
// consts
|
// consts
|
||||||
const allowedImageTypes = ['image/png', 'image/jpeg', 'image/avif'];
|
const allowedImageTypes = ['image/png', 'image/jpeg', 'image/webp', 'image/avif'];
|
||||||
const allowedVideoTypes = ['video/mp4'];
|
const allowedVideoTypes = ['video/mp4', 'video/webm'];
|
||||||
|
|
||||||
// types
|
// types
|
||||||
interface Props {
|
interface Props {
|
||||||
@ -62,7 +62,7 @@
|
|||||||
type: 'error',
|
type: 'error',
|
||||||
title: 'Ungültige Datei',
|
title: 'Ungültige Datei',
|
||||||
message:
|
message:
|
||||||
'Das Dateiformat wird nicht unterstützt. Nur Bilder (.png, .jpg, .jpeg, .avif) und Videos (.mp4) sind gültig'
|
'Das Dateiformat wird nicht unterstützt. Nur Bilder (.png, .jpg, .jpeg, .webp, .avif) und Videos (.mp4, .webp) sind gültig'
|
||||||
};
|
};
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -71,7 +71,7 @@
|
|||||||
$popupState = {
|
$popupState = {
|
||||||
type: 'error',
|
type: 'error',
|
||||||
title: 'Datei zu groß',
|
title: 'Datei zu groß',
|
||||||
message: `Die Dateien dürfen insgesamt nur ${(maxFilesBytes / 1024 / 1024).toFixed(2)}MB groß sein`
|
message: `Die Dateien dürfen insgesamt nur ${bytesToHumanReadable(maxFilesBytes)} groß sein. Fall deine Anhänge größer sind, lade sie bitte auf einem externen Filehoster (z.B. file.io, Google Drive, ...) hoch und füge den Link zum teilen der Datei(en) zu den Report Details hinzu`
|
||||||
};
|
};
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user