website refactor
This commit is contained in:
5
apps/website/lib/view-data/ActionsViewData.ts
Normal file
5
apps/website/lib/view-data/ActionsViewData.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { ActionItem } from '@/lib/queries/ActionsPageQuery';
|
||||
|
||||
export interface ActionsViewData {
|
||||
actions: ActionItem[];
|
||||
}
|
||||
8
apps/website/lib/view-data/MediaViewData.ts
Normal file
8
apps/website/lib/view-data/MediaViewData.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { MediaAsset } from '@/components/media/MediaGallery';
|
||||
|
||||
export interface MediaViewData {
|
||||
assets: MediaAsset[];
|
||||
categories: { label: string; value: string }[];
|
||||
title: string;
|
||||
description?: string;
|
||||
}
|
||||
3
apps/website/lib/view-data/ProfileLayoutViewData.ts
Normal file
3
apps/website/lib/view-data/ProfileLayoutViewData.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export interface ProfileLayoutViewData {
|
||||
// Empty for now
|
||||
}
|
||||
12
apps/website/lib/view-data/ProfileLiveriesViewData.ts
Normal file
12
apps/website/lib/view-data/ProfileLiveriesViewData.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
export interface ProfileLiveryViewData {
|
||||
id: string;
|
||||
carId: string;
|
||||
carName: string;
|
||||
thumbnailUrl: string;
|
||||
uploadedAt: Date;
|
||||
isValidated: boolean;
|
||||
}
|
||||
|
||||
export interface ProfileLiveriesViewData {
|
||||
liveries: ProfileLiveryViewData[];
|
||||
}
|
||||
Reference in New Issue
Block a user