mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-20 23:53:13 +09:00
Take FieldData from antd instead of rc-field-form
web_ui depended on rc-field-form 1.x for a single type import, while antd 5 uses rc-field-form 2.x. Derive the type from antd's FormProps and drop the dependency. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
8a3aa56c11
commit
5df375d490
2 files changed
+3
-3
No files matched your search
@@ -45,7 +45,6 @@
|
|||||||
"os-browserify": "^0.3.0",
|
"os-browserify": "^0.3.0",
|
||||||
"path-browserify": "^1.0.1",
|
"path-browserify": "^1.0.1",
|
||||||
"process": "^0.11.10",
|
"process": "^0.11.10",
|
||||||
"rc-field-form": "^1.44.0",
|
|
||||||
"react": "catalog:",
|
"react": "catalog:",
|
||||||
"react-dom": "catalog:",
|
"react-dom": "catalog:",
|
||||||
"react-markdown": "catalog:",
|
"react-markdown": "catalog:",
|
||||||
|
|||||||
@@ -1,11 +1,10 @@
|
|||||||
import React, { Fragment, memo, useCallback, useEffect, useContext, useRef, useState } from "react";
|
import React, { Fragment, memo, useCallback, useEffect, useContext, useRef, useState } from "react";
|
||||||
import { useNavigate, useParams } from "react-router-dom";
|
import { useNavigate, useParams } from "react-router-dom";
|
||||||
import { FieldData } from "rc-field-form/lib/interface";
|
|
||||||
|
|
||||||
import {
|
import {
|
||||||
Button, Card, ColorPicker, Checkbox, Col, ConfigProvider, Descriptions, Form, Input, Pagination,
|
Button, Card, ColorPicker, Checkbox, Col, ConfigProvider, Descriptions, Form, Input, Pagination,
|
||||||
Popconfirm, Row, Table, Tag, Typography, Select, Skeleton, Space, Spin, Switch, Modal, Tooltip,
|
Popconfirm, Row, Table, Tag, Typography, Select, Skeleton, Space, Spin, Switch, Modal, Tooltip,
|
||||||
TablePaginationConfig, Alert, notification,
|
TablePaginationConfig, Alert, notification, FormProps,
|
||||||
} from "antd";
|
} from "antd";
|
||||||
|
|
||||||
import {
|
import {
|
||||||
@@ -35,6 +34,8 @@ const { logger } = lib;
|
|||||||
const { Text } = Typography;
|
const { Text } = Typography;
|
||||||
const strcmp = new Intl.Collator(undefined, { numeric: true, sensitivity: "base" }).compare;
|
const strcmp = new Intl.Collator(undefined, { numeric: true, sensitivity: "base" }).compare;
|
||||||
|
|
||||||
|
type FieldData = NonNullable<FormProps["fields"]>[number];
|
||||||
|
|
||||||
type ModChange =
|
type ModChange =
|
||||||
{
|
{
|
||||||
type: "name" | "description"
|
type: "name" | "description"
|
||||||
|
|||||||
Reference in new issue
Block a user