settings page clean up

This commit is contained in:
Gamebrary 2021-02-21 18:02:15 -07:00
parent 82e0a920f8
commit 1b9d73ae74

View file

@ -1,61 +1,24 @@
<template lang="html"> <template lang="html">
<b-container> <b-container>
<b-row> <h3 class="m-0">Settings</h3>
<b-col cols="12" sm="6" class="mt-4 mt-sm-0 mb-3">
<b-list-group>
<b-list-group-item :variant="darkTheme ? 'info' : null">
<strong>{{ user.displayName }}</strong>
<p class="text-muted m-0">{{ user.email }}</p>
</b-list-group-item>
<b-list-group-item :variant="darkTheme ? 'dark' : null"> <div class="d-inline-flex flex-column align-items-start">
<strong>Date Joined</strong> <languages />
<p class="text-muted m-0">{{ formatDate(user.dateJoined) }}</p>
</b-list-group-item>
<b-list-group-item :variant="darkTheme ? 'info' : null"> <theme-selector class="mb-2" />
<strong>Last login</strong>
<p class="text-muted m-0">{{ formatDate(user.lastLogin) }}</p>
</b-list-group-item>
<b-list-group-item :variant="darkTheme ? 'dark' : null"> <b-button
<strong>Email Verified</strong> href="https://accounts.google.com/"
<p class="text-muted m-0">{{ user.emailVerified ? 'Yes' : 'No' }}</p> class="mb-2 mt-4"
</b-list-group-item> target="_blank"
variant="info"
>
Manage Google Account
</b-button>
<b-list-group-item :variant="darkTheme ? 'info' : null"> <sign-out class="mb-2" />
<strong>ID</strong> <delete-account />
<p class="text-muted m-0 mb-2">{{ user.uid }}</p> </div>
<b-alert show>You can safely share this id when reporting bugs</b-alert>
</b-list-group-item>
</b-list-group>
</b-col>
<b-col cols="12" sm="6">
<div class="d-flex justify-content-between align-items-center mb-3">
<h3 class="m-0">Settings</h3>
</div>
<div class="d-inline-flex flex-column align-items-start">
<languages />
<theme-selector class="mb-2" />
<b-button
href="https://accounts.google.com/"
class="mb-2 mt-4"
target="_blank"
variant="info"
>
Manage Google Account
</b-button>
<sign-out class="mb-2" />
<delete-account />
</div>
</b-col>
</b-row>
</b-container> </b-container>
</template> </template>
@ -75,7 +38,6 @@ export default {
}, },
computed: { computed: {
...mapState(['settings', 'user']),
...mapGetters(['darkTheme']), ...mapGetters(['darkTheme']),
}, },