From f2c6dd658130be3dbef260dfa03d6bb7c67b7236 Mon Sep 17 00:00:00 2001
From: dev92341 <jasper92341@hotmail.com>
Date: Tue, 5 Feb 2019 03:57:11 -0800
Subject: Add option to hide features panel

---
 src/App.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/App.vue')

diff --git a/src/App.vue b/src/App.vue
index 833608ea..b999d889 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -29,7 +29,7 @@
               <user-panel></user-panel>
               <nav-panel></nav-panel>
               <instance-specific-panel v-if="showInstanceSpecificPanel"></instance-specific-panel>
-              <features-panel v-if="!currentUser"></features-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>
             </div>
-- 
cgit v1.2.3-70-g09d2


From 1ee762cf6e09c12c21d5ba23295a128db493f6fc Mon Sep 17 00:00:00 2001
From: dev92341 <jasper92341@hotmail.com>
Date: Tue, 5 Feb 2019 04:32:00 -0800
Subject: Add option to hide features panel

---
 src/App.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/App.vue')

diff --git a/src/App.vue b/src/App.vue
index b999d889..082c6cb6 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -29,7 +29,7 @@
               <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>
+              <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>
             </div>
-- 
cgit v1.2.3-70-g09d2


From f512ee2c3c30fbdd983dfcf8df5008208037f71e Mon Sep 17 00:00:00 2001
From: Xiaofeng An <futureweb2020@yandex.com>
Date: Wed, 6 Feb 2019 05:01:32 -0500
Subject: move login hint into the main content

---
 src/App.scss                         | 14 +++++++
 src/App.vue                          |  7 ++++
 src/components/timeline/timeline.js  |  3 +-
 src/components/timeline/timeline.vue | 73 ++++++++++++------------------------
 4 files changed, 47 insertions(+), 50 deletions(-)

(limited to 'src/App.vue')

diff --git a/src/App.scss b/src/App.scss
index d3721b32..1eaed6ea 100644
--- a/src/App.scss
+++ b/src/App.scss
@@ -719,3 +719,17 @@ nav {
     margin-right: 0.8em;
   }
 }
+
+.login-hint {
+  text-align: center;
+  
+  @media all and (min-width: 801px) {
+    display: none;
+  }
+
+  a {
+    display: inline-block;
+    padding: 1em 0px;
+    width: 100%;
+  }
+}
diff --git a/src/App.vue b/src/App.vue
index 082c6cb6..342a4fdf 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -37,6 +37,13 @@
         </div>
       </div>
       <div class="main">
+        <div v-if="!currentUser" class="login-hint panel panel-default">
+          <div class="panel-body">
+            <router-link :to="{ name: 'login' }">
+              {{ $t("login.hint") }}
+            </router-link>
+          </div>
+        </div>
         <transition name="fade">
           <router-view></router-view>
         </transition>
diff --git a/src/components/timeline/timeline.js b/src/components/timeline/timeline.js
index 2bbb05f3..85e0a055 100644
--- a/src/components/timeline/timeline.js
+++ b/src/components/timeline/timeline.js
@@ -39,8 +39,7 @@ const Timeline = {
         body: ['timeline-body'].concat(!this.embedded ? ['panel-body'] : []),
         footer: ['timeline-footer'].concat(!this.embedded ? ['panel-footer'] : [])
       }
