Skip to content

Commit

Permalink
console artifacts fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
aviamike committed Nov 6, 2019
1 parent 715220d commit 60243af
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 29 deletions.
16 changes: 0 additions & 16 deletions api/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,6 @@ app.use(
app.use(passport.initialize());
app.use(passport.session());

// mongoose

connect("mongodb://localhost:27017/final", {
useNewUrlParser: true,
useUnifiedTopology: true
});



// view engine setup
app.set('views', path.join(__dirname, 'views'));
app.set('view engine', 'jade');
Expand All @@ -82,13 +73,6 @@ app.use(express.urlencoded({ extended: false }));
app.use(cookieParser());
app.use(express.static(path.join(__dirname, 'public')));


// Подключаем mongoose.
const mongoose = require("mongoose");
mongoose.connect("mongodb://localhost:27017/final", {
useNewUrlParser: true
});

app.use('/', indexRouter);
app.use('/users/', usersRouter);
app.use("/testAPI", testAPIRouter);
Expand Down
9 changes: 1 addition & 8 deletions client/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@
href="http://fonts.googleapis.com/icon?family=Material+Icons"
rel="stylesheet"
/>
<!-- Import materialize.css -->
<link href="CDN OR PATH TO NODE_MODULES.css" rel="stylesheet" />
<!--Import Google Icon Font-->
<link
href="https://fonts.googleapis.com/icon?family=Material+Icons"
rel="stylesheet"
Expand All @@ -46,11 +43,7 @@
</head>
<body>
<script src="https://apps.elfsight.com/p/platform.js" defer></script>
<noscript>You need to enable JavaScript to run this app.</noscript>
<!-- Import materialize.js -->
<script src="CDN OR PATH TO NODE_MODULES.js"></script>
<!-- And then your bundled js -->
<script src="path/to/your/bundle.js"></script>

<div id="root"></div>
<!--
This HTML file is a template.
Expand Down
1 change: 0 additions & 1 deletion client/src/Components/Map/Map.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ function mapDispatchToProps(dispatch) {
}

function mapStateToProps(store) {
console.log("ollo.llol", store);
return {
artist: store.artist,
concerts: store.concerts
Expand Down
1 change: 0 additions & 1 deletion client/src/Components/Navbar/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ class Navbar extends Component {
const response = await fetch('/users/getsession/');

const user = await response.json();
console.log(user);
this.props.setUserAC(user);
}

Expand Down
1 change: 0 additions & 1 deletion client/src/Components/Youtube/Youtube.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ class Youtube extends Component {

render() {
const { url, playing, controls, volume, muted, played, pip } = this.state;
console.log("DEBUG", this.props.url, Math.random());

return (
<div className="app">
Expand Down
1 change: 0 additions & 1 deletion client/src/Containers/LandingPage/LandingPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ class LandingPage extends Component {

handleClick = async e => {
// console.dir(e);
console.log(e.target.name);
await this.setState({ text: e.target.name });
await this.props.fetchArtistIdAC(this.state.text);
await this.props.fetchArtistInfoAC(this.state.text);
Expand Down
2 changes: 1 addition & 1 deletion client/src/Redux/artistReducer/artistActions.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const fetchArtistInfoAC = text => async dispatch => {
try {
const res = await axios.post("/search", { text });
const artist = get(res, "data.dataSearch.artist", {});
const topTracks = get(res, "data.dataSearch.topTracks", {});
const topTracks = get(res, "data.dataSearch.topTracks", []);

dispatch({
type: TYPES.FETCH_ARTIST_INFO_SUCCESS,
Expand Down

0 comments on commit 60243af

Please sign in to comment.