Skip to content

Commit be38f64

Browse files
committed
Bump frontend and backend packages. Fix linters.
1 parent 4f8b29a commit be38f64

17 files changed

Lines changed: 2009 additions & 1856 deletions

File tree

docs/build.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ def read_cls_docstring(cls):
3939

4040
def get_versions():
4141
return [
42+
{
43+
"version": "0.2.20",
44+
"changes": [
45+
"Fix for _id fields. Bump packages for backend and frontend.",
46+
],
47+
},
4248
{
4349
"version": "0.2.19",
4450
"changes": [

docs/index.html

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

fastadmin/static/assets/worker-D1fCgYB7.js

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

fastadmin/static/index.min.js

Lines changed: 371 additions & 300 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/.eslintrc.cjs

Lines changed: 0 additions & 20 deletions
This file was deleted.

frontend/eslint.config.mjs

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
import { fixupConfigRules } from "@eslint/compat";
2+
import reactRefresh from "eslint-plugin-react-refresh";
3+
import globals from "globals";
4+
import tsParser from "@typescript-eslint/parser";
5+
import path from "node:path";
6+
import { fileURLToPath } from "node:url";
7+
import js from "@eslint/js";
8+
import { FlatCompat } from "@eslint/eslintrc";
9+
10+
const __filename = fileURLToPath(import.meta.url);
11+
const __dirname = path.dirname(__filename);
12+
const compat = new FlatCompat({
13+
baseDirectory: __dirname,
14+
recommendedConfig: js.configs.recommended,
15+
allConfig: js.configs.all
16+
});
17+
18+
export default [{
19+
ignores: ["**/dist", "**/.eslintrc.cjs"],
20+
}, ...fixupConfigRules(compat.extends(
21+
"eslint:recommended",
22+
"plugin:@typescript-eslint/recommended",
23+
"plugin:react-hooks/recommended",
24+
)), {
25+
plugins: {
26+
"react-refresh": reactRefresh,
27+
},
28+
languageOptions: {
29+
globals: {
30+
...globals.browser,
31+
},
32+
parser: tsParser,
33+
},
34+
rules: {
35+
"react-refresh/only-export-components": "off",
36+
"@typescript-eslint/no-explicit-any": "off",
37+
},
38+
}];

frontend/package.json

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -14,43 +14,45 @@
1414
"coverage": "vitest --environment jsdom --run --coverage"
1515
},
1616
"dependencies": {
17-
"@ant-design/charts": "^2.0.3",
18-
"@tanstack/react-query": "^5.28.6",
19-
"antd": "^5.15.3",
17+
"@ant-design/charts": "^2.2.7",
18+
"@ant-design/v5-patch-for-react-19": "^1.0.3",
19+
"@tanstack/react-query": "^5.74.3",
20+
"antd": "^5.24.7",
2021
"antd-img-crop": "^4.21.0",
21-
"axios": "^1.6.8",
22+
"axios": "^1.8.4",
2223
"getbase64data": "^1.0.8",
23-
"i18next": "^23.10.1",
24+
"i18next": "^24.2.3",
2425
"js-file-download": "^0.4.12",
2526
"lodash-es": "^4.17.21",
2627
"lodash.debounce": "^4.0.8",
2728
"query-string": "^9.0.0",
28-
"react": "^18.2.0",
29-
"react-dom": "^18.2.0",
29+
"react": "^19.1.0",
30+
"react-dom": "^19.1.0",
3031
"react-helmet-async": "^2.0.4",
31-
"react-i18next": "^14.1.0",
32+
"react-i18next": "^15.4.1",
3233
"react-phone-input-2": "^2.15.1",
3334
"react-quill": "^2.0.0",
34-
"react-router-dom": "^6.22.3",
35+
"react-router-dom": "^7.5.0",
3536
"slugify": "^1.6.6"
3637
},
3738
"devDependencies": {
3839
"@biomejs/biome": "^1.6.1",
39-
"@testing-library/react": "^14.2.2",
40+
"@eslint/compat": "^1.2.8",
41+
"@testing-library/react": "^16.3.0",
4042
"@types/lodash.debounce": "^4.0.9",
41-
"@types/react": "^18.2.66",
42-
"@types/react-dom": "^18.2.22",
43-
"@typescript-eslint/eslint-plugin": "^7.2.0",
44-
"@typescript-eslint/parser": "^7.2.0",
45-
"@vitejs/plugin-react-swc": "^3.5.0",
46-
"@vitest/coverage-v8": "^2.0.5",
47-
"eslint": "^8.57.0",
48-
"eslint-plugin-react-hooks": "^4.6.0",
49-
"eslint-plugin-react-refresh": "^0.4.6",
50-
"jsdom": "^24.1.1",
51-
"typescript": "^5.2.2",
52-
"vite": "^5.2.0",
43+
"@types/react": "^19.1.2",
44+
"@types/react-dom": "^19.1.2",
45+
"@typescript-eslint/eslint-plugin": "^8.30.1",
46+
"@typescript-eslint/parser": "^8.30.1",
47+
"@vitejs/plugin-react-swc": "^3.8.1",
48+
"@vitest/coverage-v8": "^3.1.1",
49+
"eslint": "^9.24.0",
50+
"eslint-plugin-react-hooks": "^5.2.0",
51+
"eslint-plugin-react-refresh": "^0.4.19",
52+
"jsdom": "^26.1.0",
53+
"typescript": "^5.8.3",
54+
"vite": "^6.2.6",
5355
"vite-plugin-environment": "^1.1.3",
54-
"vitest": "^2.0.5"
56+
"vitest": "^3.1.1"
5557
}
5658
}

frontend/src/components/async-transfer/index.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { TestProviders } from "@/providers";
88
test("Renders AsyncTransfer", () => {
99
const queryClient = new QueryClient();
1010

11-
const onChange = (_data: any) => undefined;
11+
const onChange = () => undefined;
1212
render(
1313
<TestProviders client={queryClient}>
1414
<AsyncTransfer

frontend/src/components/form-container/index.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { TestProviders } from "@/providers";
88
test("Renders FormContainer", () => {
99
const queryClient = new QueryClient();
1010

11-
const onFinish = (_data: any) => undefined;
11+
const onFinish = () => undefined;
1212
render(
1313
<TestProviders client={queryClient}>
1414
<FormContainer

frontend/src/components/table-or-cards/cards/index.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ import {
99
} from "antd";
1010
import { useState } from "react";
1111

12-
export interface ICards extends Partial<TableProps<any>> {}
13-
14-
export const Cards = (props: ICards) => {
12+
export const Cards = (props: Partial<TableProps<any>>) => {
1513
const [expandedIds, setExpandedIds] = useState<string[]>([]);
1614
if (props.loading) {
1715
return <Spin />;

0 commit comments

Comments
 (0)