From 27419508376f4af966812477a0253d9c67a62c05 Mon Sep 17 00:00:00 2001 From: Steffen Date: Sun, 27 Dec 2020 20:11:57 +0100 Subject: [PATCH] remove screenshot feature as it is no longer needed --- public/index.html | 2 +- src/App.vue | 19 +------- src/components/Menu.vue | 22 ---------- src/components/Player.vue | 9 ---- src/components/Screenshot.vue | 83 ----------------------------------- src/components/Token.vue | 4 -- src/components/TownSquare.vue | 19 -------- src/main.js | 1 - src/store/index.js | 11 ----- 9 files changed, 3 insertions(+), 167 deletions(-) delete mode 100644 src/components/Screenshot.vue diff --git a/public/index.html b/public/index.html index 88c0895..2f0d5a2 100644 --- a/public/index.html +++ b/public/index.html @@ -25,7 +25,7 @@ - + diff --git a/src/App.vue b/src/App.vue index 2556c5b..a1da4eb 100644 --- a/src/App.vue +++ b/src/App.vue @@ -3,10 +3,7 @@ id="app" @keyup="keyup" tabindex="-1" - :class="{ - screenshot: grimoire.isScreenshot, - night: grimoire.isNight - }" + :class="{ night: grimoire.isNight }" :style="{ backgroundImage: grimoire.background ? `url('${grimoire.background}')` @@ -19,7 +16,7 @@ - + @@ -76,9 +73,6 @@ export default { }; }, methods: { - takeScreenshot(dimensions) { - this.$refs.menu.takeScreenshot(dimensions); - }, keyup({ key, ctrlKey, metaKey }) { if (ctrlKey || metaKey) return; switch (key.toLocaleLowerCase()) { @@ -220,15 +214,6 @@ body { } } -// Firefox doesn't support screenshot mode yet -@-moz-document url-prefix() { - #controls > span.camera, - .player > .menu .screenshot, - .bluffs > svg.fa-camera { - display: none; - } -} - * { box-sizing: border-box; position: relative; diff --git a/src/components/Menu.vue b/src/components/Menu.vue index fe4612c..6772c21 100644 --- a/src/components/Menu.vue +++ b/src/components/Menu.vue @@ -1,6 +1,5 @@