feat: console flat navigation, settings (#3581)

* instance routing

* instance naming

* org list

* rm isonsystem

* breadcrumb  type

* routing

* instance members

* fragment refresh org

* settings pages

* settings list, sidenav grouping, i18n

* org-settings, policy changes

* lint

* grid

* rename grid

* fallback to general

* cleanup

* general settings, remove cards

* sidenav for settings, label policy

* i18n

* header, nav backbuild

* general, project nav rehaul

* login text background adapt

* org nav anim

* org, instance settings, fix policy layout, roles

* i18n, active route for project

* lint
This commit is contained in:
Max Peintner
2022-05-09 15:01:36 +02:00
committed by GitHub
parent 94e420bb24
commit 06e3330d2e
188 changed files with 4046 additions and 3639 deletions
@@ -9,11 +9,11 @@ import {
ACTIONS,
DOMAINS,
HOME,
INSTANCE,
KeyboardShortcut,
ME,
ORG,
PROJECTS,
SYSTEM,
USERGRANTS,
USERS,
} from './keyboard-shortcuts';
@@ -59,8 +59,8 @@ export class KeyboardShortcutsService implements OnDestroy {
}
}
if (firstKey.code === 'KeyG' && secondKey.code === 'KeyS') {
if (this.hasPermission(SYSTEM)) {
this.router.navigate(SYSTEM.link);
if (this.hasPermission(INSTANCE)) {
this.router.navigate(INSTANCE.link);
}
}
if (firstKey.code === 'KeyG' && secondKey.code === 'KeyO') {
@@ -11,9 +11,9 @@ export const HOME: KeyboardShortcut = {
keyboardKeys: ['g', 'h'],
};
export const SYSTEM: KeyboardShortcut = {
export const INSTANCE: KeyboardShortcut = {
i18nKey: 'KEYBOARDSHORTCUTS.SHORTCUTS.SYSTEM',
link: ['/system'],
link: ['/instance'],
keyboardKeys: ['g', 's'],
permissions: ['iam.read'],
};
@@ -66,7 +66,7 @@ export const DOMAINS: KeyboardShortcut = {
permissions: ['org.read'],
};
export const SIDEWIDESHORTCUTS = [ME, HOME, SYSTEM, ORG, PROJECTS, USERS, USERGRANTS, ACTIONS, DOMAINS];
export const SIDEWIDESHORTCUTS = [ME, HOME, INSTANCE, ORG, PROJECTS, USERS, USERGRANTS, ACTIONS, DOMAINS];
export const ORGSWITCHER: KeyboardShortcut = {
i18nKey: 'KEYBOARDSHORTCUTS.SHORTCUTS.ORGSWITCHER',