64 lines
2.9 KiB
Vue
64 lines
2.9 KiB
Vue
<template>
|
|
<div id="app" v-bind:style="bgAppStyle">
|
|
<div class="app-bg-wrapper" v-bind:style="bgStyle"></div>
|
|
<nav class='nav-bar container' @click="scrollToTop()" id="nav">
|
|
<div class='logo' :style='logoBgStyle'>
|
|
<div class='mask' :style='logoMaskStyle'></div>
|
|
<img :src='logo' :style='logoStyle'>
|
|
</div>
|
|
<div class='inner-nav'>
|
|
<div class='item'>
|
|
<a href="#" class="menu-button" @click.stop.prevent="toggleMobileSidebar()">
|
|
<i class="button-icon icon-menu"></i>
|
|
</a>
|
|
<router-link class="site-name" :to="{ name: 'root' }" active-class="home">{{sitename}}</router-link>
|
|
</div>
|
|
<div class='item right'>
|
|
<user-finder class="button-icon nav-icon mobile-hidden" @toggled="onFinderToggled"></user-finder>
|
|
<router-link class="mobile-hidden" :to="{ name: 'settings'}"><i class="button-icon icon-cog nav-icon" :title="$t('nav.preferences')"></i></router-link>
|
|
<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>
|
|
<a href="#" class="menu-button" @click.stop.prevent="toggleMobileNotifications()">
|
|
<i class="button-icon icon-bell-alt"></i>
|
|
<div class="alert-dot" v-if="unseenNotificationsCount"></div>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
<div v-if="" class="container" id="content">
|
|
<side-drawer ref="sideDrawer" :logout="logout"></side-drawer>
|
|
<div class="mobile-notifications" :class="{ 'closed': !notificationsOpen }">
|
|
<notifications/>
|
|
</div>
|
|
<div class="sidebar-flexer mobile-hidden">
|
|
<div class="sidebar-bounds">
|
|
<div class="sidebar-scroller">
|
|
<div class="sidebar">
|
|
<user-panel></user-panel>
|
|
<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>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="main">
|
|
<div v-if="!currentUser" class="login-hint panel panel-default">
|
|
<router-link :to="{ name: 'login' }" class="panel-body">
|
|
{{ $t("login.hint") }}
|
|
</router-link>
|
|
</div>
|
|
<transition name="fade">
|
|
<router-view></router-view>
|
|
</transition>
|
|
</div>
|
|
<media-modal></media-modal>
|
|
</div>
|
|
<chat-panel :floating="true" v-if="currentUser && chat" class="floating-chat mobile-hidden"></chat-panel>
|
|
</div>
|
|
</template>
|
|
|
|
<script src="./App.js"></script>
|
|
<style lang="scss" src="./App.scss"></style>
|