1
0
mirror of https://git.pleroma.social/sjw/pleroma-fe.git synced 2024-11-11 16:59:16 +01:00
pleroma-fe/src/App.vue

58 lines
2.6 KiB
Vue
Raw Normal View History

2016-11-07 18:03:36 +01:00
<template>
2019-02-15 13:20:52 +01:00
<div id="app" v-bind:style="bgAppStyle">
2019-02-03 21:32:24 +01:00
<div class="app-bg-wrapper" v-bind:style="bgStyle"></div>
2018-12-18 19:26:14 +01:00
<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'>
2017-01-16 18:57:03 +01:00
<div class='item'>
<a href="#" class="menu-button" @click.stop.prevent="toggleMobileSidebar()">
<i class="button-icon icon-menu"></i>
<div class="alert-dot" v-if="unseenNotificationsCount"></div>
</a>
2018-12-05 13:01:56 +01:00
<router-link class="site-name" :to="{ name: 'root' }" active-class="home">{{sitename}}</router-link>
2017-01-16 18:57:03 +01:00
</div>
2017-02-16 22:25:41 +01:00
<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>
2017-02-16 22:25:41 +01:00
</div>
2016-11-07 18:03:36 +01:00
</div>
</nav>
<div v-if="" class="container" id="content">
<side-drawer ref="sideDrawer" :logout="logout"></side-drawer>
<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>
2019-02-05 13:32:00 +01:00
<features-panel v-if="!currentUser && showFeaturesPanel"></features-panel>
2018-08-22 04:47:36 +02:00
<who-to-follow-panel v-if="currentUser && suggestionsEnabled"></who-to-follow-panel>
<notifications v-if="currentUser"></notifications>
</div>
</div>
</div>
2016-12-02 14:33:03 +01:00
</div>
<div class="main">
2019-02-06 11:01:32 +01:00
<div v-if="!currentUser" class="login-hint panel panel-default">
2019-02-06 17:53:51 +01:00
<router-link :to="{ name: 'login' }" class="panel-body">
{{ $t("login.hint") }}
</router-link>
2019-02-06 11:01:32 +01:00
</div>
2016-12-02 14:33:03 +01:00
<transition name="fade">
<router-view></router-view>
</transition>
</div>
<media-modal></media-modal>
2016-11-07 18:03:36 +01:00
</div>
<chat-panel :floating="true" v-if="currentUser && chat" class="floating-chat mobile-hidden"></chat-panel>
2016-11-07 18:03:36 +01:00
</div>
</template>
2016-10-26 16:46:32 +02:00
2016-10-26 19:03:55 +02:00
<script src="./App.js"></script>
<style lang="scss" src="./App.scss"></style>