stat -> stats
This commit is contained in:
parent
7ef7f575a4
commit
1fd5ebc832
|
@ -339,7 +339,7 @@ export * as 'pages/update' from './endpoints/pages/update.js';
|
||||||
export * as 'ping' from './endpoints/ping.js';
|
export * as 'ping' from './endpoints/ping.js';
|
||||||
export * as 'pinned-users' from './endpoints/pinned-users.js';
|
export * as 'pinned-users' from './endpoints/pinned-users.js';
|
||||||
export * as 'promo/read' from './endpoints/promo/read.js';
|
export * as 'promo/read' from './endpoints/promo/read.js';
|
||||||
export * as 'reactions-stat' from './endpoints/reactions-stat.js';
|
export * as 'reactions-stats' from './endpoints/reactions-stats.js';
|
||||||
export * as 'renote-mute/create' from './endpoints/renote-mute/create.js';
|
export * as 'renote-mute/create' from './endpoints/renote-mute/create.js';
|
||||||
export * as 'renote-mute/delete' from './endpoints/renote-mute/delete.js';
|
export * as 'renote-mute/delete' from './endpoints/renote-mute/delete.js';
|
||||||
export * as 'renote-mute/list' from './endpoints/renote-mute/list.js';
|
export * as 'renote-mute/list' from './endpoints/renote-mute/list.js';
|
||||||
|
|
|
@ -7,7 +7,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
<MkStickyContainer>
|
<MkStickyContainer>
|
||||||
<template #header><MkPageHeader v-model:tab="tab" :actions="headerActions" :tabs="headerTabs"/></template>
|
<template #header><MkPageHeader v-model:tab="tab" :actions="headerActions" :tabs="headerTabs"/></template>
|
||||||
<MkInfo>
|
<MkInfo>
|
||||||
{{ i18n.ts.reactionsStatDescription }}
|
{{ i18n.ts.reactionsStatsDescription }}
|
||||||
</MkInfo>
|
</MkInfo>
|
||||||
<MkSpacer v-if="tab === 'me'" :contentMax="1000" :marginMin="20">
|
<MkSpacer v-if="tab === 'me'" :contentMax="1000" :marginMin="20">
|
||||||
<div class="_gaps_s">
|
<div class="_gaps_s">
|
||||||
|
@ -53,7 +53,7 @@ watch(tab, async () => {
|
||||||
if (tab.value === 'site' && serverReactionsListMfm.value !== 'Loading...') { return; }
|
if (tab.value === 'site' && serverReactionsListMfm.value !== 'Loading...') { return; }
|
||||||
if (tab.value !== 'site' && myReactionsListMfm.value !== 'Loading...') { return; }
|
if (tab.value !== 'site' && myReactionsListMfm.value !== 'Loading...') { return; }
|
||||||
|
|
||||||
const reactionsList = await misskeyApi('reactions-stat', { site: tab.value === 'site' });
|
const reactionsList = await misskeyApi('reactions-stats', { site: tab.value === 'site' });
|
||||||
|
|
||||||
const res = reactionsList.map((x) => `${x.reaction} ${x.count}`).join('\n');
|
const res = reactionsList.map((x) => `${x.reaction} ${x.count}`).join('\n');
|
||||||
|
|
||||||
|
@ -80,7 +80,7 @@ const headerTabs = computed(() => [{
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
definePageMetadata(() => ({
|
definePageMetadata(() => ({
|
||||||
title: i18n.ts.reactionsStat,
|
title: i18n.ts.reactionsStats,
|
||||||
icon: 'ti ti-chart-bar',
|
icon: 'ti ti-chart-bar',
|
||||||
}));
|
}));
|
||||||
</script>
|
</script>
|
|
@ -578,8 +578,8 @@ const routes: RouteDef[] = [{
|
||||||
path: '/timeline',
|
path: '/timeline',
|
||||||
component: page(() => import('@/pages/timeline.vue')),
|
component: page(() => import('@/pages/timeline.vue')),
|
||||||
}, {
|
}, {
|
||||||
path: '/reactions-stat',
|
path: '/reactions-stats',
|
||||||
component: page(() => import('@/pages/reactions-stat.vue')),
|
component: page(() => import('@/pages/reactions-stats.vue')),
|
||||||
loginRequired: true,
|
loginRequired: true,
|
||||||
}, {
|
}, {
|
||||||
name: 'index',
|
name: 'index',
|
||||||
|
|
|
@ -1724,8 +1724,8 @@ declare namespace entities {
|
||||||
PingResponse,
|
PingResponse,
|
||||||
PinnedUsersResponse,
|
PinnedUsersResponse,
|
||||||
PromoReadRequest,
|
PromoReadRequest,
|
||||||
ReactionsStatRequest,
|
ReactionsStatsRequest,
|
||||||
ReactionsStatResponse,
|
ReactionsStatsResponse,
|
||||||
RenoteMuteCreateRequest,
|
RenoteMuteCreateRequest,
|
||||||
RenoteMuteDeleteRequest,
|
RenoteMuteDeleteRequest,
|
||||||
RenoteMuteListRequest,
|
RenoteMuteListRequest,
|
||||||
|
@ -2940,10 +2940,10 @@ type QueueStats = {
|
||||||
type QueueStatsLog = QueueStats[];
|
type QueueStatsLog = QueueStats[];
|
||||||
|
|
||||||
// @public (undocumented)
|
// @public (undocumented)
|
||||||
type ReactionsStatRequest = operations['reactions-stat']['requestBody']['content']['application/json'];
|
type ReactionsStatsRequest = operations['reactions-stats']['requestBody']['content']['application/json'];
|
||||||
|
|
||||||
// @public (undocumented)
|
// @public (undocumented)
|
||||||
type ReactionsStatResponse = operations['reactions-stat']['responses']['200']['content']['application/json'];
|
type ReactionsStatsResponse = operations['reactions-stats']['responses']['200']['content']['application/json'];
|
||||||
|
|
||||||
// @public (undocumented)
|
// @public (undocumented)
|
||||||
type RenoteMuteCreateRequest = operations['renote-mute___create']['requestBody']['content']['application/json'];
|
type RenoteMuteCreateRequest = operations['renote-mute___create']['requestBody']['content']['application/json'];
|
||||||
|
|
|
@ -3676,7 +3676,7 @@ declare module '../api.js' {
|
||||||
*
|
*
|
||||||
* **Credential required**: *Yes* / **Permission**: *read:account*
|
* **Credential required**: *Yes* / **Permission**: *read:account*
|
||||||
*/
|
*/
|
||||||
request<E extends 'reactions-stat', P extends Endpoints[E]['req']>(
|
request<E extends 'reactions-stats', P extends Endpoints[E]['req']>(
|
||||||
endpoint: E,
|
endpoint: E,
|
||||||
params: P,
|
params: P,
|
||||||
credential?: string | null,
|
credential?: string | null,
|
||||||
|
|
|
@ -489,8 +489,8 @@ import type {
|
||||||
PingResponse,
|
PingResponse,
|
||||||
PinnedUsersResponse,
|
PinnedUsersResponse,
|
||||||
PromoReadRequest,
|
PromoReadRequest,
|
||||||
ReactionsStatRequest,
|
ReactionsStatsRequest,
|
||||||
ReactionsStatResponse,
|
ReactionsStatsResponse,
|
||||||
RenoteMuteCreateRequest,
|
RenoteMuteCreateRequest,
|
||||||
RenoteMuteDeleteRequest,
|
RenoteMuteDeleteRequest,
|
||||||
RenoteMuteListRequest,
|
RenoteMuteListRequest,
|
||||||
|
@ -917,7 +917,7 @@ export type Endpoints = {
|
||||||
'ping': { req: EmptyRequest; res: PingResponse };
|
'ping': { req: EmptyRequest; res: PingResponse };
|
||||||
'pinned-users': { req: EmptyRequest; res: PinnedUsersResponse };
|
'pinned-users': { req: EmptyRequest; res: PinnedUsersResponse };
|
||||||
'promo/read': { req: PromoReadRequest; res: EmptyResponse };
|
'promo/read': { req: PromoReadRequest; res: EmptyResponse };
|
||||||
'reactions-stat': { req: ReactionsStatRequest; res: ReactionsStatResponse };
|
'reactions-stats': { req: ReactionsStatsRequest; res: ReactionsStatsResponse };
|
||||||
'renote-mute/create': { req: RenoteMuteCreateRequest; res: EmptyResponse };
|
'renote-mute/create': { req: RenoteMuteCreateRequest; res: EmptyResponse };
|
||||||
'renote-mute/delete': { req: RenoteMuteDeleteRequest; res: EmptyResponse };
|
'renote-mute/delete': { req: RenoteMuteDeleteRequest; res: EmptyResponse };
|
||||||
'renote-mute/list': { req: RenoteMuteListRequest; res: RenoteMuteListResponse };
|
'renote-mute/list': { req: RenoteMuteListRequest; res: RenoteMuteListResponse };
|
||||||
|
|
|
@ -492,8 +492,8 @@ export type PagesUpdateRequest = operations['pages___update']['requestBody']['co
|
||||||
export type PingResponse = operations['ping']['responses']['200']['content']['application/json'];
|
export type PingResponse = operations['ping']['responses']['200']['content']['application/json'];
|
||||||
export type PinnedUsersResponse = operations['pinned-users']['responses']['200']['content']['application/json'];
|
export type PinnedUsersResponse = operations['pinned-users']['responses']['200']['content']['application/json'];
|
||||||
export type PromoReadRequest = operations['promo___read']['requestBody']['content']['application/json'];
|
export type PromoReadRequest = operations['promo___read']['requestBody']['content']['application/json'];
|
||||||
export type ReactionsStatRequest = operations['reactions-stat']['requestBody']['content']['application/json'];
|
export type ReactionsStatsRequest = operations['reactions-stats']['requestBody']['content']['application/json'];
|
||||||
export type ReactionsStatResponse = operations['reactions-stat']['responses']['200']['content']['application/json'];
|
export type ReactionsStatsResponse = operations['reactions-stats']['responses']['200']['content']['application/json'];
|
||||||
export type RenoteMuteCreateRequest = operations['renote-mute___create']['requestBody']['content']['application/json'];
|
export type RenoteMuteCreateRequest = operations['renote-mute___create']['requestBody']['content']['application/json'];
|
||||||
export type RenoteMuteDeleteRequest = operations['renote-mute___delete']['requestBody']['content']['application/json'];
|
export type RenoteMuteDeleteRequest = operations['renote-mute___delete']['requestBody']['content']['application/json'];
|
||||||
export type RenoteMuteListRequest = operations['renote-mute___list']['requestBody']['content']['application/json'];
|
export type RenoteMuteListRequest = operations['renote-mute___list']['requestBody']['content']['application/json'];
|
||||||
|
|
|
@ -3176,14 +3176,14 @@ export type paths = {
|
||||||
*/
|
*/
|
||||||
post: operations['promo___read'];
|
post: operations['promo___read'];
|
||||||
};
|
};
|
||||||
'/reactions-stat': {
|
'/reactions-stats': {
|
||||||
/**
|
/**
|
||||||
* reactions-stat
|
* reactions-stats
|
||||||
* @description No description provided.
|
* @description No description provided.
|
||||||
*
|
*
|
||||||
* **Credential required**: *Yes* / **Permission**: *read:account*
|
* **Credential required**: *Yes* / **Permission**: *read:account*
|
||||||
*/
|
*/
|
||||||
post: operations['reactions-stat'];
|
post: operations['reactions-stats'];
|
||||||
};
|
};
|
||||||
'/renote-mute/create': {
|
'/renote-mute/create': {
|
||||||
/**
|
/**
|
||||||
|
@ -24858,12 +24858,12 @@ export type operations = {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
/**
|
/**
|
||||||
* reactions-stat
|
* reactions-stats
|
||||||
* @description No description provided.
|
* @description No description provided.
|
||||||
*
|
*
|
||||||
* **Credential required**: *Yes* / **Permission**: *read:account*
|
* **Credential required**: *Yes* / **Permission**: *read:account*
|
||||||
*/
|
*/
|
||||||
'reactions-stat': {
|
'reactions-stats': {
|
||||||
requestBody: {
|
requestBody: {
|
||||||
content: {
|
content: {
|
||||||
'application/json': {
|
'application/json': {
|
||||||
|
|
Loading…
Reference in New Issue