e1d69e236f
* update docker image? * 続 * serial run delete from "${table}" cascade * use cypress official github action * refuse install by cypress action * clean up * use wait? * use more wait? * Revert "use more wait?" This reverts commit18d0fcae9c
. * Revert "use wait?" This reverts commit5aa8feec9c
. * fix * test * test * log? * 握りつぶしてみる * clean up * env? * clean up? * disable video * add comment * remove test * 成功? * test browser * nodeインストール無効化 * node16.13.0-chrome95-ff94 * node.js復活 * ? * ちょっと戻してみる * chrome? * cross browser test2 * --shm-size=2g * artifact? * misskey.local? * firefoxはあきらめる * not headless? * oops * fix * ?? * test1 * if? * fail-fast: false * headless: false * easy error ignoreing describe * エラーの解消 とちょっとリファクター * add browser name to artifact * Install mplayer for FireFox * no wait? * タイムアウトを甘くしてみる * firefoxをあきらめる(n回目) * remove timeout setting * wait復活 * Update basic.js * Update index.js Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
45 lines
1 KiB
Vue
45 lines
1 KiB
Vue
<template>
|
|
<div v-sticky-container class="yrzkoczt">
|
|
<MkTab v-model="include" class="tab">
|
|
<option :value="null">{{ $ts.notes }}</option>
|
|
<option value="replies">{{ $ts.notesAndReplies }}</option>
|
|
<option value="files">{{ $ts.withFiles }}</option>
|
|
</MkTab>
|
|
<XNotes :no-gap="true" :pagination="pagination"/>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { ref, computed } from 'vue';
|
|
import * as misskey from 'misskey-js';
|
|
import XNotes from '@/components/notes.vue';
|
|
import MkTab from '@/components/tab.vue';
|
|
import * as os from '@/os';
|
|
|
|
const props = defineProps<{
|
|
user: misskey.entities.UserDetailed;
|
|
}>();
|
|
|
|
const include = ref<string | null>(null);
|
|
|
|
const pagination = {
|
|
endpoint: 'users/notes' as const,
|
|
limit: 10,
|
|
params: computed(() => ({
|
|
userId: props.user.id,
|
|
includeReplies: include.value === 'replies',
|
|
withFiles: include.value === 'files',
|
|
})),
|
|
};
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.yrzkoczt {
|
|
> .tab {
|
|
margin: calc(var(--margin) / 2) 0;
|
|
padding: calc(var(--margin) / 2) 0;
|
|
background: var(--bg);
|
|
}
|
|
}
|
|
</style>
|