Skip to content
Snippets Groups Projects
App.vue 2.36 KiB
Newer Older
  • Learn to ignore specific revisions
  • lain's avatar
    lain committed
    <template>
    
      <div id="app" v-bind:style="bgAppStyle">
    
    Tae Hoon's avatar
    Tae Hoon committed
        <div class="app-bg-wrapper" v-bind:style="bgStyle"></div>
    
        <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'>
          </div>
          <div class='inner-nav'>
    
    lain's avatar
    lain committed
            <div class='item'>
    
    HJ's avatar
    HJ committed
              <router-link class="site-name" :to="{ name: 'root' }" active-class="home">{{sitename}}</router-link>
    
    lain's avatar
    lain committed
            </div>
    
    lain's avatar
    lain committed
            <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>
    
    lain's avatar
    lain committed
            </div>
    
    lain's avatar
    lain committed
          </div>
        </nav>
    
        <div v-if="" class="container" id="content">
    
          <div class="sidebar-flexer mobile-hidden" v-if="!isMobileLayout">
    
            <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>
    
    tsukada-ecsec's avatar
    tsukada-ecsec committed
                  <who-to-follow-panel v-if="currentUser && suggestionsEnabled"></who-to-follow-panel>
    
                  <notifications v-if="currentUser"></notifications>
    
    lain's avatar
    lain committed
          </div>
    
            <div v-if="!currentUser" class="login-hint panel panel-default">
    
    Xiaofeng An's avatar
    Xiaofeng An committed
              <router-link :to="{ name: 'login' }" class="panel-body">
                {{ $t("login.hint") }}
              </router-link>
    
    lain's avatar
    lain committed
            <transition name="fade">
              <router-view></router-view>
            </transition>
          </div>
    
    lain's avatar
    lain committed
        </div>
    
        <chat-panel :floating="true" v-if="currentUser && chat" class="floating-chat mobile-hidden"></chat-panel>
    
    lain's avatar
    lain committed
      </div>
    </template>
    
    lain's avatar
    lain committed
    
    
    lain's avatar
    .  
    lain committed
    <script src="./App.js"></script>
    <style lang="scss" src="./App.scss"></style>