diff options
| author | Henry Jameson <me@hjkos.com> | 2019-07-28 13:30:29 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2019-07-28 13:30:29 +0300 |
| commit | b3aff9bbae77b2fd34b2267ce9196c0ebd3e4691 (patch) | |
| tree | 1219e00b6bfe6784add1578a3bc986c1dbb5f34d /src/App.vue | |
| parent | 7f6f025792dcb3a10c94c8952d0312abd0b46989 (diff) | |
| parent | 4827e4d972f8ee11e606693e24ae4ca21711c6b1 (diff) | |
Merge remote-tracking branch 'upstream/develop' into emoji-selector-update
* upstream/develop: (469 commits)
Feature/add sticker picker
guard more secure routes
guard secure routes by redirecting to root
closest can returns itself as well
find inside status-content div only
try to use the closest a tag as target
Update es.json
Also apply keyword filter to subjects
Remove files I accidentally pushed in
fix issues caused by merges in usersearch on @
Add user search at
fix eslint warnings
remove vue-popperjs
fix moderation menu partially hidden by usercard boundary
migrate popper css
rewrite ModerationTools using v-tooltip
make popover position for status action dropdow relative to parent node
rewrite ExtraButtons using v-tooltip
install v-tooltip
i18n/Update pedantic Japanese translation
...
Diffstat (limited to 'src/App.vue')
| -rw-r--r-- | src/App.vue | 114 |
1 files changed, 88 insertions, 26 deletions
diff --git a/src/App.vue b/src/App.vue index 3b8623ad..be4d1f75 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,51 +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" + /> + <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 v-if="" class="container" id="content"> - <div class="sidebar-flexer mobile-hidden" v-if="!isMobileLayout"> + <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> - <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> + <user-panel /> + <div v-if="!isMobileLayout"> + <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" + /> + <UserReportingModal /> + <portal-target name="modal" /> </div> </template> |
