-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(vite): Make online play work (#509)
* Re-revert Vite migration * fix(api): use module import syntax * fix(vite): treat .js as .jsx files * fix(api): don't treat project as a module * fix(config): use VITE_API_ROOT * Revert "fix(api): don't treat project as a module" This reverts commit 2c86ab0. * chore(eslint): enable import/extensions rule * fix(ci): run lint * fix(project): [wip] use fully resolved import paths * fix(api): use module exports * fix(imports): allow virtual:pwa-register/react * fix(api): use nullish check for import.meta.env * fix(scripts): make print:crops work
- Loading branch information
1 parent
78bfc8a
commit 265e77a
Showing
435 changed files
with
35,099 additions
and
32,656 deletions.
There are no files selected for viewing
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,6 +1,6 @@ | ||
BROWSER=none | ||
REACT_APP_API_ROOT=https://farmhand.vercel.app/ | ||
REACT_APP_NAME=$npm_package_name | ||
REACT_APP_VERSION=$npm_package_version | ||
REACT_APP_TURN_USERNAME= | ||
REACT_APP_TURN_CREDENTIAL= | ||
VITE_API_ROOT=https://farmhand.vercel.app/ | ||
VITE_NAME=$npm_package_name | ||
VITE_FARMHAND_PACKAGE_VERSION=$npm_package_version | ||
VITE_TURN_USERNAME= | ||
VITE_TURN_CREDENTIAL= |
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 |
---|---|---|
@@ -1,9 +1,13 @@ | ||
{ | ||
"globals": { | ||
"vitest": true | ||
}, | ||
"extends": ["react-app"], | ||
"rules": { | ||
"import/order": [ | ||
"error", | ||
{ "newlines-between": "always-and-inside-groups" } | ||
] | ||
], | ||
"import/extensions": ["error", "always"] | ||
} | ||
} |
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 |
---|---|---|
|
@@ -4,5 +4,6 @@ build | |
Session.vim | ||
.DS_Store | ||
.idea | ||
coverage | ||
|
||
.vercel |
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
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,34 @@ | ||
/** | ||
* @type {Partial<import('vite-plugin-pwa').ManifestOptions>} | ||
*/ | ||
export const manifest = { | ||
short_name: 'Farmhand', | ||
name: 'Farmhand', | ||
icons: [ | ||
{ | ||
src: 'favicon.ico', | ||
sizes: '64x64 32x32 24x24 16x16', | ||
type: 'image/x-icon', | ||
}, | ||
{ | ||
src: 'logo192.png', | ||
type: 'image/png', | ||
sizes: '192x192', | ||
}, | ||
{ | ||
src: 'logo512.png', | ||
type: 'image/png', | ||
sizes: '512x512', | ||
}, | ||
{ | ||
src: 'logoMaskable.png', | ||
type: 'image/png', | ||
purpose: 'maskable', | ||
sizes: '731x731', | ||
}, | ||
], | ||
start_url: './index.html', | ||
display: 'standalone', | ||
theme_color: '#ffe3a1', | ||
background_color: '#ffffff', | ||
} |
Oops, something went wrong.