2016-11-07 17:03:36 +00:00
|
|
|
<template>
|
2017-01-15 14:44:56 +00:00
|
|
|
<div id="app" v-bind:style="style" class="base02-background">
|
2017-11-17 00:17:36 +00:00
|
|
|
<nav class='container base02-background base05' @click="scrollToTop()" id="nav">
|
2017-02-16 16:44:36 +00:00
|
|
|
<div class='inner-nav' :style="logoStyle">
|
2017-01-16 17:57:03 +00:00
|
|
|
<div class='item'>
|
2017-02-17 09:16:29 +00:00
|
|
|
<router-link :to="{ name: 'root'}">{{sitename}}</router-link>
|
2017-01-16 17:57:03 +00:00
|
|
|
</div>
|
2017-02-16 21:25:41 +00:00
|
|
|
<div class='item right'>
|
2017-11-08 09:26:42 +00:00
|
|
|
<user-finder class="nav-icon"></user-finder>
|
|
|
|
<router-link :to="{ name: 'settings'}"><i class="icon-cog nav-icon"></i></router-link>
|
2017-11-08 10:55:10 +00:00
|
|
|
<a href="#" v-if="currentUser" @click.prevent="logout"><i class="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>
|
|
|
|
<div class="container" id="content">
|
2017-01-17 16:27:39 +00:00
|
|
|
<div class="panel-switcher">
|
2017-11-17 00:17:36 +00:00
|
|
|
<button @click="activatePanel('sidebar')" class="base02-background base05">Sidebar</button>
|
|
|
|
<button @click="activatePanel('timeline')" class="base02-background base05">Timeline</button>
|
2017-01-17 16:27:39 +00:00
|
|
|
</div>
|
2017-04-13 13:17:57 +00:00
|
|
|
<div class="sidebar-flexer" :class="{ 'mobile-hidden': mobileActivePanel != 'sidebar'}">
|
2017-11-13 10:00:08 +00:00
|
|
|
<div class="sidebar-bounds">
|
|
|
|
<div class="sidebar-scroller">
|
|
|
|
<div class="sidebar">
|
|
|
|
<user-panel></user-panel>
|
|
|
|
<nav-panel></nav-panel>
|
2018-02-03 15:27:33 +00:00
|
|
|
<instance-specific-panel v-if="showInstanceSpecificPanel"></instance-specific-panel>
|
2018-01-26 14:11:34 +00:00
|
|
|
<chat-panel v-if="currentUser && chat"></chat-panel>
|
2017-11-13 10:00:08 +00:00
|
|
|
<notifications v-if="currentUser"></notifications>
|
|
|
|
</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>
|
|
|
|
</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>
|