diff --git a/app/config/locale/en-US.json b/app/config/locale/en-US.json
index 804aceaa..2a2e10d3 100644
--- a/app/config/locale/en-US.json
+++ b/app/config/locale/en-US.json
@@ -413,6 +413,7 @@
"link": {
"nGQLHref": "https://docs.nebula-graph.io/3.0.0/3.ngql-guide/1.nGQL-overview/1.overview/",
"mannualHref": "https://docs.nebula-graph.io/3.0.0/nebula-studio/about-studio/st-ug-what-is-graph-studio/",
- "startStudioHref": "https://docs.nebula-graph.io/3.0.0/nebula-studio/quick-start/st-ug-plan-schema/"
+ "startStudioHref": "https://docs.nebula-graph.io/3.0.0/nebula-studio/quick-start/st-ug-plan-schema/",
+ "versionLogHref": "https://docs.nebula-graph.io/3.0.0/nebula-studio/about-studio/st-ug-release-note/"
}
}
diff --git a/app/config/locale/zh-CN.json b/app/config/locale/zh-CN.json
index c635426c..aef52601 100644
--- a/app/config/locale/zh-CN.json
+++ b/app/config/locale/zh-CN.json
@@ -409,6 +409,7 @@
"link": {
"nGQLHref": "https://docs.nebula-graph.com.cn/3.0.0/3.ngql-guide/1.nGQL-overview/1.overview/",
"mannualHref": "https://docs.nebula-graph.com.cn/3.0.0/nebula-studio/about-studio/st-ug-what-is-graph-studio/",
- "startStudioHref": "https://docs.nebula-graph.com.cn/3.0.0/nebula-studio/quick-start/st-ug-plan-schema/"
+ "startStudioHref": "https://docs.nebula-graph.com.cn/3.0.0/nebula-studio/quick-start/st-ug-plan-schema/",
+ "versionLogHref": "https://docs.nebula-graph.com.cn/3.0.0/nebula-studio/about-studio/st-ug-release-note/"
}
}
\ No newline at end of file
diff --git a/app/config/rules.ts b/app/config/rules.ts
index 06b3f2d1..aa10fabb 100644
--- a/app/config/rules.ts
+++ b/app/config/rules.ts
@@ -1,4 +1,4 @@
-import { NAME_REGEX, POSITIVE_INTEGER_REGEX } from '@app/utils/constant';
+import { POSITIVE_INTEGER_REGEX } from '@app/utils/constant';
export const hostRulesFn = intl => [
{
@@ -37,10 +37,6 @@ export const nameRulesFn = intl => [
required: true,
message: intl.get('formRules.nameRequired'),
},
- {
- pattern: NAME_REGEX,
- message: intl.get('formRules.nameValidate'),
- },
];
export const numberRulesFn = intl => [
diff --git a/app/config/service.ts b/app/config/service.ts
index d6e6ccb1..efb50873 100644
--- a/app/config/service.ts
+++ b/app/config/service.ts
@@ -24,7 +24,6 @@ const deteleFile = params => {
return _delete(`/api/files/${filename}`)();
};
const getFiles = get('/api/files');
-const getAppInfo = get('/api/app');
const uploadFiles = (params?, config?) =>
put('/api/files')(params, {
...config,
@@ -46,6 +45,5 @@ export default {
getTaskDir,
deteleFile,
getFiles,
- getAppInfo,
uploadFiles,
};
diff --git a/app/pages/MainPage/routes.tsx b/app/pages/MainPage/routes.tsx
index 69a719ba..c84e70d2 100644
--- a/app/pages/MainPage/routes.tsx
+++ b/app/pages/MainPage/routes.tsx
@@ -26,7 +26,7 @@ export const RoutesList = [
exact: true,
},
{
- path: '/schema/:space/:type?/:action?/:module?',
+ path: '/schema/:type?/:action?/:module?',
component: SchemaConfig,
},
{
diff --git a/app/pages/Schema/SchemaConfig/Create/CommonCreate/PropertiesForm.tsx b/app/pages/Schema/SchemaConfig/Create/CommonCreate/PropertiesForm.tsx
index f5909942..9d978b33 100644
--- a/app/pages/Schema/SchemaConfig/Create/CommonCreate/PropertiesForm.tsx
+++ b/app/pages/Schema/SchemaConfig/Create/CommonCreate/PropertiesForm.tsx
@@ -9,6 +9,7 @@ import { DATA_TYPE, EXPLAIN_DATA_TYPE } from '@app/utils/constant';
const Option = Select.Option;
import './index.less';
+import { cloneDeep } from 'lodash';
const itemLayout = {
@@ -18,14 +19,16 @@ const itemLayout = {
};
interface IProps {
- formRef: FormInstance
+ formRef: FormInstance;
+ onUpdate: () => void;
}
const PropertiesForm = (props: IProps) => {
- const { formRef } = props;
+ const { formRef, onUpdate } = props;
const handleClearProperties = e => {
if(!e.target.checked) {
formRef.resetFields(['properties', []]);
+ setTimeout(onUpdate, 300);
}
};
const handlePropertyAdd = callback => {
@@ -60,6 +63,13 @@ const PropertiesForm = (props: IProps) => {
}
callback(rowIndex);
};
+
+ const handleResetValue = (index) => {
+ const properties = formRef.getFieldValue('properties');
+ const _properties = [...properties];
+ _properties[index].value = '';
+ formRef.setFieldsValue({ 'properties': _properties });
+ };
return (
@@ -121,7 +131,7 @@ const PropertiesForm = (props: IProps) => {
message: intl.get('formRules.dataTypeRequired'),
},
]}>
-