Show logs and usernames for deleted users and remove svg mimetype for client side

This commit is contained in:
thiloho
2024-09-14 15:12:08 +02:00
parent 79d1c9f5c7
commit 5f38500b9c
11 changed files with 119 additions and 95 deletions

View File

@@ -83,6 +83,7 @@ export interface ChangeLog {
id: string;
website_id: string | null;
user_id: string | null;
username: string;
tstamp: Date;
table_name: string;
operation: string;
@@ -93,6 +94,7 @@ export interface ChangeLogInput {
id?: string;
website_id?: string | null;
user_id?: string | null;
username?: string;
tstamp?: Date;
table_name: string;
operation: string;
@@ -105,6 +107,7 @@ const change_log = {
"id",
"website_id",
"user_id",
"username",
"tstamp",
"table_name",
"operation",
@@ -320,7 +323,7 @@ const legal_information = {
export interface Media {
id: string;
website_id: string;
user_id: string;
user_id: string | null;
blob: string;
mimetype: string;
original_name: string;
@@ -329,7 +332,7 @@ export interface Media {
export interface MediaInput {
id?: string;
website_id: string;
user_id?: string;
user_id?: string | null;
blob: string;
mimetype: string;
original_name: string;

View File

@@ -15,7 +15,7 @@ import type {
LegalInformation
} from "$lib/db-schema";
export const ALLOWED_MIME_TYPES = ["image/jpeg", "image/png", "image/svg+xml", "image/webp"];
export const ALLOWED_MIME_TYPES = ["image/jpeg", "image/png", "image/webp"];
export const slugify = (string: string) => {
return string