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