aboutsummaryrefslogtreecommitdiff
path: root/src/App.vue
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2019-08-31 22:38:02 +0300
committerHenry Jameson <me@hjkos.com>2019-08-31 22:38:02 +0300
commit18ec13d796c0928d09fa93de4117822d2e35502c (patch)
tree1cfb4d68a246c604396bb64bbba3e69bdf4fe511 /src/App.vue
parentb3e9a5a71819c7d3a4b35c5b6ad551785a7ba44f (diff)
parent018a650166a5dce0878b696359a999ab67634cfc (diff)
Merge remote-tracking branch 'upstream/develop' into docs
* upstream/develop: (193 commits) fix user avatar fallback logic remove dead code make bio textarea resizable vertically only remove dead code remove dead code fix crazy watch logic in conversation show three dot button only if needed hide mute conversation button to guests update keyBy generate idObj at timeline level fix pin showing logic in conversation Show a message when JS is disabled Initialize chat only if user is logged in and it wasn't initialized before i18n/Update Japanese i18n/Update pedantic Japanese sync profile tab state with location query refactor TabSwitcher use better name of controlled prop fix potential bug to render active tab in controlled way remove unused param ...
Diffstat (limited to 'src/App.vue')
-rw-r--r--src/App.vue110
1 files changed, 85 insertions, 25 deletions
diff --git a/src/App.vue b/src/App.vue
index 769e075d..719e00a4 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -1,53 +1,113 @@
<template>
- <div id="app" v-bind:style="bgAppStyle">
- <div class="app-bg-wrapper" v-bind:style="bgStyle"></div>
+ <div
+ id="app"
+ :style="bgAppStyle"
+ >
+ <div
+ class="app-bg-wrapper"
+ :style="bgStyle"
+ />
<MobileNav v-if="isMobileLayout" />
- <nav v-else class='nav-bar container' @click="scrollToTop()" id="nav">
- <div class='logo' :style='logoBgStyle'>
- <div class='mask' :style='logoMaskStyle'></div>
- <img :src='logo' :style='logoStyle'>
+ <nav
+ v-else
+ id="nav"
+ class="nav-bar container"
+ @click="scrollToTop()"
+ >
+ <div
+ class="logo"
+ :style="logoBgStyle"
+ >
+ <div
+ class="mask"
+ :style="logoMaskStyle"
+ />
+ <img
+ :src="logo"
+ :style="logoStyle"
+ >
</div>
- <div class='inner-nav'>
- <div class='item'>
- <router-link class="site-name" :to="{ name: 'root' }" active-class="home">{{sitename}}</router-link>
+ <div class="inner-nav">
+ <div class="item">
+ <router-link
+ class="site-name"
+ :to="{ name: 'root' }"
+ active-class="home"
+ >
+ {{ sitename }}
+ </router-link>
</div>
- <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>
+ <div class="item right">
+ <search-bar
+ class="nav-icon mobile-hidden"
+ @toggled="onSearchBarToggled"
+ @click.stop.native
+ />
+ <router-link
+ class="mobile-hidden"
+ :to="{ name: 'settings'}"
+ >
+ <i
+ class="button-icon icon-cog nav-icon"
+ :title="$t('nav.preferences')"
+ />
+ </router-link>
+ <a
+ v-if="currentUser"
+ href="#"
+ class="mobile-hidden"
+ @click.prevent="logout"
+ ><i
+ class="button-icon icon-logout nav-icon"
+ :title="$t('login.logout')"
+ /></a>
</div>
</div>
</nav>
- <div class="container" id="content">
+ <div
+ id="content"
+ class="container"
+ >
<div class="sidebar-flexer mobile-hidden">
<div class="sidebar-bounds">
<div class="sidebar-scroller">
<div class="sidebar">
- <user-panel></user-panel>
+ <user-panel />
<div v-if="!isMobileLayout">
- <nav-panel></nav-panel>
- <instance-specific-panel v-if="showInstanceSpecificPanel"></instance-specific-panel>
- <features-panel v-if="!currentUser && showFeaturesPanel"></features-panel>
- <who-to-follow-panel v-if="currentUser && suggestionsEnabled"></who-to-follow-panel>
- <notifications v-if="currentUser"></notifications>
+ <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>
</div>
<div class="main">
- <div v-if="!currentUser" class="login-hint panel panel-default">
- <router-link :to="{ name: 'login' }" class="panel-body">
+ <div
+ v-if="!currentUser"
+ class="login-hint panel panel-default"
+ >
+ <router-link
+ :to="{ name: 'login' }"
+ class="panel-body"
+ >
{{ $t("login.hint") }}
</router-link>
</div>
<transition name="fade">
- <router-view></router-view>
+ <router-view />
</transition>
</div>
- <media-modal></media-modal>
+ <media-modal />
</div>
- <chat-panel :floating="true" v-if="currentUser && chat" class="floating-chat mobile-hidden"></chat-panel>
+ <chat-panel
+ v-if="currentUser && chat"
+ :floating="true"
+ class="floating-chat mobile-hidden"
+ />
+ <MobilePostStatusModal />
<UserReportingModal />
<portal-target name="modal" />
</div>