mirror of
https://iceshrimp.dev/Crimekillz/jointrashposs.git
synced 2024-11-22 08:53:49 +01:00
1155dc3995
* update deps
* Revert "fix(MisskeyGateway): 処理をクライアント側で行うように"
This reverts commit 27408b0d19
.
* fix(MisskeyGateway): 処理をクライアント側で行うように(ページで切り分け)
* update deps
* devコマンド時のスタートアップを高速化
55 lines
1.3 KiB
Vue
55 lines
1.3 KiB
Vue
<template>
|
|
<MkAnimBg
|
|
v-if="showAnimBg"
|
|
class="fixed z-0 top-0 left-0 w-screen h-screen transition-opacity duration-[2s]"
|
|
:class="isCanvasLoaded ? 'opacity-100' : 'opacity-0'"
|
|
@load="isCanvasLoaded = true"
|
|
></MkAnimBg>
|
|
<GMisskeyGateway
|
|
class="relative"
|
|
:action="{
|
|
type: 'link',
|
|
path: `/share?${stringifyQuery(filteredQuery)}`,
|
|
}"
|
|
:manualInstance="manualInstance"
|
|
></GMisskeyGateway>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { stringifyQuery } from 'ufo';
|
|
|
|
definePageMeta({
|
|
layout: 'blank',
|
|
});
|
|
|
|
useHead({
|
|
meta: [
|
|
{ name: 'robots', content: 'noindex' },
|
|
],
|
|
});
|
|
|
|
const { meta, query } = useRoute();
|
|
|
|
const manualInstance = (Array.isArray(query.manualInstance) ? query.manualInstance[0] : query.manualInstance) ?? undefined;
|
|
|
|
const filteredQuery = computed(() => ({
|
|
...query,
|
|
replyId: undefined,
|
|
renoteId: undefined,
|
|
visibleUserIds: undefined,
|
|
fileIds: undefined,
|
|
manualInstance: undefined,
|
|
}));
|
|
|
|
const isCanvasLoaded = ref(false);
|
|
const showAnimBg = ref(false);
|
|
|
|
if (process.client && window.innerWidth >= 768) {
|
|
showAnimBg.value = true;
|
|
}
|
|
|
|
const { t } = useI18n();
|
|
|
|
meta.title = t('_share.title');
|
|
meta.scrollButton = false;
|
|
</script> |