From df76de7352815a9e9cbfcdbd083b456e5559a563 Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Sun, 25 Oct 2020 18:35:42 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=BA?= =?UTF-8?q?=D0=B8=20=D0=B4=D0=BB=D1=8F=20=D0=BD=D0=BE=D0=B2=D0=BE=D0=B3?= =?UTF-8?q?=D0=BE=20=D1=81=D0=B0=D0=B9=D1=82=D0=B0=20liberama.top?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/components/App.vue | 8 +++++--- .../HelpPage/CommonHelpPage/CommonHelpPage.vue | 12 ++++++++---- client/components/Reader/LoaderPage/LoaderPage.vue | 6 ++++-- client/components/Reader/Reader.vue | 2 +- .../Reader/SettingsPage/include/ProfilesTab.inc | 2 +- 5 files changed, 19 insertions(+), 11 deletions(-) diff --git a/client/components/App.vue b/client/components/App.vue index a467dd28..c979599e 100644 --- a/client/components/App.vue +++ b/client/components/App.vue @@ -202,7 +202,9 @@ class App extends Vue { setAppTitle(title) { if (!title) { - if (this.mode == 'omnireader') { + if (this.mode == 'liberama.top') { + document.title = `Liberama Reader - всегда с вами`; + } else if (this.mode == 'omnireader') { document.title = `Omni Reader - всегда с вами`; } else if (this.config && this.mode !== null) { document.title = `${this.config.name} - ${this.itemRuText[this.$root.rootRoute]}`; @@ -221,7 +223,7 @@ class App extends Vue { } get showAsideBar() { - return (this.mode !== null && this.mode != 'reader' && this.mode != 'omnireader'); + return (this.mode !== null && this.mode != 'reader' && this.mode != 'omnireader' && this.mode != 'liberama.top'); } set showAsideBar(value) { @@ -232,7 +234,7 @@ class App extends Vue { } redirectIfNeeded() { - if ((this.mode == 'reader' || this.mode == 'omnireader') && (!this.isReaderActive)) { + if ((this.mode == 'reader' || this.mode == 'omnireader' || this.mode == 'liberama.top') && (!this.isReaderActive)) { //старый url const search = window.location.search.substr(1); const s = search.split('url='); diff --git a/client/components/Reader/HelpPage/CommonHelpPage/CommonHelpPage.vue b/client/components/Reader/HelpPage/CommonHelpPage/CommonHelpPage.vue index ab945a71..b5860517 100644 --- a/client/components/Reader/HelpPage/CommonHelpPage/CommonHelpPage.vue +++ b/client/components/Reader/HelpPage/CommonHelpPage/CommonHelpPage.vue @@ -22,15 +22,15 @@ на файл из онлайн-библиотеки (например, скопировав адрес ссылки или кнопки "скачать fb2").

Поддерживаемые форматы: fb2, fb2.zip, html, txt и другие.

-
+

Вы можете добавить в свой браузер закладку, указав в ее свойствах вместо адреса следующий код: -
javascript:location.href='https://omnireader.ru/?url='+location.href; - +
{{ bookmarkText }} + Скопировать
или перетащив на панель закладок следующую ссылку: -
Omni Reader +
{{ (mode == 'omnireader' ? 'Omni' : 'Liberama') }} Reader
Тогда, активировав получившуюся закладку на любой странице интернета, вы автоматически загрузите эту страницу в Omni Reader.
В Chrome для Android можно вызывать такую закладку по имени прямо в адресной строке браузера (имя стоит сделать попроще).

@@ -56,6 +56,10 @@ class CommonHelpPage extends Vue { return this.$store.state.config.mode; } + get bookmarkText() { + return `javascript:location.href='https://${window.location.host}/?url='+location.href;` + } + async copyText(text, mes) { const result = await copyTextToClipboard(text); const msg = (result ? mes : 'Копирование не удалось'); diff --git a/client/components/Reader/LoaderPage/LoaderPage.vue b/client/components/Reader/LoaderPage/LoaderPage.vue index 6cb4e4b4..df395a17 100644 --- a/client/components/Reader/LoaderPage/LoaderPage.vue +++ b/client/components/Reader/LoaderPage/LoaderPage.vue @@ -40,8 +40,8 @@
- Отзывы о читалке - Старая версия + Отзывы о читалке + Старая версия
@@ -93,6 +93,8 @@ class LoaderPage extends Vue { get title() { if (this.mode == 'omnireader') return 'Omni Reader - браузерная онлайн-читалка.'; + if (this.mode == 'liberama.top') + return 'Liberama Reader - браузерная онлайн-читалка.'; return 'Универсальная читалка книг и ресурсов интернета.'; } diff --git a/client/components/Reader/Reader.vue b/client/components/Reader/Reader.vue index 6c837fe3..979938d3 100644 --- a/client/components/Reader/Reader.vue +++ b/client/components/Reader/Reader.vue @@ -410,7 +410,7 @@ class Reader extends Vue { await utils.sleep(3000); const today = utils.formatDate(new Date(), 'coDate'); - if (this.mode == 'omnireader' && today < '2020-03-01' && this.showDonationDialog2020 && this.donationRemindDate != today) { + if ((this.mode == 'omnireader' || this.mode == 'liberama.top') && today < '2020-03-01' && this.showDonationDialog2020 && this.donationRemindDate != today) { this.donationVisible = true; } } diff --git a/client/components/Reader/SettingsPage/include/ProfilesTab.inc b/client/components/Reader/SettingsPage/include/ProfilesTab.inc index 8ce04f07..b9e0a898 100644 --- a/client/components/Reader/SettingsPage/include/ProfilesTab.inc +++ b/client/components/Reader/SettingsPage/include/ProfilesTab.inc @@ -68,7 +68,7 @@ Скопировать
-
+

Переход по ссылке позволит автоматически ввести ключ доступа: