2016-11-07 17:03:36 +00:00
|
|
|
<template>
|
2018-03-31 18:14:36 +00:00
|
|
|
<div id="app" v-bind:style="style">
|
2018-12-18 18:26:14 +00:00
|
|
|
<nav class='nav-bar container' @click="scrollToTop()" id="nav">
|
2018-08-31 01:06:00 +00: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 17:57:03 +00:00
|
|
|
<div class='item'>
|
2018-12-05 12:01:56 +00:00
|
|
|
<router-link class="back-button" @click.native="activatePanel('timeline')" :to="{ name: 'root' }" active-class="hidden">
|
|
|
|
<i class="icon-left-open" :title="$t('nav.back')"></i>
|
|
|
|
</router-link>
|
|
|
|
<router-link class="site-name" :to="{ name: 'root' }" active-class="home">{{sitename}}</router-link>
|
2017-01-16 17:57:03 +00:00
|
|
|
</div>
|
2017-02-16 21:25:41 +00:00
|
|
|
<div class='item right'>
|
2018-12-20 20:20:04 +00:00
|
|
|
<a href="#" @click.stop.prevent="toggleMobileSidebar()"><i class="button-icon icon-menu"></i></a>
|
2018-12-18 18:26:14 +00:00
|
|
|
<user-finder class="button-icon nav-icon" @toggled="onFinderToggled"></user-finder>
|
|
|
|
<router-link @click.native="activatePanel('timeline')" :to="{ name: 'settings'}"><i class="button-icon icon-cog nav-icon" :title="$t('nav.preferences')"></i></router-link>
|
|
|
|
<a href="#" v-if="currentUser" @click.prevent="logout"><i class="button-icon icon-logout nav-icon" :title="$t('login.logout')"></i></a>
|
2017-02-16 21:25:41 +00:00
|
|
|
</div>
|
2016-11-07 17:03:36 +00:00
|
|
|
</div>
|
|
|
|
</nav>
|
2018-12-15 17:13:01 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div v-if="" class="container" id="content">
|
2018-12-22 15:32:07 +00:00
|
|
|
<side-drawer
|
|
|
|
:activatePanel="activatePanel"
|
|
|
|
:closed="!showMobileSidebar"
|
|
|
|
:clickoutside="toggleMobileSidebar"
|
|
|
|
:logout="logout"
|
|
|
|
>
|
|
|
|
</side-drawer>
|
2018-12-15 17:13:01 +00:00
|
|
|
<!--
|
|
|
|
<button @click="activatePanel(mobileViews.postStatus)">post status</button>
|
|
|
|
<button @click="activatePanel(mobileViews.notifications)">notifs</button>
|
|
|
|
<button @click="activatePanel(mobileViews.timeline)">timeline</button>
|
|
|
|
-->
|
|
|
|
<div class="sidebar-flexer">
|
2017-11-13 10:00:08 +00:00
|
|
|
<div class="sidebar-bounds">
|
|
|
|
<div class="sidebar-scroller">
|
|
|
|
<div class="sidebar">
|
2018-12-20 20:20:04 +00:00
|
|
|
<user-panel :activatePanel="activatePanel" :class="mobileShowOnlyIn('poststatus')"></user-panel>
|
2018-12-15 17:13:01 +00:00
|
|
|
<nav-panel :activatePanel="activatePanel" class="mobile-hidden"></nav-panel>
|
|
|
|
<instance-specific-panel v-if="showInstanceSpecificPanel" class="mobile-hidden"></instance-specific-panel>
|
2018-09-03 07:02:06 +00:00
|
|
|
<features-panel v-if="!currentUser"></features-panel>
|
2018-08-22 02:47:36 +00:00
|
|
|
<who-to-follow-panel v-if="currentUser && suggestionsEnabled"></who-to-follow-panel>
|
2018-12-20 20:20:04 +00:00
|
|
|
<notifications :activatePanel="activatePanel" v-if="currentUser" :class="mobileShowOnlyIn('notifications')"></notifications>
|
2017-11-13 10:00:08 +00:00
|
|
|
</div>
|
2017-04-13 13:17:57 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-12-02 13:33:03 +00:00
|
|
|
</div>
|
2017-01-17 16:27:39 +00:00
|
|
|
<div class="main" :class="{ 'mobile-hidden': mobileActivePanel != 'timeline' }">
|
2016-12-02 13:33:03 +00:00
|
|
|
<transition name="fade">
|
|
|
|
<router-view></router-view>
|
|
|
|
</transition>
|
|
|
|
</div>
|
2016-11-07 17:03:36 +00:00
|
|
|
</div>
|
2018-04-14 07:19:09 +00:00
|
|
|
<chat-panel v-if="currentUser && chat" class="floating-chat mobile-hidden"></chat-panel>
|
2016-11-07 17:03:36 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
2016-10-26 14:46:32 +00:00
|
|
|
|
2016-10-26 17:03:55 +00:00
|
|
|
<script src="./App.js"></script>
|
|
|
|
<style lang="scss" src="./App.scss"></style>
|