2018-02-15 11:33:34 +02:00
|
|
|
<template>
|
2020-11-25 14:31:34 +02:00
|
|
|
<MkContainer>
|
2021-04-20 17:22:59 +03:00
|
|
|
<template #header><i class="fas fa-chart-bar" style="margin-right: 0.5em;"></i>{{ $ts.activity }}</template>
|
2020-11-25 14:31:34 +02:00
|
|
|
|
|
|
|
<div style="padding: 8px;">
|
2022-02-04 09:39:09 +02:00
|
|
|
<MkChart src="per-user-notes" :args="{ user, withoutAll: true }" span="day" :limit="limit" :bar="true" :stacked="true" :detailed="false" :aspect-ratio="5"/>
|
2020-11-25 14:31:34 +02:00
|
|
|
</div>
|
|
|
|
</MkContainer>
|
2018-02-15 11:33:34 +02:00
|
|
|
</template>
|
|
|
|
|
2022-01-12 19:46:14 +02:00
|
|
|
<script lang="ts" setup>
|
|
|
|
import { } from 'vue';
|
|
|
|
import * as misskey from 'misskey-js';
|
2021-11-11 19:02:25 +02:00
|
|
|
import MkContainer from '@/components/ui/container.vue';
|
|
|
|
import MkChart from '@/components/chart.vue';
|
2018-11-03 09:44:05 +02:00
|
|
|
|
2022-01-12 19:46:14 +02:00
|
|
|
const props = withDefaults(defineProps<{
|
|
|
|
user: misskey.entities.User;
|
|
|
|
limit?: number;
|
|
|
|
}>(), {
|
2022-02-11 08:14:08 +02:00
|
|
|
limit: 50,
|
2018-02-15 11:33:34 +02:00
|
|
|
});
|
|
|
|
</script>
|