Skip to content

Commit

Permalink
Merge branch 'ft-dashboard-stats-v1' of github.com:parlemonde/1villag…
Browse files Browse the repository at this point in the history
…e into contribution-chart
  • Loading branch information
MelissaOlas committed Jun 4, 2024
2 parents d70abad + d545947 commit eb10abe
Show file tree
Hide file tree
Showing 383 changed files with 28,242 additions and 28,385 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,5 @@ medias
server/ffmpeg-audio-mixer

*.http

.husky/
52,767 changes: 25,375 additions & 27,392 deletions .pnp.cjs

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
},
"eslint.nodePath": ".yarn/sdks",
"prettier.prettierPath": ".yarn/sdks/prettier/index.js",
"prettier.configPath": ".prettierrc.js",
"typescript.tsdk": ".yarn/sdks/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true,
"editor.formatOnSave": true,
Expand Down
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.
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.
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 removed .yarn/cache/clsx-npm-2.1.1-96125b98be-cdfb57fa6c.zip
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.
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 removed .yarn/cache/qs-npm-6.12.1-8172168073-035bcad2a1.zip
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.
4 changes: 3 additions & 1 deletion docker-compose-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# environment:
# - MYSQL_ROOT_PASSWORD=my-secret-pw
# healthcheck:
# test: [ "CMD", "mysqladmin", "ping", "-h", "localhost" ]
# test: [ 'CMD', 'mysqladmin', 'ping', '-h', 'localhost' ]
# timeout: 20s
# retries: 10
# ports:
Expand All @@ -25,3 +25,5 @@
# volumes:
# - ./.minio-data:/data
# command: server --console-address ":9090" /data


6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,17 @@ services:
depends_on:
mysql:
condition: service_healthy
command: ['yarn', 'run', 'migration:run-dev']
command: [ 'yarn', 'run', 'migration:run-dev' ]
mysql:
image: mysql:8
environment:
- MYSQL_ROOT_PASSWORD=my-secret-pw
healthcheck:
test: ['CMD', 'mysqladmin', 'ping', '-h', 'localhost']
test: [ 'CMD', 'mysqladmin', 'ping', '-h', 'localhost' ]
timeout: 20s
retries: 10
ports:
- '3306:3306'
- '3307:3306'
- '33060:33060'
volumes:
- ./.mysql-data:/var/lib/mysql
Expand Down
1 change: 1 addition & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ module.exports = {
issuer: /\.[jt]sx?$/,
use: ['@svgr/webpack'],
});
config.resolve.alias.canvas = false;
return config;
},
experimental: { esmExternals: false },
Expand Down
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"migration:run": "yarn typeorm migration:run -d dist/server/utils/data-source.js",
"migration:run-dev": "rm -rf dist && yarn build:server && yarn typeorm migration:run -d dist/server/utils/data-source.js || true",
"migration:revert-dev": "rm -rf dist && yarn build:server && npx typeorm migration:revert -d dist/server/utils/data-source.js || true",
"typeorm": "typeorm-ts-node-commonjs"
"typeorm": "typeorm-ts-node-commonjs",
"prepare": "husky"
},
"jest": {
"testEnvironment": "node",
Expand Down Expand Up @@ -55,6 +56,7 @@
},
"devDependencies": {
"@next/eslint-plugin-next": "^12.1.6",
"@react-pdf/types": "^2.5.0",
"@svgr/webpack": "6.2.1",
"@swc/cli": "^0.1.57",
"@swc/core": "1.2.205",
Expand Down Expand Up @@ -109,6 +111,7 @@
"eslint-plugin-react": "7.30.1",
"eslint-plugin-react-hooks": "4.6.0",
"geojson": "0.5.0",
"husky": "^9.0.11",
"jest": "28.1.1",
"nodemon": "2.0.18",
"prettier": "2.7.1",
Expand Down Expand Up @@ -155,7 +158,7 @@
"express": "^4.18.1",
"express-rate-limit": "^6.4.0",
"express-useragent": "^1.0.15",
"ffmpeg-audio-mixer": "^1.3.0",
"ffmpeg-audio-mixer": "^1.5.0",
"fs-extra": "^10.1.0",
"helmet": "^5.1.0",
"html-to-draftjs": "^1.5.0",
Expand All @@ -179,6 +182,7 @@
"query-string": "^7.1.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-pdf": "^8.0.0",
"react-player": "^2.10.1",
"react-query": "^3.39.2",
"resize-observer-polyfill": "^1.5.1",
Expand Down
25 changes: 25 additions & 0 deletions prepareHusky.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/* eslint-disable no-console */
import fs from 'fs';

function checkHuskyFolder() {
const pathHuskyDir = './.husky';
const huskyFolderExists = fs.existsSync(pathHuskyDir);
if (!huskyFolderExists) {
// eslint-disable-next-line no-undef
const msg = 'You must run the following command first command\n- npx husky init && node ./prepareHusky.mjs';
// console.log('Husky pre-push setup created!!');
throw msg;
} else {
fs.unlink(pathHuskyDir + '/pre-commit', (err) => {
// eslint-disable-next-line no-undef
if (err) console.log('No pre-commit file found');
});
fs.writeFile(`${pathHuskyDir}/pre-push`, 'yarn build', { ovewrite: true }, function (err) {
if (err) throw err;
// eslint-disable-next-line no-undef
console.log('Husky setup Ok!');
});
}
}

checkHuskyFolder();
Loading

0 comments on commit eb10abe

Please sign in to comment.