Skip to content
Snippets Groups Projects
Commit c2b34a1d authored by OZGCloud's avatar OZGCloud
Browse files

Merge branch 'master' into ozg-6647-network-policy-for-scraper

parents 8e54b2c2 afb777fe
No related branches found
No related tags found
No related merge requests found
Showing
with 44 additions and 19 deletions
...@@ -18,9 +18,9 @@ ...@@ -18,9 +18,9 @@
<div class="flex h-screen w-full justify-center overflow-y-auto"> <div class="flex h-screen w-full justify-center overflow-y-auto">
<ods-navbar data-test-id="navigation"> <ods-navbar data-test-id="navigation">
<ng-container *ngIf="apiRoot | hasLink: ApiRootLinkRel.CONFIGURATION"> <ng-container *ngIf="apiRoot | hasLink: ApiRootLinkRel.CONFIGURATION">
<ods-nav-item caption="Organisationseinheiten" to="/organisationseinheiten"> <!-- <ods-nav-item caption="Organisationseinheiten" to="/organisationseinheiten">-->
<ods-orga-unit-icon icon /> <!-- <ods-orga-unit-icon icon />-->
</ods-nav-item> <!-- </ods-nav-item>-->
<ods-nav-item caption="Postfach" to="/postfach"> <ods-nav-item caption="Postfach" to="/postfach">
<ods-mailbox-icon icon /> <ods-mailbox-icon icon />
</ods-nav-item> </ods-nav-item>
......
...@@ -22,7 +22,7 @@ import { ...@@ -22,7 +22,7 @@ import {
OrgaUnitIconComponent, OrgaUnitIconComponent,
} from '@ods/system'; } from '@ods/system';
import { AuthenticationService } from 'authentication'; import { AuthenticationService } from 'authentication';
import { NavigationComponent } from 'libs/admin-settings/src/lib/navigation/navigation.component'; import { NavigationComponent } from 'libs/admin/settings/src/lib/navigation/navigation.component';
import { createApiRootResource } from 'libs/api-root-shared/test/api-root'; import { createApiRootResource } from 'libs/api-root-shared/test/api-root';
import { getDataTestIdOf } from 'libs/tech-shared/test/data-test'; import { getDataTestIdOf } from 'libs/tech-shared/test/data-test';
import { MockComponent, MockDirective } from 'ng-mocks'; import { MockComponent, MockDirective } from 'ng-mocks';
......
import { Route } from '@angular/router'; import { Route } from '@angular/router';
import { OrganisationseinheitPageComponent } from '../pages/organisationseinheit/organisationseinheit-page/organisationseinheit-page.component';
import { PostfachPageComponent } from '../pages/postfach/postfach-page/postfach-page.component'; import { PostfachPageComponent } from '../pages/postfach/postfach-page/postfach-page.component';
export const appRoutes: Route[] = [ export const appRoutes: Route[] = [
...@@ -13,9 +12,9 @@ export const appRoutes: Route[] = [ ...@@ -13,9 +12,9 @@ export const appRoutes: Route[] = [
component: PostfachPageComponent, component: PostfachPageComponent,
title: 'Admin | Postfach', title: 'Admin | Postfach',
}, },
{ // {
path: 'organisationseinheiten', // path: 'organisationseinheiten',
component: OrganisationseinheitPageComponent, // component: OrganisationseinheitPageComponent,
title: 'Admin | Organisationseinheiten', // title: 'Admin | Organisationseinheiten',
}, // },
]; ];
@use '@angular/material' as mat;
@tailwind base; @tailwind base;
@tailwind components; @tailwind components;
@tailwind utilities; @tailwind utilities;
@import 'libs/design-system/src/lib/tailwind-preset/root.css'; @import 'libs/design-system/src/lib/tailwind-preset/root.css';
@import 'libs/ui/src/lib/font/font_material';
@include mat.all-component-typographies();
@include mat.core();
.heading-1 {
@apply text-3xl font-medium text-text;
}
.heading-2 {
@apply py-4 text-2xl font-medium text-text;
}
{ {
"extends": ["../../.eslintrc.json"], "extends": ["../../../.eslintrc.json"],
"ignorePatterns": ["!**/*"], "ignorePatterns": ["!**/*"],
"overrides": [ "overrides": [
{ {
......
...@@ -3,10 +3,10 @@ ...@@ -3,10 +3,10 @@
const esModules = ['@keycloak/keycloak-admin-client', 'url-join', 'url-template', 'camelize-ts']; const esModules = ['@keycloak/keycloak-admin-client', 'url-join', 'url-template', 'camelize-ts'];
export default { export default {
displayName: 'admin-settings', displayName: 'admin-settings',
preset: '../../jest.preset.js', preset: '../../../jest.preset.js',
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'], setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
globals: {}, globals: {},
coverageDirectory: '../../coverage/libs/admin-settings', coverageDirectory: '../../coverage/libs/admin/settings',
transform: { transform: {
'^.+\\.(ts|mjs|js|html)$': [ '^.+\\.(ts|mjs|js|html)$': [
'jest-preset-angular', 'jest-preset-angular',
......
{ {
"name": "admin-settings", "name": "admin-settings",
"$schema": "../../node_modules/nx/schemas/project-schema.json", "$schema": "../../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "libs/admin-settings/src", "sourceRoot": "libs/admin/settings/src",
"projectType": "library", "projectType": "library",
"prefix": "admin", "prefix": "admin",
"tags": [], "tags": [],
...@@ -14,8 +14,8 @@ ...@@ -14,8 +14,8 @@
"executor": "@nx/jest:jest", "executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"], "outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": { "options": {
"tsConfig": "libs/admin-settings/tsconfig.spec.json", "tsConfig": "libs/admin/settings/tsconfig.spec.json",
"jestConfig": "libs/admin-settings/jest.config.ts" "jestConfig": "libs/admin/settings/jest.config.ts"
} }
} }
} }
......
...@@ -6,6 +6,8 @@ import { NgModule } from '@angular/core'; ...@@ -6,6 +6,8 @@ import { NgModule } from '@angular/core';
import { ReactiveFormsModule } from '@angular/forms'; import { ReactiveFormsModule } from '@angular/forms';
import { RouterModule } from '@angular/router'; import { RouterModule } from '@angular/router';
import KcAdminClient from '@keycloak/keycloak-admin-client'; import KcAdminClient from '@keycloak/keycloak-admin-client';
import { ButtonWithSpinnerComponent, TextareaEditorComponent } from '@ods/component';
import { TextInputComponent } from '@ods/system';
import { import {
createSettingListResourceService, createSettingListResourceService,
SettingListResourceService, SettingListResourceService,
...@@ -23,6 +25,7 @@ import { OrganisationseinheitListComponent } from './organisationseinheit/organi ...@@ -23,6 +25,7 @@ import { OrganisationseinheitListComponent } from './organisationseinheit/organi
import { OrganisationseinheitNavigationItemComponent } from './organisationseinheit/organisationseinheit-navigation-item/organisationseinheit-navigation-item.component'; import { OrganisationseinheitNavigationItemComponent } from './organisationseinheit/organisationseinheit-navigation-item/organisationseinheit-navigation-item.component';
import { PostfachContainerComponent } from './postfach/postfach-container/postfach-container.component'; import { PostfachContainerComponent } from './postfach/postfach-container/postfach-container.component';
import { PostfachFormComponent } from './postfach/postfach-container/postfach-form/postfach-form.component'; import { PostfachFormComponent } from './postfach/postfach-container/postfach-form/postfach-form.component';
import { PostfachSignaturComponent } from './postfach/postfach-container/postfach-form/postfach-signatur/postfach-signatur.component';
import { PostfachNavigationItemComponent } from './postfach/postfach-navigation-item/postfach-navigation-item.component'; import { PostfachNavigationItemComponent } from './postfach/postfach-navigation-item/postfach-navigation-item.component';
import { import {
createPostfachResourceService, createPostfachResourceService,
...@@ -41,6 +44,7 @@ import { TextFieldComponent } from './shared/text-field/text-field.component'; ...@@ -41,6 +44,7 @@ import { TextFieldComponent } from './shared/text-field/text-field.component';
declarations: [ declarations: [
PostfachContainerComponent, PostfachContainerComponent,
PostfachFormComponent, PostfachFormComponent,
PostfachSignaturComponent,
NavigationItemComponent, NavigationItemComponent,
TextFieldComponent, TextFieldComponent,
PostfachNavigationItemComponent, PostfachNavigationItemComponent,
...@@ -55,7 +59,15 @@ import { TextFieldComponent } from './shared/text-field/text-field.component'; ...@@ -55,7 +59,15 @@ import { TextFieldComponent } from './shared/text-field/text-field.component';
MoreItemButtonComponent, MoreItemButtonComponent,
SpinnerComponent, SpinnerComponent,
], ],
imports: [CommonModule, TechSharedModule, RouterModule, ReactiveFormsModule], imports: [
CommonModule,
TechSharedModule,
RouterModule,
ReactiveFormsModule,
TextInputComponent,
ButtonWithSpinnerComponent,
TextareaEditorComponent,
],
exports: [ exports: [
PostfachContainerComponent, PostfachContainerComponent,
OrganisationseinheitContainerComponent, OrganisationseinheitContainerComponent,
......
...@@ -4,8 +4,8 @@ import { ...@@ -4,8 +4,8 @@ import {
createStateResource, createStateResource,
} from '@alfa-client/tech-shared'; } from '@alfa-client/tech-shared';
import { Mock, mock, useFromMock } from '@alfa-client/test-utils'; import { Mock, mock, useFromMock } from '@alfa-client/test-utils';
import { singleCold } from 'libs/tech-shared/test/marbles';
import { Observable, of } from 'rxjs'; import { Observable, of } from 'rxjs';
import { singleCold } from '../../../tech-shared/test/marbles';
import { createSettingsListResource } from '../../test/admin-settings'; import { createSettingsListResource } from '../../test/admin-settings';
import { createPostfachResource, createSettingItemResource } from '../../test/postfach/postfach'; import { createPostfachResource, createSettingItemResource } from '../../test/postfach/postfach';
import { SettingListResourceService } from './admin-settings-resource.service'; import { SettingListResourceService } from './admin-settings-resource.service';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment