Skip to content

Commit

Permalink
refactor: remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
mlluciano committed Jun 13, 2024
1 parent baec823 commit 75b6463
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 12 deletions.
2 changes: 1 addition & 1 deletion config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ var path = require('path');
var _ = require('lodash');
var config = {
env: process.env.NODE_ENV,
api: 'https://search.idigbio.org/v2/',
api: 'http://localhost:19196/v2/',
media: 'https://api.idigbio.org/',
gbifApi: 'https://api.gbif.org/v1/',
secret: process.env.IDB_SECRET || "imnotsecret",
Expand Down
2 changes: 1 addition & 1 deletion public/client/js/react/src/collections.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

import React, {useState} from 'react'
import React from 'react'
import Griddle from 'griddle-react'
import helpers from '../../lib/helpers'

Expand Down
1 change: 0 additions & 1 deletion public/client/js/react/src/media.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import dwc from '../../lib/dwc_fields';
import _ from 'lodash';
import idbapi from '../../lib/idbapi';
import Provider from './shared/provider';
import Raw from './shared/raw';
import Title from './shared/title';


Expand Down
3 changes: 0 additions & 3 deletions public/client/js/react/src/recordset.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import React, {useState} from 'react'
import fields from '../../lib/fields'
import _ from 'lodash'
import dqFlags from '../../lib/dq_flags'
const keys = Object.keys(fields.byDataTerm);
import Contacts from "./shared/contacts";
import Raw from "./shared/raw"
import 'tablesorter/dist/css/theme.blue.min.css'

var missing={};
Expand Down
1 change: 0 additions & 1 deletion public/client/js/react/src/search/map.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React, { useState, useEffect, useRef } from 'react';
import IDBMap from '../../../lib/mapper';
import * as helpers from '../../../lib/helpers';

let map; // Declare map variable

Expand Down
2 changes: 1 addition & 1 deletion public/client/js/react/src/search/results.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, {useState, useEffect, useMemo, useCallback, useRef, memo} from 'react';
import React, {useState, useEffect, useCallback, useRef, memo} from 'react';
import idbapi from '../../../lib/idbapi';
import queryBuilder from '../../../lib/querybuilder';

Expand Down
1 change: 0 additions & 1 deletion public/client/js/react/src/shared/stats_charts.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React, {useEffect, useState, useRef} from 'react'
import moment from 'moment'
import Datetime from 'react-datetime'
import _ from 'lodash'
import idbapi from '../../../lib/idbapi'

import C3Chart from 'react-c3js';
import 'c3/c3.css';
Expand Down
4 changes: 1 addition & 3 deletions public/client/js/record.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import ReactDOM from 'react-dom';
import React from 'react';
import async from 'async';
import idbapi from './lib/idbapi';
import L from 'leaflet';
require('leaflet-sleep');
import RecordPage from './react/src/record'
import MediaPage from "./react/src/media";


var pubname = '';
//Converted to csr due to ssr mismatch + ssr is not really needed here anyway.
Expand Down

0 comments on commit 75b6463

Please sign in to comment.