Skip to content

Commit

Permalink
fixup! fix(project): [wip] use fully resolved import paths
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyckahn committed Sep 1, 2024
1 parent 5270dfb commit e35259e
Show file tree
Hide file tree
Showing 17 changed files with 43 additions and 43 deletions.
4 changes: 2 additions & 2 deletions src/components/AchievementsView/AchievementsView.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import { object } from 'prop-types'
import Divider from '@mui/material/Divider/index.js'

import FarmhandContext from '../Farmhand/Farmhand.context.js'
import ProgressBar from '../ProgressBar'
import Achievement from '../Achievement'
import ProgressBar from '../ProgressBar/index.js'
import Achievement from '../Achievement/index.js'
import achievements from '../../data/achievements.js'
import { memoize } from '../../utils/memoize.js'

Expand Down
2 changes: 1 addition & 1 deletion src/components/Cellar/Keg.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { getKegValue } from '../../utils/getKegValue.js'
import { moneyString } from '../../utils/moneyString.js'
import { getSalePriceMultiplier } from '../../utils/index.js'
import { FERMENTED_CROP_NAME } from '../../templates.js'
import AnimatedNumber from '../AnimatedNumber'
import AnimatedNumber from '../AnimatedNumber/index.js'

import './Keg.sass'
import { getKegSpoilageRate } from '../../utils/getKegSpoilageRate.js'
Expand Down
4 changes: 2 additions & 2 deletions src/components/ContextPane/ContextPane.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React, { memo } from 'react'
import { array, string } from 'prop-types'

import FarmhandContext from '../Farmhand/Farmhand.context.js'
import Inventory from '../Inventory'
import CowPenContextMenu from '../CowPenContextMenu'
import Inventory from '../Inventory/index.js'
import CowPenContextMenu from '../CowPenContextMenu/index.js'
import { stageFocusType } from '../../enums.js'

import './ContextPane.sass'
Expand Down
2 changes: 1 addition & 1 deletion src/components/CowCard/Subheader/Subheader.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {
} from '../../../utils/index.js'
import { memoize } from '../../../utils/memoize.js'
import { huggingMachine } from '../../../data/items.js'
import Bloodline from '../Bloodline'
import Bloodline from '../Bloodline/index.js'

import './Subheader.sass'

Expand Down
2 changes: 1 addition & 1 deletion src/components/Elements/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import styled from '@mui/material/styles/styled'
import styled from '@mui/material/styles/styled.js'

// NOTE: Elements in this file are intended to make standard DOM elements easy
// to style with MUI's sx prop.
Expand Down
2 changes: 1 addition & 1 deletion src/components/Farmhand/Farmhand.context.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import { createContext } from 'react'

// eslint-disable-next-line no-unused-vars
import uiEventHandlers from '../../handlers/ui-events'
import uiEventHandlers from '../../handlers/ui-events.js'

