refactor(frontend): MkHorizontalSwipe -> MkSwiper
This commit is contained in:
		
							parent
							
								
									165830d6c8
								
							
						
					
					
						commit
						de19d9a4d4
					
				|  | @ -5,7 +5,7 @@ SPDX-License-Identifier: AGPL-3.0-only | |||
| 
 | ||||
| <template> | ||||
| <PageWithHeader v-model:tab="tab" :actions="headerActions" :tabs="headerTabs"> | ||||
| 	<MkHorizontalSwipe v-model:tab="tab" :tabs="headerTabs"> | ||||
| 	<MkSwiper v-model:tab="tab" :tabs="headerTabs"> | ||||
| 		<MkSpacer v-if="tab === 'overview'" :contentMax="600" :marginMin="20"> | ||||
| 			<XOverview/> | ||||
| 		</MkSpacer> | ||||
|  | @ -18,7 +18,7 @@ SPDX-License-Identifier: AGPL-3.0-only | |||
| 		<MkSpacer v-else-if="tab === 'charts'" :contentMax="1000" :marginMin="20"> | ||||
| 			<MkInstanceStats/> | ||||
| 		</MkSpacer> | ||||
| 	</MkHorizontalSwipe> | ||||
| 	</MkSwiper> | ||||
| </PageWithHeader> | ||||
| </template> | ||||
| 
 | ||||
|  | @ -28,7 +28,7 @@ import { instance } from '@/instance.js'; | |||
| import { i18n } from '@/i18n.js'; | ||||
| import { claimAchievement } from '@/utility/achievements.js'; | ||||
| import { definePage } from '@/page.js'; | ||||
| import MkHorizontalSwipe from '@/components/MkHorizontalSwipe.vue'; | ||||
| import MkSwiper from '@/components/MkSwiper.vue'; | ||||
| 
 | ||||
