|
|
|
@ -120,14 +120,17 @@ class NavigationPanel extends Component {
|
|
|
|
|
|
|
|
|
|
let banner = undefined;
|
|
|
|
|
|
|
|
|
|
if(transientSingleColumn)
|
|
|
|
|
banner = (<div className='switch-to-advanced'>
|
|
|
|
|
{intl.formatMessage(messages.openedInClassicInterface)}
|
|
|
|
|
{" "}
|
|
|
|
|
<a href={`/deck${location.pathname}`} className='switch-to-advanced__toggle'>
|
|
|
|
|
{intl.formatMessage(messages.advancedInterface)}
|
|
|
|
|
</a>
|
|
|
|
|
</div>);
|
|
|
|
|
if (transientSingleColumn) {
|
|
|
|
|
banner = (
|
|
|
|
|
<div className='switch-to-advanced'>
|
|
|
|
|
{intl.formatMessage(messages.openedInClassicInterface)}
|
|
|
|
|
{" "}
|
|
|
|
|
<a href={`/deck${location.pathname}`} className='switch-to-advanced__toggle'>
|
|
|
|
|
{intl.formatMessage(messages.advancedInterface)}
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<div className='navigation-panel'>
|
|
|
|
@ -141,54 +144,58 @@ class NavigationPanel extends Component {
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{signedIn && (
|
|
|
|
|
<>
|
|
|
|
|
<ColumnLink transparent to='/home' icon='home' iconComponent={HomeIcon} activeIconComponent={HomeActiveIcon} text={intl.formatMessage(messages.home)} />
|
|
|
|
|
<NotificationsLink />
|
|
|
|
|
<FollowRequestsLink />
|
|
|
|
|
</>
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
{trendsEnabled ? (
|
|
|
|
|
<ColumnLink transparent to='/explore' icon='explore' iconComponent={ExploreIcon} activeIconComponent={ExploreActiveIcon} text={intl.formatMessage(messages.explore)} />
|
|
|
|
|
) : (
|
|
|
|
|
<ColumnLink transparent to='/search' icon='search' iconComponent={SearchIcon} text={intl.formatMessage(messages.search)} />
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
{(signedIn || timelinePreview) && (
|
|
|
|
|
<ColumnLink transparent to='/public/local' isActive={this.isFirehoseActive} icon='globe' iconComponent={PublicIcon} text={intl.formatMessage(messages.firehose)} />
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
{!signedIn && (
|
|
|
|
|
<div className='navigation-panel__sign-in-banner'>
|
|
|
|
|
<div className='navigation-panel__menu'>
|
|
|
|
|
{signedIn && (
|
|
|
|
|
<>
|
|
|
|
|
<ColumnLink transparent to='/home' icon='home' iconComponent={HomeIcon} activeIconComponent={HomeActiveIcon} text={intl.formatMessage(messages.home)} />
|
|
|
|
|
<NotificationsLink />
|
|
|
|
|
<FollowRequestsLink />
|
|
|
|
|
</>
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
{trendsEnabled ? (
|
|
|
|
|
<ColumnLink transparent to='/explore' icon='explore' iconComponent={ExploreIcon} activeIconComponent={ExploreActiveIcon} text={intl.formatMessage(messages.explore)} />
|
|
|
|
|
) : (
|
|
|
|
|
<ColumnLink transparent to='/search' icon='search' iconComponent={SearchIcon} text={intl.formatMessage(messages.search)} />
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
{(signedIn || timelinePreview) && (
|
|
|
|
|
<ColumnLink transparent to='/public/local' isActive={this.isFirehoseActive} icon='globe' iconComponent={PublicIcon} text={intl.formatMessage(messages.firehose)} />
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
{!signedIn && (
|
|
|
|
|
<div className='navigation-panel__sign-in-banner'>
|
|
|
|
|
<hr />
|
|
|
|
|
{ disabledAccountId ? <DisabledAccountBanner /> : <SignInBanner /> }
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
{signedIn && (
|
|
|
|
|
<>
|
|
|
|
|
<ColumnLink transparent to='/conversations' icon='at' iconComponent={AlternateEmailIcon} text={intl.formatMessage(messages.direct)} />
|
|
|
|
|
<ColumnLink transparent to='/bookmarks' icon='bookmarks' iconComponent={BookmarksIcon} activeIconComponent={BookmarksActiveIcon} text={intl.formatMessage(messages.bookmarks)} />
|
|
|
|
|
<ColumnLink transparent to='/favourites' icon='star' iconComponent={StarIcon} activeIconComponent={StarActiveIcon} text={intl.formatMessage(messages.favourites)} />
|
|
|
|
|
<ColumnLink transparent to='/lists' icon='list-ul' iconComponent={ListAltIcon} activeIconComponent={ListAltActiveIcon} text={intl.formatMessage(messages.lists)} />
|
|
|
|
|
|
|
|
|
|
<ListPanel />
|
|
|
|
|
|
|
|
|
|
<hr />
|
|
|
|
|
|
|
|
|
|
<ColumnLink transparent href='/settings/preferences' icon='cog' iconComponent={SettingsIcon} text={intl.formatMessage(messages.preferences)} />
|
|
|
|
|
|
|
|
|
|
{canManageReports(permissions) && <ColumnLink optional transparent href='/admin/reports' icon='flag' iconComponent={ModerationIcon} text={intl.formatMessage(messages.moderation)} />}
|
|
|
|
|
{canViewAdminDashboard(permissions) && <ColumnLink optional transparent href='/admin/dashboard' icon='tachometer' iconComponent={AdministrationIcon} text={intl.formatMessage(messages.administration)} />}
|
|
|
|
|
</>
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
<div className='navigation-panel__legal'>
|
|
|
|
|
<hr />
|
|
|
|
|
{ disabledAccountId ? <DisabledAccountBanner /> : <SignInBanner /> }
|
|
|
|
|
<ColumnLink transparent to='/about' icon='ellipsis-h' iconComponent={MoreHorizIcon} text={intl.formatMessage(messages.about)} />
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
{signedIn && (
|
|
|
|
|
<>
|
|
|
|
|
<ColumnLink transparent to='/conversations' icon='at' iconComponent={AlternateEmailIcon} text={intl.formatMessage(messages.direct)} />
|
|
|
|
|
<ColumnLink transparent to='/bookmarks' icon='bookmarks' iconComponent={BookmarksIcon} activeIconComponent={BookmarksActiveIcon} text={intl.formatMessage(messages.bookmarks)} />
|
|
|
|
|
<ColumnLink transparent to='/favourites' icon='star' iconComponent={StarIcon} activeIconComponent={StarActiveIcon} text={intl.formatMessage(messages.favourites)} />
|
|
|
|
|
<ColumnLink transparent to='/lists' icon='list-ul' iconComponent={ListAltIcon} activeIconComponent={ListAltActiveIcon} text={intl.formatMessage(messages.lists)} />
|
|
|
|
|
|
|
|
|
|
<ListPanel />
|
|
|
|
|
|
|
|
|
|
<hr />
|
|
|
|
|
|
|
|
|
|
<ColumnLink transparent href='/settings/preferences' icon='cog' iconComponent={SettingsIcon} text={intl.formatMessage(messages.preferences)} />
|
|
|
|
|
|
|
|
|
|
{canManageReports(permissions) && <ColumnLink transparent href='/admin/reports' icon='flag' iconComponent={ModerationIcon} text={intl.formatMessage(messages.moderation)} />}
|
|
|
|
|
{canViewAdminDashboard(permissions) && <ColumnLink transparent href='/admin/dashboard' icon='tachometer' iconComponent={AdministrationIcon} text={intl.formatMessage(messages.administration)} />}
|
|
|
|
|
</>
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
<div className='navigation-panel__legal'>
|
|
|
|
|
<hr />
|
|
|
|
|
<ColumnLink transparent to='/about' icon='ellipsis-h' iconComponent={MoreHorizIcon} text={intl.formatMessage(messages.about)} />
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div className='flex-spacer' />
|
|
|
|
|
|
|
|
|
|
<NavigationPortal />
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|