Skip to content

Commit

Permalink
final
Browse files Browse the repository at this point in the history
  • Loading branch information
Julia Khabibova committed Oct 28, 2023
1 parent b521bd6 commit ba7b402
Show file tree
Hide file tree
Showing 29 changed files with 11 additions and 145 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ node_modules
/coverage

# production
/build
build

# misc
.env
Expand Down
9 changes: 9 additions & 0 deletions backend/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = crlf
charset = utf-8
trim_trailing_whitespace = false
insert_final_newline = false
2 changes: 0 additions & 2 deletions backend/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ const errorHandler = require('./middlewares/error-handler');

const { PORT = 3000, DB_URL = 'mongodb://127.0.0.1:27017/mestodb' } = process.env;

console.log(process.env)

const app = express();

app.use(cors());
Expand Down
2 changes: 0 additions & 2 deletions backend/middlewares/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ const jwt = require('jsonwebtoken');
const { SECRET_KEY = 'mesto-test' } = process.env;
const UnautorizedError = require('../errors/UnauthorizedError');

console.log(SECRET_KEY)

module.exports = (req, res, next) => {

Check failure on line 5 in backend/middlewares/auth.js

View workflow job for this annotation

GitHub Actions / test_config

Expected to return a value at the end of arrow function
const { authorization } = req.headers;

Expand Down
2 changes: 1 addition & 1 deletion backend/middlewares/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ const errorLogger = expressWinston.errorLogger({
module.exports = {
requestLogger,
errorLogger,
};
};
Binary file removed frontend/build/.DS_Store
Binary file not shown.
28 changes: 0 additions & 28 deletions frontend/build/asset-manifest.json

This file was deleted.

1 change: 0 additions & 1 deletion frontend/build/index.html

This file was deleted.

2 changes: 0 additions & 2 deletions frontend/build/static/css/main.1ff13f9f.css

This file was deleted.

1 change: 0 additions & 1 deletion frontend/build/static/css/main.1ff13f9f.css.map

This file was deleted.

3 changes: 0 additions & 3 deletions frontend/build/static/js/main.b5fa101b.js

This file was deleted.

61 changes: 0 additions & 61 deletions frontend/build/static/js/main.b5fa101b.js.LICENSE.txt

This file was deleted.

1 change: 0 additions & 1 deletion frontend/build/static/js/main.b5fa101b.js.map

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

3 changes: 0 additions & 3 deletions frontend/build/static/media/close.2ceb783afbab75916ddc.svg

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions frontend/build/static/media/edit.8667ac4a523e8fc42e59.svg

This file was deleted.

0 comments on commit ba7b402

Please sign in to comment.