feat: add 2FA, secure cookies and publishing tools
All checks were successful
CI / Validate frontend and API (push) Successful in 3m5s
CI / Build and publish Docker images (push) Successful in 1m42s

This commit is contained in:
Cauê Faleiros
2026-11-06 10:29:37 -03:00
parent fff63f5efa
commit 50905eefd7
40 changed files with 3493 additions and 215 deletions

View File

@@ -1,4 +1,4 @@
import React from 'react';
import React, { useState } from 'react';
import { Link, Navigate, useParams } from 'react-router-dom';
import { BookmarkSimpleIcon, CaretRightIcon, CheckIcon, CircleNotchIcon, PlayIcon } from '@phosphor-icons/react';
import { Attachment, Course } from '../types';
@@ -6,15 +6,13 @@ import { useCourse, useLessonProgress } from '../hooks/useCourse';
import { useAuth } from '../context/AuthContext';
import { useCatalog } from '../context/CatalogContext';
import { ArtImage, CourseCard, Cover, courseFraming, useCoverImage } from '../components/catalog/Artwork';
import { MaterialRow, useMaterialAction } from '../components/course/Materials';
import { MaterialButton, MaterialRow, attachmentIcon, useMaterialAction } from '../components/course/Materials';
import { CourseReviews } from '../components/course/CourseReviews';
import { Avatar } from '../components/ui/Avatar';
import { courseMeta, lessonDuration, plural } from '../lib/format';
import { paths } from '../lib/routes';
import { useSavedCourses } from '../hooks/useSavedCourses';
import { useIsMobile } from '../hooks/useMediaQuery';
import { MaterialButton, attachmentIcon } from '../components/course/Materials';
import { useState } from 'react';
export type CourseMaterial = { attachment: Attachment; detail: string; lessonIndex?: number };