2026-06-02 18:09:12 +03:00
|
|
|
import { defineAsyncComponent } from 'vue'
|
2026-01-06 16:23:17 +02:00
|
|
|
import { mapState } from 'vuex'
|
2026-01-08 17:26:52 +02:00
|
|
|
|
2016-10-27 18:02:28 +02:00
|
|
|
const UserPanel = {
|
|
|
|
|
computed: {
|
2026-01-06 16:22:52 +02:00
|
|
|
signedIn() {
|
|
|
|
|
return this.user
|
|
|
|
|
},
|
|
|
|
|
...mapState({ user: (state) => state.users.currentUser }),
|
2016-10-27 18:02:28 +02:00
|
|
|
},
|
|
|
|
|
components: {
|
2026-06-02 18:32:58 +03:00
|
|
|
AuthForm: defineAsyncComponent(
|
|
|
|
|
() => import('src/components/auth_form/auth_form.js'),
|
|
|
|
|
),
|
|
|
|
|
PostStatusForm: defineAsyncComponent(
|
|
|
|
|
() => import('src/components/post_status_form/post_status_form.vue'),
|
|
|
|
|
),
|
2026-06-02 18:09:12 +03:00
|
|
|
UserCard: defineAsyncComponent(
|
|
|
|
|
() => import('src/components/user_card/user_card.vue'),
|
|
|
|
|
),
|
2026-01-06 16:22:52 +02:00
|
|
|
},
|
2016-10-27 18:02:28 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default UserPanel
|