2020-10-29 19:13:31 +00:00
|
|
|
<template>
|
|
|
|
<nav
|
|
|
|
id="nav"
|
|
|
|
class="DesktopNav"
|
|
|
|
:class="{ '-logoLeft': logoLeft }"
|
|
|
|
@click="scrollToTop()"
|
2020-11-01 14:44:57 +00:00
|
|
|
>
|
2022-08-14 23:24:59 +00:00
|
|
|
<div
|
|
|
|
class="inner-nav"
|
|
|
|
:class="{ '-wide': showWiderShortcuts }"
|
|
|
|
>
|
|
|
|
<div class="item nav-left-wrapper">
|
2020-10-29 19:13:31 +00:00
|
|
|
<router-link
|
2022-08-14 23:24:59 +00:00
|
|
|
class="site-brand"
|
2020-10-29 19:13:31 +00:00
|
|
|
:to="{ name: 'root' }"
|
|
|
|
active-class="home"
|
2020-11-01 14:44:57 +00:00
|
|
|
>
|
2022-08-14 23:24:59 +00:00
|
|
|
<img
|
|
|
|
v-if="!hideSiteFavicon"
|
|
|
|
class="favicon"
|
|
|
|
src="/favicon.png"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
v-if="!hideSiteName"
|
|
|
|
class="site-name"
|
|
|
|
>
|
|
|
|
{{ sitename }}
|
|
|
|
</span>
|
2020-10-29 19:13:31 +00:00
|
|
|
</router-link>
|
2022-08-14 23:24:59 +00:00
|
|
|
<div
|
|
|
|
v-if="(currentUser || !privateMode) && showNavShortcuts"
|
|
|
|
class="nav-items left"
|
|
|
|
>
|
|
|
|
<router-link
|
|
|
|
v-if="currentUser"
|
|
|
|
:to="{ name: 'friends' }"
|
|
|
|
class="nav-icon"
|
|
|
|
>
|
|
|
|
<FAIcon
|
|
|
|
fixed-width
|
|
|
|
class="fa-scale-110 fa-old-padding"
|
|
|
|
icon="home"
|
|
|
|
:title="$t('nav.home_timeline')"
|
|
|
|
/>
|
|
|
|
</router-link>
|
|
|
|
<router-link
|
|
|
|
:to="{ name: 'public-timeline' }"
|
|
|
|
class="nav-icon"
|
|
|
|
>
|
|
|
|
<FAIcon
|
|
|
|
fixed-width
|
|
|
|
class="fa-scale-110 fa-old-padding"
|
|
|
|
icon="users"
|
|
|
|
:title="$t('nav.public_tl')"
|
|
|
|
/>
|
|
|
|
</router-link>
|
|
|
|
<router-link
|
|
|
|
:to="{ name: 'public-external-timeline' }"
|
|
|
|
class="nav-icon"
|
|
|
|
>
|
|
|
|
<FAIcon
|
|
|
|
fixed-width
|
|
|
|
class="fa-scale-110 fa-old-padding"
|
|
|
|
icon="globe"
|
|
|
|
:title="$t('nav.twkn')"
|
|
|
|
/>
|
|
|
|
</router-link>
|
|
|
|
<router-link
|
|
|
|
v-if="currentUser"
|
|
|
|
:to="{ name: 'bubble-timeline' }"
|
|
|
|
class="nav-icon"
|
|
|
|
>
|
|
|
|
<FAIcon
|
|
|
|
fixed-width
|
|
|
|
class="fa-scale-110 fa-old-padding"
|
|
|
|
icon="circle"
|
|
|
|
:title="$t('nav.bubble_timeline')"
|
|
|
|
/>
|
|
|
|
</router-link>
|
|
|
|
</div>
|
2020-10-29 19:13:31 +00:00
|
|
|
</div>
|
|
|
|
<router-link
|
|
|
|
class="logo"
|
|
|
|
:to="{ name: 'root' }"
|
|
|
|
:style="logoBgStyle"
|
2020-11-01 14:44:57 +00:00
|
|
|
>
|
2020-10-29 19:13:31 +00:00
|
|
|
<div
|
|
|
|
class="mask"
|
|
|
|
:style="logoMaskStyle"
|
2020-11-01 14:44:57 +00:00
|
|
|
/>
|
2020-10-29 19:13:31 +00:00
|
|
|
<img
|
|
|
|
:src="logo"
|
|
|
|
:style="logoStyle"
|
2020-11-01 14:44:57 +00:00
|
|
|
>
|
2020-10-29 19:13:31 +00:00
|
|
|
</router-link>
|
|
|
|
<div class="item right actions">
|
|
|
|
<search-bar
|
|
|
|
v-if="currentUser || !privateMode"
|
|
|
|
@toggled="onSearchBarToggled"
|
2022-03-17 06:35:19 +00:00
|
|
|
@click.stop
|
2020-11-01 14:44:57 +00:00
|
|
|
/>
|
2022-08-14 23:24:59 +00:00
|
|
|
<div
|
|
|
|
v-if="(currentUser || !privateMode) && showNavShortcuts"
|
|
|
|
class="nav-items right"
|
|
|
|
>
|
|
|
|
<router-link
|
|
|
|
class="nav-icon"
|
|
|
|
:to="{ name: 'interactions', params: { username: currentUser.screen_name } }"
|
|
|
|
>
|
|
|
|
<FAIcon
|
|
|
|
fixed-width
|
|
|
|
class="fa-scale-110 fa-old-padding"
|
|
|
|
icon="bolt"
|
|
|
|
:title="$t('nav.interactions')"
|
|
|
|
/>
|
|
|
|
</router-link>
|
|
|
|
<router-link
|
|
|
|
v-if="currentUser"
|
|
|
|
:to="{ name: 'lists' }"
|
|
|
|
class="nav-icon"
|
|
|
|
>
|
|
|
|
<FAIcon
|
|
|
|
fixed-width
|
|
|
|
class="fa-scale-110 fa-old-padding"
|
|
|
|
icon="list"
|
|
|
|
:title="$t('nav.lists')"
|
|
|
|
/>
|
|
|
|
</router-link>
|
|
|
|
<router-link
|
|
|
|
v-if="currentUser"
|
|
|
|
:to="{ name: 'bookmarks' }"
|
|
|
|
class="nav-icon"
|
|
|
|
>
|
|
|
|
<FAIcon
|
|
|
|
fixed-width
|
|
|
|
class="fa-scale-110 fa-old-padding"
|
|
|
|
icon="bookmark"
|
|
|
|
:title="$t('nav.bookmarks')"
|
|
|
|
/>
|
|
|
|
</router-link>
|
|
|
|
</div>
|
2020-11-24 10:32:42 +00:00
|
|
|
<button
|
|
|
|
class="button-unstyled nav-icon"
|
2020-10-29 19:13:31 +00:00
|
|
|
@click.stop="openSettingsModal"
|
2020-11-01 14:44:57 +00:00
|
|
|
>
|
2020-10-29 19:13:31 +00:00
|
|
|
<FAIcon
|
|
|
|
fixed-width
|
|
|
|
class="fa-scale-110 fa-old-padding"
|
|
|
|
icon="cog"
|
|
|
|
:title="$t('nav.preferences')"
|
2020-11-01 14:44:57 +00:00
|
|
|
/>
|
2020-11-24 10:32:42 +00:00
|
|
|
</button>
|
2020-10-29 19:13:31 +00:00
|
|
|
<a
|
|
|
|
v-if="currentUser && currentUser.role === 'admin'"
|
|
|
|
href="/pleroma/admin/#/login-pleroma"
|
|
|
|
class="nav-icon"
|
|
|
|
target="_blank"
|
2022-02-20 14:06:26 +00:00
|
|
|
@click.stop
|
2020-11-24 10:32:42 +00:00
|
|
|
>
|
|
|
|
<FAIcon
|
|
|
|
fixed-width
|
|
|
|
class="fa-scale-110 fa-old-padding"
|
|
|
|
icon="tachometer-alt"
|
|
|
|
:title="$t('nav.administration')"
|
|
|
|
/>
|
|
|
|
</a>
|
2020-10-29 19:13:31 +00:00
|
|
|
</div>
|
2020-11-01 14:44:57 +00:00
|
|
|
</div>
|
2020-10-29 19:13:31 +00:00
|
|
|
</nav>
|
|
|
|
</template>
|
|
|
|
<script src="./desktop_nav.js"></script>
|
|
|
|
|
|
|
|
<style src="./desktop_nav.scss" lang="scss"></style>
|