This commit is contained in:
ThatOneCalculator 2022-11-14 19:13:04 -08:00
parent 5f15ca4fde
commit 7ff47714e0
7 changed files with 45 additions and 40 deletions

View File

@ -1,6 +1,6 @@
{
"name": "calckey",
"version": "12.119.0-calc.13-rc.12",
"version": "12.119.0-calc.13",
"codename": "aqua",
"repository": {
"type": "git",

View File

@ -20,7 +20,7 @@
<script lang="ts" setup>
import { computed, watch, provide } from 'vue';
import * as misskey from 'misskey-js';
import type * as misskey from 'misskey-js';
import XNotes from '@/components/MkNotes.vue';
import { $i } from '@/account';
import { i18n } from '@/i18n';

View File

@ -1,11 +1,15 @@
<template>
<div>
<MkSpacer :content-max="800">
<MkPagination v-slot="{items}" ref="list" :pagination="pagination">
<MkA v-for="item in items" :key="item.id" :to="`/clips/${item.id}`" class="item _panel _gap">
<div class="_panel">
<b>{{ item.name }}</b>
<div v-if="item.description" class="description">{{ item.description }}</div>
<Mfm v-if="item.description" class="description" :text="item.description"/>
</div>
</MkA>
</MkPagination>
</MkSpacer>
</div>
</template>

View File

@ -1,10 +1,12 @@
<template>
<div>
<MkSpacer :content-max="800">
<MkPagination v-slot="{items}" :pagination="pagination">
<div class="jrnovfpt">
<MkGalleryPostPreview v-for="post in items" :key="post.id" :post="post" class="post"/>
</div>
</MkPagination>
</MkSpacer>
</div>
</template>

View File

@ -86,29 +86,24 @@ const headerTabs = $computed(() =>
icon: 'ph-user-bold ph-large',
},
...(($i && $i.id === user.id) || user.publicReactions
? [
{
? [{
key: 'reactions',
title: i18n.ts.reaction,
icon: 'ph-smiley-bold ph-large',
},
]
: []),
{
}] : []),
...(user.instance == null ? [{
key: 'clips',
title: i18n.ts.clips,
icon: 'ph-paperclip-bold ph-large',
},
{
}, {
key: 'pages',
title: i18n.ts.pages,
icon: 'ph-file-text-bold ph-large',
},
{
}, {
key: 'gallery',
title: i18n.ts.gallery,
icon: 'ph-image-square-bold ph-large',
},
}] : []),
]
: null,
);

View File

@ -1,8 +1,10 @@
<template>
<div>
<MkSpacer :content-max="800">
<MkPagination v-slot="{items}" ref="list" :pagination="pagination">
<MkPagePreview v-for="page in items" :key="page.id" :page="page" class="_gap"/>
</MkPagination>
</MkSpacer>
</div>
</template>

View File

@ -1,5 +1,6 @@
<template>
<div>
<MkSpacer :content-max="800">
<MkPagination v-slot="{items}" ref="list" :pagination="pagination">
<div v-for="item in items" :key="item.id" :to="`/clips/${item.id}`" class="item _panel _gap afdcfbfb">
<div class="header">
@ -10,6 +11,7 @@
<MkNote :key="item.id" :note="item.note"/>
</div>
</MkPagination>
</MkSpacer>
</div>
</template>