mirror of
https://github.com/romancm/gamebrary
synced 2024-12-19 15:53:06 +00:00
dark theme wip
This commit is contained in:
parent
9aa83a7066
commit
8db3c82631
9 changed files with 73 additions and 15 deletions
|
@ -11,6 +11,12 @@
|
||||||
<b-modal
|
<b-modal
|
||||||
:id="modalId"
|
:id="modalId"
|
||||||
:title="$t('board.addList.title')"
|
:title="$t('board.addList.title')"
|
||||||
|
:header-bg-variant="nightMode ? 'dark' : null"
|
||||||
|
:header-text-variant="nightMode ? 'white' : null"
|
||||||
|
:body-bg-variant="nightMode ? 'dark' : null"
|
||||||
|
:body-text-variant="nightMode ? 'white' : null"
|
||||||
|
:footer-bg-variant="nightMode ? 'dark' : null"
|
||||||
|
:footer-text-variant="nightMode ? 'white' : null"
|
||||||
@show="reset"
|
@show="reset"
|
||||||
>
|
>
|
||||||
<form ref="addListForm" @submit.stop.prevent="submit">
|
<form ref="addListForm" @submit.stop.prevent="submit">
|
||||||
|
@ -49,7 +55,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mapState } from 'vuex';
|
import { mapState, mapGetters } from 'vuex';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
|
@ -62,6 +68,7 @@ export default {
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
...mapState(['platform', 'board']),
|
...mapState(['platform', 'board']),
|
||||||
|
...mapGetters(['nightMode']),
|
||||||
|
|
||||||
existingListNames() {
|
existingListNames() {
|
||||||
return this.board.lists
|
return this.board.lists
|
||||||
|
|
|
@ -9,6 +9,12 @@
|
||||||
id="create-board"
|
id="create-board"
|
||||||
title="Create board"
|
title="Create board"
|
||||||
size="lg"
|
size="lg"
|
||||||
|
:header-bg-variant="nightMode ? 'dark' : null"
|
||||||
|
:header-text-variant="nightMode ? 'white' : null"
|
||||||
|
:body-bg-variant="nightMode ? 'dark' : null"
|
||||||
|
:body-text-variant="nightMode ? 'white' : null"
|
||||||
|
:footer-bg-variant="nightMode ? 'dark' : null"
|
||||||
|
:footer-text-variant="nightMode ? 'white' : null"
|
||||||
@show="resetBoard"
|
@show="resetBoard"
|
||||||
@hidden="resetBoard"
|
@hidden="resetBoard"
|
||||||
>
|
>
|
||||||
|
@ -85,6 +91,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import PlatformPicker from '@/components/Board/PlatformPicker';
|
import PlatformPicker from '@/components/Board/PlatformPicker';
|
||||||
|
import { mapGetters } from 'vuex';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
@ -118,6 +125,10 @@ export default {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
computed: {
|
||||||
|
...mapGetters(['nightMode']),
|
||||||
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
resetBoard() {
|
resetBoard() {
|
||||||
this.board = {
|
this.board = {
|
||||||
|
|
|
@ -19,6 +19,8 @@
|
||||||
v-for="board in sortedBoards"
|
v-for="board in sortedBoards"
|
||||||
:key="board.id"
|
:key="board.id"
|
||||||
no-body
|
no-body
|
||||||
|
:bg-variant="nightMode ? 'dark' : null"
|
||||||
|
:text-variant="nightMode ? 'white' : null"
|
||||||
class="overflow-hidden clickable mt-3"
|
class="overflow-hidden clickable mt-3"
|
||||||
@click="viewBoard(board.id)"
|
@click="viewBoard(board.id)"
|
||||||
>
|
>
|
||||||
|
@ -123,7 +125,7 @@ export default {
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
...mapState(['boards', 'platforms', 'platformNames', 'wallpapers', 'gameLists', 'settings']),
|
...mapState(['boards', 'platforms', 'platformNames', 'wallpapers', 'gameLists', 'settings']),
|
||||||
...mapGetters(['platformNames', 'sortedBoards']),
|
...mapGetters(['platformNames', 'sortedBoards', 'nightMode']),
|
||||||
|
|
||||||
hasLists() {
|
hasLists() {
|
||||||
return Object.keys(this.gameLists).length > 0;
|
return Object.keys(this.gameLists).length > 0;
|
||||||
|
|
|
@ -10,6 +10,12 @@
|
||||||
<b-modal
|
<b-modal
|
||||||
id="notes"
|
id="notes"
|
||||||
title="Game notes"
|
title="Game notes"
|
||||||
|
:header-bg-variant="nightMode ? 'dark' : null"
|
||||||
|
:header-text-variant="nightMode ? 'white' : null"
|
||||||
|
:body-bg-variant="nightMode ? 'dark' : null"
|
||||||
|
:body-text-variant="nightMode ? 'white' : null"
|
||||||
|
:footer-bg-variant="nightMode ? 'dark' : null"
|
||||||
|
:footer-text-variant="nightMode ? 'white' : null"
|
||||||
@show="show"
|
@show="show"
|
||||||
>
|
>
|
||||||
<b-form-textarea
|
<b-form-textarea
|
||||||
|
@ -49,7 +55,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mapState } from 'vuex';
|
import { mapState, mapGetters } from 'vuex';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
|
@ -66,6 +72,7 @@ export default {
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
...mapState(['notes']),
|
...mapState(['notes']),
|
||||||
|
...mapGetters(['nightMode']),
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
@ -10,6 +10,12 @@
|
||||||
<b-modal
|
<b-modal
|
||||||
id="progress"
|
id="progress"
|
||||||
title="Set game progress"
|
title="Set game progress"
|
||||||
|
:header-bg-variant="nightMode ? 'dark' : null"
|
||||||
|
:header-text-variant="nightMode ? 'white' : null"
|
||||||
|
:body-bg-variant="nightMode ? 'dark' : null"
|
||||||
|
:body-text-variant="nightMode ? 'white' : null"
|
||||||
|
:footer-bg-variant="nightMode ? 'dark' : null"
|
||||||
|
:footer-text-variant="nightMode ? 'white' : null"
|
||||||
@show="show"
|
@show="show"
|
||||||
>
|
>
|
||||||
<b-input-group :prepend="`${localProgress}%`" class="mb-4" size="lg">
|
<b-input-group :prepend="`${localProgress}%`" class="mb-4" size="lg">
|
||||||
|
@ -46,7 +52,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mapState } from 'vuex';
|
import { mapState, mapGetters } from 'vuex';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
|
@ -63,6 +69,7 @@ export default {
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
...mapState(['progresses']),
|
...mapState(['progresses']),
|
||||||
|
...mapGetters(['nightMode']),
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
@ -5,6 +5,12 @@
|
||||||
|
|
||||||
<b-modal
|
<b-modal
|
||||||
:id="modalId"
|
:id="modalId"
|
||||||
|
:header-bg-variant="nightMode ? 'dark' : null"
|
||||||
|
:header-text-variant="nightMode ? 'white' : null"
|
||||||
|
:body-bg-variant="nightMode ? 'dark' : null"
|
||||||
|
:body-text-variant="nightMode ? 'white' : null"
|
||||||
|
:footer-bg-variant="nightMode ? 'dark' : null"
|
||||||
|
:footer-text-variant="nightMode ? 'white' : null"
|
||||||
:title="$t('board.list.renameList')"
|
:title="$t('board.list.renameList')"
|
||||||
@show="getListName"
|
@show="getListName"
|
||||||
>
|
>
|
||||||
|
@ -45,7 +51,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mapState } from 'vuex';
|
import { mapState, mapGetters } from 'vuex';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
|
@ -62,6 +68,7 @@ export default {
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
...mapState(['board']),
|
...mapState(['board']),
|
||||||
|
...mapGetters(['nightMode']),
|
||||||
|
|
||||||
modalId() {
|
modalId() {
|
||||||
return `rename-list-${this.listIndex}`;
|
return `rename-list-${this.listIndex}`;
|
||||||
|
|
|
@ -13,6 +13,12 @@
|
||||||
id="board-settings"
|
id="board-settings"
|
||||||
title="Board settings"
|
title="Board settings"
|
||||||
size="lg"
|
size="lg"
|
||||||
|
:header-bg-variant="nightMode ? 'dark' : null"
|
||||||
|
:header-text-variant="nightMode ? 'white' : null"
|
||||||
|
:body-bg-variant="nightMode ? 'dark' : null"
|
||||||
|
:body-text-variant="nightMode ? 'white' : null"
|
||||||
|
:footer-bg-variant="nightMode ? 'dark' : null"
|
||||||
|
:footer-text-variant="nightMode ? 'white' : null"
|
||||||
@show="init"
|
@show="init"
|
||||||
@hide="hide"
|
@hide="hide"
|
||||||
>
|
>
|
||||||
|
@ -142,7 +148,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mapState } from 'vuex';
|
import { mapState, mapGetters } from 'vuex';
|
||||||
import PlatformPicker from '@/components/Board/PlatformPicker';
|
import PlatformPicker from '@/components/Board/PlatformPicker';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -164,6 +170,7 @@ export default {
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
...mapState(['board', 'user', 'wallpapers']),
|
...mapState(['board', 'user', 'wallpapers']),
|
||||||
|
...mapGetters(['nightMode']),
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
@ -3,6 +3,9 @@
|
||||||
<b-jumbotron
|
<b-jumbotron
|
||||||
:header="$t('about.title')"
|
:header="$t('about.title')"
|
||||||
:lead="$t('about.subtitle')"
|
:lead="$t('about.subtitle')"
|
||||||
|
:bg-variant="nightMode ? 'dark' : ''"
|
||||||
|
:text-variant="nightMode ? 'white' : ''"
|
||||||
|
:border-variant="nightMode ? 'dark' : ''"
|
||||||
header-level="5"
|
header-level="5"
|
||||||
fluid
|
fluid
|
||||||
>
|
>
|
||||||
|
@ -54,6 +57,7 @@
|
||||||
<script>
|
<script>
|
||||||
import VueMarkdown from 'vue-markdown';
|
import VueMarkdown from 'vue-markdown';
|
||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
|
import { mapGetters } from 'vuex';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
@ -68,6 +72,8 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
|
...mapGetters(['nightMode']),
|
||||||
|
|
||||||
currentYear() {
|
currentYear() {
|
||||||
return new Date().getFullYear();
|
return new Date().getFullYear();
|
||||||
},
|
},
|
||||||
|
|
|
@ -3,12 +3,15 @@
|
||||||
<b-jumbotron
|
<b-jumbotron
|
||||||
header="Account"
|
header="Account"
|
||||||
header-level="5"
|
header-level="5"
|
||||||
|
:bg-variant="nightMode ? 'dark' : ''"
|
||||||
|
:text-variant="nightMode ? 'white' : ''"
|
||||||
|
:border-variant="nightMode ? 'dark' : ''"
|
||||||
fluid
|
fluid
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<b-container>
|
<b-container>
|
||||||
<b-list-group flush>
|
<b-list-group flush>
|
||||||
<b-list-group-item>
|
<b-list-group-item variant="dark">
|
||||||
<b-avatar
|
<b-avatar
|
||||||
v-if="user && user.photoURL"
|
v-if="user && user.photoURL"
|
||||||
size="xl"
|
size="xl"
|
||||||
|
@ -22,39 +25,39 @@
|
||||||
<p class="text-muted m-0">{{ user.email }}</p>
|
<p class="text-muted m-0">{{ user.email }}</p>
|
||||||
</b-list-group-item>
|
</b-list-group-item>
|
||||||
|
|
||||||
<b-list-group-item>
|
<b-list-group-item variant="dark">
|
||||||
<strong>Date Joined</strong>
|
<strong>Date Joined</strong>
|
||||||
<p class="text-muted m-0">{{ formatDate(user.dateJoined) }}</p>
|
<p class="text-muted m-0">{{ formatDate(user.dateJoined) }}</p>
|
||||||
</b-list-group-item>
|
</b-list-group-item>
|
||||||
|
|
||||||
<b-list-group-item>
|
<b-list-group-item variant="dark">
|
||||||
<strong>Last login</strong>
|
<strong>Last login</strong>
|
||||||
<p class="text-muted m-0">{{ formatDate(user.lastLogin) }}</p>
|
<p class="text-muted m-0">{{ formatDate(user.lastLogin) }}</p>
|
||||||
</b-list-group-item>
|
</b-list-group-item>
|
||||||
|
|
||||||
<b-list-group-item>
|
<b-list-group-item variant="dark">
|
||||||
<strong>Email Verified</strong>
|
<strong>Email Verified</strong>
|
||||||
<p class="text-muted m-0">{{ user.emailVerified ? 'Yes' : 'No' }}</p>
|
<p class="text-muted m-0">{{ user.emailVerified ? 'Yes' : 'No' }}</p>
|
||||||
</b-list-group-item>
|
</b-list-group-item>
|
||||||
|
|
||||||
<b-list-group-item>
|
<b-list-group-item variant="dark">
|
||||||
<strong>ID</strong>
|
<strong>ID</strong>
|
||||||
<p class="text-muted m-0 mb-2">{{ user.uid }}</p>
|
<p class="text-muted m-0 mb-2">{{ user.uid }}</p>
|
||||||
|
|
||||||
<b-alert show>You can safely share this id when reporting bugs</b-alert>
|
<b-alert show>You can safely share this id when reporting bugs</b-alert>
|
||||||
</b-list-group-item>
|
</b-list-group-item>
|
||||||
|
|
||||||
<b-list-group-item>
|
<b-list-group-item variant="dark">
|
||||||
<b-button href="https://accounts.google.com/" target="_blank" variant="secondary">
|
<b-button href="https://accounts.google.com/" target="_blank" variant="secondary">
|
||||||
Manage Google Account
|
Manage Google Account
|
||||||
</b-button>
|
</b-button>
|
||||||
</b-list-group-item>
|
</b-list-group-item>
|
||||||
|
|
||||||
<b-list-group-item>
|
<b-list-group-item variant="dark">
|
||||||
<delete-account />
|
<delete-account />
|
||||||
</b-list-group-item>
|
</b-list-group-item>
|
||||||
|
|
||||||
<b-list-group-item>
|
<b-list-group-item variant="dark">
|
||||||
<sign-out />
|
<sign-out />
|
||||||
</b-list-group-item>
|
</b-list-group-item>
|
||||||
</b-list-group>
|
</b-list-group>
|
||||||
|
@ -66,7 +69,7 @@
|
||||||
import SignOut from '@/components/Settings/SignOut';
|
import SignOut from '@/components/Settings/SignOut';
|
||||||
import DeleteAccount from '@/components/Settings/DeleteAccount';
|
import DeleteAccount from '@/components/Settings/DeleteAccount';
|
||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
import { mapState } from 'vuex';
|
import { mapState, mapGetters } from 'vuex';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
@ -76,6 +79,7 @@ export default {
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
...mapState(['user']),
|
...mapState(['user']),
|
||||||
|
...mapGetters(['nightMode']),
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
|
Loading…
Reference in a new issue