Skip to content

Commit

Permalink
Fix Merge Issues / Missing MPL headers
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisMart21 committed Aug 13, 2024
1 parent 90db2c6 commit 18b8b6e
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 7 deletions.
3 changes: 2 additions & 1 deletion src/client/app/components/RouteComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import * as React from 'react';
import { IntlProvider } from 'react-intl';
import { RouterProvider, createBrowserRouter } from 'react-router-dom';
import UploadCSVContainer from '../containers/csv/UploadCSVContainer';
import { useAppSelector } from '../redux/reduxHooks';
import { selectSelectedLanguage } from '../redux/slices/appStateSlice';
import LocaleTranslationData from '../translations/data';
Expand All @@ -25,6 +24,8 @@ import { GraphLink } from './router/GraphLinkComponent';
import NotFound from './router/NotFoundOutlet';
import RoleOutlet from './router/RoleOutlet';
import UnitsDetailComponent from './unit/UnitsDetailComponent';
import MetersCSVUploadComponent from './csv/MetersCSVUploadComponent';
import ReadingsCSVUploadComponent from './csv/ReadingsCSVUploadComponent';

/**
* @returns the router component Responsible for client side routing.
Expand Down
3 changes: 3 additions & 0 deletions src/client/app/redux/api/logApi.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
import { LogData } from 'types/redux/logs';
import { baseApi } from './baseApi';

Expand Down
3 changes: 3 additions & 0 deletions src/client/app/redux/api/mapsApi.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
import { pick } from 'lodash';
import * as moment from 'moment';
import { MapDataState, mapsAdapter, mapsInitialState } from '../../redux/entityAdapters';
Expand Down
3 changes: 3 additions & 0 deletions src/client/app/redux/devToolConfig.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
import { DevToolsEnhancerOptions } from '@reduxjs/toolkit';
import { mapsApi } from './api/mapsApi';
import { mapsAdapter, mapsInitialState } from './entityAdapters';
Expand Down
3 changes: 3 additions & 0 deletions src/client/app/redux/entityAdapters.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
import { EntityState, createEntityAdapter } from '@reduxjs/toolkit';
import { ConversionData } from '../types/redux/conversions';
import { GroupData } from '../types/redux/groups';
Expand Down
4 changes: 3 additions & 1 deletion src/client/app/redux/slices/localEditsSlice.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
import { createEntityAdapter } from '@reduxjs/toolkit';
import { PlotMouseEvent } from 'plotly.js';
import { createThunkSlice } from '../../redux/sliceCreators';
Expand Down Expand Up @@ -49,7 +52,6 @@ export const localEditsSlice = createThunkSlice({
// Stripped offerCurrentGPS thunk into a single reducer for simplicity. The only missing functionality are the serverlogs
// Current axios approach doesn't require dispatch, however if moved to rtk will. thunks for this adds complexity
// For simplicity, these logs can instead be tabulated in a middleware.(probably.)
// const map = localEditAdapter.getSelectors().selectById(state.mapEdits, state.calibratingMap);
const map = state.mapEdits.entities[state.calibratingMap];

const point = map.currentPoint;
Expand Down
6 changes: 1 addition & 5 deletions src/client/app/utils/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,13 @@
*/

import ApiBackend from './ApiBackend';
import UploadCSVApi from './UploadCSVApi';
import LogsApi from './LogsApi';

const apiBackend = new ApiBackend();

// All specific backends share the same ApiBackend
const uploadCSVApi = new UploadCSVApi(apiBackend);
const logsApi = new LogsApi(apiBackend);


export {
logsApi,
uploadCSVApi
logsApi
};

0 comments on commit 18b8b6e

Please sign in to comment.