Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F325744
nav_panel.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
nav_panel.js
View Options
import
{
timelineNames
}
from
'../timeline_menu/timeline_menu.js'
import
{
mapState
,
mapGetters
}
from
'vuex'
import
{
library
}
from
'@fortawesome/fontawesome-svg-core'
import
{
faUsers
,
faGlobe
,
faBookmark
,
faEnvelope
,
faHome
,
faComments
,
faBell
,
faInfoCircle
}
from
'@fortawesome/free-solid-svg-icons'
library
.
add
(
faUsers
,
faGlobe
,
faBookmark
,
faEnvelope
,
faHome
,
faComments
,
faBell
,
faInfoCircle
)
const
NavPanel
=
{
created
()
{
if
(
this
.
currentUser
&&
this
.
currentUser
.
locked
)
{
this
.
$store
.
dispatch
(
'startFetchingFollowRequests'
)
}
},
computed
:
{
onTimelineRoute
()
{
return
!!
timelineNames
()[
this
.
$route
.
name
]
},
timelinesRoute
()
{
if
(
this
.
$store
.
state
.
interface
.
lastTimeline
)
{
return
this
.
$store
.
state
.
interface
.
lastTimeline
}
return
this
.
currentUser
?
'friends'
:
'public-timeline'
},
...
mapState
({
currentUser
:
state
=>
state
.
users
.
currentUser
,
followRequestCount
:
state
=>
state
.
api
.
followRequests
.
length
,
privateMode
:
state
=>
state
.
instance
.
private
,
federating
:
state
=>
state
.
instance
.
federating
,
pleromaChatMessagesAvailable
:
state
=>
state
.
instance
.
pleromaChatMessagesAvailable
}),
...
mapGetters
([
'unreadChatCount'
])
}
}
export
default
NavPanel
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 24, 4:22 AM (1 d, 16 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
95030
Default Alt Text
nav_panel.js (1 KB)
Attached To
Mode
rPUFE pleroma-fe-upstream
Attached
Detach File
Event Timeline
Log In to Comment