2018-02-15 11:33:34 +02:00
|
|
|
<template>
|
2018-02-22 10:32:58 +02:00
|
|
|
<div class="root home">
|
2018-02-23 01:44:32 +02:00
|
|
|
<mk-post-detail v-if="user.pinned_post" :post="user.pinned_post" :compact="true"/>
|
2018-02-15 11:33:34 +02:00
|
|
|
<section class="recent-posts">
|
|
|
|
<h2>%fa:R comments%%i18n:mobile.tags.mk-user-overview.recent-posts%</h2>
|
|
|
|
<div>
|
2018-02-22 10:32:58 +02:00
|
|
|
<x-posts :user="user"/>
|
2018-02-15 11:33:34 +02:00
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
<section class="images">
|
|
|
|
<h2>%fa:image%%i18n:mobile.tags.mk-user-overview.images%</h2>
|
|
|
|
<div>
|
2018-02-22 10:32:58 +02:00
|
|
|
<x-photos :user="user"/>
|
2018-02-15 11:33:34 +02:00
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
<section class="activity">
|
|
|
|
<h2>%fa:chart-bar%%i18n:mobile.tags.mk-user-overview.activity%</h2>
|
|
|
|
<div>
|
2018-02-23 19:46:09 +02:00
|
|
|
<mk-activity :user="user"/>
|
2018-02-15 11:33:34 +02:00
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
<section class="frequently-replied-users">
|
|
|
|
<h2>%fa:users%%i18n:mobile.tags.mk-user-overview.frequently-replied-users%</h2>
|
|
|
|
<div>
|
2018-02-22 10:32:58 +02:00
|
|
|
<x-friends :user="user"/>
|
2018-02-15 11:33:34 +02:00
|
|
|
</div>
|
|
|
|
</section>
|
2018-02-18 05:35:18 +02:00
|
|
|
<section class="followers-you-know" v-if="os.isSignedIn && os.i.id !== user.id">
|
2018-02-15 11:33:34 +02:00
|
|
|
<h2>%fa:users%%i18n:mobile.tags.mk-user-overview.followers-you-know%</h2>
|
|
|
|
<div>
|
2018-02-22 10:32:58 +02:00
|
|
|
<x-followers-you-know :user="user"/>
|
2018-02-15 11:33:34 +02:00
|
|
|
</div>
|
|
|
|
</section>
|
2018-03-25 18:19:07 +03:00
|
|
|
<p>%i18n:mobile.tags.mk-user-overview.last-used-at%: <b><mk-time :time="user.account.last_used_at"/></b></p>
|
2018-02-15 11:33:34 +02:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import Vue from 'vue';
|
2018-02-22 10:32:58 +02:00
|
|
|
import XPosts from './home.posts.vue';
|
|
|
|
import XPhotos from './home.photos.vue';
|
|
|
|
import XFriends from './home.friends.vue';
|
|
|
|
import XFollowersYouKnow from './home.followers-you-know.vue';
|
|
|
|
|
2018-02-15 11:33:34 +02:00
|
|
|
export default Vue.extend({
|
2018-02-22 10:32:58 +02:00
|
|
|
components: {
|
|
|
|
XPosts,
|
|
|
|
XPhotos,
|
|
|
|
XFriends,
|
2018-02-23 19:46:09 +02:00
|
|
|
XFollowersYouKnow
|
2018-02-22 10:32:58 +02:00
|
|
|
},
|
2018-02-15 11:33:34 +02:00
|
|
|
props: ['user']
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="stylus" scoped>
|
2018-02-22 10:32:58 +02:00
|
|
|
.root.home
|
2018-02-15 11:33:34 +02:00
|
|
|
max-width 600px
|
|
|
|
margin 0 auto
|
|
|
|
|
2018-02-16 20:01:00 +02:00
|
|
|
> .mk-post-detail
|
2018-02-15 11:33:34 +02:00
|
|
|
margin 0 0 8px 0
|
|
|
|
|
|
|
|
> section
|
|
|
|
background #eee
|
|
|
|
border-radius 8px
|
|
|
|
box-shadow 0 0 0 1px rgba(0, 0, 0, 0.2)
|
|
|
|
|
|
|
|
&:not(:last-child)
|
|
|
|
margin-bottom 8px
|
|
|
|
|
|
|
|
> h2
|
|
|
|
margin 0
|
|
|
|
padding 8px 10px
|
|
|
|
font-size 15px
|
|
|
|
font-weight normal
|
|
|
|
color #465258
|
|
|
|
background #fff
|
|
|
|
border-radius 8px 8px 0 0
|
|
|
|
|
|
|
|
> i
|
|
|
|
margin-right 6px
|
|
|
|
|
|
|
|
> .activity
|
|
|
|
> div
|
|
|
|
padding 8px
|
|
|
|
|
|
|
|
> p
|
|
|
|
display block
|
|
|
|
margin 16px
|
|
|
|
text-align center
|
|
|
|
color #cad2da
|
|
|
|
|
|
|
|
</style>
|