2018-04-03 14:16:57 +00:00
|
|
|
<form onsubmit={{action "doSubmit"}}>
|
2021-12-17 03:44:29 +00:00
|
|
|
{{#if (eq this.selectedAction "hash")}}
|
|
|
|
{{! template-lint-disable no-passed-in-event-handlers }}
|
2021-05-24 16:45:35 +00:00
|
|
|
<ToolHash
|
|
|
|
@onClear={{action "onClear"}}
|
2021-12-17 03:44:29 +00:00
|
|
|
@sum={{this.sum}}
|
|
|
|
@algorithm={{this.algorithm}}
|
|
|
|
@errors={{this.errors}}
|
|
|
|
@format={{this.format}}
|
2021-05-24 16:45:35 +00:00
|
|
|
@input={{input}}
|
|
|
|
/>
|
2021-12-17 03:44:29 +00:00
|
|
|
{{! template-lint-enable no-passed-in-event-handlers }}
|
|
|
|
{{else if (eq this.selectedAction "random")}}
|
2021-05-24 16:45:35 +00:00
|
|
|
<ToolRandom
|
|
|
|
@onClear={{action "onClear"}}
|
2021-12-17 03:44:29 +00:00
|
|
|
@random_bytes={{this.random_bytes}}
|
|
|
|
@errors={{this.errors}}
|
|
|
|
@format={{this.format}}
|
|
|
|
@bytes={{this.bytes}}
|
2021-05-24 16:45:35 +00:00
|
|
|
/>
|
2021-12-17 03:44:29 +00:00
|
|
|
{{else if (eq this.selectedAction "rewrap")}}
|
2021-05-24 16:45:35 +00:00
|
|
|
<ToolRewrap
|
|
|
|
@onClear={{action "onClear"}}
|
2021-12-17 03:44:29 +00:00
|
|
|
@rewrap_token={{this.rewrap_token}}
|
|
|
|
@selectedAction={{this.selectedAction}}
|
|
|
|
@errors={{this.errors}}
|
|
|
|
@token={{this.token}}
|
|
|
|
@bytes={{this.bytes}}
|
2021-05-24 16:45:35 +00:00
|
|
|
/>
|
2021-12-17 03:44:29 +00:00
|
|
|
{{else if (eq this.selectedAction "unwrap")}}
|
2021-05-24 16:45:35 +00:00
|
|
|
<ToolUnwrap
|
|
|
|
@onClear={{action "onClear"}}
|
2021-12-17 03:44:29 +00:00
|
|
|
@unwrap_data={{this.unwrap_data}}
|
|
|
|
@unwrapActiveTab={{this.unwrapActiveTab}}
|
|
|
|
@details={{this.details}}
|
|
|
|
@errors={{this.errors}}
|
|
|
|
@token={{this.token}}
|
2021-05-24 16:45:35 +00:00
|
|
|
/>
|
2021-12-17 03:44:29 +00:00
|
|
|
{{else if (eq this.selectedAction "lookup")}}
|
2021-05-24 16:45:35 +00:00
|
|
|
<ToolLookup
|
2021-12-17 03:44:29 +00:00
|
|
|
@creation_time={{this.creation_time}}
|
|
|
|
@creation_ttl={{this.creation_ttl}}
|
|
|
|
@creation_path={{this.creation_path}}
|
|
|
|
@expirationDate={{this.expirationDate}}
|
|
|
|
@selectedAction={{this.selectedAction}}
|
|
|
|
@token={{this.token}}
|
2021-05-24 16:45:35 +00:00
|
|
|
@onClear={{action "onClear"}}
|
2021-12-17 03:44:29 +00:00
|
|
|
@errors={{this.errors}}
|
2021-05-24 16:45:35 +00:00
|
|
|
/>
|
2021-12-17 03:44:29 +00:00
|
|
|
{{else if (eq this.selectedAction "wrap")}}
|
2021-05-24 16:45:35 +00:00
|
|
|
<ToolWrap
|
2021-12-17 03:44:29 +00:00
|
|
|
@token={{this.token}}
|
|
|
|
@selectedAction={{this.selectedAction}}
|
2021-05-24 16:45:35 +00:00
|
|
|
@onClear={{action "onClear"}}
|
|
|
|
@codemirrorUpdated={{action "codemirrorUpdated"}}
|
|
|
|
@updateTtl={{action "updateTtl"}}
|
2021-12-17 03:44:29 +00:00
|
|
|
@buttonDisabled={{this.buttonDisabled}}
|
|
|
|
@errors={{this.errors}}
|
2021-05-24 16:45:35 +00:00
|
|
|
/>
|
|
|
|
{{else}}
|
2021-12-17 03:44:29 +00:00
|
|
|
<EmptyState @title="Tool not available" />
|
2021-05-24 16:45:35 +00:00
|
|
|
{{/if}}
|
2021-12-17 03:44:29 +00:00
|
|
|
</form>
|