mirror of
https://github.com/hashicorp/vault.git
synced 2025-11-24 20:21:09 +01:00
UI/fix icon colors (#13601)
This commit is contained in:
parent
575d9f98f1
commit
6c6c99ee01
@ -18,24 +18,28 @@ const MOUNTABLE_AUTH_METHODS = [
|
|||||||
value: 'aws',
|
value: 'aws',
|
||||||
type: 'aws',
|
type: 'aws',
|
||||||
category: 'cloud',
|
category: 'cloud',
|
||||||
|
glyph: 'aws-color',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Azure',
|
displayName: 'Azure',
|
||||||
value: 'azure',
|
value: 'azure',
|
||||||
type: 'azure',
|
type: 'azure',
|
||||||
category: 'cloud',
|
category: 'cloud',
|
||||||
|
glyph: 'azure-color',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Google Cloud',
|
displayName: 'Google Cloud',
|
||||||
value: 'gcp',
|
value: 'gcp',
|
||||||
type: 'gcp',
|
type: 'gcp',
|
||||||
category: 'cloud',
|
category: 'cloud',
|
||||||
|
glyph: 'gcp-color',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'GitHub',
|
displayName: 'GitHub',
|
||||||
value: 'github',
|
value: 'github',
|
||||||
type: 'github',
|
type: 'github',
|
||||||
category: 'cloud',
|
category: 'cloud',
|
||||||
|
glyph: 'github-color',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'JWT',
|
displayName: 'JWT',
|
||||||
@ -56,6 +60,7 @@ const MOUNTABLE_AUTH_METHODS = [
|
|||||||
value: 'kubernetes',
|
value: 'kubernetes',
|
||||||
type: 'kubernetes',
|
type: 'kubernetes',
|
||||||
category: 'infra',
|
category: 'infra',
|
||||||
|
glyph: 'kubernetes-color',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'LDAP',
|
displayName: 'LDAP',
|
||||||
@ -69,6 +74,7 @@ const MOUNTABLE_AUTH_METHODS = [
|
|||||||
value: 'okta',
|
value: 'okta',
|
||||||
type: 'okta',
|
type: 'okta',
|
||||||
category: 'infra',
|
category: 'infra',
|
||||||
|
glyph: 'okta-color',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'RADIUS',
|
displayName: 'RADIUS',
|
||||||
|
|||||||
@ -34,12 +34,14 @@ const MOUNTABLE_SECRET_ENGINES = [
|
|||||||
value: 'aws',
|
value: 'aws',
|
||||||
type: 'aws',
|
type: 'aws',
|
||||||
category: 'cloud',
|
category: 'cloud',
|
||||||
|
glyph: 'aws-color',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Azure',
|
displayName: 'Azure',
|
||||||
value: 'azure',
|
value: 'azure',
|
||||||
type: 'azure',
|
type: 'azure',
|
||||||
category: 'cloud',
|
category: 'cloud',
|
||||||
|
glyph: 'azure-color',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Consul',
|
displayName: 'Consul',
|
||||||
@ -58,12 +60,14 @@ const MOUNTABLE_SECRET_ENGINES = [
|
|||||||
value: 'gcp',
|
value: 'gcp',
|
||||||
type: 'gcp',
|
type: 'gcp',
|
||||||
category: 'cloud',
|
category: 'cloud',
|
||||||
|
glyph: 'gcp-color',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Google Cloud KMS',
|
displayName: 'Google Cloud KMS',
|
||||||
value: 'gcpkms',
|
value: 'gcpkms',
|
||||||
type: 'gcpkms',
|
type: 'gcpkms',
|
||||||
category: 'cloud',
|
category: 'cloud',
|
||||||
|
glyph: 'gcp-color',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'KV',
|
displayName: 'KV',
|
||||||
|
|||||||
@ -60,7 +60,8 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.empty-state-icon > .hs-icon {
|
.empty-state-icon > .hs-icon,
|
||||||
|
.empty-state-icon > .flight-icon {
|
||||||
float: left;
|
float: left;
|
||||||
margin-right: $spacing-xs;
|
margin-right: $spacing-xs;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -24,6 +24,10 @@
|
|||||||
margin-top: $size-1;
|
margin-top: $size-1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.title-with-icon {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
.breadcrumb + .level .title {
|
.breadcrumb + .level .title {
|
||||||
margin-top: $size-4;
|
margin-top: $size-4;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -127,5 +127,6 @@
|
|||||||
.diff-status {
|
.diff-status {
|
||||||
display: flex;
|
display: flex;
|
||||||
direction: rtl;
|
direction: rtl;
|
||||||
|
align-items: center;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -11,9 +11,7 @@
|
|||||||
{{this.type.text}}
|
{{this.type.text}}
|
||||||
</div>
|
</div>
|
||||||
{{#if this.message}}
|
{{#if this.message}}
|
||||||
<p class="message-body {{if @isPreformatted "pre"}}" data-test-flash-message-body="true" test="another attribute">
|
<p class="message-body {{if @isPreformatted "pre"}}" data-test-flash-message-body="true">{{this.message}}</p>
|
||||||
{{this.message}}
|
|
||||||
</p>
|
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -149,7 +149,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="control">
|
<div class="control">
|
||||||
<button type="button" class="button is-ghost" {{action "resetData"}}>
|
<button type="button" class="button is-ghost" {{action "resetData"}}>
|
||||||
<Icon @glyph="trash" class="has-text-grey" />
|
<Icon @name="trash" class="has-text-grey" />
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
@ -30,11 +30,11 @@
|
|||||||
(not leftSideSecretVersion.deleted)
|
(not leftSideSecretVersion.deleted)
|
||||||
)
|
)
|
||||||
}}
|
}}
|
||||||
<Icon @glyph="check-circle-outline" class="has-text-success is-pulled-right" />
|
<Icon @name="check-circle" class="has-text-success is-pulled-right" />
|
||||||
{{else if leftSideSecretVersion.destroyed}}
|
{{else if leftSideSecretVersion.destroyed}}
|
||||||
<Icon @glyph="cancel-square-fill" class="has-text-danger is-pulled-right" />
|
<Icon @name="x-square" class="has-text-danger is-pulled-right" />
|
||||||
{{else if leftSideSecretVersion.deleted}}
|
{{else if leftSideSecretVersion.deleted}}
|
||||||
<Icon @glyph="cancel-square-fill" class="has-text-grey is-pulled-right" />
|
<Icon @name="x-square" class="has-text-grey is-pulled-right" />
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
@ -74,11 +74,11 @@
|
|||||||
(not rightSideSecretVersion.deleted)
|
(not rightSideSecretVersion.deleted)
|
||||||
)
|
)
|
||||||
}}
|
}}
|
||||||
<Icon @glyph="check-circle-outline" class="has-text-success is-pulled-right" />
|
<Icon @name="check-circle" class="has-text-success is-pulled-right" />
|
||||||
{{else if rightSideSecretVersion.destroyed}}
|
{{else if rightSideSecretVersion.destroyed}}
|
||||||
<Icon @glyph="cancel-square-fill" class="has-text-danger is-pulled-right" />
|
<Icon @name="x-square" class="has-text-danger is-pulled-right" />
|
||||||
{{else if rightSideSecretVersion.deleted}}
|
{{else if rightSideSecretVersion.deleted}}
|
||||||
<Icon @glyph="cancel-square-fill" class="has-text-grey is-pulled-right" />
|
<Icon @name="x-square" class="has-text-grey is-pulled-right" />
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
@ -91,7 +91,7 @@
|
|||||||
{{#if this.statesMatch}}
|
{{#if this.statesMatch}}
|
||||||
<div class="diff-status">
|
<div class="diff-status">
|
||||||
<span>States match</span>
|
<span>States match</span>
|
||||||
<Icon @glyph="check-circle-fill" class="has-text-success" />
|
<Icon @name="check-circle-fill" class="has-text-success" />
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -1,10 +1,9 @@
|
|||||||
<PageHeader as |p|>
|
<PageHeader as |p|>
|
||||||
<p.levelLeft>
|
<p.levelLeft>
|
||||||
<h1 class="title is-3" data-test-mount-form-header="true">
|
<h1 class="title is-3 title-with-icon" data-test-mount-form-header="true">
|
||||||
{{#if this.showEnable}}
|
{{#if this.showEnable}}
|
||||||
{{#with (find-by "type" this.mountModel.type this.mountTypes) as |typeInfo|}}
|
{{#with (find-by "type" this.mountModel.type this.mountTypes) as |typeInfo|}}
|
||||||
<Icon @name={{or typeInfo.glyph typeInfo.type}} class="has-text-grey-light" />
|
<Icon @name={{or typeInfo.glyph typeInfo.type}} @size="24" class="has-text-grey-light" />
|
||||||
|
|
||||||
{{#if (eq this.mountType "auth")}}
|
{{#if (eq this.mountType "auth")}}
|
||||||
{{concat "Enable " typeInfo.displayName " Authentication Method"}}
|
{{concat "Enable " typeInfo.displayName " Authentication Method"}}
|
||||||
{{else}}
|
{{else}}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user