feat: ⚗️ vsides

This commit is contained in:
ThatOneCalculator 2022-08-27 15:25:51 -07:00
parent ab4c267594
commit dfac661e2a
2 changed files with 6 additions and 50 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "calckey", "name": "calckey",
"version": "12.118.1-calc.2-beta.2", "version": "12.118.1-calc.2-beta.2-rc.1",
"codename": "aqua", "codename": "aqua",
"repository": { "repository": {
"type": "git", "type": "git",

View File

@ -36,57 +36,13 @@
/> />
</div> </div>
<div v-else class="tl _block"> <div v-else class="tl _block">
<swiper :space-between="20"> <swiper :modules="[Pagination, Virtual]" :space-between="20" virtual>
<swiper-slide> <swiper-slide>
<XTimeline <XTimeline
ref="tl" ref="tl"
key="home" :key="src"
class="tl" class="tl"
src="home" :src="src"
:sound="true"
@queue="queueUpdated"
/>
</swiper-slide>
<swiper-slide>
<XTimeline
v-if="isLocalTimelineAvailable"
ref="tl"
key="local"
class="tl"
src="local"
:sound="true"
@queue="queueUpdated"
/>
</swiper-slide>
<swiper-slide>
<XTimeline
v-if="isRecommendedTimelineAvailable"
ref="tl"
key="recommended"
class="tl"
src="recommended"
:sound="true"
@queue="queueUpdated"
/>
</swiper-slide>
<swiper-slide>
<XTimeline
v-if="isLocalTimelineAvailable"
ref="tl"
key="social"
class="tl"
src="social"
:sound="true"
@queue="queueUpdated"
/>
</swiper-slide>
<swiper-slide>
<XTimeline
v-if="isGlobalTimelineAvailable"
ref="tl"
key="global"
class="tl"
src="global"
:sound="true" :sound="true"
@queue="queueUpdated" @queue="queueUpdated"
/> />
@ -100,6 +56,7 @@
<script lang="ts" setup> <script lang="ts" setup>
import { defineAsyncComponent, computed, watch, ref } from 'vue'; import { defineAsyncComponent, computed, watch, ref } from 'vue';
import { Pagination, Virtual } from 'swiper';
import { Swiper, SwiperSlide } from 'swiper/vue'; import { Swiper, SwiperSlide } from 'swiper/vue';
import XTimeline from '@/components/timeline.vue'; import XTimeline from '@/components/timeline.vue';
import XPostForm from '@/components/post-form.vue'; import XPostForm from '@/components/post-form.vue';
@ -125,7 +82,6 @@ const isRecommendedTimelineAvailable =
const isGlobalTimelineAvailable = const isGlobalTimelineAvailable =
!instance.disableGlobalTimeline || !instance.disableGlobalTimeline ||
($i != null && ($i.isModerator || $i.isAdmin)); ($i != null && ($i.isModerator || $i.isAdmin));
const enableGuestTimeline = instance.enableGuestTimeline;
const keymap = { const keymap = {
t: focus, t: focus,
}; };
@ -286,7 +242,7 @@ definePageMetadata(
: src === 'global' : src === 'global'
? 'fas fa-globe' ? 'fas fa-globe'
: 'fas fa-home', : 'fas fa-home',
})) })),
); );
</script> </script>