-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Johannes Loher <[email protected]>
- Loading branch information
Showing
178 changed files
with
13,785 additions
and
25,312 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
node_modules/ | ||
deploy/ | ||
build/ | ||
db/ | ||
**/*.test.js | ||
.heroku/ |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
FROM node:20-alpine AS base | ||
|
||
FROM base AS pruner | ||
WORKDIR /app | ||
COPY . . | ||
RUN npm ci --workspaces=false | ||
RUN npx turbo prune @eop/client --docker | ||
|
||
FROM base AS builder | ||
WORKDIR /app | ||
COPY --from=pruner /app/out/json/ . | ||
COPY --from=pruner /app/out/package-lock.json ./package-lock.json | ||
RUN npm ci | ||
COPY --from=pruner /app/out/full/ . | ||
RUN npm run build -w @eop/shared | ||
ARG REACT_APP_EOP_IMPRINT | ||
ARG REACT_APP_EOP_PRIVACY | ||
ARG REACT_APP_EOP_BANNER_TEXT | ||
ENV REACT_APP_EOP_IMPRINT=$REACT_APP_EOP_IMPRINT | ||
ENV REACT_APP_EOP_PRIVACY=$REACT_APP_EOP_PRIVACY | ||
ENV REACT_APP_EOP_BANNER_TEXT=$REACT_APP_EOP_BANNER_TEXT | ||
RUN npm run build -w @eop/client | ||
|
||
FROM nginxinc/nginx-unprivileged:1.27.0-alpine | ||
COPY --from=builder /app/apps/client/nginx/etc/nginx/nginx.conf /etc/nginx/nginx.conf | ||
COPY --from=builder /app/apps/client/nginx/etc/nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf | ||
COPY --from=builder /app/apps/client/build /usr/share/nginx/html/ | ||
EXPOSE 8080 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import config from '@eop/eslint-config/type-checked'; | ||
import react from 'eslint-plugin-react/configs/recommended.js'; | ||
import tseslint from 'typescript-eslint'; | ||
|
||
export default tseslint.config( | ||
{ ignores: ['build/'] }, | ||
{ languageOptions: { parserOptions: { project: './tsconfig.json' } } }, | ||
{ settings: { react: { version: 'detect' } } }, | ||
react, | ||
...config, | ||
); |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
{ | ||
"name": "@eop/client", | ||
"type": "module", | ||
"version": "0.24.0", | ||
"main": "src/client/index.tsx", | ||
"scripts": { | ||
"build": "react-scripts build", | ||
"start": "react-scripts start", | ||
"test": "react-scripts test", | ||
"lint": "eslint .", | ||
"fixlint": "eslint . --fix", | ||
"checkformat": "prettier . --check", | ||
"format": "prettier . --write" | ||
}, | ||
"dependencies": { | ||
"@eop/cornucopia-cards": "*", | ||
"@eop/shared": "*", | ||
"@fortawesome/free-solid-svg-icons": "^5.15.3", | ||
"@fortawesome/react-fontawesome": "^0.2.0", | ||
"bootstrap": "^4.6.0", | ||
"jointjs": "^3.7.7", | ||
"lodash": "^4.17.21", | ||
"react": "^17.0.2", | ||
"react-countdown-circle-timer": "^3.2.1", | ||
"react-dom": "^17.0.2", | ||
"react-helmet": "^6.1.0", | ||
"react-map-interaction": "^2.1.0", | ||
"react-nl2br": "^1.0.4", | ||
"react-router-dom": "^5.3.1", | ||
"reactstrap": "^8.10.1", | ||
"reactstrap-confirm": "^1.3.2", | ||
"superagent": "^9.0.2" | ||
}, | ||
"devDependencies": { | ||
"@eop/eslint-config": "*", | ||
"@eop/prettier-config": "*", | ||
"@eop/typescript-config": "*", | ||
"@babel/plugin-proposal-private-property-in-object": "^7.21.11", | ||
"@testing-library/jest-dom": "^5.16.5", | ||
"@testing-library/react": "^12.1.5", | ||
"@testing-library/user-event": "^14.5.2", | ||
"@types/backbone": "^1.4.19", | ||
"@types/react": "^17.0.43", | ||
"@types/react-dom": "^17.0.14", | ||
"@types/react-helmet": "^6.1.11", | ||
"@types/react-router-dom": "^5.3.3", | ||
"@types/superagent": "^8.1.7", | ||
"eslint-plugin-react": "^7.34.3", | ||
"nock": "^13.3.8", | ||
"prettier": "^3.3.2", | ||
"react-scripts": "^5.0.1", | ||
"typescript": "^4.8.4", | ||
"typescript-eslint": "^8.0.0-alpha.37" | ||
}, | ||
"eslintConfig": { | ||
"extends": "react-app" | ||
}, | ||
"browserslist": { | ||
"production": [ | ||
">0.2%", | ||
"not dead", | ||
"not op_mini all" | ||
], | ||
"development": [ | ||
"last 1 chrome version", | ||
"last 1 firefox version", | ||
"last 1 safari version" | ||
] | ||
}, | ||
"jest": { | ||
"collectCoverageFrom": [ | ||
"src/**/*.{js,jsx,ts,tsx}", | ||
"!<rootDir>/node_modules/", | ||
"!src/serviceWorker.js", | ||
"!src/components/board/board.ignoretest.js", | ||
"!src/jointjs/shapes.js", | ||
"!src/index.tsx" | ||
], | ||
"coverageThreshold": { | ||
"global": { | ||
"branches": 5, | ||
"functions": 5, | ||
"lines": 5, | ||
"statements": 5 | ||
} | ||
}, | ||
"coverageReporters": [ | ||
"text", | ||
"lcov" | ||
] | ||
}, | ||
"private": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import config from '@eop/prettier-config'; | ||
|
||
export default config; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<!DOCTYPE html> | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
|
File renamed without changes
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
18 changes: 11 additions & 7 deletions
18
src/client/components/board/board.test.tsx → ...lient/src/components/board/board.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.