Compare commits

...

5 Commits
1.1.0 ... 1.1.1

Author SHA1 Message Date
Book Pauk
0359061321 Merge branch 'release/1.1.1' 2023-01-11 21:30:45 +07:00
Book Pauk
bc7a5f6be4 Merge tag '1.1.0-1' into develop
1.1.0-1
2023-01-11 21:30:36 +07:00
Book Pauk
be36f8f6e8 Merge branch 'release/1.1.0-1' 2023-01-11 21:30:30 +07:00
Book Pauk
3b8d084c76 Доработки ночного режима 2023-01-11 21:29:35 +07:00
Book Pauk
ce1cdca6a0 Merge tag '1.1.0' into develop
1.1.0
2023-01-11 21:06:40 +07:00
2 changed files with 17 additions and 1 deletions

View File

@@ -312,6 +312,7 @@ class ExternalLibs {
inpxUrl = '';
created() {
this.commit = this.$store.commit;
this.oldStartLink = '';
this.justOpened = true;
this.$root.addEventHook('key', this.keyHook);
@@ -404,6 +405,8 @@ class ExternalLibs {
this.ready = true;
if (d.data)
this.libs = _.cloneDeep(d.data);
if (d.sets)
this.updateSets(d.sets);
} else if (d.type == 'notify') {
this.$root.notify.success(d.data, '', {position: 'bottom-right'});
}
@@ -448,6 +451,11 @@ class ExternalLibs {
}
}
updateSets(sets) {
if (sets.nightMode !== this.nightMode)
this.commit('reader/nightModeToggle');
}
commitLibs(libs) {
this.sendMessage({type: 'libs', data: libs});
}
@@ -496,6 +504,10 @@ class ExternalLibs {
return this.$store.state.config.mode;
}
get nightMode() {
return this.$store.state.reader.settings.nightMode;
}
get header() {
let result = [this.ready ? 'Сетевая библиотека' : 'Загрузка...'];
if (this.ready && this.selectedLink) {

View File

@@ -119,8 +119,12 @@ class LibsPage {
return this.$store.state.reader.libs;
}
get nightMode() {
return this.$store.state.reader.settings.nightMode;
}
sendLibs() {
this.sendMessage({type: 'libs', data: _.cloneDeep(this.libs)});
this.sendMessage({type: 'libs', data: _.cloneDeep(this.libs), sets: {nightMode: this.nightMode}});
}
close() {