diff options
| author | Zephyrrus <[email protected]> | 2020-12-24 10:40:50 +0200 |
|---|---|---|
| committer | Zephyrrus <[email protected]> | 2020-12-24 10:40:50 +0200 |
| commit | 90001c2df56d58e69fd199a518ae7f3e4ed327fc (patch) | |
| tree | ac601537b5f464a1b03b084e5139e460f42e3473 /src/site/pages/dashboard | |
| parent | chore: update lock files (diff) | |
| download | host.fuwn.me-90001c2df56d58e69fd199a518ae7f3e4ed327fc.tar.xz host.fuwn.me-90001c2df56d58e69fd199a518ae7f3e4ed327fc.zip | |
chore: remove trailing commas
Diffstat (limited to 'src/site/pages/dashboard')
| -rw-r--r-- | src/site/pages/dashboard/account.vue | 22 | ||||
| -rw-r--r-- | src/site/pages/dashboard/admin/file/_id.vue | 10 | ||||
| -rw-r--r-- | src/site/pages/dashboard/admin/settings.vue | 10 | ||||
| -rw-r--r-- | src/site/pages/dashboard/admin/user/_id.vue | 14 | ||||
| -rw-r--r-- | src/site/pages/dashboard/admin/users.vue | 10 | ||||
| -rw-r--r-- | src/site/pages/dashboard/albums/_id.vue | 16 | ||||
| -rw-r--r-- | src/site/pages/dashboard/albums/index.vue | 10 | ||||
| -rw-r--r-- | src/site/pages/dashboard/index.vue | 18 | ||||
| -rw-r--r-- | src/site/pages/dashboard/tags/index.vue | 14 |
9 files changed, 62 insertions, 62 deletions
diff --git a/src/site/pages/dashboard/account.vue b/src/site/pages/dashboard/account.vue index 5d2f064..5610495 100644 --- a/src/site/pages/dashboard/account.vue +++ b/src/site/pages/dashboard/account.vue @@ -102,7 +102,7 @@ import Sidebar from '~/components/sidebar/Sidebar.vue'; export default { components: { - Sidebar, + Sidebar }, middleware: ['auth', ({ store }) => { store.dispatch('auth/fetchCurrentUser'); @@ -111,21 +111,21 @@ export default { return { password: '', newPassword: '', - reNewPassword: '', + reNewPassword: '' }; }, computed: { ...mapGetters({ 'apiKey': 'auth/getApiKey' }), ...mapState({ - user: (state) => state.auth.user, - }), + user: (state) => state.auth.user + }) }, metaInfo() { return { title: 'Account' }; }, methods: { ...mapActions({ - getUserSetttings: 'auth/fetchCurrentUser', + getUserSetttings: 'auth/fetchCurrentUser' }), async changePassword() { const { password, newPassword, reNewPassword } = this; @@ -133,21 +133,21 @@ export default { if (!password || !newPassword || !reNewPassword) { this.$store.dispatch('alert/set', { text: 'One or more fields are missing', - error: true, + error: true }); return; } if (newPassword !== reNewPassword) { this.$store.dispatch('alert/set', { text: 'Passwords don\'t match', - error: true, + error: true }); return; } const response = await this.$store.dispatch('auth/changePassword', { password, - newPassword, + newPassword }); if (response) { @@ -158,7 +158,7 @@ export default { this.$buefy.dialog.confirm({ type: 'is-danger', message: 'Are you sure you want to regenerate your API key? Previously generated API keys will stop working. Make sure to write the new key down as this is the only time it will be displayed to you.', - onConfirm: () => this.requestNewAPIKey(), + onConfirm: () => this.requestNewAPIKey() }); }, copyKey() { @@ -168,7 +168,7 @@ export default { async requestNewAPIKey() { const response = await this.$store.dispatch('auth/requestAPIKey'); this.$buefy.toast.open(response.message); - }, - }, + } + } }; </script> diff --git a/src/site/pages/dashboard/admin/file/_id.vue b/src/site/pages/dashboard/admin/file/_id.vue index 89afa47..d54bf54 100644 --- a/src/site/pages/dashboard/admin/file/_id.vue +++ b/src/site/pages/dashboard/admin/file/_id.vue @@ -127,7 +127,7 @@ import Sidebar from '~/components/sidebar/Sidebar.vue'; export default { components: { - Sidebar, + Sidebar }, middleware: ['auth', 'admin', ({ route, store }) => { try { @@ -143,7 +143,7 @@ export default { this.$buefy.dialog.confirm({ type: 'is-danger', message: 'Are you sure you want to disable the account of the user that uploaded this file?', - onConfirm: () => this.disableUser(), + onConfirm: () => this.disableUser() }); }, disableUser() { @@ -153,7 +153,7 @@ export default { this.$buefy.dialog.confirm({ type: 'is-danger', message: 'Are you sure you want to ban the IP this file was uploaded from?', - onConfirm: () => this.banIP(), + onConfirm: () => this.banIP() }); }, banIP() { @@ -169,7 +169,7 @@ export default { const i = Math.floor(Math.log(bytes) / Math.log(k)); return `${parseFloat((bytes / k ** i).toFixed(dm))} ${sizes[i]}`; - }, - }, + } + } }; </script> diff --git a/src/site/pages/dashboard/admin/settings.vue b/src/site/pages/dashboard/admin/settings.vue index 56331b5..c6a9ade 100644 --- a/src/site/pages/dashboard/admin/settings.vue +++ b/src/site/pages/dashboard/admin/settings.vue @@ -131,7 +131,7 @@ import Sidebar from '~/components/sidebar/Sidebar.vue'; export default { components: { - Sidebar, + Sidebar }, middleware: ['auth', 'admin', ({ store }) => { try { @@ -145,18 +145,18 @@ export default { return { title: 'Settings' }; }, computed: mapState({ - settings: (state) => state.admin.settings, + settings: (state) => state.admin.settings }), methods: { 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() }); }, restartService() { this.$handler.executeAction('admin/restartService'); - }, - }, + } + } }; </script> diff --git a/src/site/pages/dashboard/admin/user/_id.vue b/src/site/pages/dashboard/admin/user/_id.vue index 7814468..484d986 100644 --- a/src/site/pages/dashboard/admin/user/_id.vue +++ b/src/site/pages/dashboard/admin/user/_id.vue @@ -76,7 +76,7 @@ import Grid from '~/components/grid/Grid.vue'; export default { components: { Sidebar, - Grid, + Grid }, middleware: ['auth', 'admin', ({ route, store }) => { try { @@ -88,25 +88,25 @@ export default { }], data() { return { - options: {}, + options: {} }; }, computed: mapState({ - user: (state) => state.admin.user, + user: (state) => state.admin.user }), methods: { promptDisableUser() { this.$buefy.dialog.confirm({ type: 'is-danger', message: 'Are you sure you want to disable the account of this user?', - onConfirm: () => this.disableUser(), + onConfirm: () => this.disableUser() }); }, promptEnableUser() { this.$buefy.dialog.confirm({ type: 'is-danger', message: 'Are you sure you want to enable the account of this user?', - onConfirm: () => this.enableUser(), + onConfirm: () => this.enableUser() }); }, disableUser() { @@ -114,7 +114,7 @@ export default { }, enableUser() { this.$handler.executeAction('admin/enableUser', this.user.id); - }, - }, + } + } }; </script> diff --git a/src/site/pages/dashboard/admin/users.vue b/src/site/pages/dashboard/admin/users.vue index 60d030a..a13564c 100644 --- a/src/site/pages/dashboard/admin/users.vue +++ b/src/site/pages/dashboard/admin/users.vue @@ -91,7 +91,7 @@ import Sidebar from '~/components/sidebar/Sidebar.vue'; export default { components: { - Sidebar, + Sidebar }, middleware: ['auth', 'admin', ({ route, store }) => { try { @@ -103,7 +103,7 @@ export default { }], computed: mapState({ users: (state) => state.admin.users, - config: (state) => state.config, + config: (state) => state.config }), metaInfo() { return { title: 'Uploads' }; @@ -126,13 +126,13 @@ export default { promptPurgeFiles(row) { this.$buefy.dialog.confirm({ message: 'Are you sure you want to delete this user\'s files?', - onConfirm: () => this.purgeFiles(row), + onConfirm: () => this.purgeFiles(row) }); }, async purgeFiles(row) { this.$handler.executeAction('admin/purgeUserFiles', row.id); - }, - }, + } + } }; </script> diff --git a/src/site/pages/dashboard/albums/_id.vue b/src/site/pages/dashboard/albums/_id.vue index 0b67ec3..cf27a15 100644 --- a/src/site/pages/dashboard/albums/_id.vue +++ b/src/site/pages/dashboard/albums/_id.vue @@ -72,7 +72,7 @@ export default { components: { Sidebar, Grid, - Search, + Search }, middleware: ['auth', ({ route, store }) => { store.commit('images/resetState'); @@ -80,34 +80,34 @@ export default { }], data() { return { - current: 1, + current: 1 }; }, computed: { ...mapGetters({ totalFiles: 'images/getTotalFiles', shouldPaginate: 'images/shouldPaginate', - limit: 'images/getLimit', + limit: 'images/getLimit' }), ...mapState(['images']), id() { return this.$route.params.id; - }, + } }, metaInfo() { return { title: 'Album' }; }, watch: { - current: 'fetchPaginate', + current: 'fetchPaginate' }, methods: { ...mapActions({ - fetch: 'images/fetchByAlbumId', + fetch: 'images/fetchByAlbumId' }), fetchPaginate() { this.fetch({ id: this.id, page: this.current }); - }, - }, + } + } }; </script> diff --git a/src/site/pages/dashboard/albums/index.vue b/src/site/pages/dashboard/albums/index.vue index c5acb2e..896d134 100644 --- a/src/site/pages/dashboard/albums/index.vue +++ b/src/site/pages/dashboard/albums/index.vue @@ -53,7 +53,7 @@ import AlbumEntry from '~/components/album/AlbumEntry.vue'; export default { components: { Sidebar, - AlbumEntry, + AlbumEntry }, middleware: ['auth', ({ store }) => { try { @@ -65,7 +65,7 @@ export default { data() { return { newAlbumName: null, - isCreatingAlbum: false, + isCreatingAlbum: false }; }, computed: mapState(['config', 'albums']), @@ -74,7 +74,7 @@ export default { }, methods: { ...mapActions({ - 'alert': 'alert/set', + 'alert': 'alert/set' }), async createAlbum() { if (!this.newAlbumName || this.newAlbumName === '') return; @@ -90,8 +90,8 @@ export default { this.isCreatingAlbum = false; this.newAlbumName = null; } - }, - }, + } + } }; </script> diff --git a/src/site/pages/dashboard/index.vue b/src/site/pages/dashboard/index.vue index 096f4e3..f94ca0d 100644 --- a/src/site/pages/dashboard/index.vue +++ b/src/site/pages/dashboard/index.vue @@ -64,7 +64,7 @@ export default { components: { Sidebar, Grid, - Search, + Search }, middleware: ['auth', ({ store }) => { store.commit('images/resetState'); @@ -74,29 +74,29 @@ export default { return { current: 1, isLoading: false, - search: '', + search: '' }; }, computed: { ...mapGetters({ totalFiles: 'images/getTotalFiles', shouldPaginate: 'images/shouldPaginate', - limit: 'images/getLimit', + limit: 'images/getLimit' }), - ...mapState(['images']), + ...mapState(['images']) }, metaInfo() { return { title: 'Uploads' }; }, watch: { - current: 'fetchPaginate', + current: 'fetchPaginate' }, created() { this.filteredHints = this.hints; // fixes the issue where on pageload, suggestions wont load }, methods: { ...mapActions({ - fetch: 'images/fetch', + fetch: 'images/fetch' }), async fetchPaginate() { this.isLoading = true; @@ -111,10 +111,10 @@ export default { onSearch(query) { this.search = query; this.$handler.executeAction('images/search', { - q: this.sanitizeQuery(query), + q: this.sanitizeQuery(query) }); - }, - }, + } + } }; </script> diff --git a/src/site/pages/dashboard/tags/index.vue b/src/site/pages/dashboard/tags/index.vue index fe92087..dca8304 100644 --- a/src/site/pages/dashboard/tags/index.vue +++ b/src/site/pages/dashboard/tags/index.vue @@ -215,19 +215,19 @@ import Sidebar from '~/components/sidebar/Sidebar.vue'; export default { components: { - Sidebar, + Sidebar }, middleware: 'auth', data() { return { tags: [], - newTagName: null, + newTagName: null }; }, computed: { config() { return this.$store.state.config; - }, + } }, metaInfo() { return { title: 'Tags' }; @@ -240,7 +240,7 @@ export default { this.$buefy.dialog.confirm({ type: 'is-danger', message: 'Are you sure you want to delete this tag?', - onConfirm: () => this.promptPurgeTag(id), + onConfirm: () => this.promptPurgeTag(id) }); }, promptPurgeTag(id) { @@ -250,7 +250,7 @@ export default { cancelText: 'No', confirmText: 'Yes', onConfirm: () => this.deleteTag(id, true), - onCancel: () => this.deleteTag(id, false), + onCancel: () => this.deleteTag(id, false) }); }, async deleteTag(id, purge) { @@ -272,7 +272,7 @@ export default { tag.isDetailsOpen = false; } this.tags = response.tags; - }, - }, + } + } }; </script> |