@peculiar/certificates-viewer 3.9.0 → 3.10.1-alpha.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/arrow_top.js +34 -0
- package/components/arrow_top.js.map +1 -0
- package/components/attribute-certificate-viewer.js +281 -0
- package/components/attribute-certificate-viewer.js.map +1 -0
- package/components/button-menu.js +64 -0
- package/components/button-menu.js.map +1 -0
- package/components/button.js +74 -0
- package/components/button.js.map +1 -0
- package/components/certificate-viewer.js +300 -0
- package/components/certificate-viewer.js.map +1 -0
- package/components/circular-progress.js +48 -0
- package/components/circular-progress.js.map +1 -0
- package/components/crl-viewer.js +263 -0
- package/components/crl-viewer.js.map +1 -0
- package/components/csr-viewer.js +233 -0
- package/components/csr-viewer.js.map +1 -0
- package/components/custom-elements.d.ts +2 -0
- package/{dist/esm/download-91511aeb.js → components/download.js} +2 -0
- package/components/download.js.map +1 -0
- package/components/highlight-words.js +60 -0
- package/components/highlight-words.js.map +1 -0
- package/components/index.d.ts +33 -0
- package/components/index.js +7 -0
- package/components/index.js.map +1 -0
- package/components/index2.js +299 -0
- package/components/index2.js.map +1 -0
- package/components/issuer_name.js +26 -0
- package/components/issuer_name.js.map +1 -0
- package/components/miscellaneous.js +13420 -0
- package/components/miscellaneous.js.map +1 -0
- package/components/package.json +9 -0
- package/components/peculiar-attribute-certificate-viewer.d.ts +11 -0
- package/components/peculiar-attribute-certificate-viewer.js +11 -0
- package/components/peculiar-attribute-certificate-viewer.js.map +1 -0
- package/components/peculiar-button-menu.d.ts +11 -0
- package/components/peculiar-button-menu.js +11 -0
- package/components/peculiar-button-menu.js.map +1 -0
- package/components/peculiar-certificate-decoder.d.ts +11 -0
- package/components/peculiar-certificate-decoder.js +234 -0
- package/components/peculiar-certificate-decoder.js.map +1 -0
- package/components/peculiar-certificate-viewer.d.ts +11 -0
- package/components/peculiar-certificate-viewer.js +11 -0
- package/components/peculiar-certificate-viewer.js.map +1 -0
- package/components/peculiar-certificates-viewer.d.ts +11 -0
- package/components/peculiar-certificates-viewer.js +382 -0
- package/components/peculiar-certificates-viewer.js.map +1 -0
- package/components/peculiar-circular-progress.d.ts +11 -0
- package/components/peculiar-circular-progress.js +11 -0
- package/components/peculiar-circular-progress.js.map +1 -0
- package/components/peculiar-crl-viewer.d.ts +11 -0
- package/components/peculiar-crl-viewer.js +11 -0
- package/components/peculiar-crl-viewer.js.map +1 -0
- package/components/peculiar-csr-viewer.d.ts +11 -0
- package/components/peculiar-csr-viewer.js +11 -0
- package/components/peculiar-csr-viewer.js.map +1 -0
- package/components/peculiar-highlight-words.d.ts +11 -0
- package/components/peculiar-highlight-words.js +11 -0
- package/components/peculiar-highlight-words.js.map +1 -0
- package/components/peculiar-text-hider.d.ts +11 -0
- package/components/peculiar-text-hider.js +42 -0
- package/components/peculiar-text-hider.js.map +1 -0
- package/components/subject_name.js +71 -0
- package/components/subject_name.js.map +1 -0
- package/dist/cjs/arrow_top-834fb7ec.js +37 -0
- package/dist/cjs/arrow_top-834fb7ec.js.map +1 -0
- package/dist/cjs/button-14e2b73f.js +77 -0
- package/dist/cjs/button-14e2b73f.js.map +1 -0
- package/dist/cjs/{certification_request-b9ac73f2.js → certification_request-c0cafa72.js} +240 -73
- package/dist/cjs/certification_request-c0cafa72.js.map +1 -0
- package/dist/cjs/{crl-57727a07.js → crl-b4322166.js} +8 -7
- package/dist/cjs/crl-b4322166.js.map +1 -0
- package/dist/cjs/download-254ddc57.js +23 -0
- package/dist/cjs/download-254ddc57.js.map +1 -0
- package/dist/cjs/{download-93f7b773.js → download-972dda8a.js} +2 -0
- package/dist/cjs/download-972dda8a.js.map +1 -0
- package/dist/cjs/index-efd561e9.js +2477 -0
- package/dist/cjs/index-efd561e9.js.map +1 -0
- package/dist/cjs/index.cjs.js +3 -1
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +6 -12
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/{miscellaneous-07184a47.js → miscellaneous-806a04a5.js} +87 -71
- package/dist/cjs/miscellaneous-806a04a5.js.map +1 -0
- package/dist/cjs/peculiar-attribute-certificate-viewer_3.cjs.entry.js +92 -35
- package/dist/cjs/peculiar-attribute-certificate-viewer_3.cjs.entry.js.map +1 -0
- package/dist/cjs/peculiar-button-menu_3.cjs.entry.js +110 -0
- package/dist/cjs/peculiar-button-menu_3.cjs.entry.js.map +1 -0
- package/dist/cjs/peculiar-certificate-decoder.cjs.entry.js +30 -19
- package/dist/cjs/peculiar-certificate-decoder.cjs.entry.js.map +1 -0
- package/dist/cjs/peculiar-certificate-viewer.cjs.entry.js +34 -11
- package/dist/cjs/peculiar-certificate-viewer.cjs.entry.js.map +1 -0
- package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js +183 -85
- package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js.map +1 -0
- package/dist/cjs/peculiar-text-hider.cjs.entry.js +7 -13
- package/dist/cjs/peculiar-text-hider.cjs.entry.js.map +1 -0
- package/dist/cjs/peculiar.cjs.js +10 -57
- package/dist/cjs/peculiar.cjs.js.map +1 -0
- package/dist/cjs/{x509_certificate-da0fc87d.js → x509_certificate-989b1435.js} +5 -4
- package/dist/cjs/x509_certificate-989b1435.js.map +1 -0
- package/dist/collection/collection-manifest.json +12 -16
- package/dist/collection/components/attribute-certificate-viewer/attribute-certificate-viewer.js +189 -145
- package/dist/collection/components/attribute-certificate-viewer/attribute-certificate-viewer.js.map +1 -0
- package/dist/collection/components/button/button.js +14 -126
- package/dist/collection/components/button/button.js.map +1 -0
- package/dist/collection/components/button/index.js +5 -0
- package/dist/collection/components/button/index.js.map +1 -0
- package/dist/collection/components/button-menu/button-menu.css +46 -0
- package/dist/collection/components/button-menu/button-menu.js +78 -0
- package/dist/collection/components/button-menu/button-menu.js.map +1 -0
- package/dist/collection/components/certificate-decoder/certificate-decoder.css +456 -44
- package/dist/collection/components/certificate-decoder/certificate-decoder.js +109 -101
- package/dist/collection/components/certificate-decoder/certificate-decoder.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/attributes/activity_description_attribute.js +6 -11
- package/dist/collection/components/certificate-details-parts/attributes/activity_description_attribute.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/attributes/as_string_attribute.js +5 -5
- package/dist/collection/components/certificate-details-parts/attributes/as_string_attribute.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/attributes/basic_attribute.js +5 -6
- package/dist/collection/components/certificate-details-parts/attributes/basic_attribute.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/attributes/challenge_password_attribute.js +5 -5
- package/dist/collection/components/certificate-details-parts/attributes/challenge_password_attribute.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/attributes/index.js +16 -15
- package/dist/collection/components/certificate-details-parts/attributes/index.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/attributes/insurance_value_attribute.js +5 -5
- package/dist/collection/components/certificate-details-parts/attributes/insurance_value_attribute.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/attributes/name_attribute.js +5 -5
- package/dist/collection/components/certificate-details-parts/attributes/name_attribute.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/attributes/name_part.js +4 -3
- package/dist/collection/components/certificate-details-parts/attributes/name_part.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/attributes/type_relationship_attribute.js +5 -4
- package/dist/collection/components/certificate-details-parts/attributes/type_relationship_attribute.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/attributes/unstructured_name_attribute.js +5 -5
- package/dist/collection/components/certificate-details-parts/attributes/unstructured_name_attribute.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/attributes/valuation_ranking_attribute.js +5 -5
- package/dist/collection/components/certificate-details-parts/attributes/valuation_ranking_attribute.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/attributes/web_gdpr_attribute.js +6 -13
- package/dist/collection/components/certificate-details-parts/attributes/web_gdpr_attribute.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/basic_information.js +4 -3
- package/dist/collection/components/certificate-details-parts/basic_information.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/extensions/archive_rev_info_extension.js +5 -5
- package/dist/collection/components/certificate-details-parts/extensions/archive_rev_info_extension.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/extensions/as_string_extension.js +5 -5
- package/dist/collection/components/certificate-details-parts/extensions/as_string_extension.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/extensions/attribute_value.js +2 -1
- package/dist/collection/components/certificate-details-parts/extensions/attribute_value.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/extensions/authority_key_identifier_extension.js +10 -15
- package/dist/collection/components/certificate-details-parts/extensions/authority_key_identifier_extension.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/extensions/basic_constraints_extension.js +6 -7
- package/dist/collection/components/certificate-details-parts/extensions/basic_constraints_extension.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/extensions/basic_extension.js +5 -6
- package/dist/collection/components/certificate-details-parts/extensions/basic_extension.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/extensions/biometric_syntax_extension.js +8 -12
- package/dist/collection/components/certificate-details-parts/extensions/biometric_syntax_extension.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/extensions/ca_version_extension.js +5 -6
- package/dist/collection/components/certificate-details-parts/extensions/ca_version_extension.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/extensions/certificate_policies_extension.js +26 -27
- package/dist/collection/components/certificate-details-parts/extensions/certificate_policies_extension.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/extensions/certificate_template_extension.js +5 -7
- package/dist/collection/components/certificate-details-parts/extensions/certificate_template_extension.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/extensions/certificate_transparency_extension.js +8 -13
- package/dist/collection/components/certificate-details-parts/extensions/certificate_transparency_extension.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/extensions/crl_distribution_points_extension.js +4 -3
- package/dist/collection/components/certificate-details-parts/extensions/crl_distribution_points_extension.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/extensions/crl_number_extension.js +6 -6
- package/dist/collection/components/certificate-details-parts/extensions/crl_number_extension.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/extensions/crl_reason_extension.js +5 -5
- package/dist/collection/components/certificate-details-parts/extensions/crl_reason_extension.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/extensions/enroll_cert_type_extension.js +5 -5
- package/dist/collection/components/certificate-details-parts/extensions/enroll_cert_type_extension.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/extensions/entrust_version_info_extension.js +5 -6
- package/dist/collection/components/certificate-details-parts/extensions/entrust_version_info_extension.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/extensions/extended_key_usage_extension.js +7 -7
- package/dist/collection/components/certificate-details-parts/extensions/extended_key_usage_extension.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/extensions/general_name_part.js +8 -7
- package/dist/collection/components/certificate-details-parts/extensions/general_name_part.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/extensions/index.js +46 -45
- package/dist/collection/components/certificate-details-parts/extensions/index.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/extensions/info_access_syntax_extension.js +8 -9
- package/dist/collection/components/certificate-details-parts/extensions/info_access_syntax_extension.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/extensions/issuing_distribution_point_extension.js +7 -11
- package/dist/collection/components/certificate-details-parts/extensions/issuing_distribution_point_extension.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/extensions/key_usage_extension.js +5 -5
- package/dist/collection/components/certificate-details-parts/extensions/key_usage_extension.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/extensions/lei_extension.js +5 -5
- package/dist/collection/components/certificate-details-parts/extensions/lei_extension.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/extensions/lei_role_extennsion.js +5 -5
- package/dist/collection/components/certificate-details-parts/extensions/lei_role_extennsion.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/extensions/logotype_extension.js +8 -11
- package/dist/collection/components/certificate-details-parts/extensions/logotype_extension.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/extensions/name_constraints_extension.js +4 -3
- package/dist/collection/components/certificate-details-parts/extensions/name_constraints_extension.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/extensions/netscape_cert_type_extension.js +5 -5
- package/dist/collection/components/certificate-details-parts/extensions/netscape_cert_type_extension.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/extensions/netscape_comment_extension.js +5 -5
- package/dist/collection/components/certificate-details-parts/extensions/netscape_comment_extension.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/extensions/policy_constraints_extension.js +6 -7
- package/dist/collection/components/certificate-details-parts/extensions/policy_constraints_extension.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/extensions/policy_mappings_extension.js +5 -4
- package/dist/collection/components/certificate-details-parts/extensions/policy_mappings_extension.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/extensions/private_key_usage_period_extension.js +6 -7
- package/dist/collection/components/certificate-details-parts/extensions/private_key_usage_period_extension.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/extensions/qc_statements_extension.js +13 -16
- package/dist/collection/components/certificate-details-parts/extensions/qc_statements_extension.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/extensions/subject_alternative_name_extension.js +4 -3
- package/dist/collection/components/certificate-details-parts/extensions/subject_alternative_name_extension.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/extensions/subject_directory_attributes_extension.js +8 -9
- package/dist/collection/components/certificate-details-parts/extensions/subject_directory_attributes_extension.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/extensions/subject_key_identifier_extension.js +10 -15
- package/dist/collection/components/certificate-details-parts/extensions/subject_key_identifier_extension.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/extensions/timestamp_extension.js +7 -9
- package/dist/collection/components/certificate-details-parts/extensions/timestamp_extension.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/extensions/tn_auth_list_extension.js +4 -3
- package/dist/collection/components/certificate-details-parts/extensions/tn_auth_list_extension.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/holder.js +8 -11
- package/dist/collection/components/certificate-details-parts/holder.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/index.js +1 -0
- package/dist/collection/components/certificate-details-parts/index.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/issuer.js +5 -4
- package/dist/collection/components/certificate-details-parts/issuer.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/issuer_name.js +6 -4
- package/dist/collection/components/certificate-details-parts/issuer_name.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/miscellaneous.js +8 -13
- package/dist/collection/components/certificate-details-parts/miscellaneous.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/public_key.js +8 -7
- package/dist/collection/components/certificate-details-parts/public_key.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/revoked_certificates.js +9 -11
- package/dist/collection/components/certificate-details-parts/revoked_certificates.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/row.js +13 -18
- package/dist/collection/components/certificate-details-parts/row.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/signature.js +5 -4
- package/dist/collection/components/certificate-details-parts/signature.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/subject_name.js +4 -3
- package/dist/collection/components/certificate-details-parts/subject_name.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/thumbprints.js +4 -3
- package/dist/collection/components/certificate-details-parts/thumbprints.js.map +1 -0
- package/dist/collection/components/certificate-summary/certificate-summary.js +9 -77
- package/dist/collection/components/certificate-summary/certificate-summary.js.map +1 -0
- package/dist/collection/components/certificate-summary/index.js +5 -0
- package/dist/collection/components/certificate-summary/index.js.map +1 -0
- package/dist/collection/components/certificate-viewer/certificate-viewer.css +470 -104
- package/dist/collection/components/certificate-viewer/certificate-viewer.js +206 -178
- package/dist/collection/components/certificate-viewer/certificate-viewer.js.map +1 -0
- package/dist/collection/components/certificates-viewer/certificates-viewer.css +540 -267
- package/dist/collection/components/certificates-viewer/certificates-viewer.js +261 -266
- package/dist/collection/components/certificates-viewer/certificates-viewer.js.map +1 -0
- package/dist/collection/components/circular-progress/circular-progress.css +2 -11
- package/dist/collection/components/circular-progress/circular-progress.js +60 -63
- package/dist/collection/components/circular-progress/circular-progress.js.map +1 -0
- package/dist/collection/components/crl-viewer/crl-viewer.js +166 -139
- package/dist/collection/components/crl-viewer/crl-viewer.js.map +1 -0
- package/dist/collection/components/csr-viewer/csr-viewer.js +149 -124
- package/dist/collection/components/csr-viewer/csr-viewer.js.map +1 -0
- package/dist/collection/components/highlight-words/highlight-words.css +1 -9
- package/dist/collection/components/highlight-words/highlight-words.js +35 -28
- package/dist/collection/components/highlight-words/highlight-words.js.map +1 -0
- package/dist/collection/components/icons/actions.js +16 -0
- package/dist/collection/components/icons/actions.js.map +1 -0
- package/dist/collection/components/icons/arrow_bottom.js +16 -0
- package/dist/collection/components/icons/arrow_bottom.js.map +1 -0
- package/dist/collection/components/icons/arrow_top.js +16 -0
- package/dist/collection/components/icons/arrow_top.js.map +1 -0
- package/dist/collection/components/icons/cross.js +16 -0
- package/dist/collection/components/icons/cross.js.map +1 -0
- package/dist/collection/components/icons/details.js +16 -0
- package/dist/collection/components/icons/details.js.map +1 -0
- package/dist/collection/components/icons/download.js +16 -0
- package/dist/collection/components/icons/download.js.map +1 -0
- package/dist/collection/components/icons/index.js +11 -0
- package/dist/collection/components/icons/index.js.map +1 -0
- package/dist/collection/components/icons/link.js +16 -0
- package/dist/collection/components/icons/link.js.map +1 -0
- package/dist/collection/components/link/index.js +5 -0
- package/dist/collection/components/link/index.js.map +1 -0
- package/dist/collection/components/link/link.js +9 -61
- package/dist/collection/components/link/link.js.map +1 -0
- package/dist/collection/components/text-hider/text-hider.css +9 -36
- package/dist/collection/components/text-hider/text-hider.js +21 -68
- package/dist/collection/components/text-hider/text-hider.js.map +1 -0
- package/dist/collection/components/typography/index.js +5 -0
- package/dist/collection/components/typography/index.js.map +1 -0
- package/dist/collection/components/typography/typography.js +39 -126
- package/dist/collection/components/typography/typography.js.map +1 -0
- package/dist/collection/constants/logs.js +1 -0
- package/dist/collection/constants/logs.js.map +1 -0
- package/dist/collection/constants/oids.js +5 -2
- package/dist/collection/constants/oids.js.map +1 -0
- package/dist/collection/crypto/asn_data.js +13 -7
- package/dist/collection/crypto/asn_data.js.map +1 -0
- package/dist/collection/crypto/attribute.js +11 -10
- package/dist/collection/crypto/attribute.js.map +1 -0
- package/dist/collection/crypto/crl.js +9 -8
- package/dist/collection/crypto/crl.js.map +1 -0
- package/dist/collection/crypto/csr.js +11 -10
- package/dist/collection/crypto/csr.js.map +1 -0
- package/dist/collection/crypto/extension.js +16 -15
- package/dist/collection/crypto/extension.js.map +1 -0
- package/dist/collection/crypto/index.js +1 -0
- package/dist/collection/crypto/index.js.map +1 -0
- package/dist/collection/crypto/name.js +15 -9
- package/dist/collection/crypto/name.js.map +1 -0
- package/dist/collection/crypto/provider.js +4 -3
- package/dist/collection/crypto/provider.js.map +1 -0
- package/dist/collection/crypto/utils.js +4 -3
- package/dist/collection/crypto/utils.js.map +1 -0
- package/dist/collection/crypto/x509_attribute_certificate.js +9 -8
- package/dist/collection/crypto/x509_attribute_certificate.js.map +1 -0
- package/dist/collection/crypto/x509_certificate.js +12 -11
- package/dist/collection/crypto/x509_certificate.js.map +1 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/locales/en.json +4 -3
- package/dist/collection/utils/date_formatter.js +3 -2
- package/dist/collection/utils/date_formatter.js.map +1 -0
- package/dist/collection/utils/download.js +3 -2
- package/dist/collection/utils/download.js.map +1 -0
- package/dist/collection/utils/download_from_buffer.js +1 -0
- package/dist/collection/utils/download_from_buffer.js.map +1 -0
- package/dist/collection/utils/get_string_by_oid.js +2 -1
- package/dist/collection/utils/get_string_by_oid.js.map +1 -0
- package/dist/collection/utils/index.js +2 -1
- package/dist/collection/utils/index.js.map +1 -0
- package/dist/collection/utils/is_link.js +1 -0
- package/dist/collection/utils/is_link.js.map +1 -0
- package/dist/collection/utils/l10n.js +2 -1
- package/dist/collection/utils/l10n.js.map +1 -0
- package/dist/collection/utils/read_file.js +1 -0
- package/dist/collection/utils/read_file.js.map +1 -0
- package/dist/collection/utils/third_party_links.js +1 -0
- package/dist/collection/utils/third_party_links.js.map +1 -0
- package/dist/collection/utils/validator.js +1 -0
- package/dist/collection/utils/validator.js.map +1 -0
- package/dist/collection/www-copy/index.js +138 -32
- package/dist/esm/arrow_top-efd3a56d.js +34 -0
- package/dist/esm/arrow_top-efd3a56d.js.map +1 -0
- package/dist/esm/button-35146bdd.js +74 -0
- package/dist/esm/button-35146bdd.js.map +1 -0
- package/dist/esm/{certification_request-db83dd19.js → certification_request-5cadde9f.js} +175 -11
- package/dist/esm/certification_request-5cadde9f.js.map +1 -0
- package/dist/esm/{crl-34288843.js → crl-11670c3e.js} +7 -6
- package/dist/esm/crl-11670c3e.js.map +1 -0
- package/dist/esm/download-0cc3077a.js +21 -0
- package/dist/esm/download-0cc3077a.js.map +1 -0
- package/dist/esm/download-57c5bf8f.js +470 -0
- package/dist/esm/download-57c5bf8f.js.map +1 -0
- package/dist/esm/index-4079bbb5.js +2448 -0
- package/dist/esm/index-4079bbb5.js.map +1 -0
- package/dist/esm/index.js +3 -1
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loader.js +6 -12
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/{miscellaneous-ee8e1994.js → miscellaneous-1d4e8b41.js} +54 -38
- package/dist/esm/miscellaneous-1d4e8b41.js.map +1 -0
- package/dist/esm/peculiar-attribute-certificate-viewer_3.entry.js +80 -23
- package/dist/esm/peculiar-attribute-certificate-viewer_3.entry.js.map +1 -0
- package/dist/esm/peculiar-button-menu_3.entry.js +104 -0
- package/dist/esm/peculiar-button-menu_3.entry.js.map +1 -0
- package/dist/esm/peculiar-certificate-decoder.entry.js +30 -19
- package/dist/esm/peculiar-certificate-decoder.entry.js.map +1 -0
- package/dist/esm/peculiar-certificate-viewer.entry.js +34 -11
- package/dist/esm/peculiar-certificate-viewer.entry.js.map +1 -0
- package/dist/esm/peculiar-certificates-viewer.entry.js +183 -85
- package/dist/esm/peculiar-certificates-viewer.entry.js.map +1 -0
- package/dist/esm/peculiar-text-hider.entry.js +7 -13
- package/dist/esm/peculiar-text-hider.entry.js.map +1 -0
- package/dist/esm/peculiar.js +8 -58
- package/dist/esm/peculiar.js.map +1 -0
- package/dist/esm/{x509_certificate-1acb3564.js → x509_certificate-dfae6999.js} +4 -3
- package/dist/esm/x509_certificate-dfae6999.js.map +1 -0
- package/dist/esm-es5/arrow_top-efd3a56d.js +19 -0
- package/dist/esm-es5/arrow_top-efd3a56d.js.map +1 -0
- package/dist/esm-es5/button-35146bdd.js +19 -0
- package/dist/esm-es5/button-35146bdd.js.map +1 -0
- package/dist/esm-es5/certification_request-5cadde9f.js +97 -0
- package/dist/esm-es5/certification_request-5cadde9f.js.map +1 -0
- package/dist/esm-es5/crl-11670c3e.js +33 -0
- package/dist/esm-es5/crl-11670c3e.js.map +1 -0
- package/dist/esm-es5/download-0cc3077a.js +12 -0
- package/dist/esm-es5/download-0cc3077a.js.map +1 -0
- package/dist/esm-es5/download-57c5bf8f.js +19 -0
- package/dist/esm-es5/download-57c5bf8f.js.map +1 -0
- package/dist/esm-es5/index-4079bbb5.js +6 -0
- package/dist/esm-es5/index-4079bbb5.js.map +1 -0
- package/dist/esm-es5/index.js +5 -0
- package/dist/esm-es5/index.js.map +1 -0
- package/dist/esm-es5/loader.js +5 -0
- package/dist/esm-es5/loader.js.map +1 -0
- package/dist/esm-es5/miscellaneous-1d4e8b41.js +355 -0
- package/dist/esm-es5/miscellaneous-1d4e8b41.js.map +1 -0
- package/dist/esm-es5/peculiar-attribute-certificate-viewer_3.entry.js +110 -0
- package/dist/esm-es5/peculiar-attribute-certificate-viewer_3.entry.js.map +1 -0
- package/dist/esm-es5/peculiar-button-menu_3.entry.js +12 -0
- package/dist/esm-es5/peculiar-button-menu_3.entry.js.map +1 -0
- package/dist/esm-es5/peculiar-certificate-decoder.entry.js +12 -0
- package/dist/esm-es5/peculiar-certificate-decoder.entry.js.map +1 -0
- package/dist/esm-es5/peculiar-certificate-viewer.entry.js +5 -0
- package/dist/esm-es5/peculiar-certificate-viewer.entry.js.map +1 -0
- package/dist/esm-es5/peculiar-certificates-viewer.entry.js +33 -0
- package/dist/esm-es5/peculiar-certificates-viewer.entry.js.map +1 -0
- package/dist/esm-es5/peculiar-text-hider.entry.js +5 -0
- package/dist/esm-es5/peculiar-text-hider.entry.js.map +1 -0
- package/dist/esm-es5/peculiar.js +5 -0
- package/dist/esm-es5/peculiar.js.map +1 -0
- package/dist/esm-es5/x509_certificate-dfae6999.js +12 -0
- package/dist/esm-es5/x509_certificate-dfae6999.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/peculiar/index.esm.js +2 -1
- package/dist/peculiar/index.esm.js.map +1 -0
- package/dist/peculiar/locales/en.json +4 -3
- package/dist/peculiar/p-0b356bb5.js +6 -0
- package/dist/peculiar/p-0b356bb5.js.map +1 -0
- package/dist/peculiar/p-0bdcdbf7.system.js +355 -0
- package/dist/peculiar/p-0bdcdbf7.system.js.map +1 -0
- package/dist/peculiar/p-17e3c47b.js +12 -0
- package/dist/peculiar/p-17e3c47b.js.map +1 -0
- package/dist/peculiar/p-23555789.system.entry.js +34 -0
- package/dist/peculiar/p-23555789.system.entry.js.map +1 -0
- package/dist/peculiar/p-2fcad8cb.system.js +20 -0
- package/dist/peculiar/p-2fcad8cb.system.js.map +1 -0
- package/dist/peculiar/p-31586b23.system.js +13 -0
- package/dist/peculiar/p-31586b23.system.js.map +1 -0
- package/dist/peculiar/p-43eb3721.js +33 -0
- package/dist/peculiar/p-43eb3721.js.map +1 -0
- package/dist/peculiar/p-5823e6e8.entry.js +12 -0
- package/dist/peculiar/p-5823e6e8.entry.js.map +1 -0
- package/dist/peculiar/p-596836a7.entry.js +33 -0
- package/dist/peculiar/p-596836a7.entry.js.map +1 -0
- package/dist/peculiar/p-5aabeba7.system.js +6 -0
- package/dist/peculiar/p-5aabeba7.system.js.map +1 -0
- package/dist/peculiar/p-6667fe6e.system.js +34 -0
- package/dist/peculiar/p-6667fe6e.system.js.map +1 -0
- package/dist/peculiar/p-6e79b9c8.js +12 -0
- package/dist/peculiar/p-6e79b9c8.js.map +1 -0
- package/dist/peculiar/p-709994c1.js +19 -0
- package/dist/peculiar/p-709994c1.js.map +1 -0
- package/dist/peculiar/p-74c241e7.js +97 -0
- package/dist/peculiar/p-74c241e7.js.map +1 -0
- package/dist/peculiar/p-7f9beaa8.js +19 -0
- package/dist/peculiar/p-7f9beaa8.js.map +1 -0
- package/dist/peculiar/p-80832207.system.js +5 -0
- package/dist/peculiar/p-80832207.system.js.map +1 -0
- package/dist/peculiar/p-8748391f.system.entry.js +5 -0
- package/dist/peculiar/p-8748391f.system.entry.js.map +1 -0
- package/dist/peculiar/p-882e1281.entry.js +12 -0
- package/dist/peculiar/p-882e1281.entry.js.map +1 -0
- package/dist/peculiar/p-90459cec.entry.js +5 -0
- package/dist/peculiar/p-90459cec.entry.js.map +1 -0
- package/dist/peculiar/p-97688065.js +355 -0
- package/dist/peculiar/p-97688065.js.map +1 -0
- package/dist/peculiar/p-99e3aa0c.system.entry.js +111 -0
- package/dist/peculiar/p-99e3aa0c.system.entry.js.map +1 -0
- package/dist/peculiar/p-9b4a8101.system.entry.js +5 -0
- package/dist/peculiar/p-9b4a8101.system.entry.js.map +1 -0
- package/dist/peculiar/p-a053c132.js +19 -0
- package/dist/peculiar/p-a053c132.js.map +1 -0
- package/dist/peculiar/p-a41ecd82.entry.js +5 -0
- package/dist/peculiar/p-a41ecd82.entry.js.map +1 -0
- package/dist/peculiar/p-ae9189f6.system.js +19 -0
- package/dist/peculiar/p-ae9189f6.system.js.map +1 -0
- package/dist/peculiar/p-bd485115.system.entry.js +13 -0
- package/dist/peculiar/p-bd485115.system.entry.js.map +1 -0
- package/dist/peculiar/p-c0a298fd.system.js +97 -0
- package/dist/peculiar/p-c0a298fd.system.js.map +1 -0
- package/dist/peculiar/p-daf23673.system.js +20 -0
- package/dist/peculiar/p-daf23673.system.js.map +1 -0
- package/dist/peculiar/p-e1960173.system.js +5 -0
- package/dist/peculiar/p-e1960173.system.js.map +1 -0
- package/dist/peculiar/p-e2cc7410.entry.js +110 -0
- package/dist/peculiar/p-e2cc7410.entry.js.map +1 -0
- package/dist/peculiar/p-e39de121.system.entry.js +13 -0
- package/dist/peculiar/p-e39de121.system.entry.js.map +1 -0
- package/dist/peculiar/p-e6a3b4d4.system.js +13 -0
- package/dist/peculiar/p-e6a3b4d4.system.js.map +1 -0
- package/dist/peculiar/peculiar.css +1 -1
- package/dist/peculiar/peculiar.esm.js +2 -1
- package/dist/peculiar/peculiar.esm.js.map +1 -0
- package/dist/peculiar/peculiar.js +127 -0
- package/dist/types/components/attribute-certificate-viewer/attribute-certificate-viewer.d.ts +15 -3
- package/dist/types/components/button/button.d.ts +5 -16
- package/dist/types/components/button/index.d.ts +2 -0
- package/dist/types/components/button-menu/button-menu.d.ts +21 -0
- package/dist/types/components/certificate-decoder/certificate-decoder.d.ts +9 -6
- package/dist/types/components/certificate-details-parts/miscellaneous.d.ts +1 -1
- package/dist/types/components/certificate-summary/certificate-summary.d.ts +4 -3
- package/dist/types/components/certificate-summary/index.d.ts +1 -0
- package/dist/types/components/certificate-viewer/certificate-viewer.d.ts +13 -5
- package/dist/types/components/certificates-viewer/certificates-viewer.d.ts +22 -11
- package/dist/types/components/crl-viewer/crl-viewer.d.ts +13 -5
- package/dist/types/components/csr-viewer/csr-viewer.d.ts +13 -5
- package/dist/types/components/icons/actions.d.ts +12 -0
- package/dist/types/components/icons/arrow_bottom.d.ts +12 -0
- package/dist/types/components/icons/arrow_top.d.ts +12 -0
- package/dist/types/components/icons/cross.d.ts +12 -0
- package/dist/types/components/icons/details.d.ts +12 -0
- package/dist/types/components/icons/download.d.ts +12 -0
- package/dist/types/components/icons/index.d.ts +7 -0
- package/dist/types/components/icons/link.d.ts +12 -0
- package/dist/types/components/link/index.d.ts +1 -0
- package/dist/types/components/link/link.d.ts +6 -6
- package/dist/types/components/text-hider/text-hider.d.ts +0 -3
- package/dist/types/components/typography/index.d.ts +1 -0
- package/dist/types/components/typography/typography.d.ts +10 -20
- package/dist/types/components.d.ts +74 -175
- package/dist/types/constants/oids.d.ts +3 -1
- package/dist/types/crypto/attribute.d.ts +1 -1
- package/dist/types/crypto/extension.d.ts +1 -1
- package/dist/types/interface.d.ts +98 -6
- package/dist/types/stencil-public-runtime.d.ts +110 -23
- package/dist/types/utils/l10n.d.ts +5 -4
- package/dist/types/utils/read_file.d.ts +1 -1
- package/hydrate/index.d.ts +218 -0
- package/hydrate/index.js +22549 -0
- package/hydrate/package.json +6 -0
- package/loader/index.d.ts +10 -1
- package/loader/index.js +1 -1
- package/loader/package.json +1 -0
- package/package.json +6 -4
- package/dist/cjs/dom-f57e260e.js +0 -78
- package/dist/cjs/index-064e95c7.js +0 -1441
- package/dist/cjs/l10n-ddc7cff9.js +0 -169
- package/dist/cjs/peculiar-button-split_4.cjs.entry.js +0 -128
- package/dist/cjs/peculiar-button.cjs.entry.js +0 -40
- package/dist/cjs/peculiar-link.cjs.entry.js +0 -29
- package/dist/cjs/peculiar-typography.cjs.entry.js +0 -38
- package/dist/collection/components/button/button.css +0 -81
- package/dist/collection/components/button-split/button-split.css +0 -57
- package/dist/collection/components/button-split/button-split.js +0 -116
- package/dist/collection/components/certificate-summary/certificate-summary.css +0 -49
- package/dist/collection/components/link/link.css +0 -59
- package/dist/collection/components/typography/typography.css +0 -95
- package/dist/esm/dom-f1b08a97.js +0 -76
- package/dist/esm/index-bbd484d9.js +0 -1410
- package/dist/esm/l10n-d48f35ff.js +0 -165
- package/dist/esm/peculiar-button-split_4.entry.js +0 -121
- package/dist/esm/peculiar-button.entry.js +0 -36
- package/dist/esm/peculiar-link.entry.js +0 -25
- package/dist/esm/peculiar-typography.entry.js +0 -34
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/peculiar/p-08aba71b.js +0 -69
- package/dist/peculiar/p-0f7868b1.js +0 -11
- package/dist/peculiar/p-2f213160.entry.js +0 -11
- package/dist/peculiar/p-3c4e4245.js +0 -79
- package/dist/peculiar/p-48a620ff.js +0 -32
- package/dist/peculiar/p-57b89412.entry.js +0 -4
- package/dist/peculiar/p-610b85e3.entry.js +0 -4
- package/dist/peculiar/p-6d37c8b5.entry.js +0 -4
- package/dist/peculiar/p-711b4e1e.js +0 -18
- package/dist/peculiar/p-81ae1305.entry.js +0 -4
- package/dist/peculiar/p-81d33fb4.entry.js +0 -4
- package/dist/peculiar/p-918aeee4.entry.js +0 -4
- package/dist/peculiar/p-9bfd4f58.entry.js +0 -18
- package/dist/peculiar/p-9f4ee110.js +0 -22
- package/dist/peculiar/p-df53fbcc.entry.js +0 -4
- package/dist/peculiar/p-ec250cc4.js +0 -12
- package/dist/peculiar/p-f7683ba5.js +0 -5
- package/dist/types/components/button-split/button-split.d.ts +0 -21
package/dist/collection/components/certificate-details-parts/extensions/policy_mappings_extension.js
CHANGED
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
10
|
*/
|
|
11
|
-
import { h } from
|
|
12
|
-
import { getStringByOID } from
|
|
13
|
-
import { RowValue } from
|
|
14
|
-
import { BasicExtension } from
|
|
11
|
+
import { h } from "@stencil/core";
|
|
12
|
+
import { getStringByOID } from "../../../utils";
|
|
13
|
+
import { RowValue } from "../row";
|
|
14
|
+
import { BasicExtension } from "./basic_extension";
|
|
15
15
|
export const PolicyMappingsExtension = (props) => {
|
|
16
16
|
const { extension } = props;
|
|
17
17
|
return (h(BasicExtension, { extension: extension }, extension.value.map((policy, arrayIndex) => ([
|
|
@@ -20,3 +20,4 @@ export const PolicyMappingsExtension = (props) => {
|
|
|
20
20
|
h(RowValue, { name: "Subject Domain", value: getStringByOID(policy.subjectDomainPolicy) }),
|
|
21
21
|
]))));
|
|
22
22
|
};
|
|
23
|
+
//# sourceMappingURL=policy_mappings_extension.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"policy_mappings_extension.js","sourceRoot":"","sources":["../../../../src/components/certificate-details-parts/extensions/policy_mappings_extension.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAuB,MAAM,eAAe,CAAC;AAGvD,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEhD,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAElC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAMnD,MAAM,CAAC,MAAM,uBAAuB,GACiB,CAAC,KAAK,EAAE,EAAE;EAC7D,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;EAE5B,OAAO,CACL,EAAC,cAAc,IACb,SAAS,EAAE,SAAS,IAEnB,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE,CAAC,CAAC;IAC5C,EAAC,QAAQ,IACP,IAAI,EAAE,WAAW,UAAU,GAAG,CAAC,EAAE,EACjC,KAAK,EAAC,EAAE,GACR;IACF,EAAC,QAAQ,IACP,IAAI,EAAC,eAAe,EACpB,KAAK,EAAE,cAAc,CAAC,MAAM,CAAC,kBAAkB,CAAC,GAChD;IACF,EAAC,QAAQ,IACP,IAAI,EAAC,gBAAgB,EACrB,KAAK,EAAE,cAAc,CAAC,MAAM,CAAC,mBAAmB,CAAC,GACjD;GACH,CAAC,CAAC,CACY,CAClB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport { PolicyMappings } from '@peculiar/asn1-x509';\n\nimport { getStringByOID } from '../../../utils';\nimport { Extension } from '../../../crypto/extension';\nimport { RowValue } from '../row';\n\nimport { BasicExtension } from './basic_extension';\n\ninterface IPolicyMappingsExtensionProps {\n extension: Extension<PolicyMappings>;\n}\n\nexport const PolicyMappingsExtension:\nFunctionalComponent<IPolicyMappingsExtensionProps> = (props) => {\n const { extension } = props;\n\n return (\n <BasicExtension\n extension={extension}\n >\n {extension.value.map((policy, arrayIndex) => ([\n <RowValue\n name={`Policy #${arrayIndex + 1}`}\n value=\"\"\n />,\n <RowValue\n name=\"Issuer Domain\"\n value={getStringByOID(policy.issuerDomainPolicy)}\n />,\n <RowValue\n name=\"Subject Domain\"\n value={getStringByOID(policy.subjectDomainPolicy)}\n />,\n ]))}\n </BasicExtension>\n );\n};\n"]}
|
|
@@ -8,13 +8,12 @@
|
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
10
|
*/
|
|
11
|
-
import { h } from
|
|
12
|
-
import { RowValue } from
|
|
13
|
-
import { dateShort } from
|
|
14
|
-
import { BasicExtension } from
|
|
11
|
+
import { h } from "@stencil/core";
|
|
12
|
+
import { RowValue } from "../row";
|
|
13
|
+
import { dateShort } from "../../../utils";
|
|
14
|
+
import { BasicExtension } from "./basic_extension";
|
|
15
15
|
export const PrivateKeyUsagePeriodExtension = (props) => {
|
|
16
16
|
const { extension } = props;
|
|
17
|
-
return (h(BasicExtension, { extension: extension },
|
|
18
|
-
h(RowValue, { name: "Not Before", value: dateShort(extension.value.notBefore) }),
|
|
19
|
-
h(RowValue, { name: "Not After", value: dateShort(extension.value.notAfter) })));
|
|
17
|
+
return (h(BasicExtension, { extension: extension }, h(RowValue, { name: "Not Before", value: dateShort(extension.value.notBefore) }), h(RowValue, { name: "Not After", value: dateShort(extension.value.notAfter) })));
|
|
20
18
|
};
|
|
19
|
+
//# sourceMappingURL=private_key_usage_period_extension.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"private_key_usage_period_extension.js","sourceRoot":"","sources":["../../../../src/components/certificate-details-parts/extensions/private_key_usage_period_extension.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAuB,MAAM,eAAe,CAAC;AAGvD,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAElC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAMnD,MAAM,CAAC,MAAM,8BAA8B,GACiB,CAAC,KAAK,EAAE,EAAE;EACpE,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;EAE5B,OAAO,CACL,EAAC,cAAc,IACb,SAAS,EAAE,SAAS;IAEpB,EAAC,QAAQ,IACP,IAAI,EAAC,YAAY,EACjB,KAAK,EAAE,SAAS,CAAC,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC,GAC3C;IACF,EAAC,QAAQ,IACP,IAAI,EAAC,WAAW,EAChB,KAAK,EAAE,SAAS,CAAC,SAAS,CAAC,KAAK,CAAC,QAAQ,CAAC,GAC1C,CACa,CAClB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport { PrivateKeyUsagePeriod } from '@peculiar/asn1-x509';\n\nimport { RowValue } from '../row';\nimport { Extension } from '../../../crypto/extension';\nimport { dateShort } from '../../../utils';\n\nimport { BasicExtension } from './basic_extension';\n\ninterface IPrivateKeyUsagePeriodExtensionProps {\n extension: Extension<PrivateKeyUsagePeriod>;\n}\n\nexport const PrivateKeyUsagePeriodExtension:\nFunctionalComponent<IPrivateKeyUsagePeriodExtensionProps> = (props) => {\n const { extension } = props;\n\n return (\n <BasicExtension\n extension={extension}\n >\n <RowValue\n name=\"Not Before\"\n value={dateShort(extension.value.notBefore)}\n />\n <RowValue\n name=\"Not After\"\n value={dateShort(extension.value.notAfter)}\n />\n </BasicExtension>\n );\n};\n"]}
|
package/dist/collection/components/certificate-details-parts/extensions/qc_statements_extension.js
CHANGED
|
@@ -8,14 +8,14 @@
|
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
10
|
*/
|
|
11
|
-
import { h } from
|
|
12
|
-
import { id_qcs_pkixQCSyntax_v2, SemanticsInformation, } from
|
|
13
|
-
import { id_etsi_qcs_qcType, QcType, id_etsi_qcs_qcPDS, PdsLocations, id_etsi_qcs_qcRetentionPeriod, QcEuRetentionPeriod, } from
|
|
14
|
-
import { AsnParser } from
|
|
15
|
-
import { Convert } from
|
|
16
|
-
import { getStringByOID } from
|
|
17
|
-
import { RowValue, TableRowTable } from
|
|
18
|
-
import { BasicExtension } from
|
|
11
|
+
import { h } from "@stencil/core";
|
|
12
|
+
import { id_qcs_pkixQCSyntax_v2, SemanticsInformation, } from "@peculiar/asn1-x509-qualified";
|
|
13
|
+
import { id_etsi_qcs_qcType, QcType, id_etsi_qcs_qcPDS, PdsLocations, id_etsi_qcs_qcRetentionPeriod, QcEuRetentionPeriod, } from "@peculiar/asn1-x509-qualified-etsi";
|
|
14
|
+
import { AsnParser } from "@peculiar/asn1-schema";
|
|
15
|
+
import { Convert } from "pvtsutils";
|
|
16
|
+
import { getStringByOID } from "../../../utils";
|
|
17
|
+
import { RowValue, TableRowTable } from "../row";
|
|
18
|
+
import { BasicExtension } from "./basic_extension";
|
|
19
19
|
export const QCStatementsExtension = (props) => {
|
|
20
20
|
const { extension } = props;
|
|
21
21
|
function renderStatementInfo(statementId, statementInfo) {
|
|
@@ -37,18 +37,15 @@ export const QCStatementsExtension = (props) => {
|
|
|
37
37
|
if (statementId === id_etsi_qcs_qcPDS) {
|
|
38
38
|
const pdsLocations = AsnParser.parse(statementInfo, PdsLocations);
|
|
39
39
|
return ([
|
|
40
|
-
h(RowValue, { name: "PDS Locations
|
|
41
|
-
pdsLocations.map((location) => (h(TableRowTable, null,
|
|
42
|
-
h(RowValue, { name: "URL", value: location.url }),
|
|
43
|
-
h(RowValue, { name: "Language", value: location.language })))),
|
|
40
|
+
h(RowValue, { name: "PDS Locations", value: "" }),
|
|
41
|
+
pdsLocations.map((location) => (h(TableRowTable, null, h(RowValue, { name: "URL", value: location.url }), h(RowValue, { name: "Language", value: location.language })))),
|
|
44
42
|
]);
|
|
45
43
|
}
|
|
46
44
|
return (h(RowValue, { name: "Info", value: Convert.ToHex(statementInfo), monospace: true }));
|
|
47
45
|
}
|
|
48
46
|
return (h(BasicExtension, { extension: extension }, Boolean(extension.value.length) && ([
|
|
49
|
-
h(RowValue, { name: "Statements
|
|
50
|
-
extension.value.map((statement) => (h(TableRowTable, null,
|
|
51
|
-
h(RowValue, { name: "Statement ID", value: getStringByOID(statement.statementId) }),
|
|
52
|
-
renderStatementInfo(statement.statementId, statement.statementInfo)))),
|
|
47
|
+
h(RowValue, { name: "Statements", value: "" }),
|
|
48
|
+
extension.value.map((statement) => (h(TableRowTable, null, h(RowValue, { name: "Statement ID", value: getStringByOID(statement.statementId) }), renderStatementInfo(statement.statementId, statement.statementInfo)))),
|
|
53
49
|
])));
|
|
54
50
|
};
|
|
51
|
+
//# sourceMappingURL=qc_statements_extension.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qc_statements_extension.js","sourceRoot":"","sources":["../../../../src/components/certificate-details-parts/extensions/qc_statements_extension.tsx"],"names":[],"mappings":"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","sourcesContent":["/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport {\n QCStatements,\n id_qcs_pkixQCSyntax_v2,\n SemanticsInformation,\n} from '@peculiar/asn1-x509-qualified';\nimport {\n id_etsi_qcs_qcType,\n QcType,\n id_etsi_qcs_qcPDS,\n PdsLocations,\n id_etsi_qcs_qcRetentionPeriod,\n QcEuRetentionPeriod,\n} from '@peculiar/asn1-x509-qualified-etsi';\nimport { AsnParser } from '@peculiar/asn1-schema';\nimport { Convert } from 'pvtsutils';\n\nimport { getStringByOID } from '../../../utils';\nimport { Extension } from '../../../crypto/extension';\nimport { RowValue, TableRowTable } from '../row';\n\nimport { BasicExtension } from './basic_extension';\n\ninterface IQCStatementsExtensionProps {\n extension: Extension<QCStatements>;\n}\n\nexport const QCStatementsExtension: FunctionalComponent<IQCStatementsExtensionProps> = (props) => {\n const { extension } = props;\n\n function renderStatementInfo(statementId: string, statementInfo: ArrayBuffer) {\n if (!statementInfo.byteLength) {\n return null;\n }\n\n if (statementId === id_qcs_pkixQCSyntax_v2) {\n const semanticsInformation = AsnParser.parse(statementInfo, SemanticsInformation);\n\n return (\n <RowValue\n name=\"Semantics Identifier\"\n value={getStringByOID(semanticsInformation.semanticsIdentifier)}\n />\n );\n }\n\n if (statementId === id_etsi_qcs_qcType) {\n const qcTypes = AsnParser.parse(statementInfo, QcType);\n\n return (\n <RowValue\n name=\"QC Types\"\n value={qcTypes.map((type) => getStringByOID(type)).join(', ')}\n />\n );\n }\n\n if (statementId === id_etsi_qcs_qcRetentionPeriod) {\n const retentionPeriod = AsnParser.parse(statementInfo, QcEuRetentionPeriod);\n\n return (\n <RowValue\n name=\"Retention Period\"\n value={`${retentionPeriod.value} years`}\n />\n );\n }\n\n if (statementId === id_etsi_qcs_qcPDS) {\n const pdsLocations = AsnParser.parse(statementInfo, PdsLocations);\n\n return ([\n <RowValue\n name=\"PDS Locations\"\n value=\"\"\n />,\n pdsLocations.map((location) => (\n <TableRowTable>\n <RowValue\n name=\"URL\"\n value={location.url}\n />\n <RowValue\n name=\"Language\"\n value={location.language}\n />\n </TableRowTable>\n )),\n ]);\n }\n\n return (\n <RowValue\n name=\"Info\"\n value={Convert.ToHex(statementInfo)}\n monospace\n />\n );\n }\n\n return (\n <BasicExtension\n extension={extension}\n >\n {Boolean(extension.value.length) && ([\n <RowValue\n name=\"Statements\"\n value=\"\"\n />,\n extension.value.map((statement) => (\n <TableRowTable>\n <RowValue\n name=\"Statement ID\"\n value={getStringByOID(statement.statementId)}\n />\n {renderStatementInfo(statement.statementId, statement.statementInfo)}\n </TableRowTable>\n )),\n ])}\n </BasicExtension>\n );\n};\n"]}
|
|
@@ -8,10 +8,11 @@
|
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
10
|
*/
|
|
11
|
-
import { h } from
|
|
12
|
-
import { BasicExtension } from
|
|
13
|
-
import { GeneralNamePart } from
|
|
11
|
+
import { h } from "@stencil/core";
|
|
12
|
+
import { BasicExtension } from "./basic_extension";
|
|
13
|
+
import { GeneralNamePart } from "./general_name_part";
|
|
14
14
|
export const SubjectAlternativeNameExtension = (props) => {
|
|
15
15
|
const { extension } = props;
|
|
16
16
|
return (h(BasicExtension, { extension: extension }, extension.value.map((gn) => (h(GeneralNamePart, Object.assign({ generalName: gn }, props))))));
|
|
17
17
|
};
|
|
18
|
+
//# sourceMappingURL=subject_alternative_name_extension.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subject_alternative_name_extension.js","sourceRoot":"","sources":["../../../../src/components/certificate-details-parts/extensions/subject_alternative_name_extension.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAuB,MAAM,eAAe,CAAC;AAKvD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAMtD,MAAM,CAAC,MAAM,+BAA+B,GACiB,CAAC,KAAK,EAAE,EAAE;EACrE,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;EAE5B,OAAO,CACL,EAAC,cAAc,IACb,SAAS,EAAE,SAAS,IAEnB,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAC3B,EAAC,eAAe,kBACd,WAAW,EAAE,EAAE,IACX,KAAK,EACT,CACH,CAAC,CACa,CAClB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport { SubjectAlternativeName } from '@peculiar/asn1-x509';\n\nimport { Extension } from '../../../crypto/extension';\n\nimport { BasicExtension } from './basic_extension';\nimport { GeneralNamePart } from './general_name_part';\n\ninterface ISubjectAlternativeNameExtensionProps extends IGeneralNameOptions {\n extension: Extension<SubjectAlternativeName>;\n}\n\nexport const SubjectAlternativeNameExtension:\nFunctionalComponent<ISubjectAlternativeNameExtensionProps> = (props) => {\n const { extension } = props;\n\n return (\n <BasicExtension\n extension={extension}\n >\n {extension.value.map((gn) => (\n <GeneralNamePart\n generalName={gn}\n {...props}\n />\n ))}\n </BasicExtension>\n );\n};\n"]}
|
|
@@ -8,17 +8,16 @@
|
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
10
|
*/
|
|
11
|
-
import { h } from
|
|
12
|
-
import { getStringByOID } from
|
|
13
|
-
import { RowValue, TableRowTable } from
|
|
14
|
-
import { BasicExtension } from
|
|
15
|
-
import { getAttributeValue } from
|
|
11
|
+
import { h } from "@stencil/core";
|
|
12
|
+
import { getStringByOID } from "../../../utils";
|
|
13
|
+
import { RowValue, TableRowTable } from "../row";
|
|
14
|
+
import { BasicExtension } from "./basic_extension";
|
|
15
|
+
import { getAttributeValue } from "./attribute_value";
|
|
16
16
|
export const SubjectDirectoryAttributesExtension = (props) => {
|
|
17
17
|
const { extension } = props;
|
|
18
18
|
return (h(BasicExtension, { extension: extension }, Boolean(extension.value.length) && ([
|
|
19
|
-
h(RowValue, { name: "Attributes
|
|
20
|
-
extension.value.map((attribute) => (h(TableRowTable, null,
|
|
21
|
-
h(RowValue, { name: "Type", value: getStringByOID(attribute.type) }),
|
|
22
|
-
h(RowValue, { name: "Value", value: getAttributeValue(attribute) })))),
|
|
19
|
+
h(RowValue, { name: "Attributes", value: "" }),
|
|
20
|
+
extension.value.map((attribute) => (h(TableRowTable, null, h(RowValue, { name: "Type", value: getStringByOID(attribute.type) }), h(RowValue, { name: "Value", value: getAttributeValue(attribute) })))),
|
|
23
21
|
])));
|
|
24
22
|
};
|
|
23
|
+
//# sourceMappingURL=subject_directory_attributes_extension.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subject_directory_attributes_extension.js","sourceRoot":"","sources":["../../../../src/components/certificate-details-parts/extensions/subject_directory_attributes_extension.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAuB,MAAM,eAAe,CAAC;AAIvD,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAEjD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAMtD,MAAM,CAAC,MAAM,mCAAmC,GACiB,CAAC,KAAK,EAAE,EAAE;EACzE,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;EAE5B,OAAO,CACL,EAAC,cAAc,IACb,SAAS,EAAE,SAAS,IAEnB,OAAO,CAAC,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC;IACnC,EAAC,QAAQ,IACP,IAAI,EAAC,YAAY,EACjB,KAAK,EAAC,EAAE,GACR;IACF,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,CACjC,EAAC,aAAa;MACZ,EAAC,QAAQ,IACP,IAAI,EAAC,MAAM,EACX,KAAK,EAAE,cAAc,CAAC,SAAS,CAAC,IAAI,CAAC,GACrC;MACF,EAAC,QAAQ,IACP,IAAI,EAAC,OAAO,EACZ,KAAK,EAAE,iBAAiB,CAAC,SAAS,CAAC,GACnC,CACY,CACjB,CAAC;GACH,CAAC,CACa,CAClB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport { SubjectDirectoryAttributes } from '@peculiar/asn1-x509';\n\nimport { Extension } from '../../../crypto/extension';\nimport { getStringByOID } from '../../../utils';\nimport { RowValue, TableRowTable } from '../row';\n\nimport { BasicExtension } from './basic_extension';\nimport { getAttributeValue } from './attribute_value';\n\ninterface ISubjectDirectoryAttributesExtensionProps {\n extension: Extension<SubjectDirectoryAttributes>;\n}\n\nexport const SubjectDirectoryAttributesExtension:\nFunctionalComponent<ISubjectDirectoryAttributesExtensionProps> = (props) => {\n const { extension } = props;\n\n return (\n <BasicExtension\n extension={extension}\n >\n {Boolean(extension.value.length) && ([\n <RowValue\n name=\"Attributes\"\n value=\"\"\n />,\n extension.value.map((attribute) => (\n <TableRowTable>\n <RowValue\n name=\"Type\"\n value={getStringByOID(attribute.type)}\n />\n <RowValue\n name=\"Value\"\n value={getAttributeValue(attribute)}\n />\n </TableRowTable>\n )),\n ])}\n </BasicExtension>\n );\n};\n"]}
|
|
@@ -8,24 +8,19 @@
|
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
10
|
*/
|
|
11
|
-
import { h } from
|
|
12
|
-
import { Convert } from
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
11
|
+
import { h } from "@stencil/core";
|
|
12
|
+
import { Convert } from "pvtsutils";
|
|
13
|
+
import { Link } from "../../link";
|
|
14
|
+
import { RowValue } from "../row";
|
|
15
|
+
import { BasicExtension } from "./basic_extension";
|
|
15
16
|
export const SubjectKeyIdentifierExtension = (props) => {
|
|
16
17
|
const { extension, getSubjectKeyIdChildrenLink, getSubjectKeyIdSiblingsLink } = props;
|
|
17
18
|
const keyId = Convert.ToHex(extension.value.buffer);
|
|
18
19
|
const childrenLink = getSubjectKeyIdChildrenLink(keyId);
|
|
19
20
|
const siblingsLink = getSubjectKeyIdSiblingsLink(keyId);
|
|
20
|
-
return (h(BasicExtension, { extension: extension },
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
h("peculiar-link", { href: childrenLink }, "children"),
|
|
25
|
-
"]")),
|
|
26
|
-
siblingsLink && (h("span", null,
|
|
27
|
-
"\u00A0[",
|
|
28
|
-
h("peculiar-link", { href: siblingsLink }, "siblings"),
|
|
29
|
-
"]")),
|
|
30
|
-
] })));
|
|
21
|
+
return (h(BasicExtension, { extension: extension }, h(RowValue, { name: "Key ID", value: keyId, monospace: true, extraValue: [
|
|
22
|
+
childrenLink && (h("span", null, "\u00A0[", h(Link, { href: childrenLink }, "children"), "]")),
|
|
23
|
+
siblingsLink && (h("span", null, "\u00A0[", h(Link, { href: siblingsLink }, "siblings"), "]")),
|
|
24
|
+
] })));
|
|
31
25
|
};
|
|
26
|
+
//# sourceMappingURL=subject_key_identifier_extension.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subject_key_identifier_extension.js","sourceRoot":"","sources":["../../../../src/components/certificate-details-parts/extensions/subject_key_identifier_extension.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAuB,MAAM,eAAe,CAAC;AAEvD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAMnD,MAAM,CAAC,MAAM,6BAA6B,GACiB,CAAC,KAAK,EAAE,EAAE;EACnE,MAAM,EAAE,SAAS,EAAE,2BAA2B,EAAE,2BAA2B,EAAE,GAAG,KAAK,CAAC;EAEtF,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;EACpD,MAAM,YAAY,GAAG,2BAA2B,CAAC,KAAK,CAAC,CAAC;EACxD,MAAM,YAAY,GAAG,2BAA2B,CAAC,KAAK,CAAC,CAAC;EAExD,OAAO,CACL,EAAC,cAAc,IACb,SAAS,EAAE,SAAS;IAEpB,EAAC,QAAQ,IACP,IAAI,EAAC,QAAQ,EACb,KAAK,EAAE,KAAK,EACZ,SAAS,QACT,UAAU,EAAE;QACV,YAAY,IAAI,CACd;;UAEE,EAAC,IAAI,IAAC,IAAI,EAAE,YAAY,eAEjB;cAEF,CACR;QACD,YAAY,IAAI,CACd;;UAEE,EAAC,IAAI,IAAC,IAAI,EAAE,YAAY,eAEjB;cAEF,CACR;OACF,GACD,CACa,CAClB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport { SubjectKeyIdentifier } from '@peculiar/asn1-x509';\nimport { Convert } from 'pvtsutils';\nimport { Extension } from '../../../crypto/extension';\nimport { Link } from '../../link';\nimport { RowValue } from '../row';\nimport { BasicExtension } from './basic_extension';\n\ninterface ISubjectKeyIdentifierExtensionProps extends ISubjectKeyIdentifierOptions {\n extension: Extension<SubjectKeyIdentifier>;\n}\n\nexport const SubjectKeyIdentifierExtension:\nFunctionalComponent<ISubjectKeyIdentifierExtensionProps> = (props) => {\n const { extension, getSubjectKeyIdChildrenLink, getSubjectKeyIdSiblingsLink } = props;\n\n const keyId = Convert.ToHex(extension.value.buffer);\n const childrenLink = getSubjectKeyIdChildrenLink(keyId);\n const siblingsLink = getSubjectKeyIdSiblingsLink(keyId);\n\n return (\n <BasicExtension\n extension={extension}\n >\n <RowValue\n name=\"Key ID\"\n value={keyId}\n monospace\n extraValue={[\n childrenLink && (\n <span>\n [\n <Link href={childrenLink}>\n children\n </Link>\n ]\n </span>\n ),\n siblingsLink && (\n <span>\n [\n <Link href={siblingsLink}>\n siblings\n </Link>\n ]\n </span>\n ),\n ]}\n />\n </BasicExtension>\n );\n};\n"]}
|
package/dist/collection/components/certificate-details-parts/extensions/timestamp_extension.js
CHANGED
|
@@ -8,15 +8,13 @@
|
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
10
|
*/
|
|
11
|
-
import { h } from
|
|
12
|
-
import { RowValue } from
|
|
13
|
-
import { l10n } from
|
|
14
|
-
import { BasicExtension } from
|
|
15
|
-
import { GeneralNamePart } from
|
|
11
|
+
import { h } from "@stencil/core";
|
|
12
|
+
import { RowValue } from "../row";
|
|
13
|
+
import { l10n } from "../../../utils";
|
|
14
|
+
import { BasicExtension } from "./basic_extension";
|
|
15
|
+
import { GeneralNamePart } from "./general_name_part";
|
|
16
16
|
export const TimestampExtension = (props) => {
|
|
17
17
|
const { extension } = props;
|
|
18
|
-
return (h(BasicExtension, { extension: extension },
|
|
19
|
-
h(RowValue, { name: "Version", value: extension.value.version }),
|
|
20
|
-
h(GeneralNamePart, Object.assign({ generalName: extension.value.location }, props)),
|
|
21
|
-
h(RowValue, { name: "Requires Auth", value: extension.value.requiresAuth ? l10n.getString('yes') : l10n.getString('no') })));
|
|
18
|
+
return (h(BasicExtension, { extension: extension }, h(RowValue, { name: "Version", value: extension.value.version }), h(GeneralNamePart, Object.assign({ generalName: extension.value.location }, props)), h(RowValue, { name: "Requires Auth", value: extension.value.requiresAuth ? l10n.getString('yes') : l10n.getString('no') })));
|
|
22
19
|
};
|
|
20
|
+
//# sourceMappingURL=timestamp_extension.js.map
|
package/dist/collection/components/certificate-details-parts/extensions/timestamp_extension.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timestamp_extension.js","sourceRoot":"","sources":["../../../../src/components/certificate-details-parts/extensions/timestamp_extension.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAuB,MAAM,eAAe,CAAC;AAGvD,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAElC,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAEtC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAMtD,MAAM,CAAC,MAAM,kBAAkB,GAAkD,CAAC,KAAK,EAAE,EAAE;EACzF,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;EAE5B,OAAO,CACL,EAAC,cAAc,IACb,SAAS,EAAE,SAAS;IAEpB,EAAC,QAAQ,IACP,IAAI,EAAC,SAAS,EACd,KAAK,EAAE,SAAS,CAAC,KAAK,CAAC,OAAO,GAC9B;IACF,EAAC,eAAe,kBACd,WAAW,EAAE,SAAS,CAAC,KAAK,CAAC,QAAQ,IACjC,KAAK,EACT;IACF,EAAC,QAAQ,IACP,IAAI,EAAC,eAAe,EACpB,KAAK,EAAE,SAAS,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,GAClF,CACa,CAClB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport { Timestamp } from '@peculiar/asn1-adobe-acrobat';\n\nimport { RowValue } from '../row';\nimport { Extension } from '../../../crypto/extension';\nimport { l10n } from '../../../utils';\n\nimport { BasicExtension } from './basic_extension';\nimport { GeneralNamePart } from './general_name_part';\n\ninterface ITimestampExtensionProps extends IGeneralNameOptions {\n extension: Extension<Timestamp>;\n}\n\nexport const TimestampExtension: FunctionalComponent<ITimestampExtensionProps> = (props) => {\n const { extension } = props;\n\n return (\n <BasicExtension\n extension={extension}\n >\n <RowValue\n name=\"Version\"\n value={extension.value.version}\n />\n <GeneralNamePart\n generalName={extension.value.location}\n {...props}\n />\n <RowValue\n name=\"Requires Auth\"\n value={extension.value.requiresAuth ? l10n.getString('yes') : l10n.getString('no')}\n />\n </BasicExtension>\n );\n};\n"]}
|
package/dist/collection/components/certificate-details-parts/extensions/tn_auth_list_extension.js
CHANGED
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
10
|
*/
|
|
11
|
-
import { h } from
|
|
12
|
-
import { RowValue } from
|
|
13
|
-
import { BasicExtension } from
|
|
11
|
+
import { h } from "@stencil/core";
|
|
12
|
+
import { RowValue } from "../row";
|
|
13
|
+
import { BasicExtension } from "./basic_extension";
|
|
14
14
|
export const TNAuthListExtension = (props) => {
|
|
15
15
|
const { extension } = props;
|
|
16
16
|
return (h(BasicExtension, { extension: extension }, extension.value.map((entry, arrayIndex) => ([
|
|
@@ -20,3 +20,4 @@ export const TNAuthListExtension = (props) => {
|
|
|
20
20
|
h(RowValue, { name: "One", value: entry.one }),
|
|
21
21
|
]))));
|
|
22
22
|
};
|
|
23
|
+
//# sourceMappingURL=tn_auth_list_extension.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tn_auth_list_extension.js","sourceRoot":"","sources":["../../../../src/components/certificate-details-parts/extensions/tn_auth_list_extension.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAuB,MAAM,eAAe,CAAC;AAGvD,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAGlC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAMnD,MAAM,CAAC,MAAM,mBAAmB,GAAmD,CAAC,KAAK,EAAE,EAAE;EAC3F,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;EAE5B,OAAO,CACL,EAAC,cAAc,IACb,SAAS,EAAE,SAAS,IAEnB,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,UAAU,EAAE,EAAE,CAAC,CAAC;IAC3C,EAAC,QAAQ,IACP,IAAI,EAAE,UAAU,UAAU,GAAG,CAAC,EAAE,EAChC,KAAK,EAAC,EAAE,GACR;IACF,EAAC,QAAQ,IACP,IAAI,EAAC,KAAK,EACV,KAAK,EAAE,KAAK,CAAC,GAAG,GAChB;IACF,EAAC,QAAQ,IACP,IAAI,EAAC,OAAO,EACZ,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,KAAK,CAAC,KAAK,CAAC,KAAK,WAAW,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,GACpF;IACF,EAAC,QAAQ,IACP,IAAI,EAAC,KAAK,EACV,KAAK,EAAE,KAAK,CAAC,GAAG,GAChB;GACH,CAAC,CAAC,CACY,CAClB,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport { TNAuthorizationList } from '@peculiar/asn1-rfc8226';\n\nimport { RowValue } from '../row';\nimport { Extension } from '../../../crypto/extension';\n\nimport { BasicExtension } from './basic_extension';\n\ninterface ITNAuthListExtensionProps {\n extension: Extension<TNAuthorizationList>;\n}\n\nexport const TNAuthListExtension: FunctionalComponent<ITNAuthListExtensionProps> = (props) => {\n const { extension } = props;\n\n return (\n <BasicExtension\n extension={extension}\n >\n {extension.value.map((entry, arrayIndex) => ([\n <RowValue\n name={`Entry #${arrayIndex + 1}`}\n value=\"\"\n />,\n <RowValue\n name=\"SPC\"\n value={entry.spc}\n />,\n <RowValue\n name=\"Range\"\n value={entry.range ? `start=${entry.range.start} count==${entry.range.count}` : null}\n />,\n <RowValue\n name=\"One\"\n value={entry.one}\n />,\n ]))}\n </BasicExtension>\n );\n};\n"]}
|
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
10
|
*/
|
|
11
|
-
import { h } from
|
|
12
|
-
import { Convert } from
|
|
13
|
-
import { l10n, getStringByOID } from
|
|
14
|
-
import { RowTitle, RowValue } from
|
|
15
|
-
import { GeneralNamePart } from
|
|
11
|
+
import { h } from "@stencil/core";
|
|
12
|
+
import { Convert } from "pvtsutils";
|
|
13
|
+
import { l10n, getStringByOID } from "../../utils";
|
|
14
|
+
import { RowTitle, RowValue } from "./row";
|
|
15
|
+
import { GeneralNamePart } from "./extensions/general_name_part";
|
|
16
16
|
export const Holder = (props) => {
|
|
17
17
|
const { holder } = props;
|
|
18
18
|
if (!holder) {
|
|
@@ -23,13 +23,9 @@ export const Holder = (props) => {
|
|
|
23
23
|
h(RowTitle, { value: l10n.getString('holder') }),
|
|
24
24
|
baseCertificateID && ([
|
|
25
25
|
baseCertificateID.issuer.map((item) => (h(GeneralNamePart, { generalName: item, getDNSNameLink: () => '', getIPAddressLink: () => '' }))),
|
|
26
|
-
h("tr", null,
|
|
27
|
-
h("td", null),
|
|
28
|
-
h("td", null)),
|
|
26
|
+
h("tr", null, h("td", null), h("td", null)),
|
|
29
27
|
h(RowValue, { name: l10n.getString('serialNumber'), value: Convert.ToHex(baseCertificateID.serial), monospace: true }),
|
|
30
|
-
h("tr", null,
|
|
31
|
-
h("td", null),
|
|
32
|
-
h("td", null)),
|
|
28
|
+
h("tr", null, h("td", null), h("td", null)),
|
|
33
29
|
]),
|
|
34
30
|
objectDigestInfo && ([
|
|
35
31
|
h(RowValue, { name: l10n.getString('digestInfo'), value: "" }),
|
|
@@ -39,3 +35,4 @@ export const Holder = (props) => {
|
|
|
39
35
|
]),
|
|
40
36
|
];
|
|
41
37
|
};
|
|
38
|
+
//# sourceMappingURL=holder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"holder.js","sourceRoot":"","sources":["../../../src/components/certificate-details-parts/holder.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAuB,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAMjE,MAAM,CAAC,MAAM,MAAM,GAAsC,CAAC,KAAK,EAAE,EAAE;EACjE,MAAM,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;EAEzB,IAAI,CAAC,MAAM,EAAE;IACX,OAAO,IAAI,CAAC;GACb;EAED,MAAM,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,GAAG,MAAM,CAAC;EAEvD,OAAO;IACL,EAAC,QAAQ,IACP,KAAK,EAAE,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,GAC/B;IACF,iBAAiB,IAAI,CAAC;MACpB,iBAAiB,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CACrC,EAAC,eAAe,IACd,WAAW,EAAE,IAAI,EACjB,cAAc,EAAE,GAAG,EAAE,CAAC,EAAE,EACxB,gBAAgB,EAAE,GAAG,EAAE,CAAC,EAAE,GAC1B,CACH,CAAC;MACF;QACE,aAAM;QACN,aAAM,CACH;MACL,EAAC,QAAQ,IACP,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,EACpC,KAAK,EAAE,OAAO,CAAC,KAAK,CAAC,iBAAiB,CAAC,MAAM,CAAC,EAC9C,SAAS,SACT;MACF;QACE,aAAM;QACN,aAAM,CACH;KACN,CAAC;IACF,gBAAgB,IAAI,CAAC;MACnB,EAAC,QAAQ,IACP,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,EAClC,KAAK,EAAC,EAAE,GACR;MACF,EAAC,QAAQ,IACP,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,EACjC,KAAK,EAAE,cAAc,CAAC,gBAAgB,CAAC,eAAe,CAAC,SAAS,CAAC,GACjE;MACF,EAAC,QAAQ,IACP,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAC7B,KAAK,EAAE,OAAO,CAAC,KAAK,CAAC,gBAAgB,CAAC,YAAY,CAAC,EACnD,SAAS,SACT;MACF,EAAC,QAAQ,IACP,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EAC5B,KAAK,EAAE,gBAAgB,CAAC,kBAAkB,GAC1C;KACH,CAAC;GACH,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport { Convert } from 'pvtsutils';\n\nimport type { X509AttributeCertificate } from '../../crypto';\nimport { l10n, getStringByOID } from '../../utils';\nimport { RowTitle, RowValue } from './row';\nimport { GeneralNamePart } from './extensions/general_name_part';\n\ninterface IHolderProps {\n holder: X509AttributeCertificate['holder'];\n}\n\nexport const Holder: FunctionalComponent<IHolderProps> = (props) => {\n const { holder } = props;\n\n if (!holder) {\n return null;\n }\n\n const { baseCertificateID, objectDigestInfo } = holder;\n\n return [\n <RowTitle\n value={l10n.getString('holder')}\n />,\n baseCertificateID && ([\n baseCertificateID.issuer.map((item) => (\n <GeneralNamePart\n generalName={item}\n getDNSNameLink={() => ''}\n getIPAddressLink={() => ''}\n />\n )),\n <tr>\n <td />\n <td />\n </tr>,\n <RowValue\n name={l10n.getString('serialNumber')}\n value={Convert.ToHex(baseCertificateID.serial)}\n monospace\n />,\n <tr>\n <td />\n <td />\n </tr>,\n ]),\n objectDigestInfo && ([\n <RowValue\n name={l10n.getString('digestInfo')}\n value=\"\"\n />,\n <RowValue\n name={l10n.getString('algorithm')}\n value={getStringByOID(objectDigestInfo.digestAlgorithm.algorithm)}\n />,\n <RowValue\n name={l10n.getString('value')}\n value={Convert.ToHex(objectDigestInfo.objectDigest)}\n monospace\n />,\n <RowValue\n name={l10n.getString('type')}\n value={objectDigestInfo.digestedObjectType}\n />,\n ]),\n ];\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/certificate-details-parts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC","sourcesContent":["export { BasicInformation } from './basic_information';\nexport { PublicKey } from './public_key';\nexport { SubjectName } from './subject_name';\nexport { IssuerName } from './issuer_name';\nexport { Signature } from './signature';\nexport { Thumbprints } from './thumbprints';\nexport { Extensions } from './extensions';\nexport { Attributes } from './attributes';\nexport { Miscellaneous } from './miscellaneous';\nexport { RevokedCertificates } from './revoked_certificates';\nexport { Holder } from './holder';\nexport { Issuer } from './issuer';\n"]}
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
10
|
*/
|
|
11
|
-
import { h } from
|
|
12
|
-
import { l10n } from
|
|
13
|
-
import { RowTitle } from
|
|
14
|
-
import { GeneralNamePart } from
|
|
11
|
+
import { h } from "@stencil/core";
|
|
12
|
+
import { l10n } from "../../utils";
|
|
13
|
+
import { RowTitle } from "./row";
|
|
14
|
+
import { GeneralNamePart } from "./extensions/general_name_part";
|
|
15
15
|
export const Issuer = (props) => {
|
|
16
16
|
const { issuer } = props;
|
|
17
17
|
if (!issuer) {
|
|
@@ -22,3 +22,4 @@ export const Issuer = (props) => {
|
|
|
22
22
|
issuer.map((item) => (h(GeneralNamePart, { generalName: item, getDNSNameLink: () => '', getIPAddressLink: () => '' }))),
|
|
23
23
|
];
|
|
24
24
|
};
|
|
25
|
+
//# sourceMappingURL=issuer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"issuer.js","sourceRoot":"","sources":["../../../src/components/certificate-details-parts/issuer.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAuB,MAAM,eAAe,CAAC;AAGvD,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAMjE,MAAM,CAAC,MAAM,MAAM,GAAsC,CAAC,KAAK,EAAE,EAAE;EACjE,MAAM,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;EAEzB,IAAI,CAAC,MAAM,EAAE;IACX,OAAO,IAAI,CAAC;GACb;EAED,OAAO;IACL,EAAC,QAAQ,IACP,KAAK,EAAE,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,GAC/B;IACF,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CACnB,EAAC,eAAe,IACd,WAAW,EAAE,IAAI,EACjB,cAAc,EAAE,GAAG,EAAE,CAAC,EAAE,EACxB,gBAAgB,EAAE,GAAG,EAAE,CAAC,EAAE,GAC1B,CACH,CAAC;GACH,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\n\nimport type { X509AttributeCertificate } from '../../crypto';\nimport { l10n } from '../../utils';\nimport { RowTitle } from './row';\nimport { GeneralNamePart } from './extensions/general_name_part';\n\ninterface IIssuerProps {\n issuer: X509AttributeCertificate['issuer'];\n}\n\nexport const Issuer: FunctionalComponent<IIssuerProps> = (props) => {\n const { issuer } = props;\n\n if (!issuer) {\n return null;\n }\n\n return [\n <RowTitle\n value={l10n.getString('issuer')}\n />,\n issuer.map((item) => (\n <GeneralNamePart\n generalName={item}\n getDNSNameLink={() => ''}\n getIPAddressLink={() => ''}\n />\n )),\n ];\n};\n"]}
|
|
@@ -8,14 +8,16 @@
|
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
10
|
*/
|
|
11
|
-
import { h } from
|
|
12
|
-
import { l10n } from
|
|
13
|
-
import {
|
|
11
|
+
import { h } from "@stencil/core";
|
|
12
|
+
import { l10n } from "../../utils";
|
|
13
|
+
import { Link } from "../link";
|
|
14
|
+
import { RowTitle, RowValue } from "./row";
|
|
14
15
|
export const IssuerName = (props) => {
|
|
15
16
|
const { name, issuerDnLink } = props;
|
|
16
17
|
const title = l10n.getString('issuerName');
|
|
17
18
|
return [
|
|
18
|
-
h(RowTitle, { value: issuerDnLink ? (h(
|
|
19
|
+
h(RowTitle, { value: issuerDnLink ? (h(Link, { href: issuerDnLink }, title)) : title }),
|
|
19
20
|
name.map((n) => (h(RowValue, { name: n.name || n.type, value: n.value }))),
|
|
20
21
|
];
|
|
21
22
|
};
|
|
23
|
+
//# sourceMappingURL=issuer_name.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"issuer_name.js","sourceRoot":"","sources":["../../../src/components/certificate-details-parts/issuer_name.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAuB,MAAM,eAAe,CAAC;AAGvD,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAO3C,MAAM,CAAC,MAAM,UAAU,GAA2C,CAAC,KAAK,EAAE,EAAE;EAC1E,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,KAAK,CAAC;EACrC,MAAM,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;EAE3C,OAAO;IACL,EAAC,QAAQ,IACP,KAAK,EAAE,YAAY,CAAC,CAAC,CAAC,CACpB,EAAC,IAAI,IACH,IAAI,EAAE,YAAY,IAEjB,KAAK,CACD,CACR,CAAC,CAAC,CAAC,KAAK,GACT;IACF,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CACd,EAAC,QAAQ,IACP,IAAI,EAAE,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,EACtB,KAAK,EAAE,CAAC,CAAC,KAAK,GACd,CACH,CAAC;GACH,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\n\nimport type { INameJSON } from '../../crypto/name';\nimport { l10n } from '../../utils';\nimport { Link } from '../link';\nimport { RowTitle, RowValue } from './row';\n\ninterface ISubjectNameProps {\n name: INameJSON[];\n issuerDnLink?: string;\n}\n\nexport const IssuerName: FunctionalComponent<ISubjectNameProps> = (props) => {\n const { name, issuerDnLink } = props;\n const title = l10n.getString('issuerName');\n\n return [\n <RowTitle\n value={issuerDnLink ? (\n <Link\n href={issuerDnLink}\n >\n {title}\n </Link>\n ) : title}\n />,\n name.map((n) => (\n <RowValue\n name={n.name || n.type}\n value={n.value}\n />\n )),\n ];\n};\n"]}
|
|
@@ -8,22 +8,17 @@
|
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
10
|
*/
|
|
11
|
-
import { h } from
|
|
12
|
-
import { l10n } from
|
|
13
|
-
import {
|
|
11
|
+
import { h } from "@stencil/core";
|
|
12
|
+
import { l10n } from "../../utils";
|
|
13
|
+
import { Button } from "../button";
|
|
14
|
+
import { DownloadIcon } from "../icons";
|
|
15
|
+
import { RowTitle } from "./row";
|
|
14
16
|
export const Miscellaneous = (props) => {
|
|
15
17
|
const { certificate } = props;
|
|
16
18
|
return [
|
|
17
19
|
h(RowTitle, { value: l10n.getString('miscellaneous') }),
|
|
18
|
-
h("tr", null,
|
|
19
|
-
|
|
20
|
-
h("peculiar-typography", { color: "grey_5" },
|
|
21
|
-
l10n.getString('download'),
|
|
22
|
-
":")),
|
|
23
|
-
h("td", null,
|
|
24
|
-
h("peculiar-button-split", { onClick: () => certificate.downloadAsPEM(), actions: [{
|
|
25
|
-
text: l10n.getString('download.der'),
|
|
26
|
-
onClick: () => certificate.downloadAsDER(),
|
|
27
|
-
}] }, l10n.getString('download.pem')))),
|
|
20
|
+
h("tr", null, h("td", null, h(Button, { onClick: () => certificate.downloadAsPEM(), startIcon: h(DownloadIcon, null) }, l10n.getString('download.pem')))),
|
|
21
|
+
h("tr", null, h("td", null, h(Button, { onClick: () => certificate.downloadAsDER(), startIcon: h(DownloadIcon, null) }, l10n.getString('download.der')))),
|
|
28
22
|
];
|
|
29
23
|
};
|
|
24
|
+
//# sourceMappingURL=miscellaneous.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"miscellaneous.js","sourceRoot":"","sources":["../../../src/components/certificate-details-parts/miscellaneous.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAuB,MAAM,eAAe,CAAC;AAQvD,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAQjC,MAAM,CAAC,MAAM,aAAa,GAA6C,CAAC,KAAK,EAAE,EAAE;EAC/E,MAAM,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC;EAE9B,OAAO;IACL,EAAC,QAAQ,IACP,KAAK,EAAE,IAAI,CAAC,SAAS,CAAC,eAAe,CAAC,GACtC;IACF;MACE;QACE,EAAC,MAAM,IACL,OAAO,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,aAAa,EAAE,EAC1C,SAAS,EAAE,EAAC,YAAY,OAAG,IAE1B,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,CACxB,CACN,CACF;IACL;MACE;QACE,EAAC,MAAM,IACL,OAAO,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,aAAa,EAAE,EAC1C,SAAS,EAAE,EAAC,YAAY,OAAG,IAE1B,IAAI,CAAC,SAAS,CAAC,cAAc,CAAC,CACxB,CACN,CACF;GACN,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\n\nimport {\n X509Certificate,\n X509AttributeCertificate,\n CSR,\n CRL,\n} from '../../crypto';\nimport { l10n } from '../../utils';\nimport { Button } from '../button';\nimport { DownloadIcon } from '../icons';\nimport { RowTitle } from './row';\n\ntype CertificateType = X509Certificate | X509AttributeCertificate | CSR | CRL;\n\ninterface IMiscellaneousProps {\n certificate: CertificateType;\n}\n\nexport const Miscellaneous: FunctionalComponent<IMiscellaneousProps> = (props) => {\n const { certificate } = props;\n\n return [\n <RowTitle\n value={l10n.getString('miscellaneous')}\n />,\n <tr>\n <td>\n <Button\n onClick={() => certificate.downloadAsPEM()}\n startIcon={<DownloadIcon />}\n >\n {l10n.getString('download.pem')}\n </Button>\n </td>\n </tr>,\n <tr>\n <td>\n <Button\n onClick={() => certificate.downloadAsDER()}\n startIcon={<DownloadIcon />}\n >\n {l10n.getString('download.der')}\n </Button>\n </td>\n </tr>,\n ];\n};\n"]}
|
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
10
|
*/
|
|
11
|
-
import { h } from
|
|
12
|
-
import { Convert } from
|
|
13
|
-
import { l10n, getStringByOID } from
|
|
14
|
-
import { RowTitle, RowValue, TableRowTable } from
|
|
11
|
+
import { h } from "@stencil/core";
|
|
12
|
+
import { Convert } from "pvtsutils";
|
|
13
|
+
import { l10n, getStringByOID } from "../../utils";
|
|
14
|
+
import { RowTitle, RowValue, TableRowTable } from "./row";
|
|
15
15
|
function getPublicKeyModulus(publicKey) {
|
|
16
|
-
if ('modulus' in publicKey.params) {
|
|
16
|
+
if (publicKey.params && 'modulus' in publicKey.params) {
|
|
17
17
|
let length = publicKey.params.modulus.byteLength;
|
|
18
18
|
if (length % 2) {
|
|
19
19
|
length -= 1;
|
|
@@ -23,7 +23,7 @@ function getPublicKeyModulus(publicKey) {
|
|
|
23
23
|
return null;
|
|
24
24
|
}
|
|
25
25
|
function getPublicKeyExponent(publicKey) {
|
|
26
|
-
if ('publicExponent' in publicKey.params) {
|
|
26
|
+
if (publicKey.params && 'publicExponent' in publicKey.params) {
|
|
27
27
|
return publicKey.params.publicExponent.byteLength === 3
|
|
28
28
|
? 65537
|
|
29
29
|
: 3;
|
|
@@ -38,7 +38,7 @@ export const PublicKey = (props) => {
|
|
|
38
38
|
function renderKeyDetails(key) {
|
|
39
39
|
return [
|
|
40
40
|
h(RowValue, { name: l10n.getString('algorithm'), value: getStringByOID(key.algorithm) }),
|
|
41
|
-
h(RowValue, { name: l10n.getString('namedCurve'), value: getStringByOID('namedCurve' in key.params ? key.params.namedCurve : undefined) }),
|
|
41
|
+
h(RowValue, { name: l10n.getString('namedCurve'), value: getStringByOID((key.params && 'namedCurve' in key.params) ? key.params.namedCurve : undefined) }),
|
|
42
42
|
h(RowValue, { name: l10n.getString('exponent'), value: getPublicKeyExponent(key) }),
|
|
43
43
|
h(RowValue, { name: l10n.getString('modulus'), value: getPublicKeyModulus(key) }),
|
|
44
44
|
h(RowValue, { name: l10n.getString('value'), value: Convert.ToHex(key.value), monospace: true, collapse: true }),
|
|
@@ -50,3 +50,4 @@ export const PublicKey = (props) => {
|
|
|
50
50
|
(Array.isArray(publicKey.params) && publicKey.params.length && publicKey.params.map((param) => (h(TableRowTable, null, renderKeyDetails(param))))),
|
|
51
51
|
];
|
|
52
52
|
};
|
|
53
|
+
//# sourceMappingURL=public_key.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public_key.js","sourceRoot":"","sources":["../../../src/components/certificate-details-parts/public_key.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAuB,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAEnD,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE1D,SAAS,mBAAmB,CAAC,SAAqB;EAChD,IAAI,SAAS,CAAC,MAAM,IAAI,SAAS,IAAI,SAAS,CAAC,MAAM,EAAE;IACrD,IAAI,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC;IAEjD,IAAI,MAAM,GAAG,CAAC,EAAE;MACd,MAAM,IAAI,CAAC,CAAC;KACb;IAED,OAAO,MAAM,GAAG,CAAC,CAAC;GACnB;EAED,OAAO,IAAI,CAAC;AACd,CAAC;AAED,SAAS,oBAAoB,CAAC,SAAqB;EACjD,IAAI,SAAS,CAAC,MAAM,IAAI,gBAAgB,IAAI,SAAS,CAAC,MAAM,EAAE;IAC5D,OAAO,SAAS,CAAC,MAAM,CAAC,cAAc,CAAC,UAAU,KAAK,CAAC;MACrD,CAAC,CAAC,KAAK;MACP,CAAC,CAAC,CAAC,CAAC;GACP;EAED,OAAO,IAAI,CAAC;AACd,CAAC;AAMD,MAAM,CAAC,MAAM,SAAS,GAAyC,CAAC,KAAK,EAAE,EAAE;EACvE,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;EAE5B,IAAI,CAAC,SAAS,EAAE;IACd,OAAO,IAAI,CAAC;GACb;EAED,SAAS,gBAAgB,CAAC,GAAe;IACvC,OAAO;MACL,EAAC,QAAQ,IACP,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,EACjC,KAAK,EAAE,cAAc,CAAC,GAAG,CAAC,SAAS,CAAC,GACpC;MACF,EAAC,QAAQ,IACP,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,EAClC,KAAK,EAAE,cAAc,CAAC,CAAC,GAAG,CAAC,MAAM,IAAI,YAAY,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,GACrG;MACF,EAAC,QAAQ,IACP,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,EAChC,KAAK,EAAE,oBAAoB,CAAC,GAAG,CAAC,GAChC;MACF,EAAC,QAAQ,IACP,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,EAC/B,KAAK,EAAE,mBAAmB,CAAC,GAAG,CAAC,GAC/B;MACF,EAAC,QAAQ,IACP,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAC7B,KAAK,EAAE,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,EAC/B,SAAS,QACT,QAAQ,SACR;KACH,CAAC;EACJ,CAAC;EAED,OAAO;IACL,EAAC,QAAQ,IACP,KAAK,EAAE,IAAI,CAAC,SAAS,CAAC,eAAe,CAAC,GACtC;IACF,gBAAgB,CAAC,SAAS,CAAC;IAC3B,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,SAAS,CAAC,MAAM,CAAC,MAAM,IAAI,SAAS,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAC7F,EAAC,aAAa,QACX,gBAAgB,CAAC,KAAK,CAAC,CACV,CACjB,CAAC,CAAC;GACJ,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport { Convert } from 'pvtsutils';\n\nimport { IPublicKey } from '../../crypto';\nimport { l10n, getStringByOID } from '../../utils';\n\nimport { RowTitle, RowValue, TableRowTable } from './row';\n\nfunction getPublicKeyModulus(publicKey: IPublicKey) {\n if (publicKey.params && 'modulus' in publicKey.params) {\n let length = publicKey.params.modulus.byteLength;\n\n if (length % 2) {\n length -= 1;\n }\n\n return length * 8;\n }\n\n return null;\n}\n\nfunction getPublicKeyExponent(publicKey: IPublicKey) {\n if (publicKey.params && 'publicExponent' in publicKey.params) {\n return publicKey.params.publicExponent.byteLength === 3\n ? 65537\n : 3;\n }\n\n return null;\n}\n\ninterface IPublicKeyProps {\n publicKey: IPublicKey;\n}\n\nexport const PublicKey: FunctionalComponent<IPublicKeyProps> = (props) => {\n const { publicKey } = props;\n\n if (!publicKey) {\n return null;\n }\n\n function renderKeyDetails(key: IPublicKey) {\n return [\n <RowValue\n name={l10n.getString('algorithm')}\n value={getStringByOID(key.algorithm)}\n />,\n <RowValue\n name={l10n.getString('namedCurve')}\n value={getStringByOID((key.params && 'namedCurve' in key.params) ? key.params.namedCurve : undefined)}\n />,\n <RowValue\n name={l10n.getString('exponent')}\n value={getPublicKeyExponent(key)}\n />,\n <RowValue\n name={l10n.getString('modulus')}\n value={getPublicKeyModulus(key)}\n />,\n <RowValue\n name={l10n.getString('value')}\n value={Convert.ToHex(key.value)}\n monospace\n collapse\n />,\n ];\n }\n\n return [\n <RowTitle\n value={l10n.getString('publicKeyInfo')}\n />,\n renderKeyDetails(publicKey),\n (Array.isArray(publicKey.params) && publicKey.params.length && publicKey.params.map((param) => (\n <TableRowTable>\n {renderKeyDetails(param)}\n </TableRowTable>\n ))),\n ];\n};\n"]}
|
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
10
|
*/
|
|
11
|
-
import { h } from
|
|
12
|
-
import { CRLReason, InvalidityDate, CertificateIssuer } from
|
|
13
|
-
import { Convert } from
|
|
14
|
-
import { dateShort, l10n, getStringByOID } from
|
|
15
|
-
import { GeneralNamePart } from
|
|
16
|
-
import { RowTitle, RowValue, TableRowTable } from
|
|
11
|
+
import { h } from "@stencil/core";
|
|
12
|
+
import { CRLReason, InvalidityDate, CertificateIssuer } from "@peculiar/asn1-x509";
|
|
13
|
+
import { Convert } from "pvtsutils";
|
|
14
|
+
import { dateShort, l10n, getStringByOID } from "../../utils";
|
|
15
|
+
import { GeneralNamePart } from "./extensions/general_name_part";
|
|
16
|
+
import { RowTitle, RowValue, TableRowTable } from "./row";
|
|
17
17
|
export const RevokedCertificates = (props) => {
|
|
18
18
|
const { revokedCertificates, getDNSNameLink, getIPAddressLink, } = props;
|
|
19
19
|
if (!revokedCertificates || !revokedCertificates.length) {
|
|
@@ -36,16 +36,14 @@ export const RevokedCertificates = (props) => {
|
|
|
36
36
|
if (extension.value instanceof CertificateIssuer && extension.value.length) {
|
|
37
37
|
return ([
|
|
38
38
|
h(RowValue, { name: `${getStringByOID(extension.asn.extnID)}:`, value: "" }),
|
|
39
|
-
extension.value.map((gn) => (h(TableRowTable, null,
|
|
40
|
-
h(GeneralNamePart, { generalName: gn, getDNSNameLink: getDNSNameLink, getIPAddressLink: getIPAddressLink })))),
|
|
39
|
+
extension.value.map((gn) => (h(TableRowTable, null, h(GeneralNamePart, { generalName: gn, getDNSNameLink: getDNSNameLink, getIPAddressLink: getIPAddressLink })))),
|
|
41
40
|
]);
|
|
42
41
|
}
|
|
43
42
|
return (h(RowValue, { name: getStringByOID(extension.asn.extnID), value: Convert.ToHex(extension.asn.extnValue), monospace: true }));
|
|
44
43
|
})),
|
|
45
44
|
])),
|
|
46
|
-
h("tr", null,
|
|
47
|
-
h("td", { colSpan: 2, class: "divider" },
|
|
48
|
-
h("span", { class: "bg_fill" }))),
|
|
45
|
+
h("tr", null, h("td", { colSpan: 2, class: "divider" }, h("span", null))),
|
|
49
46
|
])),
|
|
50
47
|
];
|
|
51
48
|
};
|
|
49
|
+
//# sourceMappingURL=revoked_certificates.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"revoked_certificates.js","sourceRoot":"","sources":["../../../src/components/certificate-details-parts/revoked_certificates.tsx"],"names":[],"mappings":"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","sourcesContent":["/**\n * @license\n * Copyright (c) Peculiar Ventures, LLC.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { h, FunctionalComponent } from '@stencil/core';\nimport { CRLReason, InvalidityDate, CertificateIssuer } from '@peculiar/asn1-x509';\nimport { Convert } from 'pvtsutils';\n\nimport { dateShort, l10n, getStringByOID } from '../../utils';\nimport { IRevokedCertificate } from '../../crypto';\nimport { GeneralNamePart } from './extensions/general_name_part';\nimport { RowTitle, RowValue, TableRowTable } from './row';\n\ninterface IRevokedCertificatesProps extends IGeneralNameOptions {\n revokedCertificates: IRevokedCertificate[];\n}\n\nexport const RevokedCertificates: FunctionalComponent<IRevokedCertificatesProps> = (props) => {\n const {\n revokedCertificates,\n getDNSNameLink,\n getIPAddressLink,\n } = props;\n\n if (!revokedCertificates || !revokedCertificates.length) {\n return null;\n }\n\n return [\n <RowTitle\n value={l10n.getString('revokedCertificates')}\n />,\n revokedCertificates.map((certificate) => ([\n <RowValue\n name={l10n.getString('serialNumber')}\n value={Convert.ToHex(certificate.userCertificate)}\n monospace\n />,\n <RowValue\n name={l10n.getString('revocationDate')}\n value={dateShort(certificate.revocationDate.getTime())}\n />,\n (certificate.crlEntryExtensions && certificate.crlEntryExtensions.length && ([\n <RowValue\n name={`${l10n.getString('crlEntryExtensions')}:`}\n value=\"\"\n />,\n <TableRowTable>\n {\n certificate.crlEntryExtensions.map((extension) => {\n if (extension.value instanceof CRLReason) {\n return (\n <RowValue\n name={getStringByOID(extension.asn.extnID)}\n value={extension.value.toJSON() || extension.value.reason}\n />\n );\n }\n\n if (extension.value instanceof InvalidityDate) {\n return (\n <RowValue\n name={getStringByOID(extension.asn.extnID)}\n value={extension.value.value.getTime()}\n />\n );\n }\n\n if (extension.value instanceof CertificateIssuer && extension.value.length) {\n return ([\n <RowValue\n name={`${getStringByOID(extension.asn.extnID)}:`}\n value=\"\"\n />,\n extension.value.map((gn) => (\n <TableRowTable>\n <GeneralNamePart\n generalName={gn}\n getDNSNameLink={getDNSNameLink}\n getIPAddressLink={getIPAddressLink}\n />\n </TableRowTable>\n )),\n ]);\n }\n\n return (\n <RowValue\n name={getStringByOID(extension.asn.extnID)}\n value={Convert.ToHex(extension.asn.extnValue)}\n monospace\n />\n );\n })\n }\n </TableRowTable>,\n ])),\n <tr>\n <td colSpan={2} class=\"divider\">\n <span />\n </td>\n </tr>,\n ])),\n ];\n};\n"]}
|