mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-21 20:38:47 +00:00
feat(console): v2 feature cleanup, fix styling issues, instance naming (#3530)
* new console * move npm ci to angular build * rel path for assets * local grpc copy * login policy, rm clear views, features rel path * login_hint param * edit default color values * remove features, zitadel-tier, contact styles * html formatter * rm feature restrictions, fix theming issues * instance naming * statehandler * rm class * rm class * update footer links * statehandler * stroked color Co-authored-by: Livio Amstutz <[email protected]>
This commit is contained in:
co-authored by
Livio Amstutz
parent
f9e79ef8fe
commit
41e60b3d8a
@@ -1,31 +1,33 @@
|
||||
<h1 class="title" mat-dialog-title>{{'KEYBOARDSHORTCUTS.TITLE' | translate}}</h1>
|
||||
<h1 class="title" mat-dialog-title>{{ 'KEYBOARDSHORTCUTS.TITLE' | translate }}</h1>
|
||||
<div mat-dialog-content>
|
||||
|
||||
<div *ngIf="isNotOnSystem" class="keyboard-shortcuts-group">
|
||||
<h2>{{'KEYBOARDSHORTCUTS.UNDERORGCONTEXT' | translate}}</h2>
|
||||
<h2>{{ 'KEYBOARDSHORTCUTS.UNDERORGCONTEXT' | translate }}</h2>
|
||||
<div class="keyboard-shortcuts-wrapper">
|
||||
<div class="keyboard-shortcut" *ngFor="let shortcut of orgShortcuts">
|
||||
<span class="keyboard-shortcut-name cnsl-secondary-text" [innerHTML]="shortcut.i18nKey | translate"></span>
|
||||
<span class="fill-space"></span>
|
||||
<template *ngFor="let key of shortcut.keyboardKeys; index as i" [ngTemplateOutlet]="actionkey"
|
||||
[ngTemplateOutletContext]="{key: key, last: i === shortcut.keyboardKeys.length-1}"></template>
|
||||
<template
|
||||
*ngFor="let key of shortcut.keyboardKeys; index as i"
|
||||
[ngTemplateOutlet]="actionkey"
|
||||
[ngTemplateOutletContext]="{ key: key, last: i === shortcut.keyboardKeys.length - 1 }"
|
||||
></template>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="keyboard-shortcuts-group">
|
||||
<h2>{{'KEYBOARDSHORTCUTS.SIDEWIDE' | translate}}</h2>
|
||||
<h2>{{ 'KEYBOARDSHORTCUTS.SIDEWIDE' | translate }}</h2>
|
||||
<div class="keyboard-shortcuts-wrapper">
|
||||
<ng-container *ngFor="let shortcut of shortcuts">
|
||||
<ng-template cnslHasRole [hasRole]="shortcut.permissions">
|
||||
<ng-template cnslHasFeature [hasFeature]="shortcut.features">
|
||||
<div class="keyboard-shortcut">
|
||||
<span class="keyboard-shortcut-name cnsl-secondary-text"
|
||||
[innerHTML]="shortcut.i18nKey | translate"></span>
|
||||
<span class="fill-space"></span>
|
||||
<template *ngFor="let key of shortcut.keyboardKeys; index as i" [ngTemplateOutlet]="actionkey"
|
||||
[ngTemplateOutletContext]="{key: key, last: i === shortcut.keyboardKeys.length-1}"></template>
|
||||
</div>
|
||||
</ng-template>
|
||||
<div class="keyboard-shortcut">
|
||||
<span class="keyboard-shortcut-name cnsl-secondary-text" [innerHTML]="shortcut.i18nKey | translate"></span>
|
||||
<span class="fill-space"></span>
|
||||
<template
|
||||
*ngFor="let key of shortcut.keyboardKeys; index as i"
|
||||
[ngTemplateOutlet]="actionkey"
|
||||
[ngTemplateOutletContext]="{ key: key, last: i === shortcut.keyboardKeys.length - 1 }"
|
||||
></template>
|
||||
</div>
|
||||
</ng-template>
|
||||
</ng-container>
|
||||
</div>
|
||||
@@ -33,7 +35,7 @@
|
||||
</div>
|
||||
<div mat-dialog-actions class="action">
|
||||
<button mat-stroked-button (click)="closeDialog()">
|
||||
{{'ACTIONS.CLOSE' | translate}}
|
||||
{{ 'ACTIONS.CLOSE' | translate }}
|
||||
</button>
|
||||
<span class="fill-space"></span>
|
||||
</div>
|
||||
@@ -41,7 +43,7 @@
|
||||
<ng-template #actionkey let-key="key" let-last="last">
|
||||
<div class="keyboard-shortcuts-action-key">
|
||||
<div class="keyboard-shortcuts-key-overlay"></div>
|
||||
<span class="keyboard-shortcuts-span">{{key}}</span>
|
||||
<span class="keyboard-shortcuts-span">{{ key }}</span>
|
||||
</div>
|
||||
<!-- <span *ngIf="!last" class="keyboard-shortcuts-plus cnsl-secondary-text">+</span> -->
|
||||
</ng-template>
|
||||
</ng-template>
|
||||
|
||||
@@ -4,13 +4,12 @@ import { FormsModule } from '@angular/forms';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { HasFeatureModule } from 'src/app/directives/has-feature/has-feature.module';
|
||||
import { HasRoleModule } from 'src/app/directives/has-role/has-role.module';
|
||||
|
||||
import { KeyboardShortcutsComponent } from './keyboard-shortcuts.component';
|
||||
|
||||
@NgModule({
|
||||
declarations: [KeyboardShortcutsComponent],
|
||||
imports: [CommonModule, FormsModule, TranslateModule, HasFeatureModule, HasRoleModule, MatButtonModule, MatIconModule],
|
||||
imports: [CommonModule, FormsModule, TranslateModule, HasRoleModule, MatButtonModule, MatIconModule],
|
||||
})
|
||||
export class KeyboardShortcutsModule {}
|
||||
|
||||
Reference in New Issue
Block a user