diff --git a/src/account/accountService.ts b/src/account/accountService.ts index 2c754dc2..4b3f0819 100644 --- a/src/account/accountService.ts +++ b/src/account/accountService.ts @@ -14,6 +14,7 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see https://www.gnu.org/licenses/. */ + import _ from 'lodash/fp'; import { User } from 'terraso-client-shared/account/accountSlice'; import { getUserEmail } from 'terraso-client-shared/account/auth'; diff --git a/src/account/accountSlice.ts b/src/account/accountSlice.ts index 93b4adc0..45d60723 100644 --- a/src/account/accountSlice.ts +++ b/src/account/accountSlice.ts @@ -14,6 +14,7 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see https://www.gnu.org/licenses/. */ + import { createSlice } from '@reduxjs/toolkit'; import _ from 'lodash/fp'; import * as accountService from 'terraso-client-shared/account/accountService'; diff --git a/src/account/auth.ts b/src/account/auth.ts index 3aaf26e8..2c33ae16 100644 --- a/src/account/auth.ts +++ b/src/account/auth.ts @@ -14,6 +14,7 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see https://www.gnu.org/licenses/. */ + import { jwtDecode } from 'jwt-decode'; import { UNAUTHENTICATED } from 'terraso-client-shared/account/authConstants'; import { getAPIConfig } from 'terraso-client-shared/config'; diff --git a/src/collaboration/membershipsUtils.ts b/src/collaboration/membershipsUtils.ts index 966099fc..415bbbaa 100644 --- a/src/collaboration/membershipsUtils.ts +++ b/src/collaboration/membershipsUtils.ts @@ -14,6 +14,7 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see https://www.gnu.org/licenses/. */ + import _ from 'lodash/fp'; import { User } from 'terraso-client-shared/account/accountSlice'; import type { diff --git a/src/config.ts b/src/config.ts index cdedc674..de243fe6 100644 --- a/src/config.ts +++ b/src/config.ts @@ -1,3 +1,20 @@ +/* + * Copyright © 2023 Technology Matters + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import type { Severity } from 'terraso-client-shared/monitoring/logger'; export type TerrasoAPIConfig = { diff --git a/src/constants.ts b/src/constants.ts index 01bd57b7..64a2f157 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -14,6 +14,7 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see https://www.gnu.org/licenses/. */ + import { DepthInterval } from 'terraso-client-shared/graphqlSchema/graphql'; export const DEPTH_INTERVAL_PRESETS: Record< diff --git a/src/monitoring/logger.ts b/src/monitoring/logger.ts index 97991bf6..427baf9c 100644 --- a/src/monitoring/logger.ts +++ b/src/monitoring/logger.ts @@ -14,6 +14,7 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see https://www.gnu.org/licenses/. */ + import _ from 'lodash/fp'; import { getAPIConfig } from 'terraso-client-shared/config'; diff --git a/src/notifications/notificationsSlice.ts b/src/notifications/notificationsSlice.ts index 9d23a0e0..55ad442f 100644 --- a/src/notifications/notificationsSlice.ts +++ b/src/notifications/notificationsSlice.ts @@ -14,6 +14,7 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see https://www.gnu.org/licenses/. */ + import { createSlice } from '@reduxjs/toolkit'; import _ from 'lodash/fp'; import { v4 as uuidv4 } from 'uuid'; diff --git a/src/selectors.test.ts b/src/selectors.test.ts index 0473487c..475f9080 100644 --- a/src/selectors.test.ts +++ b/src/selectors.test.ts @@ -1,3 +1,20 @@ +/* + * Copyright © 2023-2024 Technology Matters + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import { merge } from 'lodash/fp'; import { initialState as accountInitialState, diff --git a/src/selectors.ts b/src/selectors.ts index c49e2fbd..c9498489 100644 --- a/src/selectors.ts +++ b/src/selectors.ts @@ -1,3 +1,20 @@ +/* + * Copyright © 2023-2024 Technology Matters + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import { createSelector } from '@reduxjs/toolkit'; import { User } from 'terraso-client-shared/account/accountSlice'; import { DEPTH_INTERVAL_PRESETS } from 'terraso-client-shared/constants'; diff --git a/src/store/store.ts b/src/store/store.ts index ecdea8a9..c2cbe5b7 100644 --- a/src/store/store.ts +++ b/src/store/store.ts @@ -14,6 +14,7 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see https://www.gnu.org/licenses/. */ + import 'terraso-client-shared/account/accountSlice'; // necessary to avoid circular dependency issue import { diff --git a/src/store/utils.test.tsx b/src/store/utils.test.tsx index 588b3bca..e34b1d04 100644 --- a/src/store/utils.test.tsx +++ b/src/store/utils.test.tsx @@ -14,6 +14,7 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see https://www.gnu.org/licenses/. */ + import 'terraso-client-shared/tests/utils'; import React from 'react'; diff --git a/src/store/utils.ts b/src/store/utils.ts index cc6304d5..bcb2a0a7 100644 --- a/src/store/utils.ts +++ b/src/store/utils.ts @@ -14,6 +14,7 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see https://www.gnu.org/licenses/. */ + import { useEffect } from 'react'; import { AnyAction, diff --git a/src/terrasoApi/api.test.ts b/src/terrasoApi/api.test.ts index 404bf84c..3a60b6f4 100644 --- a/src/terrasoApi/api.test.ts +++ b/src/terrasoApi/api.test.ts @@ -14,6 +14,7 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see https://www.gnu.org/licenses/. */ + import { graphql } from 'terraso-client-shared/graphqlSchema'; import * as terrasoApi from 'terraso-client-shared/terrasoApi/api'; import { mockLogger } from 'terraso-client-shared/tests/config'; diff --git a/src/terrasoApi/api.ts b/src/terrasoApi/api.ts index 43a6c65e..c56d9307 100644 --- a/src/terrasoApi/api.ts +++ b/src/terrasoApi/api.ts @@ -14,6 +14,7 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see https://www.gnu.org/licenses/. */ + import { DocumentTypeDecoration } from '@graphql-typed-document-node/core'; import _ from 'lodash/fp'; import { getAuthHeaders } from 'terraso-client-shared/account/auth'; diff --git a/src/tests/config.ts b/src/tests/config.ts index 7614b0cc..f9def2fa 100644 --- a/src/tests/config.ts +++ b/src/tests/config.ts @@ -1,3 +1,20 @@ +/* + * Copyright © 2023 Technology Matters + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import { setAPIConfig } from 'terraso-client-shared/config'; export const mockLogger = jest.fn(); diff --git a/src/tests/setup.ts b/src/tests/setup.ts index 1a733177..a6bf8335 100644 --- a/src/tests/setup.ts +++ b/src/tests/setup.ts @@ -1,2 +1,19 @@ +/* + * Copyright © 2023 Technology Matters + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import '@testing-library/jest-dom'; import 'whatwg-fetch'; diff --git a/src/tests/utils.tsx b/src/tests/utils.tsx index 48386032..126028c3 100644 --- a/src/tests/utils.tsx +++ b/src/tests/utils.tsx @@ -1,3 +1,20 @@ +/* + * Copyright © 2023 Technology Matters + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + import 'terraso-client-shared/tests/config'; import React, { ReactElement } from 'react'; diff --git a/src/utils.ts b/src/utils.ts index 1e3dafe3..915d779d 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -1,3 +1,20 @@ +/* + * Copyright © 2023-2024 Technology Matters + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see https://www.gnu.org/licenses/. + */ + export const fromEntries = (entries: [K, V][]) => Object.fromEntries(entries) as Record;