Compare commits
4 Commits
ffbcd89093
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 168fcad308 | |||
| b5c3a9e046 | |||
| 664c4906e3 | |||
| 27173ec985 |
1
Makefile
1
Makefile
@ -9,7 +9,6 @@ run:
|
|||||||
build:
|
build:
|
||||||
- @rm -rf build
|
- @rm -rf build
|
||||||
@npm run build
|
@npm run build
|
||||||
@rm build/static/js/*.map
|
|
||||||
|
|
||||||
docker-build:
|
docker-build:
|
||||||
- @docker image rm $(IMAGE_NAME)
|
- @docker image rm $(IMAGE_NAME)
|
||||||
|
|||||||
@ -19,7 +19,7 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "react-scripts start",
|
"start": "react-scripts start",
|
||||||
"build": "react-scripts build",
|
"build": "GENERATE_SOURCEMAP=false react-scripts build",
|
||||||
"test": "react-scripts test",
|
"test": "react-scripts test",
|
||||||
"eject": "react-scripts eject"
|
"eject": "react-scripts eject"
|
||||||
},
|
},
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
# https://www.robotstxt.org/robotstxt.html
|
# https://www.robotstxt.org/robotstxt.html
|
||||||
User-agent: *
|
User-agent: *
|
||||||
Disallow:
|
Disallow: *
|
||||||
|
|||||||
@ -29,7 +29,7 @@ export default function Dashboard() {
|
|||||||
setLoadingEnv(true);
|
setLoadingEnv(true);
|
||||||
|
|
||||||
dashboardApi
|
dashboardApi
|
||||||
.getFake(envTab.dashboardEndpoint)
|
.get(envTab.dashboardEndpoint)
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
return response.data.content;
|
return response.data.content;
|
||||||
})
|
})
|
||||||
|
|||||||
@ -78,11 +78,22 @@ function ServiceNode({ node }: ServiceNodePropps) {
|
|||||||
const nodeUrl = node.url.replace("http://", "").replace("https://", "");
|
const nodeUrl = node.url.replace("http://", "").replace("https://", "");
|
||||||
const statusOk = node.health_check_status?.status_ok;
|
const statusOk = node.health_check_status?.status_ok;
|
||||||
|
|
||||||
|
const version = <Typography className="version">{node.app_details?.app_version || "no version"}</Typography>;
|
||||||
|
|
||||||
|
let templateName = null;
|
||||||
|
if (node.app_details?.template_name && node.app_details?.template_version) {
|
||||||
|
templateName = (
|
||||||
|
<Typography className="template">
|
||||||
|
{node.app_details?.template_name} {node.app_details?.template_version}
|
||||||
|
</Typography>
|
||||||
|
);
|
||||||
|
}
|
||||||
return (
|
return (
|
||||||
<Stack direction="row" className={`service-node ${statusOk ? "status-ok" : "status-error"}`}>
|
<Stack direction="row" className={`service-node ${statusOk ? "status-ok" : "status-error"}`}>
|
||||||
<Box>{getNodeNameElement(node)}</Box>
|
<Box>{getNodeNameElement(node)}</Box>
|
||||||
<Box className="node-details">
|
<Box className="node-details">
|
||||||
<Typography className="version">{node.app_details?.app_version || "no version"}</Typography>
|
{version}
|
||||||
|
{templateName}
|
||||||
<Link href={node.url} target="_blank">
|
<Link href={node.url} target="_blank">
|
||||||
{nodeUrl}
|
{nodeUrl}
|
||||||
</Link>
|
</Link>
|
||||||
|
|||||||
@ -11,4 +11,9 @@ export const ENVIRONMENT_TABS: EnvTab[] = [
|
|||||||
id: "qa",
|
id: "qa",
|
||||||
dashboardEndpoint: "https://intis-service-checker.qa.televendcloud.com/api/checker/v1/dashboard",
|
dashboardEndpoint: "https://intis-service-checker.qa.televendcloud.com/api/checker/v1/dashboard",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: "UAT",
|
||||||
|
id: "uat",
|
||||||
|
dashboardEndpoint: "https://intis-service-checker.uat.televendcloud.com/api/checker/v1/dashboard",
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
@ -1,13 +0,0 @@
|
|||||||
body {
|
|
||||||
margin: 0;
|
|
||||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
|
|
||||||
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
|
|
||||||
sans-serif;
|
|
||||||
-webkit-font-smoothing: antialiased;
|
|
||||||
-moz-osx-font-smoothing: grayscale;
|
|
||||||
}
|
|
||||||
|
|
||||||
code {
|
|
||||||
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
|
|
||||||
monospace;
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user