From b5b1d45413cb34e0ad0dc34fddb4a64d37bf8e74 Mon Sep 17 00:00:00 2001 From: Prasanth Baskar Date: Fri, 14 Mar 2025 15:46:54 +0530 Subject: [PATCH] Add Missing Headers in UI part 3 (#21695) add missing headers in UI part 3 Signed-off-by: bupd --- .../src/app/license/license.component.spec.ts | 13 +++++++++++++ src/portal/src/app/license/license.component.ts | 13 +++++++++++++ src/portal/src/app/license/license.module.ts | 13 +++++++++++++ .../src/app/not-found/not-found.component.spec.ts | 13 +++++++++++++ src/portal/src/app/not-found/not-found.module.ts | 13 +++++++++++++ .../app/oidc-onboard/oidc-onboard.component.spec.ts | 13 +++++++++++++ .../src/app/oidc-onboard/oidc-onboard.component.ts | 13 +++++++++++++ .../app/oidc-onboard/oidc-onboard.service.spec.ts | 13 +++++++++++++ .../src/app/oidc-onboard/oidc-onboard.service.ts | 13 +++++++++++++ .../harbor-route-reuse-strategy.spec.ts | 13 +++++++++++++ .../harbor-route-reuse-strategy.ts | 13 +++++++++++++ .../src/app/services/app-config.service.spec.ts | 13 +++++++++++++ src/portal/src/app/services/config.service.spec.ts | 13 +++++++++++++ .../services/event-service/event.service.spec.ts | 13 +++++++++++++ .../src/app/services/event-service/event.service.ts | 13 +++++++++++++ .../harbor-translate-loader.service.spec.ts | 13 +++++++++++++ .../app/services/harbor-translate-loader.service.ts | 13 +++++++++++++ .../src/app/services/intercept-http.service.spec.ts | 13 +++++++++++++ .../src/app/services/intercept-http.service.ts | 13 +++++++++++++ ...artifact-detail-routing-resolver.service.spec.ts | 13 +++++++++++++ .../project-routing-resolver.service.spec.ts | 13 +++++++++++++ ...plication-tasks-routing-resolver.service.spec.ts | 13 +++++++++++++ .../app/services/skinable-config.service.spec.ts | 13 +++++++++++++ .../src/app/services/skinable-config.service.ts | 13 +++++++++++++ src/portal/src/app/services/theme.service.spec.ts | 13 +++++++++++++ src/portal/src/app/services/theme.service.ts | 13 +++++++++++++ src/portal/src/app/services/theme.ts | 13 +++++++++++++ .../about-dialog/about-dialog.component.spec.ts | 13 +++++++++++++ .../app-level-alerts.component.spec.ts | 13 +++++++++++++ .../app-level-alerts/app-level-alerts.component.ts | 13 +++++++++++++ .../confirmation-dialog.component.spec.ts | 13 +++++++++++++ .../shared/components/confirmation-dialog/index.ts | 13 +++++++++++++ .../cron-schedule/cron-schedule.component.ts | 13 +++++++++++++ .../cron-tooltip/cron-tooltip.component.ts | 13 +++++++++++++ .../app/shared/components/cron-schedule/index.ts | 13 +++++++++++++ .../datetime-picker.component.spec.ts | 13 +++++++++++++ .../datetime-picker/datetime-picker.component.ts | 13 +++++++++++++ .../components/filter/filter.component.spec.ts | 13 +++++++++++++ .../shared/components/gauge/gauge.component.spec.ts | 13 +++++++++++++ .../global-message/message.component.spec.ts | 13 +++++++++++++ .../global-message/message.service.spec.ts | 13 +++++++++++++ .../global-search/global-search.component.spec.ts | 13 +++++++++++++ .../global-search/global-search.component.ts | 13 +++++++++++++ .../global-search/global-search.service.spec.ts | 13 +++++++++++++ .../global-search/search-result.component.spec.ts | 13 +++++++++++++ .../global-search/search-trigger.service.spec.ts | 13 +++++++++++++ .../image-name-input.component.spec.ts | 13 +++++++++++++ .../image-name-input/image-name-input.component.ts | 13 +++++++++++++ .../inline-alert/inline-alert.component.spec.ts | 13 +++++++++++++ .../label-selector/label-selector.component.spec.ts | 13 +++++++++++++ .../label-selector/label-selector.component.ts | 13 +++++++++++++ .../create-edit-label.component.spec.ts | 13 +++++++++++++ .../shared/components/label/label.component.spec.ts | 13 +++++++++++++ .../list-project-ro.component.spec.ts | 13 +++++++++++++ .../list-repository-ro.component.spec.ts | 13 +++++++++++++ .../navigator/navigator.component.spec.ts | 13 +++++++++++++ .../new-user-form/new-user-form.component.spec.ts | 13 +++++++++++++ .../src/app/shared/components/operation/operate.ts | 13 +++++++++++++ .../operation/operation.component.spec.ts | 13 +++++++++++++ .../components/operation/operation.component.ts | 13 +++++++++++++ .../components/operation/operation.service.spec.ts | 13 +++++++++++++ .../components/operation/operation.service.ts | 13 +++++++++++++ .../components/push-image/copy-input.component.ts | 13 +++++++++++++ .../push-image/push-image.component.spec.ts | 13 +++++++++++++ .../components/push-image/push-image.component.ts | 13 +++++++++++++ .../remaining-time/remaining-time.component.spec.ts | 13 +++++++++++++ .../robot-permissions-panel.component.spec.ts | 13 +++++++++++++ .../robot-permissions-panel.component.ts | 13 +++++++++++++ .../ngx-clipboard/clipboard.directive.ts | 13 +++++++++++++ .../third-party/ngx-clipboard/clipboard.service.ts | 13 +++++++++++++ .../components/third-party/ngx-clipboard/index.ts | 13 +++++++++++++ .../third-party/ngx-window-token/window-token.ts | 13 +++++++++++++ .../view-token/view-token.component.spec.ts | 13 +++++++++++++ .../components/view-token/view-token.component.ts | 13 +++++++++++++ .../directives/date-validator.directive.spec.ts | 13 +++++++++++++ .../directives/max-length-ext.directive.spec.ts | 13 +++++++++++++ .../app/shared/directives/port.directive.spec.ts | 13 +++++++++++++ .../scroll/scroll-anchor.directive.spec.ts | 13 +++++++++++++ .../directives/scroll/scroll-anchor.directive.ts | 13 +++++++++++++ .../scroll/scroll-manager.service.spec.ts | 13 +++++++++++++ .../directives/scroll/scroll-manager.service.ts | 13 +++++++++++++ .../scroll/scroll-section.directive.spec.ts | 13 +++++++++++++ .../directives/scroll/scroll-section.directive.ts | 13 +++++++++++++ .../app/shared/pipes/harbor-datetime.pipe.spec.ts | 13 +++++++++++++ .../src/app/shared/pipes/harbor-datetime.pipe.ts | 13 +++++++++++++ .../router-guard/auth-user-activate.service.spec.ts | 13 +++++++++++++ .../member-guard-activate.service.spec.ts | 13 +++++++++++++ ...member-permission-guard-activate.service.spec.ts | 13 +++++++++++++ .../member-permission-guard-activate.service.ts | 13 +++++++++++++ .../mode-guard-activate.service.spec.ts | 13 +++++++++++++ .../router-guard/oidc-guard-active.service.spec.ts | 13 +++++++++++++ .../sign-in-guard-activate.service.spec.ts | 13 +++++++++++++ .../system-admin-activate.service.spec.ts | 13 +++++++++++++ .../src/app/shared/services/RequestQueryParams.ts | 13 +++++++++++++ .../app/shared/services/endpoint.service.spec.ts | 13 +++++++++++++ .../src/app/shared/services/endpoint.service.ts | 13 +++++++++++++ src/portal/src/app/shared/services/index.ts | 13 +++++++++++++ src/portal/src/app/shared/services/interface.ts | 13 +++++++++++++ .../src/app/shared/services/job-log.service.spec.ts | 13 +++++++++++++ .../src/app/shared/services/job-log.service.ts | 13 +++++++++++++ src/portal/src/app/shared/services/label.service.ts | 13 +++++++++++++ .../shared/services/message-handler.service.spec.ts | 13 +++++++++++++ .../src/app/shared/services/permission-static.ts | 13 +++++++++++++ .../src/app/shared/services/project.service.ts | 13 +++++++++++++ .../app/shared/services/replication.service.spec.ts | 13 +++++++++++++ .../src/app/shared/services/replication.service.ts | 13 +++++++++++++ .../app/shared/services/scanning.service.spec.ts | 13 +++++++++++++ .../src/app/shared/services/scanning.service.ts | 13 +++++++++++++ .../src/app/shared/services/session.service.spec.ts | 13 +++++++++++++ .../services/session.viewmodel.factory.spec.ts | 13 +++++++++++++ .../shared/services/session.viewmodel.factory.ts | 13 +++++++++++++ .../app/shared/services/system-info.service.spec.ts | 13 +++++++++++++ .../src/app/shared/services/system-info.service.ts | 13 +++++++++++++ .../src/app/shared/services/tempCodeRunnerFile.ts | 13 +++++++++++++ .../src/app/shared/units/error-handler/index.ts | 13 +++++++++++++ src/portal/src/app/shared/units/utils.spec.ts | 13 +++++++++++++ src/portal/src/app/shared/units/utils.ts | 13 +++++++++++++ 117 files changed, 1521 insertions(+) diff --git a/src/portal/src/app/license/license.component.spec.ts b/src/portal/src/app/license/license.component.spec.ts index e5c7023de..dad98d6f9 100644 --- a/src/portal/src/app/license/license.component.spec.ts +++ b/src/portal/src/app/license/license.component.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { ComponentFixture, TestBed } from '@angular/core/testing'; import { HttpClientTestingModule } from '@angular/common/http/testing'; import { LicenseComponent } from './license.component'; diff --git a/src/portal/src/app/license/license.component.ts b/src/portal/src/app/license/license.component.ts index 171f85509..803ad6e31 100644 --- a/src/portal/src/app/license/license.component.ts +++ b/src/portal/src/app/license/license.component.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { HttpClient } from '@angular/common/http'; import { throwError as observableThrowError } from 'rxjs'; diff --git a/src/portal/src/app/license/license.module.ts b/src/portal/src/app/license/license.module.ts index 07aacfc76..6d949896d 100644 --- a/src/portal/src/app/license/license.module.ts +++ b/src/portal/src/app/license/license.module.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { NgModule } from '@angular/core'; import { LicenseComponent } from './license.component'; import { RouterModule, Routes } from '@angular/router'; diff --git a/src/portal/src/app/not-found/not-found.component.spec.ts b/src/portal/src/app/not-found/not-found.component.spec.ts index 6bde5e578..bb2d4a58b 100644 --- a/src/portal/src/app/not-found/not-found.component.spec.ts +++ b/src/portal/src/app/not-found/not-found.component.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { ComponentFixture, TestBed } from '@angular/core/testing'; import { PageNotFoundComponent } from './not-found.component'; import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; diff --git a/src/portal/src/app/not-found/not-found.module.ts b/src/portal/src/app/not-found/not-found.module.ts index e30a28758..0b28a8aef 100644 --- a/src/portal/src/app/not-found/not-found.module.ts +++ b/src/portal/src/app/not-found/not-found.module.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { SharedModule } from '../shared/shared.module'; diff --git a/src/portal/src/app/oidc-onboard/oidc-onboard.component.spec.ts b/src/portal/src/app/oidc-onboard/oidc-onboard.component.spec.ts index aecb8d31d..46522c265 100644 --- a/src/portal/src/app/oidc-onboard/oidc-onboard.component.spec.ts +++ b/src/portal/src/app/oidc-onboard/oidc-onboard.component.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { ComponentFixture, TestBed } from '@angular/core/testing'; import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; import { OidcOnboardService } from './oidc-onboard.service'; diff --git a/src/portal/src/app/oidc-onboard/oidc-onboard.component.ts b/src/portal/src/app/oidc-onboard/oidc-onboard.component.ts index d4ff6d491..8c7182c3b 100644 --- a/src/portal/src/app/oidc-onboard/oidc-onboard.component.ts +++ b/src/portal/src/app/oidc-onboard/oidc-onboard.component.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { Router, ActivatedRoute } from '@angular/router'; import { Component, OnInit } from '@angular/core'; import { OidcOnboardService } from './oidc-onboard.service'; diff --git a/src/portal/src/app/oidc-onboard/oidc-onboard.service.spec.ts b/src/portal/src/app/oidc-onboard/oidc-onboard.service.spec.ts index 290bed393..8830b8675 100644 --- a/src/portal/src/app/oidc-onboard/oidc-onboard.service.spec.ts +++ b/src/portal/src/app/oidc-onboard/oidc-onboard.service.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { TestBed } from '@angular/core/testing'; import { HttpClient } from '@angular/common/http'; import { HttpClientTestingModule } from '@angular/common/http/testing'; diff --git a/src/portal/src/app/oidc-onboard/oidc-onboard.service.ts b/src/portal/src/app/oidc-onboard/oidc-onboard.service.ts index 952eff493..4215b1e82 100644 --- a/src/portal/src/app/oidc-onboard/oidc-onboard.service.ts +++ b/src/portal/src/app/oidc-onboard/oidc-onboard.service.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { catchError } from 'rxjs/operators'; diff --git a/src/portal/src/app/route-reuse-strategy/harbor-route-reuse-strategy.spec.ts b/src/portal/src/app/route-reuse-strategy/harbor-route-reuse-strategy.spec.ts index cc9b5befb..57840d986 100644 --- a/src/portal/src/app/route-reuse-strategy/harbor-route-reuse-strategy.spec.ts +++ b/src/portal/src/app/route-reuse-strategy/harbor-route-reuse-strategy.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { HarborRouteReuseStrategy } from './harbor-route-reuse-strategy'; import { ActivatedRouteSnapshot } from '@angular/router'; diff --git a/src/portal/src/app/route-reuse-strategy/harbor-route-reuse-strategy.ts b/src/portal/src/app/route-reuse-strategy/harbor-route-reuse-strategy.ts index 517e7507a..08174fd25 100644 --- a/src/portal/src/app/route-reuse-strategy/harbor-route-reuse-strategy.ts +++ b/src/portal/src/app/route-reuse-strategy/harbor-route-reuse-strategy.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { RouteReuseStrategy, ActivatedRouteSnapshot, diff --git a/src/portal/src/app/services/app-config.service.spec.ts b/src/portal/src/app/services/app-config.service.spec.ts index 705e304e0..616be8f99 100644 --- a/src/portal/src/app/services/app-config.service.spec.ts +++ b/src/portal/src/app/services/app-config.service.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { TestBed, inject, getTestBed } from '@angular/core/testing'; import { HttpClientTestingModule, diff --git a/src/portal/src/app/services/config.service.spec.ts b/src/portal/src/app/services/config.service.spec.ts index 223439030..cfdaaabcc 100644 --- a/src/portal/src/app/services/config.service.spec.ts +++ b/src/portal/src/app/services/config.service.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { TestBed, inject } from '@angular/core/testing'; import { HttpClientTestingModule } from '@angular/common/http/testing'; import { ConfigurationService } from './config.service'; diff --git a/src/portal/src/app/services/event-service/event.service.spec.ts b/src/portal/src/app/services/event-service/event.service.spec.ts index b58f61665..794ebc8d0 100644 --- a/src/portal/src/app/services/event-service/event.service.spec.ts +++ b/src/portal/src/app/services/event-service/event.service.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { TestBed } from '@angular/core/testing'; import { EventService, HarborEvent } from './event.service'; import { Subscription } from 'rxjs'; diff --git a/src/portal/src/app/services/event-service/event.service.ts b/src/portal/src/app/services/event-service/event.service.ts index 31032f52d..5338537ce 100644 --- a/src/portal/src/app/services/event-service/event.service.ts +++ b/src/portal/src/app/services/event-service/event.service.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { Injectable } from '@angular/core'; import { Subscription } from 'rxjs'; diff --git a/src/portal/src/app/services/harbor-translate-loader.service.spec.ts b/src/portal/src/app/services/harbor-translate-loader.service.spec.ts index ab789204f..7a9c13bca 100644 --- a/src/portal/src/app/services/harbor-translate-loader.service.spec.ts +++ b/src/portal/src/app/services/harbor-translate-loader.service.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { TestBed, inject } from '@angular/core/testing'; import { SharedTestingModule } from '../shared/shared.module'; import { HarborTranslateLoaderService } from './harbor-translate-loader.service'; diff --git a/src/portal/src/app/services/harbor-translate-loader.service.ts b/src/portal/src/app/services/harbor-translate-loader.service.ts index c92ac2e67..a9199a6d4 100644 --- a/src/portal/src/app/services/harbor-translate-loader.service.ts +++ b/src/portal/src/app/services/harbor-translate-loader.service.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { Injectable } from '@angular/core'; import { TranslateLoader } from '@ngx-translate/core'; import { Observable } from 'rxjs'; diff --git a/src/portal/src/app/services/intercept-http.service.spec.ts b/src/portal/src/app/services/intercept-http.service.spec.ts index 209efd35b..4315f2565 100644 --- a/src/portal/src/app/services/intercept-http.service.spec.ts +++ b/src/portal/src/app/services/intercept-http.service.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { TestBed, inject } from '@angular/core/testing'; import { InterceptHttpService } from './intercept-http.service'; import { HttpRequest, HttpResponse } from '@angular/common/http'; diff --git a/src/portal/src/app/services/intercept-http.service.ts b/src/portal/src/app/services/intercept-http.service.ts index 6373b27c6..7d6d16932 100644 --- a/src/portal/src/app/services/intercept-http.service.ts +++ b/src/portal/src/app/services/intercept-http.service.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { Injectable } from '@angular/core'; import { HttpInterceptor, diff --git a/src/portal/src/app/services/routing-resolvers/artifact-detail-routing-resolver.service.spec.ts b/src/portal/src/app/services/routing-resolvers/artifact-detail-routing-resolver.service.spec.ts index 0237a5e5f..b11e71174 100644 --- a/src/portal/src/app/services/routing-resolvers/artifact-detail-routing-resolver.service.spec.ts +++ b/src/portal/src/app/services/routing-resolvers/artifact-detail-routing-resolver.service.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { TestBed, inject } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; import { ProjectService } from '../../shared/services'; diff --git a/src/portal/src/app/services/routing-resolvers/project-routing-resolver.service.spec.ts b/src/portal/src/app/services/routing-resolvers/project-routing-resolver.service.spec.ts index 9c89d7279..0e302db8e 100644 --- a/src/portal/src/app/services/routing-resolvers/project-routing-resolver.service.spec.ts +++ b/src/portal/src/app/services/routing-resolvers/project-routing-resolver.service.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { TestBed, inject } from '@angular/core/testing'; import { SessionService } from '../../shared/services/session.service'; import { ProjectRoutingResolver } from './project-routing-resolver.service'; diff --git a/src/portal/src/app/services/routing-resolvers/replication-tasks-routing-resolver.service.spec.ts b/src/portal/src/app/services/routing-resolvers/replication-tasks-routing-resolver.service.spec.ts index 6036ef383..d9f6f74e6 100644 --- a/src/portal/src/app/services/routing-resolvers/replication-tasks-routing-resolver.service.spec.ts +++ b/src/portal/src/app/services/routing-resolvers/replication-tasks-routing-resolver.service.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { TestBed, inject } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; import { ReplicationTasksRoutingResolverService } from './replication-tasks-routing-resolver.service'; diff --git a/src/portal/src/app/services/skinable-config.service.spec.ts b/src/portal/src/app/services/skinable-config.service.spec.ts index 289c595f9..c50e2deb3 100644 --- a/src/portal/src/app/services/skinable-config.service.spec.ts +++ b/src/portal/src/app/services/skinable-config.service.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { TestBed, inject, getTestBed } from '@angular/core/testing'; import { HttpClientTestingModule, diff --git a/src/portal/src/app/services/skinable-config.service.ts b/src/portal/src/app/services/skinable-config.service.ts index 3cdd6549a..62c248d9d 100644 --- a/src/portal/src/app/services/skinable-config.service.ts +++ b/src/portal/src/app/services/skinable-config.service.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { Inject, Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { map, catchError } from 'rxjs/operators'; diff --git a/src/portal/src/app/services/theme.service.spec.ts b/src/portal/src/app/services/theme.service.spec.ts index 51fe21708..23b1af673 100644 --- a/src/portal/src/app/services/theme.service.spec.ts +++ b/src/portal/src/app/services/theme.service.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { TestBed } from '@angular/core/testing'; import { ThemeService } from './theme.service'; diff --git a/src/portal/src/app/services/theme.service.ts b/src/portal/src/app/services/theme.service.ts index 7f0e71b54..54728a4ae 100644 --- a/src/portal/src/app/services/theme.service.ts +++ b/src/portal/src/app/services/theme.service.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { Injectable, Inject } from '@angular/core'; import { DOCUMENT } from '@angular/common'; import { environment } from '../../environments/environment'; diff --git a/src/portal/src/app/services/theme.ts b/src/portal/src/app/services/theme.ts index eefdb200d..0116f2f35 100644 --- a/src/portal/src/app/services/theme.ts +++ b/src/portal/src/app/services/theme.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. export enum StyleMode { DARK = 'DARK', LIGHT = 'LIGHT', diff --git a/src/portal/src/app/shared/components/about-dialog/about-dialog.component.spec.ts b/src/portal/src/app/shared/components/about-dialog/about-dialog.component.spec.ts index 454b14840..7fa3bb550 100644 --- a/src/portal/src/app/shared/components/about-dialog/about-dialog.component.spec.ts +++ b/src/portal/src/app/shared/components/about-dialog/about-dialog.component.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { ComponentFixture, TestBed } from '@angular/core/testing'; import { AppConfigService } from '../../../services/app-config.service'; import { SkinableConfig } from '../../../services/skinable-config.service'; diff --git a/src/portal/src/app/shared/components/app-level-alerts/app-level-alerts.component.spec.ts b/src/portal/src/app/shared/components/app-level-alerts/app-level-alerts.component.spec.ts index b33d2cbd7..9dc8fa417 100644 --- a/src/portal/src/app/shared/components/app-level-alerts/app-level-alerts.component.spec.ts +++ b/src/portal/src/app/shared/components/app-level-alerts/app-level-alerts.component.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { ComponentFixture, TestBed } from '@angular/core/testing'; import { AppLevelAlertsComponent } from './app-level-alerts.component'; import { SharedTestingModule } from '../../shared.module'; diff --git a/src/portal/src/app/shared/components/app-level-alerts/app-level-alerts.component.ts b/src/portal/src/app/shared/components/app-level-alerts/app-level-alerts.component.ts index 3e4630e87..21842d235 100644 --- a/src/portal/src/app/shared/components/app-level-alerts/app-level-alerts.component.ts +++ b/src/portal/src/app/shared/components/app-level-alerts/app-level-alerts.component.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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, OnDestroy, OnInit } from '@angular/core'; import { SCANNERS_DOC } from '../../../base/left-side-nav/interrogation-services/scanner/scanner'; import { SessionService } from '../../services/session.service'; diff --git a/src/portal/src/app/shared/components/confirmation-dialog/confirmation-dialog.component.spec.ts b/src/portal/src/app/shared/components/confirmation-dialog/confirmation-dialog.component.spec.ts index bf9329697..49d981ffc 100644 --- a/src/portal/src/app/shared/components/confirmation-dialog/confirmation-dialog.component.spec.ts +++ b/src/portal/src/app/shared/components/confirmation-dialog/confirmation-dialog.component.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { ComponentFixture, TestBed } from '@angular/core/testing'; import { ConfirmationDialogComponent } from './confirmation-dialog.component'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; diff --git a/src/portal/src/app/shared/components/confirmation-dialog/index.ts b/src/portal/src/app/shared/components/confirmation-dialog/index.ts index cf6eb1c28..b72102a15 100644 --- a/src/portal/src/app/shared/components/confirmation-dialog/index.ts +++ b/src/portal/src/app/shared/components/confirmation-dialog/index.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { Type } from '@angular/core'; import { ConfirmationDialogComponent } from './confirmation-dialog.component'; export * from './confirmation-dialog.component'; diff --git a/src/portal/src/app/shared/components/cron-schedule/cron-schedule.component.ts b/src/portal/src/app/shared/components/cron-schedule/cron-schedule.component.ts index dd3ea2616..8d07cf842 100644 --- a/src/portal/src/app/shared/components/cron-schedule/cron-schedule.component.ts +++ b/src/portal/src/app/shared/components/cron-schedule/cron-schedule.component.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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, EventEmitter, diff --git a/src/portal/src/app/shared/components/cron-schedule/cron-tooltip/cron-tooltip.component.ts b/src/portal/src/app/shared/components/cron-schedule/cron-tooltip/cron-tooltip.component.ts index 363fc5d3b..06cc3f9db 100644 --- a/src/portal/src/app/shared/components/cron-schedule/cron-tooltip/cron-tooltip.component.ts +++ b/src/portal/src/app/shared/components/cron-schedule/cron-tooltip/cron-tooltip.component.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 } from '@angular/core'; @Component({ diff --git a/src/portal/src/app/shared/components/cron-schedule/index.ts b/src/portal/src/app/shared/components/cron-schedule/index.ts index acb4caa17..d6d2ea5f4 100644 --- a/src/portal/src/app/shared/components/cron-schedule/index.ts +++ b/src/portal/src/app/shared/components/cron-schedule/index.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { Type } from '@angular/core'; import { CronScheduleComponent } from './cron-schedule.component'; diff --git a/src/portal/src/app/shared/components/datetime-picker/datetime-picker.component.spec.ts b/src/portal/src/app/shared/components/datetime-picker/datetime-picker.component.spec.ts index 3733d50fc..9dfa2c927 100644 --- a/src/portal/src/app/shared/components/datetime-picker/datetime-picker.component.spec.ts +++ b/src/portal/src/app/shared/components/datetime-picker/datetime-picker.component.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { LOCALE_ID, NO_ERRORS_SCHEMA } from '@angular/core'; import { ComponentFixture, TestBed } from '@angular/core/testing'; import { DatePickerComponent } from './datetime-picker.component'; diff --git a/src/portal/src/app/shared/components/datetime-picker/datetime-picker.component.ts b/src/portal/src/app/shared/components/datetime-picker/datetime-picker.component.ts index 52c5ff0da..f1e1887be 100644 --- a/src/portal/src/app/shared/components/datetime-picker/datetime-picker.component.ts +++ b/src/portal/src/app/shared/components/datetime-picker/datetime-picker.component.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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, Input, diff --git a/src/portal/src/app/shared/components/filter/filter.component.spec.ts b/src/portal/src/app/shared/components/filter/filter.component.spec.ts index 274ecf7de..6e9a95d80 100644 --- a/src/portal/src/app/shared/components/filter/filter.component.spec.ts +++ b/src/portal/src/app/shared/components/filter/filter.component.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { ComponentFixture, TestBed } from '@angular/core/testing'; import { SharedTestingModule } from '../../shared.module'; import { FilterComponent } from './filter.component'; diff --git a/src/portal/src/app/shared/components/gauge/gauge.component.spec.ts b/src/portal/src/app/shared/components/gauge/gauge.component.spec.ts index ff1012a01..373fa15e4 100644 --- a/src/portal/src/app/shared/components/gauge/gauge.component.spec.ts +++ b/src/portal/src/app/shared/components/gauge/gauge.component.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { ComponentFixture, TestBed } from '@angular/core/testing'; import { TranslateModule, TranslateService } from '@ngx-translate/core'; import { GaugeComponent } from './gauge.component'; diff --git a/src/portal/src/app/shared/components/global-message/message.component.spec.ts b/src/portal/src/app/shared/components/global-message/message.component.spec.ts index 9d21b881b..00e3865ec 100644 --- a/src/portal/src/app/shared/components/global-message/message.component.spec.ts +++ b/src/portal/src/app/shared/components/global-message/message.component.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { ComponentFixture, TestBed } from '@angular/core/testing'; import { ElementRef } from '@angular/core'; import { Message } from './message'; diff --git a/src/portal/src/app/shared/components/global-message/message.service.spec.ts b/src/portal/src/app/shared/components/global-message/message.service.spec.ts index 817a2f0e7..41a0bed87 100644 --- a/src/portal/src/app/shared/components/global-message/message.service.spec.ts +++ b/src/portal/src/app/shared/components/global-message/message.service.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { TestBed, inject } from '@angular/core/testing'; import { MessageService } from './message.service'; diff --git a/src/portal/src/app/shared/components/global-search/global-search.component.spec.ts b/src/portal/src/app/shared/components/global-search/global-search.component.spec.ts index c886d3d80..8c17c9c24 100644 --- a/src/portal/src/app/shared/components/global-search/global-search.component.spec.ts +++ b/src/portal/src/app/shared/components/global-search/global-search.component.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { ComponentFixture, fakeAsync, diff --git a/src/portal/src/app/shared/components/global-search/global-search.component.ts b/src/portal/src/app/shared/components/global-search/global-search.component.ts index a08b6d58e..049dce8d3 100644 --- a/src/portal/src/app/shared/components/global-search/global-search.component.ts +++ b/src/portal/src/app/shared/components/global-search/global-search.component.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { debounceTime, distinctUntilChanged } from 'rxjs/operators'; // Copyright (c) 2017 VMware, Inc. All Rights Reserved. // diff --git a/src/portal/src/app/shared/components/global-search/global-search.service.spec.ts b/src/portal/src/app/shared/components/global-search/global-search.service.spec.ts index bd719d1d7..886f3285a 100644 --- a/src/portal/src/app/shared/components/global-search/global-search.service.spec.ts +++ b/src/portal/src/app/shared/components/global-search/global-search.service.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { TestBed, inject, getTestBed } from '@angular/core/testing'; import { HttpClientTestingModule, diff --git a/src/portal/src/app/shared/components/global-search/search-result.component.spec.ts b/src/portal/src/app/shared/components/global-search/search-result.component.spec.ts index ce3acd68a..77e6257e1 100644 --- a/src/portal/src/app/shared/components/global-search/search-result.component.spec.ts +++ b/src/portal/src/app/shared/components/global-search/search-result.component.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { ComponentFixture, TestBed } from '@angular/core/testing'; import { GlobalSearchService } from './global-search.service'; import { SearchResults } from './search-results'; diff --git a/src/portal/src/app/shared/components/global-search/search-trigger.service.spec.ts b/src/portal/src/app/shared/components/global-search/search-trigger.service.spec.ts index 9a9c12676..18d19601b 100644 --- a/src/portal/src/app/shared/components/global-search/search-trigger.service.spec.ts +++ b/src/portal/src/app/shared/components/global-search/search-trigger.service.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { TestBed, inject } from '@angular/core/testing'; import { SearchTriggerService } from './search-trigger.service'; diff --git a/src/portal/src/app/shared/components/image-name-input/image-name-input.component.spec.ts b/src/portal/src/app/shared/components/image-name-input/image-name-input.component.spec.ts index 1e4a16c68..42a38f64d 100644 --- a/src/portal/src/app/shared/components/image-name-input/image-name-input.component.spec.ts +++ b/src/portal/src/app/shared/components/image-name-input/image-name-input.component.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { ComponentFixture, TestBed } from '@angular/core/testing'; import { ImageNameInputComponent } from './image-name-input.component'; import { of } from 'rxjs'; diff --git a/src/portal/src/app/shared/components/image-name-input/image-name-input.component.ts b/src/portal/src/app/shared/components/image-name-input/image-name-input.component.ts index 0953e65d3..b0cee4967 100644 --- a/src/portal/src/app/shared/components/image-name-input/image-name-input.component.ts +++ b/src/portal/src/app/shared/components/image-name-input/image-name-input.component.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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, OnDestroy, OnInit } from '@angular/core'; import { Subject } from 'rxjs'; import { debounceTime, finalize, switchMap } from 'rxjs/operators'; diff --git a/src/portal/src/app/shared/components/inline-alert/inline-alert.component.spec.ts b/src/portal/src/app/shared/components/inline-alert/inline-alert.component.spec.ts index 262c0a05f..4bbed6dbe 100644 --- a/src/portal/src/app/shared/components/inline-alert/inline-alert.component.spec.ts +++ b/src/portal/src/app/shared/components/inline-alert/inline-alert.component.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { ComponentFixture, TestBed } from '@angular/core/testing'; import { InlineAlertComponent } from './inline-alert.component'; import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; diff --git a/src/portal/src/app/shared/components/label-selector/label-selector.component.spec.ts b/src/portal/src/app/shared/components/label-selector/label-selector.component.spec.ts index c9e538704..7339dc0ba 100644 --- a/src/portal/src/app/shared/components/label-selector/label-selector.component.spec.ts +++ b/src/portal/src/app/shared/components/label-selector/label-selector.component.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { ComponentFixture, TestBed } from '@angular/core/testing'; import { LabelSelectorComponent } from './label-selector.component'; import { SharedTestingModule } from '../../shared.module'; diff --git a/src/portal/src/app/shared/components/label-selector/label-selector.component.ts b/src/portal/src/app/shared/components/label-selector/label-selector.component.ts index 829260d23..0b08f0cf4 100644 --- a/src/portal/src/app/shared/components/label-selector/label-selector.component.ts +++ b/src/portal/src/app/shared/components/label-selector/label-selector.component.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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, EventEmitter, diff --git a/src/portal/src/app/shared/components/label/create-edit-label/create-edit-label.component.spec.ts b/src/portal/src/app/shared/components/label/create-edit-label/create-edit-label.component.spec.ts index 564fe6ad9..32120446e 100644 --- a/src/portal/src/app/shared/components/label/create-edit-label/create-edit-label.component.spec.ts +++ b/src/portal/src/app/shared/components/label/create-edit-label/create-edit-label.component.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { ComponentFixture, TestBed } from '@angular/core/testing'; import { NoopAnimationsModule } from '@angular/platform-browser/animations'; import { FilterComponent } from '../../filter/filter.component'; diff --git a/src/portal/src/app/shared/components/label/label.component.spec.ts b/src/portal/src/app/shared/components/label/label.component.spec.ts index b533379be..f8b63866e 100644 --- a/src/portal/src/app/shared/components/label/label.component.spec.ts +++ b/src/portal/src/app/shared/components/label/label.component.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { Label } from '../../services'; import { LabelComponent } from './label.component'; import { ComponentFixture, TestBed } from '@angular/core/testing'; diff --git a/src/portal/src/app/shared/components/list-project-ro/list-project-ro.component.spec.ts b/src/portal/src/app/shared/components/list-project-ro/list-project-ro.component.spec.ts index cac8f0075..fbdf21e80 100644 --- a/src/portal/src/app/shared/components/list-project-ro/list-project-ro.component.spec.ts +++ b/src/portal/src/app/shared/components/list-project-ro/list-project-ro.component.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { ComponentFixture, TestBed } from '@angular/core/testing'; import { ListProjectROComponent } from './list-project-ro.component'; import { SharedTestingModule } from '../../shared.module'; diff --git a/src/portal/src/app/shared/components/list-repository-ro/list-repository-ro.component.spec.ts b/src/portal/src/app/shared/components/list-repository-ro/list-repository-ro.component.spec.ts index 6f4e607d1..44eee19f5 100644 --- a/src/portal/src/app/shared/components/list-repository-ro/list-repository-ro.component.spec.ts +++ b/src/portal/src/app/shared/components/list-repository-ro/list-repository-ro.component.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { ComponentFixture, TestBed } from '@angular/core/testing'; import { TranslateModule, TranslateService } from '@ngx-translate/core'; import { ListRepositoryROComponent } from './list-repository-ro.component'; diff --git a/src/portal/src/app/shared/components/navigator/navigator.component.spec.ts b/src/portal/src/app/shared/components/navigator/navigator.component.spec.ts index 31c6d34d1..95debf8e5 100644 --- a/src/portal/src/app/shared/components/navigator/navigator.component.spec.ts +++ b/src/portal/src/app/shared/components/navigator/navigator.component.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { ComponentFixture, TestBed } from '@angular/core/testing'; import { SessionService } from '../../services/session.service'; import { Component, NO_ERRORS_SCHEMA } from '@angular/core'; diff --git a/src/portal/src/app/shared/components/new-user-form/new-user-form.component.spec.ts b/src/portal/src/app/shared/components/new-user-form/new-user-form.component.spec.ts index c955e27cd..352044551 100644 --- a/src/portal/src/app/shared/components/new-user-form/new-user-form.component.spec.ts +++ b/src/portal/src/app/shared/components/new-user-form/new-user-form.component.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { ComponentFixture, TestBed } from '@angular/core/testing'; import { TranslateModule, TranslateService } from '@ngx-translate/core'; import { NewUserFormComponent } from './new-user-form.component'; diff --git a/src/portal/src/app/shared/components/operation/operate.ts b/src/portal/src/app/shared/components/operation/operate.ts index 1955be5f7..7329e9cfc 100644 --- a/src/portal/src/app/shared/components/operation/operate.ts +++ b/src/portal/src/app/shared/components/operation/operate.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. export class OperateInfo { name: string; state: string; diff --git a/src/portal/src/app/shared/components/operation/operation.component.spec.ts b/src/portal/src/app/shared/components/operation/operation.component.spec.ts index d86199e96..5a6716f6f 100644 --- a/src/portal/src/app/shared/components/operation/operation.component.spec.ts +++ b/src/portal/src/app/shared/components/operation/operation.component.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { ComponentFixture, fakeAsync, diff --git a/src/portal/src/app/shared/components/operation/operation.component.ts b/src/portal/src/app/shared/components/operation/operation.component.ts index 04a58b88b..caee01e30 100644 --- a/src/portal/src/app/shared/components/operation/operation.component.ts +++ b/src/portal/src/app/shared/components/operation/operation.component.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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, OnDestroy, HostListener } from '@angular/core'; import { downloadCVEs, diff --git a/src/portal/src/app/shared/components/operation/operation.service.spec.ts b/src/portal/src/app/shared/components/operation/operation.service.spec.ts index e05e7cbe0..8041590c8 100644 --- a/src/portal/src/app/shared/components/operation/operation.service.spec.ts +++ b/src/portal/src/app/shared/components/operation/operation.service.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { OperationService } from './operation.service'; import { Subscription } from 'rxjs'; import { OperateInfo } from './operate'; diff --git a/src/portal/src/app/shared/components/operation/operation.service.ts b/src/portal/src/app/shared/components/operation/operation.service.ts index 809214990..9fa0df2c3 100644 --- a/src/portal/src/app/shared/components/operation/operation.service.ts +++ b/src/portal/src/app/shared/components/operation/operation.service.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { Injectable } from '@angular/core'; import { Subject } from 'rxjs'; import { OperateInfo } from './operate'; diff --git a/src/portal/src/app/shared/components/push-image/copy-input.component.ts b/src/portal/src/app/shared/components/push-image/copy-input.component.ts index ba4c09b6f..272295559 100644 --- a/src/portal/src/app/shared/components/push-image/copy-input.component.ts +++ b/src/portal/src/app/shared/components/push-image/copy-input.component.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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, Input, Output, EventEmitter } from '@angular/core'; import { ClipboardService } from '../third-party/ngx-clipboard'; diff --git a/src/portal/src/app/shared/components/push-image/push-image.component.spec.ts b/src/portal/src/app/shared/components/push-image/push-image.component.spec.ts index 0eeae647f..b0d403de7 100644 --- a/src/portal/src/app/shared/components/push-image/push-image.component.spec.ts +++ b/src/portal/src/app/shared/components/push-image/push-image.component.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { ComponentFixture, TestBed } from '@angular/core/testing'; import { PushImageButtonComponent } from './push-image.component'; import { CopyInputComponent } from './copy-input.component'; diff --git a/src/portal/src/app/shared/components/push-image/push-image.component.ts b/src/portal/src/app/shared/components/push-image/push-image.component.ts index f4a05d083..0cf727b7f 100644 --- a/src/portal/src/app/shared/components/push-image/push-image.component.ts +++ b/src/portal/src/app/shared/components/push-image/push-image.component.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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, Input, ViewChild } from '@angular/core'; import { CopyInputComponent } from './copy-input.component'; import { InlineAlertComponent } from '../inline-alert/inline-alert.component'; diff --git a/src/portal/src/app/shared/components/remaining-time/remaining-time.component.spec.ts b/src/portal/src/app/shared/components/remaining-time/remaining-time.component.spec.ts index 98d19e606..e72c4d8cb 100644 --- a/src/portal/src/app/shared/components/remaining-time/remaining-time.component.spec.ts +++ b/src/portal/src/app/shared/components/remaining-time/remaining-time.component.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { ComponentFixture, TestBed } from '@angular/core/testing'; import { RemainingTimeComponent } from './remaining-time.component'; import { Component, ViewChild } from '@angular/core'; diff --git a/src/portal/src/app/shared/components/robot-permissions-panel/robot-permissions-panel.component.spec.ts b/src/portal/src/app/shared/components/robot-permissions-panel/robot-permissions-panel.component.spec.ts index 34b0d51d2..fafc61dff 100644 --- a/src/portal/src/app/shared/components/robot-permissions-panel/robot-permissions-panel.component.spec.ts +++ b/src/portal/src/app/shared/components/robot-permissions-panel/robot-permissions-panel.component.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { ComponentFixture, TestBed } from '@angular/core/testing'; import { Component, ViewChild } from '@angular/core'; import { SharedTestingModule } from '../../shared.module'; diff --git a/src/portal/src/app/shared/components/robot-permissions-panel/robot-permissions-panel.component.ts b/src/portal/src/app/shared/components/robot-permissions-panel/robot-permissions-panel.component.ts index 204bbda0c..7823e3e4f 100644 --- a/src/portal/src/app/shared/components/robot-permissions-panel/robot-permissions-panel.component.ts +++ b/src/portal/src/app/shared/components/robot-permissions-panel/robot-permissions-panel.component.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { AfterViewInit, Component, diff --git a/src/portal/src/app/shared/components/third-party/ngx-clipboard/clipboard.directive.ts b/src/portal/src/app/shared/components/third-party/ngx-clipboard/clipboard.directive.ts index f44f8c9a8..54f08bfa2 100644 --- a/src/portal/src/app/shared/components/third-party/ngx-clipboard/clipboard.directive.ts +++ b/src/portal/src/app/shared/components/third-party/ngx-clipboard/clipboard.directive.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { ClipboardService } from './clipboard.service'; import { Directive, diff --git a/src/portal/src/app/shared/components/third-party/ngx-clipboard/clipboard.service.ts b/src/portal/src/app/shared/components/third-party/ngx-clipboard/clipboard.service.ts index 61361aed7..b55a543c7 100644 --- a/src/portal/src/app/shared/components/third-party/ngx-clipboard/clipboard.service.ts +++ b/src/portal/src/app/shared/components/third-party/ngx-clipboard/clipboard.service.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { Inject, Injectable, diff --git a/src/portal/src/app/shared/components/third-party/ngx-clipboard/index.ts b/src/portal/src/app/shared/components/third-party/ngx-clipboard/index.ts index e96471f38..30336f6e5 100644 --- a/src/portal/src/app/shared/components/third-party/ngx-clipboard/index.ts +++ b/src/portal/src/app/shared/components/third-party/ngx-clipboard/index.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { ClipboardDirective } from './clipboard.directive'; import { CLIPBOARD_SERVICE_PROVIDER } from './clipboard.service'; import { CommonModule } from '@angular/common'; diff --git a/src/portal/src/app/shared/components/third-party/ngx-window-token/window-token.ts b/src/portal/src/app/shared/components/third-party/ngx-window-token/window-token.ts index 147827050..7c97c118a 100644 --- a/src/portal/src/app/shared/components/third-party/ngx-window-token/window-token.ts +++ b/src/portal/src/app/shared/components/third-party/ngx-window-token/window-token.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { NgModule } from '@angular/core'; import { InjectionToken } from '@angular/core'; diff --git a/src/portal/src/app/shared/components/view-token/view-token.component.spec.ts b/src/portal/src/app/shared/components/view-token/view-token.component.spec.ts index fe96057aa..57c6461d4 100644 --- a/src/portal/src/app/shared/components/view-token/view-token.component.spec.ts +++ b/src/portal/src/app/shared/components/view-token/view-token.component.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { ComponentFixture, TestBed } from '@angular/core/testing'; import { ViewTokenComponent } from './view-token.component'; import { RobotService } from '../../../../../ng-swagger-gen/services/robot.service'; diff --git a/src/portal/src/app/shared/components/view-token/view-token.component.ts b/src/portal/src/app/shared/components/view-token/view-token.component.ts index 9c1b0712e..5627b7aa0 100644 --- a/src/portal/src/app/shared/components/view-token/view-token.component.ts +++ b/src/portal/src/app/shared/components/view-token/view-token.component.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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, EventEmitter, Output, ViewChild } from '@angular/core'; import { RobotService } from '../../../../../ng-swagger-gen/services/robot.service'; import { ClrLoadingState } from '@clr/angular'; diff --git a/src/portal/src/app/shared/directives/date-validator.directive.spec.ts b/src/portal/src/app/shared/directives/date-validator.directive.spec.ts index 814572fde..90189648d 100644 --- a/src/portal/src/app/shared/directives/date-validator.directive.spec.ts +++ b/src/portal/src/app/shared/directives/date-validator.directive.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { DateValidatorDirective } from './date-validator.directive'; describe('DateValidatorDirective', () => { diff --git a/src/portal/src/app/shared/directives/max-length-ext.directive.spec.ts b/src/portal/src/app/shared/directives/max-length-ext.directive.spec.ts index e1bbe5de6..7fc0e3014 100644 --- a/src/portal/src/app/shared/directives/max-length-ext.directive.spec.ts +++ b/src/portal/src/app/shared/directives/max-length-ext.directive.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { MaxLengthExtValidatorDirective } from './max-length-ext.directive'; describe('MaxLengthExtValidatorDirective', () => { diff --git a/src/portal/src/app/shared/directives/port.directive.spec.ts b/src/portal/src/app/shared/directives/port.directive.spec.ts index 0713f4d04..9b62ef146 100644 --- a/src/portal/src/app/shared/directives/port.directive.spec.ts +++ b/src/portal/src/app/shared/directives/port.directive.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { PortValidatorDirective } from './port.directive'; describe('PortValidatorDirective', () => { diff --git a/src/portal/src/app/shared/directives/scroll/scroll-anchor.directive.spec.ts b/src/portal/src/app/shared/directives/scroll/scroll-anchor.directive.spec.ts index 2cb81a4bf..367a7be04 100644 --- a/src/portal/src/app/shared/directives/scroll/scroll-anchor.directive.spec.ts +++ b/src/portal/src/app/shared/directives/scroll/scroll-anchor.directive.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { ScrollManagerService } from './scroll-manager.service'; import { ScrollAnchorDirective } from './scroll-anchor.directive'; diff --git a/src/portal/src/app/shared/directives/scroll/scroll-anchor.directive.ts b/src/portal/src/app/shared/directives/scroll/scroll-anchor.directive.ts index d1a85b187..2af76675c 100644 --- a/src/portal/src/app/shared/directives/scroll/scroll-anchor.directive.ts +++ b/src/portal/src/app/shared/directives/scroll/scroll-anchor.directive.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { ScrollManagerService } from './scroll-manager.service'; import { Directive, HostListener, Input } from '@angular/core'; diff --git a/src/portal/src/app/shared/directives/scroll/scroll-manager.service.spec.ts b/src/portal/src/app/shared/directives/scroll/scroll-manager.service.spec.ts index 88d1ee45f..587854bfb 100644 --- a/src/portal/src/app/shared/directives/scroll/scroll-manager.service.spec.ts +++ b/src/portal/src/app/shared/directives/scroll/scroll-manager.service.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { ScrollManagerService } from './scroll-manager.service'; describe('ScrollManagerDirective', () => { diff --git a/src/portal/src/app/shared/directives/scroll/scroll-manager.service.ts b/src/portal/src/app/shared/directives/scroll/scroll-manager.service.ts index 388a23dba..9e242cc0f 100644 --- a/src/portal/src/app/shared/directives/scroll/scroll-manager.service.ts +++ b/src/portal/src/app/shared/directives/scroll/scroll-manager.service.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { ScrollSectionDirective } from './scroll-section.directive'; import { Injectable } from '@angular/core'; diff --git a/src/portal/src/app/shared/directives/scroll/scroll-section.directive.spec.ts b/src/portal/src/app/shared/directives/scroll/scroll-section.directive.spec.ts index 107225855..78d4ca673 100644 --- a/src/portal/src/app/shared/directives/scroll/scroll-section.directive.spec.ts +++ b/src/portal/src/app/shared/directives/scroll/scroll-section.directive.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { ScrollManagerService } from './scroll-manager.service'; import { ScrollSectionDirective } from './scroll-section.directive'; diff --git a/src/portal/src/app/shared/directives/scroll/scroll-section.directive.ts b/src/portal/src/app/shared/directives/scroll/scroll-section.directive.ts index b6b29678b..93ae3c14e 100644 --- a/src/portal/src/app/shared/directives/scroll/scroll-section.directive.ts +++ b/src/portal/src/app/shared/directives/scroll/scroll-section.directive.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { ScrollManagerService } from './scroll-manager.service'; import { Directive, ElementRef, Input, OnDestroy, OnInit } from '@angular/core'; diff --git a/src/portal/src/app/shared/pipes/harbor-datetime.pipe.spec.ts b/src/portal/src/app/shared/pipes/harbor-datetime.pipe.spec.ts index b5984fc43..9c74fc875 100644 --- a/src/portal/src/app/shared/pipes/harbor-datetime.pipe.spec.ts +++ b/src/portal/src/app/shared/pipes/harbor-datetime.pipe.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { HarborDatetimePipe } from './harbor-datetime.pipe'; describe('HarborDatetimePipe', () => { diff --git a/src/portal/src/app/shared/pipes/harbor-datetime.pipe.ts b/src/portal/src/app/shared/pipes/harbor-datetime.pipe.ts index 0b9add583..100b2f249 100644 --- a/src/portal/src/app/shared/pipes/harbor-datetime.pipe.ts +++ b/src/portal/src/app/shared/pipes/harbor-datetime.pipe.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { Pipe, PipeTransform } from '@angular/core'; import { DatePipe } from '@angular/common'; import { diff --git a/src/portal/src/app/shared/router-guard/auth-user-activate.service.spec.ts b/src/portal/src/app/shared/router-guard/auth-user-activate.service.spec.ts index c081a8e42..c5c4ca1c7 100644 --- a/src/portal/src/app/shared/router-guard/auth-user-activate.service.spec.ts +++ b/src/portal/src/app/shared/router-guard/auth-user-activate.service.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { TestBed, inject } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; import { SessionService } from '../services/session.service'; diff --git a/src/portal/src/app/shared/router-guard/member-guard-activate.service.spec.ts b/src/portal/src/app/shared/router-guard/member-guard-activate.service.spec.ts index 3d5ed068d..03e4c96d7 100644 --- a/src/portal/src/app/shared/router-guard/member-guard-activate.service.spec.ts +++ b/src/portal/src/app/shared/router-guard/member-guard-activate.service.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { TestBed, inject } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; import { SessionService } from '../services/session.service'; diff --git a/src/portal/src/app/shared/router-guard/member-permission-guard-activate.service.spec.ts b/src/portal/src/app/shared/router-guard/member-permission-guard-activate.service.spec.ts index 7ada77ef7..f36a9fc9d 100644 --- a/src/portal/src/app/shared/router-guard/member-permission-guard-activate.service.spec.ts +++ b/src/portal/src/app/shared/router-guard/member-permission-guard-activate.service.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { TestBed, inject } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; import { MemberPermissionGuard } from './member-permission-guard-activate.service'; diff --git a/src/portal/src/app/shared/router-guard/member-permission-guard-activate.service.ts b/src/portal/src/app/shared/router-guard/member-permission-guard-activate.service.ts index 18a6cf8aa..cfd8d4ac4 100644 --- a/src/portal/src/app/shared/router-guard/member-permission-guard-activate.service.ts +++ b/src/portal/src/app/shared/router-guard/member-permission-guard-activate.service.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { Injectable } from '@angular/core'; import { Router, diff --git a/src/portal/src/app/shared/router-guard/mode-guard-activate.service.spec.ts b/src/portal/src/app/shared/router-guard/mode-guard-activate.service.spec.ts index 2cd022e27..62d842482 100644 --- a/src/portal/src/app/shared/router-guard/mode-guard-activate.service.spec.ts +++ b/src/portal/src/app/shared/router-guard/mode-guard-activate.service.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { TestBed, inject } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; import { ModeGuard } from './mode-guard-activate.service'; diff --git a/src/portal/src/app/shared/router-guard/oidc-guard-active.service.spec.ts b/src/portal/src/app/shared/router-guard/oidc-guard-active.service.spec.ts index fe59b7a08..a1f768d80 100644 --- a/src/portal/src/app/shared/router-guard/oidc-guard-active.service.spec.ts +++ b/src/portal/src/app/shared/router-guard/oidc-guard-active.service.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { TestBed, inject } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; import { OidcGuard } from './oidc-guard-active.service'; diff --git a/src/portal/src/app/shared/router-guard/sign-in-guard-activate.service.spec.ts b/src/portal/src/app/shared/router-guard/sign-in-guard-activate.service.spec.ts index f4e8ade32..265e8f1e3 100644 --- a/src/portal/src/app/shared/router-guard/sign-in-guard-activate.service.spec.ts +++ b/src/portal/src/app/shared/router-guard/sign-in-guard-activate.service.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { TestBed, inject } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; import { SignInGuard } from './sign-in-guard-activate.service'; diff --git a/src/portal/src/app/shared/router-guard/system-admin-activate.service.spec.ts b/src/portal/src/app/shared/router-guard/system-admin-activate.service.spec.ts index 8c1fb9b57..185f6823d 100644 --- a/src/portal/src/app/shared/router-guard/system-admin-activate.service.spec.ts +++ b/src/portal/src/app/shared/router-guard/system-admin-activate.service.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { TestBed, inject } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; import { SystemAdminGuard } from './system-admin-activate.service'; diff --git a/src/portal/src/app/shared/services/RequestQueryParams.ts b/src/portal/src/app/shared/services/RequestQueryParams.ts index 37d01566d..55eaf27e5 100644 --- a/src/portal/src/app/shared/services/RequestQueryParams.ts +++ b/src/portal/src/app/shared/services/RequestQueryParams.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { HttpParams } from '@angular/common/http'; /** diff --git a/src/portal/src/app/shared/services/endpoint.service.spec.ts b/src/portal/src/app/shared/services/endpoint.service.spec.ts index 6ace2b6df..259e52920 100644 --- a/src/portal/src/app/shared/services/endpoint.service.spec.ts +++ b/src/portal/src/app/shared/services/endpoint.service.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { TestBed, inject } from '@angular/core/testing'; import { SharedTestingModule } from '../shared.module'; import { EndpointDefaultService, EndpointService } from './endpoint.service'; diff --git a/src/portal/src/app/shared/services/endpoint.service.ts b/src/portal/src/app/shared/services/endpoint.service.ts index ad60f2654..6de162db5 100644 --- a/src/portal/src/app/shared/services/endpoint.service.ts +++ b/src/portal/src/app/shared/services/endpoint.service.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { Observable, throwError as observableThrowError } from 'rxjs'; diff --git a/src/portal/src/app/shared/services/index.ts b/src/portal/src/app/shared/services/index.ts index 794f00245..ecf61612f 100644 --- a/src/portal/src/app/shared/services/index.ts +++ b/src/portal/src/app/shared/services/index.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. export * from './interface'; export * from './system-info.service'; export * from './replication.service'; diff --git a/src/portal/src/app/shared/services/interface.ts b/src/portal/src/app/shared/services/interface.ts index 1afbc36af..20a72c1d1 100644 --- a/src/portal/src/app/shared/services/interface.ts +++ b/src/portal/src/app/shared/services/interface.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { Observable } from 'rxjs'; import { ClrModal } from '@clr/angular'; import { HttpHeaders, HttpParams } from '@angular/common/http'; diff --git a/src/portal/src/app/shared/services/job-log.service.spec.ts b/src/portal/src/app/shared/services/job-log.service.spec.ts index ac364ae65..eaf440eba 100644 --- a/src/portal/src/app/shared/services/job-log.service.spec.ts +++ b/src/portal/src/app/shared/services/job-log.service.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { TestBed, inject } from '@angular/core/testing'; import { JobLogService, JobLogDefaultService } from './job-log.service'; import { SharedTestingModule } from '../shared.module'; diff --git a/src/portal/src/app/shared/services/job-log.service.ts b/src/portal/src/app/shared/services/job-log.service.ts index 1abc0ca98..efc0b7a93 100644 --- a/src/portal/src/app/shared/services/job-log.service.ts +++ b/src/portal/src/app/shared/services/job-log.service.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { CURRENT_BASE_HREF, HTTP_GET_OPTIONS_TEXT } from '../units/utils'; diff --git a/src/portal/src/app/shared/services/label.service.ts b/src/portal/src/app/shared/services/label.service.ts index bad10c535..37e6dadb4 100644 --- a/src/portal/src/app/shared/services/label.service.ts +++ b/src/portal/src/app/shared/services/label.service.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { catchError } from 'rxjs/operators'; diff --git a/src/portal/src/app/shared/services/message-handler.service.spec.ts b/src/portal/src/app/shared/services/message-handler.service.spec.ts index 9cf32bec8..b5d16a5b1 100644 --- a/src/portal/src/app/shared/services/message-handler.service.spec.ts +++ b/src/portal/src/app/shared/services/message-handler.service.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { TestBed, inject } from '@angular/core/testing'; import { TranslateModule, TranslateService } from '@ngx-translate/core'; import { MessageHandlerService } from './message-handler.service'; diff --git a/src/portal/src/app/shared/services/permission-static.ts b/src/portal/src/app/shared/services/permission-static.ts index fc15a0303..bc9c862e3 100644 --- a/src/portal/src/app/shared/services/permission-static.ts +++ b/src/portal/src/app/shared/services/permission-static.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. export const USERSTATICPERMISSION = { PROJECT: { KEY: '.', diff --git a/src/portal/src/app/shared/services/project.service.ts b/src/portal/src/app/shared/services/project.service.ts index 107937785..0a6c521b3 100644 --- a/src/portal/src/app/shared/services/project.service.ts +++ b/src/portal/src/app/shared/services/project.service.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { throwError as observableThrowError, Observable, of } from 'rxjs'; import { Injectable } from '@angular/core'; import { HttpClient, HttpParams, HttpResponse } from '@angular/common/http'; diff --git a/src/portal/src/app/shared/services/replication.service.spec.ts b/src/portal/src/app/shared/services/replication.service.spec.ts index 2b84ac0d4..81264fff8 100644 --- a/src/portal/src/app/shared/services/replication.service.spec.ts +++ b/src/portal/src/app/shared/services/replication.service.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { TestBed, inject } from '@angular/core/testing'; import { ReplicationService, diff --git a/src/portal/src/app/shared/services/replication.service.ts b/src/portal/src/app/shared/services/replication.service.ts index 57ff7160f..f61f981e0 100644 --- a/src/portal/src/app/shared/services/replication.service.ts +++ b/src/portal/src/app/shared/services/replication.service.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { HttpClient, HttpResponse } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { diff --git a/src/portal/src/app/shared/services/scanning.service.spec.ts b/src/portal/src/app/shared/services/scanning.service.spec.ts index 203788878..f499ffc2a 100644 --- a/src/portal/src/app/shared/services/scanning.service.spec.ts +++ b/src/portal/src/app/shared/services/scanning.service.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { TestBed, inject } from '@angular/core/testing'; import { ScanningResultService, diff --git a/src/portal/src/app/shared/services/scanning.service.ts b/src/portal/src/app/shared/services/scanning.service.ts index 0152b5d22..6d0da6a3d 100644 --- a/src/portal/src/app/shared/services/scanning.service.ts +++ b/src/portal/src/app/shared/services/scanning.service.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { HttpClient } from '@angular/common/http'; import { Injectable, Inject } from '@angular/core'; import { CURRENT_BASE_HREF, HTTP_JSON_OPTIONS } from '../units/utils'; diff --git a/src/portal/src/app/shared/services/session.service.spec.ts b/src/portal/src/app/shared/services/session.service.spec.ts index 7a117ec00..aafe523f5 100644 --- a/src/portal/src/app/shared/services/session.service.spec.ts +++ b/src/portal/src/app/shared/services/session.service.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { TestBed, inject } from '@angular/core/testing'; import { HttpClientTestingModule } from '@angular/common/http/testing'; import { SessionService } from './session.service'; diff --git a/src/portal/src/app/shared/services/session.viewmodel.factory.spec.ts b/src/portal/src/app/shared/services/session.viewmodel.factory.spec.ts index d523c53ee..cab766e19 100644 --- a/src/portal/src/app/shared/services/session.viewmodel.factory.spec.ts +++ b/src/portal/src/app/shared/services/session.viewmodel.factory.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { TestBed } from '@angular/core/testing'; import { SessionViewmodelFactory } from './session.viewmodel.factory'; diff --git a/src/portal/src/app/shared/services/session.viewmodel.factory.ts b/src/portal/src/app/shared/services/session.viewmodel.factory.ts index 73153aac2..caf42b12c 100644 --- a/src/portal/src/app/shared/services/session.viewmodel.factory.ts +++ b/src/portal/src/app/shared/services/session.viewmodel.factory.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { Injectable } from '@angular/core'; import { SessionUser, SessionUserBackend } from '../entities/session-user'; import { clone } from '../units/utils'; diff --git a/src/portal/src/app/shared/services/system-info.service.spec.ts b/src/portal/src/app/shared/services/system-info.service.spec.ts index aba234c0c..93728d318 100644 --- a/src/portal/src/app/shared/services/system-info.service.spec.ts +++ b/src/portal/src/app/shared/services/system-info.service.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { TestBed, inject } from '@angular/core/testing'; import { SystemInfoService, diff --git a/src/portal/src/app/shared/services/system-info.service.ts b/src/portal/src/app/shared/services/system-info.service.ts index f60e09aec..733f9b9ef 100644 --- a/src/portal/src/app/shared/services/system-info.service.ts +++ b/src/portal/src/app/shared/services/system-info.service.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { ElementRef, Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { map, catchError } from 'rxjs/operators'; diff --git a/src/portal/src/app/shared/services/tempCodeRunnerFile.ts b/src/portal/src/app/shared/services/tempCodeRunnerFile.ts index e69de29bb..059161f81 100644 --- a/src/portal/src/app/shared/services/tempCodeRunnerFile.ts +++ b/src/portal/src/app/shared/services/tempCodeRunnerFile.ts @@ -0,0 +1,13 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. diff --git a/src/portal/src/app/shared/units/error-handler/index.ts b/src/portal/src/app/shared/units/error-handler/index.ts index 204d3a2b5..adf0ec772 100644 --- a/src/portal/src/app/shared/units/error-handler/index.ts +++ b/src/portal/src/app/shared/units/error-handler/index.ts @@ -1 +1,14 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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. export * from './error-handler'; diff --git a/src/portal/src/app/shared/units/utils.spec.ts b/src/portal/src/app/shared/units/utils.spec.ts index 9a87e1d0b..110e6139b 100644 --- a/src/portal/src/app/shared/units/utils.spec.ts +++ b/src/portal/src/app/shared/units/utils.spec.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { DEFAULT_PAGE_SIZE, delUrlParam, diff --git a/src/portal/src/app/shared/units/utils.ts b/src/portal/src/app/shared/units/utils.ts index 3cc6c8ea1..b62c8c180 100644 --- a/src/portal/src/app/shared/units/utils.ts +++ b/src/portal/src/app/shared/units/utils.ts @@ -1,3 +1,16 @@ +// Copyright Project Harbor Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// 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 { Observable } from 'rxjs'; import { HttpHeaders } from '@angular/common/http'; import { RequestQueryParams } from '../services';