Skip to content

Commit 8805c7b

Browse files
committed
chore: update deps
1 parent 2916e8b commit 8805c7b

File tree

12 files changed

+662
-598
lines changed

12 files changed

+662
-598
lines changed

package.json

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -48,64 +48,64 @@
4848
"@types/glob": "^8.0.0",
4949
"@types/inquirer": "^8.2.5",
5050
"@types/jest": "^27.4.1",
51-
"@types/lodash": "^4.14.189",
52-
"@types/marked": "^4.0.7",
51+
"@types/lodash": "^4.14.191",
52+
"@types/marked": "^4.0.8",
5353
"@types/node": "16.18.0",
54-
"@types/react": "^18.0.25",
54+
"@types/react": "^18.0.26",
5555
"@types/react-dom": "^18.0.9",
56-
"@types/vscode": "^1.73.1",
56+
"@types/vscode": "^1.74.0",
5757
"@types/yaml-front-matter": "^4.1.0",
58-
"@typescript-eslint/eslint-plugin": "^5.44.0",
59-
"@typescript-eslint/parser": "^5.44.0",
60-
"axios": "^1.1.2",
58+
"@typescript-eslint/eslint-plugin": "^5.46.1",
59+
"@typescript-eslint/parser": "^5.46.1",
60+
"axios": "^1.2.1",
6161
"axios-mock-adapter": "^1.21.2",
6262
"babel-jest": "^29.1.2",
63-
"bootstrap": "^5.2.2",
63+
"bootstrap": "^5.2.3",
6464
"codesandbox": "^2.2.3",
6565
"colors": "^1.4.0",
6666
"core-js": "^3.26.1",
67-
"dayjs": "^1.11.6",
68-
"echarts": "^5.4.0",
69-
"eslint": "^8.28.0",
67+
"dayjs": "^1.11.7",
68+
"echarts": "^5.4.1",
69+
"eslint": "^8.29.0",
7070
"eslint-config-prettier": "^8.5.0",
7171
"eslint-plugin-import": "^2.26.0",
72-
"eslint-plugin-jsdoc": "^39.6.2",
72+
"eslint-plugin-jsdoc": "^39.6.4",
7373
"eslint-plugin-jsx-a11y": "^6.6.1",
7474
"eslint-plugin-markdown": "^3.0.0",
7575
"eslint-plugin-prettier": "^4.2.1",
7676
"eslint-plugin-react": "^7.31.11",
7777
"eslint-plugin-react-hooks": "^4.6.0",
7878
"eslint-plugin-tsdoc": "^0.2.17",
79-
"fs-extra": "^10.1.0",
79+
"fs-extra": "^11.1.0",
8080
"glob": "^8.0.3",
81-
"highlight.js": "^11.6.0",
81+
"highlight.js": "^11.7.0",
8282
"husky": "^8.0.2",
83-
"i18next": "^22.0.4",
83+
"i18next": "^22.4.3",
8484
"immer": "^9.0.16",
8585
"inquirer": "^8.2.5",
8686
"is-builtin-module": "^3.2.0",
8787
"jest": "^27.5.1",
8888
"jest-environment-jsdom": "28.1.1",
8989
"jsurl": "^0.1.5",
90-
"lerna": "^6.0.3",
90+
"lerna": "^6.1.0",
9191
"lodash": "^4.17.21",
92-
"marked": "^4.2.3",
92+
"marked": "^4.2.4",
9393
"nx": "15.2.1",
9494
"postcss-html": "^1.5.0",
9595
"postcss-markdown": "^1.2.0",
96-
"prettier": "^2.7.1",
96+
"prettier": "^2.8.1",
9797
"react": "^18.2.0",
9898
"react-dom": "^18.2.0",
99-
"react-i18next": "^12.0.0",
100-
"react-router-dom": "^6.4.3",
99+
"react-i18next": "^12.1.1",
100+
"react-router-dom": "^6.4.5",
101101
"react-test-renderer": "^18.2.0",
102102
"regenerator-runtime": "^0.13.11",
103103
"rfs": "^9.0.6",
104-
"rxjs": "^7.5.7",
104+
"rxjs": "^7.6.0",
105105
"rxjs-for-await": "^1.0.0",
106-
"sass": "^1.56.1",
106+
"sass": "^1.56.2",
107107
"sort-package-json": "^2.1.0",
108-
"stylelint": "^14.15.0",
108+
"stylelint": "^14.16.0",
109109
"stylelint-config-prettier": "^9.0.4",
110110
"stylelint-config-recess-order": "^3.0.0",
111111
"stylelint-config-recommended-scss": "^8.0.0",
@@ -115,7 +115,7 @@
115115
"ts-jest": "^27.1.4",
116116
"ts-node": "^10.9.1",
117117
"tslib": "^2.4.1",
118-
"typescript": "~4.8.4",
118+
"typescript": "~4.9.4",
119119
"yaml-front-matter": "^4.1.1"
120120
},
121121
"engines": {

packages/hooks/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"@react-devui/utils": "file:../utils",
2828
"immer": "^9.0.16",
2929
"lodash": "^4.17.21",
30-
"rxjs": "^7.5.7"
30+
"rxjs": "^7.6.0"
3131
},
3232
"peerDependencies": {
3333
"react": "^18.2.0",

packages/platform/src/app/core/useMenu.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export function useMenu() {
4242
}
4343

4444
const { title: _title, titleI18n } = item;
45-
const title = _title ?? (isUndefined(titleI18n) ? undefined : t(titleI18n, { ns: 'title' }));
45+
const title = _title ?? (isUndefined(titleI18n) ? undefined : t(titleI18n as any, { ns: 'title' }));
4646
const obj: DMenuItem<string> = {
4747
id: item.path,
4848
title: item.type === 'item' ? React.createElement(Link, { className: 'app-menu-link', tabIndex: -1, to: item.path }, title) : title,

packages/platform/src/app/routes/exception/Exception.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default function Exception(): JSX.Element | null {
2323
{React.createElement(status === '403' ? S403 : status === '404' ? S404 : S500, { className: styles['app-exception__bg'] })}
2424
<div className={styles['app-exception__info']}>
2525
<div className={styles['app-exception__status']}>{status}</div>
26-
<div className={styles['app-exception__description']}>{t(`routes.exception.${status}`)}</div>
26+
<div className={styles['app-exception__description']}>{t(`routes.exception.${status}` as any)}</div>
2727
<DButton
2828
onClick={() => {
2929
navigate('/', { replace: true });

packages/platform/src/i18next.d.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import 'i18next';
2+
3+
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
4+
import resources from './startup/i18n/resources.json';
5+
6+
declare module 'i18next' {
7+
// Extend CustomTypeOptions
8+
interface CustomTypeOptions {
9+
resources: typeof resources['en-US'];
10+
}
11+
}

packages/platform/src/startup/i18n/resources.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
"User has no menu": "User has no menu",
55
"Please contact the administrator": "Please contact the administrator",
66
"User not authorized": "User not authorized",
7+
"Light theme": "Light theme",
8+
"Dark theme": "Dark theme",
79
"components": {
810
"language": {
911
"Change language": "Change language"
@@ -92,6 +94,8 @@
9294
"User has no menu": "用户无菜单",
9395
"Please contact the administrator": "请联系管理员",
9496
"User not authorized": "用户未授权",
97+
"Light theme": "浅色主题",
98+
"Dark theme": "深色主题",
9599
"components": {
96100
"language": {
97101
"Change language": "改变语言"

packages/site/src/app/routes/layout/Sidebar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export function AppSidebar(props: AppSidebarProps): JSX.Element | null {
8989
] as DMenuItem<string>[])
9090
: menu.map<DMenuItem<string>>((group) => ({
9191
id: group.title,
92-
title: t(`menu.components-group.${group.title}`),
92+
title: t(`menu.components-group.${group.title}` as any),
9393
type: 'group',
9494
children: (group.title === 'Other'
9595
? group.children.concat([{ title: 'Interface', to: '/components/Interface' }])
@@ -100,7 +100,7 @@ export function AppSidebar(props: AppSidebarProps): JSX.Element | null {
100100
<Link tabIndex={-1} to={child.to}>
101101
{child.title}
102102
{languageStorage.value !== 'en-US' && (
103-
<span className="app-layout-sidebar__menu-subtitle">{t(`menu.components.${child.title}`)}</span>
103+
<span className="app-layout-sidebar__menu-subtitle">{t(`menu.components.${child.title}` as any)}</span>
104104
)}
105105
</Link>
106106
),

packages/site/src/i18next.d.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import 'i18next';
2+
3+
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
4+
import resources from '../dist/resources.json';
5+
6+
declare module 'i18next' {
7+
// Extend CustomTypeOptions
8+
interface CustomTypeOptions {
9+
resources: typeof resources['en-US'];
10+
}
11+
}

packages/ui/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@
3030
"immer": "^9.0.16",
3131
"lodash": "^4.17.21",
3232
"rfs": "^9.0.6",
33-
"rxjs": "^7.5.7"
33+
"rxjs": "^7.6.0"
3434
},
3535
"peerDependencies": {
36-
"dayjs": "^1.11.6",
36+
"dayjs": "^1.11.7",
3737
"react": "^18.2.0",
3838
"react-dom": "^18.2.0"
3939
},

packages/ui/src/components/form/abstract-control.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ export abstract class AbstractControl<V = any> {
163163

164164
public readonly asyncVerifyComplete$ = new Subject<AbstractControl<V>>();
165165

166-
clone(): typeof this {
166+
clone(): this {
167167
return new Proxy(this, {});
168168
}
169169

0 commit comments

Comments
 (0)