2023-07-27 00:31:52 -05:00
|
|
|
<!--
|
2024-02-13 09:59:27 -06:00
|
|
|
SPDX-FileCopyrightText: syuilo and misskey-project
|
2023-07-27 00:31:52 -05:00
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
-->
|
|
|
|
|
2020-01-29 13:37:25 -06:00
|
|
|
<template>
|
2023-03-31 23:42:40 -05:00
|
|
|
<Transition :name="defaultStore.state.animation ? '_transition_zoom' : ''" appear>
|
2023-01-13 20:23:02 -06:00
|
|
|
<div :class="$style.root">
|
2023-06-11 01:38:06 -05:00
|
|
|
<img :class="$style.img" :src="serverErrorImageUrl" class="_ghost"/>
|
2023-01-13 20:23:02 -06:00
|
|
|
<p :class="$style.text"><i class="ti ti-alert-triangle"></i> {{ i18n.ts.somethingHappened }}</p>
|
2023-02-12 01:51:45 -06:00
|
|
|
<MkButton :class="$style.button" @click="() => emit('retry')">{{ i18n.ts.retry }}</MkButton>
|
2020-07-09 07:18:46 -05:00
|
|
|
</div>
|
2022-12-29 22:37:14 -06:00
|
|
|
</Transition>
|
2020-01-29 13:37:25 -06:00
|
|
|
</template>
|
|
|
|
|
2022-01-07 00:02:25 -06:00
|
|
|
<script lang="ts" setup>
|
2022-09-06 04:21:49 -05:00
|
|
|
import MkButton from '@/components/MkButton.vue';
|
2023-09-19 02:37:43 -05:00
|
|
|
import { i18n } from '@/i18n.js';
|
|
|
|
import { defaultStore } from '@/store.js';
|
|
|
|
import { serverErrorImageUrl } from '@/instance.js';
|
2023-02-12 01:51:45 -06:00
|
|
|
|
|
|
|
const emit = defineEmits<{
|
|
|
|
(ev: 'retry'): void;
|
|
|
|
}>();
|
2020-01-29 13:37:25 -06:00
|
|
|
</script>
|
|
|
|
|
2023-01-13 20:23:02 -06:00
|
|
|
<style lang="scss" module>
|
|
|
|
.root {
|
2020-01-29 13:37:25 -06:00
|
|
|
padding: 32px;
|
|
|
|
text-align: center;
|
2023-01-15 06:58:09 -06:00
|
|
|
align-items: center;
|
2023-01-13 20:23:02 -06:00
|
|
|
}
|
2020-01-29 13:37:25 -06:00
|
|
|
|
2023-01-13 20:23:02 -06:00
|
|
|
.text {
|
|
|
|
margin: 0 0 8px 0;
|
|
|
|
}
|
2020-01-29 13:37:25 -06:00
|
|
|
|
2023-01-13 20:23:02 -06:00
|
|
|
.button {
|
|
|
|
margin: 0 auto;
|
|
|
|
}
|
2020-02-08 03:35:42 -06:00
|
|
|
|
2023-01-13 20:23:02 -06:00
|
|
|
.img {
|
|
|
|
vertical-align: bottom;
|
2023-01-15 06:58:09 -06:00
|
|
|
width: 128px;
|
2023-01-13 20:23:02 -06:00
|
|
|
height: 128px;
|
|
|
|
margin-bottom: 16px;
|
|
|
|
border-radius: 16px;
|
2020-01-29 13:37:25 -06:00
|
|
|
}
|
|
|
|
</style>
|