| const XOverview = defineAsyncComponent(() => import('@/pages/about.overview.vue')); | ||||
| const XEmojis = defineAsyncComponent(() => import('@/pages/about.emojis.vue')); | ||||
|  |  | |||
|  | @ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only | |||
| <template> | ||||
| <PageWithHeader v-model:tab="tab" :actions="headerActions" :tabs="headerTabs"> | ||||
| 	<MkSpacer :contentMax="800"> | ||||
| 		<MkHorizontalSwipe v-model:tab="tab" :tabs="headerTabs"> | ||||
| 		<MkSwiper v-model:tab="tab" :tabs="headerTabs"> | ||||
| 			<div class="_gaps"> | ||||
| 				<MkInfo v-if="$i && $i.hasUnreadAnnouncement && tab === 'current'" warn>{{ i18n.ts.youHaveUnreadAnnouncements }}</MkInfo> | ||||
| 				<MkPagination ref="paginationEl" :key="tab" v-slot="{items}" :pagination="tab === 'current' ? paginationCurrent : paginationPast" class="_gaps"> | ||||
|  | @ -40,7 +40,7 @@ SPDX-License-Identifier: AGPL-3.0-only | |||
| 					</section> | ||||
| 				</MkPagination> | ||||
| 			</div> | ||||
| 		</MkHorizontalSwipe> | ||||
| 		</MkSwiper> | ||||
| 	</MkSpacer> | ||||
| </PageWithHeader> | ||||
| </template> | ||||
|  | @ -50,7 +50,7 @@ import { ref, computed } from 'vue'; | |||
| import MkPagination from '@/components/MkPagination.vue'; | ||||
| import MkButton from '@/components/MkButton.vue'; | ||||
| import MkInfo from '@/components/MkInfo.vue'; | ||||
| import MkHorizontalSwipe from '@/components/MkHorizontalSwipe.vue'; | ||||
| import MkSwiper from '@/components/MkSwiper.vue'; | ||||
| import * as os from '@/os.js'; | ||||
| import { misskeyApi } from '@/utility/misskey-api.js'; | ||||
| import { i18n } from '@/i18n.js'; | ||||
|  |  | |||
|  | @ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only | |||
| <template> | ||||
| <PageWithHeader v-model:tab="tab" :actions="headerActions" :tabs="headerTabs"> | ||||
| 	<MkSpacer :contentMax="700"> | ||||
| 		<MkHorizontalSwipe v-model:tab="tab" :tabs="headerTabs"> | ||||
| 		<MkSwiper v-model:tab="tab" :tabs="headerTabs"> | ||||
| 			<div v-if="channel && tab === 'overview'" class="_gaps"> | ||||
| 				<div class="_panel" :class="$style.bannerContainer"> | ||||
| 					<XChannelFollowButton :channel="channel" :full="true" :class="$style.subscribe"/> | ||||
|  | @ -57,7 +57,7 @@ SPDX-License-Identifier: AGPL-3.0-only | |||
| 					<MkInfo warn>{{ i18n.ts.notesSearchNotAvailable }}</MkInfo> | ||||
| 				</div> | ||||
| 			</div> | ||||
| 		</MkHorizontalSwipe> | ||||
| 		</MkSwiper> | ||||
| 	</MkSpacer> | ||||
| 	<template #footer> | ||||
| 		<div :class="$style.footer"> | ||||
|  | @ -93,7 +93,7 @@ import { prefer } from '@/preferences.js'; | |||
| import MkNote from '@/components/MkNote.vue'; | ||||
| import MkInfo from '@/components/MkInfo.vue'; | ||||
| import MkFoldableSection from '@/components/MkFoldableSection.vue'; | ||||
| import MkHorizontalSwipe from '@/components/MkHorizontalSwipe.vue'; | ||||
| import MkSwiper from '@/components/MkSwiper.vue'; | ||||
| import { isSupportShare } from '@/utility/navigator.js'; | ||||
| import { copyToClipboard } from '@/utility/copy-to-clipboard.js'; | ||||
| import { notesSearchAvailable } from '@/utility/check-permissions.js'; | ||||
|  |  | |||
|  | @ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only | |||
| <template> | ||||
| <PageWithHeader v-model:tab="tab" :actions="headerActions" :tabs="headerTabs"> | ||||
| 	<MkSpacer :contentMax="1200"> | ||||
| 		<MkHorizontalSwipe v-model:tab="tab" :tabs="headerTabs"> | ||||
| 		<MkSwiper v-model:tab="tab" :tabs="headerTabs"> | ||||
| 			<div v-if="tab === 'search'" :class="$style.searchRoot"> | ||||
| 				<div class="_gaps"> | ||||
| 					<MkInput v-model="searchQuery" :large="true" :autofocus="true" type="search" @enter="search"> | ||||
|  | @ -53,7 +53,7 @@ SPDX-License-Identifier: AGPL-3.0-only | |||
| 					</div> | ||||
| 				</MkPagination> | ||||
| 			</div> | ||||
| 		</MkHorizontalSwipe> | ||||
| 		</MkSwiper> | ||||
| 	</MkSpacer> | ||||
| </PageWithHeader> | ||||
| </template> | ||||
|  | @ -67,7 +67,7 @@ import MkInput from '@/components/MkInput.vue'; | |||
| import MkRadios from '@/components/MkRadios.vue'; | ||||
| import MkButton from '@/components/MkButton.vue'; | ||||
| import MkFoldableSection from '@/components/MkFoldableSection.vue'; | ||||
| import MkHorizontalSwipe from '@/components/MkHorizontalSwipe.vue'; | ||||
| import MkSwiper from '@/components/MkSwiper.vue'; | ||||
| import { definePage } from '@/page.js'; | ||||
| import { i18n } from '@/i18n.js'; | ||||
| import { useRouter } from '@/router.js'; | ||||
|  |  | |||
|  | @ -7,12 +7,12 @@ SPDX-License-Identifier: AGPL-3.0-only | |||
| <PageWithHeader v-model:tab="tab" :actions="headerActions" :tabs="headerTabs"> | ||||
| 	<MkPolkadots v-if="tab === 'home'" accented/> | ||||
| 	<MkSpacer :contentMax="700"> | ||||
| 		<MkHorizontalSwipe v-model:tab="tab" :tabs="headerTabs"> | ||||
| 		<MkSwiper v-model:tab="tab" :tabs="headerTabs"> | ||||
| 			<XHome v-if="tab === 'home'"/> | ||||
| 			<XInvitations v-else-if="tab === 'invitations'"/> | ||||
| 			<XJoiningRooms v-else-if="tab === 'joiningRooms'"/> | ||||
| 			<XOwnedRooms v-else-if="tab === 'ownedRooms'"/> | ||||
| 		</MkHorizontalSwipe> | ||||
| 		</MkSwiper> | ||||
| 	</MkSpacer> | ||||
| </PageWithHeader> | ||||
| </template> | ||||
|  | @ -25,7 +25,7 @@ import XJoiningRooms from './home.joiningRooms.vue'; | |||
| import XOwnedRooms from './home.ownedRooms.vue'; | ||||
| import { i18n } from '@/i18n.js'; | ||||
| import { definePage } from '@/page.js'; | ||||
| import MkHorizontalSwipe from '@/components/MkHorizontalSwipe.vue'; | ||||
| import MkSwiper from '@/components/MkSwiper.vue'; | ||||
| import MkPolkadots from '@/components/MkPolkadots.vue'; | ||||
| 
 | ||||
