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