Добавлен раздел "Сетевая библиотека" в режим "omnireader"

This commit is contained in:
Book Pauk
2022-12-15 16:31:42 +07:00
parent 55264314b8
commit a5bf8f88cd
10 changed files with 86 additions and 61 deletions

View File

@@ -197,7 +197,7 @@ class App {
setAppTitle(title) {
if (!title) {
if (this.mode == 'liberama.top') {
if (this.mode == 'liberama') {
document.title = `Liberama Reader - всегда с вами`;
} else if (this.mode == 'omnireader') {
document.title = `Omni Reader - всегда с вами`;
@@ -217,19 +217,12 @@ class App {
return this.$store.state.config.mode;
}
get showAsideBar() {
return (this.mode !== null && this.mode != 'reader' && this.mode != 'omnireader' && this.mode != 'liberama.top');
}
set showAsideBar(value) {
}
get isReaderActive() {
return (this.rootRoute == '/reader' || this.rootRoute == '/external-libs');
}
redirectIfNeeded() {
if ((this.mode == 'reader' || this.mode == 'omnireader' || this.mode == 'liberama.top')) {
if ((this.mode == 'reader' || this.mode == 'omnireader' || this.mode == 'liberama')) {
const search = window.location.search.substr(1);
//распознавание параметра url вида "?url=<link>" и редирект при необходимости