83 lines
2.2 KiB
Vue
83 lines
2.2 KiB
Vue
<template>
|
|
<div
|
|
id="app"
|
|
:style="bgStyle"
|
|
>
|
|
<div
|
|
id="app_bg_wrapper"
|
|
class="app-bg-wrapper"
|
|
/>
|
|
<MobileNav v-if="isMobileLayout" />
|
|
<DesktopNav v-else />
|
|
<div class="app-bg-wrapper app-container-wrapper" />
|
|
<div
|
|
id="content"
|
|
:style="thirdColumnLayout"
|
|
class="container underlay"
|
|
>
|
|
<div
|
|
class="sidebar-flexer mobile-hidden"
|
|
:style="sidebarAlign"
|
|
>
|
|
<div class="sidebar-bounds">
|
|
<div class="sidebar-scroller">
|
|
<div class="sidebar">
|
|
<user-panel />
|
|
<div v-if="!isMobileLayout">
|
|
<nav-panel />
|
|
<instance-specific-panel v-if="showInstanceSpecificPanel" />
|
|
<who-to-follow-panel v-if="currentUser && suggestionsEnabled" />
|
|
<notifications v-if="currentUser && !thirdColumnEnabled" />
|
|
<features-panel v-if="!currentUser && !thirdColumnEnabled" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="main">
|
|
<div
|
|
v-if="!currentUser"
|
|
class="login-hint panel panel-default"
|
|
>
|
|
<router-link
|
|
:to="{ name: 'login' }"
|
|
class="panel-body"
|
|
>
|
|
{{ $t("login.hint") }}
|
|
</router-link>
|
|
</div>
|
|
<router-view />
|
|
</div>
|
|
<div
|
|
v-if="thirdColumnEnabled"
|
|
class="sidebar-flexer mobile-hidden"
|
|
>
|
|
<div class="sidebar-bounds">
|
|
<div class="sidebar-scroller">
|
|
<div class="sidebar">
|
|
<div v-if="!isMobileLayout">
|
|
<notifications v-if="currentUser" />
|
|
<features-panel v-if="!currentUser && showFeaturesPanel" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<media-modal />
|
|
</div>
|
|
<shout-panel
|
|
v-if="currentUser && shout && !hideShoutbox"
|
|
:floating="true"
|
|
class="floating-shout mobile-hidden"
|
|
/>
|
|
<MobilePostStatusButton />
|
|
<UserReportingModal />
|
|
<PostStatusModal />
|
|
<SettingsModal />
|
|
<portal-target name="modal" />
|
|
<GlobalNoticeList />
|
|
</div>
|
|
</template>
|
|
|
|
<script src="./App.js"></script>
|
|
<style lang="scss" src="./App.scss"></style>
|