1
0
Fork 1
mirror of https://example.com synced 2024-11-24 06:26:39 +09:00
This commit is contained in:
ThatOneCalculator 2022-12-11 15:19:41 -08:00
parent 21cd1162e3
commit 0d4fc974d9
No known key found for this signature in database
GPG key ID: 8703CACD01000000
4 changed files with 13 additions and 5 deletions

View file

@ -1,6 +1,6 @@
{
"name": "calckey",
"version": "12.119.0-calc.19-b17",
"version": "12.119.0-calc.19-b18",
"codename": "aqua",
"repository": {
"type": "git",

View file

@ -1,5 +1,5 @@
import define from '../../../define.js';
import { GalleryPosts } from '@/models/index.js';
import define from '../../../define.js';
import { makePaginationQuery } from '../../../common/make-pagination-query.js';
export const meta = {
@ -33,7 +33,7 @@ export const paramDef = {
// eslint-disable-next-line import/no-default-export
export default define(meta, paramDef, async (ps, user) => {
const query = makePaginationQuery(GalleryPosts.createQueryBuilder('post'), ps.sinceId, ps.untilId)
.andWhere(`post.userId = :meId`, { meId: user.id });
.andWhere('post.userId = :meId', { meId: user.id });
const posts = await query
.take(ps.limit)

View file

@ -49,7 +49,7 @@
</template>
<script lang="ts" setup>
import { computed, defineComponent, watch } from 'vue';
import { computed, defineComponent, watch, onMounted } from 'vue';
import { Virtual } from 'swiper';
import { Swiper, SwiperSlide } from 'swiper/vue';
import MkFolder from '@/components/MkFolder.vue';
@ -137,6 +137,10 @@ function onSlideChange() {
function syncSlide(index) {
swiperRef.slideTo(index);
}
onMounted(() => {
syncSlide(tabs.indexOf(swiperRef.activeIndex));
});
</script>
<style lang="scss" scoped>

View file

@ -20,7 +20,7 @@
<swiper-slide>
<div class="rknalgpo liked">
<MkPagination v-slot="{items}" :pagination="likedPagesPagination">
<MkPagePreview v-for="like in items" :key="like.id" class="ckltabjg" :page="like"/>
<MkPagePreview v-for="like in items" :key="like.page.id" class="ckltabjg" :page="like.page"/>
</MkPagination>
</div>
</swiper-slide>
@ -116,6 +116,10 @@ function onSlideChange() {
function syncSlide(index) {
swiperRef.slideTo(index);
}
onMounted(() => {
syncSlide(tabs.indexOf(swiperRef.activeIndex));
});
</script>
<style lang="scss" scoped>