2020-01-29 19:37:25 +00:00
|
|
|
<template>
|
2022-08-02 10:02:28 +00:00
|
|
|
<transition :name="defaultStore.state.animation ? 'zoom' : ''" appear>
|
2020-10-17 11:12:00 +00:00
|
|
|
<div class="mjndxjcg">
|
2022-12-11 18:57:48 +00:00
|
|
|
<img src="https://akkoma.dev/m33/FoundKey/raw/branch/main/assets/ai-error.png" class="_ghost"/>
|
2022-07-20 13:24:26 +00:00
|
|
|
<p><i class="fas fa-exclamation-triangle"></i> {{ i18n.ts.somethingHappened }}</p>
|
2022-07-26 12:28:12 +00:00
|
|
|
<MkButton v-if="!final" class="button" @click="retry">{{ i18n.ts.retry }}</MkButton>
|
2020-07-09 12:18:46 +00:00
|
|
|
</div>
|
|
|
|
</transition>
|
2020-01-29 19:37:25 +00:00
|
|
|
</template>
|
|
|
|
|
2022-01-07 06:02:25 +00:00
|
|
|
<script lang="ts" setup>
|
2021-11-11 17:02:25 +00:00
|
|
|
import MkButton from '@/components/ui/button.vue';
|
2022-07-20 13:24:26 +00:00
|
|
|
import { i18n } from '@/i18n';
|
2022-08-02 15:06:08 +00:00
|
|
|
import { defaultStore } from '@/store';
|
2022-07-26 12:28:12 +00:00
|
|
|
|
|
|
|
const emit = defineEmits<{
|
|
|
|
(ev: 'retry'): void;
|
|
|
|
}>();
|
|
|
|
const retry = emit.bind(null, 'retry');
|
|
|
|
|
|
|
|
defineProps<{
|
|
|
|
// true if this operation can not be retried
|
|
|
|
final?: boolean;
|
|
|
|
}>();
|
2020-01-29 19:37:25 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
2020-02-05 05:39:52 +00:00
|
|
|
.mjndxjcg {
|
2020-01-29 19:37:25 +00:00
|
|
|
padding: 32px;
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
> p {
|
|
|
|
margin: 0 0 8px 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .button {
|
|
|
|
margin: 0 auto;
|
|
|
|
}
|
2020-02-08 09:35:42 +00:00
|
|
|
|
|
|
|
> img {
|
|
|
|
vertical-align: bottom;
|
2020-07-11 01:13:11 +00:00
|
|
|
height: 128px;
|
2020-02-08 09:35:42 +00:00
|
|
|
margin-bottom: 16px;
|
|
|
|
border-radius: 16px;
|
|
|
|
}
|
2020-01-29 19:37:25 +00:00
|
|
|
}
|
|
|
|
</style>
|