Compare commits

...

4 Commits

Author SHA1 Message Date
168fcad308 Uat 2024-01-29 08:18:21 +01:00
b5c3a9e046 Tweaks 2024-01-29 08:10:11 +01:00
664c4906e3 Cleanup 2024-01-28 22:51:48 +01:00
27173ec985 Optimize app build 2024-01-28 22:25:31 +01:00
7 changed files with 20 additions and 18 deletions

View File

@ -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)

View File

@ -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"
}, },

View File

@ -1,3 +1,3 @@
# https://www.robotstxt.org/robotstxt.html # https://www.robotstxt.org/robotstxt.html
User-agent: * User-agent: *
Disallow: Disallow: *

View File

@ -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;
}) })

View File

@ -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>

View File

@ -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",
},
]; ];

View File

@ -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;
}