Skip to content

Commit

Permalink
Fix docker compose and missing pdf value
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidRobertAnsart committed Dec 15, 2024
1 parent befdc28 commit 3127696
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 31 deletions.
62 changes: 35 additions & 27 deletions docker-compose-windows.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,35 @@
# services:
# mysql:
# image: mysql:8
# environment:
# - MYSQL_ROOT_PASSWORD=my-secret-pw
# healthcheck:
# test: [ 'CMD', 'mysqladmin', 'ping', '-h', 'localhost' ]
# timeout: 20s
# retries: 10
# ports:
# - '3306:3306'
# - '33060:33060'
# volumes:
# - ./.mysql-data:/var/lib/mysql
# minio:
# image: minio/minio
# ports:
# - '9000:9000'
# - '9090:9090'
# environment:
# - MINIO_ROOT_USER=minioadmin
# - MINIO_ROOT_PASSWORD=minioadmin
# - MINIO_ACCESS_KEY=minio
# - MINIO_SECRET_KEY=minio123
# volumes:
# - ./.minio-data:/data
# command: server --console-address ":9090" /data
services:
mysql:
image: mysql:8
environment:
- MYSQL_ROOT_PASSWORD=my-secret-pw
healthcheck:
test: ['CMD', 'mysqladmin', 'ping', '-h', 'localhost']
timeout: 20s
retries: 10
ports:
- '3306:3306'
- '33060:33060'
volumes:
- ./.mysql-data:/var/lib/mysql
minio:
image: minio/minio
ports:
- '9000:9000'
- '9090:9090'
environment:
- MINIO_ROOT_USER=minioadmin
- MINIO_ROOT_PASSWORD=minioadmin
- MINIO_ACCESS_KEY=minio
- MINIO_SECRET_KEY=minio123
volumes:
- ./.minio-data:/data
command: server --console-address ":9090" /data
dynamodb:
command: '-jar DynamoDBLocal.jar -sharedDb -dbPath ./data'
image: 'amazon/dynamodb-local:latest'
ports:
- '8000:8000'
volumes:
- './.dynamodb:/home/dynamodblocal/data'
working_dir: /home/dynamodblocal
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ services:
timeout: 20s
retries: 10
ports:
- '3307:3306'
- '3306:3306'
- '33060:33060'
volumes:
- ./.mysql-data:/var/lib/mysql
Expand Down
2 changes: 1 addition & 1 deletion src/components/lightbox/Lightbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const LightBox = ({ url, children, isPDF }: LightBoxProps) => {
marginBottom: 10,
}}
>
<Page width={380} scale={2.0} pageNumber={v + 1} />
<Page width={430} scale={2.0} pageNumber={v + 1} />
</div>
))}
</Document>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/contenu-libre/2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const ContenuLibre = () => {

const data = (activity?.data as FreeContentData) || null;
const errorSteps = React.useMemo(() => {
if (activity !== null && activity.content.filter((c) => c.value.length > 0 && c.value !== '<p></p>\n').length === 0) {
if (activity !== null && activity.content.filter((c) => c.value?.length > 0 && c.value !== '<p></p>\n').length === 0) {
return [0];
}
return [];
Expand Down
2 changes: 1 addition & 1 deletion src/pages/contenu-libre/3.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const ContenuLibre = () => {
const errorSteps = React.useMemo(() => {
const errors: number[] = [];
const data = (activity?.data as FreeContentData) || null;
if (activity !== null && activity.content.filter((c) => c.value.length > 0 && c.value !== '<p></p>\n').length === 0) {
if (activity !== null && activity.content.filter((c) => c.value?.length > 0 && c.value !== '<p></p>\n').length === 0) {
errors.push(0);
}
if (data !== null && (!data.title || !data.resume)) {
Expand Down

0 comments on commit 3127696

Please sign in to comment.