Skip to content

Commit

Permalink
Merge pull request #870 from parlemonde/david/h5p
Browse files Browse the repository at this point in the history
Add nodeJS H5p!
  • Loading branch information
DavidRobertAnsart authored Feb 13, 2024
2 parents c8bcd88 + d3e0b3e commit e3c07e5
Show file tree
Hide file tree
Showing 613 changed files with 57,066 additions and 108 deletions.
8 changes: 7 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
.next
__mocks__
.dynamodb
.github
.minio-data
.mysql-data
.vscode
.yarn
.next
dist
public
node_modules
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ mariaDB
.minio-data
.postgres-data
.mysql-data
.dynamodb
.env.*

public/sw.js
Expand Down
657 changes: 621 additions & 36 deletions .pnp.cjs

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ RUN yarn

# Copy app files
COPY next.config.js .
COPY h5p-config.json .
COPY --from=build-dependencies app/dist dist
COPY --from=build-dependencies app/public public

Expand Down
1 change: 1 addition & 0 deletions Dockerfile.development
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ COPY .eslintrc.js ./
COPY .prettierrc.js ./
COPY .svgrrc.js ./
COPY .swcrc ./
COPY h5p-config.json ./
COPY nodemon.json ./
COPY next-env.d.ts ./
COPY next.config.js ./
Expand Down
10 changes: 10 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ services:
condition: service_completed_successfully
mysql:
condition: service_healthy
dynamodb:
condition: service_started
migration:
build:
context: ./
Expand Down Expand Up @@ -59,3 +61,11 @@ services:
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
8 changes: 0 additions & 8 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,6 @@ module.exports = {
});
return config;
},
webpackDevMiddleware: (config) => {
// Enable hot reloading
config.watchOptions = {
poll: 1000,
aggregateTimeout: 300,
};
return config;
},
experimental: { esmExternals: false },
eslint: {
// ESLint is already called before building with nextJS. So no need here.
Expand Down
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
"@types/sass": "1.43.1",
"@types/sharp": "0.30.4",
"@types/sortablejs": "1.13.0",
"@types/stream-buffers": "^3.0.7",
"@types/string-similarity": "4.0.0",
"@types/supertest": "2.0.12",
"@types/three": "0.149.0",
Expand Down Expand Up @@ -123,6 +124,9 @@
"@emotion/server": "^11.4.0",
"@emotion/styled": "^11.9.3",
"@hookform/resolvers": "^2.9.10",
"@lumieducation/h5p-express": "^9.3.2",
"@lumieducation/h5p-react": "^9.3.2",
"@lumieducation/h5p-server": "^9.3.2",
"@mui/icons-material": "^5.8.4",
"@mui/material": "^5.8.5",
"@mui/system": "^5.8.5",
Expand Down Expand Up @@ -178,6 +182,7 @@
"sass": "^1.53.0",
"sharp": "^0.30.7",
"sortablejs": "^1.15.0",
"stream-buffers": "^3.0.2",
"string-similarity": "^4.0.4",
"three": "0.150.1",
"three-conic-polygon-geometry": "^1.6.1",
Expand Down
3 changes: 3 additions & 0 deletions public/h5p/core/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
vendor
*~
.idea
Loading

0 comments on commit e3c07e5

Please sign in to comment.