Skip to content

Commit

Permalink
docs: add copyright notices + fix spacing (#269)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulschreiber authored Jan 31, 2024
1 parent e17b7e9 commit 947e2fd
Show file tree
Hide file tree
Showing 19 changed files with 131 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/account/accountService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
1 change: 1 addition & 0 deletions src/account/accountSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
1 change: 1 addition & 0 deletions src/account/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
1 change: 1 addition & 0 deletions src/collaboration/membershipsUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
17 changes: 17 additions & 0 deletions src/config.ts
Original file line number Diff line number Diff line change
@@ -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 = {
Expand Down
1 change: 1 addition & 0 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<
Expand Down
1 change: 1 addition & 0 deletions src/monitoring/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
1 change: 1 addition & 0 deletions src/notifications/notificationsSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
17 changes: 17 additions & 0 deletions src/selectors.test.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
17 changes: 17 additions & 0 deletions src/selectors.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
1 change: 1 addition & 0 deletions src/store/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions src/store/utils.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
1 change: 1 addition & 0 deletions src/store/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions src/terrasoApi/api.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
1 change: 1 addition & 0 deletions src/terrasoApi/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
17 changes: 17 additions & 0 deletions src/tests/config.ts
Original file line number Diff line number Diff line change
@@ -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();
Expand Down
17 changes: 17 additions & 0 deletions src/tests/setup.ts
Original file line number Diff line number Diff line change
@@ -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';
17 changes: 17 additions & 0 deletions src/tests/utils.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
17 changes: 17 additions & 0 deletions src/utils.ts
Original file line number Diff line number Diff line change
@@ -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 = <K extends string | number, V>(entries: [K, V][]) =>
Object.fromEntries(entries) as Record<K, V>;

Expand Down

0 comments on commit 947e2fd

Please sign in to comment.