Skip to content

Commit

Permalink
Fix build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
chunweii committed Nov 1, 2023
1 parent 0dd7fcc commit 6f41419
Show file tree
Hide file tree
Showing 8 changed files with 221 additions and 2 deletions.
1 change: 1 addition & 0 deletions frontend/src/pages/profile/[id]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export default function Page() {
console.log(err);
});
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [currentUser]);

return (
Expand Down
1 change: 1 addition & 0 deletions frontend/src/pages/profile/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export default function Page() {
console.log(err);
});
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [currentUser]);

return (
Expand Down
1 change: 1 addition & 0 deletions frontend/src/pages/questions/new.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export default function NewQuestion() {
if (!currentUser || !isAdmin) {
router.push("/");
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [authIsReady, currentUser])


Expand Down
3 changes: 2 additions & 1 deletion frontend/src/pages/settings/_match.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ export default function MatchSettingsCard() {
setIsLoading(false);
});
}
}, [])
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [currentUser])

useEffect(() => {
setUpdatedUser((prev) => ({ ...prev, matchDifficulty: selectedDifficulty }));
Expand Down
64 changes: 64 additions & 0 deletions services/admin-service/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Ignore built ts files
dist/**/*

# Dependency directories
node_modules/
jspm_packages/

# Typescript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# next.js build output
.next
64 changes: 64 additions & 0 deletions services/gateway/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Ignore built ts files
dist/**/*

# Dependency directories
node_modules/
jspm_packages/

# Typescript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# next.js build output
.next
66 changes: 65 additions & 1 deletion services/matching-service/src/swagger-output.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,71 @@
}
}
},
"/api/matching-service/": {
"/api/matching-service/match/{room_id}": {
"get": {
"description": "",
"parameters": [
{
"name": "room_id",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "OK"
},
"404": {
"description": "Not Found"
}
}
},
"patch": {
"description": "",
"parameters": [
{
"name": "room_id",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "OK"
},
"400": {
"description": "Bad Request"
},
"404": {
"description": "Not Found"
},
"500": {
"description": "Internal Server Error"
}
},
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"questionId": {
"example": "any"
}
}
}
}
}
}
}
},
"/api/matching-service/demo": {
"get": {
"description": "",
"responses": {
Expand Down
23 changes: 23 additions & 0 deletions services/user-service/src/swagger-output.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,29 @@
}
}
],
"responses": {
"200": {
"description": "OK"
},
"500": {
"description": "Internal Server Error"
}
}
}
},
"/api/user-service/attempt/{attempt_id}": {
"get": {
"description": "",
"parameters": [
{
"name": "attempt_id",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "OK"
Expand Down

0 comments on commit 6f41419

Please sign in to comment.