summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-12-16 16:12:41 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-12-16 16:12:41 +0900
commite7da505fb3fb93cb59047dec4e072f2c1ca99d7c (patch)
treed56278dd5999e2e5af996cee151a0bdba3ab5425 /src
parent10.64.0 (diff)
downloadsharkey-e7da505fb3fb93cb59047dec4e072f2c1ca99d7c.tar.gz
sharkey-e7da505fb3fb93cb59047dec4e072f2c1ca99d7c.tar.bz2
sharkey-e7da505fb3fb93cb59047dec4e072f2c1ca99d7c.zip
[Client] Bug fix and clean up
Diffstat (limited to 'src')
-rw-r--r--src/client/app/common/views/components/games/reversi/reversi.game.vue11
-rw-r--r--src/client/app/desktop/views/components/settings.vue6
-rw-r--r--src/client/app/mobile/views/pages/settings.vue8
-rw-r--r--src/client/app/store.ts3
4 files changed, 7 insertions, 21 deletions
diff --git a/src/client/app/common/views/components/games/reversi/reversi.game.vue b/src/client/app/common/views/components/games/reversi/reversi.game.vue
index 6d13b34c32..174d458185 100644
--- a/src/client/app/common/views/components/games/reversi/reversi.game.vue
+++ b/src/client/app/common/views/components/games/reversi/reversi.game.vue
@@ -31,8 +31,8 @@
@click="set(i)"
:title="`${String.fromCharCode(65 + o.transformPosToXy(i)[0])}${o.transformPosToXy(i)[1] + 1}`">
<template v-if="!$store.state.settings.games.reversi.useWhiteBlackStones">
- <img v-if="stone === true" :src="blackUser.avatarUrl" alt="black" :class="{ contrast: $store.state.settings.games.reversi.useContrastStones }">
- <img v-if="stone === false" :src="whiteUser.avatarUrl" alt="white" :class="{ contrast: $store.state.settings.games.reversi.useContrastStones }">
+ <img v-if="stone === true" :src="blackUser.avatarUrl" alt="black">
+ <img v-if="stone === false" :src="whiteUser.avatarUrl" alt="white">
</template>
<template v-if="$store.state.settings.games.reversi.useWhiteBlackStones">
<fa v-if="stone === true" :icon="fasCircle"/>
@@ -430,13 +430,6 @@ export default Vue.extend({
width 100%
height 100%
- &.contrast
- &[alt="black"]
- filter brightness(.5)
-
- &[alt="white"]
- filter brightness(2)
-
> .graph
display grid
grid-template-columns repeat(61, 1fr)
diff --git a/src/client/app/desktop/views/components/settings.vue b/src/client/app/desktop/views/components/settings.vue
index d2ba2c8e79..567bb6c2b4 100644
--- a/src/client/app/desktop/views/components/settings.vue
+++ b/src/client/app/desktop/views/components/settings.vue
@@ -137,7 +137,6 @@
<section>
<ui-switch v-model="games_reversi_showBoardLabels">{{ $t('@.show-reversi-board-labels') }}</ui-switch>
<ui-switch v-model="games_reversi_useWhiteBlackStones">{{ $t('@.use-white-black-reversi-stones') }}</ui-switch>
- <ui-switch v-model="games_reversi_useContrastStones">{{ $t('@.use-contrast-reversi-stones') }}</ui-switch>
</section>
</ui-card>
@@ -511,11 +510,6 @@ export default Vue.extend({
set(value) { this.$store.dispatch('settings/set', { key: 'games.reversi.useWhiteBlackStones', value }); }
},
- games_reversi_useContrastStones: {
- get() { return this.$store.state.settings.games.reversi.useContrastStones; },
- set(value) { this.$store.dispatch('settings/set', { key: 'games.reversi.useContrastStones', value }); }
- },
-
disableAnimatedMfm: {
get() { return this.$store.state.settings.disableAnimatedMfm; },
set(value) { this.$store.dispatch('settings/set', { key: 'disableAnimatedMfm', value }); }
diff --git a/src/client/app/mobile/views/pages/settings.vue b/src/client/app/mobile/views/pages/settings.vue
index b66ef69c5c..cdeb8a50ff 100644
--- a/src/client/app/mobile/views/pages/settings.vue
+++ b/src/client/app/mobile/views/pages/settings.vue
@@ -33,7 +33,7 @@
<section>
<ui-switch v-model="games_reversi_showBoardLabels">{{ $t('@.show-reversi-board-labels') }}</ui-switch>
- <ui-switch v-model="games_reversi_useContrastStones">{{ $t('@.use-contrast-reversi-stones') }}</ui-switch>
+ <ui-switch v-model="games_reversi_useWhiteBlackStones">{{ $t('@.use-white-black-reversi-stones') }}</ui-switch>
</section>
<section>
@@ -287,9 +287,9 @@ export default Vue.extend({
set(value) { this.$store.dispatch('settings/set', { key: 'games.reversi.showBoardLabels', value }); }
},
- games_reversi_useContrastStones: {
- get() { return this.$store.state.settings.games.reversi.useContrastStones; },
- set(value) { this.$store.dispatch('settings/set', { key: 'games.reversi.useContrastStones', value }); }
+ games_reversi_useWhiteBlackStones: {
+ get() { return this.$store.state.settings.games.reversi.useWhiteBlackStones; },
+ set(value) { this.$store.dispatch('settings/set', { key: 'games.reversi.useWhiteBlackStones', value }); }
},
disableAnimatedMfm: {
diff --git a/src/client/app/store.ts b/src/client/app/store.ts
index 1cd4f21e3a..5d5eece2a0 100644
--- a/src/client/app/store.ts
+++ b/src/client/app/store.ts
@@ -40,8 +40,7 @@ const defaultSettings = {
games: {
reversi: {
showBoardLabels: false,
- useWhileBlackStones: false,
- useContrastStones: false
+ useWhiteBlackStones: false,
}
}
};