From 7464baf767be32433c1e510a973af28178f219dd Mon Sep 17 00:00:00 2001 From: Eduard Heimbuch Date: Fri, 30 Apr 2021 16:13:19 +0200 Subject: [PATCH] Fix missing license headers --- scm-ui/build.gradle | 6 ++++- .../anonymous_mode_disabled.feature | 24 +++++++++++++++++++ .../integration/anonymous_mode_full.feature | 24 +++++++++++++++++++ .../anonymous_mode_protocol_only.feature | 24 +++++++++++++++++++ scm-ui/ui-api/src/branches.test.ts | 2 -- scm-ui/ui-api/src/branches.ts | 2 -- scm-ui/ui-api/src/changesets.test.ts | 2 -- scm-ui/ui-api/src/changesets.ts | 2 -- scm-ui/ui-api/src/keys.ts | 2 -- scm-ui/ui-api/src/links.test.ts | 2 -- scm-ui/ui-api/src/links.ts | 2 -- scm-ui/ui-api/src/namespaces.test.ts | 2 -- scm-ui/ui-api/src/namespaces.ts | 2 -- scm-ui/ui-api/src/permissions.test.ts | 2 -- scm-ui/ui-api/src/permissions.ts | 2 -- scm-ui/ui-api/src/repository-roles.ts | 23 ++++++++++++++++++ scm-ui/ui-api/src/reset.ts | 2 -- scm-ui/ui-api/src/sources.test.ts | 2 -- scm-ui/ui-api/src/sources.ts | 2 -- scm-ui/ui-api/src/tags.test.ts | 2 -- scm-ui/ui-api/src/tags.ts | 2 -- .../.storybook/withApiProvider.js | 2 -- .../__resources__/markdown-changelog.md.ts | 23 ++++++++++++++++++ .../ui-components/src/markdown/PluginApi.ts | 23 ++++++++++++++++++ .../src/markdown/createComponentList.ts | 23 ++++++++++++++++++ .../src/markdown/createMdastPlugin.ts | 23 ++++++++++++++++++ .../src/markdown/markdownExtensions.ts | 23 ++++++++++++++++++ scm-ui/ui-styles/src/scm.scss | 23 ++++++++++++++++++ scm-ui/ui-types/src/RepositoryVerbs.ts | 2 -- scm-ui/ui-webapp/src/LegacyReduxProvider.tsx | 2 -- .../components/FileSearchButton.tsx | 2 -- .../components/FileSearchResults.tsx | 2 -- .../codeSection/containers/FileSearch.tsx | 2 -- .../codeSection/utils/filepathSearch.test.ts | 2 -- .../repos/codeSection/utils/filepathSearch.ts | 2 -- .../permissions/utils/findVerbsForRole.ts | 2 -- .../permissions/utils/permissionValidation.ts | 2 -- .../components/TruncatedNotification.tsx | 2 -- .../src/repos/sources/utils/files.test.ts | 2 -- .../src/repos/sources/utils/files.ts | 2 -- scm-ui/ui-webapp/src/tokenExpired.ts | 2 -- 41 files changed, 238 insertions(+), 61 deletions(-) diff --git a/scm-ui/build.gradle b/scm-ui/build.gradle index de4786a31f..e3a1c9dc20 100644 --- a/scm-ui/build.gradle +++ b/scm-ui/build.gradle @@ -207,7 +207,7 @@ license { tsx = 'SLASHSTAR_STYLE' ts = 'SLASHSTAR_STYLE' gradle = 'SLASHSTAR_STYLE' - feature = 'SLASHSTAR_STYLE' + feature = 'SCRIPT_STYLE' scss = 'SLASHSTAR_STYLE' } @@ -233,6 +233,10 @@ task license(type: com.hierynomus.gradle.license.tasks.LicenseCheck) { source = fileTree('.') } +task licenseFormat(type: com.hierynomus.gradle.license.tasks.LicenseFormat) { + source = fileTree('.') +} + sonarqube { properties { property 'sonar.language', 'typescript' diff --git a/scm-ui/e2e-tests/cypress/integration/anonymous_mode_disabled.feature b/scm-ui/e2e-tests/cypress/integration/anonymous_mode_disabled.feature index 024aaa18d4..cdd3bfcb17 100644 --- a/scm-ui/e2e-tests/cypress/integration/anonymous_mode_disabled.feature +++ b/scm-ui/e2e-tests/cypress/integration/anonymous_mode_disabled.feature @@ -1,3 +1,27 @@ +# +# MIT License +# +# Copyright (c) 2020-present Cloudogu GmbH and Contributors +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. +# + Feature: Anonymous Mode Disabled Background: diff --git a/scm-ui/e2e-tests/cypress/integration/anonymous_mode_full.feature b/scm-ui/e2e-tests/cypress/integration/anonymous_mode_full.feature index 15742acf35..71c80c0de0 100644 --- a/scm-ui/e2e-tests/cypress/integration/anonymous_mode_full.feature +++ b/scm-ui/e2e-tests/cypress/integration/anonymous_mode_full.feature @@ -1,3 +1,27 @@ +# +# MIT License +# +# Copyright (c) 2020-present Cloudogu GmbH and Contributors +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. +# + Feature: Anonymous Mode Full Background: diff --git a/scm-ui/e2e-tests/cypress/integration/anonymous_mode_protocol_only.feature b/scm-ui/e2e-tests/cypress/integration/anonymous_mode_protocol_only.feature index 780a489fa3..8fb27f0095 100644 --- a/scm-ui/e2e-tests/cypress/integration/anonymous_mode_protocol_only.feature +++ b/scm-ui/e2e-tests/cypress/integration/anonymous_mode_protocol_only.feature @@ -1,3 +1,27 @@ +# +# MIT License +# +# Copyright (c) 2020-present Cloudogu GmbH and Contributors +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all +# copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. +# + Feature: Anonymous Mode with Protocol Only Background: Given Protocol Only Anonymous Mode is enabled diff --git a/scm-ui/ui-api/src/branches.test.ts b/scm-ui/ui-api/src/branches.test.ts index cf200b5e16..5990f02e30 100644 --- a/scm-ui/ui-api/src/branches.test.ts +++ b/scm-ui/ui-api/src/branches.test.ts @@ -20,9 +20,7 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. - * */ - import { Branch, BranchCollection, Repository } from "@scm-manager/ui-types"; import fetchMock from "fetch-mock-jest"; import { renderHook } from "@testing-library/react-hooks"; diff --git a/scm-ui/ui-api/src/branches.ts b/scm-ui/ui-api/src/branches.ts index 41b9c5493c..b3bc240fc9 100644 --- a/scm-ui/ui-api/src/branches.ts +++ b/scm-ui/ui-api/src/branches.ts @@ -20,9 +20,7 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. - * */ - import { Branch, BranchCollection, BranchCreation, Link, Repository } from "@scm-manager/ui-types"; import { requiredLink } from "./links"; import { useMutation, useQuery, useQueryClient } from "react-query"; diff --git a/scm-ui/ui-api/src/changesets.test.ts b/scm-ui/ui-api/src/changesets.test.ts index 7a50aa9d19..f29cce6a16 100644 --- a/scm-ui/ui-api/src/changesets.test.ts +++ b/scm-ui/ui-api/src/changesets.test.ts @@ -20,9 +20,7 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. - * */ - import { Branch, Changeset, ChangesetCollection, Repository } from "@scm-manager/ui-types"; import fetchMock from "fetch-mock-jest"; import createInfiniteCachingClient from "./tests/createInfiniteCachingClient"; diff --git a/scm-ui/ui-api/src/changesets.ts b/scm-ui/ui-api/src/changesets.ts index 63fbb12934..a20160f465 100644 --- a/scm-ui/ui-api/src/changesets.ts +++ b/scm-ui/ui-api/src/changesets.ts @@ -20,9 +20,7 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. - * */ - import { Branch, Changeset, ChangesetCollection, NamespaceAndName, Repository } from "@scm-manager/ui-types"; import { useQuery, useQueryClient } from "react-query"; import { requiredLink } from "./links"; diff --git a/scm-ui/ui-api/src/keys.ts b/scm-ui/ui-api/src/keys.ts index 7690379ce9..94c5d5f8ed 100644 --- a/scm-ui/ui-api/src/keys.ts +++ b/scm-ui/ui-api/src/keys.ts @@ -20,9 +20,7 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. - * */ - import { Branch, NamespaceAndName } from "@scm-manager/ui-types"; export const repoQueryKey = (repository: NamespaceAndName, ...values: unknown[]) => { diff --git a/scm-ui/ui-api/src/links.test.ts b/scm-ui/ui-api/src/links.test.ts index d1628cc7ed..ede079ba43 100644 --- a/scm-ui/ui-api/src/links.test.ts +++ b/scm-ui/ui-api/src/links.test.ts @@ -20,9 +20,7 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. - * */ - import { requiredLink } from "./links"; describe("requireLink tests", () => { diff --git a/scm-ui/ui-api/src/links.ts b/scm-ui/ui-api/src/links.ts index 970edcbdd7..da9c03bb5d 100644 --- a/scm-ui/ui-api/src/links.ts +++ b/scm-ui/ui-api/src/links.ts @@ -20,9 +20,7 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. - * */ - import { HalRepresentation } from "@scm-manager/ui-types"; import { MissingLinkError } from "./errors"; diff --git a/scm-ui/ui-api/src/namespaces.test.ts b/scm-ui/ui-api/src/namespaces.test.ts index 36a3d8a027..badc05cb13 100644 --- a/scm-ui/ui-api/src/namespaces.test.ts +++ b/scm-ui/ui-api/src/namespaces.test.ts @@ -20,9 +20,7 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. - * */ - import createInfiniteCachingClient from "./tests/createInfiniteCachingClient"; import { setIndexLink } from "./tests/indexLinks"; import fetchMock from "fetch-mock-jest"; diff --git a/scm-ui/ui-api/src/namespaces.ts b/scm-ui/ui-api/src/namespaces.ts index 341afdca4a..6554f9d5b9 100644 --- a/scm-ui/ui-api/src/namespaces.ts +++ b/scm-ui/ui-api/src/namespaces.ts @@ -20,9 +20,7 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. - * */ - import { ApiResult, useIndexJsonResource, useRequiredIndexLink } from "./base"; import { Namespace, NamespaceCollection, NamespaceStrategies } from "@scm-manager/ui-types"; import { useQuery } from "react-query"; diff --git a/scm-ui/ui-api/src/permissions.test.ts b/scm-ui/ui-api/src/permissions.test.ts index c37d214dc4..91cfa13067 100644 --- a/scm-ui/ui-api/src/permissions.test.ts +++ b/scm-ui/ui-api/src/permissions.test.ts @@ -20,9 +20,7 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. - * */ - import { setIndexLink } from "./tests/indexLinks"; import createInfiniteCachingClient from "./tests/createInfiniteCachingClient"; import { diff --git a/scm-ui/ui-api/src/permissions.ts b/scm-ui/ui-api/src/permissions.ts index e48fe83a67..3213cf66ce 100644 --- a/scm-ui/ui-api/src/permissions.ts +++ b/scm-ui/ui-api/src/permissions.ts @@ -20,9 +20,7 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. - * */ - import { ApiResult, useIndexJsonResource } from "./base"; import { useMutation, useQuery, useQueryClient } from "react-query"; import { diff --git a/scm-ui/ui-api/src/repository-roles.ts b/scm-ui/ui-api/src/repository-roles.ts index ddc5ec48f6..117546e23f 100644 --- a/scm-ui/ui-api/src/repository-roles.ts +++ b/scm-ui/ui-api/src/repository-roles.ts @@ -1,3 +1,26 @@ +/* + * MIT License + * + * Copyright (c) 2020-present Cloudogu GmbH and Contributors + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ import { ApiResult, useRequiredIndexLink } from "./base"; import { RepositoryRole, RepositoryRoleCollection, RepositoryRoleCreation } from "@scm-manager/ui-types"; import { useMutation, useQuery, useQueryClient } from "react-query"; diff --git a/scm-ui/ui-api/src/reset.ts b/scm-ui/ui-api/src/reset.ts index abb5a05ac1..4c043abbb7 100644 --- a/scm-ui/ui-api/src/reset.ts +++ b/scm-ui/ui-api/src/reset.ts @@ -20,9 +20,7 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. - * */ - import { QueryClient, useQueryClient } from "react-query"; export const reset = (queryClient: QueryClient) => { diff --git a/scm-ui/ui-api/src/sources.test.ts b/scm-ui/ui-api/src/sources.test.ts index b6da239e2c..bb87d3dbc2 100644 --- a/scm-ui/ui-api/src/sources.test.ts +++ b/scm-ui/ui-api/src/sources.test.ts @@ -20,9 +20,7 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. - * */ - import { File, Repository } from "@scm-manager/ui-types"; import { useSources } from "./sources"; import fetchMock from "fetch-mock"; diff --git a/scm-ui/ui-api/src/sources.ts b/scm-ui/ui-api/src/sources.ts index 49fe5fb82b..c6800f6d73 100644 --- a/scm-ui/ui-api/src/sources.ts +++ b/scm-ui/ui-api/src/sources.ts @@ -20,9 +20,7 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. - * */ - import { File, Link, Repository } from "@scm-manager/ui-types"; import { requiredLink } from "./links"; import { apiClient, urls } from "@scm-manager/ui-components"; diff --git a/scm-ui/ui-api/src/tags.test.ts b/scm-ui/ui-api/src/tags.test.ts index df1a56ad46..dee83bf46c 100644 --- a/scm-ui/ui-api/src/tags.test.ts +++ b/scm-ui/ui-api/src/tags.test.ts @@ -20,9 +20,7 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. - * */ - import { Changeset, Repository, Tag, TagCollection } from "@scm-manager/ui-types"; import fetchMock from "fetch-mock-jest"; import { renderHook } from "@testing-library/react-hooks"; diff --git a/scm-ui/ui-api/src/tags.ts b/scm-ui/ui-api/src/tags.ts index 441360f224..9a276b4208 100644 --- a/scm-ui/ui-api/src/tags.ts +++ b/scm-ui/ui-api/src/tags.ts @@ -20,9 +20,7 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. - * */ - import { Changeset, Link, NamespaceAndName, Repository, Tag, TagCollection } from "@scm-manager/ui-types"; import { requiredLink } from "./links"; import { QueryClient, useMutation, useQuery, useQueryClient } from "react-query"; diff --git a/scm-ui/ui-components/.storybook/withApiProvider.js b/scm-ui/ui-components/.storybook/withApiProvider.js index 8fc42f2f01..8aa561d39c 100644 --- a/scm-ui/ui-components/.storybook/withApiProvider.js +++ b/scm-ui/ui-components/.storybook/withApiProvider.js @@ -20,9 +20,7 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. - * */ - import * as React from "react"; import { ApiProvider } from "@scm-manager/ui-api"; diff --git a/scm-ui/ui-components/src/__resources__/markdown-changelog.md.ts b/scm-ui/ui-components/src/__resources__/markdown-changelog.md.ts index c5ff8a0add..79547d59bc 100644 --- a/scm-ui/ui-components/src/__resources__/markdown-changelog.md.ts +++ b/scm-ui/ui-components/src/__resources__/markdown-changelog.md.ts @@ -1,3 +1,26 @@ +/* + * MIT License + * + * Copyright (c) 2020-present Cloudogu GmbH and Contributors + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ export default ` # Changelog All notable changes to this project will be documented in this file. diff --git a/scm-ui/ui-components/src/markdown/PluginApi.ts b/scm-ui/ui-components/src/markdown/PluginApi.ts index 2f614d9a42..fdec84faf7 100644 --- a/scm-ui/ui-components/src/markdown/PluginApi.ts +++ b/scm-ui/ui-components/src/markdown/PluginApi.ts @@ -1,3 +1,26 @@ +/* + * MIT License + * + * Copyright (c) 2020-present Cloudogu GmbH and Contributors + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ import { Node, Parent } from "unist"; export type Visitor = (node: Node, index: number, parent?: Parent) => void; diff --git a/scm-ui/ui-components/src/markdown/createComponentList.ts b/scm-ui/ui-components/src/markdown/createComponentList.ts index 3b15259c30..4fccd9e7e9 100644 --- a/scm-ui/ui-components/src/markdown/createComponentList.ts +++ b/scm-ui/ui-components/src/markdown/createComponentList.ts @@ -1,3 +1,26 @@ +/* + * MIT License + * + * Copyright (c) 2020-present Cloudogu GmbH and Contributors + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ import { createRemark2RehypeCodeRendererAdapter, createRemark2RehypeHeadingRendererAdapterFactory, diff --git a/scm-ui/ui-components/src/markdown/createMdastPlugin.ts b/scm-ui/ui-components/src/markdown/createMdastPlugin.ts index ffb1e56d33..2739286f83 100644 --- a/scm-ui/ui-components/src/markdown/createMdastPlugin.ts +++ b/scm-ui/ui-components/src/markdown/createMdastPlugin.ts @@ -1,3 +1,26 @@ +/* + * MIT License + * + * Copyright (c) 2020-present Cloudogu GmbH and Contributors + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ import { AstPlugin } from "./PluginApi"; // @ts-ignore No types available import visit from "unist-util-visit"; diff --git a/scm-ui/ui-components/src/markdown/markdownExtensions.ts b/scm-ui/ui-components/src/markdown/markdownExtensions.ts index e7bf3fa218..8ed052bf0a 100644 --- a/scm-ui/ui-components/src/markdown/markdownExtensions.ts +++ b/scm-ui/ui-components/src/markdown/markdownExtensions.ts @@ -1,3 +1,26 @@ +/* + * MIT License + * + * Copyright (c) 2020-present Cloudogu GmbH and Contributors + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ import { FC } from "react"; export type ProtocolLinkRendererProps = { diff --git a/scm-ui/ui-styles/src/scm.scss b/scm-ui/ui-styles/src/scm.scss index c6fd24de27..0d55b90ad5 100644 --- a/scm-ui/ui-styles/src/scm.scss +++ b/scm-ui/ui-styles/src/scm.scss @@ -1,3 +1,26 @@ +/* + * MIT License + * + * Copyright (c) 2020-present Cloudogu GmbH and Contributors + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ @import "bulma/sass/utilities/initial-variables"; @import "bulma/sass/utilities/functions"; diff --git a/scm-ui/ui-types/src/RepositoryVerbs.ts b/scm-ui/ui-types/src/RepositoryVerbs.ts index 1d4fcbcc5d..65addc5190 100644 --- a/scm-ui/ui-types/src/RepositoryVerbs.ts +++ b/scm-ui/ui-types/src/RepositoryVerbs.ts @@ -20,9 +20,7 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. - * */ - import { HalRepresentation } from "./hal"; export type RepositoryVerbs = HalRepresentation & { diff --git a/scm-ui/ui-webapp/src/LegacyReduxProvider.tsx b/scm-ui/ui-webapp/src/LegacyReduxProvider.tsx index 4dc0978935..8c1ffe5ba4 100644 --- a/scm-ui/ui-webapp/src/LegacyReduxProvider.tsx +++ b/scm-ui/ui-webapp/src/LegacyReduxProvider.tsx @@ -20,9 +20,7 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. - * */ - import { createStore } from "redux"; import { IndexResources, Links, Me } from "@scm-manager/ui-types"; import React, { FC } from "react"; diff --git a/scm-ui/ui-webapp/src/repos/codeSection/components/FileSearchButton.tsx b/scm-ui/ui-webapp/src/repos/codeSection/components/FileSearchButton.tsx index 51dc0e348d..a215bb7381 100644 --- a/scm-ui/ui-webapp/src/repos/codeSection/components/FileSearchButton.tsx +++ b/scm-ui/ui-webapp/src/repos/codeSection/components/FileSearchButton.tsx @@ -20,9 +20,7 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. - * */ - import React, { FC } from "react"; import { useTranslation } from "react-i18next"; import { Link } from "react-router-dom"; diff --git a/scm-ui/ui-webapp/src/repos/codeSection/components/FileSearchResults.tsx b/scm-ui/ui-webapp/src/repos/codeSection/components/FileSearchResults.tsx index 551753d957..fa68965a83 100644 --- a/scm-ui/ui-webapp/src/repos/codeSection/components/FileSearchResults.tsx +++ b/scm-ui/ui-webapp/src/repos/codeSection/components/FileSearchResults.tsx @@ -20,9 +20,7 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. - * */ - import React, { FC } from "react"; import { Icon, Notification, urls } from "@scm-manager/ui-components"; import styled from "styled-components"; diff --git a/scm-ui/ui-webapp/src/repos/codeSection/containers/FileSearch.tsx b/scm-ui/ui-webapp/src/repos/codeSection/containers/FileSearch.tsx index 026c6d9113..c446cbd767 100644 --- a/scm-ui/ui-webapp/src/repos/codeSection/containers/FileSearch.tsx +++ b/scm-ui/ui-webapp/src/repos/codeSection/containers/FileSearch.tsx @@ -20,9 +20,7 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. - * */ - import React, { FC, useEffect, useState } from "react"; import { Branch, Repository } from "@scm-manager/ui-types"; import { useHistory, useLocation, useParams } from "react-router-dom"; diff --git a/scm-ui/ui-webapp/src/repos/codeSection/utils/filepathSearch.test.ts b/scm-ui/ui-webapp/src/repos/codeSection/utils/filepathSearch.test.ts index 35b5b881ec..44ff43fc25 100644 --- a/scm-ui/ui-webapp/src/repos/codeSection/utils/filepathSearch.test.ts +++ b/scm-ui/ui-webapp/src/repos/codeSection/utils/filepathSearch.test.ts @@ -20,9 +20,7 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. - * */ - import { createMatcher, filepathSearch } from "./filepathSearch"; describe("filepathSearch tests", () => { diff --git a/scm-ui/ui-webapp/src/repos/codeSection/utils/filepathSearch.ts b/scm-ui/ui-webapp/src/repos/codeSection/utils/filepathSearch.ts index 7a597b053a..22894d3c15 100644 --- a/scm-ui/ui-webapp/src/repos/codeSection/utils/filepathSearch.ts +++ b/scm-ui/ui-webapp/src/repos/codeSection/utils/filepathSearch.ts @@ -20,9 +20,7 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. - * */ - import "string_score"; // typing for string_score diff --git a/scm-ui/ui-webapp/src/repos/permissions/utils/findVerbsForRole.ts b/scm-ui/ui-webapp/src/repos/permissions/utils/findVerbsForRole.ts index dee84295a0..4054d0bcdb 100644 --- a/scm-ui/ui-webapp/src/repos/permissions/utils/findVerbsForRole.ts +++ b/scm-ui/ui-webapp/src/repos/permissions/utils/findVerbsForRole.ts @@ -20,9 +20,7 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. - * */ - import { RepositoryRole } from "@scm-manager/ui-types"; const findVerbsForRole = (availableRepositoryRoles: RepositoryRole[], roleName: string) => { diff --git a/scm-ui/ui-webapp/src/repos/permissions/utils/permissionValidation.ts b/scm-ui/ui-webapp/src/repos/permissions/utils/permissionValidation.ts index 6ed8820104..839b80fb2b 100644 --- a/scm-ui/ui-webapp/src/repos/permissions/utils/permissionValidation.ts +++ b/scm-ui/ui-webapp/src/repos/permissions/utils/permissionValidation.ts @@ -20,9 +20,7 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. - * */ - import { validation } from "@scm-manager/ui-components"; import { Permission } from "@scm-manager/ui-types"; diff --git a/scm-ui/ui-webapp/src/repos/sources/components/TruncatedNotification.tsx b/scm-ui/ui-webapp/src/repos/sources/components/TruncatedNotification.tsx index e00d3c847a..4c91aa3ede 100644 --- a/scm-ui/ui-webapp/src/repos/sources/components/TruncatedNotification.tsx +++ b/scm-ui/ui-webapp/src/repos/sources/components/TruncatedNotification.tsx @@ -20,9 +20,7 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. - * */ - import React, { FC } from "react"; import { File } from "@scm-manager/ui-types"; import { Button, Notification } from "@scm-manager/ui-components"; diff --git a/scm-ui/ui-webapp/src/repos/sources/utils/files.test.ts b/scm-ui/ui-webapp/src/repos/sources/utils/files.test.ts index 74c7203ae2..a81c649d91 100644 --- a/scm-ui/ui-webapp/src/repos/sources/utils/files.test.ts +++ b/scm-ui/ui-webapp/src/repos/sources/utils/files.test.ts @@ -20,9 +20,7 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. - * */ - import { File } from "@scm-manager/ui-types"; import { isEmptyDirectory, isRootFile, isRootPath } from "./files"; diff --git a/scm-ui/ui-webapp/src/repos/sources/utils/files.ts b/scm-ui/ui-webapp/src/repos/sources/utils/files.ts index a7da5ccb07..2029a90ab7 100644 --- a/scm-ui/ui-webapp/src/repos/sources/utils/files.ts +++ b/scm-ui/ui-webapp/src/repos/sources/utils/files.ts @@ -20,9 +20,7 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. - * */ - import { File } from "@scm-manager/ui-types"; export const isRootPath = (path: string) => { diff --git a/scm-ui/ui-webapp/src/tokenExpired.ts b/scm-ui/ui-webapp/src/tokenExpired.ts index ffa66cfd71..338cfb2e1a 100644 --- a/scm-ui/ui-webapp/src/tokenExpired.ts +++ b/scm-ui/ui-webapp/src/tokenExpired.ts @@ -20,9 +20,7 @@ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. - * */ - import { apiClient, clearCache, TokenExpiredError } from "@scm-manager/ui-api"; let tokenExpired = false;