stat -> stats

This commit is contained in:
kakkokari-gtyih 2025-02-02 12:08:57 +09:00
parent 7ef7f575a4
commit 1fd5ebc832
9 changed files with 21 additions and 21 deletions

View File

@ -339,7 +339,7 @@ export * as 'pages/update' from './endpoints/pages/update.js';
export * as 'ping' from './endpoints/ping.js';
export * as 'pinned-users' from './endpoints/pinned-users.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/delete' from './endpoints/renote-mute/delete.js';
export * as 'renote-mute/list' from './endpoints/renote-mute/list.js';

View File

@ -7,7 +7,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<MkStickyContainer>
<template #header><MkPageHeader v-model:tab="tab" :actions="headerActions" :tabs="headerTabs"/></template>
<MkInfo>
{{ i18n.ts.reactionsStatDescription }}
{{ i18n.ts.reactionsStatsDescription }}
</MkInfo>
<MkSpacer v-if="tab === 'me'" :contentMax="1000" :marginMin="20">
<div class="_gaps_s">
@ -53,7 +53,7 @@ watch(tab, async () => {
if (tab.value === 'site' && serverReactionsListMfm.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');
@ -80,7 +80,7 @@ const headerTabs = computed(() => [{
}]);
definePageMetadata(() => ({
title: i18n.ts.reactionsStat,
title: i18n.ts.reactionsStats,
icon: 'ti ti-chart-bar',
}));
</script>

View File

@ -578,8 +578,8 @@ const routes: RouteDef[] = [{
path: '/timeline',
component: page(() => import('@/pages/timeline.vue')),
}, {
path: '/reactions-stat',
component: page(() => import('@/pages/reactions-stat.vue')),
path: '/reactions-stats',
component: page(() => import('@/pages/reactions-stats.vue')),
loginRequired: true,
}, {
name: 'index',

View File

@ -1724,8 +1724,8 @@ declare namespace entities {
PingResponse,
PinnedUsersResponse,
PromoReadRequest,
ReactionsStatRequest,
ReactionsStatResponse,
ReactionsStatsRequest,
ReactionsStatsResponse,
RenoteMuteCreateRequest,
RenoteMuteDeleteRequest,
RenoteMuteListRequest,
@ -2940,10 +2940,10 @@ type QueueStats = {
type QueueStatsLog = QueueStats[];
// @public (undocumented)
type ReactionsStatRequest = operations['reactions-stat']['requestBody']['content']['application/json'];
type ReactionsStatsRequest = operations['reactions-stats']['requestBody']['content']['application/json'];
// @public (undocumented)
type ReactionsStatResponse = operations['reactions-stat']['responses']['200']['content']['application/json'];
type ReactionsStatsResponse = operations['reactions-stats']['responses']['200']['content']['application/json'];
// @public (undocumented)
type RenoteMuteCreateRequest = operations['renote-mute___create']['requestBody']['content']['application/json'];

View File

@ -3676,7 +3676,7 @@ declare module '../api.js' {
*
* **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,
params: P,
credential?: string | null,

View File

@ -489,8 +489,8 @@ import type {
PingResponse,
PinnedUsersResponse,
PromoReadRequest,
ReactionsStatRequest,
ReactionsStatResponse,
ReactionsStatsRequest,
ReactionsStatsResponse,
RenoteMuteCreateRequest,
RenoteMuteDeleteRequest,
RenoteMuteListRequest,
@ -917,7 +917,7 @@ export type Endpoints = {
'ping': { req: EmptyRequest; res: PingResponse };
'pinned-users': { req: EmptyRequest; res: PinnedUsersResponse };
'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/delete': { req: RenoteMuteDeleteRequest; res: EmptyResponse };
'renote-mute/list': { req: RenoteMuteListRequest; res: RenoteMuteListResponse };

View File

@ -492,8 +492,8 @@ export type PagesUpdateRequest = operations['pages___update']['requestBody']['co
export type PingResponse = operations['ping']['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 ReactionsStatRequest = operations['reactions-stat']['requestBody']['content']['application/json'];
export type ReactionsStatResponse = operations['reactions-stat']['responses']['200']['content']['application/json'];
export type ReactionsStatsRequest = operations['reactions-stats']['requestBody']['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 RenoteMuteDeleteRequest = operations['renote-mute___delete']['requestBody']['content']['application/json'];
export type RenoteMuteListRequest = operations['renote-mute___list']['requestBody']['content']['application/json'];

View File

@ -3176,14 +3176,14 @@ export type paths = {
*/
post: operations['promo___read'];
};
'/reactions-stat': {
'/reactions-stats': {
/**
* reactions-stat
* reactions-stats
* @description No description provided.
*
* **Credential required**: *Yes* / **Permission**: *read:account*
*/
post: operations['reactions-stat'];
post: operations['reactions-stats'];
};
'/renote-mute/create': {
/**
@ -24858,12 +24858,12 @@ export type operations = {
};
};
/**
* reactions-stat
* reactions-stats
* @description No description provided.
*
* **Credential required**: *Yes* / **Permission**: *read:account*
*/
'reactions-stat': {
'reactions-stats': {
requestBody: {
content: {
'application/json': {