2016-11-07 09:03:36 -08:00
|
|
|
<template>
|
2019-04-29 11:37:08 -07:00
|
|
|
<div id="app" v-bind:style="bgAppStyle">
|
2019-02-03 12:32:24 -08:00
|
|
|
<div class="app-bg-wrapper" v-bind:style="bgStyle"></div>
|
2019-03-12 14:50:54 -07:00
|
|
|
<MobileNav v-if="isMobileLayout" />
|
|
|
|
<nav v-else class='nav-bar container' @click="scrollToTop()" id="nav">
|
2018-08-30 18:06:00 -07:00
|
|
|
<div class='logo' :style='logoBgStyle'>
|
|
|
|
<div class='mask' :style='logoMaskStyle'></div>
|
|
|
|
<img :src='logo' :style='logoStyle'>
|
|
|
|
</div>
|
|
|
|
<div class='inner-nav'>
|
2017-01-16 09:57:03 -08:00
|
|
|
<div class='item'>
|
2018-12-05 04:01:56 -08:00
|
|
|
<router-link class="site-name" :to="{ name: 'root' }" active-class="home">{{sitename}}</router-link>
|
2017-01-16 09:57:03 -08:00
|
|
|
</div>
|
2017-02-16 13:25:41 -08:00
|
|
|
<div class='item right'>
|
2018-12-23 09:50:19 -08:00
|
|
|
<user-finder class="button-icon nav-icon mobile-hidden" @toggled="onFinderToggled"></user-finder>
|
2018-12-28 11:39:54 -08:00
|
|
|
<router-link class="mobile-hidden" :to="{ name: 'settings'}"><i class="button-icon icon-cog nav-icon" :title="$t('nav.preferences')"></i></router-link>
|
2018-12-23 09:50:19 -08:00
|
|
|
<a href="#" class="mobile-hidden" v-if="currentUser" @click.prevent="logout"><i class="button-icon icon-logout nav-icon" :title="$t('login.logout')"></i></a>
|
2017-02-16 13:25:41 -08:00
|
|
|
</div>
|
2016-11-07 09:03:36 -08:00
|
|
|
</div>
|
|
|
|
</nav>
|
2019-05-05 20:00:45 -07:00
|
|
|
<div class="container" id="content">
|
|
|
|
<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">
|
2018-12-28 11:39:54 -08:00
|
|
|
<user-panel></user-panel>
|
2019-05-05 20:00:45 -07:00
|
|
|
<div v-if="!isMobileLayout">
|
|
|
|
<nav-panel></nav-panel>
|
|
|
|
<instance-specific-panel v-if="showInstanceSpecificPanel"></instance-specific-panel>
|
|
|
|
<features-panel v-if="!currentUser && showFeaturesPanel"></features-panel>
|
|
|
|
<who-to-follow-panel v-if="currentUser && suggestionsEnabled"></who-to-follow-panel>
|
|
|
|
<notifications v-if="currentUser"></notifications>
|
|
|
|
</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-02-06 02:01:32 -08:00
|
|
|
<div v-if="!currentUser" class="login-hint panel panel-default">
|
2019-02-06 08:53:51 -08:00
|
|
|
<router-link :to="{ name: 'login' }" class="panel-body">
|
|
|
|
{{ $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">
|
|
|
|
<router-view></router-view>
|
|
|
|
</transition>
|
|
|
|
</div>
|
2019-01-14 09:23:13 -08:00
|
|
|
<media-modal></media-modal>
|
2016-11-07 09:03:36 -08:00
|
|
|
</div>
|
2018-12-28 11:39:54 -08:00
|
|
|
<chat-panel :floating="true" v-if="currentUser && chat" class="floating-chat mobile-hidden"></chat-panel>
|
2019-03-19 01:53:11 -07:00
|
|
|
<UserReportingModal />
|
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>
|