-
-
Notifications
You must be signed in to change notification settings - Fork 347
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2645 from KngZhi/issue-2249
- Loading branch information
Showing
5 changed files
with
56 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<template> | ||
<div id="Error" class="box container has-text-centered section"> | ||
<p class="title">{{ errorTitle }}</p> | ||
<p class="subtitle">{{ errorSubtitle }}</p> | ||
<img v-if="hasImg" :src="imgSrc" alt="Internal error cat" /> | ||
<p class="subtitle"> | ||
If you think this should't happen, report us by | ||
<a | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
href="https://github.com/kodadot/nft-gallery/issues/new?assignees=&labels=bug&template=bug_report.md&title=" | ||
>creating bug issue with steps to reproduce and screenshot.</a | ||
> | ||
</p> | ||
</div> | ||
</template> | ||
<script lang="ts"> | ||
import { Component, Vue, Prop } from 'nuxt-property-decorator' | ||
@Component({}) | ||
export default class Error extends Vue { | ||
@Prop({ default: 500 }) readonly errorCode!: number | ||
@Prop({ default: true }) readonly hasImg!: boolean | ||
@Prop({ default: 'Indexer Error' }) errorTitle!: string | ||
@Prop({ default: 'Indexer is not working properly.' }) errorSubtitle!: string | ||
get imgSrc() { | ||
return `https://http.cat/${this.$props.errorCode}` | ||
} | ||
} | ||
</script> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,13 @@ | ||
<template> | ||
<div id="Eror" class="box container has-text-centered"> | ||
<p class="title">Indexer Error</p> | ||
<p class="subtitle">Indexer is not working properly.</p> | ||
<img src="https://http.cat/500" alt="Internal error cat" /> | ||
<p class="subtitle"> | ||
If you think this should't happen, report us by | ||
<a | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
href="https://github.com/kodadot/nft-gallery/issues/new?assignees=&labels=bug&template=bug_report.md&title=" | ||
>creating bug issue with steps to reproduce and screenshot.</a | ||
> | ||
</p> | ||
</div> | ||
<ErrorMsg /> | ||
</template> | ||
<script lang="ts"> | ||
import { Component, Vue } from 'nuxt-property-decorator' | ||
// due to the name conflict, has to import and rename it | ||
import ErrorMsg from '@/components/shared/Error.vue' | ||
@Component({}) | ||
@Component({ | ||
components: { ErrorMsg } | ||
}) | ||
export default class Error extends Vue {} | ||
</script> |