mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-22 18:25:56 +01:00
Optimize UI imports (#15042)
Signed-off-by: AllForNothing <sshijun@vmware.com>
This commit is contained in:
parent
8a0cd99473
commit
706de334d3
@ -11,9 +11,8 @@
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { Router, ActivatedRoute } from '@angular/router';
|
||||
import { Input, ViewChild, AfterViewChecked } from '@angular/core';
|
||||
import { AfterViewChecked, Component, Input, OnInit, ViewChild } from '@angular/core';
|
||||
import { ActivatedRoute, Router } from '@angular/router';
|
||||
import { NgForm } from '@angular/forms';
|
||||
import { SessionService } from '../../shared/services/session.service';
|
||||
import { SignUpComponent } from '../sign-up/sign-up.component';
|
||||
@ -21,11 +20,11 @@ import { ForgotPasswordComponent } from '../../base/password-setting/forgot-pass
|
||||
import { AppConfigService } from '../../services/app-config.service';
|
||||
import { AppConfig } from '../../services/app-config';
|
||||
import { User } from '../../base/left-side-nav/user/user';
|
||||
import { CookieService, CookieOptions } from 'ngx-cookie';
|
||||
import { CookieOptions, CookieService } from 'ngx-cookie';
|
||||
import { SkinableConfig } from "../../services/skinable-config.service";
|
||||
import {ModalEvent} from "../../base/modal-event";
|
||||
import {modalEvents} from "../../base/modal-events.const";
|
||||
import {AboutDialogComponent} from "../../shared/components/about-dialog/about-dialog.component";
|
||||
import { ModalEvent } from "../../base/modal-event";
|
||||
import { modalEvents } from "../../base/modal-events.const";
|
||||
import { AboutDialogComponent } from "../../shared/components/about-dialog/about-dialog.component";
|
||||
import { CommonRoutes, CONFIG_AUTH_MODE } from "../../shared/entities/shared.const";
|
||||
import { SignInCredential } from "./sign-in-credential";
|
||||
import { UserPermissionService } from "../../shared/services";
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
import { TranslateModule, TranslateService } from '@ngx-translate/core';
|
||||
import { TopRepoComponent } from './top-repo.component';
|
||||
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
||||
@ -10,6 +10,7 @@ import { of } from 'rxjs';
|
||||
import { HttpClientTestingModule } from '@angular/common/http/testing';
|
||||
import { MessageHandlerService } from '../../../shared/services/message-handler.service';
|
||||
import { TopRepoService } from './top-repository.service';
|
||||
|
||||
describe('TopRepoComponent', () => {
|
||||
let component: TopRepoComponent;
|
||||
let fixture: ComponentFixture<TopRepoComponent>;
|
||||
|
@ -13,7 +13,7 @@
|
||||
// limitations under the License.
|
||||
import { Injectable } from '@angular/core';
|
||||
import { HttpClient } from '@angular/common/http';
|
||||
import { map, catchError } from "rxjs/operators";
|
||||
import { catchError, map } from "rxjs/operators";
|
||||
import { Observable, throwError as observableThrowError } from "rxjs";
|
||||
import { Repository } from "../../../../../ng-swagger-gen/models/repository";
|
||||
import { CURRENT_BASE_HREF, HTTP_GET_OPTIONS } from "../../../shared/units/utils";
|
||||
|
@ -11,7 +11,7 @@
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
import { Component, ViewChild, OnInit } from '@angular/core';
|
||||
import { Component, OnInit, ViewChild } from '@angular/core';
|
||||
import { Router } from '@angular/router';
|
||||
|
||||
import { NewUserFormComponent } from '../../shared/components/new-user-form/new-user-form.component';
|
||||
|
@ -11,8 +11,8 @@
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
import { Component, Output, ViewChild, EventEmitter } from '@angular/core';
|
||||
import { Modal } from '../../shared/services/interface';
|
||||
import { Component, EventEmitter, Output, ViewChild } from '@angular/core';
|
||||
import { Modal } from '../../shared/services';
|
||||
import { NewUserFormComponent } from '../../shared/components/new-user-form/new-user-form.component';
|
||||
import { User } from '../../base/left-side-nav/user/user';
|
||||
import { SessionService } from '../../shared/services/session.service';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
||||
import { ActivatedRoute, Router } from "@angular/router";
|
||||
import { SessionService } from '../../../../shared/services/session.service';
|
||||
|
@ -1,9 +1,4 @@
|
||||
import {
|
||||
Component,
|
||||
OnInit,
|
||||
Input,
|
||||
ChangeDetectionStrategy
|
||||
} from "@angular/core";
|
||||
import { ChangeDetectionStrategy, Component, Input, OnInit } from "@angular/core";
|
||||
|
||||
import { HelmChartDependency } from "../helm-chart.interface.service";
|
||||
|
||||
|
@ -1,12 +1,13 @@
|
||||
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
import { TranslateService } from '@ngx-translate/core';
|
||||
import { ChartDetailSummaryComponent } from './chart-detail-summary.component';
|
||||
import { CUSTOM_ELEMENTS_SCHEMA, SecurityContext } from '@angular/core';
|
||||
import { MarkedOptions, MarkdownModule } from 'ngx-markdown';
|
||||
import { MarkdownModule, MarkedOptions } from 'ngx-markdown';
|
||||
import { HelmChartService } from '../helm-chart.service';
|
||||
import { ErrorHandler } from "../../../../../shared/units/error-handler";
|
||||
import { MessageHandlerService } from "../../../../../shared/services/message-handler.service";
|
||||
import { SharedTestingModule } from "../../../../../shared/shared.module";
|
||||
|
||||
describe('ChartDetailSummaryComponent', () => {
|
||||
let component: ChartDetailSummaryComponent;
|
||||
let fixture: ComponentFixture<ChartDetailSummaryComponent>;
|
||||
|
@ -1,9 +1,4 @@
|
||||
import {
|
||||
Component,
|
||||
OnInit,
|
||||
ChangeDetectionStrategy,
|
||||
Input
|
||||
} from "@angular/core";
|
||||
import { ChangeDetectionStrategy, Component, Input, OnInit } from "@angular/core";
|
||||
import { HelmChartMetaData, HelmChartSecurity } from "../helm-chart.interface.service";
|
||||
import { HelmChartService } from "../helm-chart.service";
|
||||
import { Label } from "../../../../../shared/services";
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
import { TranslateModule, TranslateService } from '@ngx-translate/core';
|
||||
import { ChartDetailValueComponent } from './chart-detail-value.component';
|
||||
import { CUSTOM_ELEMENTS_SCHEMA, SecurityContext } from '@angular/core';
|
||||
|
@ -1,9 +1,4 @@
|
||||
import {
|
||||
Component,
|
||||
Input,
|
||||
OnInit,
|
||||
ChangeDetectionStrategy
|
||||
} from "@angular/core";
|
||||
import { ChangeDetectionStrategy, Component, Input, OnInit } from "@angular/core";
|
||||
|
||||
@Component({
|
||||
selector: "hbr-chart-detail-value",
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
import { TranslateModule, TranslateService } from '@ngx-translate/core';
|
||||
import { ChartDetailComponent } from './chart-detail.component';
|
||||
import { ClarityModule } from '@clr/angular';
|
||||
@ -8,6 +8,7 @@ import { HelmChartService } from "../helm-chart.service";
|
||||
import { of } from 'rxjs';
|
||||
import { ErrorHandler } from "../../../../../shared/units/error-handler";
|
||||
import { SystemInfoService } from "../../../../../shared/services";
|
||||
|
||||
describe('ChartDetailComponent', () => {
|
||||
let component: ChartDetailComponent;
|
||||
let fixture: ComponentFixture<ChartDetailComponent>;
|
||||
|
@ -1,8 +1,4 @@
|
||||
import {
|
||||
Component,
|
||||
OnInit,
|
||||
Input,
|
||||
} from "@angular/core";
|
||||
import { Component, Input, OnInit, } from "@angular/core";
|
||||
|
||||
import { Project } from "../../../project";
|
||||
import { HelmChartService } from "../helm-chart.service";
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { TestBed, inject } from '@angular/core/testing';
|
||||
import { inject, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { HelmChartService } from './helm-chart.service';
|
||||
|
||||
|
@ -1,9 +1,8 @@
|
||||
import {throwError as observableThrowError, Observable } from "rxjs";
|
||||
import { Injectable, Inject } from "@angular/core";
|
||||
import { HttpClient } from "@angular/common/http";
|
||||
import { map, catchError } from "rxjs/operators";
|
||||
import {HttpErrorResponse} from "@angular/common/http";
|
||||
import { HelmChartItem, HelmChartVersion, HelmChartDetail } from "./helm-chart.interface.service";
|
||||
import { Observable, throwError as observableThrowError } from "rxjs";
|
||||
import { Injectable } from "@angular/core";
|
||||
import { HttpClient, HttpErrorResponse } from "@angular/common/http";
|
||||
import { catchError, map } from "rxjs/operators";
|
||||
import { HelmChartDetail, HelmChartItem, HelmChartVersion } from "./helm-chart.interface.service";
|
||||
import { RequestQueryParams } from "../../../../shared/services";
|
||||
import { HTTP_GET_OPTIONS, HTTP_JSON_OPTIONS, V1_BASE_HREF } from "../../../../shared/units/utils";
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
import { TranslateModule, TranslateService } from '@ngx-translate/core';
|
||||
import { LabelFilterComponent } from './label-filter.component';
|
||||
import { ClarityModule } from '@clr/angular';
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { OnInit, Input, EventEmitter, Component, ViewChild, ElementRef, ChangeDetectorRef } from '@angular/core';
|
||||
import {ClrDatagridFilterInterface} from "@clr/angular";
|
||||
import { ChangeDetectorRef, Component, ElementRef, EventEmitter, Input, OnInit, ViewChild } from '@angular/core';
|
||||
import { ClrDatagridFilterInterface } from "@clr/angular";
|
||||
import { fromEvent } from 'rxjs';
|
||||
import { debounceTime } from 'rxjs/operators';
|
||||
import { HelmChartVersion } from '../helm-chart.interface.service';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
import { TranslateModule, TranslateService } from '@ngx-translate/core';
|
||||
import { LabelMarkerComponent } from './label-marker.component';
|
||||
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { Component, Input, Output, OnInit, EventEmitter, ChangeDetectorRef, ViewChild, ElementRef } from '@angular/core';
|
||||
import { ChangeDetectorRef, Component, ElementRef, EventEmitter, Input, OnInit, Output, ViewChild } from '@angular/core';
|
||||
import { fromEvent, Subject } from 'rxjs';
|
||||
import { debounceTime, finalize } from 'rxjs/operators';
|
||||
import { HelmChartVersion } from '../helm-chart.interface.service';
|
||||
|
@ -1,9 +1,6 @@
|
||||
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { TranslateModule, TranslateService } from '@ngx-translate/core';
|
||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
import { ChartVersionComponent } from './helm-chart-version.component';
|
||||
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
||||
import { ClarityModule } from '@clr/angular';
|
||||
import { FormsModule } from '@angular/forms';
|
||||
import { HelmChartService } from "../../helm-chart.service";
|
||||
import { LabelFilterComponent } from "../../label-filter/label-filter.component";
|
||||
import { of } from 'rxjs';
|
||||
|
@ -1,29 +1,24 @@
|
||||
import {
|
||||
Component,
|
||||
Input,
|
||||
OnInit,
|
||||
ViewChild,
|
||||
Output,
|
||||
EventEmitter
|
||||
} from "@angular/core";
|
||||
import { Observable, forkJoin, throwError as observableThrowError } from "rxjs";
|
||||
import { finalize, map, catchError } from "rxjs/operators";
|
||||
import { Component, EventEmitter, Input, OnInit, Output, ViewChild } from "@angular/core";
|
||||
import { forkJoin, Observable, throwError as observableThrowError } from "rxjs";
|
||||
import { catchError, finalize, map } from "rxjs/operators";
|
||||
import { TranslateService } from "@ngx-translate/core";
|
||||
import { HelmChartVersion, HelmChartMaintainer } from "../../helm-chart.interface.service";
|
||||
import { HelmChartMaintainer, HelmChartVersion } from "../../helm-chart.interface.service";
|
||||
import { HelmChartService } from "../../helm-chart.service";
|
||||
import {
|
||||
LabelService as OldLabelService,
|
||||
State,
|
||||
SystemInfo,
|
||||
SystemInfoService,
|
||||
UserPermissionService, USERSTATICPERMISSION
|
||||
UserPermissionService,
|
||||
USERSTATICPERMISSION
|
||||
} from "../../../../../../shared/services";
|
||||
import { DEFAULT_PAGE_SIZE, downloadFile } from "../../../../../../shared/units/utils";
|
||||
import { ErrorHandler } from "../../../../../../shared/units/error-handler";
|
||||
import { OperationService } from "../../../../../../shared/components/operation/operation.service";
|
||||
import { operateChanges, OperateInfo, OperationState } from "../../../../../../shared/components/operation/operate";
|
||||
import {
|
||||
ConfirmationButtons, ConfirmationState,
|
||||
ConfirmationButtons,
|
||||
ConfirmationState,
|
||||
ConfirmationTargets,
|
||||
DefaultHelmIcon,
|
||||
ResourceType
|
||||
@ -34,6 +29,7 @@ import { ConfirmationMessage } from "../../../../../global-confirmation-dialog/c
|
||||
import { ConfirmationAcknowledgement } from "../../../../../global-confirmation-dialog/confirmation-state-message";
|
||||
import { Label } from "../../../../../../../../ng-swagger-gen/models/label";
|
||||
import { LabelService } from "../../../../../../../../ng-swagger-gen/services/label.service";
|
||||
|
||||
const PAGE_SIZE: number = 100;
|
||||
@Component({
|
||||
selector: "hbr-helm-chart-version",
|
||||
|
@ -1,9 +1,8 @@
|
||||
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
import { ClarityModule } from '@clr/angular';
|
||||
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
||||
import { TranslateModule, TranslateService } from '@ngx-translate/core';
|
||||
import { ActivatedRoute } from '@angular/router';
|
||||
import { Router } from '@angular/router';
|
||||
import { ActivatedRoute, Router } from '@angular/router';
|
||||
import { SessionService } from '../../../../../shared/services/session.service';
|
||||
import { ListChartVersionsComponent } from './list-chart-versions.component';
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
import { Router } from '@angular/router';
|
||||
import { ActivatedRoute } from '@angular/router';
|
||||
import { ActivatedRoute, Router } from '@angular/router';
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
|
||||
import { Project } from '../../../project';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
import { TranslateModule, TranslateService } from '@ngx-translate/core';
|
||||
import { HelmChartComponent } from './helm-chart.component';
|
||||
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
||||
|
@ -1,30 +1,18 @@
|
||||
import {
|
||||
Component,
|
||||
Input,
|
||||
OnInit,
|
||||
Output,
|
||||
EventEmitter,
|
||||
ViewChild,
|
||||
} from "@angular/core";
|
||||
import { Component, EventEmitter, Input, OnInit, Output, ViewChild, } from "@angular/core";
|
||||
import { NgForm } from '@angular/forms';
|
||||
import { TranslateService } from "@ngx-translate/core";
|
||||
import { forkJoin, throwError as observableThrowError, Observable } from "rxjs";
|
||||
import { finalize, map, catchError } from "rxjs/operators";
|
||||
import { forkJoin, Observable, throwError as observableThrowError } from "rxjs";
|
||||
import { catchError, finalize, map } from "rxjs/operators";
|
||||
import { HelmChartItem } from "../../helm-chart-detail/helm-chart.interface.service";
|
||||
import { HelmChartService } from "../../helm-chart-detail/helm-chart.service";
|
||||
import {
|
||||
State,
|
||||
SystemInfo,
|
||||
SystemInfoService,
|
||||
UserPermissionService,
|
||||
USERSTATICPERMISSION
|
||||
} from "../../../../../shared/services";
|
||||
import { State, SystemInfo, SystemInfoService, UserPermissionService, USERSTATICPERMISSION } from "../../../../../shared/services";
|
||||
import { DEFAULT_PAGE_SIZE, downloadFile } from "../../../../../shared/units/utils";
|
||||
import { ErrorHandler } from "../../../../../shared/units/error-handler";
|
||||
import { OperationService } from "../../../../../shared/components/operation/operation.service";
|
||||
import { operateChanges, OperateInfo, OperationState } from "../../../../../shared/components/operation/operate";
|
||||
import {
|
||||
ConfirmationButtons, ConfirmationState,
|
||||
ConfirmationButtons,
|
||||
ConfirmationState,
|
||||
ConfirmationTargets,
|
||||
DefaultHelmIcon,
|
||||
Roles
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
||||
import { ActivatedRoute, Router } from '@angular/router';
|
||||
import { SessionService } from '../../../../shared/services/session.service';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
import { ClarityModule } from '@clr/angular';
|
||||
import { TranslateModule, TranslateService } from '@ngx-translate/core';
|
||||
import { FormsModule } from '@angular/forms';
|
||||
|
@ -1,19 +1,18 @@
|
||||
import { of as observableOf, forkJoin } from "rxjs";
|
||||
import { mergeMap, catchError } from 'rxjs/operators';
|
||||
import { ChangeDetectorRef, ChangeDetectionStrategy, ViewChild } from "@angular/core";
|
||||
import { Component, OnInit, Input, Output, EventEmitter } from "@angular/core";
|
||||
import { forkJoin, of as observableOf, throwError as observableThrowError } from "rxjs";
|
||||
import { catchError, mergeMap } from 'rxjs/operators';
|
||||
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, Input, OnInit, Output, ViewChild } from "@angular/core";
|
||||
import { NgForm } from '@angular/forms';
|
||||
import { TranslateService } from '@ngx-translate/core';
|
||||
import { UserGroup } from "../../../left-side-nav/group/group";
|
||||
import { MemberService } from "../member.service";
|
||||
import { GroupService } from "../../../left-side-nav/group/group.service";
|
||||
import { MessageHandlerService } from '../../../../shared/services/message-handler.service';
|
||||
import { throwError as observableThrowError } from "rxjs";
|
||||
import { OperationService } from "../../../../shared/components/operation/operation.service";
|
||||
import { operateChanges, OperateInfo, OperationState } from "../../../../shared/components/operation/operate";
|
||||
import { ProjectRoles } from "../../../../shared/entities/shared.const";
|
||||
import { errorHandler } from "../../../../shared/units/shared.utils";
|
||||
import { ProjectMemberEntity } from "../../../../../../ng-swagger-gen/models/project-member-entity";
|
||||
|
||||
@Component({
|
||||
selector: "add-group",
|
||||
templateUrl: "./add-group.component.html",
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
import { of } from "rxjs";
|
||||
import { MemberService } from '../member.service';
|
||||
import { AppConfigService } from "../../../../services/app-config.service";
|
||||
|
@ -12,14 +12,7 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
import { finalize } from 'rxjs/operators';
|
||||
import {
|
||||
Component,
|
||||
Input,
|
||||
EventEmitter,
|
||||
Output,
|
||||
ViewChild,
|
||||
OnInit
|
||||
} from '@angular/core';
|
||||
import { Component, EventEmitter, Input, OnInit, Output, ViewChild } from '@angular/core';
|
||||
import { NgForm } from '@angular/forms';
|
||||
import { TranslateService } from '@ngx-translate/core';
|
||||
import { UserService } from '../../../left-side-nav/user/user.service';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
import { AddMemberComponent } from './add-member.component';
|
||||
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
||||
import { MemberService } from '../member.service';
|
||||
|
@ -11,20 +11,11 @@
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
import { finalize, debounceTime } from 'rxjs/operators';
|
||||
import {
|
||||
Component,
|
||||
Input,
|
||||
EventEmitter,
|
||||
Output,
|
||||
ViewChild,
|
||||
AfterViewChecked,
|
||||
OnInit,
|
||||
OnDestroy,
|
||||
} from '@angular/core';
|
||||
import { debounceTime, finalize } from 'rxjs/operators';
|
||||
import { AfterViewChecked, Component, EventEmitter, Input, OnDestroy, OnInit, Output, ViewChild, } from '@angular/core';
|
||||
import { NgForm } from '@angular/forms';
|
||||
import { ActivatedRoute } from "@angular/router";
|
||||
import { Subject, forkJoin } from "rxjs";
|
||||
import { forkJoin, Subject } from "rxjs";
|
||||
import { TranslateService } from '@ngx-translate/core';
|
||||
import { MessageHandlerService } from '../../../../shared/services/message-handler.service';
|
||||
import { UserService } from '../../../left-side-nav/user/user.service';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
import { MemberComponent } from './member.component';
|
||||
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
||||
import { ActivatedRoute } from "@angular/router";
|
||||
|
@ -11,10 +11,10 @@
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
import { finalize } from 'rxjs/operators';
|
||||
import { Component, OnInit, ViewChild, OnDestroy } from "@angular/core";
|
||||
import { catchError, finalize, map } from 'rxjs/operators';
|
||||
import { Component, OnDestroy, OnInit, ViewChild } from "@angular/core";
|
||||
import { ActivatedRoute, Router } from "@angular/router";
|
||||
import { Subscription, forkJoin, Observable } from "rxjs";
|
||||
import { forkJoin, Observable, Subscription, throwError as observableThrowError } from "rxjs";
|
||||
import { TranslateService } from "@ngx-translate/core";
|
||||
import { MessageHandlerService } from "../../../shared/services/message-handler.service";
|
||||
import { SessionService } from "../../../shared/services/session.service";
|
||||
@ -23,18 +23,11 @@ import { AddGroupComponent } from './add-group/add-group.component';
|
||||
import { AddHttpAuthGroupComponent } from './add-http-auth-group/add-http-auth-group.component';
|
||||
import { AddMemberComponent } from "./add-member/add-member.component";
|
||||
import { AppConfigService } from "../../../services/app-config.service";
|
||||
import { map, catchError } from "rxjs/operators";
|
||||
import { throwError as observableThrowError } from "rxjs";
|
||||
import { OperationService } from "../../../shared/components/operation/operation.service";
|
||||
import { UserPermissionService, USERSTATICPERMISSION } from "../../../shared/services";
|
||||
import { ErrorHandler } from "../../../shared/units/error-handler";
|
||||
import { operateChanges, OperateInfo, OperationState } from "../../../shared/components/operation/operate";
|
||||
import {
|
||||
ConfirmationButtons,
|
||||
ConfirmationState,
|
||||
ConfirmationTargets,
|
||||
RoleInfo
|
||||
} from "../../../shared/entities/shared.const";
|
||||
import { ConfirmationButtons, ConfirmationState, ConfirmationTargets, RoleInfo } from "../../../shared/entities/shared.const";
|
||||
import { ConfirmationDialogService } from "../../global-confirmation-dialog/confirmation-dialog.service";
|
||||
import { errorHandler } from "../../../shared/units/shared.utils";
|
||||
import { ConfirmationMessage } from "../../global-confirmation-dialog/confirmation-message";
|
||||
@ -42,6 +35,7 @@ import { DEFAULT_PAGE_SIZE } from "../../../shared/units/utils";
|
||||
import { MemberService } from "../../../../../ng-swagger-gen/services/member.service";
|
||||
import { ClrDatagridStateInterface } from "@clr/angular";
|
||||
import { ProjectMemberEntity } from "../../../../../ng-swagger-gen/models/project-member-entity";
|
||||
|
||||
@Component({
|
||||
templateUrl: "member.component.html",
|
||||
styleUrls: ["./member.component.scss"],
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { TestBed, inject } from '@angular/core/testing';
|
||||
import { inject, TestBed } from '@angular/core/testing';
|
||||
import { HttpClientTestingModule } from '@angular/common/http/testing';
|
||||
import { MemberService } from './member.service';
|
||||
|
||||
|
@ -15,8 +15,8 @@ import { Injectable } from '@angular/core';
|
||||
import { HttpClient } from '@angular/common/http';
|
||||
import { User } from '../../left-side-nav/user/user';
|
||||
import { Member } from './member';
|
||||
import {throwError as observableThrowError, Observable } from "rxjs";
|
||||
import {map, catchError} from 'rxjs/operators';
|
||||
import { Observable, throwError as observableThrowError } from "rxjs";
|
||||
import { catchError, map } from 'rxjs/operators';
|
||||
import { CURRENT_BASE_HREF, HTTP_GET_OPTIONS, HTTP_JSON_OPTIONS } from "../../../shared/units/utils";
|
||||
|
||||
@Injectable()
|
||||
|
@ -19,8 +19,8 @@ import { ProjectService } from "../../../../../ng-swagger-gen/services/project.s
|
||||
import { AuditLog } from "../../../../../ng-swagger-gen/models/audit-log";
|
||||
import { Project } from "../project";
|
||||
import { finalize } from "rxjs/operators";
|
||||
import {DEFAULT_PAGE_SIZE} from "../../../shared/units/utils";
|
||||
import {ClrDatagridStateInterface} from "@clr/angular";
|
||||
import { DEFAULT_PAGE_SIZE } from "../../../shared/units/utils";
|
||||
import { ClrDatagridStateInterface } from "@clr/angular";
|
||||
|
||||
const optionalSearch: {} = { 0: 'AUDIT_LOG.ADVANCED', 1: 'AUDIT_LOG.SIMPLE' };
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { TestBed, inject } from '@angular/core/testing';
|
||||
import { inject, TestBed } from '@angular/core/testing';
|
||||
import { AdditionsService } from "./additions.service";
|
||||
import { HttpClientTestingModule, HttpTestingController } from "@angular/common/http/testing";
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
import { ArtifactAdditionsComponent } from './artifact-additions.component';
|
||||
import { AdditionLinks } from "../../../../../../../ng-swagger-gen/models/addition-links";
|
||||
import { CURRENT_BASE_HREF } from "../../../../../shared/units/utils";
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { Component, OnInit, Input } from '@angular/core';
|
||||
import { Component, Input, OnInit } from '@angular/core';
|
||||
import { ADDITIONS } from "./models";
|
||||
import { AdditionLinks } from "../../../../../../../ng-swagger-gen/models/addition-links";
|
||||
import { AdditionLink } from "../../../../../../../ng-swagger-gen/models/addition-link";
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
import { ArtifactVulnerabilitiesComponent } from './artifact-vulnerabilities.component';
|
||||
import { NO_ERRORS_SCHEMA } from "@angular/core";
|
||||
import { ClarityModule } from "@clr/angular";
|
||||
@ -16,9 +16,9 @@ import {
|
||||
import { AdditionLink } from "../../../../../../../../ng-swagger-gen/models/addition-link";
|
||||
import { ErrorHandler } from "../../../../../../shared/units/error-handler";
|
||||
import { ChannelService } from "../../../../../../shared/services/channel.service";
|
||||
import {SessionService} from "../../../../../../shared/services/session.service";
|
||||
import {SessionUser} from "../../../../../../shared/entities/session-user";
|
||||
import {delay} from "rxjs/operators";
|
||||
import { SessionService } from "../../../../../../shared/services/session.service";
|
||||
import { SessionUser } from "../../../../../../shared/entities/session-user";
|
||||
import { delay } from "rxjs/operators";
|
||||
|
||||
|
||||
describe('ArtifactVulnerabilitiesComponent', () => {
|
||||
|
@ -6,21 +6,19 @@ import { AdditionLink } from "../../../../../../../../ng-swagger-gen/models/addi
|
||||
import {
|
||||
ProjectService,
|
||||
ScannerVo,
|
||||
ScanningResultService, SystemInfoService,
|
||||
ScanningResultService,
|
||||
SystemInfoService,
|
||||
UserPermissionService,
|
||||
USERSTATICPERMISSION,
|
||||
VulnerabilityItem
|
||||
} from "../../../../../../shared/services";
|
||||
import { ErrorHandler } from "../../../../../../shared/units/error-handler";
|
||||
import {
|
||||
SEVERITY_LEVEL_MAP,
|
||||
VULNERABILITY_SEVERITY
|
||||
} from "../../../../../../shared/units/utils";
|
||||
import { SEVERITY_LEVEL_MAP, VULNERABILITY_SEVERITY } from "../../../../../../shared/units/utils";
|
||||
import { ChannelService } from "../../../../../../shared/services/channel.service";
|
||||
import { ResultBarChartComponent } from "../../vulnerability-scanning/result-bar-chart.component";
|
||||
import { Subscription } from "rxjs";
|
||||
import { Artifact } from "../../../../../../../../ng-swagger-gen/models/artifact";
|
||||
import {SessionService} from "../../../../../../shared/services/session.service";
|
||||
import { SessionService } from "../../../../../../shared/services/session.service";
|
||||
|
||||
@Component({
|
||||
selector: 'hbr-artifact-vulnerabilities',
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
import { NO_ERRORS_SCHEMA } from "@angular/core";
|
||||
import { AdditionsService } from "../additions.service";
|
||||
import { of } from "rxjs";
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
import { TranslateModule, TranslateService } from '@ngx-translate/core';
|
||||
import { DependenciesComponent } from "./dependencies.component";
|
||||
import { AdditionsService } from '../additions.service';
|
||||
@ -7,7 +7,6 @@ import { ArtifactDependency } from "../models";
|
||||
import { AdditionLink } from "../../../../../../../../ng-swagger-gen/models/addition-link";
|
||||
import { ErrorHandler } from "../../../../../../shared/units/error-handler";
|
||||
import { ClarityModule } from "@clr/angular";
|
||||
import { CURRENT_BASE_HREF } from "../../../../../../shared/units/utils";
|
||||
|
||||
|
||||
describe('DependenciesComponent', () => {
|
||||
|
@ -1,8 +1,4 @@
|
||||
import {
|
||||
Component,
|
||||
OnInit,
|
||||
Input,
|
||||
} from "@angular/core";
|
||||
import { Component, Input, OnInit, } from "@angular/core";
|
||||
import { ArtifactDependency } from "../models";
|
||||
import { AdditionsService } from "../additions.service";
|
||||
import { AdditionLink } from "../../../../../../../../ng-swagger-gen/models/addition-link";
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
import { NO_ERRORS_SCHEMA } from "@angular/core";
|
||||
import { AdditionsService } from "../additions.service";
|
||||
import { of } from "rxjs";
|
||||
|
@ -1,8 +1,4 @@
|
||||
import {
|
||||
Component,
|
||||
OnInit,
|
||||
Input
|
||||
} from "@angular/core";
|
||||
import { Component, Input, OnInit } from "@angular/core";
|
||||
import { AdditionsService } from "../additions.service";
|
||||
import { AdditionLink } from "../../../../../../../../ng-swagger-gen/models/addition-link";
|
||||
import { ErrorHandler } from "../../../../../../shared/units/error-handler";
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
import { TranslateModule, TranslateService } from '@ngx-translate/core';
|
||||
import { CUSTOM_ELEMENTS_SCHEMA, SecurityContext } from '@angular/core';
|
||||
import { ClarityModule } from '@clr/angular';
|
||||
|
@ -1,8 +1,4 @@
|
||||
import {
|
||||
Component,
|
||||
Input,
|
||||
OnInit,
|
||||
} from "@angular/core";
|
||||
import { Component, Input, OnInit, } from "@angular/core";
|
||||
import { AdditionsService } from "../additions.service";
|
||||
import { AdditionLink } from "../../../../../../../../ng-swagger-gen/models/addition-link";
|
||||
import { ErrorHandler } from "../../../../../../shared/units/error-handler";
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
|
||||
import { ArtifactCommonPropertiesComponent } from './artifact-common-properties.component';
|
||||
import { ClarityModule } from "@clr/angular";
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { Component, OnInit, Input, OnChanges, SimpleChanges } from '@angular/core';
|
||||
import { Component, Input, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
||||
import { DatePipe } from "@angular/common";
|
||||
import { Artifact } from "../../../../../../../ng-swagger-gen/models/artifact";
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
import { TranslateModule, TranslateService } from '@ngx-translate/core';
|
||||
import { ArtifactListPageComponent } from './artifact-list-page.component';
|
||||
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
||||
@ -12,7 +12,6 @@ import { SessionService } from "../../../../../shared/services/session.service";
|
||||
import { AppConfigService } from "../../../../../services/app-config.service";
|
||||
import { ArtifactService } from "../../../../../../../ng-swagger-gen/services/artifact.service";
|
||||
import { ArtifactDefaultService } from "../artifact.service";
|
||||
import { CURRENT_BASE_HREF } from "../../../../../shared/units/utils";
|
||||
|
||||
describe('ArtifactListPageComponent', () => {
|
||||
let component: ArtifactListPageComponent;
|
||||
|
@ -17,7 +17,6 @@ import { ArtifactListComponent } from "./artifact-list/artifact-list.component";
|
||||
import { ArtifactDefaultService } from "../artifact.service";
|
||||
import { AppConfigService } from "../../../../../services/app-config.service";
|
||||
import { SessionService } from "../../../../../shared/services/session.service";
|
||||
import { ArtifactClickEvent } from "../../../../../shared/services";
|
||||
import { Project } from "../../../project";
|
||||
|
||||
@Component({
|
||||
|
@ -8,7 +8,6 @@ import { ActivatedRoute, Router } from "@angular/router";
|
||||
import { ArtifactDefaultService, ArtifactService } from "../../../artifact.service";
|
||||
import {
|
||||
Label,
|
||||
LabelDefaultService,
|
||||
ProjectDefaultService,
|
||||
ProjectService,
|
||||
ScanningResultDefaultService,
|
||||
|
@ -11,35 +11,25 @@
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
import {
|
||||
Component,
|
||||
ElementRef,
|
||||
Input, OnDestroy,
|
||||
OnInit,
|
||||
ViewChild,
|
||||
|
||||
} from "@angular/core";
|
||||
import { forkJoin, Observable, Subject, of, Subscription } from "rxjs";
|
||||
import { Component, ElementRef, Input, OnDestroy, OnInit, ViewChild, } from "@angular/core";
|
||||
import { forkJoin, Observable, of, Subject, Subscription } from "rxjs";
|
||||
import { catchError, debounceTime, distinctUntilChanged, finalize, map } from 'rxjs/operators';
|
||||
import { TranslateService } from "@ngx-translate/core";
|
||||
import { ClrLoadingState, ClrDatagridStateInterface, ClrDatagridComparatorInterface } from "@clr/angular";
|
||||
import { ClrDatagridComparatorInterface, ClrDatagridStateInterface, ClrLoadingState } from "@clr/angular";
|
||||
|
||||
import { ActivatedRoute, Router } from "@angular/router";
|
||||
import {
|
||||
Comparator, ScanningResultService,
|
||||
UserPermissionService, USERSTATICPERMISSION,
|
||||
} from "../../../../../../../shared/services";
|
||||
import { Comparator, ScanningResultService, UserPermissionService, USERSTATICPERMISSION, } from "../../../../../../../shared/services";
|
||||
import {
|
||||
calculatePage,
|
||||
clone,
|
||||
CustomComparator,
|
||||
DEFAULT_PAGE_SIZE,
|
||||
formatSize,
|
||||
VULNERABILITY_SCAN_STATUS,
|
||||
dbEncodeURIComponent,
|
||||
doSorting,
|
||||
DEFAULT_PAGE_SIZE,
|
||||
DEFAULT_SUPPORTED_MIME_TYPES,
|
||||
getSortingString
|
||||
doSorting,
|
||||
formatSize,
|
||||
getSortingString,
|
||||
VULNERABILITY_SCAN_STATUS
|
||||
} from "../../../../../../../shared/units/utils";
|
||||
import { ImageNameInputComponent } from "../../../../../../../shared/components/image-name-input/image-name-input.component";
|
||||
import { CopyInputComponent } from "../../../../../../../shared/components/push-image/copy-input.component";
|
||||
@ -47,18 +37,9 @@ import { ErrorHandler } from "../../../../../../../shared/units/error-handler";
|
||||
import { ArtifactService } from "../../../artifact.service";
|
||||
import { OperationService } from "../../../../../../../shared/components/operation/operation.service";
|
||||
import { ChannelService } from "../../../../../../../shared/services/channel.service";
|
||||
import {
|
||||
ConfirmationButtons,
|
||||
ConfirmationState,
|
||||
ConfirmationTargets
|
||||
} from "../../../../../../../shared/entities/shared.const";
|
||||
import { ConfirmationButtons, ConfirmationState, ConfirmationTargets } from "../../../../../../../shared/entities/shared.const";
|
||||
import { operateChanges, OperateInfo, OperationState } from "../../../../../../../shared/components/operation/operate";
|
||||
import {
|
||||
ArtifactFront as Artifact,
|
||||
mutipleFilter,
|
||||
artifactPullCommands,
|
||||
artifactDefault, ArtifactFront
|
||||
} from '../../../artifact';
|
||||
import { artifactDefault, ArtifactFront as Artifact, ArtifactFront, artifactPullCommands, mutipleFilter } from '../../../artifact';
|
||||
import { Project } from "../../../../../project";
|
||||
import { ArtifactService as NewArtifactService } from "../../../../../../../../../ng-swagger-gen/services/artifact.service";
|
||||
import { ADDITIONS } from "../../../artifact-additions/models";
|
||||
|
@ -4,16 +4,11 @@ import { ArtifactListComponent } from './artifact-list.component';
|
||||
import { of } from "rxjs";
|
||||
import { delay } from 'rxjs/operators';
|
||||
import { ActivatedRoute } from '@angular/router';
|
||||
import {
|
||||
SystemInfo, SystemInfoDefaultService,
|
||||
SystemInfoService,
|
||||
} from "../../../../../../shared/services";
|
||||
import { SystemInfo, SystemInfoDefaultService, SystemInfoService, } from "../../../../../../shared/services";
|
||||
import { ArtifactDefaultService, ArtifactService } from "../../artifact.service";
|
||||
import { ChannelService } from "../../../../../../shared/services/channel.service";
|
||||
import { ErrorHandler } from "../../../../../../shared/units/error-handler";
|
||||
import {
|
||||
RepositoryService as NewRepositoryService
|
||||
} from "../../../../../../../../ng-swagger-gen/services/repository.service";
|
||||
import { RepositoryService as NewRepositoryService } from "../../../../../../../../ng-swagger-gen/services/repository.service";
|
||||
import { SharedTestingModule } from "../../../../../../shared/shared.module";
|
||||
import { HttpClientTestingModule } from "@angular/common/http/testing";
|
||||
|
||||
|
@ -11,23 +11,20 @@
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
import { Component, OnInit, ViewChild, Input, Output, EventEmitter, OnDestroy } from '@angular/core';
|
||||
import { Component, EventEmitter, Input, OnInit, Output, ViewChild } from '@angular/core';
|
||||
import { TranslateService } from '@ngx-translate/core';
|
||||
import { ArtifactClickEvent, State, SystemInfo, SystemInfoService } from "../../../../../../shared/services";
|
||||
import {
|
||||
ConfirmationDialogComponent,
|
||||
} from "../../../../../../shared/components/confirmation-dialog";
|
||||
import { ConfirmationDialogComponent, } from "../../../../../../shared/components/confirmation-dialog";
|
||||
import { ErrorHandler } from "../../../../../../shared/units/error-handler";
|
||||
import { ArtifactService } from "../../artifact.service";
|
||||
import { ConfirmationState, ConfirmationTargets } from "../../../../../../shared/entities/shared.const";
|
||||
import { ActivatedRoute } from "@angular/router";
|
||||
import { Project } from '../../../../project';
|
||||
import {
|
||||
RepositoryService as NewRepositoryService
|
||||
} from "../../../../../../../../ng-swagger-gen/services/repository.service";
|
||||
import { RepositoryService as NewRepositoryService } from "../../../../../../../../ng-swagger-gen/services/repository.service";
|
||||
import { dbEncodeURIComponent } from '../../../../../../shared/units/utils';
|
||||
import { ConfirmationMessage } from "../../../../../global-confirmation-dialog/confirmation-message";
|
||||
import { ConfirmationAcknowledgement } from "../../../../../global-confirmation-dialog/confirmation-state-message";
|
||||
|
||||
const TabLinkContentMap: { [index: string]: string } = {
|
||||
'repo-info': 'info',
|
||||
'repo-image': 'image'
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
import { ArtifactSummaryComponent } from "./artifact-summary.component";
|
||||
import { of } from "rxjs";
|
||||
import { NO_ERRORS_SCHEMA } from "@angular/core";
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { Component, Output, EventEmitter, OnInit } from "@angular/core";
|
||||
import { Component, EventEmitter, OnInit, Output } from "@angular/core";
|
||||
import { Artifact } from "../../../../../../ng-swagger-gen/models/artifact";
|
||||
import { ErrorHandler } from "../../../../shared/units/error-handler";
|
||||
import { Label } from "../../../../../../ng-swagger-gen/models/label";
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
import { ArtifactTagComponent } from './artifact-tag.component';
|
||||
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
||||
import { HttpClientTestingModule } from '@angular/common/http/testing';
|
||||
@ -8,8 +8,11 @@ import { ErrorHandler } from "../../../../../shared/units/error-handler";
|
||||
import { ArtifactService } from '../../../../../../../ng-swagger-gen/services/artifact.service';
|
||||
import { OperationService } from "../../../../../shared/components/operation/operation.service";
|
||||
import {
|
||||
USERSTATICPERMISSION,
|
||||
UserPermissionService, UserPermissionDefaultService, SystemInfoService } from '../../../../../shared/services';
|
||||
SystemInfoService,
|
||||
UserPermissionDefaultService,
|
||||
UserPermissionService,
|
||||
USERSTATICPERMISSION
|
||||
} from '../../../../../shared/services';
|
||||
import { delay } from 'rxjs/operators';
|
||||
import { AppConfigService } from "../../../../../services/app-config.service";
|
||||
import { SharedTestingModule } from "../../../../../shared/shared.module";
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { Component, OnInit, Input, ViewChild, OnDestroy } from '@angular/core';
|
||||
import { Observable, of, forkJoin, Subject, Subscription } from 'rxjs';
|
||||
import { map, catchError, finalize, debounceTime, distinctUntilChanged, switchMap } from 'rxjs/operators';
|
||||
import { Component, Input, OnDestroy, OnInit, ViewChild } from '@angular/core';
|
||||
import { forkJoin, Observable, of, Subject, Subscription } from 'rxjs';
|
||||
import { catchError, debounceTime, distinctUntilChanged, finalize, map, switchMap } from 'rxjs/operators';
|
||||
import { TranslateService } from '@ngx-translate/core';
|
||||
import { NgForm } from '@angular/forms';
|
||||
import { AVAILABLE_TIME } from "../artifact-list-page/artifact-list/artifact-list-tab/artifact-list-tab.component";
|
||||
@ -11,16 +11,15 @@ import { operateChanges, OperateInfo, OperationState } from "../../../../../shar
|
||||
import { ArtifactFront as Artifact, artifactImages, artifactPullCommands } from '../artifact';
|
||||
import { ArtifactService } from '../../../../../../../ng-swagger-gen/services/artifact.service';
|
||||
import { Tag } from '../../../../../../../ng-swagger-gen/models/tag';
|
||||
import {
|
||||
UserPermissionService, USERSTATICPERMISSION, SystemInfoService, SystemInfo
|
||||
} from "../../../../../shared/services";
|
||||
import { SystemInfo, SystemInfoService, UserPermissionService, USERSTATICPERMISSION } from "../../../../../shared/services";
|
||||
import { ClrDatagridStateInterface } from '@clr/angular';
|
||||
import {
|
||||
DEFAULT_PAGE_SIZE,
|
||||
calculatePage,
|
||||
dbEncodeURIComponent,
|
||||
DEFAULT_PAGE_SIZE,
|
||||
doFiltering,
|
||||
doSorting, getSortingString
|
||||
doSorting,
|
||||
getSortingString
|
||||
} from '../../../../../shared/units/utils';
|
||||
import { AppConfigService } from "../../../../../services/app-config.service";
|
||||
import { errorHandler } from "../../../../../shared/units/shared.utils";
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { TestBed, inject } from '@angular/core/testing';
|
||||
import { inject, TestBed } from '@angular/core/testing';
|
||||
import { ArtifactDefaultService, ArtifactService } from "./artifact.service";
|
||||
import { IconService } from '../../../../../../ng-swagger-gen/services/icon.service';
|
||||
import { DomSanitizer } from '@angular/platform-browser';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { Injectable, Inject } from "@angular/core";
|
||||
import { Injectable } from "@angular/core";
|
||||
import { Subject } from "rxjs";
|
||||
import { DomSanitizer, SafeUrl } from '@angular/platform-browser';
|
||||
import { Artifact } from '../../../../../../ng-swagger-gen/models/artifact';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
import { HistogramChartComponent } from './histogram-chart.component';
|
||||
import { TranslateModule } from "@ngx-translate/core";
|
||||
|
||||
|
@ -1,13 +1,4 @@
|
||||
import {
|
||||
AfterViewInit,
|
||||
ChangeDetectionStrategy,
|
||||
Component,
|
||||
DoCheck,
|
||||
ElementRef,
|
||||
Input,
|
||||
OnInit,
|
||||
ViewChild
|
||||
} from '@angular/core';
|
||||
import { AfterViewInit, ChangeDetectionStrategy, Component, DoCheck, ElementRef, Input, OnInit, ViewChild } from '@angular/core';
|
||||
import { TranslateService } from "@ngx-translate/core";
|
||||
import { forkJoin } from "rxjs";
|
||||
|
||||
|
@ -1,15 +1,10 @@
|
||||
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
import { ResultBarChartComponent } from './result-bar-chart.component';
|
||||
import { ResultTipComponent } from './result-tip.component';
|
||||
import { ResultTipHistogramComponent } from "./result-tip-histogram/result-tip-histogram.component";
|
||||
import { HistogramChartComponent } from "./histogram-chart/histogram-chart.component";
|
||||
import {
|
||||
JobLogDefaultService,
|
||||
JobLogService,
|
||||
ScanningResultDefaultService,
|
||||
ScanningResultService,
|
||||
} from "../../../../../shared/services";
|
||||
import { CURRENT_BASE_HREF, VULNERABILITY_SCAN_STATUS } from "../../../../../shared/units/utils";
|
||||
import { JobLogDefaultService, JobLogService, ScanningResultDefaultService, ScanningResultService, } from "../../../../../shared/services";
|
||||
import { VULNERABILITY_SCAN_STATUS } from "../../../../../shared/units/utils";
|
||||
import { ErrorHandler } from "../../../../../shared/units/error-handler";
|
||||
import { ChannelService } from "../../../../../shared/services/channel.service";
|
||||
import { ArtifactDefaultService, ArtifactService } from "../artifact.service";
|
||||
|
@ -1,21 +1,10 @@
|
||||
import {
|
||||
Component,
|
||||
Input,
|
||||
OnInit,
|
||||
OnDestroy,
|
||||
Output, EventEmitter,
|
||||
} from '@angular/core';
|
||||
import { Subscription , timer} from "rxjs";
|
||||
import { Component, EventEmitter, Input, OnDestroy, OnInit, Output, } from '@angular/core';
|
||||
import { Subscription, timer } from "rxjs";
|
||||
import { finalize } from "rxjs/operators";
|
||||
import { ScannerVo, ScanningResultService } from "../../../../../shared/services";
|
||||
import { ErrorHandler } from "../../../../../shared/units/error-handler";
|
||||
import { ChannelService } from "../../../../../shared/services/channel.service";
|
||||
import {
|
||||
clone,
|
||||
CURRENT_BASE_HREF,
|
||||
VULNERABILITY_SCAN_STATUS,
|
||||
dbEncodeURIComponent
|
||||
} from "../../../../../shared/units/utils";
|
||||
import { clone, CURRENT_BASE_HREF, dbEncodeURIComponent, VULNERABILITY_SCAN_STATUS } from "../../../../../shared/units/utils";
|
||||
import { ArtifactService } from "../../../../../../../ng-swagger-gen/services/artifact.service";
|
||||
import { Artifact } from "../../../../../../../ng-swagger-gen/models/artifact";
|
||||
import { NativeReportSummary } from "../../../../../../../ng-swagger-gen/models/native-report-summary";
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
import { ResultTipHistogramComponent } from './result-tip-histogram.component';
|
||||
import { ClarityModule } from "@clr/angular";
|
||||
import { TranslateModule, TranslateService } from "@ngx-translate/core";
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
import { ResultTipComponent } from './result-tip.component';
|
||||
import { UserPermissionDefaultService, UserPermissionService, VulnerabilitySummary } from "../../../../../shared/services";
|
||||
import { CURRENT_BASE_HREF, VULNERABILITY_SCAN_STATUS } from "../../../../../shared/units/utils";
|
||||
import { VULNERABILITY_SCAN_STATUS } from "../../../../../shared/units/utils";
|
||||
import { SharedTestingModule } from "../../../../../shared/shared.module";
|
||||
|
||||
|
||||
|
@ -9,7 +9,7 @@
|
||||
* conditions of the subcomponent's license, as noted in the LICENSE file.
|
||||
*/
|
||||
|
||||
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
import { GridViewComponent } from './grid-view.component';
|
||||
import { SharedTestingModule } from "../../../../shared/shared.module";
|
||||
|
||||
|
@ -10,17 +10,17 @@
|
||||
*/
|
||||
|
||||
import {
|
||||
AfterViewInit,
|
||||
Component,
|
||||
ContentChild,
|
||||
EventEmitter,
|
||||
HostListener,
|
||||
Input,
|
||||
Output,
|
||||
ContentChild,
|
||||
TemplateRef,
|
||||
ViewChild,
|
||||
ViewChildren,
|
||||
TemplateRef,
|
||||
HostListener,
|
||||
ViewEncapsulation,
|
||||
EventEmitter,
|
||||
AfterViewInit
|
||||
ViewEncapsulation
|
||||
} from "@angular/core";
|
||||
import { Subscription } from "rxjs";
|
||||
import { TranslateService } from "@ngx-translate/core";
|
||||
|
@ -2,18 +2,13 @@ import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
import { of } from "rxjs";
|
||||
import { RepositoryService as NewRepositoryService } from "../../../../../ng-swagger-gen/services/repository.service";
|
||||
import { RepositoryGridviewComponent } from "./repository-gridview.component";
|
||||
import {
|
||||
ProjectDefaultService,
|
||||
ProjectService,
|
||||
SystemInfo, SystemInfoService,
|
||||
UserPermissionService
|
||||
} from "../../../shared/services";
|
||||
import { ProjectDefaultService, ProjectService, SystemInfo, SystemInfoService, UserPermissionService } from "../../../shared/services";
|
||||
import { delay } from 'rxjs/operators';
|
||||
import { ErrorHandler } from "../../../shared/units/error-handler";
|
||||
import { ActivatedRoute } from "@angular/router";
|
||||
import { Repository as NewRepository } from "../../../../../ng-swagger-gen/models/repository";
|
||||
import { SharedTestingModule } from "../../../shared/shared.module";
|
||||
import {GridViewComponent} from "./gridview/grid-view.component";
|
||||
import { GridViewComponent } from "./gridview/grid-view.component";
|
||||
|
||||
describe('RepositoryComponentGridview (inline template)', () => {
|
||||
|
||||
|
@ -1,47 +1,31 @@
|
||||
import {
|
||||
Component,
|
||||
Input,
|
||||
Output,
|
||||
OnInit,
|
||||
ViewChild,
|
||||
EventEmitter,
|
||||
OnChanges,
|
||||
SimpleChanges,
|
||||
OnDestroy
|
||||
} from "@angular/core";
|
||||
import {forkJoin, of, Subscription} from "rxjs";
|
||||
import {debounceTime, distinctUntilChanged, finalize, switchMap} from "rxjs/operators";
|
||||
import { Component, EventEmitter, Input, OnChanges, OnDestroy, OnInit, Output, SimpleChanges, ViewChild } from "@angular/core";
|
||||
import { forkJoin, Observable, of, Subscription } from "rxjs";
|
||||
import { catchError, debounceTime, distinctUntilChanged, finalize, map, switchMap } from "rxjs/operators";
|
||||
import { TranslateService } from "@ngx-translate/core";
|
||||
import { map, catchError } from "rxjs/operators";
|
||||
import { Observable } from "rxjs";
|
||||
import { ClrDatagridStateInterface } from "@clr/angular";
|
||||
import {
|
||||
RepositoryService as NewRepositoryService
|
||||
} from "../../../../../ng-swagger-gen/services/repository.service";
|
||||
import {
|
||||
SystemInfo,
|
||||
SystemInfoService,
|
||||
UserPermissionService, USERSTATICPERMISSION
|
||||
} from "../../../shared/services";
|
||||
import { RepositoryService as NewRepositoryService } from "../../../../../ng-swagger-gen/services/repository.service";
|
||||
import { SystemInfo, SystemInfoService, UserPermissionService, USERSTATICPERMISSION } from "../../../shared/services";
|
||||
import { FilterComponent } from "../../../shared/components/filter/filter.component";
|
||||
import {
|
||||
calculatePage,
|
||||
clone,
|
||||
DEFAULT_PAGE_SIZE,
|
||||
CURRENT_BASE_HREF,
|
||||
dbEncodeURIComponent,
|
||||
doFiltering, CURRENT_BASE_HREF, getSortingString
|
||||
DEFAULT_PAGE_SIZE,
|
||||
doFiltering,
|
||||
getSortingString
|
||||
} from "../../../shared/units/utils";
|
||||
import { ErrorHandler } from "../../../shared/units/error-handler";
|
||||
import {
|
||||
CARD_VIEW_LOCALSTORAGE_KEY,
|
||||
ConfirmationButtons,
|
||||
ConfirmationState,
|
||||
ConfirmationTargets, FALSE_STR, TRUE_STR
|
||||
ConfirmationTargets,
|
||||
FALSE_STR,
|
||||
TRUE_STR
|
||||
} from "../../../shared/entities/shared.const";
|
||||
import { operateChanges, OperateInfo, OperationState } from "../../../shared/components/operation/operate";
|
||||
import {
|
||||
ConfirmationDialogComponent,
|
||||
} from "../../../shared/components/confirmation-dialog";
|
||||
import { ConfirmationDialogComponent, } from "../../../shared/components/confirmation-dialog";
|
||||
import { OperationService } from "../../../shared/components/operation/operation.service";
|
||||
import { Project } from "../project";
|
||||
import { ActivatedRoute, Router } from "@angular/router";
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
import { of } from "rxjs";
|
||||
import { TranslateService } from "@ngx-translate/core";
|
||||
import { MessageHandlerService } from "../../../shared/services/message-handler.service";
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
||||
import { ActivatedRoute } from '@angular/router';
|
||||
import { of } from 'rxjs';
|
||||
|
@ -1,19 +1,9 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { ActivatedRoute, Router } from '@angular/router';
|
||||
import { AppConfigService } from "../../../services/app-config.service";
|
||||
import {
|
||||
Endpoint,
|
||||
ProjectService,
|
||||
UserPermissionService,
|
||||
USERSTATICPERMISSION
|
||||
} from '../../../shared/services';
|
||||
import { Endpoint, ProjectService, UserPermissionService, USERSTATICPERMISSION } from '../../../shared/services';
|
||||
import { ErrorHandler } from "../../../shared/units/error-handler";
|
||||
import {
|
||||
DefaultHelmIcon,
|
||||
FALSE_STR,
|
||||
PROJECT_SUMMARY_CARD_VIEW_LOCALSTORAGE_KEY,
|
||||
TRUE_STR
|
||||
} from "../../../shared/entities/shared.const";
|
||||
import { DefaultHelmIcon, FALSE_STR, PROJECT_SUMMARY_CARD_VIEW_LOCALSTORAGE_KEY, TRUE_STR } from "../../../shared/entities/shared.const";
|
||||
import { RepositoryService } from "../../../../../ng-swagger-gen/services/repository.service";
|
||||
import { Project } from "../../../../../ng-swagger-gen/models/project";
|
||||
import { Repository } from "../../../../../ng-swagger-gen/models/repository";
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
import { AddWebhookFormComponent } from './add-webhook-form.component';
|
||||
import { ProjectWebhookService } from "../webhook.service";
|
||||
import { MessageHandlerService } from "../../../../shared/services/message-handler.service";
|
||||
|
@ -1,11 +1,4 @@
|
||||
import {
|
||||
Component,
|
||||
OnInit,
|
||||
Input,
|
||||
ViewChild,
|
||||
Output,
|
||||
EventEmitter, OnDestroy,
|
||||
} from "@angular/core";
|
||||
import { Component, EventEmitter, Input, OnDestroy, OnInit, Output, ViewChild, } from "@angular/core";
|
||||
import { NgForm } from "@angular/forms";
|
||||
import { debounceTime, distinctUntilChanged, filter, finalize, switchMap } from "rxjs/operators";
|
||||
import { ProjectWebhookService } from "../webhook.service";
|
||||
|
@ -1,7 +1,8 @@
|
||||
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
import { AddWebhookComponent } from './add-webhook.component';
|
||||
import { CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA } from '@angular/core';
|
||||
import { SharedTestingModule } from "../../../../shared/shared.module";
|
||||
|
||||
describe('AddWebhookComponent', () => {
|
||||
let component: AddWebhookComponent;
|
||||
let fixture: ComponentFixture<AddWebhookComponent>;
|
||||
|
@ -1,11 +1,4 @@
|
||||
import {
|
||||
Component,
|
||||
OnInit,
|
||||
Input,
|
||||
ViewChild,
|
||||
Output,
|
||||
EventEmitter,
|
||||
} from "@angular/core";
|
||||
import { Component, EventEmitter, Input, OnInit, Output, ViewChild, } from "@angular/core";
|
||||
import { AddWebhookFormComponent } from "../add-webhook-form/add-webhook-form.component";
|
||||
import { WebhookPolicy } from "../../../../../../ng-swagger-gen/models/webhook-policy";
|
||||
|
||||
|
@ -1,7 +1,4 @@
|
||||
import {
|
||||
Component, Input, OnChanges,
|
||||
OnInit, SimpleChanges
|
||||
} from "@angular/core";
|
||||
import { Component, Input, OnChanges, OnInit, SimpleChanges } from "@angular/core";
|
||||
import { ProjectWebhookService } from "../webhook.service";
|
||||
import { WebhookLastTrigger } from "../../../../../../ng-swagger-gen/models/webhook-last-trigger";
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
import { WebhookComponent } from './webhook.component';
|
||||
import { ActivatedRoute } from '@angular/router';
|
||||
import { ProjectWebhookService } from './webhook.service';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { TestBed, inject } from '@angular/core/testing';
|
||||
import { inject, TestBed } from '@angular/core/testing';
|
||||
import { ProjectWebhookService } from './webhook.service';
|
||||
|
||||
describe('WebhookService', () => {
|
||||
|
Loading…
Reference in New Issue
Block a user