feat(client): リアクション一覧詳細ダイアログを表示できるように

Resolve #9634
This commit is contained in:
syuilo 2023-01-19 10:29:30 +09:00
parent ed9a49687e
commit 336d8fe785
5 changed files with 120 additions and 6 deletions

View file

@ -11,20 +11,28 @@
<script lang="ts" setup>
import * as misskey from 'misskey-js';
import { onMounted } from 'vue';
import MkMiniChart from '@/components/MkMiniChart.vue';
import * as os from '@/os';
import { acct } from '@/filters/user';
const props = defineProps<{
const props = withDefaults(defineProps<{
user: misskey.entities.User;
}>();
withChart: boolean;
}>(), {
withChart: true,
});
let chartValues = $ref<number[] | null>(null);
os.apiGet('charts/user/notes', { userId: props.user.id, limit: 16 + 1, span: 'day' }).then(res => {
//
res.inc.splice(0, 1);
chartValues = res.inc;
onMounted(() => {
if (props.withChart) {
os.apiGet('charts/user/notes', { userId: props.user.id, limit: 16 + 1, span: 'day' }).then(res => {
//
res.inc.splice(0, 1);
chartValues = res.inc;
});
}
});
</script>