2016-11-07 17:03:36 +00:00
|
|
|
<template>
|
2019-07-05 07:17:44 +00:00
|
|
|
<div
|
|
|
|
id="app"
|
|
|
|
:style="bgAppStyle"
|
|
|
|
>
|
|
|
|
<div
|
2019-07-19 16:36:07 +00:00
|
|
|
id="app_bg_wrapper"
|
2019-07-05 07:17:44 +00:00
|
|
|
class="app-bg-wrapper"
|
|
|
|
:style="bgStyle"
|
|
|
|
/>
|
2019-03-12 21:50:54 +00:00
|
|
|
<MobileNav v-if="isMobileLayout" />
|
2019-07-05 07:17:44 +00:00
|
|
|
<nav
|
|
|
|
v-else
|
|
|
|
id="nav"
|
|
|
|
class="nav-bar container"
|
|
|
|
@click="scrollToTop()"
|
|
|
|
>
|
2019-09-05 16:22:56 +00:00
|
|
|
<div class="inner-nav">
|
2019-07-05 07:17:44 +00:00
|
|
|
<div
|
2019-09-05 16:22:56 +00:00
|
|
|
class="logo"
|
|
|
|
:style="logoBgStyle"
|
2019-07-05 07:17:44 +00:00
|
|
|
>
|
2019-09-05 16:22:56 +00:00
|
|
|
<div
|
|
|
|
class="mask"
|
|
|
|
:style="logoMaskStyle"
|
|
|
|
/>
|
|
|
|
<img
|
|
|
|
:src="logo"
|
|
|
|
:style="logoStyle"
|
|
|
|
>
|
|
|
|
</div>
|
2019-07-05 07:17:44 +00:00
|
|
|
<div class="item">
|
|
|
|
<router-link
|
2019-12-02 00:34:01 +00:00
|
|
|
v-if="!hideSitename"
|
2019-07-05 07:17:44 +00:00
|
|
|
class="site-name"
|
|
|
|
:to="{ name: 'root' }"
|
|
|
|
active-class="home"
|
|
|
|
>
|
|
|
|
{{ sitename }}
|
|
|
|
</router-link>
|
2017-01-16 17:57:03 +00:00
|
|
|
</div>
|
2019-07-05 07:17:44 +00:00
|
|
|
<div class="item right">
|
2019-07-15 16:42:27 +00:00
|
|
|
<search-bar
|
2019-12-12 19:46:07 +00:00
|
|
|
v-if="currentUser || !privateMode"
|
2019-07-15 16:42:27 +00:00
|
|
|
class="nav-icon mobile-hidden"
|
|
|
|
@toggled="onSearchBarToggled"
|
2019-12-12 19:37:32 +00:00
|
|
|
@click.stop.native
|
2019-07-05 07:17:44 +00:00
|
|
|
/>
|
2020-05-03 14:36:12 +00:00
|
|
|
<a
|
2019-07-05 07:17:44 +00:00
|
|
|
class="mobile-hidden"
|
2020-05-03 14:36:12 +00:00
|
|
|
@click.stop="openSettingsModal"
|
2019-07-05 07:17:44 +00:00
|
|
|
>
|
|
|
|
<i
|
|
|
|
class="button-icon icon-cog nav-icon"
|
|
|
|
:title="$t('nav.preferences')"
|
|
|
|
/>
|
2020-05-03 14:36:12 +00:00
|
|
|
</a>
|
2019-09-14 17:50:03 +00:00
|
|
|
<a
|
|
|
|
v-if="currentUser && currentUser.role === 'admin'"
|
2019-10-02 17:28:16 +00:00
|
|
|
href="/pleroma/admin/#/login-pleroma"
|
2019-09-14 17:50:03 +00:00
|
|
|
class="mobile-hidden"
|
2019-09-16 12:03:10 +00:00
|
|
|
target="_blank"
|
2019-09-14 17:50:03 +00:00
|
|
|
><i
|
|
|
|
class="button-icon icon-gauge nav-icon"
|
2019-09-27 01:29:51 +00:00
|
|
|
:title="$t('nav.administration')"
|
2019-09-14 17:50:03 +00:00
|
|
|
/></a>
|
2019-07-05 07:17:44 +00:00
|
|
|
<a
|
|
|
|
v-if="currentUser"
|
|
|
|
href="#"
|
|
|
|
class="mobile-hidden"
|
|
|
|
@click.prevent="logout"
|
|
|
|
><i
|
|
|
|
class="button-icon icon-logout nav-icon"
|
|
|
|
:title="$t('login.logout')"
|
|
|
|
/></a>
|
2017-02-16 21:25:41 +00:00
|
|
|
</div>
|
2016-11-07 17:03:36 +00:00
|
|
|
</div>
|
|
|
|
</nav>
|
2019-07-05 07:17:44 +00:00
|
|
|
<div
|
|
|
|
id="content"
|
2020-01-28 21:45:14 +00:00
|
|
|
class="container underlay"
|
2019-07-05 07:17:44 +00:00
|
|
|
>
|
2019-05-06 03:00:45 +00:00
|
|
|
<div class="sidebar-flexer mobile-hidden">
|
2017-11-13 10:00:08 +00:00
|
|
|
<div class="sidebar-bounds">
|
|
|
|
<div class="sidebar-scroller">
|
|
|
|
<div class="sidebar">
|
2019-07-05 07:17:44 +00:00
|
|
|
<user-panel />
|
2019-05-06 03:00:45 +00:00
|
|
|
<div v-if="!isMobileLayout">
|
2019-07-05 07:17:44 +00:00
|
|
|
<nav-panel />
|
|
|
|
<instance-specific-panel v-if="showInstanceSpecificPanel" />
|
|
|
|
<features-panel v-if="!currentUser && showFeaturesPanel" />
|
|
|
|
<who-to-follow-panel v-if="currentUser && suggestionsEnabled" />
|
|
|
|
<notifications v-if="currentUser" />
|
2019-05-06 03:00:45 +00:00
|
|
|
</div>
|
2017-11-13 10:00:08 +00:00
|
|
|
</div>
|
2017-04-13 13:17:57 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-12-02 13:33:03 +00:00
|
|
|
</div>
|
2018-12-28 19:39:54 +00:00
|
|
|
<div class="main">
|
2019-07-05 07:17:44 +00:00
|
|
|
<div
|
|
|
|
v-if="!currentUser"
|
|
|
|
class="login-hint panel panel-default"
|
|
|
|
>
|
|
|
|
<router-link
|
|
|
|
:to="{ name: 'login' }"
|
|
|
|
class="panel-body"
|
|
|
|
>
|
2019-02-06 16:53:51 +00:00
|
|
|
{{ $t("login.hint") }}
|
|
|
|
</router-link>
|
2019-02-06 10:01:32 +00:00
|
|
|
</div>
|
2016-12-02 13:33:03 +00:00
|
|
|
<transition name="fade">
|
2019-07-05 07:17:44 +00:00
|
|
|
<router-view />
|
2016-12-02 13:33:03 +00:00
|
|
|
</transition>
|
|
|
|
</div>
|
2019-07-05 07:17:44 +00:00
|
|
|
<media-modal />
|
2016-11-07 17:03:36 +00:00
|
|
|
</div>
|
2019-07-05 07:17:44 +00:00
|
|
|
<chat-panel
|
|
|
|
v-if="currentUser && chat"
|
|
|
|
:floating="true"
|
|
|
|
class="floating-chat mobile-hidden"
|
|
|
|
/>
|
2019-09-19 17:59:34 +00:00
|
|
|
<MobilePostStatusButton />
|
2019-03-19 08:53:11 +00:00
|
|
|
<UserReportingModal />
|
2019-09-19 17:27:37 +00:00
|
|
|
<PostStatusModal />
|
2020-05-03 14:36:12 +00:00
|
|
|
<SettingsModal />
|
2019-05-20 20:21:53 +00:00
|
|
|
<portal-target name="modal" />
|
2016-11-07 17:03:36 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
2016-10-26 14:46:32 +00:00
|
|
|
|
2016-10-26 17:03:55 +00:00
|
|
|
<script src="./App.js"></script>
|
|
|
|
<style lang="scss" src="./App.scss"></style>
|