Skip to content

Commit 85e2463

Browse files
committed
view discussion, create and list comments
1 parent 4631591 commit 85e2463

20 files changed

+437
-131
lines changed

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,20 @@ The application is used for having discussions between team members.
66

77
The goal if this application is to showcase the following real-world problems of a React application:
88

9-
- [ ] Authentitication
9+
- [x] Authentitication
1010
- [ ] Authorization
1111
- [ ] Routing
12-
- [ ] Forms
13-
- [ ] API calls
12+
- [x] Forms
13+
- [x] API calls
1414
- [ ] Client related state
15-
- [ ] Server related state
16-
- [ ] Project structure
17-
- [ ] TypeScript
15+
- [x] Server related state
16+
- [x] Project structure
17+
- [x] TypeScript
1818
- [ ] a11y
1919
- [ ] i18n
2020
- [ ] ESLint, Prettier, Husky setup
2121
- [ ] Testing
22-
- [ ] API Mocking
22+
- [x] API Mocking
2323

2424
## Data model
2525

craco.config.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
const path = require("path");
1+
const path = require('path');
22
module.exports = {
33
webpack: {
44
alias: {
5-
"@": path.resolve(__dirname, "src"),
5+
'@': path.resolve(__dirname, 'src'),
66
},
77
},
88
style: {
99
postcss: {
10-
plugins: [require("tailwindcss"), require("autoprefixer")],
10+
plugins: [require('tailwindcss'), require('autoprefixer')],
1111
},
1212
},
1313
};

package.json

+7
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"@craco/craco": "^6.1.2",
77
"@headlessui/react": "^1.2.0",
88
"@heroicons/react": "^1.0.1",
9+
"@tailwindcss/typography": "^0.4.1",
910
"@testing-library/jest-dom": "^5.11.4",
1011
"@testing-library/react": "^11.1.0",
1112
"@testing-library/user-event": "^12.1.10",
@@ -15,13 +16,16 @@
1516
"@types/react-dom": "^17.0.0",
1617
"axios": "^0.21.1",
1718
"clsx": "^1.1.1",
19+
"dompurify": "^2.2.9",
1820
"history": "^5.0.0",
1921
"jsonwebtoken": "^8.5.1",
2022
"lodash": "^4.17.21",
23+
"marked": "^2.0.7",
2124
"nanoid": "^3.1.23",
2225
"react": "^17.0.2",
2326
"react-dom": "^17.0.2",
2427
"react-hook-form": "^7.7.1",
28+
"react-markdown-editor-lite": "^1.2.4",
2529
"react-query": "^3.16.0",
2630
"react-query-auth": "^0.3.0",
2731
"react-router-dom": "^6.0.0-beta.0",
@@ -39,6 +43,7 @@
3943
"lint": "eslint --fix --ext .js,.ts,.tsx --ignore-path .gitignore .",
4044
"prettier": "prettier --ignore-path .gitignore --write \"**/*.+(js|json|ts|tsx)\"",
4145
"format": "npm run prettier -- --write",
46+
"check-types": "tsc --project tsconfig.json --pretty --noEmit",
4247
"check-format": "npm run prettier -- --list-different",
4348
"validate-and-build": "npm-run-all --parallel check-types check-format lint build",
4449
"generate": "plop"
@@ -57,8 +62,10 @@
5762
},
5863
"devDependencies": {
5964
"@mswjs/data": "^0.3.0",
65+
"@types/dompurify": "^2.2.2",
6066
"@types/jsonwebtoken": "^8.5.1",
6167
"@types/lodash": "^4.14.170",
68+
"@types/marked": "^2.0.3",
6269
"@typescript-eslint/eslint-plugin": "^4.25.0",
6370
"@typescript-eslint/parser": "^4.25.0",
6471
"autoprefixer": "^9",

0 commit comments

Comments
 (0)