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 | |
| 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')
| -rw-r--r-- | src/site/pages/a/_identifier.vue | 14 | ||||
| -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 | ||||
| -rw-r--r-- | src/site/pages/faq.vue | 2 | ||||
| -rw-r--r-- | src/site/pages/index.vue | 6 | ||||
| -rw-r--r-- | src/site/pages/login.vue | 6 | ||||
| -rw-r--r-- | src/site/pages/logout.vue | 2 | ||||
| -rw-r--r-- | src/site/pages/register.vue | 8 |
15 files changed, 81 insertions, 81 deletions
diff --git a/src/site/pages/a/_identifier.vue b/src/site/pages/a/_identifier.vue index 3746cc6..0c6261a 100644 --- a/src/site/pages/a/_identifier.vue +++ b/src/site/pages/a/_identifier.vue @@ -67,7 +67,7 @@ export default { computed: { config() { return this.$store.state.config; - }, + } }, async asyncData({ app, params, error }) { try { @@ -77,7 +77,7 @@ export default { name: data.name, downloadEnabled: data.downloadEnabled, files: data.files, - downloadLink, + downloadLink }; } catch (err) { console.log('Error when retrieving album', err); @@ -100,8 +100,8 @@ export default { { vmid: 'og:title', property: 'og:title', content: `Album: ${this.name} | Files: ${this.files.length}` }, { vmid: 'og:description', property: 'og:description', content: 'A modern and self-hosted file upload service that can handle anything you throw at it. Fast uploads, file manager and sharing capabilities all crafted with a beautiful user experience in mind.' }, { vmid: 'og:image', property: 'og:image', content: `${this.files.length > 0 ? this.files[0].thumbSquare : '/public/images/share.jpg'}` }, - { vmid: 'og:image:secure_url', property: 'og:image:secure_url', content: `${this.files.length > 0 ? this.files[0].thumbSquare : '/public/images/share.jpg'}` }, - ], + { vmid: 'og:image:secure_url', property: 'og:image:secure_url', content: `${this.files.length > 0 ? this.files[0].thumbSquare : '/public/images/share.jpg'}` } + ] }; } return { @@ -113,9 +113,9 @@ export default { { vmid: 'twitter:description', name: 'twitter:description', content: 'A modern and self-hosted file upload service that can handle anything you throw at it. Fast uploads, file manager and sharing capabilities all crafted with a beautiful user experience in mind.' }, { vmid: 'og:url', property: 'og:url', content: `${this.config.URL}/a/${this.$route.params.identifier}` }, { vmid: 'og:title', property: 'og:title', content: 'lolisafe' }, - { vmid: 'og:description', property: 'og:description', content: 'A modern and self-hosted file upload service that can handle anything you throw at it. Fast uploads, file manager and sharing capabilities all crafted with a beautiful user experience in mind.' }, - ], + { vmid: 'og:description', property: 'og:description', content: 'A modern and self-hosted file upload service that can handle anything you throw at it. Fast uploads, file manager and sharing capabilities all crafted with a beautiful user experience in mind.' } + ] }; - }, + } }; </script> 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> diff --git a/src/site/pages/faq.vue b/src/site/pages/faq.vue index 85e8744..9053072 100644 --- a/src/site/pages/faq.vue +++ b/src/site/pages/faq.vue @@ -56,7 +56,7 @@ export default { }, metaInfo() { return { title: 'Faq' }; - }, + } }; </script> diff --git a/src/site/pages/index.vue b/src/site/pages/index.vue index a28eea4..8193b88 100644 --- a/src/site/pages/index.vue +++ b/src/site/pages/index.vue @@ -41,15 +41,15 @@ export default { components: { Logo, Uploader, - Links, + Links }, data() { return { albums: [] }; }, computed: { ...mapGetters({ loggedIn: 'auth/isLoggedIn' }), - ...mapState(['config']), - }, + ...mapState(['config']) + } }; </script> <style lang="scss" scoped> diff --git a/src/site/pages/login.vue b/src/site/pages/login.vue index 1f313e3..6403aa9 100644 --- a/src/site/pages/login.vue +++ b/src/site/pages/login.vue @@ -95,7 +95,7 @@ export default { password: null, mfaCode: null, isMfaModalActive: false, - isLoading: false, + isLoading: false }; }, computed: mapState(['config', 'auth']), @@ -150,7 +150,7 @@ export default { return; } this.$router.push('/dashboard'); - }, - }, + } + } }; </script> diff --git a/src/site/pages/logout.vue b/src/site/pages/logout.vue index 7124ea5..e6adbea 100644 --- a/src/site/pages/logout.vue +++ b/src/site/pages/logout.vue @@ -3,6 +3,6 @@ export default { async created() { await this.$store.dispatch('auth/logout'); this.$router.replace('/login'); - }, + } }; </script> diff --git a/src/site/pages/register.vue b/src/site/pages/register.vue index 5a7a158..64376db 100644 --- a/src/site/pages/register.vue +++ b/src/site/pages/register.vue @@ -74,7 +74,7 @@ export default { username: null, password: null, rePassword: null, - isLoading: false, + isLoading: false }; }, computed: mapState(['config', 'auth']), @@ -98,7 +98,7 @@ export default { try { const response = await this.$store.dispatch('auth/register', { username: this.username, - password: this.password, + password: this.password }); this.$notifier.success(response.message); @@ -109,7 +109,7 @@ export default { } finally { this.isLoading = false; } - }, - }, + } + } }; </script> |