Skip to content

Commit

Permalink
bump: i18next (#1575)
Browse files Browse the repository at this point in the history
  • Loading branch information
shhdgit authored and baurine committed Sep 11, 2023
1 parent 5dd402b commit b25aa71
Show file tree
Hide file tree
Showing 14 changed files with 5,089 additions and 9,840 deletions.
2 changes: 1 addition & 1 deletion ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"version": "1.0.0",
"license": "MIT",
"engines": {
"node": ">=16.0.0"
"node": ">=16.16.0"
},
"scripts": {
"fmt-check": "prettier --check .",
Expand Down
2 changes: 1 addition & 1 deletion ui/packages/tidb-dashboard-for-clinic-cloud/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"classnames": "^2.3.1",
"compare-versions": "^5.0.1",
"eventemitter2": "^6.4.5",
"i18next": "^21.6.11",
"i18next": "^23.2.9",
"nprogress": "^0.2.0",
"rc-animate": "^3.1.0",
"react": "^17.0.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import { CaretRightOutlined, CaretLeftOutlined } from '@ant-design/icons'
import { useSize } from 'ahooks'
import Flexbox from '@g07cha/flexbox-react'
import { useSpring, animated } from 'react-spring'
import { useTranslation } from 'react-i18next'
import { TFunction } from 'i18next'
import { useTranslation, TFunction } from 'react-i18next'

import { InfoInfoResponse } from '~/client'

Expand Down
2 changes: 1 addition & 1 deletion ui/packages/tidb-dashboard-for-clinic-op/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@pingcap/tidb-dashboard-lib": "workspace:^1.0.0",
"antd": "^4.18.7",
"axios": "^0.27.2",
"i18next": "^21.6.11",
"i18next": "^23.2.9",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-router-dom": "6"
Expand Down
2 changes: 1 addition & 1 deletion ui/packages/tidb-dashboard-for-dbaas/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"antd": "^4.18.7",
"axios": "^0.27.2",
"compare-versions": "^5.0.1",
"i18next": "^21.6.11",
"i18next": "^23.2.9",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-router-dom": "6"
Expand Down
2 changes: 1 addition & 1 deletion ui/packages/tidb-dashboard-for-op/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"classnames": "^2.3.1",
"compare-versions": "^5.0.1",
"eventemitter2": "^6.4.5",
"i18next": "^21.6.11",
"i18next": "^23.2.9",
"nprogress": "^0.2.0",
"rc-animate": "^3.1.0",
"react": "^17.0.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import { CaretRightOutlined, CaretLeftOutlined } from '@ant-design/icons'
import { useSize } from 'ahooks'
import Flexbox from '@g07cha/flexbox-react'
import { useSpring, animated } from 'react-spring'
import { useTranslation } from 'react-i18next'
import { TFunction } from 'i18next'
import { useTranslation, TFunction } from 'react-i18next'

import { InfoInfoResponse } from '~/client'

Expand Down
2 changes: 1 addition & 1 deletion ui/packages/tidb-dashboard-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"dayjs": "^1.10.8",
"echarts": "^4.8.0",
"hsluv": "^0.1.0",
"i18next": "^21.6.11",
"i18next": "^23.2.9",
"i18next-browser-languagedetector": "^6.1.3",
"lodash": "^4.17.21",
"metrics-chart": "^0.32.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ import {
Select
} from 'antd'
import { ExclamationCircleOutlined } from '@ant-design/icons'
import { useTranslation } from 'react-i18next'
import { TFunction } from 'i18next'
import { useTranslation, TFunction } from 'react-i18next'
import { getValueFormat } from '@baurine/grafana-value-formats'

import { ConprofContinuousProfilingConfig } from '@lib/client'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React, { useContext, useEffect, useMemo, useState } from 'react'
import { Collapse, Space, Input, Empty, Alert } from 'antd'
import { useTranslation } from 'react-i18next'
import { TFunction } from 'i18next'
import { useTranslation, TFunction } from 'react-i18next'
import { SearchOutlined } from '@ant-design/icons'
import { debounce } from 'lodash'
import { ScrollablePane } from 'office-ui-fabric-react/lib/ScrollablePane'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { SlowqueryModel } from '@lib/client'
import { Typography } from 'antd'
import { TFunction } from 'i18next'
import { TFunction } from 'react-i18next'

export const tabTimeItems = (data: SlowqueryModel, t: TFunction) => {
return [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { StatementModel } from '@lib/client'
import { Typography } from 'antd'
import { TFunction } from 'i18next'
import { TFunction } from 'react-i18next'

export const tabTimeItems = (data: StatementModel, t: TFunction) => [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ import { Badge } from 'antd'
import dayjs from 'dayjs'
import { IColumn } from 'office-ui-fabric-react/lib/DetailsList'
import React, { useContext, useMemo } from 'react'
import { useTranslation } from 'react-i18next'
import { useTranslation, TFunction } from 'react-i18next'
import { useNavigate } from 'react-router-dom'
import { useMemoizedFn } from 'ahooks'
import type { TFunction } from 'i18next'

import { DiagnoseReport } from '@lib/client'
import { CardTable, DateTime } from '@lib/components'
Expand Down
Loading

0 comments on commit b25aa71

Please sign in to comment.