-
数据总数:{total} 个
-
+
+
+
+
+ 数据总数:{total} 个
setInputText(e.target.value)}
value={inputText}
/>
}
>
新建代码配置
-
- {dataList && dataList.length !== 0 && (
- <>
-
- {dataList.map((item) => (
-
- ))}
-
-
+
+ {dataList.map((item) => (
+
+ ))}
+
+
+ >
+ )}
+ {dataList && dataList.length === 0 && (
+
- >
- )}
- {dataList && dataList.length === 0 && (
-
- )}
+ )}
+
);
}
diff --git a/react-ui/src/pages/CodeConfig/components/CodeConfigItem/index.less b/react-ui/src/pages/CodeConfig/components/CodeConfigItem/index.less
index c5d4abaa..c2855954 100644
--- a/react-ui/src/pages/CodeConfig/components/CodeConfigItem/index.less
+++ b/react-ui/src/pages/CodeConfig/components/CodeConfigItem/index.less
@@ -2,50 +2,96 @@
position: relative;
width: calc(25% - 15px);
padding: 20px;
- background: white;
- border: 1px solid #eaeaea;
+ background: linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
+ border: 2px solid white;
border-radius: 4px;
+ box-shadow: 0px 3px 10px rgba(164, 169, 181, 0.13);
cursor: pointer;
+ &:hover {
+ border-color: @primary-color;
+ }
+
@media screen and (max-width: 1860px) {
& {
width: calc(33.33% - 13.33px);
}
}
- &__name {
+ &__icon {
+ flex: none;
+ width: 16px;
+ height: 16px;
margin-right: 10px;
+ }
+
+ &__name {
+ position: relative;
+ margin-right: 20px;
margin-bottom: 0 !important;
color: @text-color;
+ font-weight: 500;
font-size: 16px;
+
+ &::after {
+ position: absolute;
+ top: 14px;
+ left: 0;
+ width: 100%;
+ height: 6px;
+ background: linear-gradient(
+ to right,
+ .addAlpha(@primary-color, 0.4) [] 0,
+ .addAlpha(@primary-color, 0) [] 100%
+ );
+ content: '';
+ }
+ }
+
+ &:hover &__name {
+ color: @primary-color;
}
&__tag {
- padding: 2px 11px;
- font-size: 12px;
- border-radius: 1000px;
+ flex: none;
+ padding: 1px 10px;
+ font-size: 13px;
+ border-radius: 2px;
&--public {
color: @primary-color;
- background-color: .addAlpha(@primary-color, 0.08) [];
+ background-color: .addAlpha(@primary-color, 0.1) [];
border-color: .addAlpha(@primary-color, 0.5) [];
}
&--private {
color: @warning-color;
- background-color: .addAlpha(@warning-color, 0.08) [];
+ background-color: .addAlpha(@warning-color, 0.1) [];
border-color: .addAlpha(@warning-color, 0.5) [];
}
}
+ :global {
+ .ant-btn {
+ flex: none;
+ color: #808080;
+ }
+ }
+
+ &__url-box {
+ margin-bottom: 15px;
+ padding: 14px;
+ background-color: .addAlpha(@primary-color, 0.03) [];
+ border-radius: 4px;
+ }
+
&__url {
- margin-bottom: 10px !important;
+ margin-bottom: 15px !important;
color: @text-color-secondary;
font-size: 14px;
}
&__branch {
- margin-bottom: 20px;
color: @text-color-tertiary;
font-size: 14px;
}
@@ -59,13 +105,4 @@
color: #808080;
font-size: 13px;
}
-
- &:hover {
- border-color: @primary-color;
- box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.1);
- }
-
- &:hover &__name {
- color: @primary-color;
- }
}
diff --git a/react-ui/src/pages/CodeConfig/components/CodeConfigItem/index.tsx b/react-ui/src/pages/CodeConfig/components/CodeConfigItem/index.tsx
index fe062bac..de903f47 100644
--- a/react-ui/src/pages/CodeConfig/components/CodeConfigItem/index.tsx
+++ b/react-ui/src/pages/CodeConfig/components/CodeConfigItem/index.tsx
@@ -19,6 +19,11 @@ function CodeConfigItem({ item, onClick, onEdit, onRemove }: CodeConfigItemProps
return (
onClick?.(item)}>
+
-
- {item.git_url}
-
-
{item.git_branch}
+
+
+ {item.git_url}
+
+
{item.git_branch}
+
{
+ const handleTableChange: TableProps['onChange'] = (
+ pagination,
+ _filters,
+ _sorter,
+ { action },
+ ) => {
if (action === 'paginate') {
setPagination(pagination);
}
diff --git a/react-ui/src/pages/Experiment/components/ExperimentInstance/index.less b/react-ui/src/pages/Experiment/components/ExperimentInstance/index.less
index 56aa07e2..31df6572 100644
--- a/react-ui/src/pages/Experiment/components/ExperimentInstance/index.less
+++ b/react-ui/src/pages/Experiment/components/ExperimentInstance/index.less
@@ -4,7 +4,7 @@
width: 100%;
padding: 0 0 0 33px;
color: @text-color;
- font-size: 15px;
+ font-size: 14px;
& > div {
padding: 0 16px;
diff --git a/react-ui/src/pages/Experiment/components/ExperimentInstance/index.tsx b/react-ui/src/pages/Experiment/components/ExperimentInstance/index.tsx
index 04508fb7..754034aa 100644
--- a/react-ui/src/pages/Experiment/components/ExperimentInstance/index.tsx
+++ b/react-ui/src/pages/Experiment/components/ExperimentInstance/index.tsx
@@ -129,7 +129,8 @@ function ExperimentInstanceComponent({
{selectedIns.length > 0 && (
}
diff --git a/react-ui/src/pages/Experiment/components/TensorBoardStatus/index.less b/react-ui/src/pages/Experiment/components/TensorBoardStatus/index.less
index 579fa7c3..1eec1b1a 100644
--- a/react-ui/src/pages/Experiment/components/TensorBoardStatus/index.less
+++ b/react-ui/src/pages/Experiment/components/TensorBoardStatus/index.less
@@ -5,7 +5,7 @@
&__label {
color: rgba(29, 29, 32, 0.75);
- font-size: 15px;
+ font-size: 14px;
&--running {
color: @success-color;
diff --git a/react-ui/src/pages/Mirror/Info/index.tsx b/react-ui/src/pages/Mirror/Info/index.tsx
index a4100dbb..96425f81 100644
--- a/react-ui/src/pages/Mirror/Info/index.tsx
+++ b/react-ui/src/pages/Mirror/Info/index.tsx
@@ -124,7 +124,12 @@ function MirrorInfo() {
};
// 分页切换
- const handleTableChange: TableProps['onChange'] = (pagination, filters, sorter, { action }) => {
+ const handleTableChange: TableProps['onChange'] = (
+ pagination,
+ _filters,
+ _sorter,
+ { action },
+ ) => {
if (action === 'paginate') {
setPagination(pagination);
}
diff --git a/react-ui/src/pages/Mirror/List/index.tsx b/react-ui/src/pages/Mirror/List/index.tsx
index 0aee1808..76f289b7 100644
--- a/react-ui/src/pages/Mirror/List/index.tsx
+++ b/react-ui/src/pages/Mirror/List/index.tsx
@@ -155,7 +155,12 @@ function MirrorList() {
};
// 分页切换
- const handleTableChange: TableProps['onChange'] = (pagination, filters, sorter, { action }) => {
+ const handleTableChange: TableProps['onChange'] = (
+ pagination,
+ _filters,
+ _sorter,
+ { action },
+ ) => {
if (action === 'paginate') {
setPagination(pagination);
}
diff --git a/react-ui/src/pages/ModelDeployment/List/index.tsx b/react-ui/src/pages/ModelDeployment/List/index.tsx
index 7f73322d..21e9b514 100644
--- a/react-ui/src/pages/ModelDeployment/List/index.tsx
+++ b/react-ui/src/pages/ModelDeployment/List/index.tsx
@@ -176,7 +176,12 @@ function ModelDeployment() {
};
// 分页切换
- const handleTableChange: TableProps['onChange'] = (pagination, _filters, _sorter, { action }) => {
+ const handleTableChange: TableProps['onChange'] = (
+ pagination,
+ _filters,
+ _sorter,
+ { action },
+ ) => {
if (action === 'paginate') {
setPagination(pagination);
}
diff --git a/react-ui/src/pages/ModelDeployment/components/VersionCompareModal/index.tsx b/react-ui/src/pages/ModelDeployment/components/VersionCompareModal/index.tsx
index be28ba3b..1e755765 100644
--- a/react-ui/src/pages/ModelDeployment/components/VersionCompareModal/index.tsx
+++ b/react-ui/src/pages/ModelDeployment/components/VersionCompareModal/index.tsx
@@ -164,7 +164,9 @@ function VersionCompareModal({ version1, version2, ...rest }: CreateMirrorModalP
[styles['version-compare__left__text--different']]: isDifferent(key),
})}
>
- {text}
+
+ {text}
+
);
})}
@@ -180,7 +182,9 @@ function VersionCompareModal({ version1, version2, ...rest }: CreateMirrorModalP
[styles['version-compare__right__text--different']]: isDifferent(key),
})}
>
- {text}
+
+ {text}
+
);
})}
diff --git a/react-ui/src/pages/Pipeline/components/CodeSelectorModal/index.less b/react-ui/src/pages/Pipeline/components/CodeSelectorModal/index.less
index 3dd58383..cb77da6d 100644
--- a/react-ui/src/pages/Pipeline/components/CodeSelectorModal/index.less
+++ b/react-ui/src/pages/Pipeline/components/CodeSelectorModal/index.less
@@ -20,10 +20,6 @@
}
}
- .ant-pagination {
- text-align: center;
- }
-
.ant-input-group-addon {
display: none;
}
diff --git a/react-ui/src/pages/Pipeline/components/CodeSelectorModal/index.tsx b/react-ui/src/pages/Pipeline/components/CodeSelectorModal/index.tsx
index 6a42535c..24a54293 100644
--- a/react-ui/src/pages/Pipeline/components/CodeSelectorModal/index.tsx
+++ b/react-ui/src/pages/Pipeline/components/CodeSelectorModal/index.tsx
@@ -97,6 +97,7 @@ function CodeSelectorModal({ onOk, ...rest }: CodeSelectorModalProps) {
))}