diff --git a/package-lock.json b/package-lock.json index 7daaf92..c757fae 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8578,6 +8578,11 @@ "resolved": "https://registry.npmjs.org/vue-template-es2015-compiler/-/vue-template-es2015-compiler-1.9.1.tgz", "integrity": "sha512-4gDntzrifFnCEvyoO8PqyJDmguXgVPxKiIxrBKjIowvL9l+N66196+72XVYR8BBf1Uv1Fgt3bGevJ+sEmxfZzw==" }, + "vuex": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/vuex/-/vuex-3.3.0.tgz", + "integrity": "sha512-1MfcBt+YFd20DPwKe0ThhYm1UEXZya4gVKUvCy7AtS11YAOUR+9a6u4fsv1Rr6ePZCDNxW/M1zuIaswp6nNv8Q==" + }, "watchpack": { "version": "1.6.1", "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-1.6.1.tgz", diff --git a/package.json b/package.json index d21aac8..c4f1b86 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,8 @@ "sass": "^1.26.3", "sass-loader": "^8.0.2", "vue": "^2.3.3", - "vue-template-compiler": "^2.6.11" + "vue-template-compiler": "^2.6.11", + "vuex": "^3.3.0" }, "devDependencies": { "@vue/cli-plugin-eslint": "^4.3.1", diff --git a/src/App.vue b/src/App.vue index a89f9c3..d160639 100644 --- a/src/App.vue +++ b/src/App.vue @@ -3,15 +3,19 @@ id="app" @keyup="keyup" tabindex="-1" - v-bind:class="{ screenshot: isScreenshot }" - v-bind:style="{ backgroundImage: background ? `url('${background}')` : '' }" + v-bind:class="{ screenshot: grimoire.isScreenshot }" + v-bind:style="{ + backgroundImage: grimoire.background + ? `url('${grimoire.background}')` + : '' + }" >
Welcome to the (unofficial) Virtual Blood on the Clocktower Town Square!
Please add more players through the - + Menu on the top right or by pressing [A].
@@ -24,252 +28,62 @@ v-if="players.length" > - -

Select an edition:

-
    -
  • - {{ edition.name }} -
  • -
-
- - - - - -
- - -
+ + +
+ + diff --git a/src/components/Menu.vue b/src/components/Menu.vue new file mode 100644 index 0000000..37c44fe --- /dev/null +++ b/src/components/Menu.vue @@ -0,0 +1,246 @@ + + + + + diff --git a/src/components/RoleSelectionModal.vue b/src/components/RoleSelectionModal.vue index d623351..26d9822 100644 --- a/src/components/RoleSelectionModal.vue +++ b/src/components/RoleSelectionModal.vue @@ -1,8 +1,8 @@