Unverified Commit aafd96f4 authored by zhu-mingye's avatar zhu-mingye Committed by GitHub

[Refactor][web] system settings web (#2008)

parent c48fe09a
...@@ -219,17 +219,18 @@ export default [ ...@@ -219,17 +219,18 @@ export default [
routes: [ routes: [
{ {
path: '/settings', path: '/settings',
redirect: '/settings/flinksetting', redirect: '/settings/globalsetting',
}, },
{ {
path: '/settings/flinksetting', path: '/settings/globalsetting',
name: 'flinksetting', name: 'globalsetting',
icon: 'SettingOutlined', icon: 'SettingOutlined',
// component: './SettingCenter/FlinkSettings', component: './SettingCenter/GlobalSetting',
footerRender: false,
}, },
{ {
path: '/settings/system', path: '/settings/systemlog',
name: 'system', name: 'systemlog',
icon: 'InfoCircleOutlined', icon: 'InfoCircleOutlined',
component: './SettingCenter/SystemInfo', component: './SettingCenter/SystemInfo',
}, },
......
...@@ -24,7 +24,7 @@ const Footer: React.FC = () => { ...@@ -24,7 +24,7 @@ const Footer: React.FC = () => {
const currentYear = new Date().getFullYear(); const currentYear = new Date().getFullYear();
return ( return (
<DefaultFooter <DefaultFooter
style={{background: 'none'}} style={{background: 'none', bottom: 0 }}
copyright={`${currentYear} ` + l('app.copyright.produced')} copyright={`${currentYear} ` + l('app.copyright.produced')}
links={[ links={[
{ {
......
...@@ -15,22 +15,22 @@ ...@@ -15,22 +15,22 @@
* limitations under the License. * limitations under the License.
*/ */
import React from "react"; import React from 'react';
import Icon, {DeleteTwoTone} from "@ant-design/icons"; import Icon, {DeleteTwoTone} from '@ant-design/icons';
const IconStyle = { const IconStyle = {
height: "16px", height: '16px',
width: "16px", width: '16px',
}; };
/** /**
* This is a custom icon that is used to indicate a dangerous action.{@link DeleteTwoTone} * This is a custom icon that is used to indicate a dangerous action.{@link DeleteTwoTone}
* @constructor * @constructor
*/ */
export const DangerDeleteIcon = () => { export const DangerDeleteIcon = (props: any) => {
return <> return <>
<DeleteTwoTone twoToneColor={"red"}/> <DeleteTwoTone {...props} twoToneColor={'red'}/>
</>; </>;
}; };
...@@ -39,9 +39,9 @@ export const DangerDeleteIcon = () => { ...@@ -39,9 +39,9 @@ export const DangerDeleteIcon = () => {
* This is a custom icon that is used to indicate a show log action. * This is a custom icon that is used to indicate a show log action.
* @constructor * @constructor
*/ */
export const ShowLogIcon = () => { export const ShowLogIcon = (props: any) => {
return <> return <>
<Icon style={{...IconStyle}} component={() => ( <Icon {...props} style={{...IconStyle}} component={() => (
<svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"> <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg">
<path <path
d="M426.666667 834.133333c0-10.666667-8.533333-21.333333-21.333334-21.333333l-149.333333-2.133333c-23.466667 0-42.666667-19.2-42.666667-42.666667V256c0-23.466667 19.2-42.666667 42.666667-42.666667h426.666667c23.466667 0 42.666667 19.2 42.666666 42.666667v149.333333c0 12.8 8.533333 21.333333 21.333334 21.333334h42.666666c12.8 0 21.333333-8.533333 21.333334-21.333334v-192c0-46.933333-38.4-85.333333-85.333334-85.333333H213.333333c-46.933333 0-85.333333 38.4-85.333333 85.333333v597.333334c0 46.933333 38.4 85.333333 85.333333 85.333333h192c12.8 0 21.333333-10.666667 21.333334-21.333333v-40.533334z" d="M426.666667 834.133333c0-10.666667-8.533333-21.333333-21.333334-21.333333l-149.333333-2.133333c-23.466667 0-42.666667-19.2-42.666667-42.666667V256c0-23.466667 19.2-42.666667 42.666667-42.666667h426.666667c23.466667 0 42.666667 19.2 42.666666 42.666667v149.333333c0 12.8 8.533333 21.333333 21.333334 21.333334h42.666666c12.8 0 21.333333-8.533333 21.333334-21.333334v-192c0-46.933333-38.4-85.333333-85.333334-85.333333H213.333333c-46.933333 0-85.333333 38.4-85.333333 85.333333v597.333334c0 46.933333 38.4 85.333333 85.333333 85.333333h192c12.8 0 21.333333-10.666667 21.333334-21.333333v-40.533334z"
...@@ -61,9 +61,9 @@ export const ShowLogIcon = () => { ...@@ -61,9 +61,9 @@ export const ShowLogIcon = () => {
* This is a custom icon that is used to indicate a show code tree action. * This is a custom icon that is used to indicate a show code tree action.
* @constructor * @constructor
*/ */
export const ShowCodeTreeIcon = () => { export const ShowCodeTreeIcon = (props: any) => {
return <> return <>
<Icon style={{...IconStyle}} component={() => ( <Icon {...props} style={{...IconStyle}} component={() => (
<svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"> <svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg">
<path <path
d="M432.6912 784.6912h-199.68c-33.8944 0-61.44-25.6-61.44-57.088v-74.752a20.48 20.48 0 1 1 40.96 0v74.752c0 6.3488 8.7552 13.5168 20.48 13.5168h199.68a21.8112 21.8112 0 0 1 0 43.5712zM599.4496 784.6912h-61.44a21.8112 21.8112 0 0 1 0-43.5712h61.44a21.8112 21.8112 0 0 1 0 43.5712zM865.28 784.6912h-186.88a21.8112 21.8112 0 0 1 0-43.5712H865.28c11.6736 0 20.48-7.168 20.48-13.5168V180.4288c0-6.3488-8.7552-13.5168-20.48-13.5168H232.8576c-11.6736 0-20.48 7.168-20.48 13.5168v75.9296a20.48 20.48 0 1 1-40.96 0V180.4288c0-31.488 27.4432-57.088 61.184-57.088H865.28c33.792 0 61.44 25.6 61.44 57.088v547.1744c0 31.488-27.4432 57.088-61.44 57.088z" d="M432.6912 784.6912h-199.68c-33.8944 0-61.44-25.6-61.44-57.088v-74.752a20.48 20.48 0 1 1 40.96 0v74.752c0 6.3488 8.7552 13.5168 20.48 13.5168h199.68a21.8112 21.8112 0 0 1 0 43.5712zM599.4496 784.6912h-61.44a21.8112 21.8112 0 0 1 0-43.5712h61.44a21.8112 21.8112 0 0 1 0 43.5712zM865.28 784.6912h-186.88a21.8112 21.8112 0 0 1 0-43.5712H865.28c11.6736 0 20.48-7.168 20.48-13.5168V180.4288c0-6.3488-8.7552-13.5168-20.48-13.5168H232.8576c-11.6736 0-20.48 7.168-20.48 13.5168v75.9296a20.48 20.48 0 1 1-40.96 0V180.4288c0-31.488 27.4432-57.088 61.184-57.088H865.28c33.792 0 61.44 25.6 61.44 57.088v547.1744c0 31.488-27.4432 57.088-61.44 57.088z"
...@@ -88,19 +88,35 @@ export const ShowCodeTreeIcon = () => { ...@@ -88,19 +88,35 @@ export const ShowCodeTreeIcon = () => {
</>; </>;
}; };
export const WebIcon = () => { export const WebIcon = (props: any) => {
return <> return <>
<Icon style={{...IconStyle}} component={() => ( <Icon {...props} style={{...IconStyle}} component={() => (
<svg className="icon" viewBox="0 0 1024 1024" version="1.1" <svg className="icon" viewBox="0 0 1024 1024" version="1.1"
xmlns="http://www.w3.org/2000/svg" > xmlns="http://www.w3.org/2000/svg">
<path <path
d="M221.866667 405.333333c-14.933333 36.266667-23.466667 76.8-23.466667 117.333334 0 34.133333 6.4 68.266667 17.066667 98.133333 19.2-32 44.8-68.266667 76.8-106.666667-4.266667-8.533333-8.533333-19.2-8.533334-29.866666 0-8.533333 2.133333-14.933333 4.266667-21.333334-29.866667-21.333333-51.2-40.533333-66.133333-57.6zM332.8 778.666667c10.666667-8.533333 19.2-17.066667 29.866667-23.466667 87.466667-66.133333 166.4-104.533333 228.266666-125.866667 0-4.266667-2.133333-8.533333-2.133333-12.8v-6.4c-21.333333-6.4-44.8-12.8-66.133333-21.333333-55.466667-19.2-102.4-42.666667-142.933334-64-10.666667 10.666667-25.6 17.066667-40.533333 17.066667-8.533333 0-14.933333-2.133333-21.333333-4.266667-40.533333 46.933333-68.266667 91.733333-87.466667 125.866667 25.6 46.933333 59.733333 85.333333 102.4 115.2zM535.466667 556.8c23.466667 8.533333 46.933333 14.933333 70.4 21.333333 6.4-6.4 12.8-10.666667 19.2-12.8-6.4-23.466667-14.933333-46.933333-25.6-70.4-14.933333-34.133333-32-66.133333-49.066667-93.866666-6.4 2.133333-10.666667 2.133333-17.066667 2.133333-12.8 0-25.6-4.266667-36.266666-12.8-23.466667 14.933333-46.933333 29.866667-72.533334 49.066667l-32 25.6c2.133333 6.4 4.266667 14.933333 4.266667 21.333333v8.533333c38.4 19.2 85.333333 42.666667 138.666667 61.866667zM834.133333 522.666667c0-89.6-38.4-172.8-102.4-228.266667-32 6.4-81.066667 19.2-140.8 44.8v6.4c0 12.8-4.266667 23.466667-10.666666 34.133333 19.2 29.866667 36.266667 64 53.333333 102.4 10.666667 27.733333 21.333333 55.466667 29.866667 81.066667 17.066667 4.266667 32 17.066667 40.533333 34.133333 12.8 2.133333 25.6 2.133333 38.4 2.133334 32 2.133333 61.866667 0 85.333333 0 2.133333-27.733333 6.4-51.2 6.4-76.8zM516.266667 290.133333c6.4-2.133333 10.666667-2.133333 17.066666-2.133333 17.066667 0 32 6.4 42.666667 19.2 46.933333-21.333333 87.466667-34.133333 119.466667-42.666667-51.2-34.133333-113.066667-55.466667-179.2-55.466666-23.466667 0-49.066667 2.133333-70.4 8.533333 19.2 19.2 44.8 42.666667 70.4 72.533333zM661.333333 800c2.133333-32 0-74.666667-10.666666-128h-4.266667c-14.933333 0-27.733333-4.266667-36.266667-12.8-59.733333 21.333333-138.666667 57.6-224 123.733333-6.4 4.266667-12.8 10.666667-21.333333 14.933334 44.8 23.466667 96 36.266667 149.333333 36.266666 53.333333 2.133333 104.533333-10.666667 147.2-34.133333zM238.933333 371.2c14.933333 17.066667 38.4 40.533333 72.533334 66.133333 8.533333-4.266667 19.2-8.533333 29.866666-8.533333 10.666667 0 21.333333 2.133333 29.866667 8.533333l32-25.6c25.6-19.2 51.2-36.266667 74.666667-51.2-2.133333-4.266667-2.133333-8.533333-2.133334-14.933333 0-12.8 4.266667-23.466667 10.666667-34.133333-32-36.266667-59.733333-64-83.2-81.066667-70.4 25.6-128 76.8-164.266667 140.8zM733.866667 633.6c-6.4 0-17.066667 0-32 4.266667-4.266667 8.533333-8.533333 14.933333-14.933334 21.333333 8.533333 46.933333 12.8 87.466667 12.8 119.466667 51.2-36.266667 91.733333-85.333333 115.2-145.066667h-81.066666z" d="M221.866667 405.333333c-14.933333 36.266667-23.466667 76.8-23.466667 117.333334 0 34.133333 6.4 68.266667 17.066667 98.133333 19.2-32 44.8-68.266667 76.8-106.666667-4.266667-8.533333-8.533333-19.2-8.533334-29.866666 0-8.533333 2.133333-14.933333 4.266667-21.333334-29.866667-21.333333-51.2-40.533333-66.133333-57.6zM332.8 778.666667c10.666667-8.533333 19.2-17.066667 29.866667-23.466667 87.466667-66.133333 166.4-104.533333 228.266666-125.866667 0-4.266667-2.133333-8.533333-2.133333-12.8v-6.4c-21.333333-6.4-44.8-12.8-66.133333-21.333333-55.466667-19.2-102.4-42.666667-142.933334-64-10.666667 10.666667-25.6 17.066667-40.533333 17.066667-8.533333 0-14.933333-2.133333-21.333333-4.266667-40.533333 46.933333-68.266667 91.733333-87.466667 125.866667 25.6 46.933333 59.733333 85.333333 102.4 115.2zM535.466667 556.8c23.466667 8.533333 46.933333 14.933333 70.4 21.333333 6.4-6.4 12.8-10.666667 19.2-12.8-6.4-23.466667-14.933333-46.933333-25.6-70.4-14.933333-34.133333-32-66.133333-49.066667-93.866666-6.4 2.133333-10.666667 2.133333-17.066667 2.133333-12.8 0-25.6-4.266667-36.266666-12.8-23.466667 14.933333-46.933333 29.866667-72.533334 49.066667l-32 25.6c2.133333 6.4 4.266667 14.933333 4.266667 21.333333v8.533333c38.4 19.2 85.333333 42.666667 138.666667 61.866667zM834.133333 522.666667c0-89.6-38.4-172.8-102.4-228.266667-32 6.4-81.066667 19.2-140.8 44.8v6.4c0 12.8-4.266667 23.466667-10.666666 34.133333 19.2 29.866667 36.266667 64 53.333333 102.4 10.666667 27.733333 21.333333 55.466667 29.866667 81.066667 17.066667 4.266667 32 17.066667 40.533333 34.133333 12.8 2.133333 25.6 2.133333 38.4 2.133334 32 2.133333 61.866667 0 85.333333 0 2.133333-27.733333 6.4-51.2 6.4-76.8zM516.266667 290.133333c6.4-2.133333 10.666667-2.133333 17.066666-2.133333 17.066667 0 32 6.4 42.666667 19.2 46.933333-21.333333 87.466667-34.133333 119.466667-42.666667-51.2-34.133333-113.066667-55.466667-179.2-55.466666-23.466667 0-49.066667 2.133333-70.4 8.533333 19.2 19.2 44.8 42.666667 70.4 72.533333zM661.333333 800c2.133333-32 0-74.666667-10.666666-128h-4.266667c-14.933333 0-27.733333-4.266667-36.266667-12.8-59.733333 21.333333-138.666667 57.6-224 123.733333-6.4 4.266667-12.8 10.666667-21.333333 14.933334 44.8 23.466667 96 36.266667 149.333333 36.266666 53.333333 2.133333 104.533333-10.666667 147.2-34.133333zM238.933333 371.2c14.933333 17.066667 38.4 40.533333 72.533334 66.133333 8.533333-4.266667 19.2-8.533333 29.866666-8.533333 10.666667 0 21.333333 2.133333 29.866667 8.533333l32-25.6c25.6-19.2 51.2-36.266667 74.666667-51.2-2.133333-4.266667-2.133333-8.533333-2.133334-14.933333 0-12.8 4.266667-23.466667 10.666667-34.133333-32-36.266667-59.733333-64-83.2-81.066667-70.4 25.6-128 76.8-164.266667 140.8zM733.866667 633.6c-6.4 0-17.066667 0-32 4.266667-4.266667 8.533333-8.533333 14.933333-14.933334 21.333333 8.533333 46.933333 12.8 87.466667 12.8 119.466667 51.2-36.266667 91.733333-85.333333 115.2-145.066667h-81.066666z"
fill="#00C1DE"></path> fill="#00C1DE"></path>
<path <path
d="M661.333333 87.466667C652.8 61.866667 629.333333 42.666667 599.466667 42.666667c-34.133333 0-64 27.733333-64 61.866666s27.733333 61.866667 64 61.866667c17.066667 0 34.133333-6.4 44.8-19.2C804.266667 202.666667 917.333333 349.866667 917.333333 522.666667c0 42.666667-6.4 83.2-19.2 121.6l55.466667 32c17.066667-46.933333 27.733333-100.266667 27.733333-153.6C981.333333 320 846.933333 147.2 661.333333 87.466667zM842.666667 740.266667c-34.133333 0-64 27.733333-64 61.866666 0 6.4 2.133333 10.666667 2.133333 17.066667-70.4 61.866667-164.266667 100.266667-266.666667 100.266667-117.333333 0-224-51.2-298.666666-130.133334l-57.6 32c85.333333 98.133333 213.333333 160 354.133333 160 119.466667 0 230.4-44.8 311.466667-119.466666 4.266667 2.133333 8.533333 2.133333 14.933333 2.133333 34.133333 0 64-27.733333 64-61.866667s-25.6-61.866667-59.733333-61.866666zM121.6 599.466667c-4.266667-25.6-8.533333-49.066667-8.533333-76.8 0-189.866667 136.533333-347.733333 317.866666-386.133334v-64C213.333333 110.933333 49.066667 298.666667 49.066667 522.666667c0 32 4.266667 64 10.666666 93.866666-10.666667 10.666667-17.066667 25.6-17.066666 42.666667 0 34.133333 27.733333 61.866667 64 61.866667 34.133333 0 64-27.733333 64-61.866667 0-29.866667-21.333333-53.333333-49.066667-59.733333z" d="M661.333333 87.466667C652.8 61.866667 629.333333 42.666667 599.466667 42.666667c-34.133333 0-64 27.733333-64 61.866666s27.733333 61.866667 64 61.866667c17.066667 0 34.133333-6.4 44.8-19.2C804.266667 202.666667 917.333333 349.866667 917.333333 522.666667c0 42.666667-6.4 83.2-19.2 121.6l55.466667 32c17.066667-46.933333 27.733333-100.266667 27.733333-153.6C981.333333 320 846.933333 147.2 661.333333 87.466667zM842.666667 740.266667c-34.133333 0-64 27.733333-64 61.866666 0 6.4 2.133333 10.666667 2.133333 17.066667-70.4 61.866667-164.266667 100.266667-266.666667 100.266667-117.333333 0-224-51.2-298.666666-130.133334l-57.6 32c85.333333 98.133333 213.333333 160 354.133333 160 119.466667 0 230.4-44.8 311.466667-119.466666 4.266667 2.133333 8.533333 2.133333 14.933333 2.133333 34.133333 0 64-27.733333 64-61.866667s-25.6-61.866667-59.733333-61.866666zM121.6 599.466667c-4.266667-25.6-8.533333-49.066667-8.533333-76.8 0-189.866667 136.533333-347.733333 317.866666-386.133334v-64C213.333333 110.933333 49.066667 298.666667 49.066667 522.666667c0 32 4.266667 64 10.666666 93.866666-10.666667 10.666667-17.066667 25.6-17.066666 42.666667 0 34.133333 27.733333 61.866667 64 61.866667 34.133333 0 64-27.733333 64-61.866667 0-29.866667-21.333333-53.333333-49.066667-59.733333z"
fill="#00C1DE" ></path> fill="#00C1DE"></path>
</svg>
)}/>
</>;
};
export const BackIcon = (props: any) => {
return <>
<Icon {...props} style={{...IconStyle}} component={() => (
<svg className="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"
>
<path
d="M710.6 277.1H318.7v-157L0.1 355.5l318.6 235.4v-157h391.9c86.6 0 156.7 70.2 156.7 156.8 0 86.6-70.2 156.8-156.7 156.8h-78.4v156.8h78.4c173.1 0 313.5-140.4 313.5-313.5S883.8 277.1 710.6 277.1z"
fill="#2C66E1"></path>
<path d="M240.4 747.4h78.4v156.8h-78.4z" fill="#8FB3FF"></path>
<path d="M397.1 747.4h156.8v156.8H397.1z" fill="#2C66E1"></path>
</svg> </svg>
)}/> )}/>
</>; </>;
} };
\ No newline at end of file
...@@ -31,6 +31,7 @@ export default { ...@@ -31,6 +31,7 @@ export default {
'button.batchDisable': 'Batch Disable', 'button.batchDisable': 'Batch Disable',
'button.more': 'More', 'button.more': 'More',
'button.config': 'Config', 'button.config': 'Config',
'button.modify': 'Modify',
'button.edit': 'Edit', 'button.edit': 'Edit',
'button.start': 'Start', 'button.start': 'Start',
'button.stop': 'Stop', 'button.stop': 'Stop',
......
...@@ -59,8 +59,8 @@ export default { ...@@ -59,8 +59,8 @@ export default {
'menu.auth.namespace': 'NameSpace', 'menu.auth.namespace': 'NameSpace',
'menu.auth.tenant': 'Tenant', 'menu.auth.tenant': 'Tenant',
'menu.settings': 'Setting Center', 'menu.settings': 'Setting Center',
'menu.settings.flinksetting': 'Flink Settings', 'menu.settings.globalsetting': 'Global Settings',
'menu.settings.system': 'System Info', 'menu.settings.systemlog': 'System Log',
'menu.settings.process': 'Process List', 'menu.settings.process': 'Process List',
'menu.settings.services': 'Servers List', 'menu.settings.services': 'Servers List',
'menu.metrics': 'Dashboard', 'menu.metrics': 'Dashboard',
......
...@@ -464,6 +464,46 @@ export default { ...@@ -464,6 +464,46 @@ export default {
//-------------------------------- setting center -------------------------------- //-------------------------------- setting center --------------------------------
//setting
'sys.setting.dinky': 'Dinky Env Configuration',
'sys.setting.flink': 'Flink Configuration',
'sys.setting.maven': 'Maven Configuration',
'sys.setting.ds': 'DolphinScheduler Configuration',
'sys.setting.dinky.tooltip': 'Mainly modify system variables to ensure stable operation of basic functions',
'sys.setting.flink.tooltip': 'Dinky docking Flink main parameters',
'sys.setting.maven.tooltip': 'The main parameters of Maven compilation',
'sys.setting.ds.tooltip': 'DolphinScheduler plug-in settings that allow you to push dinky tasks to the DolphinScheduler workflow',
'sys.setting.modify': 'Modify Settings {key}',
'sys.env.settings.pythonHome': 'Python Env variables',
'sys.env.settings.pythonHome.note': 'Python Env variables',
'sys.setting.tag.extend': 'Extended Configuration',
'sys.setting.tag.core': 'Core Configuration',
'sys.setting.tag.integration': 'Integration Configuration',
'sys.setting.tag.system': 'System Configuration',
'sys.env.settings.dinkyAddr': 'Dinky Address',
'sys.env.settings.dinkyAddr.note': 'The address must be the same as the address configured in the Dinky Application background url',
'sys.flink.settings.useRestAPI': 'Use Rest API',
'sys.flink.settings.useRestAPI.note': 'Whether to use RestAPI when operating and maintaining Flink tasks',
'sys.flink.settings.sqlSeparator': 'SQL Separator',
'sys.flink.settings.sqlSeparator.note': 'SQL Separator',
'sys.flink.settings.jobIdWait': 'Job submission waiting time',
'sys.flink.settings.jobIdWait.note': 'Maximum waiting time (seconds) for obtaining Job ID when submitting Application or PerJob tasks',
'sys.maven.settings.settingsFilePath': 'Maven configuration file path',
'sys.maven.settings.settingsFilePath.note': 'Maven configuration file path, eg: /opt/maven/conf/settings.xml , please fill in the full path, including the settings.xml file name',
'sys.maven.settings.repository': 'Maven warehouse address',
'sys.maven.settings.repository.note': 'Maven warehouse address',
'sys.maven.settings.repositoryUser': 'Maven warehouse user name',
'sys.maven.settings.repositoryUser.note': 'Maven private server authentication user name',
'sys.maven.settings.repositoryPassword': 'Maven warehouse password',
'sys.maven.settings.repositoryPassword.note': 'Maven private server authentication password',
'sys.dolphinscheduler.settings.enable': 'Whether to enable',
'sys.dolphinscheduler.settings.enable.note': 'Whether it is enabled or not, the relevant functions of DolphinScheduler can only be used after it is enabled, please ensure that the relevant configuration of DolphinScheduler is correct',
'sys.dolphinscheduler.settings.url': 'DolphinScheduler address',
'sys.dolphinscheduler.settings.url.note': 'The address must be consistent with the address configured in the DolphinScheduler background, eg: http://127.0.0.1:12345/dolphinscheduler',
'sys.dolphinscheduler.settings.token': 'DolphinScheduler Token',
'sys.dolphinscheduler.settings.token.note': 'DolphinScheduler‘s Token, please create a token in DolphinScheduler’s Security Center->Token Management, and fill in the configuration',
'sys.dolphinscheduler.settings.projectName': 'DolphinScheduler project name',
'sys.dolphinscheduler.settings.projectName.note': 'The project name specified in DolphinScheduler, case insensitive',
// process // process
'sys.process.id': 'Process ID', 'sys.process.id': 'Process ID',
'sys.process.name': 'Process Name', 'sys.process.name': 'Process Name',
......
...@@ -31,6 +31,7 @@ export default { ...@@ -31,6 +31,7 @@ export default {
'button.batchDisable': '批量禁用', 'button.batchDisable': '批量禁用',
'button.more': '更多', 'button.more': '更多',
'button.config': '配置', 'button.config': '配置',
'button.modify': '修改',
'button.edit': '编辑', 'button.edit': '编辑',
'button.start': '启动', 'button.start': '启动',
'button.stop': '停止', 'button.stop': '停止',
......
...@@ -59,8 +59,8 @@ export default { ...@@ -59,8 +59,8 @@ export default {
'menu.auth.namespace': '命名空间', 'menu.auth.namespace': '命名空间',
'menu.auth.tenant': '租户', 'menu.auth.tenant': '租户',
'menu.settings': '配置中心', 'menu.settings': '配置中心',
'menu.settings.flinksetting': 'Flink 配置', 'menu.settings.globalsetting': '全局配置',
'menu.settings.system': '系统信息', 'menu.settings.systemlog': '系统日志',
'menu.settings.process': '进程列表', 'menu.settings.process': '进程列表',
'menu.settings.services': '服务器列表', 'menu.settings.services': '服务器列表',
'menu.metrics': '监控', 'menu.metrics': '监控',
......
...@@ -466,6 +466,48 @@ export default { ...@@ -466,6 +466,48 @@ export default {
//-------------------------------- setting center -------------------------------- //-------------------------------- setting center --------------------------------
//setting
'sys.setting.dinky': 'Dinky 环境配置',
'sys.setting.flink': 'Flink 配置',
'sys.setting.maven': 'Maven 配置',
'sys.setting.ds': 'DolphinSchuder 配置',
'sys.setting.dinky.tooltip': '主要以修改系统变量为主,保证基础功能稳定运行',
'sys.setting.flink.tooltip': 'Dinky对接 Flink 主要参数',
'sys.setting.maven.tooltip': 'Maven 编译的主要参数',
'sys.setting.ds.tooltip': '海豚调度插件设置,可以让您把dinky任务丝滑推到海豚调度器工作流上',
'sys.setting.modify': '修改配置 {key}',
'sys.setting.tag.extend': '扩展配置',
'sys.setting.tag.core': '核心配置',
'sys.setting.tag.integration': '集成配置',
'sys.setting.tag.system': '系统配置',
'sys.env.settings.pythonHome': 'Python 环境变量',
'sys.env.settings.pythonHome.note': 'Python 环境变量',
'sys.env.settings.dinkyAddr': 'Dinky 地址',
'sys.env.settings.dinkyAddr.note': '该地址必须与Dinky Application后台url中配置的地址相同',
'sys.flink.settings.useRestAPI': '使用 Rest API',
'sys.flink.settings.useRestAPI.note': '在运维 Flink 任务时是否使用 RestAPI',
'sys.flink.settings.sqlSeparator': 'SQL 分隔符',
'sys.flink.settings.sqlSeparator.note': 'SQL 分隔符',
'sys.flink.settings.jobIdWait': 'Job 提交等待时间',
'sys.flink.settings.jobIdWait.note': '提交 Application 或 PerJob 任务时获取 Job ID 的最大等待时间(秒)',
'sys.maven.settings.settingsFilePath': 'Maven 配置文件路径',
'sys.maven.settings.settingsFilePath.note': 'Maven 配置文件路径, eg: /opt/maven/conf/settings.xml , 请注意填写全路径,包含settings.xml文件名',
'sys.maven.settings.repository': 'Maven 仓库地址',
'sys.maven.settings.repository.note': 'Maven 仓库地址',
'sys.maven.settings.repositoryUser': 'Maven 仓库用户名',
'sys.maven.settings.repositoryUser.note': 'Maven 私服认证用户名',
'sys.maven.settings.repositoryPassword': 'Maven 仓库密码',
'sys.maven.settings.repositoryPassword.note': 'Maven 私服认证密码',
'sys.dolphinscheduler.settings.enable': '是否启用',
'sys.dolphinscheduler.settings.enable.note': '是否启用, 启用后才能使用 DolphinScheduler 的相关功能, 请确保 DolphinScheduler 的相关配置正确',
'sys.dolphinscheduler.settings.url': 'DolphinScheduler 地址',
'sys.dolphinscheduler.settings.url.note': '地址必须和DolphinScheduler后台配置的地址一致,eg: http://127.0.0.1:12345/dolphinscheduler',
'sys.dolphinscheduler.settings.token': 'DolphinScheduler Token',
'sys.dolphinscheduler.settings.token.note': 'DolphinScheduler的Token,请在DolphinScheduler的安全中心->Token管理中创建一个token,并填入该配置中',
'sys.dolphinscheduler.settings.projectName': 'DolphinScheduler 项目名',
'sys.dolphinscheduler.settings.projectName.note': 'DolphinScheduler 中指定的项目名称,不区分大小写',
// process // process
'sys.process.id': '进程ID', 'sys.process.id': '进程ID',
'sys.process.name': '进程名', 'sys.process.name': '进程名',
......
...@@ -63,7 +63,7 @@ const JarList: React.FC<JarListProps> = (props) => { ...@@ -63,7 +63,7 @@ const JarList: React.FC<JarListProps> = (props) => {
tooltip: l("rc.gp.ucl.orderLine.tooltip"), tooltip: l("rc.gp.ucl.orderLine.tooltip"),
copyable: true, copyable: true,
render: (dom:any, record:BuildJarList) => { render: (dom:any, record:BuildJarList) => {
return <Tag color={record.orderLine> 3 ? 'default': 'success'} >{`No.${record.orderLine}`}</Tag> return <Tag style={{marginLeft: 10}} color={record.orderLine> 3 ? 'default': 'success'} >{`No.${record.orderLine}`}</Tag>
} }
}, },
{ {
......
...@@ -31,7 +31,7 @@ import { ...@@ -31,7 +31,7 @@ import {
STATUS_MAPPING, STATUS_MAPPING,
} from "@/services/constants"; } from "@/services/constants";
import {l} from "@/utils/intl"; import {l} from "@/utils/intl";
import {Button, Empty, Popconfirm, Tag} from "antd"; import {Button, Empty, Popconfirm, Tag} from 'antd';
import {BranchesOutlined, BuildTwoTone} from "@ant-design/icons"; import {BranchesOutlined, BuildTwoTone} from "@ant-design/icons";
import { import {
GIT_PROJECT_BUILD_STEP, GIT_PROJECT_BUILD_STEP,
...@@ -41,7 +41,7 @@ import { ...@@ -41,7 +41,7 @@ import {
renderBranchesTagColor renderBranchesTagColor
} from "@/pages/RegCenter/GitProject/constans"; } from "@/pages/RegCenter/GitProject/constans";
import {ShowCodeTreeIcon} from "@/components/Icons/CustomIcons"; import {ShowCodeTreeIcon} from "@/components/Icons/CustomIcons";
import {addOrUpdateData, queryList} from "@/services/api"; import {queryList} from "@/services/api";
import {BuildSteps} from "@/pages/RegCenter/GitProject/components/BuildSteps"; import {BuildSteps} from "@/pages/RegCenter/GitProject/components/BuildSteps";
import {CodeTree} from "@/pages/RegCenter/GitProject/components/CodeTree"; import {CodeTree} from "@/pages/RegCenter/GitProject/components/CodeTree";
import {CreateBtn} from "@/components/CallBackButton/CreateBtn"; import {CreateBtn} from "@/components/CallBackButton/CreateBtn";
...@@ -154,7 +154,7 @@ const ProjectProTable: React.FC = () => { ...@@ -154,7 +154,7 @@ const ProjectProTable: React.FC = () => {
dataIndex: 'id', dataIndex: 'id',
tooltip: l("rc.gp.level.tooltip"), tooltip: l("rc.gp.level.tooltip"),
render: (dom: any,record:GitProject) => { render: (dom: any,record:GitProject) => {
return <Tag color={record.orderLine> 3 ? 'default': 'success'} >{`No.${record.orderLine}`}</Tag> return <Tag style={{marginLeft: 10}} color={record.orderLine> 3 ? 'default': 'success'} >{`No.${record.orderLine}`}</Tag>
}, },
}, },
{ {
...@@ -223,7 +223,7 @@ const ProjectProTable: React.FC = () => { ...@@ -223,7 +223,7 @@ const ProjectProTable: React.FC = () => {
filters: STATUS_MAPPING(), filters: STATUS_MAPPING(),
filterMultiple: false, filterMultiple: false,
valueEnum: STATUS_ENUM(), valueEnum: STATUS_ENUM(),
render: ( _:string, record:GitProject) => { render: ( _:any, record:GitProject) => {
return <EnableSwitchBtn key={`${record.id}_enable`} record={record} return <EnableSwitchBtn key={`${record.id}_enable`} record={record}
onChange={() => handleChangeEnable(record)}/>; onChange={() => handleChangeEnable(record)}/>;
}, },
...@@ -232,7 +232,7 @@ const ProjectProTable: React.FC = () => { ...@@ -232,7 +232,7 @@ const ProjectProTable: React.FC = () => {
title: l("global.table.operate"), title: l("global.table.operate"),
valueType: "option", valueType: "option",
width: "10vw", width: "10vw",
render: (text:string, record:GitProject) => [ render: (text:any, record:GitProject) => [
<ShowLogBtn disabled={record.buildStep === 0} key={`${record.id}_showLog`} onClick={() => handleShowLog(record)}/>, <ShowLogBtn disabled={record.buildStep === 0} key={`${record.id}_showLog`} onClick={() => handleShowLog(record)}/>,
<Button <Button
key={`${record.id}_code`} key={`${record.id}_code`}
......
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import {BaseConfigProperties} from '@/types/SettingCenter/data';
import {ProCard} from '@ant-design/pro-components';
import GeneralConfig from '@/pages/SettingCenter/GlobalSetting/SettingOverView/GeneralConfig';
import {l} from '@/utils/intl';
import {Tag} from 'antd';
import React from 'react';
interface DSConfigProps {
data: BaseConfigProperties[];
onSave: (data: BaseConfigProperties) => void;
}
export const DSConfig = ({data, onSave}: DSConfigProps) => {
const [loading, setLoading] = React.useState(false);
const onSaveHandler = (data: BaseConfigProperties) => {
setLoading(true);
onSave(data);
setTimeout(() => {
setLoading(false);
}, 1000);
};
return <>
<ProCard
title={l('sys.setting.ds')}
tooltip={l('sys.setting.ds.tooltip')}
size="small"
headerBordered ghost collapsible
defaultCollapsed={false}
>
<GeneralConfig
loading={loading}
onSave={onSaveHandler}
tag={<><Tag color={'default'}>{l('sys.setting.tag.integration')}</Tag></>}
data={data}
/>
</ProCard>
</>;
};
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import {BaseConfigProperties} from '@/types/SettingCenter/data';
import {ProCard} from '@ant-design/pro-components';
import GeneralConfig from '@/pages/SettingCenter/GlobalSetting/SettingOverView/GeneralConfig';
import {l} from '@/utils/intl';
import {Tag} from 'antd';
import React from 'react';
interface EnvConfigProps {
data: BaseConfigProperties[];
onSave: (data: BaseConfigProperties) => void;
}
export const EnvConfig = ({data, onSave}: EnvConfigProps) => {
const [loading, setLoading] = React.useState(false);
const onSaveHandler = (data: BaseConfigProperties) => {
setLoading(true);
onSave(data);
setTimeout(() => {
setLoading(false);
}, 1000);
};
return <>
<ProCard
title={l('sys.setting.dinky')}
tooltip={l('sys.setting.dinky.tooltip')}
size="small"
headerBordered collapsible ghost
defaultCollapsed={false}
>
<GeneralConfig
loading={loading}
onSave={onSaveHandler}
tag={<><Tag color={'error'}>{l('sys.setting.tag.system')}</Tag></>}
data={data}
/>
</ProCard>
</>;
};
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import {BaseConfigProperties} from '@/types/SettingCenter/data';
import {ProCard} from '@ant-design/pro-components';
import GeneralConfig from '@/pages/SettingCenter/GlobalSetting/SettingOverView/GeneralConfig';
import {l} from '@/utils/intl';
import {Tag} from 'antd';
import React from 'react';
interface FlinkConfigProps {
data: BaseConfigProperties[];
onSave: (data: BaseConfigProperties) => void;
}
export const FlinkConfig = ({data, onSave}: FlinkConfigProps) => {
const [loading, setLoading] = React.useState(false);
const onSaveHandler = (data: BaseConfigProperties) => {
setLoading(true);
onSave(data);
setTimeout(() => {
setLoading(false);
}, 1000);
};
return <>
<ProCard
title={l('sys.setting.flink')}
tooltip={l('sys.setting.flink.tooltip')}
size="small"
headerBordered collapsible ghost
defaultCollapsed={false}
>
<GeneralConfig
loading={loading}
onSave={onSaveHandler}
tag={<>
<Tag color={'success'}>{l('sys.setting.tag.extend')}</Tag>
<Tag color={'processing'}>{l('sys.setting.tag.core')}</Tag></>}
data={data}
/>
</ProCard>
</>;
};
/*
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
import React, {useRef} from 'react';
import {ProList} from '@ant-design/pro-components';
import {BaseConfigProperties} from '@/types/SettingCenter/data';
import {Descriptions, Input, Space, Switch} from 'antd';
import {l} from '@/utils/intl';
import {SaveTwoTone, SettingTwoTone} from '@ant-design/icons';
import {EditBtn} from '@/components/CallBackButton/EditBtn';
import {SWITCH_OPTIONS} from '@/services/constants';
import {ActionType} from '@ant-design/pro-table';
import {ProListMetas, ProListProps} from '@ant-design/pro-list';
import {BackIcon} from '@/components/Icons/CustomIcons';
type GeneralConfigProps = {
data: BaseConfigProperties[];
tag: React.ReactNode;
onSave: (data: BaseConfigProperties) => void;
loading: boolean;
}
const GeneralConfig: React.FC<GeneralConfigProps> = (props) => {
const {data, tag, onSave: handleSubmit, loading} = props;
const actionRef = useRef<ActionType>();
const handleSave = (data: BaseConfigProperties) => {
handleSubmit(data);
actionRef.current?.reload();
};
/**
* render actions for each entity in the list
* @param action startEditable
* @param entity entity
*/
const renderActions = (action: any, entity: BaseConfigProperties) => {
return entity.frontType === 'boolean' ? [] : [
<EditBtn
key="edit"
onClick={() => {
action.startEditable(entity.key);
}}
/>
];
};
/**
* render title for each entity in the list
* @param entity
*/
const renderTitle = (entity: BaseConfigProperties) => {
return <>
<Descriptions.Item>
{l(`sys.${entity.key}`)}
</Descriptions.Item>
<Space style={{marginLeft: 15}} size={0}>
{tag}
</Space>
</>;
};
/**
* render value for each entity in the list
* @param entity
*/
const renderValue = (entity: BaseConfigProperties) => {
return <>
{
entity.frontType === 'boolean' ?
<Switch
{...SWITCH_OPTIONS()}
style={{width: '4vw'}}
checked={entity.value}
onChange={(checked) => handleSubmit({...entity, value: checked})}
/> :
<Input style={{width: '30vw'}} disabled value={entity.value}/>
}
</>;
};
const metasRestProps: ProListMetas = {
title: {
editable: false,
render: (dom: any, entity: BaseConfigProperties) => renderTitle(entity),
},
avatar: {
editable: false,
render: () => <SettingTwoTone/>,
},
description: {
editable: false,
render: (dom: any, entity: BaseConfigProperties) => <>{l(`sys.${entity.key}.note`)}</>
},
content: {
dataIndex: 'value',
render: (dom: any, entity: BaseConfigProperties) => renderValue(entity),
},
actions: {
render: (text: any, row: BaseConfigProperties, index: number, action: any) => renderActions(action, row),
},
};
/**
* rest props for ProList
*/
const restProps: ProListProps = {
rowKey: 'key',
style: {margin: 0},
loading: loading,
actionRef: actionRef,
size: 'small',
dataSource: data,
showActions: 'hover',
metas: {...metasRestProps},
editable: {
saveText: <><SaveTwoTone title={l('button.save')}/></>,
cancelText: <><BackIcon title={l('button.back')}/></>,
actionRender: (row, config, dom) => row.frontType === 'boolean' ? [] : [dom.save, dom.cancel],
onSave: async (key, record) => handleSave(record),
}
};
/**
* render list
*/
return <>
<ProList<BaseConfigProperties> {...restProps} />
</>;
};
export default GeneralConfig;
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import {BaseConfigProperties} from '@/types/SettingCenter/data';
import {ProCard} from '@ant-design/pro-components';
import GeneralConfig from '@/pages/SettingCenter/GlobalSetting/SettingOverView/GeneralConfig';
import {l} from '@/utils/intl';
import {Tag} from 'antd';
import React from 'react';
interface MavenConfigProps {
data: BaseConfigProperties[];
onSave: (data: BaseConfigProperties) => void;
}
export const MavenConfig = ({data, onSave}: MavenConfigProps) => {
const [loading, setLoading] = React.useState(false);
const onSaveHandler = (data: BaseConfigProperties) => {
setLoading(true);
onSave(data);
setTimeout(() => {
setLoading(false);
}, 1000);
};
return <>
<ProCard
title={l('sys.setting.maven')}
tooltip={l('sys.setting.maven.tooltip')}
size="small"
headerBordered collapsible ghost
defaultCollapsed={false}
>
<GeneralConfig
loading={loading}
onSave={onSaveHandler}
tag={<><Tag color={'default'}>{l('sys.setting.tag.integration')}</Tag></>}
data={data}
/>
</ProCard>
</>;
};
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import React, {memo, useEffect} from 'react';
import {API_CONSTANTS, RESPONSE_CODE} from '@/services/constants';
import {handleOption, queryDataByParams} from '@/services/BusinessCrud';
import {BaseConfigProperties, Settings} from '@/types/SettingCenter/data';
import {EnvConfig} from '@/pages/SettingCenter/GlobalSetting/SettingOverView/EnvConfig';
import {FlinkConfig} from '@/pages/SettingCenter/GlobalSetting/SettingOverView/FlinkConfig';
import {MavenConfig} from '@/pages/SettingCenter/GlobalSetting/SettingOverView/MavenConfig';
import {DSConfig} from '@/pages/SettingCenter/GlobalSetting/SettingOverView/DSConfig';
import {l} from '@/utils/intl';
const SettingOverView = () => {
const [data, setData] = React.useState<Settings>({dolphinscheduler: [], env: [], flink: [], maven: []});
const fetchData = async () => {
await queryDataByParams(API_CONSTANTS.SYSTEM_GET_ALL_CONFIG).then((res) => {
setData(res);
});
};
useEffect(() => {
fetchData();
}, []);
const handleSaveSubmit = async (data: BaseConfigProperties) => {
// todo: save data of update data
const {code} = await handleOption(API_CONSTANTS.SYSTEM_MODIFY_CONFIG, l('sys.setting.modify', '', {key: data.key}), data);
if (code === RESPONSE_CODE.SUCCESS) await fetchData();
};
const renderData = () => {
if (data) {
const {env: dinkyEnv, flink: flinkConfig, maven: mavenConfig, dolphinscheduler: dsConfig} = data;
return <>
<EnvConfig onSave={handleSaveSubmit} data={dinkyEnv}/>
<FlinkConfig onSave={handleSaveSubmit} data={flinkConfig}/>
<MavenConfig onSave={handleSaveSubmit} data={mavenConfig}/>
<DSConfig onSave={handleSaveSubmit} data={dsConfig}/>
</>;
}
};
return <>
{renderData()}
</>;
};
export default memo(SettingOverView);
...@@ -15,3 +15,13 @@ ...@@ -15,3 +15,13 @@
* limitations under the License. * limitations under the License.
*/ */
import {PageContainer} from '@ant-design/pro-components';
import SettingOverView from '@/pages/SettingCenter/GlobalSetting/SettingOverView';
export default () => {
return <>
<PageContainer title={false}>
<SettingOverView/>
</PageContainer>
</>;
}
...@@ -171,6 +171,10 @@ export const API_CONSTANTS = { ...@@ -171,6 +171,10 @@ export const API_CONSTANTS = {
// system config center // system config center
// global config list
SYSTEM_GET_ALL_CONFIG: "/api/sysConfig/getAll",
// update global config by key
SYSTEM_MODIFY_CONFIG: "/api/sysConfig/modifyConfig",
//-- system root logs //-- system root logs
SYSTEM_ROOT_LOG: "/api/system/getRootLog", SYSTEM_ROOT_LOG: "/api/system/getRootLog",
// -- get logs list // -- get logs list
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* limitations under the License. * limitations under the License.
*/ */
// ============================ System Info ============================
export type ProcessSteps = { export type ProcessSteps = {
stepStatus: string; stepStatus: string;
info: string; info: string;
...@@ -40,3 +40,18 @@ export type Process = { ...@@ -40,3 +40,18 @@ export type Process = {
steps: ProcessSteps[]; steps: ProcessSteps[];
userId: number; userId: number;
} }
// ============================ System Settings ============================
export type Settings = {
dolphinscheduler: BaseConfigProperties[];
env: BaseConfigProperties[];
flink: BaseConfigProperties[];
maven: BaseConfigProperties[];
}
export type BaseConfigProperties = {
key: string;
value: any;
note: string;
frontType: string;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment