Skip to content

Commit

Permalink
chore: imports & prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilczaja committed Aug 2, 2024
1 parent 78a1ee8 commit 2cd3e7a
Show file tree
Hide file tree
Showing 16 changed files with 23 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import {
CatalogPageResult,
DataOfferDetailPageQuery,
DataOfferDetailPageResult,
DataSourceAvailability,
} from '@sovity.de/authority-portal-client';
import {subDays, subMinutes} from 'date-fns';
import {TestAssets} from './data/test-assets';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
* sovity GmbH - initial implementation
*/
import {UiPolicy, UiPolicyExpression} from '@sovity.de/authority-portal-client';
import {policyLeftExpressions} from '../../../../../pages/catalog-page/policy-editor/model/policy-left-expressions';
import {
constraint,
constraintList,
multi
} from "../../../../../pages/catalog-page/policy-editor/model/ui-policy-expression-utils";
import {policyLeftExpressions} from "../../../../../pages/catalog-page/policy-editor/model/policy-left-expressions";
multi,
} from '../../../../../pages/catalog-page/policy-editor/model/ui-policy-expression-utils';

export namespace TestPolicies {
const policy = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,3 @@ export function removeOnce<T>(list: T[], item: T): T[] {
export function filterNonNull<T>(array: (T | null | undefined)[]): T[] {
return array.filter((it) => it != null) as T[];
}

Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
* Contributors:
* sovity GmbH - initial implementation
*/
import {formatNumber} from '@angular/common';
import {Component, Inject, OnDestroy, OnInit} from '@angular/core';
import {FormBuilder, Validators} from '@angular/forms';
import {Subject, distinctUntilChanged, map, takeUntil, tap} from 'rxjs';
import {take} from 'rxjs/operators';
import {Store} from '@ngxs/store';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
*/
import {Component, EventEmitter, Input, Output} from '@angular/core';
import {CatalogDataOffer} from '@sovity.de/authority-portal-client';
import {getOrganizationRegistrationStatusClasses} from '../../../core/utils/ui-utils';
import {DEFAULT_AUTHORITY_ORGANIZATION_LIST_PAGE_STATE} from '../../authority-organization-list-page/authority-organization-list-page/state/authority-organization-list-page-state';

@Component({
selector: 'broker-data-offer-list',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ import {FilterBoxComponent} from './filter-box/filter-box.component';
import {JsonDialogComponent} from './json-dialog/json-dialog.component';
import {JsonDialogService} from './json-dialog/json-dialog.service';
import {MarkdownDescriptionComponent} from './markdown-description/markdown-description.component';
import {PolicyExpressionComponent} from './policy-editor/renderer/policy-expression/policy-expression.component';
import {PolicyRendererComponent} from './policy-editor/renderer/policy-renderer/policy-renderer.component';
import {PropertyGridGroupComponent} from './property-grid-group/property-grid-group.component';
import {PropertyGridComponent} from './property-grid/property-grid.component';
import {TruncatedShortDescription} from './truncated-short-description/truncated-short-description.component';
import {UrlListDialogComponent} from './url-list-dialog/url-list-dialog.component';
import {UrlListDialogService} from './url-list-dialog/url-list-dialog.service';
import {ViewSelectionComponent} from './view-selection/view-selection.component';
import {PolicyRendererComponent} from "./policy-editor/renderer/policy-renderer/policy-renderer.component";
import {PolicyExpressionComponent} from "./policy-editor/renderer/policy-expression/policy-expression.component";

@NgModule({
imports: [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {UiPolicyLiteral} from '@sovity.de/authority-portal-client';
import {format} from 'date-fns-tz';
import {filterNonNull} from "../../../../core/utils/array-utils";
import {filterNonNull} from '../../../../core/utils/array-utils';

export interface PolicyFormAdapter<T> {
displayText: (value: UiPolicyLiteral) => string | null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
UiPolicyExpressionType,
UiPolicyLiteral,
} from '@sovity.de/authority-portal-client';
import {associateBy} from '../../../../core/utils/map-utils';
import {PolicyExpressionMapped} from './policy-expression-mapped';
import {
PolicyMultiExpressionConfig,
Expand All @@ -20,7 +21,6 @@ import {
SUPPORTED_POLICY_VERBS,
defaultPolicyVerbConfig,
} from './policy-verbs';
import {associateBy} from "../../../../core/utils/map-utils";

@Injectable({providedIn: 'root'})
export class PolicyMapper {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class UnauthenticatedPageComponent {

get loginUrl(): string {
const url = new URL(this.appConfig.loginUrl);
url.searchParams.set("redirect_uri", location.href)
url.searchParams.set('redirect_uri', location.href);
return url.toString();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Contributors:
* sovity GmbH - initial implementation
*/
import {Component, HostBinding} from '@angular/core';
import {Component} from '@angular/core';

@Component({
selector: 'app-footer-for-full-page',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,11 @@ import {
ElementRef,
EventEmitter,
Input,
OnChanges,
OnDestroy,
Output,
ViewChild,
} from '@angular/core';
import {Subject, combineLatest, map, takeUntil} from 'rxjs';
import {Subject} from 'rxjs';
import {GlobalStateUtils} from 'src/app/core/global-state/global-state-utils';
import {SlideOverService} from 'src/app/core/services/slide-over.service';
import {isEllipsisActive} from 'src/app/core/utils/text-ellipsis-utils';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ import {Router} from '@angular/router';
import {Subject, takeUntil} from 'rxjs';
import {Store} from '@ngxs/store';
import {UserInfo} from '@sovity.de/authority-portal-client';
import {TEST_USERS} from 'src/app/core/api/fake-backend/impl/fake-users';
import {updateLoggedInUser} from 'src/app/core/api/fake-backend/impl/fake-users';
import {
TEST_USERS,
updateLoggedInUser,
} from 'src/app/core/api/fake-backend/impl/fake-users';
import {RefreshUserInfo} from 'src/app/core/global-state/global-state-actions';
import {GlobalStateUtils} from 'src/app/core/global-state/global-state-utils';

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions authority-portal-frontend/src/assets/images/sovity_logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2cd3e7a

Please sign in to comment.