Skip to content

Commit

Permalink
feat: add edit chapters
Browse files Browse the repository at this point in the history
  • Loading branch information
younes200 committed Nov 4, 2024
1 parent 715eb7d commit 19723d0
Show file tree
Hide file tree
Showing 27 changed files with 1,177 additions and 2,418 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Build
uses: docker/build-push-action@v3
with:
file: ./apps/frontend/Dockerfile
file: ./Dockerfile
context: .
push: true
tags: ghcr.io/${{ github.repository }}/celluloid:staging
Expand Down
Binary file modified .yarn/install-state.gz
Binary file not shown.
File renamed without changes.
53 changes: 0 additions & 53 deletions apps/backend/package.json

This file was deleted.

144 changes: 0 additions & 144 deletions apps/backend/src/index.ts

This file was deleted.

12 changes: 0 additions & 12 deletions apps/backend/src/openapi.ts

This file was deleted.

29 changes: 0 additions & 29 deletions apps/backend/tsconfig.json

This file was deleted.

12 changes: 0 additions & 12 deletions apps/backend/tsup.config.ts

This file was deleted.

4 changes: 4 additions & 0 deletions apps/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,12 @@
"@mui/styles": "^6.1.2",
"@tanstack/react-query": "^4.36.1",
"@tanstack/react-query-devtools": "^5.4.2",
"@tiptap/extension-text-style": "^2.9.1",
"@trpc/client": "^10.45.2",
"@trpc/react-query": "^10.45.2",
"@trpc/server": "^10.45.2",
"@types/linkify-urls": "^3.1.1",
"@uidotdev/usehooks": "^2.4.1",
"adminjs": "^7.8.13",
"change-case": "^4.1.2",
"cookie-parser": "^1.4.7",
Expand All @@ -51,6 +53,7 @@
"dayjs": "^1.11.10",
"enzyme": "^3.3.0",
"express": "^4.21.1",
"express-formidable": "^1.2.0",
"express-session": "^1.18.1",
"file-saver": "^2.0.5",
"formik": "^2.2.9",
Expand Down Expand Up @@ -108,6 +111,7 @@
"@types/cookie-parser": "^1",
"@types/cors": "^2.8.13",
"@types/express": "^4",
"@types/express-formidable": "^1",
"@types/express-session": "^1",
"@types/file-saver": "^2.0.5",
"@types/get-urls": "^9.1.3",
Expand Down
6 changes: 2 additions & 4 deletions apps/frontend/src/components/Dialog.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
import CloseIcon from "@mui/icons-material/Close";
import {
Alert,
Box,
DialogTitle,
DialogTitleProps,
type DialogTitleProps,
IconButton,
LinearProgress,
styled,
Typography,
} from "@mui/material";
import Dialog, { DialogProps } from "@mui/material/Dialog";
import Dialog, { type DialogProps } from "@mui/material/Dialog";
import DialogContent from "@mui/material/DialogContent";

export const BootstrapDialog = styled(Dialog)(({ theme }) => ({
Expand Down
5 changes: 2 additions & 3 deletions apps/frontend/src/components/annotation/AnnotationForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { Trans, useTranslation } from "react-i18next";
import * as Yup from "yup";

import { useVideoPlayerProgressValue } from "~components/project/useVideoPlayer";
import { ProjectById, trpc, UserMe } from "~utils/trpc";
import { type ProjectById, trpc, type UserMe } from "~utils/trpc";

import { DurationSlider } from "./DurationSlider";
import {
Expand Down Expand Up @@ -60,9 +60,8 @@ export const AnnotationForm: React.FC<AnnotationFormProps> = (props) => {
{t("annotation.form.add-annotation")}
</Button>
);
} else {
return <AnnotationFormContent onClose={handleClose} {...props} />;
}
return <AnnotationFormContent onClose={handleClose} {...props} />;
};

export const AnnotationFormContent: React.FC<
Expand Down
14 changes: 12 additions & 2 deletions apps/frontend/src/components/annotation/AnnotationPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ const AnnotationList: React.FC<
export const AnnotationPanel: React.FC<AnnotationPanelProps> = ({
annotationCount,
playerIsReady,
videoPlayerRef,
...props
}) => {
const [value, setValue] = useState("1");
Expand Down Expand Up @@ -269,9 +270,18 @@ export const AnnotationPanel: React.FC<AnnotationPanelProps> = ({
</TabPanel>
<TabPanel
value="2"
sx={{ height: "90%", padding: 0, position: "relative" }}
sx={{
height: "100%",
padding: 0,
paddingBottom: "100px",
position: "relative",
}}
>
<ChaptersPanel project={props.project} user={props.user} />
<ChaptersPanel
project={props.project}
user={props.user}
videoPlayerRef={videoPlayerRef}
/>
</TabPanel>
</TabContext>
</Paper>
Expand Down
Loading

0 comments on commit 19723d0

Please sign in to comment.