-    },
-    currentUser () { return this.$store.state.users.currentUser }
+    }
   },
   components: {
     Status,
diff --git a/src/components/timeline/timeline.vue b/src/components/timeline/timeline.vue
index 74909f6d..e3eea3bd 100644
--- a/src/components/timeline/timeline.vue
+++ b/src/components/timeline/timeline.vue
@@ -1,42 +1,33 @@
 <template>
-  <div>
-    <div v-if="!currentUser" class="login-hint panel panel-default">
-      <div class="panel-body">
-        <router-link :to="{ name: 'login' }">
-          {{ $t("login.hint") }}
-        </router-link>
+  <div :class="classes.root">
+    <div :class="classes.header">
+      <div class="title">
+        {{title}}
+      </div>
+      <div @click.prevent class="loadmore-error alert error" v-if="timelineError">
+        {{$t('timeline.error_fetching')}}
+      </div>
+      <button @click.prevent="showNewStatuses" class="loadmore-button" v-if="timeline.newStatusCount > 0 && !timelineError">
+        {{$t('timeline.show_new')}}{{newStatusCountStr}}
+      </button>
+      <div @click.prevent class="loadmore-text faint" v-if="!timeline.newStatusCount > 0 && !timelineError">
+        {{$t('timeline.up_to_date')}}
       </div>
     </div>
-    <div :class="classes.root">
-      <div :class="classes.header">
-        <div class="title">
-          {{title}}
-        </div>
-        <div @click.prevent class="loadmore-error alert error" v-if="timelineError">
-          {{$t('timeline.error_fetching')}}
-        </div>
-        <button @click.prevent="showNewStatuses" class="loadmore-button" v-if="timeline.newStatusCount > 0 && !timelineError">
-          {{$t('timeline.show_new')}}{{newStatusCountStr}}
-        </button>
-        <div @click.prevent class="loadmore-text faint" v-if="!timeline.newStatusCount > 0 && !timelineError">
-          {{$t('timeline.up_to_date')}}
-        </div>
+    <div :class="classes.body">
+      <div class="timeline">
+        <status-or-conversation v-for="status in timeline.visibleStatuses" :key="status.id" v-bind:statusoid="status" class="status-fadein"></status-or-conversation>
       </div>
-      <div :class="classes.body">
-        <div class="timeline">
-          <status-or-conversation v-for="status in timeline.visibleStatuses" :key="status.id" v-bind:statusoid="status" class="status-fadein"></status-or-conversation>
-        </div>
+    </div>
+    <div :class="classes.footer">
+      <div v-if="bottomedOut" class="new-status-notification text-center panel-footer faint">
+        {{$t('timeline.no_more_statuses')}}
       </div>
-      <div :class="classes.footer">
-        <div v-if="bottomedOut" class="new-status-notification text-center panel-footer faint">
-          {{$t('timeline.no_more_statuses')}}
-        </div>
-        <a v-else-if="!timeline.loading" href="#" v-on:click.prevent='fetchOlderStatuses()'>
-          <div class="new-status-notification text-center panel-footer">{{$t('timeline.load_older')}}</div>
-        </a>
-        <div v-else class="new-status-notification text-center panel-footer">
-          <i class="icon-spin3 animate-spin"/>
-        </div>
+      <a v-else-if="!timeline.loading" href="#" v-on:click.prevent='fetchOlderStatuses()'>
+        <div class="new-status-notification text-center panel-footer">{{$t('timeline.load_older')}}</div>
+      </a>
+      <div v-else class="new-status-notification text-center panel-footer">
+        <i class="icon-spin3 animate-spin"/>
       </div>
     </div>
   </div>
@@ -65,18 +56,4 @@
   background-color: $fallback--fg;
   background-color: var(--panel, $fallback--fg);
 }
-
-.login-hint {
-  text-align: center;
-  
-  @media all and (min-width: 801px) {
-    display: none;
-  }
-
-  a {
-    display: inline-block;
-    padding: 1em 0px;
-    width: 100%;
-  }
-}
 </style>
-- 
cgit v1.2.3-70-g09d2


From a40d1eb3a09738dc0068501d020eacddf6ba3775 Mon Sep 17 00:00:00 2001
From: Xiaofeng An <futureweb2020@yandex.com>
Date: Wed, 6 Feb 2019 11:53:51 -0500
Subject: remove unnecessary div

---
 src/App.vue | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

(limited to 'src/App.vue')

diff --git a/src/App.vue b/src/App.vue
index 342a4fdf..7541928f 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -38,11 +38,9 @@
       </div>
       <div class="main">
         <div v-if="!currentUser" class="login-hint panel panel-default">
-          <div class="panel-body">
-            <router-link :to="{ name: 'login' }">
-              {{ $t("login.hint") }}
-            </router-link>
-          </div>
+          <router-link :to="{ name: 'login' }" class="panel-body">
+            {{ $t("login.hint") }}
+          </router-link>
         </div>
         <transition name="fade">
           <router-view></router-view>
-- 
cgit v1.2.3-70-g09d2

