-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
63 changed files
with
1,955 additions
and
221 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import React from 'react' | ||
import { number } from 'prop-types' | ||
import Divider from '@mui/material/Divider' | ||
import Card from '@mui/material/Card' | ||
import CardContent from '@mui/material/CardContent' | ||
import ReactMarkdown from 'react-markdown' | ||
|
||
import { WineRecipeList } from '../WineRecipeList/WineRecipeList' | ||
|
||
import { TabPanel } from './TabPanel' | ||
|
||
export const WinemakingTabPanel = ({ index, currentTab }) => ( | ||
<TabPanel value={currentTab} index={index}> | ||
<WineRecipeList /> | ||
<Divider /> | ||
<ul className="card-list"> | ||
<li> | ||
<Card> | ||
<CardContent> | ||
<ReactMarkdown | ||
{...{ | ||
linkTarget: '_blank', | ||
className: 'markdown', | ||
source: | ||
'Grapes can be made into wine. Wine becomes very valuable in time and never spoils.', | ||
}} | ||
/> | ||
</CardContent> | ||
</Card> | ||
</li> | ||
</ul> | ||
</TabPanel> | ||
) | ||
|
||
WinemakingTabPanel.propTypes = { | ||
currentTab: number.isRequired, | ||
index: number.isRequired, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,35 @@ | ||
/** | ||
* @typedef {import('../../').farmhand.item} farmhand.item | ||
* @typedef {import('../../').farmhand.levelEntitlements} farmhand.levelEntitlements | ||
* @typedef {import('./Farmhand').farmhand.state} farmhand.state | ||
*/ | ||
import { createContext } from 'react' | ||
|
||
const FarmhandContext = createContext() | ||
// eslint-disable-next-line no-unused-vars | ||
import uiEventHandlers from '../../handlers/ui-events' | ||
|
||
/** | ||
* @type {import('react').Context<{ | ||
* gameState: farmhand.state & { | ||
* blockInput: boolean, | ||
* features: Record<string, boolean>, | ||
* fieldToolInventory: farmhand.item[], | ||
* isChatAvailable: boolean, | ||
* levelEntitlements: farmhand.levelEntitlements, | ||
* plantableCropInventory: farmhand.item[], | ||
* playerInventory: farmhand.item[], | ||
* playerInventoryQuantities: Record<string, number>, | ||
* shopInventory: farmhand.item[], | ||
* viewList: string[], | ||
* viewTitle: string, | ||
* } | ||
* handlers: uiEventHandlers & { debounced: uiEventHandlers } | ||
* }>} | ||
*/ | ||
// @ts-expect-error | ||
const FarmhandContext = createContext({ | ||
gameState: {}, | ||
handlers: {}, | ||
}) | ||
|
||
export default FarmhandContext |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,9 @@ body | |
|
||
@mixin markdown-styles | ||
.markdown | ||
p | ||
margin: 1em 0 | ||
|
||
ul li | ||
list-style: disc | ||
margin-left: 1em | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.