1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216
|
<style include="cr-page-host-style cr-shared-style cr-nav-menu-item-style certificate-manager-style">
:host {
display: flex;
flex-direction: column;
height: 100%;
}
.menu-icon {
padding-inline-end: 8px;
}
#main {
flex: 1;
}
cr-menu-selector {
box-sizing: border-box;
display: block;
height: 100%;
overflow: auto;
padding-top: 8px;
padding-bottom: 8px;
width: 250px;
}
#cr-container-shadow-top {
/* Needs to be higher than #container's z-index to appear above
* scrollbars. */
z-index: 2;
}
#container {
/* CrContainerShadowMixin creates a div inside of #container to
* calculate when the div is off-screen, indicating that the user has
* scrolled #container. Since this div needs to be at the top of
* #container, set align-items to flex-start. Otherwise, the flex layout
* will stretch the div across the entire height of #container and never
* appear off-screen. */
display: flex;
align-items: flex-start;
overflow: auto;
flex: 1;
z-index: 1;
}
#adminCertsSection,
#platformCertsSection,
#platformClientCertsSection,
#userCertsSection {
box-shadow: var(--cr-card-shadow);
/* Do not shorten '0px' below to '0' as the calc function requires
* units. */
min-height: calc(100vh - var(--cr-toolbar-height) -
var(--cr-toolbar-padding-top, 0px));
}
#sidebar {
position: sticky;
top: 0;
}
</style>
<cr-toolbar id="toolbar"
page-name="$i18n{certificateManagerV2Title}"
show-search="[[showSearch_]]" always-show-logo>
</cr-toolbar>
<div id="container">
<div id="sidebar" role="navigation">
<cr-menu-selector id="menu" selectable="a" attr-for-selected="href"
selected-attribute="selected"
selected="[[getSelectedTopLevelHref_(selectedPage_)]]"
on-iron-activate="onMenuItemActivate_">
<a id="localMenuItem" role="menuitem" class="cr-nav-menu-item"
href$="[[generateHrefForPage_(pageEnum_.LOCAL_CERTS)]]"
on-click="onMenuItemClick_">
<cr-icon icon="cr:computer" class="menu-icon"></cr-icon>
$i18n{certificateManagerV2LocalCerts}
</a>
<a id="clientMenuItem" role="menuitem" class="cr-nav-menu-item"
href$="[[generateHrefForPage_(pageEnum_.CLIENT_CERTS)]]"
on-click="onMenuItemClick_">
<cr-icon icon="certmanager:card" class="menu-icon"></cr-icon>
$i18n{certificateManagerV2ClientCerts}
</a>
<a id="crsMenuItem" role="menuitem" class="cr-nav-menu-item"
href$="[[generateHrefForPage_(pageEnum_.CRS_CERTS)]]"
on-click="onMenuItemClick_">
<cr-icon icon="cr:chrome-product" class="menu-icon"></cr-icon>
$i18n{certificateManagerV2CRSCerts}
</a>
</cr-menu-selector>
</div>
<cr-page-selector id="main" attr-for-selected="path"
selected="[[selectedPage_]]">
<div id="clientCertSection" class="cr-centered-card-container"
path$="[[pageEnum_.CLIENT_CERTS]]">
<h2 class="page-title">$i18n{certificateManagerV2ClientCerts}</h2>
$i18n{certificateManagerV2ClientCertsDescription}
<if expr="is_win or is_macosx or is_linux">
<certificate-list
id="provisionedClientCerts"
cert-source="[[certificateSourceEnum_.kProvisionedClientCert]]"
header-text="$i18n{certificateManagerV2ClientCertsFromAdmin}"
hide-export hide-if-empty
on-hash-copied="onHashCopied_">
</certificate-list>
</if>
<if expr="is_chromeos">
<certificate-list
id="extensionsClientCerts"
cert-source="[[certificateSourceEnum_.kExtensionsClientCert]]"
header-text="$i18n{certificateManagerV2ClientCertsFromExtension}"
hide-export hide-if-empty
on-hash-copied="onHashCopied_">
</certificate-list>
</if>
<h3 class="section-title">$i18n{certificateManagerV2Platform}</h3>
<div class="card">
<cr-link-row id="viewOsImportedClientCerts"
label="$i18n{certificateManagerV2PlatformCertsViewLink}"
sub-label="[[numPlatformClientCertsString_]]"
on-click="onClientPlatformCertsLinkRowClick_">
</cr-link-row>
<if expr="is_win or is_macosx">
<cr-link-row external id="manageOsImportedClientCerts" class="hr"
label="$i18n{certificateManagerV2PlatformCertsManageLink}"
button-aria-description="$i18n{certificateManagerV2PlatformCertsManageLinkAriaDescription}"
on-click="onManageCertsExternal_">
</cr-link-row>
</if>
</div>
<if expr="is_chromeos">
<certificate-provisioning-list remove-header-padding>
</certificate-provisioning-list>
</if>
</div>
<local-certs-section id="localCertSection"
path$="[[pageEnum_.LOCAL_CERTS]]" on-hash-copied="onHashCopied_">
</local-certs-section>
<!-- Chrome Root Store section -->
<crs-section id="crsCertSection"
path$="[[pageEnum_.CRS_CERTS]]" on-hash-copied="onHashCopied_">
</crs-section>
<certificate-subpage id="adminCertsSection"
path$="[[pageEnum_.ADMIN_CERTS]]"
class="cr-centered-card-container"
on-hash-copied="onHashCopied_"
navigate-back-target="[[pageEnum_.LOCAL_CERTS]]"
subpage-title="$i18n{certificateManagerV2AdminCertsTitle}"
subpage-cert-lists="[[enterpriseSubpageLists_]]">
</certificate-subpage>
<certificate-subpage id="platformCertsSection"
path$="[[pageEnum_.PLATFORM_CERTS]]"
class="cr-centered-card-container"
on-hash-copied="onHashCopied_"
navigate-back-target="[[pageEnum_.LOCAL_CERTS]]"
subpage-title="$i18n{certificateManagerV2PlatformCertsTitle}"
subpage-cert-lists="[[platformSubpageLists_]]">
</certificate-subpage>
<certificate-subpage id="platformClientCertsSection"
path$="[[pageEnum_.PLATFORM_CLIENT_CERTS]]"
class="cr-centered-card-container"
on-hash-copied="onHashCopied_"
navigate-back-target="[[pageEnum_.CLIENT_CERTS]]"
on-import-result="onImportResult_"
on-delete-result="onDeleteResult_"
subpage-title="$i18n{certificateManagerV2ClientCertsFromPlatform}"
subpage-cert-lists="[[clientPlatformSubpageLists_]]">
</certificate-subpage>
<certificate-subpage id="userCertsSection"
path$="[[pageEnum_.USER_CERTS]]"
class="cr-centered-card-container"
on-hash-copied="onHashCopied_"
on-import-result="onImportResult_"
on-delete-result="onDeleteResult_"
navigate-back-target="[[pageEnum_.LOCAL_CERTS]]"
subpage-title="$i18n{certificateManagerV2UserCertsTitle}"
subpage-cert-lists="[[userSubpageLists_]]">
</certificate-subpage>
</cr-page-selector>
</div>
<cr-toast id="toast" duration="5000">
<span id="toast-message">[[toastMessage_]]</span>
</cr-toast>
<template is="dom-if" if="[[showInfoDialog_]]" restamp>
<certificate-info-dialog id="infoDialog" dialog-title="[[infoDialogTitle_]]"
dialog-message="[[infoDialogMessage_]]" on-close="onInfoDialogClose_">
</certificate-info-dialog>
</template>
<template is="dom-if" if="[[showPasswordDialog_]]" restamp>
<certificate-password-dialog id="passwordDialog"
on-close="onPasswordDialogClose_">
</certificate-password-dialog>
</template>
<template is="dom-if" if="[[showConfirmationDialog_]]" restamp>
<certificate-confirmation-dialog id="confirmationDialog"
dialog-title="[[confirmationDialogTitle_]]"
dialog-message="[[confirmationDialogMessage_]]"
on-close="onConfirmationDialogClose_">
</certificate-confirmation-dialog>
</template>
|