diff --git a/javascripts/mon-compte/ma-collection/details.js b/javascripts/mon-compte/ma-collection/details.js index 4ff50d1..c515d95 100644 --- a/javascripts/mon-compte/ma-collection/details.js +++ b/javascripts/mon-compte/ma-collection/details.js @@ -40,6 +40,8 @@ if (typeof item !== "undefined") { this.shareMessageTransformed = message .replaceAll("{artist}", this.item.artists[0].name) .replaceAll("{format}", this.item.formats[0].name) + .replaceAll("{genres}", this.item.genres.join()) + .replaceAll("{styles}", this.item.styles.join()) .replaceAll("{year}", this.item.year) .replaceAll("{video}", video) .replaceAll("{album}", this.item.title); diff --git a/src/app.js b/src/app.js index e9fcc0b..f8dd554 100644 --- a/src/app.js +++ b/src/app.js @@ -9,7 +9,7 @@ import MongoStore from "connect-mongo"; import passportConfig from "./libs/passport"; -import config, { env, mongoDbUri, secret } from "./config"; +import config, { env, mongoDbUri, port, secret } from "./config"; import { isXhr } from "./helpers"; @@ -150,6 +150,6 @@ app.use((error, req, res, next) => { } }); -console.log("Server ready!"); +console.log(`Server listening on port ${port}!`); export default app; diff --git a/src/middleware/Albums.js b/src/middleware/Albums.js index 1fbfda1..a095525 100644 --- a/src/middleware/Albums.js +++ b/src/middleware/Albums.js @@ -83,6 +83,8 @@ class Albums extends Pages { ) .replaceAll("{artist}", data.artists[0].name) .replaceAll("{format}", data.formats[0].name) + .replaceAll("{genres}", data.genres.join()) + .replaceAll("{styles}", data.styles.join()) .replaceAll("{year}", data.year) .replaceAll("{video}", video) .replaceAll("{album}", data.title)} diff --git a/views/pages/mon-compte/index.ejs b/views/pages/mon-compte/index.ejs index 187d5b2..cc96ebc 100644 --- a/views/pages/mon-compte/index.ejs +++ b/views/pages/mon-compte/index.ejs @@ -118,6 +118,8 @@
  • {format}, exemple : Cassette
  • {year}, exemple: 1984
  • {video}, exemple : https://www.youtube.com/watch?v=Qx0s8OqgBIw
  • +
  • {genres}, exemple : Rock
  • +
  • {styles}, exemple : Hard Rock, Heavy Metal
  • diff --git a/views/pages/mon-compte/ma-collection/details.ejs b/views/pages/mon-compte/ma-collection/details.ejs index f99eed8..9e88052 100644 --- a/views/pages/mon-compte/ma-collection/details.ejs +++ b/views/pages/mon-compte/ma-collection/details.ejs @@ -79,6 +79,8 @@
  • {format}, exemple : Cassette
  • {year}, exemple: 1984
  • {video}, exemple : https://www.youtube.com/watch?v=Qx0s8OqgBIw
  • +
  • {genres}, exemple : Rock
  • +
  • {styles}, exemple : Hard Rock, Heavy Metal