2016-11-08 04:03:36 +11:00
|
|
|
<template>
|
2018-04-01 04:14:36 +10:00
|
|
|
<div id="app" v-bind:style="style">
|
|
|
|
<nav class='container' @click="scrollToTop()" id="nav">
|
2017-02-17 03:44:36 +11:00
|
|
|
<div class='inner-nav' :style="logoStyle">
|
2017-01-17 04:57:03 +11:00
|
|
|
<div class='item'>
|
2017-02-17 20:16:29 +11:00
|
|
|
<router-link :to="{ name: 'root'}">{{sitename}}</router-link>
|
2017-01-17 04:57:03 +11:00
|
|
|
</div>
|
2017-02-17 08:25:41 +11:00
|
|
|
<div class='item right'>
|
2017-11-08 20:26:42 +11: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 21:55:10 +11:00
|
|
|
<a href="#" v-if="currentUser" @click.prevent="logout"><i class="icon-logout nav-icon" :title="$t('login.logout')"></i></a>
|
2017-02-17 08:25:41 +11:00
|
|
|
</div>
|
2016-11-08 04:03:36 +11:00
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
<div class="container" id="content">
|
2017-01-18 03:27:39 +11:00
|
|
|
<div class="panel-switcher">
|
2018-04-01 04:14:36 +10:00
|
|
|
<button @click="activatePanel('sidebar')">Sidebar</button>
|
|
|
|
<button @click="activatePanel('timeline')">Timeline</button>
|
2017-01-18 03:27:39 +11:00
|
|
|
</div>
|
2017-04-13 23:17:57 +10:00
|
|
|
<div class="sidebar-flexer" :class="{ 'mobile-hidden': mobileActivePanel != 'sidebar'}">
|
2017-11-13 21:00:08 +11:00
|
|
|
<div class="sidebar-bounds">
|
|
|
|
<div class="sidebar-scroller">
|
|
|
|
<div class="sidebar">
|
|
|
|
<user-panel></user-panel>
|
|
|
|
<nav-panel></nav-panel>
|
2018-02-04 02:27:33 +11:00
|
|
|
<instance-specific-panel v-if="showInstanceSpecificPanel"></instance-specific-panel>
|
2018-02-12 01:12:05 +11:00
|
|
|
<who-to-follow-panel v-if="currentUser && showWhoToFollowPanel"></who-to-follow-panel>
|
2017-11-13 21:00:08 +11:00
|
|
|
<notifications v-if="currentUser"></notifications>
|
|
|
|
</div>
|
2017-04-13 23:17:57 +10:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-12-03 00:33:03 +11:00
|
|
|
</div>
|
2017-01-18 03:27:39 +11:00
|
|
|
<div class="main" :class="{ 'mobile-hidden': mobileActivePanel != 'timeline' }">
|
2016-12-03 00:33:03 +11:00
|
|
|
<transition name="fade">
|
|
|
|
<router-view></router-view>
|
|
|
|
</transition>
|
|
|
|
</div>
|
2016-11-08 04:03:36 +11:00
|
|
|
</div>
|
2018-04-14 17:19:09 +10:00
|
|
|
<chat-panel 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>
|