add: Layout, working permissions for papers

This commit is contained in:
Dominik Natter
2025-03-26 20:56:56 +01:00
parent c5c9cc37af
commit 6951e662c9
12 changed files with 308 additions and 146 deletions

View File

@@ -124,8 +124,10 @@ export interface UserAuthOperations {
export interface Paper {
id: number;
title: string;
year: string;
issue: string;
goal: string;
result: string;
technologies?:
| {
technology: number | Technology;
@@ -155,9 +157,35 @@ export interface Technology {
id: number;
name: string;
description: string;
icon: number | Media;
updatedAt: string;
createdAt: string;
url?: string | null;
thumbnailURL?: string | null;
filename?: string | null;
mimeType?: string | null;
filesize?: number | null;
width?: number | null;
height?: number | null;
focalX?: number | null;
focalY?: number | null;
sizes?: {
thumbnail?: {
url?: string | null;
width?: number | null;
height?: number | null;
mimeType?: string | null;
filesize?: number | null;
filename?: string | null;
};
square?: {
url?: string | null;
width?: number | null;
height?: number | null;
mimeType?: string | null;
filesize?: number | null;
filename?: string | null;
};
};
}
/**
* This interface was referenced by `Config`'s JSON-Schema
@@ -166,21 +194,6 @@ export interface Technology {
export interface Media {
id: number;
alt?: string | null;
caption?: {
root: {
type: string;
children: {
type: string;
version: number;
[k: string]: unknown;
}[];
direction: ('ltr' | 'rtl') | null;
format: 'left' | 'start' | 'center' | 'right' | 'end' | 'justify' | '';
indent: number;
version: number;
};
[k: string]: unknown;
} | null;
updatedAt: string;
createdAt: string;
url?: string | null;
@@ -344,8 +357,10 @@ export interface PayloadMigration {
*/
export interface PapersSelect<T extends boolean = true> {
title?: T;
year?: T;
issue?: T;
goal?: T;
result?: T;
technologies?:
| T
| {
@@ -378,9 +393,41 @@ export interface PapersSelect<T extends boolean = true> {
export interface TechnologiesSelect<T extends boolean = true> {
name?: T;
description?: T;
icon?: T;
updatedAt?: T;
createdAt?: T;
url?: T;
thumbnailURL?: T;
filename?: T;
mimeType?: T;
filesize?: T;
width?: T;
height?: T;
focalX?: T;
focalY?: T;
sizes?:
| T
| {
thumbnail?:
| T
| {
url?: T;
width?: T;
height?: T;
mimeType?: T;
filesize?: T;
filename?: T;
};
square?:
| T
| {
url?: T;
width?: T;
height?: T;
mimeType?: T;
filesize?: T;
filename?: T;
};
};
}
/**
* This interface was referenced by `Config`'s JSON-Schema
@@ -410,7 +457,6 @@ export interface UsersSelect<T extends boolean = true> {
*/
export interface MediaSelect<T extends boolean = true> {
alt?: T;
caption?: T;
updatedAt?: T;
createdAt?: T;
url?: T;