[FEAT] ready to deploy
This commit is contained in:
parent
3d7ee42ca8
commit
3d78b90ff1
@ -15,7 +15,7 @@ import {
|
||||
Long,
|
||||
Media,
|
||||
MediaUpdate,
|
||||
UUID,
|
||||
ObjectId,
|
||||
ZodMedia,
|
||||
isMedia,
|
||||
} from "../model";
|
||||
@ -132,7 +132,7 @@ export namespace MediaResource {
|
||||
}: {
|
||||
restConfig: RESTConfig,
|
||||
params: {
|
||||
coverId: UUID,
|
||||
coverId: ObjectId,
|
||||
id: Long,
|
||||
},
|
||||
}): Promise<Media> {
|
||||
|
@ -13,10 +13,10 @@ import {
|
||||
import { z as zod } from "zod"
|
||||
import {
|
||||
Long,
|
||||
ObjectId,
|
||||
Season,
|
||||
SeasonCreate,
|
||||
SeasonUpdate,
|
||||
UUID,
|
||||
ZodSeason,
|
||||
isSeason,
|
||||
} from "../model";
|
||||
@ -155,7 +155,7 @@ export namespace SeasonResource {
|
||||
}: {
|
||||
restConfig: RESTConfig,
|
||||
params: {
|
||||
coverId: UUID,
|
||||
coverId: ObjectId,
|
||||
id: Long,
|
||||
},
|
||||
}): Promise<Season> {
|
||||
|
@ -13,10 +13,10 @@ import {
|
||||
import { z as zod } from "zod"
|
||||
import {
|
||||
Long,
|
||||
ObjectId,
|
||||
Series,
|
||||
SeriesCreate,
|
||||
SeriesUpdate,
|
||||
UUID,
|
||||
ZodSeries,
|
||||
isSeries,
|
||||
} from "../model";
|
||||
@ -155,7 +155,7 @@ export namespace SeriesResource {
|
||||
}: {
|
||||
restConfig: RESTConfig,
|
||||
params: {
|
||||
coverId: UUID,
|
||||
coverId: ObjectId,
|
||||
id: Long,
|
||||
},
|
||||
}): Promise<Series> {
|
||||
|
@ -13,10 +13,10 @@ import {
|
||||
import { z as zod } from "zod"
|
||||
import {
|
||||
Long,
|
||||
ObjectId,
|
||||
Type,
|
||||
TypeCreate,
|
||||
TypeUpdate,
|
||||
UUID,
|
||||
ZodType,
|
||||
isType,
|
||||
} from "../model";
|
||||
@ -155,7 +155,7 @@ export namespace TypeResource {
|
||||
}: {
|
||||
restConfig: RESTConfig,
|
||||
params: {
|
||||
coverId: UUID,
|
||||
coverId: ObjectId,
|
||||
id: Long,
|
||||
},
|
||||
}): Promise<Type> {
|
||||
|
@ -3,9 +3,9 @@
|
||||
*/
|
||||
import { z as zod } from "zod";
|
||||
|
||||
import {ZodOIDGenericDataSoftDelete, ZodOIDGenericDataSoftDeleteUpdate , ZodOIDGenericDataSoftDeleteCreate } from "./oid-generic-data-soft-delete";
|
||||
import {ZodObjectId} from "./object-id";
|
||||
import {ZodLong} from "./long";
|
||||
import {ZodOIDGenericDataSoftDelete, ZodOIDGenericDataSoftDeleteUpdate , ZodOIDGenericDataSoftDeleteCreate } from "./oid-generic-data-soft-delete";
|
||||
|
||||
export const ZodData = ZodOIDGenericDataSoftDelete.extend({
|
||||
/**
|
||||
|
@ -3,8 +3,8 @@
|
||||
*/
|
||||
import { z as zod } from "zod";
|
||||
|
||||
import {ZodJwtHeader} from "./jwt-header";
|
||||
import {ZodJwtPayload} from "./jwt-payload";
|
||||
import {ZodJwtHeader} from "./jwt-header";
|
||||
|
||||
export const ZodJwtToken = zod.object({
|
||||
header: ZodJwtHeader,
|
||||
|
@ -3,11 +3,11 @@
|
||||
*/
|
||||
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 {ZodObjectId} from "./object-id";
|
||||
import {ZodInteger} from "./integer";
|
||||
import {ZodLong} from "./long";
|
||||
import {ZodIsoDate} from "./iso-date";
|
||||
|
||||
export const ZodMedia = ZodGenericDataSoftDelete.extend({
|
||||
/**
|
||||
|
@ -3,9 +3,9 @@
|
||||
*/
|
||||
import { z as zod } from "zod";
|
||||
|
||||
import {ZodInteger} from "./integer";
|
||||
import {ZodObjectId} from "./object-id";
|
||||
import {ZodRestInputError} from "./rest-input-error";
|
||||
import {ZodObjectId} from "./object-id";
|
||||
import {ZodInteger} from "./integer";
|
||||
|
||||
export const ZodRestErrorResponse = zod.object({
|
||||
oid: ZodObjectId.optional(),
|
||||
|
@ -3,9 +3,9 @@
|
||||
*/
|
||||
import { z as zod } from "zod";
|
||||
|
||||
import {ZodGenericDataSoftDelete, ZodGenericDataSoftDeleteUpdate , ZodGenericDataSoftDeleteCreate } from "./generic-data-soft-delete";
|
||||
import {ZodObjectId} from "./object-id";
|
||||
import {ZodLong} from "./long";
|
||||
import {ZodGenericDataSoftDelete, ZodGenericDataSoftDeleteUpdate , ZodGenericDataSoftDeleteCreate } from "./generic-data-soft-delete";
|
||||
|
||||
export const ZodSeason = ZodGenericDataSoftDelete.extend({
|
||||
/**
|
||||
|
@ -3,9 +3,9 @@
|
||||
*/
|
||||
import { z as zod } from "zod";
|
||||
|
||||
import {ZodGenericDataSoftDelete, ZodGenericDataSoftDeleteUpdate , ZodGenericDataSoftDeleteCreate } from "./generic-data-soft-delete";
|
||||
import {ZodObjectId} from "./object-id";
|
||||
import {ZodLong} from "./long";
|
||||
import {ZodGenericDataSoftDelete, ZodGenericDataSoftDeleteUpdate , ZodGenericDataSoftDeleteCreate } from "./generic-data-soft-delete";
|
||||
|
||||
export const ZodSeries = ZodGenericDataSoftDelete.extend({
|
||||
/**
|
||||
|
@ -3,8 +3,8 @@
|
||||
*/
|
||||
import { z as zod } from "zod";
|
||||
|
||||
import {ZodObjectId} from "./object-id";
|
||||
import {ZodGenericDataSoftDelete, ZodGenericDataSoftDeleteUpdate , ZodGenericDataSoftDeleteCreate } from "./generic-data-soft-delete";
|
||||
import {ZodObjectId} from "./object-id";
|
||||
|
||||
export const ZodType = ZodGenericDataSoftDelete.extend({
|
||||
/**
|
||||
|
@ -3,10 +3,10 @@
|
||||
*/
|
||||
import { z as zod } from "zod";
|
||||
|
||||
import {ZodLong} from "./long";
|
||||
import {ZodInteger} from "./integer";
|
||||
import {ZodFloat} from "./float";
|
||||
import {ZodGenericDataSoftDelete, ZodGenericDataSoftDeleteUpdate , ZodGenericDataSoftDeleteCreate } from "./generic-data-soft-delete";
|
||||
import {ZodInteger} from "./integer";
|
||||
import {ZodLong} from "./long";
|
||||
|
||||
export const ZodUserMediaAdvancement = ZodGenericDataSoftDelete.extend({
|
||||
/**
|
||||
|
@ -3,8 +3,8 @@
|
||||
*/
|
||||
import { z as zod } from "zod";
|
||||
|
||||
import {ZodTimestamp} from "./timestamp";
|
||||
import {ZodUUID} from "./uuid";
|
||||
import {ZodTimestamp} from "./timestamp";
|
||||
import {ZodGenericDataSoftDelete, ZodGenericDataSoftDeleteUpdate , ZodGenericDataSoftDeleteCreate } from "./generic-data-soft-delete";
|
||||
|
||||
export const ZodUser = ZodGenericDataSoftDelete.extend({
|
||||
|
@ -348,7 +348,13 @@ export const VideoPlayer = ({}: AudioPlayerProps) => {
|
||||
position={isFullScreen ? 'absolute' : 'relative'}
|
||||
maxHeight={isFullScreen ? undefined : '30vh'}
|
||||
maxWidth={isFullScreen ? undefined : '100%'}
|
||||
height={isFullScreen ? '100%' : undefined}
|
||||
width={isFullScreen ? '100%' : undefined}
|
||||
marginX="auto"
|
||||
// left={0}
|
||||
// right={0}
|
||||
// top={0}
|
||||
// bottom={0}
|
||||
>
|
||||
<video
|
||||
height={isFullScreen ? '100%' : undefined}
|
||||
|
@ -1,13 +1,7 @@
|
||||
import { Box, Button, Flex, HStack, Text } from '@chakra-ui/react';
|
||||
import { LuDisc3 } from 'react-icons/lu';
|
||||
import { MdEdit } from 'react-icons/md';
|
||||
import {
|
||||
Navigate,
|
||||
Route,
|
||||
Routes,
|
||||
useNavigate,
|
||||
useParams,
|
||||
} from 'react-router-dom';
|
||||
import { Route, Routes, useNavigate, useParams } from 'react-router-dom';
|
||||
|
||||
import { Covers } from '@/components/Cover';
|
||||
import { EmptyEnd } from '@/components/EmptyEnd';
|
||||
@ -140,7 +134,7 @@ export const TypesSeriesDetailPage = () => {
|
||||
</Box>
|
||||
))}
|
||||
</HStack>
|
||||
<Box width="full" height="10px" background="red" />
|
||||
{/* <Box width="full" height="10px" background="red" /> */}
|
||||
<HStack
|
||||
wrap="wrap"
|
||||
gap="20px"
|
||||
@ -170,7 +164,7 @@ export const TypesSeriesDetailPage = () => {
|
||||
{
|
||||
name: 'Edit',
|
||||
onClick: () => {
|
||||
navigate(`media/${data.id}/edit`);
|
||||
navigate(`edit-media/${data.id}`);
|
||||
},
|
||||
},
|
||||
{ name: 'Add Playlist', onClick: () => {} },
|
||||
@ -185,12 +179,12 @@ export const TypesSeriesDetailPage = () => {
|
||||
<Route path="edit-series/:seriesId" element={<SeriesEditPopUp />} />
|
||||
{/* <Route path="edit-season/:seasonId" element={<TypeSeasonPopUp />} /> */}
|
||||
{/* This permit to correct the Path */}
|
||||
<Route
|
||||
{/* <Route
|
||||
path="*"
|
||||
element={
|
||||
<Navigate to={`/type/${typeId}/series/${seriesId}`} replace />
|
||||
}
|
||||
/>
|
||||
/> */}
|
||||
</Routes>
|
||||
</PageLayout>
|
||||
</>
|
||||
|
Loading…
x
Reference in New Issue
Block a user