[FEAT] ready to deploy

This commit is contained in:
Edouard DUPIN 2025-04-16 19:53:24 +02:00
parent 3d7ee42ca8
commit 3d78b90ff1
15 changed files with 33 additions and 33 deletions

View File

@ -15,7 +15,7 @@ import {
Long, Long,
Media, Media,
MediaUpdate, MediaUpdate,
UUID, ObjectId,
ZodMedia, ZodMedia,
isMedia, isMedia,
} from "../model"; } from "../model";
@ -132,7 +132,7 @@ export namespace MediaResource {
}: { }: {
restConfig: RESTConfig, restConfig: RESTConfig,
params: { params: {
coverId: UUID, coverId: ObjectId,
id: Long, id: Long,
}, },
}): Promise<Media> { }): Promise<Media> {

View File

@ -13,10 +13,10 @@ import {
import { z as zod } from "zod" import { z as zod } from "zod"
import { import {
Long, Long,
ObjectId,
Season, Season,
SeasonCreate, SeasonCreate,
SeasonUpdate, SeasonUpdate,
UUID,
ZodSeason, ZodSeason,
isSeason, isSeason,
} from "../model"; } from "../model";
@ -155,7 +155,7 @@ export namespace SeasonResource {
}: { }: {
restConfig: RESTConfig, restConfig: RESTConfig,
params: { params: {
coverId: UUID, coverId: ObjectId,
id: Long, id: Long,
}, },
}): Promise<Season> { }): Promise<Season> {

View File

@ -13,10 +13,10 @@ import {
import { z as zod } from "zod" import { z as zod } from "zod"
import { import {
Long, Long,
ObjectId,
Series, Series,
SeriesCreate, SeriesCreate,
SeriesUpdate, SeriesUpdate,
UUID,
ZodSeries, ZodSeries,
isSeries, isSeries,
} from "../model"; } from "../model";
@ -155,7 +155,7 @@ export namespace SeriesResource {
}: { }: {
restConfig: RESTConfig, restConfig: RESTConfig,
params: { params: {
coverId: UUID, coverId: ObjectId,
id: Long, id: Long,
}, },
}): Promise<Series> { }): Promise<Series> {

View File

@ -13,10 +13,10 @@ import {
import { z as zod } from "zod" import { z as zod } from "zod"
import { import {
Long, Long,
ObjectId,
Type, Type,
TypeCreate, TypeCreate,
TypeUpdate, TypeUpdate,
UUID,
ZodType, ZodType,
isType, isType,
} from "../model"; } from "../model";
@ -155,7 +155,7 @@ export namespace TypeResource {
}: { }: {
restConfig: RESTConfig, restConfig: RESTConfig,
params: { params: {
coverId: UUID, coverId: ObjectId,
id: Long, id: Long,
}, },
}): Promise<Type> { }): Promise<Type> {

View File

@ -3,9 +3,9 @@
*/ */
import { z as zod } from "zod"; import { z as zod } from "zod";
import {ZodOIDGenericDataSoftDelete, ZodOIDGenericDataSoftDeleteUpdate , ZodOIDGenericDataSoftDeleteCreate } from "./oid-generic-data-soft-delete";
import {ZodObjectId} from "./object-id"; import {ZodObjectId} from "./object-id";
import {ZodLong} from "./long"; import {ZodLong} from "./long";
import {ZodOIDGenericDataSoftDelete, ZodOIDGenericDataSoftDeleteUpdate , ZodOIDGenericDataSoftDeleteCreate } from "./oid-generic-data-soft-delete";
export const ZodData = ZodOIDGenericDataSoftDelete.extend({ export const ZodData = ZodOIDGenericDataSoftDelete.extend({
/** /**

View File

@ -3,8 +3,8 @@
*/ */
import { z as zod } from "zod"; import { z as zod } from "zod";
import {ZodJwtHeader} from "./jwt-header";
import {ZodJwtPayload} from "./jwt-payload"; import {ZodJwtPayload} from "./jwt-payload";
import {ZodJwtHeader} from "./jwt-header";
export const ZodJwtToken = zod.object({ export const ZodJwtToken = zod.object({
header: ZodJwtHeader, header: ZodJwtHeader,

View File

@ -3,11 +3,11 @@
*/ */
import { z as zod } from "zod"; import { z as zod } from "zod";
import {ZodObjectId} from "./object-id";
import {ZodLong} from "./long";
import {ZodInteger} from "./integer";
import {ZodIsoDate} from "./iso-date";
import {ZodGenericDataSoftDelete, ZodGenericDataSoftDeleteUpdate , ZodGenericDataSoftDeleteCreate } from "./generic-data-soft-delete"; import {ZodGenericDataSoftDelete, ZodGenericDataSoftDeleteUpdate , ZodGenericDataSoftDeleteCreate } from "./generic-data-soft-delete";
import {ZodObjectId} from "./object-id";
import {ZodInteger} from "./integer";
import {ZodLong} from "./long";
import {ZodIsoDate} from "./iso-date";
export const ZodMedia = ZodGenericDataSoftDelete.extend({ export const ZodMedia = ZodGenericDataSoftDelete.extend({
/** /**

View File

@ -3,9 +3,9 @@
*/ */
import { z as zod } from "zod"; import { z as zod } from "zod";
import {ZodInteger} from "./integer";
import {ZodObjectId} from "./object-id";
import {ZodRestInputError} from "./rest-input-error"; import {ZodRestInputError} from "./rest-input-error";
import {ZodObjectId} from "./object-id";
import {ZodInteger} from "./integer";
export const ZodRestErrorResponse = zod.object({ export const ZodRestErrorResponse = zod.object({
oid: ZodObjectId.optional(), oid: ZodObjectId.optional(),

View File

@ -3,9 +3,9 @@
*/ */
import { z as zod } from "zod"; import { z as zod } from "zod";
import {ZodGenericDataSoftDelete, ZodGenericDataSoftDeleteUpdate , ZodGenericDataSoftDeleteCreate } from "./generic-data-soft-delete";
import {ZodObjectId} from "./object-id"; import {ZodObjectId} from "./object-id";
import {ZodLong} from "./long"; import {ZodLong} from "./long";
import {ZodGenericDataSoftDelete, ZodGenericDataSoftDeleteUpdate , ZodGenericDataSoftDeleteCreate } from "./generic-data-soft-delete";
export const ZodSeason = ZodGenericDataSoftDelete.extend({ export const ZodSeason = ZodGenericDataSoftDelete.extend({
/** /**

View File

@ -3,9 +3,9 @@
*/ */
import { z as zod } from "zod"; import { z as zod } from "zod";
import {ZodGenericDataSoftDelete, ZodGenericDataSoftDeleteUpdate , ZodGenericDataSoftDeleteCreate } from "./generic-data-soft-delete";
import {ZodObjectId} from "./object-id"; import {ZodObjectId} from "./object-id";
import {ZodLong} from "./long"; import {ZodLong} from "./long";
import {ZodGenericDataSoftDelete, ZodGenericDataSoftDeleteUpdate , ZodGenericDataSoftDeleteCreate } from "./generic-data-soft-delete";
export const ZodSeries = ZodGenericDataSoftDelete.extend({ export const ZodSeries = ZodGenericDataSoftDelete.extend({
/** /**

View File

@ -3,8 +3,8 @@
*/ */
import { z as zod } from "zod"; import { z as zod } from "zod";
import {ZodObjectId} from "./object-id";
import {ZodGenericDataSoftDelete, ZodGenericDataSoftDeleteUpdate , ZodGenericDataSoftDeleteCreate } from "./generic-data-soft-delete"; import {ZodGenericDataSoftDelete, ZodGenericDataSoftDeleteUpdate , ZodGenericDataSoftDeleteCreate } from "./generic-data-soft-delete";
import {ZodObjectId} from "./object-id";
export const ZodType = ZodGenericDataSoftDelete.extend({ export const ZodType = ZodGenericDataSoftDelete.extend({
/** /**

View File

@ -3,10 +3,10 @@
*/ */
import { z as zod } from "zod"; import { z as zod } from "zod";
import {ZodLong} from "./long";
import {ZodInteger} from "./integer";
import {ZodFloat} from "./float"; import {ZodFloat} from "./float";
import {ZodGenericDataSoftDelete, ZodGenericDataSoftDeleteUpdate , ZodGenericDataSoftDeleteCreate } from "./generic-data-soft-delete"; import {ZodGenericDataSoftDelete, ZodGenericDataSoftDeleteUpdate , ZodGenericDataSoftDeleteCreate } from "./generic-data-soft-delete";
import {ZodInteger} from "./integer";
import {ZodLong} from "./long";
export const ZodUserMediaAdvancement = ZodGenericDataSoftDelete.extend({ export const ZodUserMediaAdvancement = ZodGenericDataSoftDelete.extend({
/** /**

View File

@ -3,8 +3,8 @@
*/ */
import { z as zod } from "zod"; import { z as zod } from "zod";
import {ZodTimestamp} from "./timestamp";
import {ZodUUID} from "./uuid"; import {ZodUUID} from "./uuid";
import {ZodTimestamp} from "./timestamp";
import {ZodGenericDataSoftDelete, ZodGenericDataSoftDeleteUpdate , ZodGenericDataSoftDeleteCreate } from "./generic-data-soft-delete"; import {ZodGenericDataSoftDelete, ZodGenericDataSoftDeleteUpdate , ZodGenericDataSoftDeleteCreate } from "./generic-data-soft-delete";
export const ZodUser = ZodGenericDataSoftDelete.extend({ export const ZodUser = ZodGenericDataSoftDelete.extend({

View File

@ -348,7 +348,13 @@ export const VideoPlayer = ({}: AudioPlayerProps) => {
position={isFullScreen ? 'absolute' : 'relative'} position={isFullScreen ? 'absolute' : 'relative'}
maxHeight={isFullScreen ? undefined : '30vh'} maxHeight={isFullScreen ? undefined : '30vh'}
maxWidth={isFullScreen ? undefined : '100%'} maxWidth={isFullScreen ? undefined : '100%'}
height={isFullScreen ? '100%' : undefined}
width={isFullScreen ? '100%' : undefined}
marginX="auto" marginX="auto"
// left={0}
// right={0}
// top={0}
// bottom={0}
> >
<video <video
height={isFullScreen ? '100%' : undefined} height={isFullScreen ? '100%' : undefined}

View File

@ -1,13 +1,7 @@
import { Box, Button, Flex, HStack, Text } from '@chakra-ui/react'; import { Box, Button, Flex, HStack, Text } from '@chakra-ui/react';
import { LuDisc3 } from 'react-icons/lu'; import { LuDisc3 } from 'react-icons/lu';
import { MdEdit } from 'react-icons/md'; import { MdEdit } from 'react-icons/md';
import { import { Route, Routes, useNavigate, useParams } from 'react-router-dom';
Navigate,
Route,
Routes,
useNavigate,
useParams,
} from 'react-router-dom';
import { Covers } from '@/components/Cover'; import { Covers } from '@/components/Cover';
import { EmptyEnd } from '@/components/EmptyEnd'; import { EmptyEnd } from '@/components/EmptyEnd';
@ -140,7 +134,7 @@ export const TypesSeriesDetailPage = () => {
</Box> </Box>
))} ))}
</HStack> </HStack>
<Box width="full" height="10px" background="red" /> {/* <Box width="full" height="10px" background="red" /> */}
<HStack <HStack
wrap="wrap" wrap="wrap"
gap="20px" gap="20px"
@ -170,7 +164,7 @@ export const TypesSeriesDetailPage = () => {
{ {
name: 'Edit', name: 'Edit',
onClick: () => { onClick: () => {
navigate(`media/${data.id}/edit`); navigate(`edit-media/${data.id}`);
}, },
}, },
{ name: 'Add Playlist', onClick: () => {} }, { name: 'Add Playlist', onClick: () => {} },
@ -185,12 +179,12 @@ export const TypesSeriesDetailPage = () => {
<Route path="edit-series/:seriesId" element={<SeriesEditPopUp />} /> <Route path="edit-series/:seriesId" element={<SeriesEditPopUp />} />
{/* <Route path="edit-season/:seasonId" element={<TypeSeasonPopUp />} /> */} {/* <Route path="edit-season/:seasonId" element={<TypeSeasonPopUp />} /> */}
{/* This permit to correct the Path */} {/* This permit to correct the Path */}
<Route {/* <Route
path="*" path="*"
element={ element={
<Navigate to={`/type/${typeId}/series/${seriesId}`} replace /> <Navigate to={`/type/${typeId}/series/${seriesId}`} replace />
} }
/> /> */}
</Routes> </Routes>
</PageLayout> </PageLayout>
</> </>