Удален устаревший код
This commit is contained in:
@@ -320,15 +320,6 @@ class Reader extends Vue {
|
|||||||
});
|
});
|
||||||
|
|
||||||
this.loadSettings();
|
this.loadSettings();
|
||||||
|
|
||||||
//TODO: убрать в будущем
|
|
||||||
if (this.showToolButton['history']) {
|
|
||||||
const newShowToolButton = Object.assign({}, this.showToolButton);
|
|
||||||
newShowToolButton['recentBooks'] = true;
|
|
||||||
delete newShowToolButton['history'];
|
|
||||||
const newSettings = Object.assign({}, this.settings, { showToolButton: newShowToolButton });
|
|
||||||
this.commit('reader/setSettings', newSettings);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|||||||
@@ -211,7 +211,7 @@ class RecentBooksPage extends Vue {
|
|||||||
a.middleName
|
a.middleName
|
||||||
]).join(' '));
|
]).join(' '));
|
||||||
author = authorNames.join(', ');
|
author = authorNames.join(', ');
|
||||||
} else {
|
} else {//TODO: убрать в будущем
|
||||||
author = _.compact([
|
author = _.compact([
|
||||||
fb2.lastName,
|
fb2.lastName,
|
||||||
fb2.firstName,
|
fb2.firstName,
|
||||||
|
|||||||
@@ -32,9 +32,6 @@ export default class BookParser {
|
|||||||
|
|
||||||
//defaults
|
//defaults
|
||||||
let fb2 = {
|
let fb2 = {
|
||||||
firstName: '',
|
|
||||||
middleName: '',
|
|
||||||
lastName: '',
|
|
||||||
bookTitle: '',
|
bookTitle: '',
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -319,7 +319,6 @@ class BookManager {
|
|||||||
|
|
||||||
metaOnly(book) {
|
metaOnly(book) {
|
||||||
let result = Object.assign({}, book);
|
let result = Object.assign({}, book);
|
||||||
delete result.data;//можно будет убрать эту строку со временем
|
|
||||||
delete result.parsed;
|
delete result.parsed;
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user