1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-06 02:23:44 +00:00
Files
browser/apps/web/src/app/admin-console/icons/admin-console-logo.ts
Oscar Hinton 38d8fbdb5a Vertical Vault Navigation (#6957)
* WIP admin console layout

* Update icons

* Migrate more things

* Migrate the last pages

* Move header to web

* Fix story not working

* Convert header component to standalone

* Migrate org layout to standalone

* Enable org switcher

* Add AC to product switcher

* Migrate provider portal to vertical nav

* Migrate PM

* Prettier fixes

* Change AC and PP to use secondary variant layout & update logos

* Remove full width setting

* Remove commented code

* Add header to report pages

* Add provider portal banner

* Fix banner for billing pages

* Move vault title to header

* Prevent scrollbar jumping

* Move send button to header

* Replace search input with bit-search

* Remove unused files and css

* Add banner

* Tweak storage option

* Fix duplicate nav item after merge

* Migrate banner state to state provider framework

* [AC-2078] Fix device approvals header

* [PM-5861] Hide AC from product switcher for users that do not have access

* [PM-5860] Fix Vault and Send page headers

* [AC-2075] Fix missing link on reporting nav group

* [AC-2079] Hide Payment Method and Billing History pages for self-hosted instances

* [AC-2090] Hide reports/event log nav items for users that do not have permission

* [AC-2092] Fix missing provider portal option in product switcher on page load

* Add null check for organization in org layout component

* [AC-2094] Fix missing page header for new client orgs page

* [AC-2093] Update New client button styling

* Fix failing test after merge

* [PM-2087] Use disk-local for web layout banner

* [PM-6041] Update banner copy to read "web app"

* [PM-6094] Update banner link to marketing URL

* [PM-6114] add CL container component to VVR pages (#7802)

* create bit-container component

* add container to all page components

* Fix linting errors after merge with main

* Fix product switcher stories

* Fix web-header stories

* mock org state properly in product switcher stories (#7956)

* refactor: move web layout migration banner logic into a service (#7958)

* make CL codeowner of web header files

* move migration banner logic to service; update stories

* [PM-5862] Ensure a sync has run before hiding navigation links

* Remove leftover banner global state

* Re-add dropped selfHosted ngIf

* Add rel noreferrer

* Remove comment

---------

Co-authored-by: Shane Melton <smelton@bitwarden.com>
Co-authored-by: Will Martin <contact@willmartian.com>
2024-02-23 09:22:45 -08:00

6 lines
12 KiB
TypeScript

import { svgIcon } from "@bitwarden/components";
export const AdminConsoleLogo = svgIcon`
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 580 104" fill="none"><path class="tw-fill-text-alt2" fill-rule="evenodd" d="M126.562 19.86c4.873 0 8.664 1.904 11.448 5.873 2.785 3.89 4.177 9.208 4.177 15.955 0 6.985-1.392 12.383-4.254 16.193-2.862 3.89-6.73 5.715-11.603 5.715-4.873 0-8.586-1.746-11.37-5.397h-.774l-1.47 3.73a1.428 1.428 0 0 1-1.315.874h-6.188c-.773 0-1.392-.635-1.392-1.43V5.572c0-.794.619-1.429 1.392-1.429h8.354c.774 0 1.393.635 1.393 1.429v12.224c0 1.747-.155 4.525-.464 8.335h.464c2.552-4.128 6.497-6.27 11.602-6.27Zm-3.558 9.286c-2.707 0-4.796.873-6.111 2.62-1.237 1.746-1.933 4.683-1.933 8.652v1.27c0 4.525.618 7.78 1.933 9.684 1.315 1.905 3.404 2.937 6.266 2.937 2.243 0 4.177-1.111 5.492-3.334 1.315-2.143 2.011-5.397 2.011-9.446 0-4.127-.696-7.223-2.011-9.287-1.393-2.064-3.326-3.096-5.647-3.096Zm37.593 33.736h-8.354c-.774 0-1.392-.635-1.392-1.429V22.161c0-.794.618-1.429 1.392-1.429h8.354c.773 0 1.392.635 1.392 1.429v39.213c.077.714-.619 1.508-1.392 1.508Zm30.553-8.493c1.625 0 3.559-.318 5.879-.953.619-.159 1.16.318 1.16.953v6.588a.978.978 0 0 1-.541.873c-2.63 1.111-5.956 1.667-9.669 1.667-4.486 0-7.735-1.111-9.746-3.492-2.011-2.303-3.094-5.795-3.094-10.4v-20.24h-4.409c-.542 0-.928-.397-.928-.953v-3.73c0-.08.077-.16.077-.239l6.111-3.73 3.016-8.256c.155-.397.464-.635.851-.635h5.569c.542 0 .929.397.929.952v8.018h11.061c.232 0 .464.238.464.476v7.144c0 .556-.387.953-.928.953h-10.52v20.162c0 1.587.464 2.857 1.315 3.572.773.873 2.011 1.27 3.403 1.27Zm52.058 8.493c-1.083 0-1.934-.714-2.398-1.746l-8.199-25.64c-.542-1.825-1.238-4.603-2.166-8.175h-.232l-.774 2.857-1.624 5.398-8.431 25.64c-.31 1.031-1.238 1.666-2.321 1.666-1.083 0-2.011-.714-2.32-1.826l-10.288-36.91c-.31-1.112.541-2.303 1.779-2.303h.232c.773 0 1.47.556 1.702 1.35l6.033 22.464c1.47 5.874 2.475 10.16 2.939 13.018h.232c1.393-5.874 2.476-9.764 3.172-11.748l7.812-23.496c.31-.952 1.161-1.588 2.243-1.588a2.26 2.26 0 0 1 2.166 1.588l7.271 23.337c1.779 5.954 2.862 9.764 3.249 11.748h.232c.232-1.587 1.16-6.032 2.939-13.176l5.802-22.147c.232-.794.928-1.35 1.702-1.35 1.16 0 2.011 1.112 1.701 2.302l-9.746 36.911c-.309 1.112-1.238 1.826-2.398 1.826h-.309Zm45.946 0c-.696 0-1.315-.555-1.392-1.27l-.696-5.239h-.387c-2.011 2.62-4.022 4.525-6.188 5.636-2.089 1.111-4.641 1.587-7.503 1.587-3.945 0-6.962-1.031-9.128-3.095-1.933-1.826-3.016-4.287-3.171-7.382-.309-4.128 1.392-8.097 4.641-10.399 3.326-2.223 7.967-3.572 14.233-3.572l7.58-.238v-2.7c0-3.969-.773-6.826-2.398-8.811-1.624-1.984-4.022-2.937-7.425-2.937-3.249 0-6.498.794-9.901 2.46-.851.398-1.857 0-2.244-.872-.386-.874 0-1.905.851-2.223 3.868-1.588 7.658-2.46 11.526-2.46 4.409 0 7.657 1.19 9.901 3.571 2.165 2.302 3.248 6.033 3.248 10.875v25.798c-.077.476-.773 1.27-1.547 1.27Zm-16.011-2.699c4.331 0 7.657-1.27 10.055-3.73 2.475-2.461 3.713-6.033 3.713-10.4v-3.968l-6.962.318c-5.646.238-9.591 1.19-12.066 2.698-2.398 1.509-3.636 3.97-3.636 7.144 0 2.54.774 4.604 2.243 6.033 1.702 1.19 3.868 1.905 6.653 1.905Zm45.791-39.133c1.161 0 2.321.08 3.636.238 1.005.159 1.624 1.111 1.47 2.064-.155.952-1.083 1.508-2.012 1.35-1.16-.16-2.32-.318-3.48-.318-3.404 0-6.188 1.508-8.354 4.445-2.166 2.937-3.249 6.747-3.249 11.192v20.797c0 1.032-.774 1.826-1.779 1.826-1.006 0-1.779-.794-1.779-1.826V23.511c0-.874.696-1.588 1.547-1.588s1.547.635 1.547 1.508l.309 5.874h.232c1.625-3.016 3.404-5.16 5.26-6.35 1.779-1.27 4.022-1.905 6.652-1.905Zm27.228 0c2.862 0 5.415.555 7.503 1.587 2.166 1.032 4.022 2.937 5.647 5.557h.232a193.03 193.03 0 0 1-.232-9.287V5.967c0-1.031.773-1.825 1.779-1.825 1.005 0 1.779.794 1.779 1.826v55.485c0 .715-.542 1.27-1.238 1.27-.619 0-1.16-.476-1.237-1.19l-.774-5.16h-.309c-3.017 4.683-7.426 6.985-13.073 6.985-5.569 0-9.669-1.746-12.685-5.318-2.862-3.572-4.409-8.652-4.409-15.4 0-7.064 1.392-12.462 4.331-16.272 2.94-3.413 7.117-5.318 12.686-5.318Zm0 3.413c-4.409 0-7.658 1.588-9.901 4.763-2.166 3.096-3.249 7.62-3.249 13.653 0 11.589 4.409 17.384 13.227 17.384 4.564 0 7.813-1.35 9.901-4.049 2.166-2.698 3.172-7.144 3.172-13.335v-.635c0-6.35-1.006-10.875-3.172-13.574-2.011-2.858-5.337-4.207-9.978-4.207Zm46.333 39.133c-5.801 0-10.287-1.825-13.613-5.556-3.249-3.651-4.874-8.81-4.874-15.4 0-6.588 1.547-11.827 4.719-15.716 3.171-3.97 7.348-5.954 12.685-5.954 4.641 0 8.432 1.667 11.062 5.001 2.784 3.334 4.099 7.938 4.099 13.733v3.016h-28.774c.077 5.636 1.315 9.922 3.867 12.939 2.553 3.016 6.111 4.366 10.829 4.366 2.243 0 4.332-.16 6.034-.477 1.237-.238 2.707-.635 4.486-1.27 1.006-.397 2.089.397 2.089 1.508 0 .635-.387 1.27-1.006 1.509-1.856.793-3.636 1.27-5.26 1.587-1.934.556-4.022.715-6.343.715Zm-1.083-39.212c-3.867 0-6.961 1.27-9.282 3.89-2.32 2.54-3.635 6.35-4.099 11.191h24.752c0-4.683-1.006-8.493-3.017-11.112-2.011-2.62-4.795-3.97-8.354-3.97Zm56.003 38.498c-1.006 0-1.78-.794-1.78-1.826V36.211c0-4.128-.85-7.144-2.475-8.97-1.779-1.825-4.331-2.857-7.89-2.857-4.795 0-8.276 1.19-10.442 3.73-2.166 2.461-3.403 6.51-3.403 11.986v20.798c0 1.032-.774 1.825-1.779 1.825-1.006 0-1.78-.793-1.78-1.825V23.51c0-.952.697-1.667 1.625-1.667.851 0 1.469.636 1.624 1.43l.464 4.127h.232c2.63-4.286 7.194-6.43 13.846-6.43 9.05 0 13.614 5.001 13.614 15.003v24.925c-.077 1.111-.928 1.984-1.856 1.984ZM156.497 3.507c-3.635 0-6.575 2.858-6.575 6.43v.635c0 3.493 3.017 6.43 6.575 6.43 3.558 0 6.575-2.937 6.575-6.43v-.556c0-3.651-3.017-6.509-6.575-6.509Z" clip-rule="evenodd"/><path class="tw-fill-text-alt2" d="M71.228 40.973V12.59H51.893v50.424c3.423-1.863 6.488-3.888 9.192-6.076 6.762-5.44 10.143-10.762 10.143-15.965Zm8.286-34.06v34.06c0 2.542-.482 5.063-1.446 7.561s-2.158 4.716-3.582 6.652c-1.424 1.937-3.122 3.822-5.093 5.655-1.97 1.833-3.79 3.355-5.46 4.568a68.497 68.497 0 0 1-5.221 3.437c-1.813 1.079-3.1 1.81-3.863 2.195-.763.384-1.374.68-1.834.887a2.42 2.42 0 0 1-1.123.266 2.42 2.42 0 0 1-1.122-.266 48.06 48.06 0 0 1-1.834-.887c-.762-.384-2.05-1.116-3.862-2.195a68.497 68.497 0 0 1-5.223-3.437c-1.669-1.213-3.488-2.735-5.46-4.568-1.97-1.833-3.668-3.718-5.092-5.655-1.424-1.936-2.618-4.154-3.582-6.652s-1.446-5.019-1.446-7.561V6.913c0-.768.273-1.434.82-1.995.547-.562 1.194-.843 1.942-.843h49.719c.748 0 1.395.28 1.942.843.547.561.82 1.227.82 1.995ZM220.892 100.1l8.451-22.93h2.916l8.418 22.93h-2.915l-2.097-5.897h-9.761l-2.129 5.897h-2.883Zm5.831-8.124h8.124l-4.062-11.334-4.062 11.334Zm23.674 8.517c-1.616 0-3.036-.371-4.259-1.114-1.201-.743-2.14-1.758-2.817-3.046-.655-1.289-.982-2.752-.982-4.39s.338-3.09 1.015-4.356c.677-1.289 1.616-2.293 2.817-3.014 1.201-.743 2.621-1.114 4.259-1.114 1.332 0 2.511.273 3.537.82a5.9 5.9 0 0 1 2.392 2.292V76.515h2.751V100.1h-2.489l-.262-2.686c-.524.786-1.278 1.495-2.261 2.129-.982.633-2.216.95-3.701.95Zm.295-2.391c1.092 0 2.052-.252 2.882-.754a5.23 5.23 0 0 0 1.966-2.162c.48-.917.72-1.987.72-3.21 0-1.223-.24-2.293-.72-3.21a5.016 5.016 0 0 0-1.966-2.13c-.83-.523-1.79-.786-2.882-.786-1.07 0-2.031.263-2.883.787-.83.502-1.485 1.212-1.965 2.129-.459.917-.688 1.987-.688 3.21 0 1.223.229 2.293.688 3.21.48.917 1.135 1.638 1.965 2.162.852.502 1.813.754 2.883.754Zm12.904 1.998V83.852h2.489l.197 2.359a5.505 5.505 0 0 1 2.096-2.031c.874-.48 1.856-.72 2.948-.72 1.289 0 2.391.261 3.309.785.939.524 1.659 1.322 2.162 2.392a6.252 6.252 0 0 1 2.325-2.326 6.486 6.486 0 0 1 3.243-.852c1.944 0 3.494.59 4.652 1.769 1.157 1.157 1.736 2.948 1.736 5.372v9.5h-2.719v-9.205c0-1.681-.338-2.948-1.015-3.8-.677-.852-1.649-1.277-2.916-1.277-1.31 0-2.402.513-3.275 1.54-.852 1.004-1.278 2.445-1.278 4.323v8.419h-2.752v-9.205c0-1.681-.338-2.948-1.015-3.8-.677-.852-1.649-1.277-2.915-1.277-1.289 0-2.37.513-3.243 1.54-.852 1.004-1.278 2.445-1.278 4.323v8.419h-2.751Zm30.972-19.851c-.546 0-1.004-.175-1.376-.524-.349-.371-.524-.83-.524-1.376 0-.524.175-.96.524-1.31.372-.35.83-.524 1.376-.524.524 0 .972.174 1.343.524.372.35.557.786.557 1.31 0 .546-.185 1.005-.557 1.376a1.89 1.89 0 0 1-1.343.524Zm-1.376 19.851V83.852h2.752V100.1h-2.752Zm7.543 0V83.852h2.49l.163 2.916a5.9 5.9 0 0 1 2.261-2.424c.982-.59 2.096-.885 3.341-.885 1.922 0 3.45.59 4.586 1.769 1.157 1.157 1.736 2.948 1.736 5.372v9.5h-2.752v-9.205c0-3.385-1.397-5.077-4.193-5.077-1.397 0-2.566.513-3.505 1.54-.917 1.004-1.375 2.445-1.375 4.323v8.419h-2.752Zm37.635.393c-2.249 0-4.193-.492-5.831-1.474-1.616-1.005-2.871-2.392-3.767-4.16-.895-1.791-1.343-3.866-1.343-6.224 0-2.337.448-4.39 1.343-6.159.896-1.79 2.151-3.188 3.767-4.192 1.638-1.005 3.582-1.507 5.831-1.507 2.62 0 4.75.633 6.388 1.9 1.659 1.244 2.718 2.991 3.177 5.24h-3.046c-.35-1.419-1.071-2.554-2.162-3.406-1.07-.873-2.523-1.31-4.357-1.31-1.638 0-3.068.382-4.291 1.146-1.223.743-2.173 1.824-2.85 3.243-.655 1.398-.983 3.08-.983 5.045 0 1.965.328 3.658.983 5.077.677 1.398 1.627 2.479 2.85 3.243 1.223.743 2.653 1.114 4.291 1.114 1.834 0 3.287-.415 4.357-1.245 1.091-.852 1.812-1.976 2.162-3.374h3.046c-.459 2.206-1.518 3.93-3.177 5.176-1.638 1.244-3.768 1.867-6.388 1.867Zm20.759 0c-1.529 0-2.905-.35-4.128-1.048-1.222-.7-2.194-1.682-2.915-2.949-.699-1.288-1.048-2.795-1.048-4.52 0-1.725.36-3.221 1.081-4.488.721-1.288 1.692-2.282 2.915-2.98 1.245-.7 2.632-1.049 4.16-1.049 1.529 0 2.905.35 4.128 1.048 1.223.7 2.184 1.693 2.882 2.981.721 1.267 1.081 2.763 1.081 4.488 0 1.725-.36 3.232-1.081 4.52a7.644 7.644 0 0 1-2.948 2.949c-1.223.698-2.598 1.048-4.127 1.048Zm0-2.359c.939 0 1.812-.229 2.62-.688.808-.458 1.464-1.146 1.966-2.063.502-.917.753-2.053.753-3.407s-.251-2.49-.753-3.407c-.481-.917-1.125-1.605-1.933-2.063a5.158 5.158 0 0 0-2.588-.688c-.939 0-1.812.229-2.62.688-.808.458-1.463 1.146-1.966 2.063-.502.918-.753 2.053-.753 3.407s.251 2.49.753 3.407c.503.917 1.147 1.605 1.933 2.063a5.161 5.161 0 0 0 2.588.688Zm11.982 1.966V83.852h2.49l.164 2.916a5.897 5.897 0 0 1 2.26-2.424c.982-.59 2.096-.885 3.341-.885 1.922 0 3.45.59 4.586 1.769 1.157 1.157 1.736 2.948 1.736 5.372v9.5h-2.752v-9.205c0-3.385-1.397-5.077-4.192-5.077-1.398 0-2.566.513-3.505 1.54-.918 1.004-1.376 2.445-1.376 4.323v8.419h-2.752Zm24.97.393c-1.944 0-3.56-.492-4.848-1.474-1.289-.983-2.042-2.315-2.261-3.997h2.818c.174.852.622 1.594 1.343 2.228.742.611 1.736.917 2.98.917 1.158 0 2.01-.24 2.556-.72.545-.503.818-1.093.818-1.77 0-.982-.36-1.637-1.081-1.965-.698-.328-1.692-.622-2.98-.884a16.896 16.896 0 0 1-2.621-.754c-.874-.327-1.605-.786-2.195-1.376-.589-.611-.884-1.408-.884-2.39 0-1.42.524-2.578 1.572-3.473 1.07-.917 2.512-1.376 4.324-1.376 1.725 0 3.134.437 4.226 1.31 1.113.852 1.758 2.075 1.932 3.67h-2.718c-.11-.83-.47-1.475-1.081-1.933-.59-.48-1.387-.721-2.392-.721-.982 0-1.747.207-2.293.622-.524.415-.786.961-.786 1.638 0 .655.339 1.168 1.016 1.54.698.371 1.638.688 2.817.95 1.004.218 1.954.491 2.85.819.917.305 1.659.775 2.227 1.408.59.612.885 1.507.885 2.686.021 1.463-.536 2.675-1.671 3.636-1.114.939-2.632 1.409-4.553 1.409Zm17.557 0c-1.528 0-2.904-.35-4.127-1.048-1.223-.7-2.195-1.682-2.915-2.949-.699-1.288-1.049-2.795-1.049-4.52 0-1.725.361-3.221 1.081-4.488.721-1.288 1.693-2.282 2.916-2.98 1.245-.7 2.631-1.049 4.16-1.049 1.529 0 2.904.35 4.127 1.048 1.223.7 2.184 1.693 2.883 2.981.721 1.267 1.081 2.763 1.081 4.488 0 1.725-.36 3.232-1.081 4.52a7.65 7.65 0 0 1-2.948 2.949c-1.223.698-2.599 1.048-4.128 1.048Zm0-2.359c.939 0 1.813-.229 2.621-.688.808-.458 1.463-1.146 1.965-2.063.503-.917.754-2.053.754-3.407s-.251-2.49-.754-3.407c-.48-.917-1.124-1.605-1.932-2.063a5.161 5.161 0 0 0-2.588-.688c-.939 0-1.813.229-2.621.688-.808.458-1.463 1.146-1.965 2.063-.502.918-.753 2.053-.753 3.407s.251 2.49.753 3.407c.502.917 1.146 1.605 1.933 2.063.808.459 1.67.688 2.587.688Zm11.983 1.966V76.515h2.751V100.1h-2.751Zm14.566.393c-1.55 0-2.926-.35-4.127-1.048-1.201-.721-2.151-1.715-2.85-2.981-.677-1.267-1.016-2.763-1.016-4.488 0-1.703.339-3.188 1.016-4.455.677-1.288 1.616-2.282 2.817-2.98 1.223-.721 2.631-1.082 4.226-1.082 1.572 0 2.926.36 4.061 1.081 1.158.699 2.042 1.627 2.654 2.784a7.88 7.88 0 0 1 .917 3.735c0 .24-.011.48-.033.72v.82h-12.939c.066 1.244.35 2.281.852 3.111.524.808 1.168 1.42 1.933 1.835a5.259 5.259 0 0 0 2.489.622c1.136 0 2.086-.262 2.85-.786a4.505 4.505 0 0 0 1.671-2.13h2.718c-.436 1.507-1.277 2.763-2.522 3.768-1.223.982-2.795 1.474-4.717 1.474Zm0-14.708c-1.31 0-2.478.404-3.505 1.212-1.004.786-1.583 1.944-1.736 3.472h10.22c-.065-1.463-.568-2.61-1.507-3.44-.939-.83-2.096-1.244-3.472-1.244Z"/></svg>
`;