mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-06 02:26:04 +02:00
* wip
* wip
* wip
* wip
* wip
* wip
* Update types.ts
* Create 1742203321812-chat.js
* wip
* wip
* Update room.vue
* Update home.vue
* Update home.vue
* Update ja-JP.yml
* Update index.d.ts
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* Update CHANGELOG.md
* wip
* Update home.vue
* clean up
* Update misskey-js.api.md
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* lint fixes
* lint
* Update UserEntityService.ts
* search
* wip
* 🎨
* wip
* Update home.ownedRooms.vue
* wip
* Update CHANGELOG.md
* Update style.scss
* wip
* improve performance
* improve performance
* Update timeline.test.ts
56 lines
1.2 KiB
Vue
56 lines
1.2 KiB
Vue
<!--
|
|
SPDX-FileCopyrightText: syuilo and misskey-project
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
-->
|
|
|
|
<template>
|
|
<PageWithHeader>
|
|
<MkSpacer :contentMax="700">
|
|
<div v-if="initializing">
|
|
<MkLoading/>
|
|
</div>
|
|
<div v-else>
|
|
<XMessage :message="message"/>
|
|
</div>
|
|
</MkSpacer>
|
|
</PageWithHeader>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { ref, useTemplateRef, computed, watch, onMounted, nextTick, onBeforeUnmount, onDeactivated, onActivated } from 'vue';
|
|
import * as Misskey from 'misskey-js';
|
|
import XMessage from './XMessage.vue';
|
|
import * as os from '@/os.js';
|
|
import { useStream } from '@/stream.js';
|
|
import { i18n } from '@/i18n.js';
|
|
import { ensureSignin } from '@/i.js';
|
|
import { misskeyApi } from '@/utility/misskey-api.js';
|
|
import { definePage } from '@/page.js';
|
|
import MkButton from '@/components/MkButton.vue';
|
|
|
|
const props = defineProps<{
|
|
messageId?: string;
|
|
}>();
|
|
|
|
const initializing = ref(true);
|
|
const message = ref<Misskey.entities.ChatMessage>();
|
|
|
|
async function initialize() {
|
|
initializing.value = true;
|
|
|
|
message.value = await misskeyApi('chat/messages/show', {
|
|
messageId: props.messageId,
|
|
});
|
|
|
|
initializing.value = false;
|
|
}
|
|
|
|
onMounted(() => {
|
|
initialize();
|
|
});
|
|
|
|
definePage({
|
|
title: i18n.ts.chat,
|
|
});
|
|
</script>
|