فهرست منبع

Добавлен неубираемый баннер о переходе на httpS

Book Pauk 5 سال پیش
والد
کامیت
13cf47873e
1فایلهای تغییر یافته به همراه11 افزوده شده و 0 حذف شده
  1. 11 0
      client/components/Reader/Reader.vue

+ 11 - 0
client/components/Reader/Reader.vue

@@ -1,5 +1,8 @@
 <template>
 <template>
     <el-container>
     <el-container>
+        <div v-show="isShowMigrationWarning" style="height: 30px; overflow: hidden; white-space:nowrap;">
+            <span style="margin-left: 10px; font-size: 20px; position: relative; top: 2px" class="clickable" @click="showMigrationHttp">HTTP-версия читалки скоро станет недоступна. Подробнее...</span>
+        </div>
         <el-header v-show="toolBarActive" height='50px'>
         <el-header v-show="toolBarActive" height='50px'>
             <div ref="header" class="header">
             <div ref="header" class="header">
                 <el-tooltip content="Загрузить книгу" :open-delay="1000" effect="light">
                 <el-tooltip content="Загрузить книгу" :open-delay="1000" effect="light">
@@ -435,6 +438,14 @@ class Reader extends Vue {
         }
         }
     }
     }
 
 
+    get isShowMigrationWarning() {
+        return window.location.protocol == 'http:';
+    }
+
+    showMigrationHttp() {
+        this.migrationVisible1 = true;
+    }
+
     migrationDialogDisable() {
     migrationDialogDisable() {
         this.migrationVisible1 = false;
         this.migrationVisible1 = false;
         this.migrationVisible2 = false;
         this.migrationVisible2 = false;