diff --git a/client/api/misc.js b/client/api/misc.js
index 04fe804b..79d56d0e 100644
--- a/client/api/misc.js
+++ b/client/api/misc.js
@@ -6,7 +6,9 @@ const api = axios.create({
class Misc {
async loadConfig() {
- const response = await api.post('/config', {params: ['name', 'version', 'mode', 'maxUploadFileSize', 'branch']});
+ const response = await api.post('/config', {params: [
+ 'name', 'version', 'mode', 'maxUploadFileSize', 'useExternalBookConverter', 'branch',
+ ]});
return response.data;
}
}
diff --git a/client/components/Reader/LoaderPage/LoaderPage.vue b/client/components/Reader/LoaderPage/LoaderPage.vue
index c0ac9167..a423cebe 100644
--- a/client/components/Reader/LoaderPage/LoaderPage.vue
+++ b/client/components/Reader/LoaderPage/LoaderPage.vue
@@ -3,8 +3,10 @@
{{ title }}
Добро пожаловать!
- Поддерживаются форматы: fb2, fb2.zip, html, txt
+ Поддерживаются форматы: fb2, fb2.zip, html, txt
+ ...а также: rtf, doc, docx, и вскоре: pdf, epub, mobi
+
@@ -15,8 +17,9 @@
Загрузить файл с диска
- Комментарии
+ Комментарии
+
Справка
Помочь проекту
@@ -38,7 +41,6 @@ class LoaderPage extends Vue {
created() {
this.commit = this.$store.commit;
- this.config = this.$store.state.config;
}
mounted() {
@@ -50,14 +52,22 @@ class LoaderPage extends Vue {
}
get title() {
- if (this.config.mode == 'omnireader')
+ if (this.$store.state.config.mode == 'omnireader')
return 'Omni Reader - браузерная онлайн-читалка.';
return 'Универсальная читалка книг и ресурсов интернета.';
}
+ get mode() {
+ return this.$store.state.config.mode;
+ }
+
get version() {
- return `v${this.config.version}`;
+ return `v${this.$store.state.config.version}`;
+ }
+
+ get isExternalConverter() {
+ return this.$store.state.config.useExternalBookConverter;
}
submitUrl() {