Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion bin/www
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var http = require("http");
/**
* Get port from environment and store in Express.
*/

/* CodeReview <David> : front and back hosting on same port */
var port = normalizePort(process.env.PORT || "3001");
app.set("port", port);

Expand Down
1 change: 1 addition & 0 deletions front/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "front",
"version": "0.1.0",
"private": true,
"//": ["CodeReview <David> : front and back hosting on same port"],
"proxy": "http://localhost:3001",
"dependencies": {
"axios": "^0.18.0",
Expand Down
1 change: 1 addition & 0 deletions front/src/components/Comment.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ class Comment extends Component {
axios
.post("/search/saveComments", {
data: {
/* CodeReview <David>: username never changed */
username: "demo",
professor: this.state.professor,
courseId: this.state.courseId,
Expand Down
1 change: 1 addition & 0 deletions front/src/components/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ class Login extends Component {
loggedin: true
});
alert("Login succeed");
/* CodeReview <David> add item to localStorage here */
this.props.history.push("/search");
})
.catch(error => {
Expand Down
1 change: 1 addition & 0 deletions front/src/components/NavBar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { NavLink } from "react-router-dom";
export default class NavBar extends Component {
logOut(e) {
e.preventDefault();
/* CodeReview <David>: localStorage never added items */
localStorage.removeItem("usertoken");
}

Expand Down
18 changes: 16 additions & 2 deletions front/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4399,7 +4399,7 @@ hoek@4.x.x:
resolved "https://registry.yarnpkg.com/hoek/-/hoek-4.2.1.tgz#9634502aa12c445dd5a7c5734b572bb8738aacbb"
integrity sha512-QLg82fGkfnJ/4iy1xZ81/9SIJiq1NGFUMGs6ParyjBZr6jW2Ufj/snDqTHixNlHdPNwN2RLVD0Pi3igeK9+JfA==

hoist-non-react-statics@^2.5.0:
hoist-non-react-statics@^2.5.0, hoist-non-react-statics@^2.5.5:
version "2.5.5"
resolved "https://registry.yarnpkg.com/hoist-non-react-statics/-/hoist-non-react-statics-2.5.5.tgz#c5903cf409c0dfd908f388e619d86b9c1174cb47"
integrity sha512-rqcy4pJo55FTTLWt+bU8ukscqHeE/e9KWvsOW2b/a3afxQZhwkQdT1rPPCJ0rYXdj4vNcasY8zHTH+jF/qStxw==
Expand Down Expand Up @@ -5936,7 +5936,7 @@ lodash.uniq@^4.5.0:
resolved "https://registry.yarnpkg.com/lodash.uniq/-/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773"
integrity sha1-0CJTc662Uq3BvILklFM5qEJ1R3M=

"lodash@>=3.5 <5", lodash@^4.13.1, lodash@^4.17.10, lodash@^4.17.11, lodash@^4.17.4, lodash@^4.17.5:
"lodash@>=3.5 <5", lodash@^4.13.1, lodash@^4.16.6, lodash@^4.17.10, lodash@^4.17.11, lodash@^4.17.4, lodash@^4.17.5:
version "4.17.11"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.11.tgz#b39ea6229ef607ecd89e2c8df12536891cac9b8d"
integrity sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==
Expand Down Expand Up @@ -6555,6 +6555,11 @@ object-keys@^1.0.11, object-keys@^1.0.12:
resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.1.0.tgz#11bd22348dd2e096a045ab06f6c85bcc340fa032"
integrity sha512-6OO5X1+2tYkNyNEx6TsCxEqFfRWaqx6EtMiSbGrw8Ob8v9Ne+Hl8rBAgLBZn5wjEz3s/s6U1WXFUFOcxxAwUpg==

object-unfreeze@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/object-unfreeze/-/object-unfreeze-1.1.0.tgz#69628bea1f3c9d29f4eb0ba63b38002d70ea3ce9"
integrity sha1-aWKL6h88nSn06wumOzgALXDqPOk=

object-visit@^1.0.0:
version "1.0.1"
resolved "https://registry.yarnpkg.com/object-visit/-/object-visit-1.0.1.tgz#f79c4493af0c5377b59fe39d395e41042dd045bb"
Expand Down Expand Up @@ -7986,6 +7991,15 @@ react-app-polyfill@^0.2.1:
raf "3.4.1"
whatwg-fetch "3.0.0"

react-css-modules@^4.7.9:
version "4.7.9"
resolved "https://registry.yarnpkg.com/react-css-modules/-/react-css-modules-4.7.9.tgz#459235e149a0df7a62b092ae079d53cb0b6154ee"
integrity sha512-IGilzBffKHk0PFLb4cTbqqptXJcDmXTZPQ2rEVvd03zDXT88QyGVPYSQK0j7TYx8xFi3pK4EGDhaKYG5TXGpwg==
dependencies:
hoist-non-react-statics "^2.5.5"
lodash "^4.16.6"
object-unfreeze "^1.1.0"

react-custom-scrollbars@^4.2.1:
version "4.2.1"
resolved "https://registry.yarnpkg.com/react-custom-scrollbars/-/react-custom-scrollbars-4.2.1.tgz#830fd9502927e97e8a78c2086813899b2a8b66db"
Expand Down