2018-02-14 15:32:13 +00:00
|
|
|
<template>
|
2018-02-20 16:39:51 +00:00
|
|
|
<div class="home">
|
2018-02-14 15:32:13 +00:00
|
|
|
<div>
|
|
|
|
<div ref="left">
|
2018-02-20 16:39:51 +00:00
|
|
|
<x-profile :user="user"/>
|
|
|
|
<x-photos :user="user"/>
|
|
|
|
<x-followers-you-know v-if="os.isSignedIn && os.i.id != user.id" :user="user"/>
|
2018-03-27 07:51:12 +00:00
|
|
|
<p v-if="user.host === null">%i18n:desktop.tags.mk-user.last-used-at%: <b><mk-time :time="user.account.last_used_at"/></b></p>
|
2018-02-14 15:32:13 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<main>
|
2018-02-23 12:46:59 +00:00
|
|
|
<mk-post-detail v-if="user.pinned_post" :post="user.pinned_post" :compact="true"/>
|
2018-02-22 12:39:36 +00:00
|
|
|
<x-timeline class="timeline" ref="tl" :user="user"/>
|
2018-02-14 15:32:13 +00:00
|
|
|
</main>
|
|
|
|
<div>
|
|
|
|
<div ref="right">
|
2018-02-19 14:37:09 +00:00
|
|
|
<mk-calendar @chosen="warp" :start="new Date(user.created_at)"/>
|
|
|
|
<mk-activity :user="user"/>
|
2018-02-20 16:39:51 +00:00
|
|
|
<x-friends :user="user"/>
|
2018-02-19 05:29:42 +00:00
|
|
|
<div class="nav"><mk-nav/></div>
|
2018-02-14 15:32:13 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import Vue from 'vue';
|
2018-02-22 12:39:36 +00:00
|
|
|
import XTimeline from './user.timeline.vue';
|
|
|
|
import XProfile from './user.profile.vue';
|
|
|
|
import XPhotos from './user.photos.vue';
|
|
|
|
import XFollowersYouKnow from './user.followers-you-know.vue';
|
|
|
|
import XFriends from './user.friends.vue';
|
2018-02-19 14:37:09 +00:00
|
|
|
|
2018-02-14 15:32:13 +00:00
|
|
|
export default Vue.extend({
|
2018-02-19 14:37:09 +00:00
|
|
|
components: {
|
2018-02-22 12:39:36 +00:00
|
|
|
XTimeline,
|
|
|
|
XProfile,
|
|
|
|
XPhotos,
|
|
|
|
XFollowersYouKnow,
|
|
|
|
XFriends
|
2018-02-19 14:37:09 +00:00
|
|
|
},
|
2018-02-14 15:32:13 +00:00
|
|
|
props: ['user'],
|
|
|
|
methods: {
|
|
|
|
warp(date) {
|
|
|
|
(this.$refs.tl as any).warp(date);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="stylus" scoped>
|
2018-02-20 16:39:51 +00:00
|
|
|
.home
|
2018-02-14 15:32:13 +00:00
|
|
|
display flex
|
|
|
|
justify-content center
|
|
|
|
margin 0 auto
|
|
|
|
max-width 1200px
|
|
|
|
|
|
|
|
> main
|
|
|
|
> div > div
|
|
|
|
> *:not(:last-child)
|
|
|
|
margin-bottom 16px
|
|
|
|
|
|
|
|
> main
|
|
|
|
padding 16px
|
|
|
|
width calc(100% - 275px * 2)
|
|
|
|
|
2018-02-22 12:39:36 +00:00
|
|
|
> .timeline
|
2018-02-14 15:32:13 +00:00
|
|
|
border solid 1px rgba(0, 0, 0, 0.075)
|
|
|
|
border-radius 6px
|
|
|
|
|
|
|
|
> div
|
|
|
|
width 275px
|
|
|
|
margin 0
|
|
|
|
|
|
|
|
&:first-child > div
|
|
|
|
padding 16px 0 16px 16px
|
|
|
|
|
|
|
|
> p
|
|
|
|
display block
|
|
|
|
margin 0
|
|
|
|
padding 0 12px
|
|
|
|
text-align center
|
|
|
|
font-size 0.8em
|
|
|
|
color #aaa
|
|
|
|
|
|
|
|
&:last-child > div
|
|
|
|
padding 16px 16px 16px 0
|
|
|
|
|
|
|
|
> .nav
|
|
|
|
padding 16px
|
|
|
|
font-size 12px
|
|
|
|
color #aaa
|
|
|
|
background #fff
|
|
|
|
border solid 1px rgba(0, 0, 0, 0.075)
|
|
|
|
border-radius 6px
|
|
|
|
|
|
|
|
a
|
|
|
|
color #999
|
|
|
|
|
|
|
|
i
|
|
|
|
color #ccc
|
|
|
|
|
|
|
|
</style>
|