Merge branch 'feat-1714' of https://github.com/kakkokari-gtyih/misskey into feat-1714

This commit is contained in:
kakkokari-gtyih 2024-08-20 16:10:50 +09:00
commit 04319e27ed
10 changed files with 3 additions and 3 deletions

View File

@ -9,13 +9,13 @@ import 'vite/modulepreload-polyfill';
import '@/style.scss'; import '@/style.scss';
import '@/style.embed.scss'; import '@/style.embed.scss';
import { createApp, defineAsyncComponent } from 'vue'; import { createApp, defineAsyncComponent } from 'vue';
import { common } from '@/boot/common.js';
import type { CommonBootOptions } from '@/boot/common.js'; import type { CommonBootOptions } from '@/boot/common.js';
import { common } from '@/boot/common.js';
import { setIframeId, postMessageToParentWindow } from '@/scripts/post-message.js'; import { setIframeId, postMessageToParentWindow } from '@/scripts/post-message.js';
import { parseEmbedParams } from '@/scripts/embed-page.js'; import { parseEmbedParams } from '@/scripts/embed-page.js';
import { defaultStore } from '@/store.js'; import { defaultStore } from '@/store.js';
import { useRouter } from '@/router/supplier.js'; import { useRouter } from '@/router/supplier.js';
import { createEmbedRouter } from '@/router/definition.embed.js'; import { createEmbedRouter } from '@/embed/router.js';
const bootOptions: Partial<CommonBootOptions> = { const bootOptions: Partial<CommonBootOptions> = {
routerFactory: createEmbedRouter, routerFactory: createEmbedRouter,
@ -52,7 +52,7 @@ window.addEventListener('message', setIframeIdHandler);
// 起動 // 起動
common(() => createApp( common(() => createApp(
defineAsyncComponent(() => import('@/ui/embed.vue')), defineAsyncComponent(() => import('@/embed/ui.vue')),
), bootOptions).then(async ({ app }) => { ), bootOptions).then(async ({ app }) => {
//#region Embed Provide //#region Embed Provide
app.provide('EMBED_PAGE', true); app.provide('EMBED_PAGE', true);