From ea8aae4a4df7111d7cb1198107debbbd4de4b1eb Mon Sep 17 00:00:00 2001 From: Bogdan Bogdanov Date: Tue, 15 Sep 2020 09:22:09 +0300 Subject: [PATCH] Refactor the search dialog form to be a component --- src/App.vue | 2 +- src/components/dialogs/SearchDialog.vue | 370 ------------------ .../dialogs/searchDialog/SearchDialog.vue | 192 +++++++++ .../dialogs/searchDialog/SearchDialogForm.vue | 225 +++++++++++ vue.config.js | 2 +- 5 files changed, 419 insertions(+), 372 deletions(-) delete mode 100644 src/components/dialogs/SearchDialog.vue create mode 100644 src/components/dialogs/searchDialog/SearchDialog.vue create mode 100644 src/components/dialogs/searchDialog/SearchDialogForm.vue diff --git a/src/App.vue b/src/App.vue index beb8ff8..cdbbc13 100644 --- a/src/App.vue +++ b/src/App.vue @@ -68,7 +68,7 @@ import Torrents from './components/Torrents.vue'; import AppFooter from './components/Footer.vue'; import LogsDialog from './components/dialogs/LogsDialog.vue'; import RssDialog from './components/dialogs/RssDialog.vue'; -import SearchDialog from './components/dialogs/SearchDialog.vue'; +import SearchDialog from './components/dialogs/searchDialog/SearchDialog.vue'; import DrawerFooter from './components/drawer/DrawerFooter.vue'; import api from './Api'; diff --git a/src/components/dialogs/SearchDialog.vue b/src/components/dialogs/SearchDialog.vue deleted file mode 100644 index 0c4ed19..0000000 --- a/src/components/dialogs/SearchDialog.vue +++ /dev/null @@ -1,370 +0,0 @@ - - - - - diff --git a/src/components/dialogs/searchDialog/SearchDialog.vue b/src/components/dialogs/searchDialog/SearchDialog.vue new file mode 100644 index 0000000..f3a212c --- /dev/null +++ b/src/components/dialogs/searchDialog/SearchDialog.vue @@ -0,0 +1,192 @@ + + + + + diff --git a/src/components/dialogs/searchDialog/SearchDialogForm.vue b/src/components/dialogs/searchDialog/SearchDialogForm.vue new file mode 100644 index 0000000..0c9e599 --- /dev/null +++ b/src/components/dialogs/searchDialog/SearchDialogForm.vue @@ -0,0 +1,225 @@ + + + + + diff --git a/vue.config.js b/vue.config.js index 6fdd96b..7c2bfc2 100644 --- a/vue.config.js +++ b/vue.config.js @@ -6,7 +6,7 @@ module.exports = { port: 8000, proxy: { '/api': { - target: 'http://qb.test:8080', + target: 'https://server.bbogdanov.dev/torrent/', }, }, },