diff options
| author | Pitu <[email protected]> | 2020-06-25 02:05:48 +0900 |
|---|---|---|
| committer | Pitu <[email protected]> | 2020-06-25 02:05:48 +0900 |
| commit | f189ddf9e6e1dda0c8e56afd367bc378ee19b8fd (patch) | |
| tree | f9b81c236ace8958768a8f134a530396638cfc33 /src/site/pages/a | |
| parent | Update error message (diff) | |
| download | host.fuwn.me-f189ddf9e6e1dda0c8e56afd367bc378ee19b8fd.tar.xz host.fuwn.me-f189ddf9e6e1dda0c8e56afd367bc378ee19b8fd.zip | |
Cleanup
Diffstat (limited to 'src/site/pages/a')
| -rw-r--r-- | src/site/pages/a/_identifier.vue | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/src/site/pages/a/_identifier.vue b/src/site/pages/a/_identifier.vue index 62035b3..ea36852 100644 --- a/src/site/pages/a/_identifier.vue +++ b/src/site/pages/a/_identifier.vue @@ -1,7 +1,5 @@ <style lang="scss" scoped> @import '~/assets/styles/_colors.scss'; - section { background-color: $backgroundLight1 !important; } - section.hero div.hero-body.align-top { align-items: baseline; flex-grow: 0; @@ -77,16 +75,7 @@ export default { }; } catch (err) { console.log('Error when retrieving album', err); - /* - return { - name: null, - downloadEnabled: false, - files: [], - downloadLink: null, - error: error.response.status - }; - */ - error({ statusCode: 404, message: 'Post not found' }); + error({ statusCode: 404, message: 'Album not found' }); } }, metaInfo() { @@ -101,7 +90,7 @@ export default { { vmid: 'twitter:image', name: 'twitter:image', content: `${this.files.length > 0 ? this.files[0].thumbSquare : '/public/images/share.jpg'}` }, { vmid: 'twitter:image:src', name: 'twitter:image:src', value: `${this.files.length > 0 ? this.files[0].thumbSquare : '/public/images/share.jpg'}` }, - { vmid: 'og:url', property: 'og:url', content: `${config.URL}/a/${this.$route.params.identifier}` }, + { vmid: 'og:url', property: 'og:url', content: `${this.config.URL}/a/${this.$route.params.identifier}` }, { 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'}` }, @@ -116,7 +105,7 @@ export default { { vmid: 'twitter:card', name: 'twitter:card', content: 'summary' }, { vmid: 'twitter:title', name: 'twitter:title', content: 'lolisafe' }, { 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: `${config.URL}/a/${this.$route.params.identifier}` }, + { 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.' } ] |