chore: fix ci problem
This commit is contained in:
parent
bf6b121041
commit
0f7b11d842
@ -5,6 +5,7 @@ import { AppRouterOutput, trpc } from '../../api/trpc';
|
|||||||
import { useCurrentWorkspaceId } from '../../store/user';
|
import { useCurrentWorkspaceId } from '../../store/user';
|
||||||
import { sum } from 'lodash-es';
|
import { sum } from 'lodash-es';
|
||||||
import { formatNumber } from '../../utils/common';
|
import { formatNumber } from '../../utils/common';
|
||||||
|
import { useTranslation } from '@i18next-toolkit/react';
|
||||||
|
|
||||||
type MetricsItemType = AppRouterOutput['website']['metrics'][number];
|
type MetricsItemType = AppRouterOutput['website']['metrics'][number];
|
||||||
|
|
||||||
@ -24,8 +25,9 @@ interface MetricsTableProps {
|
|||||||
endAt: number;
|
endAt: number;
|
||||||
}
|
}
|
||||||
export const MetricsTable: React.FC<MetricsTableProps> = React.memo((props) => {
|
export const MetricsTable: React.FC<MetricsTableProps> = React.memo((props) => {
|
||||||
const workspaceId = useCurrentWorkspaceId();
|
|
||||||
const { websiteId, title, type, startAt, endAt } = props;
|
const { websiteId, title, type, startAt, endAt } = props;
|
||||||
|
const workspaceId = useCurrentWorkspaceId();
|
||||||
|
const { t } = useTranslation();
|
||||||
|
|
||||||
const { isLoading, data: metrics = [] } = trpc.website.metrics.useQuery({
|
const { isLoading, data: metrics = [] } = trpc.website.metrics.useQuery({
|
||||||
workspaceId,
|
workspaceId,
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
import type { I18nextToolkitConfig } from '@i18next-toolkit/cli';
|
/** @type {import('@i18next-toolkit/cli').I18nextToolkitConfig} */
|
||||||
|
const config = {
|
||||||
export default {
|
|
||||||
locales: ['en', 'zh', 'jp', 'fr', 'de', 'ru'],
|
locales: ['en', 'zh', 'jp', 'fr', 'de', 'ru'],
|
||||||
scanner: {
|
scanner: {
|
||||||
verbose: false,
|
verbose: false,
|
||||||
@ -41,4 +40,6 @@ export default {
|
|||||||
'YYYY-MM-DD HH:mm',
|
'YYYY-MM-DD HH:mm',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
} satisfies I18nextToolkitConfig;
|
};
|
||||||
|
|
||||||
|
module.exports = config;
|
Loading…
Reference in New Issue
Block a user