From 8add865995e17d2b432a5ba92b814e66b7b91839 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 9 Oct 2023 22:28:11 +0200 Subject: [PATCH 1/3] fix label in dark mode Signed-off-by: Jens Langhammer --- web/src/admin/applications/wizard/BasePanel.css.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/web/src/admin/applications/wizard/BasePanel.css.ts b/web/src/admin/applications/wizard/BasePanel.css.ts index 698b6cbac..31479ed80 100644 --- a/web/src/admin/applications/wizard/BasePanel.css.ts +++ b/web/src/admin/applications/wizard/BasePanel.css.ts @@ -21,9 +21,6 @@ export const styles = [ PFFormControl, PFSwitch, css` - .pf-c-radio__label { - color: #212427; - } select[multiple] { height: 15em; } From 5a33e7e4d723381962b5b016f84d4dc3493cb255 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 9 Oct 2023 22:28:19 +0200 Subject: [PATCH 2/3] SCIM Manuel -> SCIM Signed-off-by: Jens Langhammer --- ...lication-wizard-authentication-method-choice.choices.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/web/src/admin/applications/wizard/auth-method-choice/ak-application-wizard-authentication-method-choice.choices.ts b/web/src/admin/applications/wizard/auth-method-choice/ak-application-wizard-authentication-method-choice.choices.ts index f18b3dc43..e194065a6 100644 --- a/web/src/admin/applications/wizard/auth-method-choice/ak-application-wizard-authentication-method-choice.choices.ts +++ b/web/src/admin/applications/wizard/auth-method-choice/ak-application-wizard-authentication-method-choice.choices.ts @@ -48,15 +48,14 @@ const _providerModelsTable: ProviderType[] = [ msg("Transparent Reverse Proxy"), msg("For transparent reverse proxies with required authentication"), () => html``, - ProviderModelEnum.ProxyProxyprovider + ProviderModelEnum.ProxyProxyprovider ], [ "proxyprovider-forwardsingle", msg("Forward Single Proxy"), msg("For nginx's auth_request or traefix's forwardAuth"), () => html``, - ProviderModelEnum.ProxyProxyprovider - + ProviderModelEnum.ProxyProxyprovider ], [ "samlprovider", @@ -74,7 +73,7 @@ const _providerModelsTable: ProviderType[] = [ ], [ "scimprovider", - msg("SCIM Manual configuration"), + msg("SCIM configuration"), msg("Configure SCIM provider manually"), () => html``, ProviderModelEnum.ScimScimprovider From 9846a2be41c3795e8ed94d0ecfa4add493eb1c9a Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 9 Oct 2023 22:36:46 +0200 Subject: [PATCH 3/3] fix lint errors Signed-off-by: Jens Langhammer --- .../ak-application-wizard-commit-application.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/web/src/admin/applications/wizard/commit/ak-application-wizard-commit-application.ts b/web/src/admin/applications/wizard/commit/ak-application-wizard-commit-application.ts index 906856344..eaea1dfd3 100644 --- a/web/src/admin/applications/wizard/commit/ak-application-wizard-commit-application.ts +++ b/web/src/admin/applications/wizard/commit/ak-application-wizard-commit-application.ts @@ -24,7 +24,7 @@ import { TransactionApplicationRequest, TransactionApplicationResponse, } from "@goauthentik/api"; -import type { ModelRequest } from "@goauthentik/api"; +import type { ModelRequest, ResponseError } from "@goauthentik/api"; import BasePanel from "../BasePanel"; import providerModelsList from "../auth-method-choice/ak-application-wizard-authentication-method-choice.choices"; @@ -68,8 +68,8 @@ const successState: State = { icon: ["fa-check-circle", "pf-m-success"], }; -function extract(o: Record): string[] { - function inner(o: Record): string[] { +function extract(o: Record): string[] { + function inner(o: Record): string[] { if (typeof o !== "object") { return []; } @@ -77,7 +77,7 @@ function extract(o: Record): string[] { return o; } return Object.keys(o) - .map((k) => inner(o[k])) + .map((k) => inner(o[k] as Record)) .flat(); } return inner(o); @@ -168,8 +168,8 @@ export class ApplicationWizardCommitApplication extends BasePanel { this.dispatchWizardUpdate({ status: "submitted" }); this.commitState = successState; }) - .catch((resolution: any) => { - resolution.response.json().then((body: Record) => { + .catch((resolution: ResponseError) => { + resolution.response.json().then((body: Record) => { this.errors = extract(body); this.commitState = errorState; });