Revert "add TOTP/Recovery Form for mobile version"

This reverts commit a3811f944819430c278b6da6b08dc322a9b9ff65.
This commit is contained in:
Maksim 2019-06-12 20:16:55 +00:00 committed by HJ
parent 9df99c5205
commit 77eceedbf7
32 changed files with 1657 additions and 439 deletions

View file

@ -1,13 +1,15 @@
import LoginForm from '../login_form/login_form.vue'
import AuthForm from '../auth_form/auth_form.js'
import PostStatusForm from '../post_status_form/post_status_form.vue'
import UserCard from '../user_card/user_card.vue'
import { mapState } from 'vuex'
const UserPanel = {
computed: {
user () { return this.$store.state.users.currentUser }
signedIn () { return this.user },
...mapState({ user: state => state.users.currentUser })
},
components: {
LoginForm,
AuthForm,
PostStatusForm,
UserCard
}

View file

@ -1,13 +1,20 @@
<template>
<div class="user-panel">
<div v-if='user' class="panel panel-default" style="overflow: visible;">
<div v-if="signedIn" key="user-panel" class="panel panel-default signed-in">
<UserCard :user="user" :hideBio="true" rounded="top"/>
<div class="panel-footer">
<post-status-form v-if='user'></post-status-form>
</div>
</div>
<login-form v-if='!user'></login-form>
<auth-form v-else key="user-panel"/>
</div>
</template>
<script src="./user_panel.js"></script>
<style lang="scss">
.user-panel .signed-in {
overflow: visible;
}
</style>