2021-02-22 14:24:04 +00:00
|
|
|
import TimelineMenuContent from '../timeline_menu/timeline_menu_content.vue'
|
2020-05-07 13:10:53 +00:00
|
|
|
import { mapState, mapGetters } from 'vuex'
|
2020-07-03 09:56:31 +00:00
|
|
|
|
2020-10-19 16:38:49 +00:00
|
|
|
import { library } from '@fortawesome/fontawesome-svg-core'
|
|
|
|
import {
|
|
|
|
faUsers,
|
2020-10-20 21:25:59 +00:00
|
|
|
faGlobe,
|
2020-10-19 16:38:49 +00:00
|
|
|
faBookmark,
|
|
|
|
faEnvelope,
|
2021-02-22 14:24:04 +00:00
|
|
|
faChevronDown,
|
|
|
|
faChevronUp,
|
2020-10-19 16:38:49 +00:00
|
|
|
faComments,
|
2022-08-14 23:24:59 +00:00
|
|
|
faBolt,
|
2021-02-22 14:24:04 +00:00
|
|
|
faInfoCircle,
|
2022-06-14 20:53:51 +00:00
|
|
|
faStream,
|
2022-07-18 13:08:50 +00:00
|
|
|
faList,
|
|
|
|
faBullhorn
|
2020-10-19 16:38:49 +00:00
|
|
|
} from '@fortawesome/free-solid-svg-icons'
|
|
|
|
|
|
|
|
library.add(
|
|
|
|
faUsers,
|
2020-10-20 21:25:59 +00:00
|
|
|
faGlobe,
|
2020-10-19 16:38:49 +00:00
|
|
|
faBookmark,
|
|
|
|
faEnvelope,
|
2021-02-22 14:24:04 +00:00
|
|
|
faChevronDown,
|
|
|
|
faChevronUp,
|
2020-10-19 16:38:49 +00:00
|
|
|
faComments,
|
2022-08-14 23:24:59 +00:00
|
|
|
faBolt,
|
2021-02-22 14:24:04 +00:00
|
|
|
faInfoCircle,
|
2022-06-14 20:53:51 +00:00
|
|
|
faStream,
|
2022-07-18 13:08:50 +00:00
|
|
|
faList,
|
|
|
|
faBullhorn
|
2020-10-19 16:38:49 +00:00
|
|
|
)
|
|
|
|
|
2016-11-06 19:10:20 +00:00
|
|
|
const NavPanel = {
|
2021-02-22 14:24:04 +00:00
|
|
|
components: {
|
|
|
|
TimelineMenuContent
|
|
|
|
},
|
|
|
|
data () {
|
|
|
|
return {
|
|
|
|
showTimelines: false
|
|
|
|
}
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
toggleTimelines () {
|
|
|
|
this.showTimelines = !this.showTimelines
|
|
|
|
}
|
|
|
|
},
|
2020-07-03 09:56:31 +00:00
|
|
|
computed: {
|
2021-02-27 23:09:30 +00:00
|
|
|
compactNavPanel () {
|
|
|
|
return this.$store.getters.mergedConfig.compactNavPanel || false
|
|
|
|
},
|
2020-07-03 09:56:31 +00:00
|
|
|
...mapState({
|
|
|
|
currentUser: state => state.users.currentUser,
|
|
|
|
privateMode: state => state.instance.private,
|
2023-03-15 22:20:54 +00:00
|
|
|
federating: state => state.instance.federating,
|
2020-05-07 13:10:53 +00:00
|
|
|
}),
|
2023-02-04 21:09:09 +00:00
|
|
|
...mapGetters(['unreadAnnouncementCount']),
|
|
|
|
followRequestCount () {
|
|
|
|
return this.$store.state.users.currentUser.follow_requests_count
|
|
|
|
}
|
2020-07-03 09:56:31 +00:00
|
|
|
}
|
2016-11-06 19:10:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export default NavPanel
|