refactor(frontend): page-metadata -> page
This commit is contained in:
		| @@ -48,7 +48,7 @@ import MkButton from '@/components/MkButton.vue'; | ||||
| import * as os from '@/os.js'; | ||||
| import { misskeyApi } from '@/utility/misskey-api.js'; | ||||
| import { i18n } from '@/i18n.js'; | ||||
| import { definePageMetadata } from '@/utility/page-metadata.js'; | ||||
| import { definePage } from '@/page.js'; | ||||
| import MkTextarea from '@/components/MkTextarea.vue'; | ||||
| import MkCodeEditor from '@/components/MkCodeEditor.vue'; | ||||
| import MkInput from '@/components/MkInput.vue'; | ||||
| @@ -461,7 +461,7 @@ const headerActions = computed(() => []); | ||||
|  | ||||
| const headerTabs = computed(() => []); | ||||
|  | ||||
| definePageMetadata(() => ({ | ||||
| definePage(() => ({ | ||||
| 	title: flash.value ? `${i18n.ts._play.edit}: ${flash.value.title}` : i18n.ts._play.new, | ||||
| })); | ||||
| </script> | ||||
|   | ||||
| @@ -46,7 +46,7 @@ import MkPagination from '@/components/MkPagination.vue'; | ||||
| import MkButton from '@/components/MkButton.vue'; | ||||
| import MkHorizontalSwipe from '@/components/MkHorizontalSwipe.vue'; | ||||
| import { i18n } from '@/i18n.js'; | ||||
| import { definePageMetadata } from '@/utility/page-metadata.js'; | ||||
| import { definePage } from '@/page.js'; | ||||
| import { useRouter } from '@/router/supplier.js'; | ||||
|  | ||||
| const router = useRouter(); | ||||
| @@ -91,7 +91,7 @@ const headerTabs = computed(() => [{ | ||||
| 	icon: 'ti ti-heart', | ||||
| }]); | ||||
|  | ||||
| definePageMetadata(() => ({ | ||||
| definePage(() => ({ | ||||
| 	title: 'Play', | ||||
| 	icon: 'ti ti-player-play', | ||||
| })); | ||||
|   | ||||
| @@ -73,7 +73,7 @@ import MkButton from '@/components/MkButton.vue'; | ||||
| import * as os from '@/os.js'; | ||||
| import { misskeyApi } from '@/utility/misskey-api.js'; | ||||
| import { i18n } from '@/i18n.js'; | ||||
| import { definePageMetadata } from '@/utility/page-metadata.js'; | ||||
| import { definePage } from '@/page.js'; | ||||
| import MkAsUi from '@/components/MkAsUi.vue'; | ||||
| import { registerAsUiLib } from '@/aiscript/ui.js'; | ||||
| import { aiScriptReadline, createAiScriptEnv } from '@/aiscript/api.js'; | ||||
| @@ -304,7 +304,7 @@ const headerActions = computed(() => []); | ||||
|  | ||||
| const headerTabs = computed(() => []); | ||||
|  | ||||
| definePageMetadata(() => ({ | ||||
| definePage(() => ({ | ||||
| 	title: flash.value ? flash.value.title : 'Play', | ||||
| 	...flash.value ? { | ||||
| 		avatar: flash.value.user, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 syuilo
					syuilo