|
@@ -14,6 +14,7 @@ const columns: Column[] = [{
|
|
|
type: input,
|
|
|
},
|
|
|
search: true,
|
|
|
+ width: 200,
|
|
|
}, {
|
|
|
title: () => $gettext('URL'),
|
|
|
dataIndex: 'url',
|
|
@@ -25,10 +26,12 @@ const columns: Column[] = [{
|
|
|
placeholder: () => 'https://10.0.0.1:9000',
|
|
|
},
|
|
|
},
|
|
|
+ width: 300,
|
|
|
}, {
|
|
|
title: () => $gettext('Version'),
|
|
|
dataIndex: 'version',
|
|
|
pithy: true,
|
|
|
+ width: 150,
|
|
|
}, {
|
|
|
title: () => 'NodeSecret',
|
|
|
dataIndex: 'token',
|
|
@@ -37,41 +40,7 @@ const columns: Column[] = [{
|
|
|
edit: {
|
|
|
type: input,
|
|
|
},
|
|
|
-},
|
|
|
-
|
|
|
-// {
|
|
|
-// title: () => $gettext('OperationSync'),
|
|
|
-// dataIndex: 'operation_sync',
|
|
|
-// sorter: true,
|
|
|
-// pithy: true,
|
|
|
-// edit: {
|
|
|
-// type: antSwitch
|
|
|
-// },
|
|
|
-// extra: $gettext('Whether config api regex that will redo on this environment'),
|
|
|
-// customRender: (args: customRender) => {
|
|
|
-// const {operation_sync} = args.record
|
|
|
-// if (operation_sync) {
|
|
|
-// return h(Tag, {color: 'success'}, {default: ()=> h('span', $gettext('Yes'))})
|
|
|
-// } else {
|
|
|
-// return h(Tag, {color: 'default'}, {default: ()=> h('span', $gettext('No'))})
|
|
|
-// }
|
|
|
-// },
|
|
|
-// }, {
|
|
|
-// title: () => $gettext('SyncApiRegex'),
|
|
|
-// dataIndex: 'sync_api_regex',
|
|
|
-// sorter: true,
|
|
|
-// pithy: true,
|
|
|
-// display: false,
|
|
|
-// edit: {
|
|
|
-// type: textarea,
|
|
|
-// show: (data) => {
|
|
|
-// const {operation_sync} = data
|
|
|
-// return operation_sync
|
|
|
-// }
|
|
|
-// },
|
|
|
-// extra: $gettext('Such as Reload and Configs, regex can configure as `/api/nginx/reload|/api/nginx/test|/api/config/.+`, please see system api'),
|
|
|
-// },
|
|
|
-{
|
|
|
+}, {
|
|
|
title: () => $gettext('Status'),
|
|
|
dataIndex: 'status',
|
|
|
customRender: (args: CustomRender) => {
|
|
@@ -96,6 +65,7 @@ const columns: Column[] = [{
|
|
|
},
|
|
|
sorter: true,
|
|
|
pithy: true,
|
|
|
+ width: 200,
|
|
|
}, {
|
|
|
title: () => $gettext('Enabled'),
|
|
|
dataIndex: 'enabled',
|
|
@@ -115,15 +85,19 @@ const columns: Column[] = [{
|
|
|
},
|
|
|
sorter: true,
|
|
|
pithy: true,
|
|
|
+ width: 150,
|
|
|
}, {
|
|
|
title: () => $gettext('Updated at'),
|
|
|
dataIndex: 'updated_at',
|
|
|
customRender: datetime,
|
|
|
sorter: true,
|
|
|
pithy: true,
|
|
|
+ width: 150,
|
|
|
}, {
|
|
|
title: () => $gettext('Action'),
|
|
|
dataIndex: 'action',
|
|
|
+ fixed: 'right',
|
|
|
+ width: 200,
|
|
|
}]
|
|
|
|
|
|
export default columns
|