/**
* @type {import('react').Context<{
Expand Down
28 changes: 14 additions & 14 deletions src/components/Farmhand/Farmhand.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,27 +41,27 @@ import throttle from 'lodash.throttle'
import classNames from 'classnames'
import { object } from 'prop-types'

import eventHandlers from '../../handlers/ui-events'
import eventHandlers from '../../handlers/ui-events.js'
import {
handlePeerMetadataRequest,
handleCowTradeRequest,
handleCowTradeRequestAccept,
handleCowTradeRequestReject,
} from '../../handlers/peer-events'
} from '../../handlers/peer-events.js'
import * as reducers from '../../game-logic/reducers/index.js'
// This must be imported here so that it can be overridden by component styles.
import './Farmhand.sass'

import AppBar from '../AppBar'
import Navigation from '../Navigation'
import ContextPane from '../ContextPane'
import Stage from '../Stage'
import AppBar from '../AppBar/index.js'
import Navigation from '../Navigation/index.js'
import ContextPane from '../ContextPane/index.js'
import Stage from '../Stage/index.js'
import NotificationSystem, {
snackbarProviderContentCallback,
} from '../NotificationSystem'
import DebugMenu from '../DebugMenu'
import UpdateNotifier from '../UpdateNotifier'
import theme from '../../mui-theme'
} from '../NotificationSystem/index.js'
import DebugMenu from '../DebugMenu/index.js'
import UpdateNotifier from '../UpdateNotifier/index.js'
import theme from '../../mui-theme.js'
import { levelAchieved } from '../../utils/levelAchieved.js'
import {
computeMarketPositions,
Expand All @@ -82,7 +82,7 @@ import {
import { noop } from '../../utils/noop.js'
import { getLevelEntitlements } from '../../utils/getLevelEntitlements.js'
import { memoize } from '../../utils/memoize.js'
import { getData, postData } from '../../fetch-utils'
import { getData, postData } from '../../fetch-utils.js'
import { itemsMap, recipesMap } from '../../data/maps.js'
import {
dialogView,
Expand Down Expand Up @@ -118,13 +118,13 @@ import {
REQUESTED_COW_TRADE_UNAVAILABLE,
SERVER_ERROR,
} from '../../strings.js'
import { endpoints, features, rtcConfig, trackerUrls } from '../../config'
import { endpoints, features, rtcConfig, trackerUrls } from '../../config.js'

import { scarecrow } from '../../data/items.js'

import { ChatRoom } from '../ChatRoom'
import { ChatRoom } from '../ChatRoom/index.js'

import { getInventoryQuantities } from './helpers/getInventoryQuantities'
import { getInventoryQuantities } from './helpers/getInventoryQuantities.js'
import FarmhandContext from './Farmhand.context.js'
import { FarmhandReducers } from './FarmhandReducers.js'

Expand Down
4 changes: 2 additions & 2 deletions src/components/FermentationRecipeList/FermentationRecipe.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ import { items } from '../../img/index.js'
import { getMaxYieldOfFermentationRecipe } from '../../utils/getMaxYieldOfFermentationRecipe.js'
import { getSaltRequirementsForFermentationRecipe } from '../../utils/getSaltRequirementsForFermentationRecipe.js'
import { FERMENTED_CROP_NAME } from '../../templates.js'
import QuantityInput from '../QuantityInput'
import QuantityInput from '../QuantityInput/index.js'
import FarmhandContext from '../Farmhand/Farmhand.context.js'
import { itemsMap } from '../../data/maps.js'
import { cellarService } from '../../services/cellar.js'
import { getInventoryQuantityMap } from '../../utils/getInventoryQuantityMap.js'
import { integerString } from '../../utils/index.js'
import AnimatedNumber from '../AnimatedNumber'
import AnimatedNumber from '../AnimatedNumber/index.js'

import './FermentationRecipe.sass'

Expand Down
6 changes: 3 additions & 3 deletions src/components/Field/Field.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ import { GlobalHotKeys } from 'react-hotkeys'
import classNames from 'classnames'

import FarmhandContext from '../Farmhand/Farmhand.context.js'
import Plot from '../Plot'
import QuickSelect from '../QuickSelect'
import Plot from '../Plot/index.js'
import QuickSelect from '../QuickSelect/index.js'
import { fieldMode } from '../../enums.js'
import tools from '../../data/tools'
import tools from '../../data/tools.js'
import { levelAchieved } from '../../utils/levelAchieved.js'
import { doesInventorySpaceRemain, nullArray } from '../../utils/index.js'
import { getLevelEntitlements } from '../../utils/getLevelEntitlements.js'
Expand Down
2 changes: 1 addition & 1 deletion src/components/Home/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { STANDARD_LOAN_AMOUNT } from '../../constants.js'
import { stageFocusType } from '../../enums.js'
import { isDecember } from '../../utils/index.js'
import { memoize } from '../../utils/memoize.js'
import Achievement from '../Achievement'
import Achievement from '../Achievement/index.js'

import { SnowBackground } from './SnowBackground.js'
import './Home.sass'
Expand Down
2 changes: 1 addition & 1 deletion src/components/Home/SnowBackground.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import useWindowSize from 'react-use/lib/useWindowSize'
import useWindowSize from 'react-use/lib/useWindowSize.js'
import Confetti from 'react-confetti'

import { random } from '../../common/utils.js'
Expand Down
2 changes: 1 addition & 1 deletion src/components/Inventory/Inventory.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { array } from 'prop-types'
import Divider from '@mui/material/Divider/index.js'

import FarmhandContext from '../Farmhand/Farmhand.context.js'
import Item from '../Item'
import Item from '../Item/index.js'
import { itemsMap } from '../../data/maps.js'
import { enumify, itemType } from '../../enums.js'
import { sortItems } from '../../utils/index.js'
Expand Down
2 changes: 1 addition & 1 deletion src/components/Inventory/Inventory.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { shallow } from 'enzyme'

import Item from '../Item'
import Item from '../Item/index.js'
import { testItem } from '../../test-utils/index.js'
import { sortItems } from '../../utils/index.js'
import { carrot, carrotSeed, pumpkinSeed } from '../../data/crops/index.js'
Expand Down
4 changes: 2 additions & 2 deletions src/components/Item/Item.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ import {
integerString,
} from '../../utils/index.js'
import { getCropLifecycleDuration } from '../../utils/getCropLifecycleDuration.js'
import QuantityInput from '../QuantityInput'
import AnimatedNumber from '../AnimatedNumber'
import QuantityInput from '../QuantityInput/index.js'
import AnimatedNumber from '../AnimatedNumber/index.js'

import './Item.sass'

Expand Down
16 changes: 8 additions & 8 deletions src/components/Navigation/Navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ import {
} from '../../constants.js'
import { MAX_ROOM_NAME_LENGTH } from '../../common/constants.js'

import AccountingView from '../AccountingView'
import AchievementsView from '../AchievementsView'
import LogView from '../LogView'
import OnlinePeersView from '../OnlinePeersView'
import PriceEventView from '../PriceEventView'
import SettingsView from '../SettingsView'
import StatsView from '../StatsView'
import KeybindingsView from '../KeybindingsView'
import AccountingView from '../AccountingView/index.js'
import AchievementsView from '../AchievementsView/index.js'
import LogView from '../LogView/index.js'
import OnlinePeersView from '../OnlinePeersView/index.js'
import PriceEventView from '../PriceEventView/index.js'
import SettingsView from '../SettingsView/index.js'
import StatsView from '../StatsView/index.js'
import KeybindingsView from '../KeybindingsView/index.js'

import DayAndProgressContainer from './DayAndProgressContainer.js'

Expand Down
2 changes: 1 addition & 1 deletion src/components/OnlinePeersView/OnlinePeer/OnlinePeer.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Card from '@mui/material/Card/index.js'
import CardContent from '@mui/material/CardContent/index.js'
import CardHeader from '@mui/material/CardHeader/index.js'

import CowCard from '../../CowCard'
import CowCard from '../../CowCard/index.js'

import { moneyString } from '../../../utils/moneyString.js'
import { levelAchieved } from '../../../utils/levelAchieved.js'
Expand Down
2 changes: 1 addition & 1 deletion src/components/PriceEventView/PriceEventView.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Divider from '@mui/material/Divider/index.js'

import { itemsMap } from '../../data/maps.js'
import FarmhandContext from '../Farmhand/Farmhand.context.js'
import Item from '../Item'
import Item from '../Item/index.js'

const PriceEventView = ({ priceCrashes, priceSurges }) => (
<div className="PriceEventView">
Expand Down

0 comments on commit e35259e

Please sign in to comment.