2018-03-09 07:21:25 +01:00
|
|
|
<template>
|
|
|
|
<div id="side_menu">
|
2018-03-24 04:16:33 +01:00
|
|
|
<div class="profile-wrapper" style="-webkit-app-region: drag;">
|
2018-03-09 07:48:20 +01:00
|
|
|
<div class="profile">
|
2018-03-24 04:16:33 +01:00
|
|
|
<div>@{{ username }}</div>
|
2018-03-10 17:51:35 +01:00
|
|
|
<span>{{ account.domain }}</span>
|
2018-03-09 07:48:20 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-03-09 07:21:25 +01:00
|
|
|
<el-menu
|
2018-03-13 08:29:03 +01:00
|
|
|
:default-active="$route.path"
|
2018-03-09 07:21:25 +01:00
|
|
|
background-color="#373d48"
|
|
|
|
text-color="#909399"
|
|
|
|
active-text-color="#ffffff"
|
|
|
|
:router="true"
|
|
|
|
class="el-menu-vertical timeline-menu">
|
2018-03-13 08:29:03 +01:00
|
|
|
<el-menu-item :index="`/${id()}/home`">
|
2018-03-09 07:21:25 +01:00
|
|
|
<icon name="home"></icon>
|
|
|
|
<span>Home</span>
|
|
|
|
</el-menu-item>
|
2018-03-13 08:29:03 +01:00
|
|
|
<el-menu-item :index="`/${id()}/notifications`">
|
2018-03-09 07:21:25 +01:00
|
|
|
<icon name="bell"></icon>
|
|
|
|
<span>Notification</span>
|
|
|
|
</el-menu-item>
|
2018-03-13 15:56:23 +01:00
|
|
|
<el-menu-item :index="`/${id()}/favourites`">
|
2018-03-09 07:21:25 +01:00
|
|
|
<icon name="star"></icon>
|
2018-03-13 15:56:23 +01:00
|
|
|
<span>Favourite</span>
|
2018-03-09 07:21:25 +01:00
|
|
|
</el-menu-item>
|
2018-03-13 08:29:03 +01:00
|
|
|
<el-menu-item :index="`/${id()}/local`">
|
2018-03-09 07:21:25 +01:00
|
|
|
<icon name="users"></icon>
|
|
|
|
<span>LocalTimeline</span>
|
|
|
|
</el-menu-item>
|
2018-03-14 06:54:20 +01:00
|
|
|
<el-menu-item :index="`/${id()}/public`">
|
2018-03-09 07:21:25 +01:00
|
|
|
<icon name="globe"></icon>
|
|
|
|
<span>PublicTimeline</span>
|
|
|
|
</el-menu-item>
|
|
|
|
</el-menu>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2018-03-09 07:48:20 +01:00
|
|
|
import { mapState } from 'vuex'
|
|
|
|
|
2018-03-09 07:21:25 +01:00
|
|
|
export default {
|
|
|
|
name: 'side-menu',
|
2018-03-09 07:48:20 +01:00
|
|
|
computed: {
|
|
|
|
...mapState({
|
2018-03-11 17:20:08 +01:00
|
|
|
account: state => state.TimelineSpace.account,
|
|
|
|
username: state => state.TimelineSpace.username
|
2018-03-09 07:48:20 +01:00
|
|
|
})
|
|
|
|
},
|
2018-03-09 07:21:25 +01:00
|
|
|
methods: {
|
|
|
|
id () {
|
|
|
|
return this.$route.params.id
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
#side_menu {
|
2018-03-09 07:48:20 +01:00
|
|
|
.profile-wrapper {
|
|
|
|
background-color: #373d48;
|
2018-03-09 07:21:25 +01:00
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
left: 65px;
|
2018-03-09 09:36:57 +01:00
|
|
|
width: 180px;
|
2018-03-22 10:09:58 +01:00
|
|
|
height: 70px;
|
2018-03-09 07:48:20 +01:00
|
|
|
|
|
|
|
.profile {
|
|
|
|
color: #ffffff;
|
|
|
|
font-weight: bold;
|
2018-03-24 01:56:48 +01:00
|
|
|
padding: 20px 8px 10px 20px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2018-03-09 07:48:20 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.timeline-menu {
|
|
|
|
position: fixed;
|
2018-03-22 10:09:58 +01:00
|
|
|
top: 70px;
|
2018-03-09 07:48:20 +01:00
|
|
|
left: 65px;
|
2018-03-09 07:21:25 +01:00
|
|
|
height: 100%;
|
2018-03-09 09:36:57 +01:00
|
|
|
width: 180px;
|
2018-03-09 07:21:25 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|