Skip to content

Commit 29a6130

Browse files
committed
Update theme and README
1 parent eaf5163 commit 29a6130

File tree

9 files changed

+18
-54
lines changed

9 files changed

+18
-54
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![TypeScript](https://badgen.net/badge/icon/typescript?icon=typescript&label)](https://typescriptlang.org)
44
[![GitHub go.mod Go version of a Go module](https://img.shields.io/github/go-mod/go-version/gomods/athens.svg)](https://github.com/gomods/athens) [![Docker](https://badgen.net/badge/icon/docker?icon=docker&label)](https://https://docker.com/)
55

6-
### About this project
6+
## About this project
77

88
Validkube combines the best open-source tools to help ensure Kubernetes YAML best practices, hygiene & security.
99

@@ -19,7 +19,7 @@ Please read [`contributing guidelines`](/contributing.md) before submitting new
1919

2020
Policies - A combination of security and best practices.
2121

22-
- **Validate** - Verify your Kubernetes configuration files @[kubeval](https://github.com/instrumenta/kubeval)
22+
- **Validate** - Verify your Kubernetes configuration files @[kubeconform](https://github.com/yannh/kubeconform)
2323
- **Clean** - Remove clutter from your Kubernetes manifests @[kubectl-neat](https://github.com/itaysk/kubectl-neat)
2424
- **Secure (Trivy)** - Scan your YAML code for security vulnerabilities @[trivy](https://github.com/aquasecurity/trivy)
2525
- **Secure (Kubescape)** - Scan your YAML file for Devops best practices and security vulnerabilities @[kubescape](https://github.com/armosec/kubescape)
@@ -35,9 +35,9 @@ Validkube is an open-source project, so please feel free to add more tools or ca
3535
- Yarn
3636
- NPM
3737
- Serverless CLI
38-
- Golang v1.17
38+
- Golang >v1.17
3939
- Netlify-cli
40-
- CLI tools for kubeval, kubescape, trivy and polaris, kubeconform
40+
- CLI tools for kubescape, trivy and polaris, kubeconform
4141

4242
## Deploy
4343

frontend/src/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ import styled, { createGlobalStyle, ThemeProvider } from "styled-components";
44
import "./App.css";
55
import { ThemePreference } from "./components/Context/ThemeContext";
66
import PrivateRoutes from "./components/Routes/PrivateRoutes";
7-
import { mainBackgrund } from "./utils/Colors";
7+
import { mainBackground } from "./utils/Colors";
88
import { ScrollToTop } from "./utils/scroll";
99

1010
const GlobalStyle = createGlobalStyle`
1111
body {
12-
background-color: ${mainBackgrund};
12+
background-color: ${mainBackground};
1313
}
1414
`;
1515
const GlobalStyleLight = createGlobalStyle`

frontend/src/components/GenericComponents/BlackTransparentButton.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import styled from "styled-components";
2-
import { mainBackgrund } from "../../utils/Colors";
2+
import { mainBackground } from "../../utils/Colors";
33

44
export const BlackTransparentButton = styled.button`
5-
background-color: ${mainBackgrund};
5+
background-color: ${mainBackground};
66
border: 1px solid white;
77
display: grid;
88
width: fit-content;

frontend/src/components/MainView/AboutThisProject.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { Fragment } from "react";
22
import styled from "styled-components";
3-
import { mainBackgrund, purpleBackground } from "../../utils/Colors";
3+
import { mainBackground, purpleBackground } from "../../utils/Colors";
44
import { ReactComponent as CheckIcon } from "./assets/Check.svg";
55
import { ReactComponent as KomodorLogo } from "./assets/KomodorLogo.svg";
66
import { ReactComponent as DotIcon } from "./assets/DotIcon.svg";
@@ -34,7 +34,7 @@ const BottomContainer = styled(Container)`
3434
@media (max-width: 74rem) {
3535
justify-content: space-between;
3636
}
37-
background-color: ${mainBackgrund};
37+
background-color: ${mainBackground};
3838
`;
3939

4040
const MainDiv = styled.div`
@@ -153,8 +153,8 @@ export const AboutThisProjectHeader: React.FC = () => {
153153
{
154154
action: "Validate",
155155
description: "- Verify your Kubernetes configuration files @",
156-
shortName: "kubeval",
157-
url: " https://github.com/instrumenta/kubeval",
156+
shortName: "kubeconform",
157+
url: " https://github.com/yannh/kubeconform",
158158
},
159159
{
160160
action: "Clean",

frontend/src/components/MainView/YamlBox/YamlBoxComponents.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import styled from "styled-components";
2-
import { greyBorder, mainBackgrund } from "../../../utils/Colors";
2+
import { greyBorder, mainBackground } from "../../../utils/Colors";
33

44
export const StyledTextArea = styled.textarea`
55
height: 450px;
@@ -9,7 +9,7 @@ export const StyledTextArea = styled.textarea`
99
width: -webkit-fill-available;
1010
line-height: 1.45;
1111
resize: none;
12-
background-color: ${mainBackgrund};
12+
background-color: ${mainBackground};
1313
color: white;
1414
font-size: 14px;
1515
border: hidden;

frontend/src/components/MainView/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const TextAreaContainer = styled.div`
2424

2525
const MainViewBodyContainer = styled.div`
2626
overflow-y: auto;
27-
background-color: #eeeeee;
27+
background-color: ${(props) => props.theme.mainBgColor};
2828
`;
2929

3030
export const BrOnlyOnPc = styled.br`

frontend/src/services/api-service.ts

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
import { useState } from "react";
2-
import { Record } from "runtypes";
3-
41
const BACKEND_GETWAY_URL = process.env.REACT_APP_API;
52

63
export const callAPIExample = (
@@ -51,38 +48,3 @@ export const callAPI = (
5148
};
5249

5350
const emptyInterface = {};
54-
const Response = Record({
55-
data: Record({}),
56-
});
57-
58-
type ResponseType = typeof Response;
59-
60-
export const useCallAPIHook = (
61-
endpoint: string,
62-
data: typeof emptyInterface
63-
): [
64-
respone: ResponseType | undefined,
65-
fetching: boolean,
66-
error: any | null
67-
] => {
68-
const [response, setResponse] = useState<ResponseType>();
69-
const [fetching, setFetching] = useState(true);
70-
const [error, setError] = useState(null);
71-
fetch(`${BACKEND_GETWAY_URL}/${endpoint}`, {
72-
method: "POST",
73-
body: JSON.stringify(data),
74-
headers: {
75-
Accept: "application/json",
76-
"Content-Type": "application/json",
77-
},
78-
})
79-
.then((response) => response.json())
80-
.then((response) => {
81-
setResponse(response.data);
82-
setFetching(false);
83-
})
84-
.catch((e) => {
85-
setError(e);
86-
});
87-
return [response, fetching, error];
88-
};

frontend/src/utils/Colors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export const mainBackgrund = "#000C37";
1+
export const mainBackground = "#000C37";
22
export const yamlTextColor = "#707583";
33
export const blueForButton = "#007AFF";
44
export const greyBorder = "#9195a1";

frontend/src/utils/Themes.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ export const light = {
22
color: "#FFFFFF",
33
text: "#000C37",
44
bgColor: "#000C37",
5+
mainBgColor: "#EEEEEE",
56
};
67
export const dark = {
78
color: "#000C37",
89
text: "#FFFFFF",
10+
mainBgColor: "#000C37",
911
};

0 commit comments

Comments
 (0)