From ad852de51a0d2dd5d29c08838d5a430c58849e74 Mon Sep 17 00:00:00 2001 From: Zephyrrus Date: Wed, 8 Jul 2020 04:00:12 +0300 Subject: chore: linter the entire project using the new rules --- src/site/pages/dashboard/admin/settings.vue | 85 +++++++++++++++++++---------- 1 file changed, 55 insertions(+), 30 deletions(-) (limited to 'src/site/pages/dashboard/admin/settings.vue') diff --git a/src/site/pages/dashboard/admin/settings.vue b/src/site/pages/dashboard/admin/settings.vue index 2d59fff..9e63a7c 100644 --- a/src/site/pages/dashboard/admin/settings.vue +++ b/src/site/pages/dashboard/admin/settings.vue @@ -6,87 +6,112 @@
-

Service settings

+

+ Service settings +


- - - - - - - - - - - - - - - - - - - -
- +
@@ -99,12 +124,12 @@ import Sidebar from '~/components/sidebar/Sidebar.vue'; export default { components: { - Sidebar + Sidebar, }, middleware: ['auth', 'admin'], data() { return { - options: {} + options: {}, }; }, metaInfo() { @@ -115,19 +140,19 @@ export default { }, methods: { async getSettings() { - const response = await this.$axios.$get(`service/config`); + const response = await this.$axios.$get('service/config'); this.options = response.config; }, promptRestartService() { this.$buefy.dialog.confirm({ message: 'Keep in mind that restarting only works if you have PM2 or something similar set up. Continue?', - onConfirm: () => this.restartService() + onConfirm: () => this.restartService(), }); }, async restartService() { - const response = await this.$axios.$post(`service/restart`); + const response = await this.$axios.$post('service/restart'); this.$buefy.toast.open(response.message); - } - } + }, + }, }; -- cgit v1.2.3 From 0f66d807035d3e32a66c7dc9bf55fb3be99aedac Mon Sep 17 00:00:00 2001 From: Zephyrrus Date: Fri, 10 Jul 2020 01:13:51 +0300 Subject: refactor: finish refactoring all the components to use vuex --- src/site/pages/dashboard/admin/settings.vue | 50 ++++++++++++++--------------- 1 file changed, 24 insertions(+), 26 deletions(-) (limited to 'src/site/pages/dashboard/admin/settings.vue') diff --git a/src/site/pages/dashboard/admin/settings.vue b/src/site/pages/dashboard/admin/settings.vue index 9e63a7c..7f6a0fe 100644 --- a/src/site/pages/dashboard/admin/settings.vue +++ b/src/site/pages/dashboard/admin/settings.vue @@ -16,7 +16,7 @@ message="Please enter the name which this service is gonna be identified as" horizontal> @@ -25,7 +25,7 @@ message="Where to store the files relative to the working directory" horizontal> @@ -34,7 +34,7 @@ message="Maximum links allowed per album" horizontal> @@ -44,7 +44,7 @@ message="Maximum allowed file size in MB" horizontal> @@ -53,7 +53,7 @@ message="How many characters long should the generated filenames be" horizontal> @@ -62,7 +62,7 @@ message="How many characters a link for an album should have" horizontal> @@ -71,7 +71,7 @@ message="Generate thumbnails when uploading a file if possible" horizontal> @@ -81,7 +81,7 @@ message="Allow generating zips to download entire albums" horizontal> @@ -91,7 +91,7 @@ message="Enable anonymous uploades" horizontal> @@ -101,7 +101,7 @@ message="Enable creating new accounts in the platform" horizontal> @@ -120,38 +120,36 @@