refactor(client): Refine routing (#8846)
This commit is contained in:
		| @@ -1,5 +1,6 @@ | ||||
| <template> | ||||
| <MkSpacer :content-max="700" :margin-min="16" :margin-max="32"> | ||||
| <template><MkStickyContainer> | ||||
| 	<template #header><MkPageHeader :actions="headerActions" :tabs="headerTabs"/></template> | ||||
| 		<MkSpacer :content-max="700" :margin-min="16" :margin-max="32"> | ||||
| 	<FormSuspense :p="init"> | ||||
| 		<FormFolder class="_formBlock"> | ||||
| 			<template #icon><i class="fab fa-twitter"></i></template> | ||||
| @@ -20,19 +21,19 @@ | ||||
| 			<XDiscord/> | ||||
| 		</FormFolder> | ||||
| 	</FormSuspense> | ||||
| </MkSpacer> | ||||
| </MkSpacer></MkStickyContainer> | ||||
| </template> | ||||
|  | ||||
| <script lang="ts" setup> | ||||
| import { } from 'vue'; | ||||
| import FormFolder from '@/components/form/folder.vue'; | ||||
| import FormSuspense from '@/components/form/suspense.vue'; | ||||
| import XTwitter from './integrations.twitter.vue'; | ||||
| import XGithub from './integrations.github.vue'; | ||||
| import XDiscord from './integrations.discord.vue'; | ||||
| import FormSuspense from '@/components/form/suspense.vue'; | ||||
| import FormFolder from '@/components/form/folder.vue'; | ||||
| import * as os from '@/os'; | ||||
| import * as symbols from '@/symbols'; | ||||
| import { i18n } from '@/i18n'; | ||||
| import { definePageMetadata } from '@/scripts/page-metadata'; | ||||
|  | ||||
| let enableTwitterIntegration: boolean = $ref(false); | ||||
| let enableGithubIntegration: boolean = $ref(false); | ||||
| @@ -45,11 +46,13 @@ async function init() { | ||||
| 	enableDiscordIntegration = meta.enableDiscordIntegration; | ||||
| } | ||||
|  | ||||
| defineExpose({ | ||||
| 	[symbols.PAGE_INFO]: { | ||||
| 		title: i18n.ts.integration, | ||||
| 		icon: 'fas fa-share-alt', | ||||
| 		bg: 'var(--bg)', | ||||
| 	} | ||||
| const headerActions = $computed(() => []); | ||||
|  | ||||
| const headerTabs = $computed(() => []); | ||||
|  | ||||
| definePageMetadata({ | ||||
| 	title: i18n.ts.integration, | ||||
| 	icon: 'fas fa-share-alt', | ||||
| 	bg: 'var(--bg)', | ||||
| }); | ||||
| </script> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 syuilo
					syuilo