Skip to content

Commit

Permalink
feat(Musics): Add sounds and music. Closes #135
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinezanardi committed Mar 3, 2021
1 parent 5890114 commit 6c47509
Show file tree
Hide file tree
Showing 13 changed files with 129 additions and 66 deletions.
7 changes: 5 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
* [#143](https://github.com/antoinezanardi/werewolves-assistant-web/issues/143) - Style for players who voted.
* [#144](https://github.com/antoinezanardi/werewolves-assistant-web/issues/144) - Players are getting asleep when action is over.
* [#145](https://github.com/antoinezanardi/werewolves-assistant-web/issues/145) - Capitalize all roles in texts.
* [#146](https://github.com/antoinezanardi/werewolves-assistant-web/issues/146) - Improve SEO.

### 🐛 Bug fixes

Expand All @@ -45,14 +46,16 @@
### 📦 Packages

* `howler` installed with version `2.2.1`.
* `particles.vue` installed with version `2.2.1`.
* `particles.vue` installed with version `2.2.2`.
* `vue-backtotop` installed with version `1.6.1`.
* `vue-meta` installed with version `2.4.0`.
* `@sentry/browser` updated to version `6.2.1`.
* `@sentry/integrations` updated to version `6.2.1`.
* `@vue/test-utils` updated to version `1.1.3`.
* `chai` updated to version `4.3.0`.
* `chai` updated to version `4.3.1`.
* `eslint` updated to version `7.21.0`.
* `eslint-plugin-vue` updated to version `7.7.0`.
* `jquery` updated to version `3.6.0`.
* `sweetalert2` updated to version `10.15.5`.
* `vue-i18n` updated to version `8.23.0`.
* `vue-gtag` updated to version `1.11.0`.
Expand Down
130 changes: 81 additions & 49 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"vue-js-toggle-button": "^1.3.3",
"vue-keypress": "^2.1.1",
"vue-lazyload": "^1.3.3",
"vue-meta": "^2.4.0",
"vue-roller": "^1.12.4",
"vue-router": "^3.5.1",
"vue-scrollto": "^2.20.0",
Expand Down
8 changes: 1 addition & 7 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
<!DOCTYPE html>
<html lang="fr">
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<meta name="description" content="L'assistant officiel du maître du jeu pour Les Loups-Garous de Thiercelieux."/>
<meta name="keywords" content="antoine, zanardi, loups, garous, werewolves, werewolf, thiercelieux, millers, hollow, assistant, aide, maitre, jeu, gratuit, vue"/>
<link rel="stylesheet" type="text/css" href="<%= BASE_URL %>css/loader.css">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title><%= htmlWebpackPlugin.options.title %></title>
</head>
<body>
<div id="app">
Expand Down
3 changes: 3 additions & 0 deletions public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
User-Agent: *
Allow: /
Sitemap: https://werewolves-assistant.antoinezanardi.fr/sitemaps.xml
16 changes: 14 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@

<script>
import { mapActions } from "vuex";
import SpinningLoader from "./components/SpinningLoader/SpinningLoader";
import NavBar from "./components/NavBar/NavBar";
import i18n from "@/plugins/vue-i18n";
import SpinningLoader from "@/components/SpinningLoader/SpinningLoader";
import NavBar from "@/components/NavBar/NavBar";
import NotAvailable from "@/components/NotAvailable/NotAvailable";
export default {
Expand Down Expand Up @@ -57,6 +58,17 @@ export default {
}
},
},
metaInfo: {
htmlAttrs: { lang: i18n.t("App.metaInfo.lang") },
title: i18n.t("App.metaInfo.title"),
meta: [
{ charset: "UTF-8" },
{ name: "viewport", content: "width=device-width, initial-scale=1.0" },
{ "http-equiv": "X-UA-Compatible", "content": "IE=edge" },
{ name: "description", content: i18n.t("App.metaInfo.description") },
{ name: "keywords", content: i18n.t("App.metaInfo.keywords") },
],
},
};
</script>

Expand Down
2 changes: 1 addition & 1 deletion src/classes/AudioManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class AudioManager {
const ambientNightFiles = [
"/audio/ambient/night/night-1.mp3",
"/audio/ambient/night/night-2.mp3",
"/audio/ambient/night/night-3f.mp3",
"/audio/ambient/night/night-3.mp3",
];
for (const ambientNightFile of ambientNightFiles) {
this.ambient.nightMusics.push(new Howl({ src: ambientNightFile, ...options }));
Expand Down
2 changes: 2 additions & 0 deletions src/components/About/About.vue
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@
import { mapGetters } from "vuex";
import RoleImage from "@/components/shared/Game/Role/RoleImage";
import RoleText from "@/components/shared/Game/Role/RoleText";
import { i18n } from "@/plugins";
export default {
name: "About",
Expand All @@ -180,6 +181,7 @@ export default {
created() {
localStorage.setItem("aboutPageVisited", "true");
},
metaInfo: { titleTemplate: `%s - ${i18n.t("About.metaInfo.title")}` },
};
</script>

Expand Down
Loading

0 comments on commit 6c47509

Please sign in to comment.