| const tab = ref('home'); | ||||
|  |  | |||
|  | @ -9,7 +9,7 @@ SPDX-License-Identifier: AGPL-3.0-only | |||
| 		<MkPageHeader v-model:tab="tab" :actions="headerActions" :tabs="headerTabs"/> | ||||
| 	</template> | ||||
| 
 | ||||
| 	<MkHorizontalSwipe v-model:tab="tab" :tabs="headerTabs"> | ||||
| 	<MkSwiper v-model:tab="tab" :tabs="headerTabs"> | ||||
| 		<MkSpacer v-if="tab === 'info'" :contentMax="800"> | ||||
| 			<XFileInfo :fileId="fileId"/> | ||||
| 		</MkSpacer> | ||||
|  | @ -17,7 +17,7 @@ SPDX-License-Identifier: AGPL-3.0-only | |||
| 		<MkSpacer v-else-if="tab === 'notes'" :contentMax="800"> | ||||
| 			<XNotes :fileId="fileId"/> | ||||
| 		</MkSpacer> | ||||
| 	</MkHorizontalSwipe> | ||||
| 	</MkSwiper> | ||||
| </MkStickyContainer> | ||||
| </template> | ||||
| 
 | ||||
|  | @ -25,7 +25,7 @@ SPDX-License-Identifier: AGPL-3.0-only | |||
| import { computed, ref, defineAsyncComponent } from 'vue'; | ||||
| import { i18n } from '@/i18n.js'; | ||||
| import { definePage } from '@/page.js'; | ||||
| import MkHorizontalSwipe from '@/components/MkHorizontalSwipe.vue'; | ||||
| import MkSwiper from '@/components/MkSwiper.vue'; | ||||
| 
 | ||||
