From 4ced394a7c8489b7ee97125505159421fbd4b9cc Mon Sep 17 00:00:00 2001 From: genja Date: Fri, 18 Sep 2026 19:25:19 +0200 Subject: [PATCH] added empty templates and routes for orgminer content --- webapp/src/app/app.routes.ts | 15 +++++++++++++++ .../modules/hierarchy/hierarchy.component.html | 1 + .../modules/hierarchy/hierarchy.component.scss | 0 .../app/modules/hierarchy/hierarchy.component.ts | 11 +++++++++++ .../ui/app-layout/app-layout.component.html | 6 ++++++ .../shared/ui/app-layout/app-layout.component.ts | 2 ++ .../app/shared/ui/app-menu/app-menu.component.ts | 7 +++++++ webapp/src/app/shared/ui/icons.ts | 1 + 8 files changed, 43 insertions(+) create mode 100644 webapp/src/app/modules/hierarchy/hierarchy.component.html create mode 100644 webapp/src/app/modules/hierarchy/hierarchy.component.scss create mode 100644 webapp/src/app/modules/hierarchy/hierarchy.component.ts diff --git a/webapp/src/app/app.routes.ts b/webapp/src/app/app.routes.ts index 44bafe3d..e23f3409 100644 --- a/webapp/src/app/app.routes.ts +++ b/webapp/src/app/app.routes.ts @@ -203,6 +203,21 @@ export const routes: Routes = [ (mod) => mod.KeywordsSearchComponent, ), }, + { + path: 'hierarchy', + canActivate: [ + roleGuard([ + UserRole.User, + UserRole.Manager, + UserRole.Admin, + UserRole.SuperAdmin, + ]), + ], + loadComponent: () => + import('./modules/hierarchy/hierarchy.component').then( + (mod) => mod.HierarchyComponent, + ), + }, { path: 'keywords/search-results', loadComponent: () => diff --git a/webapp/src/app/modules/hierarchy/hierarchy.component.html b/webapp/src/app/modules/hierarchy/hierarchy.component.html new file mode 100644 index 00000000..85be628f --- /dev/null +++ b/webapp/src/app/modules/hierarchy/hierarchy.component.html @@ -0,0 +1 @@ +

hierarchy works!

diff --git a/webapp/src/app/modules/hierarchy/hierarchy.component.scss b/webapp/src/app/modules/hierarchy/hierarchy.component.scss new file mode 100644 index 00000000..e69de29b diff --git a/webapp/src/app/modules/hierarchy/hierarchy.component.ts b/webapp/src/app/modules/hierarchy/hierarchy.component.ts new file mode 100644 index 00000000..fe78cd45 --- /dev/null +++ b/webapp/src/app/modules/hierarchy/hierarchy.component.ts @@ -0,0 +1,11 @@ +import { Component } from '@angular/core'; + +@Component({ + selector: 'app-hierarchy', + imports: [], + templateUrl: './hierarchy.component.html', + styleUrl: './hierarchy.component.scss', +}) +export class HierarchyComponent { + +} diff --git a/webapp/src/app/shared/ui/app-layout/app-layout.component.html b/webapp/src/app/shared/ui/app-layout/app-layout.component.html index 057d4cb2..01566c95 100644 --- a/webapp/src/app/shared/ui/app-layout/app-layout.component.html +++ b/webapp/src/app/shared/ui/app-layout/app-layout.component.html @@ -100,6 +100,12 @@ [icon]="TOPIC_ICON" [size]="200" [diameter]="200" /> + } @else if (resolverState.isResolvingFromOutside('/hierarchy')) { + } @else { } diff --git a/webapp/src/app/shared/ui/app-layout/app-layout.component.ts b/webapp/src/app/shared/ui/app-layout/app-layout.component.ts index edd5d4a8..c0143ea8 100644 --- a/webapp/src/app/shared/ui/app-layout/app-layout.component.ts +++ b/webapp/src/app/shared/ui/app-layout/app-layout.component.ts @@ -31,6 +31,7 @@ import { PUBLICATION_ICON, SWITCH_ACCOUNT_ICON, TOPIC_ICON, + HIERARCHY_ICON, } from '../icons'; @Component({ @@ -61,6 +62,7 @@ export class AppLayoutComponent implements OnInit, OnDestroy { readonly INSTITUTION_ICON = INSTITUTION_ICON; readonly PATENT_ICON = PATENT_ICON; readonly NEWS_ICON = NEWS_ICON; + readonly HIERARCHY_ICON = HIERARCHY_ICON; readonly TOPIC_ICON = TOPIC_ICON; @ViewChild(MatDrawer, { static: false }) diff --git a/webapp/src/app/shared/ui/app-menu/app-menu.component.ts b/webapp/src/app/shared/ui/app-menu/app-menu.component.ts index 772dc086..5d6834e3 100644 --- a/webapp/src/app/shared/ui/app-menu/app-menu.component.ts +++ b/webapp/src/app/shared/ui/app-menu/app-menu.component.ts @@ -24,6 +24,7 @@ import { DASHBOARD_ICON, DOUBLE_ARROW_LEFT_ICON, DOUBLE_ARROW_RIGHT_ICON, + HIERARCHY_ICON, INSTITUTION_ICON, JOBS_ICON, KEYWORDS_ICON, @@ -209,6 +210,12 @@ export class AppMenuComponent { mode: 'url', }, }, + { + label: 'Hierarchie', + icon: HIERARCHY_ICON, + route: '/hierarchy', + disabled: false, + }, { label: 'Accounts', icon: MANAGE_ACCOUNTS_ICON, diff --git a/webapp/src/app/shared/ui/icons.ts b/webapp/src/app/shared/ui/icons.ts index b858d4a2..4ac984b9 100644 --- a/webapp/src/app/shared/ui/icons.ts +++ b/webapp/src/app/shared/ui/icons.ts @@ -18,6 +18,7 @@ export const PERSONS_ICON = 'groups' as const; export const PROJECT_ICON = 'work' as const; export const PUBLICATION_ICON = 'menu_book' as const; export const TOPIC_ICON = 'topic' as const; +export const HIERARCHY_ICON = 'account_tree' as const; export const OVERVIEW_ICON = 'visibility' as const;