feat: ノート・ユーザTL埋め込み

This commit is contained in:
kakkokari-gtyih
2024-06-02 00:03:46 +09:00
parent f80c5d26b5
commit e1a541d60b
14 changed files with 277 additions and 84 deletions

View File

@@ -25,7 +25,7 @@ import { fetchCustomEmojis } from '@/custom-emojis.js';
import { setupRouter } from '@/router/definition.js';
export type CommonBootOptions = {
forceColorMode?: 'dark' | 'light' | 'auto';
forceColorMode: 'dark' | 'light' | 'auto';
};
const defaultCommonBootOptions: CommonBootOptions = {

View File

@@ -7,8 +7,8 @@ import { createApp, defineAsyncComponent } from 'vue';
import { common } from './common.js';
import type { CommonBootOptions } from './common.js';
export async function subBoot(options?: CommonBootOptions) {
export async function subBoot(options?: Partial<CommonBootOptions>, isEmbedPage?: boolean) {
const { isClientUpdated } = await common(() => createApp(
defineAsyncComponent(() => import('@/ui/minimum.vue')),
defineAsyncComponent(() => isEmbedPage ? import('@/ui/embed.vue') : import('@/ui/minimum.vue')),
), options);
}