ui: add params to pki parser (#18760)

* refactor parser to pull serial number from subject

* refactor pki parser

* uninstall pvtutils

* remove hideFormSection as attr

* remove hideFormSection as attr

* add string-list

* test removing issueDate

* update tests

* final answer - make number types

* change to unix time - since valueOf() is typically used internally

* add algo mapping

* add comment to complete in followon

* add attrs to pki parser

* add conditional operands so parser continues when values dont exist

* add error handling WIP

* finish tests, add error handling

* revert to helper

* move helper to util

* add parseSubject test

* finish tests

* move certs to pki helper file

* wrap parsing functions in try...catch
This commit is contained in:
claire bontempo
2023-01-23 16:49:16 -08:00
committed by GitHub
parent 3ded1388cb
commit 92cc175eb6
23 changed files with 600 additions and 128 deletions

View File

@@ -215,7 +215,6 @@
@onChange={{this.setAndBroadcast}}
@attrName={{@attr.name}}
@subText={{@attr.options.subText}}
@hideFormSection={{@attr.options.hideFormSection}}
/>
{{else if (eq @attr.options.sensitive true)}}
{{! Masked Input }}

View File

@@ -1,5 +1,5 @@
<div
class={{concat "field string-list" (if @hideFormSection "" " form-section")}}
class="field string-list form-section"
data-test-component="string-list"
{{did-insert this.autoSize}}
{{did-update this.autoSizeUpdate}}

View File

@@ -20,7 +20,6 @@ import { next } from '@ember/runloop';
* @param {string} type=array - Optional type for inputValue.
* @param {string} attrName - We use this to check the type so we can modify the tooltip content.
* @param {string} subText - Text below the label.
* @param {boolean} hideFormSection - If true do not add form-section class on surrounding div.
*/
export default class StringList extends Component {