diff --git a/src/Api.ts b/src/Api.ts index 7fb68ce..76e2b60 100644 --- a/src/Api.ts +++ b/src/Api.ts @@ -1,6 +1,6 @@ /* eslint-disable @typescript-eslint/camelcase */ -import Axios, { AxiosInstance, AxiosResponse } from 'axios'; -import { RssNode, RssRule, SearchPlugin, ApiCategory, SearchTaskResponse } from '@/types'; +import Axios, { AxiosInstance, AxiosPromise, AxiosResponse } from 'axios'; +import { RssNode, RssRule, SearchPlugin, ApiCategory, SearchTaskResponse, Preferences } from '@/types'; const apiEndpoint = 'api/v2'; @@ -54,7 +54,7 @@ class Api { return this.axios.get('/transfer/info'); } - public getAppPreferences() { + public getAppPreferences(): AxiosPromise { return this.axios.get('/app/preferences'); } diff --git a/src/App.vue b/src/App.vue index 308439d..0e4dfc3 100644 --- a/src/App.vue +++ b/src/App.vue @@ -37,6 +37,10 @@ v-model="drawerOptions.showSearch" /> + alert(tr('todo')) }, + { icon: 'mdi-cog-box', title: tr('settings'), click: () => this.updateOptions('showSettings', true) }, ] endItems: MenuItem[] = [ diff --git a/src/components/dialogs/settingsDialog/SettingsDialog.vue b/src/components/dialogs/settingsDialog/SettingsDialog.vue new file mode 100644 index 0000000..2e66110 --- /dev/null +++ b/src/components/dialogs/settingsDialog/SettingsDialog.vue @@ -0,0 +1,58 @@ +/* eslint-disable vue/max-attributes-per-line */ + + + + +