pleroma-fe/src/App.vue

69 lines
1.8 KiB
Vue
Raw Normal View History

2016-11-08 04:03:36 +11:00
<template>
2019-07-05 17:17:44 +10:00
<div
id="app"
2020-12-17 03:25:07 +11:00
:style="bgStyle"
2019-07-05 17:17:44 +10:00
>
<div
2019-07-20 02:36:07 +10:00
id="app_bg_wrapper"
2019-07-05 17:17:44 +10:00
class="app-bg-wrapper"
/>
<MobileNav v-if="isMobileLayout" />
<DesktopNav v-else />
2020-05-07 23:10:53 +10:00
<div class="app-bg-wrapper app-container-wrapper" />
2019-07-05 17:17:44 +10:00
<div
id="content"
class="container underlay"
2019-07-05 17:17:44 +10:00
>
<div
class="sidebar-flexer mobile-hidden"
:style="sidebarAlign"
>
<div class="sidebar-bounds">
<div class="sidebar-scroller">
<div class="sidebar">
2019-07-05 17:17:44 +10:00
<user-panel />
<div v-if="!isMobileLayout">
2019-07-05 17:17:44 +10:00
<nav-panel />
<instance-specific-panel v-if="showInstanceSpecificPanel" />
<features-panel v-if="!currentUser && showFeaturesPanel" />
<who-to-follow-panel v-if="currentUser && suggestionsEnabled" />
<notifications v-if="currentUser" />
</div>
</div>
</div>
</div>
2016-12-03 00:33:03 +11:00
</div>
<div class="main">
2019-07-05 17:17:44 +10:00
<div
v-if="!currentUser"
class="login-hint panel panel-default"
>
<router-link
:to="{ name: 'login' }"
class="panel-body"
>
2019-02-07 03:53:51 +11:00
{{ $t("login.hint") }}
</router-link>
2019-02-06 21:01:32 +11:00
</div>
<router-view />
2016-12-03 00:33:03 +11:00
</div>
2019-07-05 17:17:44 +10:00
<media-modal />
2016-11-08 04:03:36 +11:00
</div>
<shout-panel
2021-06-15 06:33:51 +10:00
v-if="currentUser && shout && !hideShoutbox"
2019-07-05 17:17:44 +10:00
:floating="true"
class="floating-shout mobile-hidden"
:class="{ 'left': shoutboxPosition }"
2019-07-05 17:17:44 +10:00
/>
2019-09-20 03:59:34 +10:00
<MobilePostStatusButton />
2019-03-19 19:53:11 +11:00
<UserReportingModal />
<PostStatusModal />
2020-05-04 00:36:12 +10:00
<SettingsModal />
<portal-target name="modal" />
<GlobalNoticeList />
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>