Skip to content

Commit

Permalink
chore: Add license header to sources
Browse files Browse the repository at this point in the history
  • Loading branch information
bgambocjaviniar authored Aug 12, 2022
1 parent 28e158e commit 4bc9138
Show file tree
Hide file tree
Showing 4,132 changed files with 24,759 additions and 49 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
6 changes: 6 additions & 0 deletions .github/api-extractor-action/src/api-extractor.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* SPDX-FileCopyrightText: 2022 SAP Spartacus team <spartacus-team@sap.com>
*
* SPDX-License-Identifier: Apache-2.0
*/

import * as core from '@actions/core';
import * as exec from '@actions/exec';
import { ExecOptions } from '@actions/exec';
Expand Down
6 changes: 6 additions & 0 deletions .github/api-extractor-action/src/comment.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* SPDX-FileCopyrightText: 2022 SAP Spartacus team <spartacus-team@sap.com>
*
* SPDX-License-Identifier: Apache-2.0
*/

import { Context } from '@actions/github/lib/context';
import * as fs from 'fs';
import {
Expand Down
6 changes: 6 additions & 0 deletions .github/api-extractor-action/src/const.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* SPDX-FileCopyrightText: 2022 SAP Spartacus team <spartacus-team@sap.com>
*
* SPDX-License-Identifier: Apache-2.0
*/

export const BASE_BRANCH_DIR = 'branch-clone';
export const BUILD_DIR = 'dist';
export const REPORT_DIR = 'etc';
6 changes: 6 additions & 0 deletions .github/api-extractor-action/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* SPDX-FileCopyrightText: 2022 SAP Spartacus team <spartacus-team@sap.com>
*
* SPDX-License-Identifier: Apache-2.0
*/

/**
* Terminology:
* - head branch -> branch you are working on
Expand Down
6 changes: 6 additions & 0 deletions .github/api-extractor-action/src/setup.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* SPDX-FileCopyrightText: 2022 SAP Spartacus team <spartacus-team@sap.com>
*
* SPDX-License-Identifier: Apache-2.0
*/

import * as cache from '@actions/cache';
import * as core from '@actions/core';
import * as exec from '@actions/exec';
Expand Down
6 changes: 6 additions & 0 deletions .github/cache-builded-libs/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* SPDX-FileCopyrightText: 2022 SAP Spartacus team <spartacus-team@sap.com>
*
* SPDX-License-Identifier: Apache-2.0
*/

import * as cache from '@actions/cache';
import * as core from '@actions/core';
import * as exec from '@actions/exec';
Expand Down
6 changes: 6 additions & 0 deletions .github/hs-deploy-action/src/deploy.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* SPDX-FileCopyrightText: 2022 SAP Spartacus team <spartacus-team@sap.com>
*
* SPDX-License-Identifier: Apache-2.0
*/

import * as exec from '@actions/exec';
import { ExecOptions } from '@actions/exec';
import { addComment, getBundleId } from './functions';
Expand Down
6 changes: 6 additions & 0 deletions .github/hs-deploy-action/src/functions.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* SPDX-FileCopyrightText: 2022 SAP Spartacus team <spartacus-team@sap.com>
*
* SPDX-License-Identifier: Apache-2.0
*/

import * as exec from '@actions/exec';

export async function build() {
Expand Down
6 changes: 6 additions & 0 deletions .github/hs-deploy-action/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* SPDX-FileCopyrightText: 2022 SAP Spartacus team <spartacus-team@sap.com>
*
* SPDX-License-Identifier: Apache-2.0
*/

import * as github from '@actions/github';
import * as exec from '@actions/exec';
import { build } from './functions';
Expand Down
8 changes: 1 addition & 7 deletions .reuse/dep5
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,5 @@ Disclaimer: The code in this project may include calls to APIs (“API Calls”)
# Spartacus code

Files: *
Copyright: 2018-2021 SAP SE or an SAP affiliate company and Spartacus contributors
Copyright: 2018-2022 SAP SE or an SAP affiliate company and Spartacus contributors
License: Apache-2.0

# Sample paragraph, commented out:
#
# Files: src/*
# Copyright: $YEAR $NAME <$CONTACT>
# License: ...
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ APPENDIX: How to apply the Apache License to your work.

To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.

Copyright [yyyy] [name of copyright owner]
Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion LICENSES/Apache-2.0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ APPENDIX: How to apply the Apache License to your work.

To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.

Copyright [yyyy] [name of copyright owner]
Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,5 +130,5 @@ Many improvements are coming! All tasks will be posted to our GitHub issue track

## License

Copyright (c) 2021 SAP SE or an SAP affiliate company. All rights reserved.
Copyright (c) 2022 SAP SE or an SAP affiliate company. All rights reserved.
This file is licensed under the Apache Software License, v. 2 except as noted otherwise in the [LICENSE](LICENSE) file.
3 changes: 3 additions & 0 deletions ci-scripts/prepend-license.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FILES=`find . -not -path '**/node_modules/**' -not -name '*spec*' -name '*.ts' -print`

reuse addheader --copyright="SAP Spartacus team <spartacus-team@sap.com>" --license="Apache-2.0" --multi-line $FILES
6 changes: 6 additions & 0 deletions core-libs/setup/public_api.ts
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
/*
* SPDX-FileCopyrightText: 2022 SAP Spartacus team <spartacus-team@sap.com>
*
* SPDX-License-Identifier: Apache-2.0
*/

export * from './recipes/index';
6 changes: 6 additions & 0 deletions core-libs/setup/recipes/b2b/config/default-b2b-occ-config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* SPDX-FileCopyrightText: 2022 SAP Spartacus team <spartacus-team@sap.com>
*
* SPDX-License-Identifier: Apache-2.0
*/

// We need this import for augmentation of OccEndpoints to pick up
import { CartOccEndpoints } from '@spartacus/cart/base/occ';
import { OccConfig } from '@spartacus/core';
Expand Down
6 changes: 6 additions & 0 deletions core-libs/setup/recipes/b2b/config/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
/*
* SPDX-FileCopyrightText: 2022 SAP Spartacus team <spartacus-team@sap.com>
*
* SPDX-License-Identifier: Apache-2.0
*/

export * from './default-b2b-occ-config';
6 changes: 6 additions & 0 deletions core-libs/setup/recipes/b2b/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
/*
* SPDX-FileCopyrightText: 2022 SAP Spartacus team <spartacus-team@sap.com>
*
* SPDX-License-Identifier: Apache-2.0
*/

export * from './config/index';
6 changes: 6 additions & 0 deletions core-libs/setup/recipes/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
/*
* SPDX-FileCopyrightText: 2022 SAP Spartacus team <spartacus-team@sap.com>
*
* SPDX-License-Identifier: Apache-2.0
*/

export * from './b2b/index';
6 changes: 6 additions & 0 deletions core-libs/setup/ssr/engine-decorator/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
/*
* SPDX-FileCopyrightText: 2022 SAP Spartacus team <spartacus-team@sap.com>
*
* SPDX-License-Identifier: Apache-2.0
*/

export { NgExpressEngineDecorator } from './ng-express-engine-decorator';
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* SPDX-FileCopyrightText: 2022 SAP Spartacus team <spartacus-team@sap.com>
*
* SPDX-License-Identifier: Apache-2.0
*/

import { NgSetupOptions } from '@nguniversal/express-engine';
import {
OptimizedSsrEngine,
Expand Down
6 changes: 6 additions & 0 deletions core-libs/setup/ssr/optimized-engine/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* SPDX-FileCopyrightText: 2022 SAP Spartacus team <spartacus-team@sap.com>
*
* SPDX-License-Identifier: Apache-2.0
*/

export * from './optimized-ssr-engine';
export * from './rendering-cache';
export * from './ssr-optimization-options';
6 changes: 6 additions & 0 deletions core-libs/setup/ssr/optimized-engine/optimized-ssr-engine.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* SPDX-FileCopyrightText: 2022 SAP Spartacus team <spartacus-team@sap.com>
*
* SPDX-License-Identifier: Apache-2.0
*/

/* webpackIgnore: true */
import { Request, Response } from 'express';
import * as fs from 'fs';
Expand Down
6 changes: 6 additions & 0 deletions core-libs/setup/ssr/optimized-engine/rendering-cache.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* SPDX-FileCopyrightText: 2022 SAP Spartacus team <spartacus-team@sap.com>
*
* SPDX-License-Identifier: Apache-2.0
*/

import { SsrOptimizationOptions } from './ssr-optimization-options';

export interface RenderingEntry {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* SPDX-FileCopyrightText: 2022 SAP Spartacus team <spartacus-team@sap.com>
*
* SPDX-License-Identifier: Apache-2.0
*/

import { Request } from 'express';

export interface SsrOptimizationOptions {
Expand Down
6 changes: 6 additions & 0 deletions core-libs/setup/ssr/providers/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
/*
* SPDX-FileCopyrightText: 2022 SAP Spartacus team <spartacus-team@sap.com>
*
* SPDX-License-Identifier: Apache-2.0
*/

export { getServerRequestProviders } from './ssr-providers';
6 changes: 6 additions & 0 deletions core-libs/setup/ssr/providers/ssr-providers.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* SPDX-FileCopyrightText: 2022 SAP Spartacus team <spartacus-team@sap.com>
*
* SPDX-License-Identifier: Apache-2.0
*/

import { StaticProvider } from '@angular/core';
import { REQUEST } from '@nguniversal/express-engine/tokens';
import { SERVER_REQUEST_ORIGIN, SERVER_REQUEST_URL } from '@spartacus/core';
Expand Down
6 changes: 6 additions & 0 deletions core-libs/setup/ssr/public_api.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* SPDX-FileCopyrightText: 2022 SAP Spartacus team <spartacus-team@sap.com>
*
* SPDX-License-Identifier: Apache-2.0
*/

export * from './engine-decorator/index';
export * from './optimized-engine/index';
export * from './providers/index';
6 changes: 6 additions & 0 deletions core-libs/setup/ssr/util/request-origin.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* SPDX-FileCopyrightText: 2022 SAP Spartacus team <spartacus-team@sap.com>
*
* SPDX-License-Identifier: Apache-2.0
*/

import { Request } from 'express';

export function getRequestOrigin(req: Request): string {
Expand Down
6 changes: 6 additions & 0 deletions core-libs/setup/ssr/util/request-url.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* SPDX-FileCopyrightText: 2022 SAP Spartacus team <spartacus-team@sap.com>
*
* SPDX-License-Identifier: Apache-2.0
*/

import { Request } from 'express';
import { getRequestOrigin } from './request-origin';

Expand Down
6 changes: 6 additions & 0 deletions core-libs/setup/test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* SPDX-FileCopyrightText: 2022 SAP Spartacus team <spartacus-team@sap.com>
*
* SPDX-License-Identifier: Apache-2.0
*/

// This file is required by karma.conf.js and loads recursively all the .spec and framework files

// Zone.js and zone.js/testing should be imported as FIRST and in this ORDER:
Expand Down
6 changes: 6 additions & 0 deletions feature-libs/asm/asm.module.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* SPDX-FileCopyrightText: 2022 SAP Spartacus team <spartacus-team@sap.com>
*
* SPDX-License-Identifier: Apache-2.0
*/

import { NgModule } from '@angular/core';
import { AsmComponentsModule } from '@spartacus/asm/components';
import { AsmCoreModule } from '@spartacus/asm/core';
Expand Down
6 changes: 6 additions & 0 deletions feature-libs/asm/assets/public_api.ts
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
/*
* SPDX-FileCopyrightText: 2022 SAP Spartacus team <spartacus-team@sap.com>
*
* SPDX-License-Identifier: Apache-2.0
*/

export * from './translations/translations';
6 changes: 6 additions & 0 deletions feature-libs/asm/assets/translations/en/asm.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* SPDX-FileCopyrightText: 2022 SAP Spartacus team <spartacus-team@sap.com>
*
* SPDX-License-Identifier: Apache-2.0
*/

export const asm = {
asm: {
mainLogoLabel: 'SAP',
Expand Down
6 changes: 6 additions & 0 deletions feature-libs/asm/assets/translations/en/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* SPDX-FileCopyrightText: 2022 SAP Spartacus team <spartacus-team@sap.com>
*
* SPDX-License-Identifier: Apache-2.0
*/

import { asm } from './asm';

export const en = {
Expand Down
6 changes: 6 additions & 0 deletions feature-libs/asm/assets/translations/translations.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* SPDX-FileCopyrightText: 2022 SAP Spartacus team <spartacus-team@sap.com>
*
* SPDX-License-Identifier: Apache-2.0
*/

import { TranslationChunksConfig, TranslationResources } from '@spartacus/core';
import { en } from './en/index';

Expand Down
6 changes: 6 additions & 0 deletions feature-libs/asm/components/asm-components.module.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* SPDX-FileCopyrightText: 2022 SAP Spartacus team <spartacus-team@sap.com>
*
* SPDX-License-Identifier: Apache-2.0
*/

import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { ReactiveFormsModule } from '@angular/forms';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* SPDX-FileCopyrightText: 2022 SAP Spartacus team <spartacus-team@sap.com>
*
* SPDX-License-Identifier: Apache-2.0
*/

import { Component, HostBinding, OnInit } from '@angular/core';
import { AsmService, AsmUi } from '@spartacus/asm/core';
import { CsAgentAuthService } from '@spartacus/asm/root';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* SPDX-FileCopyrightText: 2022 SAP Spartacus team <spartacus-team@sap.com>
*
* SPDX-License-Identifier: Apache-2.0
*/

import { ChangeDetectorRef, Component, OnDestroy, OnInit } from '@angular/core';
import { AsmConfig } from '@spartacus/asm/core';
import { RoutingService, UserIdService } from '@spartacus/core';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* SPDX-FileCopyrightText: 2022 SAP Spartacus team <spartacus-team@sap.com>
*
* SPDX-License-Identifier: Apache-2.0
*/

import { Pipe, PipeTransform } from '@angular/core';

@Pipe({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* SPDX-FileCopyrightText: 2022 SAP Spartacus team <spartacus-team@sap.com>
*
* SPDX-License-Identifier: Apache-2.0
*/

import { Component, OnDestroy, OnInit } from '@angular/core';
import { AsmService, AsmUi } from '@spartacus/asm/core';
import { Subscription } from 'rxjs';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* SPDX-FileCopyrightText: 2022 SAP Spartacus team <spartacus-team@sap.com>
*
* SPDX-License-Identifier: Apache-2.0
*/

import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';

Expand Down
Loading

0 comments on commit 4bc9138

Please sign in to comment.