From c72aa887a16147066eff3b007a89219670dc4a5d Mon Sep 17 00:00:00 2001 From: Gavin Barron Date: Mon, 29 Jan 2024 19:47:16 +0000 Subject: [PATCH] chore: set license headers --- .../src/components/mgt-person-card/MgtPersonCardConfig.ts | 7 +++++++ .../mgt-person-card/getMgtPersonCardScopes.tests.ts | 7 +++++++ .../components/mgt-person-card/getMgtPersonCardScopes.ts | 7 +++++++ .../mgt-components/src/components/mgt-person-card/types.ts | 7 +++++++ .../src/components/mgt-search-box/mgt-search-box.scss | 7 +++++++ .../mgt-teams-channel-picker/teams-channel-picker-types.ts | 7 +++++++ .../components/mgt-theme-toggle/mgt-theme-toggle.tests.ts | 7 +++++++ .../src/components/mgt-todo/mgt-todo.tests.ts | 7 +++++++ packages/mgt-components/src/components/preview/index.ts | 6 ++++++ packages/mgt-components/src/graph/isGraphError.ts | 7 +++++++ packages/mgt-components/src/registerMgtComponents.ts | 7 +++++++ packages/mgt-element/src/providers/IProvider.tests.ts | 7 +++++++ .../mgt-element/src/providers/needsAdditionalScopes.ts | 7 +++++++ packages/mgt-element/src/utils/GraphHelpers.tests.ts | 7 +++++++ packages/mgt-element/src/utils/equals.tests.ts | 7 +++++++ packages/mgt-element/src/utils/registerComponent.ts | 7 +++++++ packages/mgt/package.json | 2 +- packages/providers/mgt-msal2-provider/src/exports.ts | 7 +++++++ packages/providers/mgt-proxy-provider/src/exports.ts | 7 +++++++ 19 files changed, 126 insertions(+), 1 deletion(-) diff --git a/packages/mgt-components/src/components/mgt-person-card/MgtPersonCardConfig.ts b/packages/mgt-components/src/components/mgt-person-card/MgtPersonCardConfig.ts index ac7bf9c3b9..3f357a8a85 100644 --- a/packages/mgt-components/src/components/mgt-person-card/MgtPersonCardConfig.ts +++ b/packages/mgt-components/src/components/mgt-person-card/MgtPersonCardConfig.ts @@ -1,3 +1,10 @@ +/** + * ------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. + * See License in the project root for license information. + * ------------------------------------------------------------------------------------------- + */ + interface SectionsConfig { /** * Gets or sets whether the organization section is shown diff --git a/packages/mgt-components/src/components/mgt-person-card/getMgtPersonCardScopes.tests.ts b/packages/mgt-components/src/components/mgt-person-card/getMgtPersonCardScopes.tests.ts index 31646cd8d5..acd44d61e7 100644 --- a/packages/mgt-components/src/components/mgt-person-card/getMgtPersonCardScopes.tests.ts +++ b/packages/mgt-components/src/components/mgt-person-card/getMgtPersonCardScopes.tests.ts @@ -1,3 +1,10 @@ +/** + * ------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. + * See License in the project root for license information. + * ------------------------------------------------------------------------------------------- + */ + import { MgtPersonCardConfig } from './MgtPersonCardConfig'; import { expect } from '@open-wc/testing'; import { getMgtPersonCardScopes } from './getMgtPersonCardScopes'; diff --git a/packages/mgt-components/src/components/mgt-person-card/getMgtPersonCardScopes.ts b/packages/mgt-components/src/components/mgt-person-card/getMgtPersonCardScopes.ts index f30bf98e25..ac6c47f7da 100644 --- a/packages/mgt-components/src/components/mgt-person-card/getMgtPersonCardScopes.ts +++ b/packages/mgt-components/src/components/mgt-person-card/getMgtPersonCardScopes.ts @@ -1,3 +1,10 @@ +/** + * ------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. + * See License in the project root for license information. + * ------------------------------------------------------------------------------------------- + */ + import { MgtPersonCardConfig } from './MgtPersonCardConfig'; /** diff --git a/packages/mgt-components/src/components/mgt-person-card/types.ts b/packages/mgt-components/src/components/mgt-person-card/types.ts index 2d0ae5bc17..00041d9990 100644 --- a/packages/mgt-components/src/components/mgt-person-card/types.ts +++ b/packages/mgt-components/src/components/mgt-person-card/types.ts @@ -1,3 +1,10 @@ +/** + * ------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. + * See License in the project root for license information. + * ------------------------------------------------------------------------------------------- + */ + export interface IExpandable { isExpanded: boolean; } diff --git a/packages/mgt-components/src/components/mgt-search-box/mgt-search-box.scss b/packages/mgt-components/src/components/mgt-search-box/mgt-search-box.scss index b95be90a9c..9660e7c0f4 100644 --- a/packages/mgt-components/src/components/mgt-search-box/mgt-search-box.scss +++ b/packages/mgt-components/src/components/mgt-search-box/mgt-search-box.scss @@ -1,3 +1,10 @@ +/** + * ------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. + * See License in the project root for license information. + * ------------------------------------------------------------------------------------------- + */ + @import '../../styles/shared-styles'; :host fluent-search { diff --git a/packages/mgt-components/src/components/mgt-teams-channel-picker/teams-channel-picker-types.ts b/packages/mgt-components/src/components/mgt-teams-channel-picker/teams-channel-picker-types.ts index 283bcc4f18..f2c6a08539 100644 --- a/packages/mgt-components/src/components/mgt-teams-channel-picker/teams-channel-picker-types.ts +++ b/packages/mgt-components/src/components/mgt-teams-channel-picker/teams-channel-picker-types.ts @@ -1,3 +1,10 @@ +/** + * ------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. + * See License in the project root for license information. + * ------------------------------------------------------------------------------------------- + */ + import * as MicrosoftGraph from '@microsoft/microsoft-graph-types'; /** diff --git a/packages/mgt-components/src/components/mgt-theme-toggle/mgt-theme-toggle.tests.ts b/packages/mgt-components/src/components/mgt-theme-toggle/mgt-theme-toggle.tests.ts index 8f6b0c6cf9..96f5e21413 100644 --- a/packages/mgt-components/src/components/mgt-theme-toggle/mgt-theme-toggle.tests.ts +++ b/packages/mgt-components/src/components/mgt-theme-toggle/mgt-theme-toggle.tests.ts @@ -1,3 +1,10 @@ +/** + * ------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. + * See License in the project root for license information. + * ------------------------------------------------------------------------------------------- + */ + /* eslint-disable @typescript-eslint/no-unused-expressions */ /** * ------------------------------------------------------------------------------------------- diff --git a/packages/mgt-components/src/components/mgt-todo/mgt-todo.tests.ts b/packages/mgt-components/src/components/mgt-todo/mgt-todo.tests.ts index 655b0682ef..673ba151e1 100644 --- a/packages/mgt-components/src/components/mgt-todo/mgt-todo.tests.ts +++ b/packages/mgt-components/src/components/mgt-todo/mgt-todo.tests.ts @@ -1,3 +1,10 @@ +/** + * ------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. + * See License in the project root for license information. + * ------------------------------------------------------------------------------------------- + */ + /** * ------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. diff --git a/packages/mgt-components/src/components/preview/index.ts b/packages/mgt-components/src/components/preview/index.ts index e69de29bb2..1478fe240e 100644 --- a/packages/mgt-components/src/components/preview/index.ts +++ b/packages/mgt-components/src/components/preview/index.ts @@ -0,0 +1,6 @@ +/** + * ------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. + * See License in the project root for license information. + * ------------------------------------------------------------------------------------------- + */ diff --git a/packages/mgt-components/src/graph/isGraphError.ts b/packages/mgt-components/src/graph/isGraphError.ts index 0886cf2a6c..57d51e4f59 100644 --- a/packages/mgt-components/src/graph/isGraphError.ts +++ b/packages/mgt-components/src/graph/isGraphError.ts @@ -1,3 +1,10 @@ +/** + * ------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. + * See License in the project root for license information. + * ------------------------------------------------------------------------------------------- + */ + import { GraphError } from '@microsoft/microsoft-graph-client'; export const isGraphError = (e: unknown): e is GraphError => { diff --git a/packages/mgt-components/src/registerMgtComponents.ts b/packages/mgt-components/src/registerMgtComponents.ts index 26430d55e8..cfc0954e2c 100644 --- a/packages/mgt-components/src/registerMgtComponents.ts +++ b/packages/mgt-components/src/registerMgtComponents.ts @@ -1,3 +1,10 @@ +/** + * ------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. + * See License in the project root for license information. + * ------------------------------------------------------------------------------------------- + */ + import { registerMgtAgendaComponent, registerMgtFileComponent, diff --git a/packages/mgt-element/src/providers/IProvider.tests.ts b/packages/mgt-element/src/providers/IProvider.tests.ts index 2120af2fa0..23d9f8580b 100644 --- a/packages/mgt-element/src/providers/IProvider.tests.ts +++ b/packages/mgt-element/src/providers/IProvider.tests.ts @@ -1,3 +1,10 @@ +/** + * ------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. + * See License in the project root for license information. + * ------------------------------------------------------------------------------------------- + */ + import { IProvider } from './IProvider'; import { SimpleProvider } from './SimpleProvider'; import { expect } from '@open-wc/testing'; diff --git a/packages/mgt-element/src/providers/needsAdditionalScopes.ts b/packages/mgt-element/src/providers/needsAdditionalScopes.ts index cb5571f64e..71645e59bd 100644 --- a/packages/mgt-element/src/providers/needsAdditionalScopes.ts +++ b/packages/mgt-element/src/providers/needsAdditionalScopes.ts @@ -1,3 +1,10 @@ +/** + * ------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. + * See License in the project root for license information. + * ------------------------------------------------------------------------------------------- + */ + import { Providers } from './Providers'; /** diff --git a/packages/mgt-element/src/utils/GraphHelpers.tests.ts b/packages/mgt-element/src/utils/GraphHelpers.tests.ts index aba1165776..bb4b74a447 100644 --- a/packages/mgt-element/src/utils/GraphHelpers.tests.ts +++ b/packages/mgt-element/src/utils/GraphHelpers.tests.ts @@ -1,3 +1,10 @@ +/** + * ------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. + * See License in the project root for license information. + * ------------------------------------------------------------------------------------------- + */ + /* eslint-disable @typescript-eslint/no-unused-expressions */ /** * ------------------------------------------------------------------------------------------- diff --git a/packages/mgt-element/src/utils/equals.tests.ts b/packages/mgt-element/src/utils/equals.tests.ts index ce991ca4b2..1c8c381208 100644 --- a/packages/mgt-element/src/utils/equals.tests.ts +++ b/packages/mgt-element/src/utils/equals.tests.ts @@ -1,3 +1,10 @@ +/** + * ------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. + * See License in the project root for license information. + * ------------------------------------------------------------------------------------------- + */ + /* eslint-disable @typescript-eslint/no-unused-expressions */ /** * ------------------------------------------------------------------------------------------- diff --git a/packages/mgt-element/src/utils/registerComponent.ts b/packages/mgt-element/src/utils/registerComponent.ts index f0327a25ef..dd0b2a71bd 100644 --- a/packages/mgt-element/src/utils/registerComponent.ts +++ b/packages/mgt-element/src/utils/registerComponent.ts @@ -1,3 +1,10 @@ +/** + * ------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. + * See License in the project root for license information. + * ------------------------------------------------------------------------------------------- + */ + import { customElementHelper } from '../components/customElementHelper'; export const buildComponentName = (tagBase: string) => `${customElementHelper.prefix}-${tagBase}`; diff --git a/packages/mgt/package.json b/packages/mgt/package.json index 7823b346ce..9468b9a3d3 100644 --- a/packages/mgt/package.json +++ b/packages/mgt/package.json @@ -54,4 +54,4 @@ "publishConfig": { "directory": "dist" } -} \ No newline at end of file +} diff --git a/packages/providers/mgt-msal2-provider/src/exports.ts b/packages/providers/mgt-msal2-provider/src/exports.ts index 9bc3a2de1e..eeae918924 100644 --- a/packages/providers/mgt-msal2-provider/src/exports.ts +++ b/packages/providers/mgt-msal2-provider/src/exports.ts @@ -1,2 +1,9 @@ +/** + * ------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. + * See License in the project root for license information. + * ------------------------------------------------------------------------------------------- + */ + export * from './Msal2Provider'; export * from './mgt-msal2-provider'; diff --git a/packages/providers/mgt-proxy-provider/src/exports.ts b/packages/providers/mgt-proxy-provider/src/exports.ts index e597818a40..4d872a4672 100644 --- a/packages/providers/mgt-proxy-provider/src/exports.ts +++ b/packages/providers/mgt-proxy-provider/src/exports.ts @@ -1,2 +1,9 @@ +/** + * ------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. + * See License in the project root for license information. + * ------------------------------------------------------------------------------------------- + */ + export * from './mgt-proxy-provider'; export * from './ProxyProvider';