diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs new file mode 100644 index 00000000..604849e5 --- /dev/null +++ b/.git-blame-ignore-revs @@ -0,0 +1 @@ +e9c6035a1a5c6a0bfb8d8edb597b43191b638a0a diff --git a/public/index.html b/public/index.html index dd1ccfd4..5c308854 100644 --- a/public/index.html +++ b/public/index.html @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2020 CERN. + * SPDX-License-Identifier: MIT + */ + diff --git a/rollup.config.js b/rollup.config.js index 7f235ad4..07022f22 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -1,9 +1,8 @@ -// This file is part of React-Invenio-Forms -// Copyright (C) 2020 CERN. -// Copyright (C) 2020 Northwestern University. -// -// React-Invenio-Forms 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-FileCopyrightText: 2020 Northwestern University. + * SPDX-License-Identifier: MIT + */ import babel from "@rollup/plugin-babel"; import commonjs from "@rollup/plugin-commonjs"; diff --git a/src/demos/App.js b/src/demos/App.js index b6889063..1e2c6bb5 100644 --- a/src/demos/App.js +++ b/src/demos/App.js @@ -1,9 +1,8 @@ -// This file is part of React-Invenio-Forms -// Copyright (C) 2020 CERN. -// Copyright (C) 2020 Northwestern University. -// -// React-Invenio-Forms 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-FileCopyrightText: 2020 Northwestern University. + * SPDX-License-Identifier: MIT + */ import React, { Component } from "react"; diff --git a/src/index.js b/src/index.js index f457f214..56ce0310 100644 --- a/src/index.js +++ b/src/index.js @@ -1,9 +1,6 @@ /* - * This file is part of React-Invenio-Forms. - * Copyright (C) 2019 CERN. - * - * React-Invenio-Forms 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/connector.js b/src/lib/api/connector.js index ec5acf45..a639e407 100644 --- a/src/lib/api/connector.js +++ b/src/lib/api/connector.js @@ -1,14 +1,7 @@ -// This file is part of React-Invenio-Forms -// Copyright (C) 2022 CERN. -// -// React-Invenio-Forms is free software; you can redistribute it and/or modify it -// under the terms of the MIT License; see LICENSE file for more details. - -// This file is part of InvenioRDM -// Copyright (C) 2022 CERN. -// -// Invenio RDM 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 axios from "axios"; diff --git a/src/lib/api/index.js b/src/lib/api/index.js index a9196707..9f07a271 100644 --- a/src/lib/api/index.js +++ b/src/lib/api/index.js @@ -1,8 +1,7 @@ -// This file is part of React-Invenio-Forms -// Copyright (C) 2022 CERN. -// -// React-Invenio-Forms 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 { http } from "./connector"; export { withCancel } from "./withCancel"; diff --git a/src/lib/api/withCancel.js b/src/lib/api/withCancel.js index 0829df72..84f07170 100644 --- a/src/lib/api/withCancel.js +++ b/src/lib/api/withCancel.js @@ -1,8 +1,7 @@ -// This file is part of React-Invenio-Forms -// Copyright (C) 2022 CERN. -// -// React-Invenio-Forms 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 + */ /** * Wrap a promise to be cancellable and avoid potential memory leaks diff --git a/src/lib/elements/ErrorMessage.js b/src/lib/elements/ErrorMessage.js index 50494a6f..e40acf33 100644 --- a/src/lib/elements/ErrorMessage.js +++ b/src/lib/elements/ErrorMessage.js @@ -1,8 +1,7 @@ -// This file is part of React-Invenio-Forms -// Copyright (C) 2023 CERN. -// -// React-Invenio-Forms 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: 2023 CERN. + * SPDX-License-Identifier: MIT + */ import { Message, Icon } from "semantic-ui-react"; import PropTypes from "prop-types"; diff --git a/src/lib/elements/GridResponsiveSidebarColumn.js b/src/lib/elements/GridResponsiveSidebarColumn.js index ff1db613..b4b5ebe3 100644 --- a/src/lib/elements/GridResponsiveSidebarColumn.js +++ b/src/lib/elements/GridResponsiveSidebarColumn.js @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2022-2023 CERN. + * SPDX-License-Identifier: MIT + */ + import React from "react"; import PropTypes from "prop-types"; import { Grid, Sidebar, Button, Segment } from "semantic-ui-react"; diff --git a/src/lib/elements/Image.js b/src/lib/elements/Image.js index 9a7f347a..a0784cb6 100644 --- a/src/lib/elements/Image.js +++ b/src/lib/elements/Image.js @@ -1,8 +1,7 @@ -// This file is part of InvenioRDM -// Copyright (C) 2022 CERN. -// -// Invenio RDM Records 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 PropTypes from "prop-types"; import React, { Component } from "react"; diff --git a/src/lib/elements/accessibility/InvenioPopup.js b/src/lib/elements/accessibility/InvenioPopup.js index 74e793bb..3c5f307f 100644 --- a/src/lib/elements/accessibility/InvenioPopup.js +++ b/src/lib/elements/accessibility/InvenioPopup.js @@ -1,8 +1,7 @@ -// This file is part of React-Invenio-Forms -// Copyright (C) 2023 CERN. -// -// React-Invenio-Forms 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: 2023 CERN. + * SPDX-License-Identifier: MIT + */ import React, { Component } from "react"; import PropTypes from "prop-types"; diff --git a/src/lib/elements/accessibility/index.js b/src/lib/elements/accessibility/index.js index c734b45d..07400e54 100644 --- a/src/lib/elements/accessibility/index.js +++ b/src/lib/elements/accessibility/index.js @@ -1,8 +1,7 @@ -// This file is part of React-Invenio-Forms -// Copyright (C) 2022 CERN. -// -// React-Invenio-Forms 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 + */ /** * This folder contains accessibility friendly components. diff --git a/src/lib/elements/bulk_actions/SearchResultsBulkActions.js b/src/lib/elements/bulk_actions/SearchResultsBulkActions.js index 4526c5c9..914af7fb 100644 --- a/src/lib/elements/bulk_actions/SearchResultsBulkActions.js +++ b/src/lib/elements/bulk_actions/SearchResultsBulkActions.js @@ -1,9 +1,6 @@ /* - * This file is part of Invenio. - * Copyright (C) 2022 CERN. - * - * Invenio 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, { Component } from "react"; diff --git a/src/lib/elements/bulk_actions/SearchResultsBulkActionsManager.js b/src/lib/elements/bulk_actions/SearchResultsBulkActionsManager.js index 4adf9edb..48873aa3 100644 --- a/src/lib/elements/bulk_actions/SearchResultsBulkActionsManager.js +++ b/src/lib/elements/bulk_actions/SearchResultsBulkActionsManager.js @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2023 CERN. + * SPDX-License-Identifier: MIT + */ + import { BulkActionsContext } from "./context"; import React, { Component } from "react"; import _hasIn from "lodash/hasIn"; diff --git a/src/lib/elements/bulk_actions/SearchResultsRowCheckbox.js b/src/lib/elements/bulk_actions/SearchResultsRowCheckbox.js index 1237751b..0df18273 100644 --- a/src/lib/elements/bulk_actions/SearchResultsRowCheckbox.js +++ b/src/lib/elements/bulk_actions/SearchResultsRowCheckbox.js @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2023 CERN. + * SPDX-License-Identifier: MIT + */ + import { BulkActionsContext } from "./context"; import React, { Component } from "react"; import PropTypes from "prop-types"; diff --git a/src/lib/elements/bulk_actions/context.js b/src/lib/elements/bulk_actions/context.js index 4e7d7e68..9d25c41d 100644 --- a/src/lib/elements/bulk_actions/context.js +++ b/src/lib/elements/bulk_actions/context.js @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2023 CERN. + * SPDX-License-Identifier: MIT + */ + import React from "react"; export const BulkActionsContext = React.createContext({ diff --git a/src/lib/elements/bulk_actions/index.js b/src/lib/elements/bulk_actions/index.js index dc1cedef..8e9ab294 100644 --- a/src/lib/elements/bulk_actions/index.js +++ b/src/lib/elements/bulk_actions/index.js @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2023 CERN. + * SPDX-License-Identifier: MIT + */ + export { BulkActionsContext } from "./context"; export { default as SearchResultsBulkActions } from "./SearchResultsBulkActions"; export { default as SearchResultsBulkActionsManager } from "./SearchResultsBulkActionsManager"; diff --git a/src/lib/elements/contrib/index.js b/src/lib/elements/contrib/index.js index 7b7e8980..789e5efa 100644 --- a/src/lib/elements/contrib/index.js +++ b/src/lib/elements/contrib/index.js @@ -1,9 +1,6 @@ /* - * // This file is part of invenio-app-rdm - * // Copyright (C) 2023 CERN. - * // - * // invenio-app-rdm 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: 2023 CERN. + * SPDX-License-Identifier: MIT */ export * from "./invenioRDM"; diff --git a/src/lib/elements/contrib/invenioRDM/groups/index.js b/src/lib/elements/contrib/invenioRDM/groups/index.js index f568af83..b1454340 100644 --- a/src/lib/elements/contrib/invenioRDM/groups/index.js +++ b/src/lib/elements/contrib/invenioRDM/groups/index.js @@ -1,7 +1,4 @@ /* - * // This file is part of React-Invenio-Forms - * // Copyright (C) 2023 CERN. - * // - * // React-Invenio-Forms 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: 2023 CERN. + * SPDX-License-Identifier: MIT */ diff --git a/src/lib/elements/contrib/invenioRDM/index.js b/src/lib/elements/contrib/invenioRDM/index.js index 6a47b712..a8a82091 100644 --- a/src/lib/elements/contrib/invenioRDM/index.js +++ b/src/lib/elements/contrib/invenioRDM/index.js @@ -1,9 +1,6 @@ /* - * // This file is part of React-Invenio-Forms - * // Copyright (C) 2023 CERN. - * // - * // React-Invenio-Forms 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: 2023 CERN. + * SPDX-License-Identifier: MIT */ export * from "./groups"; diff --git a/src/lib/elements/contrib/invenioRDM/records/AffiliationsSuggestions.js b/src/lib/elements/contrib/invenioRDM/records/AffiliationsSuggestions.js index 28a2d1a2..936e6976 100644 --- a/src/lib/elements/contrib/invenioRDM/records/AffiliationsSuggestions.js +++ b/src/lib/elements/contrib/invenioRDM/records/AffiliationsSuggestions.js @@ -1,9 +1,6 @@ /* - * // This file is part of React-Invenio-Forms - * // Copyright (C) 2024 CERN. - * // - * // React-Invenio-Forms 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: 2024 CERN. + * SPDX-License-Identifier: MIT */ import React from "react"; diff --git a/src/lib/elements/contrib/invenioRDM/records/index.js b/src/lib/elements/contrib/invenioRDM/records/index.js index 003f4cba..8d635afc 100644 --- a/src/lib/elements/contrib/invenioRDM/records/index.js +++ b/src/lib/elements/contrib/invenioRDM/records/index.js @@ -1,9 +1,6 @@ /* - * // This file is part of React-Invenio-Forms - * // Copyright (C) 2024 CERN. - * // - * // React-Invenio-Forms 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: 2024 CERN. + * SPDX-License-Identifier: MIT */ export { diff --git a/src/lib/elements/contrib/invenioRDM/users/UserListItemCompact.js b/src/lib/elements/contrib/invenioRDM/users/UserListItemCompact.js index 76a1d4a5..fc41c63c 100644 --- a/src/lib/elements/contrib/invenioRDM/users/UserListItemCompact.js +++ b/src/lib/elements/contrib/invenioRDM/users/UserListItemCompact.js @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2023-2025 CERN. + * SPDX-License-Identifier: MIT + */ + import React, { Component } from "react"; import PropTypes from "prop-types"; import { Image } from "../../../Image"; diff --git a/src/lib/elements/contrib/invenioRDM/users/index.js b/src/lib/elements/contrib/invenioRDM/users/index.js index 846f8ce7..f7a91cbe 100644 --- a/src/lib/elements/contrib/invenioRDM/users/index.js +++ b/src/lib/elements/contrib/invenioRDM/users/index.js @@ -1,9 +1,6 @@ /* - * // This file is part of React-Invenio-Forms - * // Copyright (C) 2023 CERN. - * // - * // React-Invenio-Forms 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: 2023 CERN. + * SPDX-License-Identifier: MIT */ export { UserListItemCompact } from "./UserListItemCompact"; diff --git a/src/lib/elements/index.js b/src/lib/elements/index.js index d01b8850..738fa13a 100644 --- a/src/lib/elements/index.js +++ b/src/lib/elements/index.js @@ -1,8 +1,7 @@ -// This file is part of React-Invenio-Forms -// Copyright (C) 2022 CERN. -// -// React-Invenio-Forms 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 + */ /** * This folder contains general purpose reusable components. diff --git a/src/lib/forms/AccordionField.js b/src/lib/forms/AccordionField.js index 546ef8df..7138a352 100644 --- a/src/lib/forms/AccordionField.js +++ b/src/lib/forms/AccordionField.js @@ -1,8 +1,8 @@ -// This file is part of React-Invenio-Forms -// Copyright (C) 2020-2026 CERN. -// Copyright (C) 2020 Northwestern University. -// React-Invenio-Forms 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-2026 CERN. + * SPDX-FileCopyrightText: 2020 Northwestern University. + * SPDX-License-Identifier: MIT + */ import _get from "lodash/get"; import isEmpty from "lodash/isEmpty"; diff --git a/src/lib/forms/ArrayField.js b/src/lib/forms/ArrayField.js index ea6e2765..e2b318ba 100644 --- a/src/lib/forms/ArrayField.js +++ b/src/lib/forms/ArrayField.js @@ -1,9 +1,8 @@ -// This file is part of React-Invenio-Forms -// Copyright (C) 2020-2021 CERN. -// Copyright (C) 2020-2022 Northwestern University. -// -// React-Invenio-Forms 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-2021 CERN. + * SPDX-FileCopyrightText: 2020-2022 Northwestern University. + * SPDX-License-Identifier: MIT + */ import React, { Component } from "react"; import PropTypes from "prop-types"; diff --git a/src/lib/forms/BaseForm/BaseForm.js b/src/lib/forms/BaseForm/BaseForm.js index 9d8994df..4790b19e 100644 --- a/src/lib/forms/BaseForm/BaseForm.js +++ b/src/lib/forms/BaseForm/BaseForm.js @@ -1,9 +1,8 @@ -// This file is part of React-Invenio-Forms -// Copyright (C) 2020 CERN. -// Copyright (C) 2020 Northwestern University. -// -// React-Invenio-Forms 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-FileCopyrightText: 2020 Northwestern University. + * SPDX-License-Identifier: MIT + */ import React, { Component } from "react"; import PropTypes from "prop-types"; diff --git a/src/lib/forms/BaseForm/index.js b/src/lib/forms/BaseForm/index.js index b5be5f14..627ee797 100644 --- a/src/lib/forms/BaseForm/index.js +++ b/src/lib/forms/BaseForm/index.js @@ -1,8 +1,7 @@ -// This file is part of React-Invenio-Forms -// Copyright (C) 2020 CERN. -// Copyright (C) 2020 Northwestern University. -// -// React-Invenio-Forms 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-FileCopyrightText: 2020 Northwestern University. + * SPDX-License-Identifier: MIT + */ export { BaseForm } from "./BaseForm"; diff --git a/src/lib/forms/BooleanField.js b/src/lib/forms/BooleanField.js index a18c5300..231dd2ef 100644 --- a/src/lib/forms/BooleanField.js +++ b/src/lib/forms/BooleanField.js @@ -1,9 +1,8 @@ -// This file is part of React-Invenio-Forms -// Copyright (C) 2020 CERN. -// Copyright (C) 2020 Northwestern University. -// -// React-Invenio-Forms 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-FileCopyrightText: 2020 Northwestern University. + * SPDX-License-Identifier: MIT + */ import React, { Component } from "react"; import PropTypes from "prop-types"; diff --git a/src/lib/forms/ErrorLabel.js b/src/lib/forms/ErrorLabel.js index 66c2a532..0de439cc 100644 --- a/src/lib/forms/ErrorLabel.js +++ b/src/lib/forms/ErrorLabel.js @@ -1,9 +1,8 @@ -// This file is part of React-Invenio-Forms -// Copyright (C) 2020 CERN. -// Copyright (C) 2020 Northwestern University. -// -// React-Invenio-Forms 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-FileCopyrightText: 2020 Northwestern University. + * SPDX-License-Identifier: MIT + */ import { Field } from "formik"; import _get from "lodash/get"; diff --git a/src/lib/forms/FeedbackLabel.js b/src/lib/forms/FeedbackLabel.js index 092b6a65..82d5f32d 100644 --- a/src/lib/forms/FeedbackLabel.js +++ b/src/lib/forms/FeedbackLabel.js @@ -1,7 +1,7 @@ -// This file is part of React-Invenio-Forms -// Copyright (C) 2025 CERN. -// React-Invenio-Forms 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: 2025 CERN. + * SPDX-License-Identifier: MIT + */ import _get from "lodash/get"; import isEmpty from "lodash/isEmpty"; diff --git a/src/lib/forms/FieldLabel.js b/src/lib/forms/FieldLabel.js index 4c375ef7..616ca4a0 100644 --- a/src/lib/forms/FieldLabel.js +++ b/src/lib/forms/FieldLabel.js @@ -1,10 +1,9 @@ -// This file is part of React-Invenio-Forms -// Copyright (C) 2020 CERN. -// Copyright (C) 2020 Northwestern University. -// Copyright (C) 2021 Graz University of Technology. -// -// React-Invenio-Forms 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-FileCopyrightText: 2020 Northwestern University. + * SPDX-FileCopyrightText: 2021 Graz University of Technology. + * SPDX-License-Identifier: MIT + */ import React, { Component } from "react"; import PropTypes from "prop-types"; diff --git a/src/lib/forms/FieldLabel.test.js b/src/lib/forms/FieldLabel.test.js index e04c8df8..2381fae0 100644 --- a/src/lib/forms/FieldLabel.test.js +++ b/src/lib/forms/FieldLabel.test.js @@ -1,9 +1,8 @@ -// This file is part of React-Invenio-Forms -// Copyright (C) 2020 CERN. -// Copyright (C) 2020 Northwestern University. -// -// React-Invenio-Forms 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-FileCopyrightText: 2020 Northwestern University. + * SPDX-License-Identifier: MIT + */ import React from "react"; import ReactDOM from "react-dom"; diff --git a/src/lib/forms/FilesList.js b/src/lib/forms/FilesList.js index 514e0490..b3853b24 100644 --- a/src/lib/forms/FilesList.js +++ b/src/lib/forms/FilesList.js @@ -1,8 +1,7 @@ -// This file is part of React-Invenio-Forms -// Copyright (C) 2026 CERN. -// -// React-Invenio-Forms 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 } from "react"; import PropTypes from "prop-types"; import { Label } from "semantic-ui-react"; diff --git a/src/lib/forms/GroupField.js b/src/lib/forms/GroupField.js index 58c859a6..cd367d16 100644 --- a/src/lib/forms/GroupField.js +++ b/src/lib/forms/GroupField.js @@ -1,9 +1,8 @@ -// This file is part of React-Invenio-Forms -// Copyright (C) 2020 CERN. -// Copyright (C) 2020 Northwestern University. -// -// React-Invenio-Forms 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-FileCopyrightText: 2020 Northwestern University. + * SPDX-License-Identifier: MIT + */ import React from "react"; import PropTypes from "prop-types"; diff --git a/src/lib/forms/RadioField.js b/src/lib/forms/RadioField.js index f4223bf2..42ecb37f 100644 --- a/src/lib/forms/RadioField.js +++ b/src/lib/forms/RadioField.js @@ -1,9 +1,8 @@ -// This file is part of React-Invenio-Forms -// Copyright (C) 2020 CERN. -// Copyright (C) 2020 Northwestern University. -// -// React-Invenio-Forms 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-FileCopyrightText: 2020 Northwestern University. + * SPDX-License-Identifier: MIT + */ import { FastField, Field, getIn } from "formik"; import PropTypes from "prop-types"; diff --git a/src/lib/forms/RadioField.test.js b/src/lib/forms/RadioField.test.js index f7cb66ef..c9a8aa39 100644 --- a/src/lib/forms/RadioField.test.js +++ b/src/lib/forms/RadioField.test.js @@ -1,9 +1,8 @@ -// This file is part of React-Invenio-Forms -// Copyright (C) 2020 CERN. -// Copyright (C) 2020 Northwestern University. -// -// React-Invenio-Forms 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-FileCopyrightText: 2020 Northwestern University. + * SPDX-License-Identifier: MIT + */ import React from "react"; import ReactDOM from "react-dom"; diff --git a/src/lib/forms/RemoteSelectField.js b/src/lib/forms/RemoteSelectField.js index c867a23a..2f4b21b1 100644 --- a/src/lib/forms/RemoteSelectField.js +++ b/src/lib/forms/RemoteSelectField.js @@ -1,9 +1,8 @@ -// This file is part of React-Invenio-Deposit -// Copyright (C) 2020 CERN. -// Copyright (C) 2020-2021 Northwestern University. -// -// React-Invenio-Deposit 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-FileCopyrightText: 2020-2021 Northwestern University. + * SPDX-License-Identifier: MIT + */ import axios from "axios"; import _debounce from "lodash/debounce"; diff --git a/src/lib/forms/RichEditor.js b/src/lib/forms/RichEditor.js index 25099d06..ea3c34b7 100644 --- a/src/lib/forms/RichEditor.js +++ b/src/lib/forms/RichEditor.js @@ -1,10 +1,9 @@ -// This file is part of React-Invenio-Forms -// Copyright (C) 2022-2026 CERN. -// Copyright (C) 2020 Northwestern University. -// Copyright (C) 2024 KTH Royal Institute of Technology. -// -// React-Invenio-Forms 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-2026 CERN. + * SPDX-FileCopyrightText: 2020 Northwestern University. + * SPDX-FileCopyrightText: 2024 KTH Royal Institute of Technology. + * SPDX-License-Identifier: MIT + */ import React, { Component } from "react"; import { Editor } from "@tinymce/tinymce-react"; import "tinymce/tinymce"; diff --git a/src/lib/forms/RichInputField.js b/src/lib/forms/RichInputField.js index 2965b485..8331e518 100644 --- a/src/lib/forms/RichInputField.js +++ b/src/lib/forms/RichInputField.js @@ -1,10 +1,9 @@ -// This file is part of React-Invenio-Deposit -// Copyright (C) 2022 CERN. -// Copyright (C) 2020 Northwestern University. -// Copyright (C) 2024 KTH Royal Institute of Technology. -// -// React-Invenio-Deposit 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-FileCopyrightText: 2020 Northwestern University. + * SPDX-FileCopyrightText: 2024 KTH Royal Institute of Technology. + * SPDX-License-Identifier: MIT + */ import { FastField, Field, getIn } from "formik"; import PropTypes from "prop-types"; diff --git a/src/lib/forms/SelectField.js b/src/lib/forms/SelectField.js index 87806d09..6441faa8 100644 --- a/src/lib/forms/SelectField.js +++ b/src/lib/forms/SelectField.js @@ -1,9 +1,8 @@ -// This file is part of React-Invenio-Forms -// Copyright (C) 2020 CERN. -// Copyright (C) 2020 Northwestern University. -// -// React-Invenio-Forms 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-FileCopyrightText: 2020 Northwestern University. + * SPDX-License-Identifier: MIT + */ import React, { Component } from "react"; import PropTypes from "prop-types"; diff --git a/src/lib/forms/TextAreaField.js b/src/lib/forms/TextAreaField.js index bbe0c48c..4d8a71bb 100644 --- a/src/lib/forms/TextAreaField.js +++ b/src/lib/forms/TextAreaField.js @@ -1,9 +1,8 @@ -// This file is part of React-Invenio-Forms -// Copyright (C) 2020 CERN. -// Copyright (C) 2020 Northwestern University. -// -// React-Invenio-Forms 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-FileCopyrightText: 2020 Northwestern University. + * SPDX-License-Identifier: MIT + */ import React, { Component } from "react"; import PropTypes from "prop-types"; diff --git a/src/lib/forms/TextField.js b/src/lib/forms/TextField.js index 50c3265c..8525372a 100644 --- a/src/lib/forms/TextField.js +++ b/src/lib/forms/TextField.js @@ -1,10 +1,9 @@ -// This file is part of React-Invenio-Forms -// Copyright (C) 2020-2021 CERN. -// Copyright (C) 2020-2021 Northwestern University. -// Copyright (C) 2021 Graz University of Technology -// -// React-Invenio-Forms 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-2021 CERN. + * SPDX-FileCopyrightText: 2020-2021 Northwestern University. + * SPDX-FileCopyrightText: 2021 Graz University of Technology + * SPDX-License-Identifier: MIT + */ import { FastField, Field } from "formik"; import PropTypes from "prop-types"; diff --git a/src/lib/forms/ToggleField.js b/src/lib/forms/ToggleField.js index c58586a9..1b4967aa 100644 --- a/src/lib/forms/ToggleField.js +++ b/src/lib/forms/ToggleField.js @@ -1,9 +1,8 @@ -// This file is part of React-Invenio-Forms -// Copyright (C) 2020-2021 CERN. -// Copyright (C) 2020-2021 Northwestern University. -// -// React-Invenio-Forms 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-2021 CERN. + * SPDX-FileCopyrightText: 2020-2021 Northwestern University. + * SPDX-License-Identifier: MIT + */ import React, { Component } from "react"; import PropTypes from "prop-types"; diff --git a/src/lib/forms/fieldComponents.js b/src/lib/forms/fieldComponents.js index d3547ad3..6e8102e1 100644 --- a/src/lib/forms/fieldComponents.js +++ b/src/lib/forms/fieldComponents.js @@ -1,8 +1,7 @@ -// This file is part of React-Invenio-Forms -// Copyright (C) 2025 CERN. -// -// React-Invenio-Forms 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: 2025 CERN. + * SPDX-License-Identifier: MIT + */ import { useFormikContext } from "formik"; import React from "react"; diff --git a/src/lib/forms/index.js b/src/lib/forms/index.js index 687c7f5b..2a6a75c4 100644 --- a/src/lib/forms/index.js +++ b/src/lib/forms/index.js @@ -1,9 +1,8 @@ -// This file is part of React-Invenio-Forms -// Copyright (C) 2020-2022 CERN. -// Copyright (C) 2020-2022 Northwestern University. -// -// React-Invenio-Forms 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-FileCopyrightText: 2020-2022 Northwestern University. + * SPDX-License-Identifier: MIT + */ /** * This folder contains reusable components that can be used a form. diff --git a/src/lib/forms/widgets/array/Array.js b/src/lib/forms/widgets/array/Array.js index f60e82e6..d304e4b6 100644 --- a/src/lib/forms/widgets/array/Array.js +++ b/src/lib/forms/widgets/array/Array.js @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2022-2025 CERN. + * SPDX-License-Identifier: MIT + */ + import React, { Component } from "react"; import PropTypes from "prop-types"; import { FieldLabel } from "../../FieldLabel"; diff --git a/src/lib/forms/widgets/array/index.js b/src/lib/forms/widgets/array/index.js index 74aada12..fb1939b8 100644 --- a/src/lib/forms/widgets/array/index.js +++ b/src/lib/forms/widgets/array/index.js @@ -1 +1,6 @@ +/* + * SPDX-FileCopyrightText: 2022-2025 CERN. + * SPDX-License-Identifier: MIT + */ + export { Array } from "./Array"; diff --git a/src/lib/forms/widgets/custom_fields/AddDiscoverableFieldsModal.js b/src/lib/forms/widgets/custom_fields/AddDiscoverableFieldsModal.js index bf0a99dc..863a1360 100644 --- a/src/lib/forms/widgets/custom_fields/AddDiscoverableFieldsModal.js +++ b/src/lib/forms/widgets/custom_fields/AddDiscoverableFieldsModal.js @@ -1,9 +1,8 @@ -// This file is part of Invenio-RDM-Records -// Copyright (C) 2020-2023 CERN. -// Copyright (C) 2020-2022 Northwestern University. -// -// Invenio-RDM-Records 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-2023 CERN. + * SPDX-FileCopyrightText: 2020-2022 Northwestern University. + * SPDX-License-Identifier: MIT + */ import React, { Component } from "react"; import { RemoveField } from "./RemoveField"; diff --git a/src/lib/forms/widgets/custom_fields/CustomFields.js b/src/lib/forms/widgets/custom_fields/CustomFields.js index c91c8aa9..74df079f 100644 --- a/src/lib/forms/widgets/custom_fields/CustomFields.js +++ b/src/lib/forms/widgets/custom_fields/CustomFields.js @@ -1,9 +1,8 @@ -// This file is part of React-Invenio-Forms -// Copyright (C) 2022 CERN. -// Copyright (C) 2022 Northwestern University. -// -// React-Invenio-Forms 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-FileCopyrightText: 2022 Northwestern University. + * SPDX-License-Identifier: MIT + */ import React, { Component } from "react"; import PropTypes from "prop-types"; diff --git a/src/lib/forms/widgets/custom_fields/DiscoverFieldsSection.js b/src/lib/forms/widgets/custom_fields/DiscoverFieldsSection.js index dafb222f..9b131677 100644 --- a/src/lib/forms/widgets/custom_fields/DiscoverFieldsSection.js +++ b/src/lib/forms/widgets/custom_fields/DiscoverFieldsSection.js @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2024-2025 CERN. + * SPDX-License-Identifier: MIT + */ + import _isEmpty from "lodash/isEmpty"; import React, { Component } from "react"; import PropTypes from "prop-types"; diff --git a/src/lib/forms/widgets/custom_fields/ListAndFilterCustomFields.js b/src/lib/forms/widgets/custom_fields/ListAndFilterCustomFields.js index 5f21a7e8..7ad3c671 100644 --- a/src/lib/forms/widgets/custom_fields/ListAndFilterCustomFields.js +++ b/src/lib/forms/widgets/custom_fields/ListAndFilterCustomFields.js @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2024-2025 CERN. + * SPDX-License-Identifier: MIT + */ + import React, { Component } from "react"; import PropTypes from "prop-types"; import { diff --git a/src/lib/forms/widgets/custom_fields/RemoveField.js b/src/lib/forms/widgets/custom_fields/RemoveField.js index 1c28787d..10dcf27e 100644 --- a/src/lib/forms/widgets/custom_fields/RemoveField.js +++ b/src/lib/forms/widgets/custom_fields/RemoveField.js @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2024 CERN. + * SPDX-License-Identifier: MIT + */ + import React, { Component } from "react"; import PropTypes from "prop-types"; import { Button, Icon, Popup } from "semantic-ui-react"; diff --git a/src/lib/forms/widgets/custom_fields/SubjectAutocompleteDropdown.js b/src/lib/forms/widgets/custom_fields/SubjectAutocompleteDropdown.js index cf0e4f41..65fb9f0e 100644 --- a/src/lib/forms/widgets/custom_fields/SubjectAutocompleteDropdown.js +++ b/src/lib/forms/widgets/custom_fields/SubjectAutocompleteDropdown.js @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2024-2025 CERN. + * SPDX-License-Identifier: MIT + */ + import React, { Component } from "react"; import PropTypes from "prop-types"; import { RemoteSelectField } from "../../RemoteSelectField"; diff --git a/src/lib/forms/widgets/custom_fields/index.js b/src/lib/forms/widgets/custom_fields/index.js index 8da45d12..37c891b9 100644 --- a/src/lib/forms/widgets/custom_fields/index.js +++ b/src/lib/forms/widgets/custom_fields/index.js @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2022-2025 CERN. + * SPDX-License-Identifier: MIT + */ + export { CustomFields } from "./CustomFields"; export { SubjectAutocompleteDropdown } from "./SubjectAutocompleteDropdown"; export { default as DiscoverFieldsSection } from "./DiscoverFieldsSection"; diff --git a/src/lib/forms/widgets/index.js b/src/lib/forms/widgets/index.js index 9d345d1c..c360e8f4 100644 --- a/src/lib/forms/widgets/index.js +++ b/src/lib/forms/widgets/index.js @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2022 CERN. + * SPDX-License-Identifier: MIT + */ + export * from "./custom_fields"; export * from "./loader"; export * from "./select"; diff --git a/src/lib/forms/widgets/loader.js b/src/lib/forms/widgets/loader.js index 8e8106f0..1bd52dc0 100644 --- a/src/lib/forms/widgets/loader.js +++ b/src/lib/forms/widgets/loader.js @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2022-2025 CERN. + * SPDX-License-Identifier: MIT + */ + import React from "react"; /** Import function to load widget either from a specific path or local widgets diff --git a/src/lib/forms/widgets/select/AutocompleteDropdown.js b/src/lib/forms/widgets/select/AutocompleteDropdown.js index 5b54f1eb..77ec0b70 100644 --- a/src/lib/forms/widgets/select/AutocompleteDropdown.js +++ b/src/lib/forms/widgets/select/AutocompleteDropdown.js @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2022-2025 CERN. + * SPDX-License-Identifier: MIT + */ + import React, { Component } from "react"; import PropTypes from "prop-types"; diff --git a/src/lib/forms/widgets/select/Dropdown.js b/src/lib/forms/widgets/select/Dropdown.js index 3efdb6d0..cb571e91 100644 --- a/src/lib/forms/widgets/select/Dropdown.js +++ b/src/lib/forms/widgets/select/Dropdown.js @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2022-2026 CERN. + * SPDX-License-Identifier: MIT + */ + import React, { Component } from "react"; import PropTypes from "prop-types"; import { FieldLabel } from "../../FieldLabel"; diff --git a/src/lib/forms/widgets/select/index.js b/src/lib/forms/widgets/select/index.js index e2a26307..aa4db474 100644 --- a/src/lib/forms/widgets/select/index.js +++ b/src/lib/forms/widgets/select/index.js @@ -1,2 +1,7 @@ +/* + * SPDX-FileCopyrightText: 2022-2025 CERN. + * SPDX-License-Identifier: MIT + */ + export { AutocompleteDropdown } from "./AutocompleteDropdown"; export { Dropdown } from "./Dropdown"; diff --git a/src/lib/forms/widgets/text/BooleanCheckbox.js b/src/lib/forms/widgets/text/BooleanCheckbox.js index d2399f21..e334d587 100644 --- a/src/lib/forms/widgets/text/BooleanCheckbox.js +++ b/src/lib/forms/widgets/text/BooleanCheckbox.js @@ -1,9 +1,8 @@ -// This file is part of React-Invenio-Forms -// Copyright (C) 2020 CERN. -// Copyright (C) 2020 Northwestern University. -// -// React-Invenio-Forms 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-FileCopyrightText: 2020 Northwestern University. + * SPDX-License-Identifier: MIT + */ import PropTypes from "prop-types"; import React from "react"; diff --git a/src/lib/forms/widgets/text/Input.js b/src/lib/forms/widgets/text/Input.js index a5b21b79..26f44b2e 100644 --- a/src/lib/forms/widgets/text/Input.js +++ b/src/lib/forms/widgets/text/Input.js @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2022-2025 CERN. + * SPDX-License-Identifier: MIT + */ + import React, { Component } from "react"; import PropTypes from "prop-types"; import { FieldLabel } from "../../FieldLabel"; diff --git a/src/lib/forms/widgets/text/MultiInput.js b/src/lib/forms/widgets/text/MultiInput.js index 3f6053cc..3de0645e 100644 --- a/src/lib/forms/widgets/text/MultiInput.js +++ b/src/lib/forms/widgets/text/MultiInput.js @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2022-2025 CERN. + * SPDX-License-Identifier: MIT + */ + import React, { useState } from "react"; import PropTypes from "prop-types"; import { useFormikContext, getIn } from "formik"; diff --git a/src/lib/forms/widgets/text/NumberInput.js b/src/lib/forms/widgets/text/NumberInput.js index 18c5eb0c..ad53db1b 100644 --- a/src/lib/forms/widgets/text/NumberInput.js +++ b/src/lib/forms/widgets/text/NumberInput.js @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2022-2025 CERN. + * SPDX-License-Identifier: MIT + */ + import React from "react"; import { showHideOverridableWithDynamicId } from "../../fieldComponents"; import { InputComponent } from "./Input"; diff --git a/src/lib/forms/widgets/text/RichInput.js b/src/lib/forms/widgets/text/RichInput.js index 83bcbc7d..5ef09d3d 100644 --- a/src/lib/forms/widgets/text/RichInput.js +++ b/src/lib/forms/widgets/text/RichInput.js @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2022-2025 CERN. + * SPDX-License-Identifier: MIT + */ + import React, { Component } from "react"; import PropTypes from "prop-types"; import { FieldLabel } from "../../FieldLabel"; diff --git a/src/lib/forms/widgets/text/TextArea.js b/src/lib/forms/widgets/text/TextArea.js index 4d3d96e7..2b315a1e 100644 --- a/src/lib/forms/widgets/text/TextArea.js +++ b/src/lib/forms/widgets/text/TextArea.js @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2022-2025 CERN. + * SPDX-License-Identifier: MIT + */ + import React, { Component } from "react"; import PropTypes from "prop-types"; import { FieldLabel } from "../../FieldLabel"; diff --git a/src/lib/forms/widgets/text/index.js b/src/lib/forms/widgets/text/index.js index 30f8b9b1..40e9a713 100644 --- a/src/lib/forms/widgets/text/index.js +++ b/src/lib/forms/widgets/text/index.js @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2022-2025 CERN. + * SPDX-License-Identifier: MIT + */ + export { RichInput } from "./RichInput"; export { TextArea } from "./TextArea"; // InputComponent is exported too so other custom field implementations (e.g. in invenio-rdm-records) can diff --git a/src/lib/index.js b/src/lib/index.js index e2eac058..54b83def 100644 --- a/src/lib/index.js +++ b/src/lib/index.js @@ -1,9 +1,8 @@ -// This file is part of React-Invenio-Forms -// Copyright (C) 2020 CERN. -// Copyright (C) 2020 Northwestern University. -// -// React-Invenio-Forms 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-FileCopyrightText: 2020 Northwestern University. + * SPDX-License-Identifier: MIT + */ export * from "./elements"; export * from "./forms"; diff --git a/src/lib/locale/RelativeTime.js b/src/lib/locale/RelativeTime.js index 3545d359..d375c790 100644 --- a/src/lib/locale/RelativeTime.js +++ b/src/lib/locale/RelativeTime.js @@ -1,8 +1,7 @@ -// This file is part of React-Invenio-Forms -// Copyright (C) 2023 CERN. -// -// React-Invenio-Forms 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: 2023 CERN. + * SPDX-License-Identifier: MIT + */ import { DateTime } from "luxon"; diff --git a/src/lib/locale/index.js b/src/lib/locale/index.js index 4c3f2827..2848ce16 100644 --- a/src/lib/locale/index.js +++ b/src/lib/locale/index.js @@ -1 +1,6 @@ +/* + * SPDX-FileCopyrightText: 2023 CERN. + * SPDX-License-Identifier: MIT + */ + export { toRelativeTime } from "./RelativeTime"; diff --git a/src/lib/utils/dropdownOptionsGenerator.js b/src/lib/utils/dropdownOptionsGenerator.js index c719fac9..3ce175ac 100644 --- a/src/lib/utils/dropdownOptionsGenerator.js +++ b/src/lib/utils/dropdownOptionsGenerator.js @@ -1,8 +1,7 @@ -// This file is part of React-Invenio-Forms -// Copyright (C) 2024 CERN. -// -// React-Invenio-Forms 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: 2024 CERN. + * SPDX-License-Identifier: MIT + */ import React from "react"; diff --git a/src/lib/utils/humanReadableBytes.js b/src/lib/utils/humanReadableBytes.js index b5a0059c..d64153a1 100644 --- a/src/lib/utils/humanReadableBytes.js +++ b/src/lib/utils/humanReadableBytes.js @@ -1,10 +1,9 @@ -// This file is part of React-Invenio-Forms -// Copyright (C) 2020 CERN. -// Copyright (C) 2020 Northwestern University. -// Copyright (C) 2022 TU Wien. -// -// React-Invenio-Forms 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-FileCopyrightText: 2020 Northwestern University. + * SPDX-FileCopyrightText: 2022 TU Wien. + * SPDX-License-Identifier: MIT + */ import _isNumber from "lodash/isNumber"; diff --git a/src/lib/utils/index.js b/src/lib/utils/index.js index 251526f5..08304660 100644 --- a/src/lib/utils/index.js +++ b/src/lib/utils/index.js @@ -1,3 +1,8 @@ +/* + * SPDX-FileCopyrightText: 2023-2026 CERN. + * SPDX-License-Identifier: MIT + */ + export { humanReadableBytes } from "./humanReadableBytes"; export { dropdownOptionsGenerator } from "./dropdownOptionsGenerator"; export { diff --git a/src/lib/utils/optionHelpers.js b/src/lib/utils/optionHelpers.js index aff0d56a..4aa871f7 100644 --- a/src/lib/utils/optionHelpers.js +++ b/src/lib/utils/optionHelpers.js @@ -1,9 +1,8 @@ -// This file is part of React-Invenio-Forms -// Copyright (C) 2020 CERN. -// Copyright (C) 2020 Northwestern University. -// -// React-Invenio-Forms 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-FileCopyrightText: 2020 Northwestern University. + * SPDX-License-Identifier: MIT + */ import _uniqBy from "lodash/uniqBy"; diff --git a/src/setupTests.js b/src/setupTests.js index f35400f4..87048b30 100644 --- a/src/setupTests.js +++ b/src/setupTests.js @@ -1,8 +1,7 @@ -// This file is part of React-Invenio-Forms -// Copyright (C) 2020 CERN. -// Copyright (C) 2020 Northwestern University. -// -// React-Invenio-Forms 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-FileCopyrightText: 2020 Northwestern University. + * SPDX-License-Identifier: MIT + */ import "@testing-library/jest-dom/extend-expect";