2016-11-08 04:03:36 +11:00
|
|
|
<template>
|
2019-02-15 23:20:52 +11:00
|
|
|
<div id="app" v-bind:style="bgAppStyle">
|
2019-02-04 07:32:24 +11:00
|
|
|
<div class="app-bg-wrapper" v-bind:style="bgStyle"></div>
|
2018-12-19 05:26:14 +11:00
|
|
|
<nav class='nav-bar container' @click="scrollToTop()" id="nav">
|
2018-08-31 11:06:00 +10:00
|
|
|
<div class='logo' :style='logoBgStyle'>
|
|
|
|
<div class='mask' :style='logoMaskStyle'></div>
|
|
|
|
<img :src='logo' :style='logoStyle'>
|
|
|
|
</div>
|
|
|
|
<div class='inner-nav'>
|
2017-01-17 04:57:03 +11:00
|
|
|
<div class='item'>
|
2018-12-29 06:39:54 +11:00
|
|
|
<a href="#" class="menu-button" @click.stop.prevent="toggleMobileSidebar()">
|
|
|
|
<i class="button-icon icon-menu"></i>
|
|
|
|
</a>
|
2018-12-05 23:01:56 +11:00
|
|
|
<router-link class="site-name" :to="{ name: 'root' }" active-class="home">{{sitename}}</router-link>
|
2017-01-17 04:57:03 +11:00
|
|
|
</div>
|
2017-02-17 08:25:41 +11:00
|
|
|
<div class='item right'>
|
2018-12-24 04:50:19 +11:00
|
|
|
<user-finder class="button-icon nav-icon mobile-hidden" @toggled="onFinderToggled"></user-finder>
|
2018-12-29 06:39:54 +11: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-24 04:50:19 +11: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>
|
2019-03-03 01:57:32 +11:00
|
|
|
<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>
|
2017-02-17 08:25:41 +11:00
|
|
|
</div>
|
2016-11-08 04:03:36 +11:00
|
|
|
</div>
|
|
|
|
</nav>
|
2018-12-16 04:13:01 +11:00
|
|
|
<div v-if="" class="container" id="content">
|
2018-12-29 06:39:54 +11:00
|
|
|
<side-drawer ref="sideDrawer" :logout="logout"></side-drawer>
|
2019-03-03 01:57:32 +11:00
|
|
|
<div class="mobile-notifications" :class="{ 'closed': !notificationsOpen }">
|
|
|
|
<notifications/>
|
|
|
|
</div>
|
2018-12-29 06:39:54 +11: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">
|
2018-12-29 06:39:54 +11:00
|
|
|
<user-panel></user-panel>
|
|
|
|
<nav-panel></nav-panel>
|
|
|
|
<instance-specific-panel v-if="showInstanceSpecificPanel"></instance-specific-panel>
|
2019-02-05 23:32:00 +11:00
|
|
|
<features-panel v-if="!currentUser && showFeaturesPanel"></features-panel>
|
2018-08-22 12:47:36 +10:00
|
|
|
<who-to-follow-panel v-if="currentUser && suggestionsEnabled"></who-to-follow-panel>
|
2018-12-29 06:39:54 +11:00
|
|
|
<notifications v-if="currentUser"></notifications>
|
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-02-06 21:01:32 +11:00
|
|
|
<div v-if="!currentUser" class="login-hint panel panel-default">
|
2019-02-07 03:53:51 +11:00
|
|
|
<router-link :to="{ name: 'login' }" class="panel-body">
|
|
|
|
{{ $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">
|
|
|
|
<router-view></router-view>
|
|
|
|
</transition>
|
|
|
|
</div>
|
2019-01-15 04:23:13 +11:00
|
|
|
<media-modal></media-modal>
|
2016-11-08 04:03:36 +11:00
|
|
|
</div>
|
2018-12-29 06:39:54 +11:00
|
|
|
<chat-panel :floating="true" v-if="currentUser && chat" class="floating-chat mobile-hidden"></chat-panel>
|
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>
|