web: migrate checkbox to switch (#4409)
* start migrating to switch Signed-off-by: Jens Langhammer <jens@goauthentik.io> * general cleanup Signed-off-by: Jens Langhammer <jens@goauthentik.io> * remove broken Create provider Signed-off-by: Jens Langhammer <jens@goauthentik.io> * migrate all Signed-off-by: Jens Langhammer <jens@goauthentik.io> * migrate table selectors, fix dark theme Signed-off-by: Jens Langhammer <jens@goauthentik.io> Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
		| @ -51,7 +51,6 @@ export class OAuth2DeviceCode extends BaseStage< | ||||
|                         class="pf-c-form__group" | ||||
|                         .errors=${(this.challenge?.responseErrors || {})["code"]} | ||||
|                     > | ||||
|                         <!-- @ts-ignore --> | ||||
|                         <input | ||||
|                             type="text" | ||||
|                             name="code" | ||||
|  | ||||
| @ -60,7 +60,6 @@ export class AuthenticatorSMSStage extends BaseStage< | ||||
|                         class="pf-c-form__group" | ||||
|                         .errors=${(this.challenge?.responseErrors || {})["phone_number"]} | ||||
|                     > | ||||
|                         <!-- @ts-ignore --> | ||||
|                         <input | ||||
|                             type="tel" | ||||
|                             name="phoneNumber" | ||||
|  | ||||
| @ -77,7 +77,6 @@ export class AuthenticatorTOTPStage extends BaseStage< | ||||
|                     <input type="hidden" name="otp_uri" value=${this.challenge.configUrl} /> | ||||
|                     <ak-form-element> | ||||
|                         <div class="qr-container"> | ||||
|                             <!-- @ts-ignore --> | ||||
|                             <qr-code data="${this.challenge.configUrl}"></qr-code> | ||||
|                             <button | ||||
|                                 type="button" | ||||
|  | ||||
| @ -195,32 +195,29 @@ export class AuthenticatorValidateStage | ||||
|             case DeviceClassesEnum.Static: | ||||
|             case DeviceClassesEnum.Totp: | ||||
|             case DeviceClassesEnum.Sms: | ||||
|                 return html`<!-- @ts-ignore --> | ||||
|                     <ak-stage-authenticator-validate-code | ||||
|                         .host=${this} | ||||
|                         .challenge=${this.challenge} | ||||
|                         .deviceChallenge=${this.selectedDeviceChallenge} | ||||
|                         .showBackButton=${(this.challenge?.deviceChallenges.length || []) > 1} | ||||
|                     > | ||||
|                     </ak-stage-authenticator-validate-code>`; | ||||
|                 return html` <ak-stage-authenticator-validate-code | ||||
|                     .host=${this} | ||||
|                     .challenge=${this.challenge} | ||||
|                     .deviceChallenge=${this.selectedDeviceChallenge} | ||||
|                     .showBackButton=${(this.challenge?.deviceChallenges.length || []) > 1} | ||||
|                 > | ||||
|                 </ak-stage-authenticator-validate-code>`; | ||||
|             case DeviceClassesEnum.Webauthn: | ||||
|                 return html`<!-- @ts-ignore --> | ||||
|                     <ak-stage-authenticator-validate-webauthn | ||||
|                         .host=${this} | ||||
|                         .challenge=${this.challenge} | ||||
|                         .deviceChallenge=${this.selectedDeviceChallenge} | ||||
|                         .showBackButton=${(this.challenge?.deviceChallenges.length || []) > 1} | ||||
|                     > | ||||
|                     </ak-stage-authenticator-validate-webauthn>`; | ||||
|                 return html` <ak-stage-authenticator-validate-webauthn | ||||
|                     .host=${this} | ||||
|                     .challenge=${this.challenge} | ||||
|                     .deviceChallenge=${this.selectedDeviceChallenge} | ||||
|                     .showBackButton=${(this.challenge?.deviceChallenges.length || []) > 1} | ||||
|                 > | ||||
|                 </ak-stage-authenticator-validate-webauthn>`; | ||||
|             case DeviceClassesEnum.Duo: | ||||
|                 return html`<!-- @ts-ignore --> | ||||
|                     <ak-stage-authenticator-validate-duo | ||||
|                         .host=${this} | ||||
|                         .challenge=${this.challenge} | ||||
|                         .deviceChallenge=${this.selectedDeviceChallenge} | ||||
|                         .showBackButton=${(this.challenge?.deviceChallenges.length || []) > 1} | ||||
|                     > | ||||
|                     </ak-stage-authenticator-validate-duo>`; | ||||
|                 return html` <ak-stage-authenticator-validate-duo | ||||
|                     .host=${this} | ||||
|                     .challenge=${this.challenge} | ||||
|                     .deviceChallenge=${this.selectedDeviceChallenge} | ||||
|                     .showBackButton=${(this.challenge?.deviceChallenges.length || []) > 1} | ||||
|                 > | ||||
|                 </ak-stage-authenticator-validate-duo>`; | ||||
|         } | ||||
|         return html``; | ||||
|     } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Jens L
					Jens L