feat: ノート・ユーザTL埋め込み
This commit is contained in:
@@ -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 = {
|
||||
|
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user