-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #316 from RolnickLab/web-ui-migrate-to-vite
Migrate from CRA -> Vite + update Storybook + update Yarn
- Loading branch information
Showing
115 changed files
with
17,729 additions
and
17,981 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
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,3 @@ | ||
.yarn/releases/** binary | ||
.yarn/plugins/** binary | ||
|
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 +1 @@ | ||
v18.9.1 | ||
v18.12.0 |
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import type { StorybookConfig } from '@storybook/react-vite' | ||
|
||
const config: StorybookConfig = { | ||
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'], | ||
addons: [ | ||
'@storybook/addon-links', | ||
'@storybook/addon-essentials', | ||
'@storybook/addon-interactions', | ||
], | ||
framework: { | ||
name: '@storybook/react-vite', | ||
options: {}, | ||
}, | ||
docs: { | ||
autodocs: 'tag', | ||
}, | ||
} | ||
export default config |
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,18 +1,31 @@ | ||
<!-- Preload some fonts and base CSS --> | ||
<link rel="preload" | ||
href="%PUBLIC_URL%/fonts/AzoSans/AzoSans.otf" | ||
as="font" | ||
type="font/otf" | ||
crossorigin /> | ||
<link rel="preload" | ||
href="%PUBLIC_URL%/fonts/AzoSans/AzoSans-Medium.otf" | ||
as="font" | ||
type="font/otf" | ||
crossorigin /> | ||
<link rel="preload" | ||
href="%PUBLIC_URL%/fonts/AzoSans/AzoSans-Bold.otf" | ||
as="font" | ||
type="font/otf" | ||
crossorigin /> | ||
<link rel="preload" href="%PUBLIC_URL%/index.css" as="style" /> | ||
<link rel="stylesheet" href="%PUBLIC_URL%/index.css" /> | ||
<link | ||
rel="preload" | ||
href="/fonts/AzoSans/AzoSans.otf" | ||
as="font" | ||
type="font/otf" | ||
crossorigin | ||
/> | ||
<link | ||
rel="preload" | ||
href="/fonts/AzoSans/AzoSans-Italic.otf" | ||
as="font" | ||
type="font/otf" | ||
crossorigin | ||
/> | ||
<link | ||
rel="preload" | ||
href="/fonts/AzoSans/AzoSans-Medium.otf" | ||
as="font" | ||
type="font/otf" | ||
crossorigin | ||
/> | ||
<link | ||
rel="preload" | ||
href="/fonts/AzoSans/AzoSans-Bold.otf" | ||
as="font" | ||
type="font/otf" | ||
crossorigin | ||
/> | ||
<link rel="preload" href="/index.css" as="style" /> | ||
<link rel="stylesheet" href="/index.css" /> |
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import type { Preview } from '@storybook/react' | ||
|
||
const preview: Preview = { | ||
parameters: { | ||
actions: { argTypesRegex: '^on[A-Z].*' }, | ||
controls: { | ||
matchers: { | ||
color: /(background|color)$/i, | ||
date: /Date$/i, | ||
}, | ||
}, | ||
}, | ||
} | ||
|
||
export default preview |
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
nodeLinker: node-modules | ||
|
||
yarnPath: .yarn/releases/yarn-berry.cjs |
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,58 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<meta | ||
name="description" | ||
content="Combining robust lighting for attracting insects with high resolution cameras, the AMI-trap can provide practical and cost-effective solutions for standardised monitoring. AMI-traps have been deployed in the UK, Canada, USA, Cyprus, Panama and Argentina, with plans to expand further." | ||
/> | ||
<title>AMI Platform</title> | ||
|
||
<!-- Favicons --> | ||
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" /> | ||
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" /> | ||
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" /> | ||
<link rel="manifest" href="/site.webmanifest" /> | ||
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#47518f" /> | ||
<meta name="msapplication-TileColor" content="#47518f" /> | ||
<meta name="theme-color" content="#ffffff" /> | ||
|
||
<!-- Preload some fonts and base CSS --> | ||
<link | ||
rel="preload" | ||
href="/fonts/AzoSans/AzoSans.otf" | ||
as="font" | ||
type="font/otf" | ||
crossorigin | ||
/> | ||
<link | ||
rel="preload" | ||
href="/fonts/AzoSans/AzoSans-Italic.otf" | ||
as="font" | ||
type="font/otf" | ||
crossorigin | ||
/> | ||
<link | ||
rel="preload" | ||
href="/fonts/AzoSans/AzoSans-Medium.otf" | ||
as="font" | ||
type="font/otf" | ||
crossorigin | ||
/> | ||
<link | ||
rel="preload" | ||
href="/fonts/AzoSans/AzoSans-Bold.otf" | ||
as="font" | ||
type="font/otf" | ||
crossorigin | ||
/> | ||
<link rel="preload" href="/index.css" as="style" /> | ||
<link rel="stylesheet" href="/index.css" /> | ||
</head> | ||
<body> | ||
<noscript>You need to enable JavaScript to run this app.</noscript> | ||
<div id="root"></div> | ||
<script type="module" src="/src/index.tsx"></script> | ||
</body> | ||
</html> |
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 was deleted.
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
Oops, something went wrong.