| const props = defineProps<{ | ||||
| 	fileId: string; | ||||
|  |  | |||
|  | @ -5,7 +5,7 @@ SPDX-License-Identifier: AGPL-3.0-only | |||
| 
 | ||||
| <template> | ||||
| <PageWithHeader v-model:tab="tab" :actions="headerActions" :tabs="headerTabs"> | ||||
| 	<MkHorizontalSwipe v-model:tab="tab" :tabs="headerTabs"> | ||||
| 	<MkSwiper v-model:tab="tab" :tabs="headerTabs"> | ||||
| 		<div v-if="tab === 'featured'"> | ||||
| 			<XFeatured/> | ||||
| 		</div> | ||||
|  | @ -15,7 +15,7 @@ SPDX-License-Identifier: AGPL-3.0-only | |||
| 		<div v-else-if="tab === 'roles'"> | ||||
| 			<XRoles/> | ||||
| 		</div> | ||||
| 	</MkHorizontalSwipe> | ||||
| 	</MkSwiper> | ||||
| </PageWithHeader> | ||||
| </template> | ||||
| 
 | ||||
|  | @ -25,7 +25,7 @@ import XFeatured from './explore.featured.vue'; | |||
| import XUsers from './explore.users.vue'; | ||||
| import XRoles from './explore.roles.vue'; | ||||
| import MkFoldableSection from '@/components/MkFoldableSection.vue'; | ||||
| import MkHorizontalSwipe from '@/components/MkHorizontalSwipe.vue'; | ||||
| import MkSwiper from '@/components/MkSwiper.vue'; | ||||
| import { definePage } from '@/page.js'; | ||||
| import { i18n } from '@/i18n.js'; | ||||
| 
 | ||||
|  |  | |||
|  | @ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only | |||
| <template> | ||||
| <PageWithHeader v-model:tab="tab" :actions="headerActions" :tabs="headerTabs"> | ||||
| 	<MkSpacer :contentMax="700"> | ||||
| 		<MkHorizontalSwipe v-model:tab="tab" :tabs="headerTabs"> | ||||
| 		<MkSwiper v-model:tab="tab" :tabs="headerTabs"> | ||||
| 			<div v-if="tab === 'featured'"> | ||||
| 				<MkPagination v-slot="{items}" :pagination="featuredFlashsPagination"> | ||||
| 					<div class="_gaps_s"> | ||||
|  | @ -33,7 +33,7 @@ SPDX-License-Identifier: AGPL-3.0-only | |||
| 					</div> | ||||
| 				</MkPagination> | ||||
| 			</div> | ||||
| 		</MkHorizontalSwipe> | ||||
| 		</MkSwiper> | ||||
| 	</MkSpacer> | ||||
| </PageWithHeader> | ||||
| </template> | ||||
|  | @ -43,7 +43,7 @@ import { computed, ref } from 'vue'; | |||
| import MkFlashPreview from '@/components/MkFlashPreview.vue'; | ||||
| import MkPagination from '@/components/MkPagination.vue'; | ||||
| import MkButton from '@/components/MkButton.vue'; | ||||
| import MkHorizontalSwipe from '@/components/MkHorizontalSwipe.vue'; | ||||
| import MkSwiper from '@/components/MkSwiper.vue'; | ||||
| import { i18n } from '@/i18n.js'; | ||||
| import { definePage } from '@/page.js'; | ||||
| import { useRouter } from '@/router.js'; | ||||
|  |  | |||
|  | @ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only | |||
| <template> | ||||
| <PageWithHeader v-model:tab="tab" :actions="headerActions" :tabs="headerTabs"> | ||||
| 	<MkSpacer :contentMax="800"> | ||||
| 		<MkHorizontalSwipe v-model:tab="tab" :tabs="headerTabs"> | ||||
| 		<MkSwiper v-model:tab="tab" :tabs="headerTabs"> | ||||
| 			<MkPagination ref="paginationComponent" :pagination="pagination"> | ||||
| 				<template #empty> | ||||
| 					<div class="_fullinfo"> | ||||
|  | @ -35,7 +35,7 @@ SPDX-License-Identifier: AGPL-3.0-only | |||
| 					</div> | ||||
| 				</template> | ||||
| 			</MkPagination> | ||||
| 		</MkHorizontalSwipe> | ||||
| 		</MkSwiper> | ||||
| 	</MkSpacer> | ||||
| </PageWithHeader> | ||||
| </template> | ||||
|  | @ -52,7 +52,7 @@ import { i18n } from '@/i18n.js'; | |||
| import { definePage } from '@/page.js'; | ||||
| import { infoImageUrl } from '@/instance.js'; | ||||
| import { $i } from '@/i.js'; | ||||
| import MkHorizontalSwipe from '@/components/MkHorizontalSwipe.vue'; | ||||
| import MkSwiper from '@/components/MkSwiper.vue'; | ||||
| 
 | ||||
| const paginationComponent = useTemplateRef('paginationComponent'); | ||||
| 
 | ||||
|  |  | |||
|  | @ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only | |||
| <template> | ||||
| <PageWithHeader v-model:tab="tab" :actions="headerActions" :tabs="headerTabs"> | ||||
| 	<MkSpacer :contentMax="1400"> | ||||
| 		<MkHorizontalSwipe v-model:tab="tab" :tabs="headerTabs"> | ||||
| 		<MkSwiper v-model:tab="tab" :tabs="headerTabs"> | ||||
| 			<div v-if="tab === 'explore'"> | ||||
| 				<MkFoldableSection class="_margin"> | ||||
| 					<template #header><i class="ti ti-clock"></i>{{ i18n.ts.recentPosts }}</template> | ||||
|  | @ -40,7 +40,7 @@ SPDX-License-Identifier: AGPL-3.0-only | |||
| 					</div> | ||||
| 				</MkPagination> | ||||
| 			</div> | ||||
| 		</MkHorizontalSwipe> | ||||
| 		</MkSwiper> | ||||
| 	</MkSpacer> | ||||
| </PageWithHeader> | ||||
| </template> | ||||
|  | @ -50,7 +50,7 @@ import { watch, ref, computed } from 'vue'; | |||
| import MkFoldableSection from '@/components/MkFoldableSection.vue'; | ||||
| import MkPagination from '@/components/MkPagination.vue'; | ||||
| import MkGalleryPostPreview from '@/components/MkGalleryPostPreview.vue'; | ||||
| import MkHorizontalSwipe from '@/components/MkHorizontalSwipe.vue'; | ||||
| import MkSwiper from '@/components/MkSwiper.vue'; | ||||
| import { definePage } from '@/page.js'; | ||||
| import { i18n } from '@/i18n.js'; | ||||
| import { useRouter } from '@/router.js'; | ||||
|  |  | |||
|  | @ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only | |||
| <template> | ||||
| <PageWithHeader v-model:tab="tab" :actions="headerActions" :tabs="headerTabs"> | ||||
| 	<MkSpacer v-if="instance" :contentMax="600" :marginMin="16" :marginMax="32"> | ||||
| 		<MkHorizontalSwipe v-model:tab="tab" :tabs="headerTabs"> | ||||
| 		<MkSwiper v-model:tab="tab" :tabs="headerTabs"> | ||||
| 			<div v-if="tab === 'overview'" class="_gaps_m"> | ||||
| 				<div class="fnfelxur"> | ||||
| 					<img :src="faviconUrl" alt="" class="icon"/> | ||||
|  | @ -126,7 +126,7 @@ SPDX-License-Identifier: AGPL-3.0-only | |||
| 				<MkObjectView tall :value="instance"> | ||||
| 				</MkObjectView> | ||||
| 			</div> | ||||
| 		</MkHorizontalSwipe> | ||||
| 		</MkSwiper> | ||||
| 	</MkSpacer> | ||||
| </PageWithHeader> | ||||
| </template> | ||||
|  | @ -153,7 +153,7 @@ import { definePage } from '@/page.js'; | |||
| import { i18n } from '@/i18n.js'; | ||||
| import MkUserCardMini from '@/components/MkUserCardMini.vue'; | ||||
| import MkPagination from '@/components/MkPagination.vue'; | ||||
| import MkHorizontalSwipe from '@/components/MkHorizontalSwipe.vue'; | ||||
| import MkSwiper from '@/components/MkSwiper.vue'; | ||||
| import { getProxiedImageUrlNullable } from '@/utility/media-proxy.js'; | ||||
| import { dateString } from '@/filters/date.js'; | ||||
| import MkTextarea from '@/components/MkTextarea.vue'; | ||||
|  |  | |||
|  | @ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only | |||
| <template> | ||||
| <PageWithHeader v-model:tab="tab" :actions="headerActions" :tabs="headerTabs"> | ||||
| 	<MkSpacer :contentMax="700"> | ||||
| 		<MkHorizontalSwipe v-model:tab="tab" :tabs="headerTabs"> | ||||
| 		<MkSwiper v-model:tab="tab" :tabs="headerTabs"> | ||||
| 			<div v-if="tab === 'my'" class="_gaps"> | ||||
| 				<MkButton primary rounded class="add" @click="create"><i class="ti ti-plus"></i> {{ i18n.ts.add }}</MkButton> | ||||
| 
 | ||||
|  | @ -17,7 +17,7 @@ SPDX-License-Identifier: AGPL-3.0-only | |||
| 			<div v-else-if="tab === 'favorites'" class="_gaps"> | ||||
| 				<MkClipPreview v-for="item in favorites" :key="item.id" :clip="item"/> | ||||
| 			</div> | ||||
| 		</MkHorizontalSwipe> | ||||
| 		</MkSwiper> | ||||
| 	</MkSpacer> | ||||
| </PageWithHeader> | ||||
| </template> | ||||
|  | @ -33,7 +33,7 @@ import { misskeyApi } from '@/utility/misskey-api.js'; | |||
| import { i18n } from '@/i18n.js'; | ||||
| import { definePage } from '@/page.js'; | ||||
| import { clipsCache } from '@/cache.js'; | ||||
| import MkHorizontalSwipe from '@/components/MkHorizontalSwipe.vue'; | ||||
| import MkSwiper from '@/components/MkSwiper.vue'; | ||||
| 
 | ||||
| const pagination = { | ||||
| 	endpoint: 'clips/list' as const, | ||||
|  |  | |||
|  | @ -24,7 +24,7 @@ import { computed, ref } from 'vue'; | |||
| import { notificationTypes } from '@@/js/const.js'; | ||||
| import XNotifications from '@/components/MkNotifications.vue'; | ||||
| import MkNotes from '@/components/MkNotes.vue'; | ||||
| import MkHorizontalSwipe from '@/components/MkHorizontalSwipe.vue'; | ||||
| import MkSwiper from '@/components/MkSwiper.vue'; | ||||
| import * as os from '@/os.js'; | ||||
| import { i18n } from '@/i18n.js'; | ||||
| import { definePage } from '@/page.js'; | ||||
|  |  | |||
|  | @ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only | |||
| <template> | ||||
| <PageWithHeader v-model:tab="tab" :actions="headerActions" :tabs="headerTabs"> | ||||
| 	<MkSpacer :contentMax="700"> | ||||
| 		<MkHorizontalSwipe v-model:tab="tab" :tabs="headerTabs"> | ||||
| 		<MkSwiper v-model:tab="tab" :tabs="headerTabs"> | ||||
| 			<div v-if="tab === 'featured'"> | ||||
| 				<MkPagination v-slot="{items}" :pagination="featuredPagesPagination"> | ||||
| 					<div class="_gaps"> | ||||
|  | @ -31,7 +31,7 @@ SPDX-License-Identifier: AGPL-3.0-only | |||
| 					</div> | ||||
| 				</MkPagination> | ||||
| 			</div> | ||||
| 		</MkHorizontalSwipe> | ||||
| 		</MkSwiper> | ||||
| 	</MkSpacer> | ||||
| </PageWithHeader> | ||||
| </template> | ||||
|  | @ -41,7 +41,7 @@ import { computed, ref } from 'vue'; | |||
| import MkPagePreview from '@/components/MkPagePreview.vue'; | ||||
| import MkPagination from '@/components/MkPagination.vue'; | ||||
| import MkButton from '@/components/MkButton.vue'; | ||||
| import MkHorizontalSwipe from '@/components/MkHorizontalSwipe.vue'; | ||||
| import MkSwiper from '@/components/MkSwiper.vue'; | ||||
| import { i18n } from '@/i18n.js'; | ||||
| import { definePage } from '@/page.js'; | ||||
| import { useRouter } from '@/router.js'; | ||||
|  |  | |||
|  | @ -5,7 +5,7 @@ SPDX-License-Identifier: AGPL-3.0-only | |||
| 
 | ||||
| <template> | ||||
| <PageWithHeader v-model:tab="tab" :actions="headerActions" :tabs="headerTabs"> | ||||
| 	<MkHorizontalSwipe v-model:tab="tab" :tabs="headerTabs"> | ||||
| 	<MkSwiper v-model:tab="tab" :tabs="headerTabs"> | ||||
| 		<MkSpacer v-if="tab === 'note'" :contentMax="800"> | ||||
| 			<div v-if="notesSearchAvailable || ignoreNotesSearchAvailable"> | ||||
| 				<XNote v-bind="props"/> | ||||
|  | @ -18,7 +18,7 @@ SPDX-License-Identifier: AGPL-3.0-only | |||
| 		<MkSpacer v-else-if="tab === 'user'" :contentMax="800"> | ||||
| 			<XUser v-bind="props"/> | ||||
| 		</MkSpacer> | ||||
| 	</MkHorizontalSwipe> | ||||
| 	</MkSwiper> | ||||
| </PageWithHeader> | ||||
| </template> | ||||
| 
 | ||||
|  | @ -28,7 +28,7 @@ import { i18n } from '@/i18n.js'; | |||
| import { definePage } from '@/page.js'; | ||||
| import { notesSearchAvailable } from '@/utility/check-permissions.js'; | ||||
| import MkInfo from '@/components/MkInfo.vue'; | ||||
| import MkHorizontalSwipe from '@/components/MkHorizontalSwipe.vue'; | ||||
| import MkSwiper from '@/components/MkSwiper.vue'; | ||||
| 
 | ||||
| const props = withDefaults(defineProps<{ | ||||
| 	query?: string, | ||||
|  |  | |||
|  | @ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only | |||
| <template> | ||||
| <PageWithHeader v-model:tab="tab" :tabs="headerTabs" :actions="headerActions"> | ||||
| 	<div v-if="user"> | ||||
| 		<MkHorizontalSwipe v-model:tab="tab" :tabs="headerTabs"> | ||||
| 		<MkSwiper v-model:tab="tab" :tabs="headerTabs"> | ||||
| 			<XHome v-if="tab === 'home'" :user="user" @unfoldFiles="() => { tab = 'files'; }"/> | ||||
| 			<MkSpacer v-else-if="tab === 'notes'" :contentMax="800" style="padding-top: 0"> | ||||
| 				<XTimeline :user="user"/> | ||||
|  | @ -21,7 +21,7 @@ SPDX-License-Identifier: AGPL-3.0-only | |||
| 			<XFlashs v-else-if="tab === 'flashs'" :user="user"/> | ||||
| 			<XGallery v-else-if="tab === 'gallery'" :user="user"/> | ||||
| 			<XRaw v-else-if="tab === 'raw'" :user="user"/> | ||||
| 		</MkHorizontalSwipe> | ||||
| 		</MkSwiper> | ||||
| 	</div> | ||||
| 	<MkError v-else-if="error" @retry="fetchUser()"/> | ||||
| 	<MkLoading v-else/> | ||||
|  | @ -36,7 +36,7 @@ import { misskeyApi } from '@/utility/misskey-api.js'; | |||
| import { definePage } from '@/page.js'; | ||||
| import { i18n } from '@/i18n.js'; | ||||
| import { $i } from '@/i.js'; | ||||
| import MkHorizontalSwipe from '@/components/MkHorizontalSwipe.vue'; | ||||
| import MkSwiper from '@/components/MkSwiper.vue'; | ||||
| import { serverContext, assertServerContext } from '@/server-context.js'; | ||||
| 
 | ||||
| const XHome = defineAsyncComponent(() => import('./home.vue')); | ||||
|  |  | |||
|  | @ -18,5 +18,5 @@ if (isTouchSupported && !isTouchUsing) { | |||
| 	}, { passive: true }); | ||||
| } | ||||
| 
 | ||||
| /** (MkHorizontalSwipe) 横スワイプ中か? */ | ||||
| /** (MkSwiper) 横スワイプ中か? */ | ||||
| export const isHorizontalSwipeSwiping = ref(false); | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue