diff --git a/backend/src/bundles/public-video/public-video.controller.ts b/backend/src/bundles/public-video/public-video.controller.ts index 18df86047..9f840c1ea 100644 --- a/backend/src/bundles/public-video/public-video.controller.ts +++ b/backend/src/bundles/public-video/public-video.controller.ts @@ -36,11 +36,8 @@ class PublicVideoController extends BaseController { body: { id: string }; }>, ): Promise { - // eslint-disable-next-line no-console - console.log(options.body, 'options.body'); const jwt = options.body.id; - // eslint-disable-next-line no-console - console.log(jwt, 'jwt'); + return { status: HTTPCode.OK, payload: await this.publicVideoService.findUrlByToken(jwt), diff --git a/backend/src/bundles/videos/video.repository.ts b/backend/src/bundles/videos/video.repository.ts index 26542e5fe..ed0b8bc91 100644 --- a/backend/src/bundles/videos/video.repository.ts +++ b/backend/src/bundles/videos/video.repository.ts @@ -21,8 +21,7 @@ class VideoRepository implements Repository { public async findById(id: string): Promise { const video = await this.videoModel.query().findById(id).execute(); - // eslint-disable-next-line no-console - console.log(video); + return video ? VideoEntity.initialize(video) : null; } diff --git a/backend/src/common/constants/white-routes.constants.ts b/backend/src/common/constants/white-routes.constants.ts index 5a592caa2..f665e4f67 100644 --- a/backend/src/common/constants/white-routes.constants.ts +++ b/backend/src/common/constants/white-routes.constants.ts @@ -13,7 +13,7 @@ const WHITE_ROUTES = [ }, { path: `/api/v1${ApiPath.PUBLIC_VIDEO}/`, - method: HTTPMethod.GET, + method: HTTPMethod.POST, }, { path: /\/v1\/documentation\/.*/, diff --git a/backend/src/common/services/token/token.services.ts b/backend/src/common/services/token/token.services.ts index 9da1f26b1..429249cdd 100644 --- a/backend/src/common/services/token/token.services.ts +++ b/backend/src/common/services/token/token.services.ts @@ -34,8 +34,7 @@ class TokenService { public async getIdFromToken(token: string): Promise { const payload = await this.verifyToken(token); - // eslint-disable-next-line no-console - console.log(payload); + return (payload?.['id'] as string) ?? null; } } diff --git a/frontend/src/bundles/ai-avatars/components/avatar-card/avatar-card.tsx b/frontend/src/bundles/ai-avatars/components/avatar-card/avatar-card.tsx index a3bebefbc..d5224f526 100644 --- a/frontend/src/bundles/ai-avatars/components/avatar-card/avatar-card.tsx +++ b/frontend/src/bundles/ai-avatars/components/avatar-card/avatar-card.tsx @@ -40,10 +40,21 @@ const AvatarCard: React.FC = ({ }, [dispatch, id, image]); return ( - - - - AI generated avatar image + + + + AI generated avatar image } @@ -54,7 +65,7 @@ const AvatarCard: React.FC = ({ right="0" onClick={handleLike} /> - + {name} diff --git a/frontend/src/bundles/ai-avatars/components/avatars-section/avatars-section.tsx b/frontend/src/bundles/ai-avatars/components/avatars-section/avatars-section.tsx index 884a1f52c..7fb0e9b3f 100644 --- a/frontend/src/bundles/ai-avatars/components/avatars-section/avatars-section.tsx +++ b/frontend/src/bundles/ai-avatars/components/avatars-section/avatars-section.tsx @@ -14,6 +14,7 @@ import { } from '~/bundles/common/components/components.js'; import { AvatarCard } from '../components.js'; +import styles from './styles.module.css'; type Properties = { subtitle: string; @@ -62,11 +63,7 @@ const AvatarsSection: React.FC = ({ subtitle, avatars, form }) => { Pick your favorites avatars to show them here! ) : ( - + {avatars.map(({ id, imgUrl, name, style, isLiked }) => ( = ({ diff --git a/frontend/src/bundles/common/components/header/header.tsx b/frontend/src/bundles/common/components/header/header.tsx index deb4061ac..a6dacfacb 100644 --- a/frontend/src/bundles/common/components/header/header.tsx +++ b/frontend/src/bundles/common/components/header/header.tsx @@ -23,7 +23,7 @@ const Header: React.FC = ({ left, center, right }) => { )} {center} - {right && {right}}; + {right && {right}} ); }; diff --git a/frontend/src/bundles/common/components/video-modal/components/video-modal-content/components/generate-script-view/generate-script-view.tsx b/frontend/src/bundles/common/components/video-modal/components/video-modal-content/components/generate-script-view/generate-script-view.tsx index 750519bef..595a9304e 100644 --- a/frontend/src/bundles/common/components/video-modal/components/video-modal-content/components/generate-script-view/generate-script-view.tsx +++ b/frontend/src/bundles/common/components/video-modal/components/video-modal-content/components/generate-script-view/generate-script-view.tsx @@ -50,7 +50,7 @@ const GenerateScriptView: React.FC = ({ onClose }) => { return ( <> - Use Open AI to draft your video script + Use our AI Assistant to draft your video script diff --git a/frontend/src/bundles/create-avatar/components/consent/consent.tsx b/frontend/src/bundles/create-avatar/components/consent/consent.tsx index b1d02e096..109f2525b 100644 --- a/frontend/src/bundles/create-avatar/components/consent/consent.tsx +++ b/frontend/src/bundles/create-avatar/components/consent/consent.tsx @@ -13,7 +13,7 @@ const Consent: React.FC = () => { return ( - Concent + Consent To prevent misuse of technology, we just need to confirm the diff --git a/frontend/src/bundles/home/components/video-card/video-card.tsx b/frontend/src/bundles/home/components/video-card/video-card.tsx index 3d3272ed7..08933d86d 100644 --- a/frontend/src/bundles/home/components/video-card/video-card.tsx +++ b/frontend/src/bundles/home/components/video-card/video-card.tsx @@ -115,7 +115,7 @@ const VideoCard: React.FC = ({ }, [dispatch, id]); return ( - + = ({ videos, title }) => { ))} ) : ( - + {videos.map(({ id, ...video }) => ( ))} diff --git a/frontend/src/bundles/preview/components/preview-wrapper.tsx b/frontend/src/bundles/preview/components/preview-wrapper.tsx index 0a1260537..c5006af01 100644 --- a/frontend/src/bundles/preview/components/preview-wrapper.tsx +++ b/frontend/src/bundles/preview/components/preview-wrapper.tsx @@ -4,8 +4,7 @@ import { Preview } from '~/bundles/preview/pages/preview.js'; const PreviewWrapper: React.FC = () => { const { jwt } = useParams<{ jwt: string }>(); - // eslint-disable-next-line no-console - console.log('PreviewWrapper', jwt); + return ; }; diff --git a/frontend/src/bundles/template/components/template-card/template-card.tsx b/frontend/src/bundles/template/components/template-card/template-card.tsx index cefef1c7e..1dca9b62e 100644 --- a/frontend/src/bundles/template/components/template-card/template-card.tsx +++ b/frontend/src/bundles/template/components/template-card/template-card.tsx @@ -44,7 +44,7 @@ const TemplateCard: React.FC = ({ id, name, previewUrl }) => { }, [handleWarningModalClose]); return ( - + = ({ templates }) => { - + {templates.map(({ id, ...template }) => ( ))} diff --git a/frontend/src/bundles/voices/components/voice-section/styles.module.css b/frontend/src/bundles/voices/components/voice-section/styles.module.css index 64d222997..7c59d939c 100644 --- a/frontend/src/bundles/voices/components/voice-section/styles.module.css +++ b/frontend/src/bundles/voices/components/voice-section/styles.module.css @@ -4,3 +4,7 @@ scrollbar-width: thin; scrollbar-color: #c1c1c1 #f1f1f1; } + +.grid { + grid-template-columns: repeat(auto-fit, 250px); +} diff --git a/frontend/src/bundles/voices/components/voice-section/voice-section.tsx b/frontend/src/bundles/voices/components/voice-section/voice-section.tsx index 051006891..5eeabbf1d 100644 --- a/frontend/src/bundles/voices/components/voice-section/voice-section.tsx +++ b/frontend/src/bundles/voices/components/voice-section/voice-section.tsx @@ -50,10 +50,7 @@ const VoiceSection: React.FC = ({ voices, title }) => { ))} ) : ( - + {voices.map((voice) => ( ))}