mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-26 12:06:28 +00:00
* chore(deps-dev): bump @types/jasmine from 3.6.9 to 3.7.7 in /console (#1824) Bumps [@types/jasmine](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jasmine) from 3.6.9 to 3.7.7. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jasmine) --- updated-dependencies: - dependency-name: "@types/jasmine" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump google-protobuf from 3.15.8 to 3.17.2 in /console (#1823) Bumps [google-protobuf](https://github.com/protocolbuffers/protobuf) from 3.15.8 to 3.17.2. - [Release notes](https://github.com/protocolbuffers/protobuf/releases) - [Changelog](https://github.com/protocolbuffers/protobuf/blob/master/generate_changelog.py) - [Commits](https://github.com/protocolbuffers/protobuf/compare/v3.15.8...v3.17.2) --- updated-dependencies: - dependency-name: google-protobuf dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump @angular/animations from 12.0.0 to 12.0.3 in /console (#1821) Bumps [@angular/animations](https://github.com/angular/angular/tree/HEAD/packages/animations) from 12.0.0 to 12.0.3. - [Release notes](https://github.com/angular/angular/releases) - [Changelog](https://github.com/angular/angular/blob/master/CHANGELOG.md) - [Commits](https://github.com/angular/angular/commits/12.0.3/packages/animations) --- updated-dependencies: - dependency-name: "@angular/animations" dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump @angular/material from 12.0.0 to 12.0.3 in /console (#1819) Bumps [@angular/material](https://github.com/angular/components) from 12.0.0 to 12.0.3. - [Release notes](https://github.com/angular/components/releases) - [Changelog](https://github.com/angular/components/blob/12.0.3/CHANGELOG.md) - [Commits](https://github.com/angular/components/compare/12.0.0...12.0.3) --- updated-dependencies: - dependency-name: "@angular/material" dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump prettier from 2.2.1 to 2.3.1 in /console (#1818) Bumps [prettier](https://github.com/prettier/prettier) from 2.2.1 to 2.3.1. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](https://github.com/prettier/prettier/compare/2.2.1...2.3.1) --- updated-dependencies: - dependency-name: prettier dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump @angular/platform-browser-dynamic in /console (#1817) Bumps [@angular/platform-browser-dynamic](https://github.com/angular/angular/tree/HEAD/packages/platform-browser-dynamic) from 12.0.0 to 12.0.3. - [Release notes](https://github.com/angular/angular/releases) - [Changelog](https://github.com/angular/angular/blob/master/CHANGELOG.md) - [Commits](https://github.com/angular/angular/commits/12.0.3/packages/platform-browser-dynamic) --- updated-dependencies: - dependency-name: "@angular/platform-browser-dynamic" dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps-dev): bump @types/node from 14.14.37 to 15.12.1 in /console (#1815) Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.37 to 15.12.1. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) --- updated-dependencies: - dependency-name: "@types/node" dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump @angular/common from 12.0.0 to 12.0.3 in /console (#1814) Bumps [@angular/common](https://github.com/angular/angular/tree/HEAD/packages/common) from 12.0.0 to 12.0.3. - [Release notes](https://github.com/angular/angular/releases) - [Changelog](https://github.com/angular/angular/blob/master/CHANGELOG.md) - [Commits](https://github.com/angular/angular/commits/12.0.3/packages/common) --- updated-dependencies: - dependency-name: "@angular/common" dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump @angular/material-moment-adapter from 12.0.0 to 12.0.3 in /console (#1816) * chore(deps): bump @angular/material-moment-adapter in /console Bumps [@angular/material-moment-adapter](https://github.com/angular/components) from 12.0.0 to 12.0.3. - [Release notes](https://github.com/angular/components/releases) - [Changelog](https://github.com/angular/components/blob/12.0.3/CHANGELOG.md) - [Commits](https://github.com/angular/components/compare/12.0.0...12.0.3) --- updated-dependencies: - dependency-name: "@angular/material-moment-adapter" dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * sort Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Max Peintner <max@caos.ch> * chore(deps-dev): bump @angular/language-service in /console (#1822) Bumps [@angular/language-service](https://github.com/angular/angular/tree/HEAD/packages/language-service) from 12.0.0 to 12.0.3. - [Release notes](https://github.com/angular/angular/releases) - [Changelog](https://github.com/angular/angular/blob/master/CHANGELOG.md) - [Commits](https://github.com/angular/angular/commits/12.0.3/packages/language-service) --- updated-dependencies: - dependency-name: "@angular/language-service" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Max Peintner <max@caos.ch> * image cropper * fix: avatar bg colors, preferred username, login script * lint * membership color * rem logs * profile picture component * pic comp * dialog tirgger btn * trigger dialog, styles * lock * interceptor for org, upload, remove * tooltip * lint * stylelint * generate same credentials of username as in login * deletepic * fix disable privatelabeling on missing feature, i18n * lint * stylelint * block loading images if no feature * lint * optimize feature check Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
211 lines
13 KiB
HTML
211 lines
13 KiB
HTML
<ng-container *ngIf="(authService.user | async) || {} as user">
|
||
<ng-container *ngIf="((['iam.read$','iam.write$'] | hasRole)) as iamuser$">
|
||
<mat-toolbar class="root-header">
|
||
<button *ngIf="authenticationService.authenticated" aria-label="Toggle sidenav" mat-icon-button
|
||
(click)="drawer.toggle()">
|
||
<i class="icon las la-bars"></i>
|
||
</button>
|
||
<a class="title" [routerLink]="['/']">
|
||
<img class="logo" alt="zitadel logo" *ngIf="componentCssClass == 'dark-theme'; else lighttheme"
|
||
src="../assets/images/zitadel-logo-solo-light.svg" />
|
||
<ng-template #lighttheme>
|
||
<img alt="zitadel logo" class="logo" src="../assets/images/zitadel-logo-solo-dark.svg" />
|
||
</ng-template>
|
||
</a>
|
||
|
||
<svg class="slash" viewBox="0 0 24 24" width="32" height="32" stroke="currentColor" stroke-width="1"
|
||
stroke-linecap="round" stroke-linejoin="round" fill="none" shape-rendering="geometricPrecision">
|
||
<path d="M16.88 3.549L7.12 20.451"></path>
|
||
</svg>
|
||
|
||
<button class="org-button" (click)="loadOrgs()" *ngIf="user && org" mat-button [matMenuTriggerFor]="menu"
|
||
(menuOpened)="focusFilter()">{{org?.name ? org.name : 'NO NAME'}}
|
||
<mat-icon>
|
||
arrow_drop_down</mat-icon>
|
||
</button>
|
||
|
||
<mat-menu class="menu" #menu="matMenu">
|
||
<div class="spinner-w">
|
||
<mat-spinner diameter="20" *ngIf="orgLoading$ | async" color="accent">
|
||
</mat-spinner>
|
||
</div>
|
||
|
||
<div class="filter-wrapper">
|
||
<input cnslInput class="filter-input" [formControl]="filterControl" autocomplete="off"
|
||
(click)="$event.stopPropagation()" placeholder="{{'ORG.PAGES.FILTERPLACEHOLDER' | translate}}"
|
||
#input>
|
||
</div>
|
||
|
||
<div class="org-wrapper">
|
||
<button [ngClass]="{'active': temporg.id === org?.id}" [disabled]="!temporg.id"
|
||
*ngFor="let temporg of orgs$ | async" mat-menu-item (click)="setActiveOrg(temporg)">
|
||
{{temporg?.name ? temporg.name : 'NO NAME'}}
|
||
</button>
|
||
</div>
|
||
|
||
<button class="show-all" mat-menu-item [routerLink]="[ '/org/overview' ]">{{'MENU.SHOWORGS' |
|
||
translate}}</button>
|
||
|
||
<ng-template appHasRole [appHasRole]="['org.create','iam.write']">
|
||
<button mat-menu-item [routerLink]="[ '/org/create' ]">
|
||
<mat-icon class="avatar">add</mat-icon>
|
||
{{'MENU.NEWORG' | translate}}
|
||
</button>
|
||
</ng-template>
|
||
</mat-menu>
|
||
<span class="fill-space"></span>
|
||
|
||
<a class="doc-link" href="https://docs.zitadel.ch" mat-stroked-button target="_blank">{{'MENU.DOCUMENTATION'
|
||
| translate}}</a>
|
||
<div (clickOutside)="closeAccountCard()" class="icon-container">
|
||
<app-avatar
|
||
*ngIf="user && (user.human?.profile?.displayName || (user.human?.profile?.firstName && user.human?.profile?.lastName))"
|
||
class="avatar dontcloseonclick" (click)="showAccount = !showAccount" [active]="showAccount" [forColor]="user?.preferredLoginName"
|
||
[name]="user.human.profile.displayName ? user.human.profile.displayName : (user.human.profile.firstName + ' '+ user.human.profile.lastName)"
|
||
[size]="38">
|
||
</app-avatar>
|
||
<app-accounts-card @accounts class="a_card mat-elevation-z1" *ngIf="showAccount"
|
||
(close)="showAccount = false" [user]="user" [iamuser]="iamuser$ | async">
|
||
</app-accounts-card>
|
||
</div>
|
||
</mat-toolbar>
|
||
<mat-drawer-container class="main-container">
|
||
<mat-drawer #drawer class="sidenav" [mode]="(isHandset$ | async) ? 'over' : 'side'"
|
||
[opened]="!(isHandset$ | async) && authenticationService.authenticated">
|
||
<div class="side-column">
|
||
<div class="list">
|
||
<a @navitem class="nav-item" [routerLinkActive]="['active']"
|
||
[routerLinkActiveOptions]="{ exact: true }" [routerLink]="['/']">
|
||
<i class="icon las la-home"></i>
|
||
<span class="label">{{ 'MENU.DASHBOARD' | translate }}</span>
|
||
</a>
|
||
|
||
<ng-container *ngIf="authenticationService.authenticationChanged | async">
|
||
<a @navitem matTooltip="{{'MENU.TOOLTIP.PERSONAL' | translate}}" class="nav-item"
|
||
[routerLinkActive]="['active']" [routerLinkActiveOptions]="{ exact: true }"
|
||
[routerLink]="['/users/me']">
|
||
<i class="icon las la-user-circle"></i>
|
||
<span class="label">{{ 'MENU.PERSONAL_INFO' | translate }}</span>
|
||
</a>
|
||
</ng-container>
|
||
|
||
<div *ngIf="org" [@navAnimation]="org">
|
||
<ng-template appHasRole
|
||
[appHasRole]="['org.read']">
|
||
<div @navitem class="divider">
|
||
<div class="line"></div>
|
||
<span>{{org?.name ? org.name : ('MENU.ORGSECTION' | translate)}}</span>
|
||
<div class="hiddenline"></div>
|
||
</div>
|
||
</ng-template>
|
||
|
||
<ng-template appHasRole [appHasRole]="['org.read']">
|
||
<a @navitem matTooltip="{{'MENU.TOOLTIP.ORG' | translate}}" class="nav-item"
|
||
[routerLinkActive]="['active']" [routerLink]="[ '/org']">
|
||
<i class="icon las la-archway"></i>
|
||
<span class="label">{{'MENU.ORGANIZATION' | translate}}</span>
|
||
</a>
|
||
</ng-template>
|
||
|
||
<ng-template appHasRole [appHasRole]="['project.read(:[0-9]*)?']">
|
||
<a @navitem matTooltip="{{'MENU.TOOLTIP.SELFPROJECTS' | translate}}" class="nav-item"
|
||
[routerLinkActive]="['active']" [routerLink]="[ '/projects']">
|
||
<i class="icon las la-layer-group"></i>
|
||
|
||
<div class="c_label">
|
||
<span> {{'MENU.PROJECT' | translate}} </span>
|
||
<span *ngIf="(mgmtService?.ownedProjectsCount | async)"
|
||
class="count">{{mgmtService?.ownedProjectsCount | async}}</span>
|
||
</div>
|
||
</a>
|
||
|
||
<a @navitem matTooltip="{{'MENU.TOOLTIP.GRANTEDPROJECTS' | translate}}"
|
||
*ngIf="mgmtService?.grantedProjectsCount && (mgmtService?.grantedProjectsCount | async)"
|
||
class="nav-item" [routerLinkActive]="['active']"
|
||
[routerLink]="[ '/granted-projects']">
|
||
<i class="icon las la-layer-group"></i>
|
||
<div class="c_label">
|
||
<span>{{ 'MENU.GRANTEDPROJECT' | translate }}</span>
|
||
<span class="count">{{mgmtService?.grantedProjectsCount | async}}</span>
|
||
</div>
|
||
</a>
|
||
</ng-template>
|
||
|
||
<ng-template appHasRole [appHasRole]="['user.read(:[0-9]*)?']">
|
||
<a @navitem matTooltip="{{'MENU.TOOLTIP.HUMANUSERS' | translate}}" class="nav-item"
|
||
[routerLinkActive]="['active']" [routerLink]="[ '/users/list/humans']"
|
||
[routerLinkActiveOptions]="{ exact: true }">
|
||
<i class="icon las la-user-friends"></i>
|
||
<span class="label">{{ 'MENU.HUMANUSERS' | translate }}</span>
|
||
</a>
|
||
|
||
<a @navitem matTooltip="{{'MENU.TOOLTIP.MACHINEUSERS' | translate}}" class="nav-item"
|
||
[routerLinkActive]="['active']" [routerLink]="[ '/users/list/machines']"
|
||
[routerLinkActiveOptions]="{ exact: true }">
|
||
<i class="icon las la-users-cog"></i>
|
||
<span class="label">{{ 'MENU.MACHINEUSERS' | translate }}</span>
|
||
</a>
|
||
</ng-template>
|
||
|
||
<ng-template appHasRole [appHasRole]="['user.grant.read(:[0-9]*)?']">
|
||
<a @navitem matTooltip="{{'MENU.TOOLTIP.AUTHZ' | translate}}" class="nav-item"
|
||
[routerLinkActive]="['active']" [routerLink]="[ '/grants']"
|
||
[routerLinkActiveOptions]="{ exact: true }">
|
||
<i class="icon las la-shield-alt"></i>
|
||
<span class="label">{{ 'MENU.GRANTS' | translate }}</span>
|
||
</a>
|
||
</ng-template>
|
||
</div>
|
||
|
||
<ng-container *ngIf="iamuser$ | async">
|
||
<div @navitem class="divider">
|
||
<div class="line"></div>
|
||
<span>{{'MENU.ADMINSECTION' | translate}}</span>
|
||
<div class="hiddenline"></div>
|
||
</div>
|
||
<a @navitem matTooltip="{{'MENU.TOOLTIP.IAMPOLICIES' | translate}}" class="nav-item"
|
||
[routerLinkActive]="['active']" [routerLink]="[ '/iam','policies']">
|
||
<i class="icon las la-gem"></i>
|
||
<span class="label">{{'MENU.IAMPOLICIES' | translate}}</span>
|
||
</a>
|
||
|
||
<a @navitem matTooltip="{{'MENU.TOOLTIP.IAMEVENTSTORE' | translate}}" class="nav-item"
|
||
[routerLinkActive]="['active']" [routerLink]="[ '/iam', 'eventstore']">
|
||
<i class="icon las la-gem"></i>
|
||
<span class="label">{{'MENU.IAMEVENTSTORE' | translate}}</span>
|
||
</a>
|
||
</ng-container>
|
||
|
||
<span class="fill-space"></span>
|
||
|
||
<div class="toc-line">
|
||
<a class="toc" [href]="language == 'de' ? 'https://zitadel.ch/pdf/agb.pdf' : 'https://zitadel.ch/pdf/tos.pdf'" alt="Terms and Conditions"
|
||
target="_blank">{{'MENU.TOS'
|
||
| translate}}</a>
|
||
<span class="slash">|</span>
|
||
<a class="toc" [href]="language == 'de' ? 'https://zitadel.ch/pdf/datenschutz.pdf' : 'https://zitadel.ch/pdf/privacy.pdf'" alt="Terms and Conditions"
|
||
target="_blank">{{'MENU.PRIVACY'
|
||
| translate}}</a>
|
||
<span> </span>
|
||
</div>
|
||
</div>
|
||
<span class="fill-space"></span>
|
||
</div>
|
||
</mat-drawer>
|
||
<mat-drawer-content class="content">
|
||
<div class="router" [@routeAnimations]="prepareRoute(outlet)">
|
||
<router-outlet #outlet="outlet"></router-outlet>
|
||
</div>
|
||
</mat-drawer-content>
|
||
</mat-drawer-container>
|
||
<div @adminline *ngIf="iamuser$ | async" class="admin-line" [ngClass]="{'expanded': !hideAdminWarn}"
|
||
matTooltip="IAM Administrator">
|
||
<button [matTooltip]="!hideAdminWarn ? 'Unpin': 'Pin'" (click)="toggleAdminHide()" mat-icon-button>
|
||
<mat-icon *ngIf="!hideAdminWarn" svgIcon="mdi_pin"></mat-icon>
|
||
<mat-icon *ngIf="hideAdminWarn" svgIcon="mdi_pin_outline"></mat-icon>
|
||
</button>
|
||
<span>{{'MENU.IAMADMIN' | translate}}</span>
|
||
</div>
|
||
</ng-container>
|
||
</ng-container>
|