-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* move submit buttons in auth-form into a form tag because IE11 is sad * add acceptance test for auth-method clearing * update ember-cli-page-object * actually remove the form attr on the auth-form component * remove form attribute on init form * remove form attribute from shamir-flow component * stringify not strigify
- Loading branch information
Showing
19 changed files
with
218 additions
and
169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
.shamir-progress { | ||
.shamir-progress-progress { | ||
display: inline-block; | ||
margin-top: $size-10; | ||
margin-right: $size-8; | ||
} | ||
.progress { | ||
box-shadow: 0 0 0 4px $progress-bar-background-color; | ||
display: inline; | ||
width: 150px; | ||
margin-top: $size-10; | ||
min-width: 90px; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,54 @@ | ||
<nav class="tabs sub-nav is-marginless"> | ||
<ul> | ||
{{#each (supported-auth-backends) as |backend|}} | ||
<li class="{{if (eq selectedAuthBackend.type backend.type) 'is-active' ''}}"> | ||
<li class="{{if (eq selectedAuthBackend.type backend.type) 'is-active' ''}}" data-test-auth-method> | ||
<a href="{{href-to 'vault.cluster.auth' cluster.name (query-params with=backend.type)}}" data-test-auth-method-link={{backend.type}}> | ||
{{capitalize backend.type}} | ||
</a> | ||
</li> | ||
{{/each}} | ||
</ul> | ||
</nav> | ||
<div class="box is-marginless is-shadowless"> | ||
{{#if (and cluster.standby hasCSPError)}} | ||
{{message-error errorMessage=cspErrorText data-test-auth-error=true}} | ||
{{else}} | ||
{{message-error errorMessage=error data-test-auth-error=true}} | ||
{{/if}} | ||
{{component providerComponentName onSubmit=(action 'doSubmit') }} | ||
<div class="box has-slim-padding is-shadowless"> | ||
{{#unless (eq selectedAuthBackend.type "token")}} | ||
{{toggle-button toggleTarget=this toggleAttr="useCustomPath"}} | ||
<div class="field"> | ||
{{#if useCustomPath}} | ||
<label for="custom-path" class="is-label"> | ||
Mount path | ||
</label> | ||
<div class="control"> | ||
<input | ||
type="text" | ||
name="custom-path" | ||
id="custom-path" | ||
class="input" | ||
value={{customPath}} | ||
oninput={{action (mut customPath) value="target.value"}} | ||
/> | ||
</div> | ||
<p class="help has-text-grey-dark"> | ||
If this backend was mounted using a non-default path, enter it here. | ||
</p> | ||
{{/if}} | ||
</div> | ||
{{/unless}} | ||
<form | ||
id="auth-form" | ||
{{action (action "doSubmit") on="submit"}} | ||
> | ||
<div class="box is-marginless is-shadowless"> | ||
{{#if (and cluster.standby hasCSPError)}} | ||
{{message-error errorMessage=cspErrorText data-test-auth-error=true}} | ||
{{else}} | ||
{{message-error errorMessage=error data-test-auth-error=true}} | ||
{{/if}} | ||
{{partial providerPartialName}} | ||
<div class="box has-slim-padding is-shadowless"> | ||
{{#unless (eq selectedAuthBackend.type "token")}} | ||
{{toggle-button toggleTarget=this toggleAttr="useCustomPath"}} | ||
<div class="field"> | ||
{{#if useCustomPath}} | ||
<label for="custom-path" class="is-label"> | ||
Mount path | ||
</label> | ||
<div class="control"> | ||
<input | ||
type="text" | ||
name="custom-path" | ||
id="custom-path" | ||
class="input" | ||
value={{customPath}} | ||
oninput={{action (mut customPath) value="target.value"}} | ||
/> | ||
</div> | ||
<p class="help has-text-grey-dark"> | ||
If this backend was mounted using a non-default path, enter it here. | ||
</p> | ||
{{/if}} | ||
</div> | ||
{{/unless}} | ||
</div> | ||
</div> | ||
</div> | ||
<div class="box is-marginless is-shadowless has-background-white-bis"> | ||
<button data-test-auth-submit=true type="submit" disabled={{loading}} form="auth-form" class="button is-primary {{if loading 'is-loading'}}" id="auth-submit"> | ||
Sign In | ||
</button> | ||
</div> | ||
<div class="box is-marginless is-shadowless has-background-white-bis"> | ||
<button data-test-auth-submit=true type="submit" disabled={{loading}} class="button is-primary {{if loading 'is-loading'}}" id="auth-submit"> | ||
Sign In | ||
</button> | ||
</div> | ||
</form> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
<div class="level"> | ||
<div class="level-item"> | ||
<div class="level-left"> | ||
<span class="has-text-grey is-size-8 shamir-progress-progress"> | ||
{{progress}} / {{threshold}} keys provided | ||
</span> | ||
</div> | ||
<div class="level-right is-marginless"> | ||
<progress max="100" value="{{progressPercent}}" class="progress is-success is-rounded"></progress> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<div class="field"> | ||
<label for="token" class="is-label">GitHub Token</label> | ||
<div class="control"> | ||
{{input | ||
type="password" | ||
value=token | ||
name="token" | ||
id="token" | ||
class="input" | ||
data-test-token=true | ||
}} | ||
</div> | ||
</div> |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<div class="field"> | ||
<label for="token" class="is-label">Token</label> | ||
<div class="control"> | ||
{{input | ||
type="password" | ||
value=token | ||
name="token" | ||
class="input" | ||
data-test-token=true | ||
}} | ||
</div> | ||
</div> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,25 @@ | ||
<form | ||
id="auth-form" | ||
{{action (action onSubmit (hash username=username password=password)) on="submit"}} | ||
> | ||
<div class="field"> | ||
<label for="username" class="is-label">Username</label> | ||
<div class="control"> | ||
{{input | ||
value=username | ||
name="username" | ||
id="username" | ||
class="input" | ||
}} | ||
</div> | ||
<div class="field"> | ||
<label for="username" class="is-label">Username</label> | ||
<div class="control"> | ||
{{input | ||
value=username | ||
name="username" | ||
id="username" | ||
class="input" | ||
data-test-username=true | ||
}} | ||
</div> | ||
<div class="field"> | ||
<label for="password" class="is-label">Password</label> | ||
<div class="control"> | ||
{{input | ||
value=password | ||
name="password" | ||
id="password" | ||
type="password" | ||
class="input" | ||
}} | ||
</div> | ||
</div> | ||
<div class="field"> | ||
<label for="password" class="is-label">Password</label> | ||
<div class="control"> | ||
{{input | ||
value=password | ||
name="password" | ||
id="password" | ||
type="password" | ||
class="input" | ||
data-test-password=true | ||
}} | ||
</div> | ||
</form> | ||
</div> |
Oops, something went wrong.