refactor(ui): better font weight, icon hover states, etc

This commit is contained in:
liyasthomas
2021-08-13 16:44:02 +05:30
parent 08e3cffff8
commit 11816111ea
94 changed files with 547 additions and 514 deletions

View File

@@ -1,10 +1,12 @@
export type HoppRESTAuthNone = {
authType: "none"
authName: "None"
authActive: true
}
export type HoppRESTAuthBasic = {
authType: "basic"
authName: "Basic Auth"
authActive: true
username: string
@@ -13,6 +15,7 @@ export type HoppRESTAuthBasic = {
export type HoppRESTAuthBearer = {
authType: "bearer"
authName: "Bearer Token"
authActive: true
token: string

View File

@@ -115,12 +115,14 @@ export function parseOldAuth(x: any): HoppRESTAuth {
if (!x.auth || x.auth === "None")
return {
authType: "none",
authName: "None",
authActive: true,
}
if (x.auth === "Basic Auth")
return {
authType: "basic",
authName: "Basic Auth",
authActive: true,
username: x.httpUser,
password: x.httpPassword,
@@ -129,9 +131,10 @@ export function parseOldAuth(x: any): HoppRESTAuth {
if (x.auth === "Bearer Token")
return {
authType: "bearer",
authName: "Bearer Token",
authActive: true,
token: x.bearerToken,
}
return { authType: "none", authActive: true }
return { authType: "none", authName: "None", authActive: true }
}