From 8cf90550a5fb45951313cfd329cc3aa17a366ce4 Mon Sep 17 00:00:00 2001 From: Maximilian Moser Date: Sun, 24 May 2026 22:47:00 +0200 Subject: [PATCH] chore(licenses): update license headers to use SPDX --- README.md | 7 ++----- deploy_docs.sh | 5 +++++ docs/website/README.md | 7 ++----- docs/website/core/Footer.js | 7 ++----- docs/website/pages/en/help.js | 7 ++----- docs/website/pages/en/index.js | 7 ++----- docs/website/siteConfig.js | 7 ++----- docs/website/static/js/code-blocks-buttons.js | 7 ++----- public/index.html | 5 +++++ rollup.config.js | 5 +++++ src/demos/App.js | 7 ++----- src/demos/cern-videos-namespaced/Results.js | 7 ++----- src/demos/cern-videos-namespaced/app.js | 5 +++++ src/demos/cern-videos-namespaced/cern-videos-2/App.js | 7 ++----- .../cern-videos-namespaced/cern-videos-2/index.js | 7 ++----- src/demos/cern-videos-namespaced/cern-videos-3/App.js | 7 ++----- .../cern-videos-namespaced/cern-videos-3/index.js | 7 ++----- src/demos/cern-videos/App.js | 7 ++----- src/demos/cern-videos/Results.js | 7 ++----- src/demos/cern-videos/index.js | 7 ++----- src/demos/opensearch/App.js | 7 ++----- src/demos/opensearch/DemoOSRequestSerializer.js | 7 ++----- src/demos/opensearch/Results.js | 7 ++----- src/demos/opensearch/docker/nginx/Dockerfile | 5 +++++ src/demos/opensearch/docker/nginx/site.conf | 5 +++++ src/demos/opensearch/index.js | 7 ++----- src/demos/zenodo/App.js | 7 ++----- src/demos/zenodo/Results.js | 7 ++----- src/demos/zenodo/index.js | 7 ++----- src/index.js | 7 ++----- src/lib/api/UrlHandlerApi.js | 7 ++----- src/lib/api/UrlHandlerApi.test.js | 7 ++----- src/lib/api/UrlParamValidator.js | 7 ++----- src/lib/api/contrib/index.js | 7 ++----- .../InvenioRecordsResourcesRequestSerializer.js | 7 ++----- .../InvenioRecordsResourcesRequestSerializer.test.js | 7 ++----- .../api/contrib/invenio/InvenioRequestSerializer.js | 7 ++----- .../contrib/invenio/InvenioRequestSerializer.test.js | 7 ++----- .../api/contrib/invenio/InvenioResponseSerializer.js | 7 ++----- src/lib/api/contrib/invenio/InvenioSearchApi.js | 7 ++----- src/lib/api/contrib/invenio/InvenioSearchApi.test.js | 7 ++----- src/lib/api/contrib/invenio/InvenioSuggestionApi.js | 7 ++----- src/lib/api/contrib/invenio/index.js | 7 ++----- src/lib/api/contrib/opensearch/OSRequestSerializer.js | 7 ++----- .../contrib/opensearch/OSRequestSerializer.test.js | 7 ++----- .../api/contrib/opensearch/OSResponseSerializer.js | 7 ++----- src/lib/api/contrib/opensearch/OSSearchApi.js | 7 ++----- src/lib/api/contrib/opensearch/OSSearchApi.test.js | 7 ++----- src/lib/api/contrib/opensearch/index.js | 7 ++----- src/lib/api/errors.js | 7 ++----- src/lib/api/index.js | 7 ++----- src/lib/components/ActiveFilters/ActiveFilters.js | 7 ++----- src/lib/components/ActiveFilters/index.js | 7 ++----- .../AutocompleteSearchBar/AutocompleteSearchBar.js | 11 ++++------- .../AutocompleteSearchBar/AutocompleteSearchBar.scss | 5 +++++ src/lib/components/AutocompleteSearchBar/index.js | 7 ++----- src/lib/components/Bootstrap/Bootstrap.js | 7 ++----- src/lib/components/Bootstrap/Bootstrap.test.js | 7 ++----- src/lib/components/Bootstrap/index.js | 7 ++----- .../components/BucketAggregation/BucketAggregation.js | 7 ++----- .../BucketAggregation/BucketAggregationValues.js | 7 ++----- src/lib/components/BucketAggregation/index.js | 7 ++----- src/lib/components/Count/Count.js | 7 ++----- src/lib/components/Count/index.js | 7 ++----- src/lib/components/EmptyResults/EmptyResults.js | 7 ++----- src/lib/components/EmptyResults/index.js | 7 ++----- src/lib/components/Error/Error.js | 7 ++----- src/lib/components/Error/index.js | 7 ++----- src/lib/components/HOC/index.js | 5 +++++ src/lib/components/HOC/withState.js | 7 ++----- src/lib/components/HOC/withState.test.js | 7 ++----- src/lib/components/LayoutSwitcher/LayoutSwitcher.js | 7 ++----- src/lib/components/LayoutSwitcher/index.js | 7 ++----- src/lib/components/Pagination/Pagination.js | 7 ++----- src/lib/components/Pagination/index.js | 7 ++----- src/lib/components/RangeFacet/RangeCustomFilter.js | 7 ++----- src/lib/components/RangeFacet/RangeDefaultFilters.js | 7 ++----- src/lib/components/RangeFacet/RangeFacet.js | 7 ++----- src/lib/components/RangeFacet/RangeFacet.scss | 7 ++----- src/lib/components/RangeFacet/RangeHistogram.js | 7 ++----- src/lib/components/RangeFacet/RangeSlider.js | 7 ++----- src/lib/components/RangeFacet/index.js | 7 ++----- src/lib/components/RangeFacet/utils.js | 7 ++----- src/lib/components/RangeFacet/utils.test.js | 7 ++----- src/lib/components/ReactSearchKit/AppContext.js | 5 +++++ src/lib/components/ReactSearchKit/ReactSearchKit.js | 7 ++----- .../components/ReactSearchKit/ReactSearchKit.test.js | 7 ++----- src/lib/components/ReactSearchKit/index.js | 7 ++----- src/lib/components/ResultsGrid/ResultsGrid.js | 7 ++----- src/lib/components/ResultsGrid/index.js | 7 ++----- src/lib/components/ResultsList/ResultsList.js | 7 ++----- src/lib/components/ResultsList/index.js | 7 ++----- src/lib/components/ResultsLoader/ResultsLoader.js | 7 ++----- src/lib/components/ResultsLoader/index.js | 7 ++----- .../ResultsMultiLayout/ResultsMultiLayout.js | 7 ++----- src/lib/components/ResultsMultiLayout/index.js | 7 ++----- src/lib/components/ResultsPerPage/ResultsPerPage.js | 9 +++------ src/lib/components/ResultsPerPage/index.js | 7 ++----- src/lib/components/SearchBar/SearchBar.js | 7 ++----- src/lib/components/SearchBar/index.js | 7 ++----- src/lib/components/ShouldRender/ShouldRender.js | 7 ++----- src/lib/components/ShouldRender/index.js | 7 ++----- src/lib/components/Sort/Sort.js | 9 +++------ src/lib/components/Sort/index.js | 7 ++----- src/lib/components/SortBy/SortBy.js | 9 +++------ src/lib/components/SortBy/index.js | 7 ++----- src/lib/components/SortOrder/SortOrder.js | 9 +++------ src/lib/components/SortOrder/index.js | 7 ++----- src/lib/components/Toggle/Toggle.js | 7 ++----- src/lib/components/Toggle/index.js | 7 ++----- src/lib/components/index.js | 7 ++----- src/lib/events.js | 5 +++++ src/lib/index.js | 7 ++----- src/lib/state/actions/index.js | 7 ++----- src/lib/state/actions/query.js | 7 ++----- src/lib/state/actions/query.test.js | 7 ++----- src/lib/state/reducers/app.js | 7 ++----- src/lib/state/reducers/index.js | 7 ++----- src/lib/state/reducers/query.js | 7 ++----- src/lib/state/reducers/results.js | 7 ++----- src/lib/state/selectors/index.js | 7 ++----- src/lib/state/selectors/query.js | 7 ++----- src/lib/state/selectors/query.test.js | 7 ++----- src/lib/state/types/index.js | 7 ++----- src/lib/store.js | 7 ++----- src/lib/storeConfig.js | 7 ++----- src/lib/util.js | 7 ++----- src/polyfill.js | 5 +++++ src/setupTests.js | 5 +++++ 129 files changed, 300 insertions(+), 591 deletions(-) diff --git a/README.md b/README.md index 2ec5124a..3219aabe 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,6 @@ # React-SearchKit diff --git a/deploy_docs.sh b/deploy_docs.sh index 64402ced..b2ab6359 100644 --- a/deploy_docs.sh +++ b/deploy_docs.sh @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2018 CERN. + * SPDX-License-Identifier: MIT + */ + #!/bin/bash git config --global user.name "${GH_NAME}" diff --git a/docs/website/README.md b/docs/website/README.md index 945451a6..15b238e4 100644 --- a/docs/website/README.md +++ b/docs/website/README.md @@ -1,9 +1,6 @@ This website was created with [Docusaurus](https://docusaurus.io/). diff --git a/docs/website/core/Footer.js b/docs/website/core/Footer.js index dd9a7eba..1190198f 100644 --- a/docs/website/core/Footer.js +++ b/docs/website/core/Footer.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018-2023 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018-2023 CERN. + * SPDX-License-Identifier: MIT */ const React = require("react"); diff --git a/docs/website/pages/en/help.js b/docs/website/pages/en/help.js index 05ce3518..e25b0d8a 100644 --- a/docs/website/pages/en/help.js +++ b/docs/website/pages/en/help.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018 CERN. + * SPDX-License-Identifier: MIT */ const React = require("react"); diff --git a/docs/website/pages/en/index.js b/docs/website/pages/en/index.js index 44f4949b..0decc656 100644 --- a/docs/website/pages/en/index.js +++ b/docs/website/pages/en/index.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018 CERN. + * SPDX-License-Identifier: MIT */ const React = require("react"); diff --git a/docs/website/siteConfig.js b/docs/website/siteConfig.js index cad2ad09..5dc6b7b4 100644 --- a/docs/website/siteConfig.js +++ b/docs/website/siteConfig.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018 CERN. + * SPDX-License-Identifier: MIT */ const siteConfig = { diff --git a/docs/website/static/js/code-blocks-buttons.js b/docs/website/static/js/code-blocks-buttons.js index b4b339c9..c3aa271c 100644 --- a/docs/website/static/js/code-blocks-buttons.js +++ b/docs/website/static/js/code-blocks-buttons.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018 CERN. + * SPDX-License-Identifier: MIT */ // Turn off ESLint for this file because it's sent down to users as-is. diff --git a/public/index.html b/public/index.html index dd1ccfd4..aabb63c0 100644 --- a/public/index.html +++ b/public/index.html @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2019 CERN. + * SPDX-License-Identifier: MIT + */ + diff --git a/rollup.config.js b/rollup.config.js index 0f5701ae..d4bb7957 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2019-2020 CERN. + * SPDX-License-Identifier: MIT + */ + import babel from '@rollup/plugin-babel'; import commonjs from '@rollup/plugin-commonjs'; import resolve from '@rollup/plugin-node-resolve'; diff --git a/src/demos/App.js b/src/demos/App.js index 59f5765c..79ae71d6 100644 --- a/src/demos/App.js +++ b/src/demos/App.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2019-2022 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2019-2022 CERN. + * SPDX-License-Identifier: MIT */ import React, { Component } from "react"; diff --git a/src/demos/cern-videos-namespaced/Results.js b/src/demos/cern-videos-namespaced/Results.js index e07a2b1c..6409dd35 100644 --- a/src/demos/cern-videos-namespaced/Results.js +++ b/src/demos/cern-videos-namespaced/Results.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2019-2022 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2019-2022 CERN. + * SPDX-License-Identifier: MIT */ import PropTypes from "prop-types"; diff --git a/src/demos/cern-videos-namespaced/app.js b/src/demos/cern-videos-namespaced/app.js index 72c381e9..bec321b6 100644 --- a/src/demos/cern-videos-namespaced/app.js +++ b/src/demos/cern-videos-namespaced/app.js @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2022-2025 CERN. + * SPDX-License-Identifier: MIT + */ + /* eslint-disable react/display-name */ /* eslint-disable react/prop-types */ import _truncate from "lodash/truncate"; diff --git a/src/demos/cern-videos-namespaced/cern-videos-2/App.js b/src/demos/cern-videos-namespaced/cern-videos-2/App.js index 0029ba36..c43e57fc 100644 --- a/src/demos/cern-videos-namespaced/cern-videos-2/App.js +++ b/src/demos/cern-videos-namespaced/cern-videos-2/App.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2022 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2022 CERN. + * SPDX-License-Identifier: MIT */ import React from "react"; diff --git a/src/demos/cern-videos-namespaced/cern-videos-2/index.js b/src/demos/cern-videos-namespaced/cern-videos-2/index.js index b59c66bc..d8bab2cf 100644 --- a/src/demos/cern-videos-namespaced/cern-videos-2/index.js +++ b/src/demos/cern-videos-namespaced/cern-videos-2/index.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2022 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2022 CERN. + * SPDX-License-Identifier: MIT */ export { App as CERNVideosReactSearchKit2 } from "./App"; diff --git a/src/demos/cern-videos-namespaced/cern-videos-3/App.js b/src/demos/cern-videos-namespaced/cern-videos-3/App.js index 79515c79..1967ecbf 100644 --- a/src/demos/cern-videos-namespaced/cern-videos-3/App.js +++ b/src/demos/cern-videos-namespaced/cern-videos-3/App.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2022 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2022 CERN. + * SPDX-License-Identifier: MIT */ import React from "react"; diff --git a/src/demos/cern-videos-namespaced/cern-videos-3/index.js b/src/demos/cern-videos-namespaced/cern-videos-3/index.js index bf260c2d..d31bdc65 100644 --- a/src/demos/cern-videos-namespaced/cern-videos-3/index.js +++ b/src/demos/cern-videos-namespaced/cern-videos-3/index.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2022 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2022 CERN. + * SPDX-License-Identifier: MIT */ export { App as CERNVideosReactSearchKit3 } from "./App"; diff --git a/src/demos/cern-videos/App.js b/src/demos/cern-videos/App.js index 75ea3f37..8ac98279 100644 --- a/src/demos/cern-videos/App.js +++ b/src/demos/cern-videos/App.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2019-2026 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2019-2026 CERN. + * SPDX-License-Identifier: MIT */ import _truncate from "lodash/truncate"; diff --git a/src/demos/cern-videos/Results.js b/src/demos/cern-videos/Results.js index 020e1489..ebe232d5 100644 --- a/src/demos/cern-videos/Results.js +++ b/src/demos/cern-videos/Results.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2019 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2019 CERN. + * SPDX-License-Identifier: MIT */ import PropTypes from "prop-types"; diff --git a/src/demos/cern-videos/index.js b/src/demos/cern-videos/index.js index 5f4dcf52..9c084b58 100644 --- a/src/demos/cern-videos/index.js +++ b/src/demos/cern-videos/index.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2019 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2019 CERN. + * SPDX-License-Identifier: MIT */ export { App as CERNVideosReactSearchKit } from "./App"; diff --git a/src/demos/opensearch/App.js b/src/demos/opensearch/App.js index 7b2d1066..e0605074 100644 --- a/src/demos/opensearch/App.js +++ b/src/demos/opensearch/App.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2019-2022 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2019-2022 CERN. + * SPDX-License-Identifier: MIT */ import _truncate from "lodash/truncate"; diff --git a/src/demos/opensearch/DemoOSRequestSerializer.js b/src/demos/opensearch/DemoOSRequestSerializer.js index 4114fa7c..36cb461d 100644 --- a/src/demos/opensearch/DemoOSRequestSerializer.js +++ b/src/demos/opensearch/DemoOSRequestSerializer.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2019 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2019 CERN. + * SPDX-License-Identifier: MIT */ import _extend from "lodash/extend"; diff --git a/src/demos/opensearch/Results.js b/src/demos/opensearch/Results.js index a8ab19fa..efe28a95 100644 --- a/src/demos/opensearch/Results.js +++ b/src/demos/opensearch/Results.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2019-2022 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2019-2022 CERN. + * SPDX-License-Identifier: MIT */ import PropTypes from "prop-types"; diff --git a/src/demos/opensearch/docker/nginx/Dockerfile b/src/demos/opensearch/docker/nginx/Dockerfile index 8cd3b828..dde99a0e 100644 --- a/src/demos/opensearch/docker/nginx/Dockerfile +++ b/src/demos/opensearch/docker/nginx/Dockerfile @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2025 CERN. + * SPDX-License-Identifier: MIT + */ + FROM nginx:stable COPY site.conf /etc/nginx/conf.d/ diff --git a/src/demos/opensearch/docker/nginx/site.conf b/src/demos/opensearch/docker/nginx/site.conf index 5ed3520c..7a614596 100644 --- a/src/demos/opensearch/docker/nginx/site.conf +++ b/src/demos/opensearch/docker/nginx/site.conf @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2025 CERN. + * SPDX-License-Identifier: MIT + */ + upstream opensearch { server os:9200; } diff --git a/src/demos/opensearch/index.js b/src/demos/opensearch/index.js index 0e1b3577..9fb6686d 100644 --- a/src/demos/opensearch/index.js +++ b/src/demos/opensearch/index.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2019 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2019 CERN. + * SPDX-License-Identifier: MIT */ export { App as OSReactSearchKit } from "./App"; diff --git a/src/demos/zenodo/App.js b/src/demos/zenodo/App.js index 474c9344..26e9e4c3 100644 --- a/src/demos/zenodo/App.js +++ b/src/demos/zenodo/App.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2019-2022 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2019-2022 CERN. + * SPDX-License-Identifier: MIT */ import _truncate from "lodash/truncate"; diff --git a/src/demos/zenodo/Results.js b/src/demos/zenodo/Results.js index 7d9a5941..96219961 100644 --- a/src/demos/zenodo/Results.js +++ b/src/demos/zenodo/Results.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2019-2022 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2019-2022 CERN. + * SPDX-License-Identifier: MIT */ import PropTypes from "prop-types"; diff --git a/src/demos/zenodo/index.js b/src/demos/zenodo/index.js index df62f340..eac3fc95 100644 --- a/src/demos/zenodo/index.js +++ b/src/demos/zenodo/index.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2019 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2019 CERN. + * SPDX-License-Identifier: MIT */ export { App as ZenodoReactSearchKit } from "./App"; diff --git a/src/index.js b/src/index.js index 4f326a01..56ce0310 100644 --- a/src/index.js +++ b/src/index.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2019 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2019 CERN. + * SPDX-License-Identifier: MIT */ import React from "react"; diff --git a/src/lib/api/UrlHandlerApi.js b/src/lib/api/UrlHandlerApi.js index 0701e90d..47658d6b 100644 --- a/src/lib/api/UrlHandlerApi.js +++ b/src/lib/api/UrlHandlerApi.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018-2020 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018-2020 CERN. + * SPDX-License-Identifier: MIT */ import _cloneDeep from "lodash/cloneDeep"; diff --git a/src/lib/api/UrlHandlerApi.test.js b/src/lib/api/UrlHandlerApi.test.js index 073c7129..c861d551 100644 --- a/src/lib/api/UrlHandlerApi.test.js +++ b/src/lib/api/UrlHandlerApi.test.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2019 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2019 CERN. + * SPDX-License-Identifier: MIT */ import Qs from "qs"; diff --git a/src/lib/api/UrlParamValidator.js b/src/lib/api/UrlParamValidator.js index 6bb1f485..c115dcb9 100644 --- a/src/lib/api/UrlParamValidator.js +++ b/src/lib/api/UrlParamValidator.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2020 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2020 CERN. + * SPDX-License-Identifier: MIT */ import _isArray from "lodash/isArray"; diff --git a/src/lib/api/contrib/index.js b/src/lib/api/contrib/index.js index a512280a..40eece43 100644 --- a/src/lib/api/contrib/index.js +++ b/src/lib/api/contrib/index.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2019 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2019 CERN. + * SPDX-License-Identifier: MIT */ export * from "./opensearch"; diff --git a/src/lib/api/contrib/invenio/InvenioRecordsResourcesRequestSerializer.js b/src/lib/api/contrib/invenio/InvenioRecordsResourcesRequestSerializer.js index 746a3f6a..619b7cec 100644 --- a/src/lib/api/contrib/invenio/InvenioRecordsResourcesRequestSerializer.js +++ b/src/lib/api/contrib/invenio/InvenioRecordsResourcesRequestSerializer.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2021 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2021 CERN. + * SPDX-License-Identifier: MIT */ import Qs from "qs"; diff --git a/src/lib/api/contrib/invenio/InvenioRecordsResourcesRequestSerializer.test.js b/src/lib/api/contrib/invenio/InvenioRecordsResourcesRequestSerializer.test.js index 0cacb1b8..a0e73b69 100644 --- a/src/lib/api/contrib/invenio/InvenioRecordsResourcesRequestSerializer.test.js +++ b/src/lib/api/contrib/invenio/InvenioRecordsResourcesRequestSerializer.test.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2021 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2021 CERN. + * SPDX-License-Identifier: MIT */ import { InvenioRecordsResourcesRequestSerializer } from "./InvenioRecordsResourcesRequestSerializer"; diff --git a/src/lib/api/contrib/invenio/InvenioRequestSerializer.js b/src/lib/api/contrib/invenio/InvenioRequestSerializer.js index 895d415a..573b1271 100644 --- a/src/lib/api/contrib/invenio/InvenioRequestSerializer.js +++ b/src/lib/api/contrib/invenio/InvenioRequestSerializer.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2019 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2019 CERN. + * SPDX-License-Identifier: MIT */ import Qs from "qs"; diff --git a/src/lib/api/contrib/invenio/InvenioRequestSerializer.test.js b/src/lib/api/contrib/invenio/InvenioRequestSerializer.test.js index 49193a4b..3aba2ff1 100644 --- a/src/lib/api/contrib/invenio/InvenioRequestSerializer.test.js +++ b/src/lib/api/contrib/invenio/InvenioRequestSerializer.test.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2019 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2019 CERN. + * SPDX-License-Identifier: MIT */ import { InvenioRequestSerializer } from "."; diff --git a/src/lib/api/contrib/invenio/InvenioResponseSerializer.js b/src/lib/api/contrib/invenio/InvenioResponseSerializer.js index 4e8e0555..4227e07e 100644 --- a/src/lib/api/contrib/invenio/InvenioResponseSerializer.js +++ b/src/lib/api/contrib/invenio/InvenioResponseSerializer.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2019 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2019 CERN. + * SPDX-License-Identifier: MIT */ /** Default backend response serializer */ diff --git a/src/lib/api/contrib/invenio/InvenioSearchApi.js b/src/lib/api/contrib/invenio/InvenioSearchApi.js index 49464673..61b7e970 100644 --- a/src/lib/api/contrib/invenio/InvenioSearchApi.js +++ b/src/lib/api/contrib/invenio/InvenioSearchApi.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018-2020 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018-2020 CERN. + * SPDX-License-Identifier: MIT */ import axios from "axios"; diff --git a/src/lib/api/contrib/invenio/InvenioSearchApi.test.js b/src/lib/api/contrib/invenio/InvenioSearchApi.test.js index 4e9be2a1..8521fd09 100644 --- a/src/lib/api/contrib/invenio/InvenioSearchApi.test.js +++ b/src/lib/api/contrib/invenio/InvenioSearchApi.test.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018-2019 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018-2019 CERN. + * SPDX-License-Identifier: MIT */ import MockAdapter from "axios-mock-adapter"; diff --git a/src/lib/api/contrib/invenio/InvenioSuggestionApi.js b/src/lib/api/contrib/invenio/InvenioSuggestionApi.js index 23f2ef6f..105c4e39 100644 --- a/src/lib/api/contrib/invenio/InvenioSuggestionApi.js +++ b/src/lib/api/contrib/invenio/InvenioSuggestionApi.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2019 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2019 CERN. + * SPDX-License-Identifier: MIT */ import _get from "lodash/get"; diff --git a/src/lib/api/contrib/invenio/index.js b/src/lib/api/contrib/invenio/index.js index 507c24c3..24bc6d07 100644 --- a/src/lib/api/contrib/invenio/index.js +++ b/src/lib/api/contrib/invenio/index.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2019 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2019 CERN. + * SPDX-License-Identifier: MIT */ export { InvenioRequestSerializer } from "./InvenioRequestSerializer"; diff --git a/src/lib/api/contrib/opensearch/OSRequestSerializer.js b/src/lib/api/contrib/opensearch/OSRequestSerializer.js index 06e2e5ad..9180be3c 100644 --- a/src/lib/api/contrib/opensearch/OSRequestSerializer.js +++ b/src/lib/api/contrib/opensearch/OSRequestSerializer.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2019 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2019 CERN. + * SPDX-License-Identifier: MIT */ import _isEmpty from "lodash/isEmpty"; diff --git a/src/lib/api/contrib/opensearch/OSRequestSerializer.test.js b/src/lib/api/contrib/opensearch/OSRequestSerializer.test.js index 76e6f436..aea16b9f 100644 --- a/src/lib/api/contrib/opensearch/OSRequestSerializer.test.js +++ b/src/lib/api/contrib/opensearch/OSRequestSerializer.test.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2019 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2019 CERN. + * SPDX-License-Identifier: MIT */ import { OSRequestSerializer } from "."; diff --git a/src/lib/api/contrib/opensearch/OSResponseSerializer.js b/src/lib/api/contrib/opensearch/OSResponseSerializer.js index f059303a..edf4fdb0 100644 --- a/src/lib/api/contrib/opensearch/OSResponseSerializer.js +++ b/src/lib/api/contrib/opensearch/OSResponseSerializer.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2019 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2019 CERN. + * SPDX-License-Identifier: MIT */ export class OSResponseSerializer { diff --git a/src/lib/api/contrib/opensearch/OSSearchApi.js b/src/lib/api/contrib/opensearch/OSSearchApi.js index 1ae4ccc6..fd9a5e2a 100644 --- a/src/lib/api/contrib/opensearch/OSSearchApi.js +++ b/src/lib/api/contrib/opensearch/OSSearchApi.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2020 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2020 CERN. + * SPDX-License-Identifier: MIT */ import axios from "axios"; diff --git a/src/lib/api/contrib/opensearch/OSSearchApi.test.js b/src/lib/api/contrib/opensearch/OSSearchApi.test.js index d3b7a7d3..b39d5399 100644 --- a/src/lib/api/contrib/opensearch/OSSearchApi.test.js +++ b/src/lib/api/contrib/opensearch/OSSearchApi.test.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2019 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2019 CERN. + * SPDX-License-Identifier: MIT */ import MockAdapter from "axios-mock-adapter"; diff --git a/src/lib/api/contrib/opensearch/index.js b/src/lib/api/contrib/opensearch/index.js index 91034c2e..a08cf26c 100644 --- a/src/lib/api/contrib/opensearch/index.js +++ b/src/lib/api/contrib/opensearch/index.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2019 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2019 CERN. + * SPDX-License-Identifier: MIT */ export { OSRequestSerializer } from "./OSRequestSerializer"; diff --git a/src/lib/api/errors.js b/src/lib/api/errors.js index 2f05deaf..b1138169 100644 --- a/src/lib/api/errors.js +++ b/src/lib/api/errors.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2020 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2020 CERN. + * SPDX-License-Identifier: MIT */ /** diff --git a/src/lib/api/index.js b/src/lib/api/index.js index 05564642..82d1f3ba 100644 --- a/src/lib/api/index.js +++ b/src/lib/api/index.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018-2019 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018-2019 CERN. + * SPDX-License-Identifier: MIT */ export * from "./contrib"; diff --git a/src/lib/components/ActiveFilters/ActiveFilters.js b/src/lib/components/ActiveFilters/ActiveFilters.js index 4aaa12bd..3a62ee70 100644 --- a/src/lib/components/ActiveFilters/ActiveFilters.js +++ b/src/lib/components/ActiveFilters/ActiveFilters.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018-2022 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018-2022 CERN. + * SPDX-License-Identifier: MIT */ import PropTypes from "prop-types"; diff --git a/src/lib/components/ActiveFilters/index.js b/src/lib/components/ActiveFilters/index.js index dcdf7af0..296b8ee9 100644 --- a/src/lib/components/ActiveFilters/index.js +++ b/src/lib/components/ActiveFilters/index.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018-2020 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018-2020 CERN. + * SPDX-License-Identifier: MIT */ import { connect } from "react-redux"; diff --git a/src/lib/components/AutocompleteSearchBar/AutocompleteSearchBar.js b/src/lib/components/AutocompleteSearchBar/AutocompleteSearchBar.js index 5294f70b..cdc9c605 100644 --- a/src/lib/components/AutocompleteSearchBar/AutocompleteSearchBar.js +++ b/src/lib/components/AutocompleteSearchBar/AutocompleteSearchBar.js @@ -1,15 +1,12 @@ +/* + * SPDX-FileCopyrightText: 2019-2022 CERN. + * SPDX-License-Identifier: MIT + */ /* eslint-disable no-unused-vars */ /* eslint-disable react/no-this-in-sfc */ /* eslint-disable react/destructuring-assignment */ /* eslint-disable react/prop-types */ /* eslint-disable react/require-default-props */ -/* - * This file is part of React-SearchKit. - * Copyright (C) 2019-2022 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. - */ import _ from "lodash"; import PropTypes from "prop-types"; diff --git a/src/lib/components/AutocompleteSearchBar/AutocompleteSearchBar.scss b/src/lib/components/AutocompleteSearchBar/AutocompleteSearchBar.scss index e525b659..a7e9b05f 100644 --- a/src/lib/components/AutocompleteSearchBar/AutocompleteSearchBar.scss +++ b/src/lib/components/AutocompleteSearchBar/AutocompleteSearchBar.scss @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2019 CERN. + * SPDX-License-Identifier: MIT + */ + .AutoCompleteText { position: relative; z-index: 100; diff --git a/src/lib/components/AutocompleteSearchBar/index.js b/src/lib/components/AutocompleteSearchBar/index.js index 2c9e3a96..d8eb13f0 100644 --- a/src/lib/components/AutocompleteSearchBar/index.js +++ b/src/lib/components/AutocompleteSearchBar/index.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2019-2020 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2019-2020 CERN. + * SPDX-License-Identifier: MIT */ import { connect } from "react-redux"; diff --git a/src/lib/components/Bootstrap/Bootstrap.js b/src/lib/components/Bootstrap/Bootstrap.js index 714e9be4..5c5fc19c 100644 --- a/src/lib/components/Bootstrap/Bootstrap.js +++ b/src/lib/components/Bootstrap/Bootstrap.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018-2022 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018-2022 CERN. + * SPDX-License-Identifier: MIT */ import PropTypes from "prop-types"; diff --git a/src/lib/components/Bootstrap/Bootstrap.test.js b/src/lib/components/Bootstrap/Bootstrap.test.js index cbe0b65c..3b13cb90 100644 --- a/src/lib/components/Bootstrap/Bootstrap.test.js +++ b/src/lib/components/Bootstrap/Bootstrap.test.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2019-2020 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2019-2020 CERN. + * SPDX-License-Identifier: MIT */ import { mount } from "enzyme"; diff --git a/src/lib/components/Bootstrap/index.js b/src/lib/components/Bootstrap/index.js index 370870ba..825da05f 100644 --- a/src/lib/components/Bootstrap/index.js +++ b/src/lib/components/Bootstrap/index.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018-2020 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018-2020 CERN. + * SPDX-License-Identifier: MIT */ import { connect } from "react-redux"; diff --git a/src/lib/components/BucketAggregation/BucketAggregation.js b/src/lib/components/BucketAggregation/BucketAggregation.js index 0fdb59e4..38d57174 100644 --- a/src/lib/components/BucketAggregation/BucketAggregation.js +++ b/src/lib/components/BucketAggregation/BucketAggregation.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2019-2022 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2019-2022 CERN. + * SPDX-License-Identifier: MIT */ import _get from "lodash/get"; diff --git a/src/lib/components/BucketAggregation/BucketAggregationValues.js b/src/lib/components/BucketAggregation/BucketAggregationValues.js index 30791863..331ed0ba 100644 --- a/src/lib/components/BucketAggregation/BucketAggregationValues.js +++ b/src/lib/components/BucketAggregation/BucketAggregationValues.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018-2022 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018-2022 CERN. + * SPDX-License-Identifier: MIT */ import PropTypes from "prop-types"; diff --git a/src/lib/components/BucketAggregation/index.js b/src/lib/components/BucketAggregation/index.js index e40393ed..8e77ea57 100644 --- a/src/lib/components/BucketAggregation/index.js +++ b/src/lib/components/BucketAggregation/index.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2019-2020 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2019-2020 CERN. + * SPDX-License-Identifier: MIT */ import { connect } from "react-redux"; diff --git a/src/lib/components/Count/Count.js b/src/lib/components/Count/Count.js index b00c5989..6296b46a 100644 --- a/src/lib/components/Count/Count.js +++ b/src/lib/components/Count/Count.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018-2022 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018-2022 CERN. + * SPDX-License-Identifier: MIT */ import PropTypes from "prop-types"; diff --git a/src/lib/components/Count/index.js b/src/lib/components/Count/index.js index 9b27ec07..8d4d6f12 100644 --- a/src/lib/components/Count/index.js +++ b/src/lib/components/Count/index.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018-2020 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018-2020 CERN. + * SPDX-License-Identifier: MIT */ import { connect } from "react-redux"; diff --git a/src/lib/components/EmptyResults/EmptyResults.js b/src/lib/components/EmptyResults/EmptyResults.js index 947c2e7f..6bb94a21 100644 --- a/src/lib/components/EmptyResults/EmptyResults.js +++ b/src/lib/components/EmptyResults/EmptyResults.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018-2022 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018-2022 CERN. + * SPDX-License-Identifier: MIT */ import _isEmpty from "lodash/isEmpty"; diff --git a/src/lib/components/EmptyResults/index.js b/src/lib/components/EmptyResults/index.js index 368dbd23..2a516faf 100644 --- a/src/lib/components/EmptyResults/index.js +++ b/src/lib/components/EmptyResults/index.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018-2020 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018-2020 CERN. + * SPDX-License-Identifier: MIT */ import { connect } from "react-redux"; diff --git a/src/lib/components/Error/Error.js b/src/lib/components/Error/Error.js index 44c8f847..59d68457 100644 --- a/src/lib/components/Error/Error.js +++ b/src/lib/components/Error/Error.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018-2022 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018-2022 CERN. + * SPDX-License-Identifier: MIT */ import _isEmpty from "lodash/isEmpty"; diff --git a/src/lib/components/Error/index.js b/src/lib/components/Error/index.js index 826d2225..8cfd28ec 100644 --- a/src/lib/components/Error/index.js +++ b/src/lib/components/Error/index.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018-2020 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018-2020 CERN. + * SPDX-License-Identifier: MIT */ import { connect } from "react-redux"; diff --git a/src/lib/components/HOC/index.js b/src/lib/components/HOC/index.js index bb81b877..c853e6c2 100644 --- a/src/lib/components/HOC/index.js +++ b/src/lib/components/HOC/index.js @@ -1 +1,6 @@ +/* + * SPDX-FileCopyrightText: 2019-2022 CERN. + * SPDX-License-Identifier: MIT + */ + export { withState } from "./withState"; diff --git a/src/lib/components/HOC/withState.js b/src/lib/components/HOC/withState.js index 1dbf0c93..9d7337fe 100644 --- a/src/lib/components/HOC/withState.js +++ b/src/lib/components/HOC/withState.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2019-2020 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2019-2020 CERN. + * SPDX-License-Identifier: MIT */ import React from "react"; diff --git a/src/lib/components/HOC/withState.test.js b/src/lib/components/HOC/withState.test.js index 19be9929..3a36bcbe 100644 --- a/src/lib/components/HOC/withState.test.js +++ b/src/lib/components/HOC/withState.test.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2020-2022 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2020-2022 CERN. + * SPDX-License-Identifier: MIT */ import { shallow } from "enzyme"; diff --git a/src/lib/components/LayoutSwitcher/LayoutSwitcher.js b/src/lib/components/LayoutSwitcher/LayoutSwitcher.js index 034b4c54..96bb6525 100644 --- a/src/lib/components/LayoutSwitcher/LayoutSwitcher.js +++ b/src/lib/components/LayoutSwitcher/LayoutSwitcher.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018-2022 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018-2022 CERN. + * SPDX-License-Identifier: MIT */ import PropTypes from "prop-types"; diff --git a/src/lib/components/LayoutSwitcher/index.js b/src/lib/components/LayoutSwitcher/index.js index 5f75463a..27b7ec22 100644 --- a/src/lib/components/LayoutSwitcher/index.js +++ b/src/lib/components/LayoutSwitcher/index.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018-2020 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018-2020 CERN. + * SPDX-License-Identifier: MIT */ import { connect } from "react-redux"; diff --git a/src/lib/components/Pagination/Pagination.js b/src/lib/components/Pagination/Pagination.js index 5e67ed4a..1ce3d00b 100644 --- a/src/lib/components/Pagination/Pagination.js +++ b/src/lib/components/Pagination/Pagination.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018-2022 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018-2022 CERN. + * SPDX-License-Identifier: MIT */ import PropTypes from "prop-types"; diff --git a/src/lib/components/Pagination/index.js b/src/lib/components/Pagination/index.js index b0d6a423..9bb61436 100644 --- a/src/lib/components/Pagination/index.js +++ b/src/lib/components/Pagination/index.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018-2020 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018-2020 CERN. + * SPDX-License-Identifier: MIT */ import { connect } from "react-redux"; diff --git a/src/lib/components/RangeFacet/RangeCustomFilter.js b/src/lib/components/RangeFacet/RangeCustomFilter.js index 265e515e..34cfcc44 100644 --- a/src/lib/components/RangeFacet/RangeCustomFilter.js +++ b/src/lib/components/RangeFacet/RangeCustomFilter.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2026 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2026 CERN. + * SPDX-License-Identifier: MIT */ import React from "react"; diff --git a/src/lib/components/RangeFacet/RangeDefaultFilters.js b/src/lib/components/RangeFacet/RangeDefaultFilters.js index 644f3666..4cd49c86 100644 --- a/src/lib/components/RangeFacet/RangeDefaultFilters.js +++ b/src/lib/components/RangeFacet/RangeDefaultFilters.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2026 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2026 CERN. + * SPDX-License-Identifier: MIT */ import React, { Component, useContext } from "react"; diff --git a/src/lib/components/RangeFacet/RangeFacet.js b/src/lib/components/RangeFacet/RangeFacet.js index dc360a03..6d09de87 100644 --- a/src/lib/components/RangeFacet/RangeFacet.js +++ b/src/lib/components/RangeFacet/RangeFacet.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2026 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2026 CERN. + * SPDX-License-Identifier: MIT */ import "./RangeFacet.scss"; diff --git a/src/lib/components/RangeFacet/RangeFacet.scss b/src/lib/components/RangeFacet/RangeFacet.scss index faa8897d..2c643099 100644 --- a/src/lib/components/RangeFacet/RangeFacet.scss +++ b/src/lib/components/RangeFacet/RangeFacet.scss @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2026 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2026 CERN. + * SPDX-License-Identifier: MIT */ .searchkit-daterange-slider-container { diff --git a/src/lib/components/RangeFacet/RangeHistogram.js b/src/lib/components/RangeFacet/RangeHistogram.js index e151d205..2e7cb6ba 100644 --- a/src/lib/components/RangeFacet/RangeHistogram.js +++ b/src/lib/components/RangeFacet/RangeHistogram.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2026 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2026 CERN. + * SPDX-License-Identifier: MIT */ import PropTypes from "prop-types"; diff --git a/src/lib/components/RangeFacet/RangeSlider.js b/src/lib/components/RangeFacet/RangeSlider.js index 73ee0f2c..dd198c15 100644 --- a/src/lib/components/RangeFacet/RangeSlider.js +++ b/src/lib/components/RangeFacet/RangeSlider.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2026 CERN. - * - * React-SearchKit is free software; you can redistribute it and modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2026 CERN. + * SPDX-License-Identifier: MIT */ import React from "react"; diff --git a/src/lib/components/RangeFacet/index.js b/src/lib/components/RangeFacet/index.js index 9f9ce51a..eee8638c 100644 --- a/src/lib/components/RangeFacet/index.js +++ b/src/lib/components/RangeFacet/index.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2026 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2026 CERN. + * SPDX-License-Identifier: MIT */ import RangeFacetComponent from "./RangeFacet"; diff --git a/src/lib/components/RangeFacet/utils.js b/src/lib/components/RangeFacet/utils.js index 390854ec..062aefb8 100644 --- a/src/lib/components/RangeFacet/utils.js +++ b/src/lib/components/RangeFacet/utils.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2026 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2026 CERN. + * SPDX-License-Identifier: MIT */ import { DateTime } from "luxon"; diff --git a/src/lib/components/RangeFacet/utils.test.js b/src/lib/components/RangeFacet/utils.test.js index 540eafe8..c4c37c98 100644 --- a/src/lib/components/RangeFacet/utils.test.js +++ b/src/lib/components/RangeFacet/utils.test.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2026 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2026 CERN. + * SPDX-License-Identifier: MIT */ import { diff --git a/src/lib/components/ReactSearchKit/AppContext.js b/src/lib/components/ReactSearchKit/AppContext.js index dccb39d9..1cd9bab8 100644 --- a/src/lib/components/ReactSearchKit/AppContext.js +++ b/src/lib/components/ReactSearchKit/AppContext.js @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2022 CERN. + * SPDX-License-Identifier: MIT + */ + import React from "react"; export const AppContext = React.createContext({}); diff --git a/src/lib/components/ReactSearchKit/ReactSearchKit.js b/src/lib/components/ReactSearchKit/ReactSearchKit.js index 40369bf6..df2a059c 100644 --- a/src/lib/components/ReactSearchKit/ReactSearchKit.js +++ b/src/lib/components/ReactSearchKit/ReactSearchKit.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018-2022 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018-2022 CERN. + * SPDX-License-Identifier: MIT */ import PropTypes from "prop-types"; diff --git a/src/lib/components/ReactSearchKit/ReactSearchKit.test.js b/src/lib/components/ReactSearchKit/ReactSearchKit.test.js index 9c689703..a99cf79f 100644 --- a/src/lib/components/ReactSearchKit/ReactSearchKit.test.js +++ b/src/lib/components/ReactSearchKit/ReactSearchKit.test.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2019 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2019 CERN. + * SPDX-License-Identifier: MIT */ import { shallow } from "enzyme"; diff --git a/src/lib/components/ReactSearchKit/index.js b/src/lib/components/ReactSearchKit/index.js index c649419f..787126fc 100644 --- a/src/lib/components/ReactSearchKit/index.js +++ b/src/lib/components/ReactSearchKit/index.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018-2022 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018-2022 CERN. + * SPDX-License-Identifier: MIT */ export { AppContext } from "./AppContext"; diff --git a/src/lib/components/ResultsGrid/ResultsGrid.js b/src/lib/components/ResultsGrid/ResultsGrid.js index 5e5446cd..d6715fac 100644 --- a/src/lib/components/ResultsGrid/ResultsGrid.js +++ b/src/lib/components/ResultsGrid/ResultsGrid.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018-2022 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018-2022 CERN. + * SPDX-License-Identifier: MIT */ import PropTypes from "prop-types"; diff --git a/src/lib/components/ResultsGrid/index.js b/src/lib/components/ResultsGrid/index.js index 7edea47b..238796fb 100644 --- a/src/lib/components/ResultsGrid/index.js +++ b/src/lib/components/ResultsGrid/index.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018-2020 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018-2020 CERN. + * SPDX-License-Identifier: MIT */ import { connect } from "react-redux"; diff --git a/src/lib/components/ResultsList/ResultsList.js b/src/lib/components/ResultsList/ResultsList.js index 09f34708..4eec9ab9 100644 --- a/src/lib/components/ResultsList/ResultsList.js +++ b/src/lib/components/ResultsList/ResultsList.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018-2022 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018-2022 CERN. + * SPDX-License-Identifier: MIT */ import PropTypes from "prop-types"; diff --git a/src/lib/components/ResultsList/index.js b/src/lib/components/ResultsList/index.js index f781dd9e..1f903b68 100644 --- a/src/lib/components/ResultsList/index.js +++ b/src/lib/components/ResultsList/index.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018-2020 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018-2020 CERN. + * SPDX-License-Identifier: MIT */ import { connect } from "react-redux"; diff --git a/src/lib/components/ResultsLoader/ResultsLoader.js b/src/lib/components/ResultsLoader/ResultsLoader.js index 60badc8c..0ad897a4 100644 --- a/src/lib/components/ResultsLoader/ResultsLoader.js +++ b/src/lib/components/ResultsLoader/ResultsLoader.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018-2022 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018-2022 CERN. + * SPDX-License-Identifier: MIT */ import PropTypes from "prop-types"; diff --git a/src/lib/components/ResultsLoader/index.js b/src/lib/components/ResultsLoader/index.js index 4b90fd9f..230c3c98 100644 --- a/src/lib/components/ResultsLoader/index.js +++ b/src/lib/components/ResultsLoader/index.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018-2020 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018-2020 CERN. + * SPDX-License-Identifier: MIT */ import { connect } from "react-redux"; diff --git a/src/lib/components/ResultsMultiLayout/ResultsMultiLayout.js b/src/lib/components/ResultsMultiLayout/ResultsMultiLayout.js index fab939a7..b6067bc0 100644 --- a/src/lib/components/ResultsMultiLayout/ResultsMultiLayout.js +++ b/src/lib/components/ResultsMultiLayout/ResultsMultiLayout.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018-2022 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018-2022 CERN. + * SPDX-License-Identifier: MIT */ import PropTypes from "prop-types"; diff --git a/src/lib/components/ResultsMultiLayout/index.js b/src/lib/components/ResultsMultiLayout/index.js index f408c9e5..9a12af98 100644 --- a/src/lib/components/ResultsMultiLayout/index.js +++ b/src/lib/components/ResultsMultiLayout/index.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018-2020 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018-2020 CERN. + * SPDX-License-Identifier: MIT */ import { connect } from "react-redux"; diff --git a/src/lib/components/ResultsPerPage/ResultsPerPage.js b/src/lib/components/ResultsPerPage/ResultsPerPage.js index 9caceed3..24cca74f 100644 --- a/src/lib/components/ResultsPerPage/ResultsPerPage.js +++ b/src/lib/components/ResultsPerPage/ResultsPerPage.js @@ -1,10 +1,7 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018-2022 CERN. - * Copyright (C) 2022 NYU. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018-2022 CERN. + * SPDX-FileCopyrightText: 2022 NYU. + * SPDX-License-Identifier: MIT */ import PropTypes from "prop-types"; diff --git a/src/lib/components/ResultsPerPage/index.js b/src/lib/components/ResultsPerPage/index.js index ff155c3c..5836f50c 100644 --- a/src/lib/components/ResultsPerPage/index.js +++ b/src/lib/components/ResultsPerPage/index.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018-2020 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018-2020 CERN. + * SPDX-License-Identifier: MIT */ import { connect } from "react-redux"; diff --git a/src/lib/components/SearchBar/SearchBar.js b/src/lib/components/SearchBar/SearchBar.js index 2e4e9be9..7e482e9b 100644 --- a/src/lib/components/SearchBar/SearchBar.js +++ b/src/lib/components/SearchBar/SearchBar.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018-2022 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018-2022 CERN. + * SPDX-License-Identifier: MIT */ import PropTypes from "prop-types"; diff --git a/src/lib/components/SearchBar/index.js b/src/lib/components/SearchBar/index.js index 17b83651..555b5f85 100644 --- a/src/lib/components/SearchBar/index.js +++ b/src/lib/components/SearchBar/index.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018-2020 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018-2020 CERN. + * SPDX-License-Identifier: MIT */ import { connect } from "react-redux"; diff --git a/src/lib/components/ShouldRender/ShouldRender.js b/src/lib/components/ShouldRender/ShouldRender.js index 82c162cb..66c0989e 100644 --- a/src/lib/components/ShouldRender/ShouldRender.js +++ b/src/lib/components/ShouldRender/ShouldRender.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018-2022 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018-2022 CERN. + * SPDX-License-Identifier: MIT */ import PropTypes from "prop-types"; diff --git a/src/lib/components/ShouldRender/index.js b/src/lib/components/ShouldRender/index.js index 058cf007..a4b921d1 100644 --- a/src/lib/components/ShouldRender/index.js +++ b/src/lib/components/ShouldRender/index.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018 CERN. + * SPDX-License-Identifier: MIT */ export { default as ShouldRender } from "./ShouldRender"; diff --git a/src/lib/components/Sort/Sort.js b/src/lib/components/Sort/Sort.js index 2de2ecd9..9e13f3f5 100644 --- a/src/lib/components/Sort/Sort.js +++ b/src/lib/components/Sort/Sort.js @@ -1,10 +1,7 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018-2022 CERN. - * Copyright (C) 2022 NYU. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018-2022 CERN. + * SPDX-FileCopyrightText: 2022 NYU. + * SPDX-License-Identifier: MIT */ import PropTypes from "prop-types"; diff --git a/src/lib/components/Sort/index.js b/src/lib/components/Sort/index.js index 003569a8..d0ef550b 100644 --- a/src/lib/components/Sort/index.js +++ b/src/lib/components/Sort/index.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018-2020 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018-2020 CERN. + * SPDX-License-Identifier: MIT */ import { connect } from "react-redux"; diff --git a/src/lib/components/SortBy/SortBy.js b/src/lib/components/SortBy/SortBy.js index 187bd065..d7aac1c9 100644 --- a/src/lib/components/SortBy/SortBy.js +++ b/src/lib/components/SortBy/SortBy.js @@ -1,10 +1,7 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018-2022 CERN. - * Copyright (C) 2022 NYU. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018-2022 CERN. + * SPDX-FileCopyrightText: 2022 NYU. + * SPDX-License-Identifier: MIT */ import PropTypes from "prop-types"; diff --git a/src/lib/components/SortBy/index.js b/src/lib/components/SortBy/index.js index e7c89103..1e1387d1 100644 --- a/src/lib/components/SortBy/index.js +++ b/src/lib/components/SortBy/index.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018-2020 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018-2020 CERN. + * SPDX-License-Identifier: MIT */ import { connect } from "react-redux"; diff --git a/src/lib/components/SortOrder/SortOrder.js b/src/lib/components/SortOrder/SortOrder.js index 0954eabc..7f99a4db 100644 --- a/src/lib/components/SortOrder/SortOrder.js +++ b/src/lib/components/SortOrder/SortOrder.js @@ -1,10 +1,7 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018-2022 CERN. - * Copyright (C) 2022 NYU. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018-2022 CERN. + * SPDX-FileCopyrightText: 2022 NYU. + * SPDX-License-Identifier: MIT */ import PropTypes from "prop-types"; diff --git a/src/lib/components/SortOrder/index.js b/src/lib/components/SortOrder/index.js index c4d2acb1..2d5ec00d 100644 --- a/src/lib/components/SortOrder/index.js +++ b/src/lib/components/SortOrder/index.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018-2020 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018-2020 CERN. + * SPDX-License-Identifier: MIT */ import { connect } from "react-redux"; diff --git a/src/lib/components/Toggle/Toggle.js b/src/lib/components/Toggle/Toggle.js index c1f1d752..75679c62 100644 --- a/src/lib/components/Toggle/Toggle.js +++ b/src/lib/components/Toggle/Toggle.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2020-2022 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2020-2022 CERN. + * SPDX-License-Identifier: MIT */ import PropTypes from "prop-types"; diff --git a/src/lib/components/Toggle/index.js b/src/lib/components/Toggle/index.js index d86cabac..07ad2588 100644 --- a/src/lib/components/Toggle/index.js +++ b/src/lib/components/Toggle/index.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2020 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2020 CERN. + * SPDX-License-Identifier: MIT */ import { connect } from "react-redux"; diff --git a/src/lib/components/index.js b/src/lib/components/index.js index 005c5b15..536e9edb 100644 --- a/src/lib/components/index.js +++ b/src/lib/components/index.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018-2022 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018-2022 CERN. + * SPDX-License-Identifier: MIT */ export { ActiveFilters } from "./ActiveFilters"; diff --git a/src/lib/events.js b/src/lib/events.js index 564d512b..51a195b4 100644 --- a/src/lib/events.js +++ b/src/lib/events.js @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2020-2022 CERN. + * SPDX-License-Identifier: MIT + */ + export const onQueryChanged = (payload) => { var evt = new CustomEvent("queryChanged", { detail: payload, diff --git a/src/lib/index.js b/src/lib/index.js index a7a829ca..d94fc0b0 100644 --- a/src/lib/index.js +++ b/src/lib/index.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018 CERN. + * SPDX-License-Identifier: MIT */ export * from "./api"; diff --git a/src/lib/state/actions/index.js b/src/lib/state/actions/index.js index a750348c..e2cfc2bd 100644 --- a/src/lib/state/actions/index.js +++ b/src/lib/state/actions/index.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018 CERN. + * SPDX-License-Identifier: MIT */ export * from "./query"; diff --git a/src/lib/state/actions/query.js b/src/lib/state/actions/query.js index 1b331390..dfbea614 100644 --- a/src/lib/state/actions/query.js +++ b/src/lib/state/actions/query.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018-2019 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018-2019 CERN. + * SPDX-License-Identifier: MIT */ import _cloneDeep from "lodash/cloneDeep"; diff --git a/src/lib/state/actions/query.test.js b/src/lib/state/actions/query.test.js index a3ad3272..8a5e23fb 100644 --- a/src/lib/state/actions/query.test.js +++ b/src/lib/state/actions/query.test.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018-2019 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018-2019 CERN. + * SPDX-License-Identifier: MIT */ import expect from "expect"; diff --git a/src/lib/state/reducers/app.js b/src/lib/state/reducers/app.js index 39de29d1..334a8e79 100644 --- a/src/lib/state/reducers/app.js +++ b/src/lib/state/reducers/app.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2020 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2020 CERN. + * SPDX-License-Identifier: MIT */ import { SET_QUERY_SORTING, SET_QUERY_SORT_BY, SET_QUERY_SORT_ORDER } from "../types"; diff --git a/src/lib/state/reducers/index.js b/src/lib/state/reducers/index.js index 1ebb3ccc..763c23f4 100644 --- a/src/lib/state/reducers/index.js +++ b/src/lib/state/reducers/index.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018-2020 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018-2020 CERN. + * SPDX-License-Identifier: MIT */ import { combineReducers } from "redux"; diff --git a/src/lib/state/reducers/query.js b/src/lib/state/reducers/query.js index a1e6c322..c5ba93e6 100644 --- a/src/lib/state/reducers/query.js +++ b/src/lib/state/reducers/query.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018-2019 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018-2019 CERN. + * SPDX-License-Identifier: MIT */ import { INITIAL_QUERY_STATE, INITIAL_QUERY_STATE_KEYS } from "../../storeConfig"; diff --git a/src/lib/state/reducers/results.js b/src/lib/state/reducers/results.js index 0c59a0fc..a98b3482 100644 --- a/src/lib/state/reducers/results.js +++ b/src/lib/state/reducers/results.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018-2020 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018-2020 CERN. + * SPDX-License-Identifier: MIT */ import { RESULTS_FETCH_ERROR, RESULTS_FETCH_SUCCESS, RESULTS_LOADING } from "../types"; diff --git a/src/lib/state/selectors/index.js b/src/lib/state/selectors/index.js index a750348c..e2cfc2bd 100644 --- a/src/lib/state/selectors/index.js +++ b/src/lib/state/selectors/index.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018 CERN. + * SPDX-License-Identifier: MIT */ export * from "./query"; diff --git a/src/lib/state/selectors/query.js b/src/lib/state/selectors/query.js index cf0573ca..4bb3bd30 100644 --- a/src/lib/state/selectors/query.js +++ b/src/lib/state/selectors/query.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018-2019 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018-2019 CERN. + * SPDX-License-Identifier: MIT */ import Qs from "qs"; diff --git a/src/lib/state/selectors/query.test.js b/src/lib/state/selectors/query.test.js index d7b48b58..f66a0717 100644 --- a/src/lib/state/selectors/query.test.js +++ b/src/lib/state/selectors/query.test.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018-2019 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018-2019 CERN. + * SPDX-License-Identifier: MIT */ import { updateQueryFilters } from "./query"; diff --git a/src/lib/state/types/index.js b/src/lib/state/types/index.js index 18914c62..b2a342be 100644 --- a/src/lib/state/types/index.js +++ b/src/lib/state/types/index.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018 CERN. + * SPDX-License-Identifier: MIT */ export const SET_QUERY_COMPONENT_INITIAL_STATE = "SET_QUERY_COMPONENT_INITIAL_STATE"; diff --git a/src/lib/store.js b/src/lib/store.js index 73facde6..5375cad5 100644 --- a/src/lib/store.js +++ b/src/lib/store.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018-2020 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018-2020 CERN. + * SPDX-License-Identifier: MIT */ import _isEmpty from "lodash/isEmpty"; diff --git a/src/lib/storeConfig.js b/src/lib/storeConfig.js index a1128299..cd7dc03b 100644 --- a/src/lib/storeConfig.js +++ b/src/lib/storeConfig.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2018-2020 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2018-2020 CERN. + * SPDX-License-Identifier: MIT */ export const INITIAL_QUERY_STATE = { diff --git a/src/lib/util.js b/src/lib/util.js index 8c594b4a..0640acf0 100644 --- a/src/lib/util.js +++ b/src/lib/util.js @@ -1,9 +1,6 @@ /* - * This file is part of React-SearchKit. - * Copyright (C) 2020 CERN. - * - * React-SearchKit is free software; you can redistribute it and/or modify it - * under the terms of the MIT License; see LICENSE file for more details. + * SPDX-FileCopyrightText: 2020 CERN. + * SPDX-License-Identifier: MIT */ /** diff --git a/src/polyfill.js b/src/polyfill.js index 4316c660..6c3b42b5 100644 --- a/src/polyfill.js +++ b/src/polyfill.js @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2024 CERN. + * SPDX-License-Identifier: MIT + */ + import { TextEncoder, TextDecoder, ReadableStream } from "util"; Object.assign(global, { TextDecoder, TextEncoder, ReadableStream }); diff --git a/src/setupTests.js b/src/setupTests.js index 9b06acc2..c5a50dc1 100644 --- a/src/setupTests.js +++ b/src/setupTests.js @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2019-2024 CERN. + * SPDX-License-Identifier: MIT + */ + // IMPORTANT: this files should be imported first to apply some global variables import "./polyfill.js"; import { configure } from "enzyme";