@ -1,23 +0,0 @@ |
|||||||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. |
|
||||||
|
|
||||||
# dependencies |
|
||||||
/node_modules |
|
||||||
/.pnp |
|
||||||
.pnp.js |
|
||||||
|
|
||||||
# testing |
|
||||||
/coverage |
|
||||||
|
|
||||||
# production |
|
||||||
/build |
|
||||||
|
|
||||||
# misc |
|
||||||
.DS_Store |
|
||||||
.env.local |
|
||||||
.env.development.local |
|
||||||
.env.test.local |
|
||||||
.env.production.local |
|
||||||
|
|
||||||
npm-debug.log* |
|
||||||
yarn-debug.log* |
|
||||||
yarn-error.log* |
|
@ -1,70 +0,0 @@ |
|||||||
# Getting Started with Create React App |
|
||||||
|
|
||||||
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). |
|
||||||
|
|
||||||
## Available Scripts |
|
||||||
|
|
||||||
In the project directory, you can run: |
|
||||||
|
|
||||||
### `npm start` |
|
||||||
|
|
||||||
Runs the app in the development mode.\ |
|
||||||
Open [http://localhost:3000](http://localhost:3000) to view it in the browser. |
|
||||||
|
|
||||||
The page will reload if you make edits.\ |
|
||||||
You will also see any lint errors in the console. |
|
||||||
|
|
||||||
### `npm test` |
|
||||||
|
|
||||||
Launches the test runner in the interactive watch mode.\ |
|
||||||
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. |
|
||||||
|
|
||||||
### `npm run build` |
|
||||||
|
|
||||||
Builds the app for production to the `build` folder.\ |
|
||||||
It correctly bundles React in production mode and optimizes the build for the best performance. |
|
||||||
|
|
||||||
The build is minified and the filenames include the hashes.\ |
|
||||||
Your app is ready to be deployed! |
|
||||||
|
|
||||||
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. |
|
||||||
|
|
||||||
### `npm run eject` |
|
||||||
|
|
||||||
**Note: this is a one-way operation. Once you `eject`, you can’t go back!** |
|
||||||
|
|
||||||
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. |
|
||||||
|
|
||||||
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own. |
|
||||||
|
|
||||||
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it. |
|
||||||
|
|
||||||
## Learn More |
|
||||||
|
|
||||||
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). |
|
||||||
|
|
||||||
To learn React, check out the [React documentation](https://reactjs.org/). |
|
||||||
|
|
||||||
### Code Splitting |
|
||||||
|
|
||||||
This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting) |
|
||||||
|
|
||||||
### Analyzing the Bundle Size |
|
||||||
|
|
||||||
This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size) |
|
||||||
|
|
||||||
### Making a Progressive Web App |
|
||||||
|
|
||||||
This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app) |
|
||||||
|
|
||||||
### Advanced Configuration |
|
||||||
|
|
||||||
This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration) |
|
||||||
|
|
||||||
### Deployment |
|
||||||
|
|
||||||
This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment) |
|
||||||
|
|
||||||
### `npm run build` fails to minify |
|
||||||
|
|
||||||
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify) |
|
@ -1,38 +0,0 @@ |
|||||||
{ |
|
||||||
"name": "ngoplanner", |
|
||||||
"version": "0.1.0", |
|
||||||
"private": true, |
|
||||||
"dependencies": { |
|
||||||
"@testing-library/jest-dom": "^5.14.1", |
|
||||||
"@testing-library/react": "^11.2.7", |
|
||||||
"@testing-library/user-event": "^12.8.3", |
|
||||||
"react": "^17.0.2", |
|
||||||
"react-dom": "^17.0.2", |
|
||||||
"react-scripts": "4.0.3", |
|
||||||
"web-vitals": "^1.1.2" |
|
||||||
}, |
|
||||||
"scripts": { |
|
||||||
"start": "react-scripts start", |
|
||||||
"build": "react-scripts build", |
|
||||||
"test": "react-scripts test", |
|
||||||
"eject": "react-scripts eject" |
|
||||||
}, |
|
||||||
"eslintConfig": { |
|
||||||
"extends": [ |
|
||||||
"react-app", |
|
||||||
"react-app/jest" |
|
||||||
] |
|
||||||
}, |
|
||||||
"browserslist": { |
|
||||||
"production": [ |
|
||||||
">0.2%", |
|
||||||
"not dead", |
|
||||||
"not op_mini all" |
|
||||||
], |
|
||||||
"development": [ |
|
||||||
"last 1 chrome version", |
|
||||||
"last 1 firefox version", |
|
||||||
"last 1 safari version" |
|
||||||
] |
|
||||||
} |
|
||||||
} |
|
Before Width: | Height: | Size: 3.8 KiB |
@ -1,9 +0,0 @@ |
|||||||
|
|
||||||
@font-face { |
|
||||||
font-family: "ngs"; |
|
||||||
src: url("./4.woff") format("woff"); |
|
||||||
} |
|
||||||
@font-face { |
|
||||||
font-family: "ngs2"; |
|
||||||
src: url("./3.woff") format("woff"); |
|
||||||
} |
|
Before Width: | Height: | Size: 6.1 KiB |
Before Width: | Height: | Size: 5.9 KiB |
Before Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 579 B |
Before Width: | Height: | Size: 755 B |
Before Width: | Height: | Size: 119 B |
Before Width: | Height: | Size: 215 B |
Before Width: | Height: | Size: 128 B |
Before Width: | Height: | Size: 116 B |
Before Width: | Height: | Size: 118 B |
Before Width: | Height: | Size: 197 B |
Before Width: | Height: | Size: 436 B |
Before Width: | Height: | Size: 394 B |
Before Width: | Height: | Size: 658 B |
Before Width: | Height: | Size: 6.3 KiB |
Before Width: | Height: | Size: 5.9 KiB |
@ -1,45 +0,0 @@ |
|||||||
<!DOCTYPE html> |
|
||||||
<html lang="en"> |
|
||||||
<head> |
|
||||||
<meta charset="utf-8" /> |
|
||||||
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" /> |
|
||||||
<link rel="stylesheet" href="%PUBLIC_URL%/bootstrap.css"/> |
|
||||||
<link rel="stylesheet" href="%PUBLIC_URL%/style.css" /> |
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" /> |
|
||||||
<meta name="theme-color" content="#000000" /> |
|
||||||
<meta |
|
||||||
name="description" |
|
||||||
content="Web site created using create-react-app" |
|
||||||
/> |
|
||||||
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" /> |
|
||||||
<!-- |
|
||||||
manifest.json provides metadata used when your web app is installed on a |
|
||||||
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/ |
|
||||||
--> |
|
||||||
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" /> |
|
||||||
<!-- |
|
||||||
Notice the use of %PUBLIC_URL% in the tags above. |
|
||||||
It will be replaced with the URL of the `public` folder during the build. |
|
||||||
Only files inside the `public` folder can be referenced from the HTML. |
|
||||||
|
|
||||||
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will |
|
||||||
work correctly both with client-side routing and a non-root public URL. |
|
||||||
Learn how to configure a non-root public URL by running `npm run build`. |
|
||||||
--> |
|
||||||
<title>React App</title> |
|
||||||
</head> |
|
||||||
<body> |
|
||||||
<noscript>You need to enable JavaScript to run this app.</noscript> |
|
||||||
<div id="root"></div> |
|
||||||
<!-- |
|
||||||
This HTML file is a template. |
|
||||||
If you open it directly in the browser, you will see an empty page. |
|
||||||
|
|
||||||
You can add webfonts, meta tags, or analytics to this file. |
|
||||||
The build step will place the bundled scripts into the <body> tag. |
|
||||||
|
|
||||||
To begin the development, run `npm start` or `yarn start`. |
|
||||||
To create a production bundle, use `npm run build` or `yarn build`. |
|
||||||
--> |
|
||||||
</body> |
|
||||||
</html> |
|
Before Width: | Height: | Size: 5.2 KiB |
Before Width: | Height: | Size: 9.4 KiB |
@ -1,25 +0,0 @@ |
|||||||
{ |
|
||||||
"short_name": "React App", |
|
||||||
"name": "Create React App Sample", |
|
||||||
"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" |
|
||||||
} |
|
||||||
], |
|
||||||
"start_url": ".", |
|
||||||
"display": "standalone", |
|
||||||
"theme_color": "#000000", |
|
||||||
"background_color": "#ffffff" |
|
||||||
} |
|
@ -1,3 +0,0 @@ |
|||||||
# https://www.robotstxt.org/robotstxt.html |
|
||||||
User-agent: * |
|
||||||
Disallow: |
|
@ -1,341 +0,0 @@ |
|||||||
|
|
||||||
@font-face { |
|
||||||
font-family: "ngs"; |
|
||||||
src: url("./4.woff") format("woff"); |
|
||||||
} |
|
||||||
@font-face { |
|
||||||
font-family: "ngs2"; |
|
||||||
src: url("./3.woff") format("woff"); |
|
||||||
} |
|
||||||
|
|
||||||
@keyframes App-logo-spin { |
|
||||||
from { |
|
||||||
transform: rotate(0deg); |
|
||||||
} |
|
||||||
to { |
|
||||||
transform: rotate(360deg); |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
* { /* remove dead space */ |
|
||||||
border: 0; |
|
||||||
margin: 0; |
|
||||||
padding: 0; |
|
||||||
} |
|
||||||
body { |
|
||||||
background-image: url(d_global_bg_header.png),url(gl_main_bg.jpg); |
|
||||||
background-size: 1903px,2560px; |
|
||||||
background-color: #e8ecf4; |
|
||||||
background-repeat: no-repeat,repeat-y; |
|
||||||
background-position: center 0px; |
|
||||||
color: black; |
|
||||||
font-family: ngs,sans-serif; |
|
||||||
font-size: 16px; |
|
||||||
font-weight: normal; |
|
||||||
text-align: center; |
|
||||||
-webkit-font-smoothing: antialiased; |
|
||||||
} |
|
||||||
ul { |
|
||||||
list-style-type: none; |
|
||||||
} |
|
||||||
#header { |
|
||||||
background: white; |
|
||||||
/*min-height: 50px; |
|
||||||
padding: 20px;*/ |
|
||||||
text-align: left; |
|
||||||
} |
|
||||||
#header a { |
|
||||||
color: #151f25; |
|
||||||
text-decoration: none; |
|
||||||
} |
|
||||||
#header a:hover { |
|
||||||
color: #454f85; |
|
||||||
text-decoration: none; |
|
||||||
} |
|
||||||
#header div { |
|
||||||
margin: 0 auto; |
|
||||||
width: 85%; |
|
||||||
} |
|
||||||
#header img { |
|
||||||
vertical-align: middle; |
|
||||||
} |
|
||||||
#header img { |
|
||||||
margin-right: 50px; |
|
||||||
} |
|
||||||
#header ul { |
|
||||||
display: inline; |
|
||||||
} |
|
||||||
/*#header ul li:hover { |
|
||||||
background-color: silver; |
|
||||||
}*/ |
|
||||||
#header ul li { |
|
||||||
color: black; |
|
||||||
display: inline; |
|
||||||
font-family: "ngs2"; |
|
||||||
font-size: 18px; |
|
||||||
margin-right: 50px; |
|
||||||
text-align: center; |
|
||||||
} |
|
||||||
#main { |
|
||||||
display: flex; |
|
||||||
flex-direction: row; |
|
||||||
justify-content: center; |
|
||||||
flex-wrap: wrap; |
|
||||||
} |
|
||||||
.con { |
|
||||||
max-width: 500px; |
|
||||||
min-width: 250px; |
|
||||||
/*width: 500px;*/ |
|
||||||
padding: 20px; |
|
||||||
} |
|
||||||
.box { |
|
||||||
color: #97e2fc; |
|
||||||
background-color: rgba(38,53,63,0.80); |
|
||||||
/*background-color: #151f25;*/ |
|
||||||
margin: 0 0 20px 0; |
|
||||||
padding: 0 0 20px 0; |
|
||||||
text-align: left; |
|
||||||
text-shadow: -1px -1px 0 rgba(0,0,0,0.66), 1px -1px 0 rgba(0,0,0,0.66), -1px 1px 0 rgba(0,0,0,0.66), 1px 1px 0 rgba(0,0,0,0.66); |
|
||||||
width: 100%; |
|
||||||
} |
|
||||||
.box table { |
|
||||||
border-spacing: 0; |
|
||||||
color: white; |
|
||||||
margin: 0 auto; |
|
||||||
width: 95%; |
|
||||||
} |
|
||||||
tr { |
|
||||||
background-image: url("tr_bg.png"); |
|
||||||
background-repeat: no-repeat; |
|
||||||
background-position: left bottom; |
|
||||||
} |
|
||||||
td { |
|
||||||
padding: 0 5px; |
|
||||||
|
|
||||||
} |
|
||||||
td:first-child { |
|
||||||
color: #97e2fc; |
|
||||||
} |
|
||||||
td:last-child { |
|
||||||
text-align: right; |
|
||||||
} |
|
||||||
.st tr td:nth-child(2) { |
|
||||||
text-align: right; |
|
||||||
} |
|
||||||
.st tr td:last-child { |
|
||||||
width: 45%; |
|
||||||
} |
|
||||||
|
|
||||||
.box h1 { |
|
||||||
/* background-color: #495a61; */ |
|
||||||
background-color: rgba(128,128,128,0.50); |
|
||||||
color: white; |
|
||||||
font-weight: normal; |
|
||||||
font-size: 18px; |
|
||||||
margin-bottom: 10px; |
|
||||||
padding: 10px; |
|
||||||
text-align: left; |
|
||||||
} |
|
||||||
.box h2 { |
|
||||||
/* background-color: #495a61; */ |
|
||||||
color: white; |
|
||||||
font-weight: normal; |
|
||||||
font-size: 18px; |
|
||||||
/* margin-bottom: 20px; |
|
||||||
padding: 10px; */ |
|
||||||
margin: 0 auto 10px auto; |
|
||||||
text-align: left; |
|
||||||
width: 95%; |
|
||||||
} |
|
||||||
.box h2 img { |
|
||||||
margin-right: 5px; |
|
||||||
vertical-align: top; |
|
||||||
} |
|
||||||
.box h2:hover { |
|
||||||
background: linear-gradient(45deg,rgba(76,113,126,0.66),rgba(113,169,189,00.66)); |
|
||||||
} |
|
||||||
.da { |
|
||||||
color: white; |
|
||||||
text-align: right; |
|
||||||
} |
|
||||||
.da span { |
|
||||||
background-color: rgba(20,29,40,0.66); |
|
||||||
padding: 5px; |
|
||||||
} |
|
||||||
.da span:hover { |
|
||||||
background: linear-gradient(45deg,rgba(76,113,126,0.66),rgba(113,169,189,00.66)); |
|
||||||
} |
|
||||||
.ba tr:hover { |
|
||||||
background: linear-gradient(45deg,rgba(76,113,126,0.66),rgba(113,169,189,00.66)); |
|
||||||
} |
|
||||||
.bu { |
|
||||||
margin: 0 auto; |
|
||||||
width: 90%; |
|
||||||
} |
|
||||||
.bu li:hover { |
|
||||||
background: linear-gradient(45deg,rgba(76,113,126,0.66),rgba(113,169,189,00.66)); |
|
||||||
} |
|
||||||
.bu li ul { |
|
||||||
width: 100%; |
|
||||||
} |
|
||||||
.bu li ul li { |
|
||||||
width: 100%; |
|
||||||
padding-left: 20px; |
|
||||||
} |
|
||||||
.bu li ul li:hover { |
|
||||||
background: transparent; |
|
||||||
} |
|
||||||
.box p { |
|
||||||
margin: 0 auto; |
|
||||||
width: 95%; |
|
||||||
} |
|
||||||
.boxmenu { |
|
||||||
display: inline; |
|
||||||
} |
|
||||||
/*.boxmenu li:first-child { |
|
||||||
background-color: transparent; |
|
||||||
border-bottom: 0; |
|
||||||
} |
|
||||||
.boxmenu li:nth-child(2) { |
|
||||||
background: linear-gradient(135deg,#60461b,#b0a34e); |
|
||||||
border-bottom: 4px solid #ffd602; |
|
||||||
}*/ |
|
||||||
.boxmenu .selected{ |
|
||||||
background: linear-gradient(135deg,#60461b,#b0a34e); |
|
||||||
border-bottom: 4px solid #ffd602; |
|
||||||
} |
|
||||||
.boxmenu .selected:hover{ |
|
||||||
cursor:pointer; |
|
||||||
} |
|
||||||
.boxmenu li { |
|
||||||
background-color: silver; |
|
||||||
color: white; |
|
||||||
display: inline; |
|
||||||
font-size: 18px; |
|
||||||
margin-left: 5px; |
|
||||||
padding: 0 9px; |
|
||||||
border-bottom: 4px solid silver; |
|
||||||
} |
|
||||||
.boxmenu li:hover { |
|
||||||
background: linear-gradient(135deg,#b0a34e,#ffd602); |
|
||||||
border-bottom: 4px solid #ffd602; |
|
||||||
cursor:pointer; |
|
||||||
} |
|
||||||
.box h3 { |
|
||||||
background-image: url("tr_bg.png"); |
|
||||||
background-repeat: no-repeat; |
|
||||||
background-position: left bottom; |
|
||||||
font-size: 16px; |
|
||||||
font-weight: normal; |
|
||||||
margin: 10px; |
|
||||||
padding: 0 5px; |
|
||||||
} |
|
||||||
.we { |
|
||||||
color: white; |
|
||||||
display: flex; |
|
||||||
flex-direction: row; |
|
||||||
justify-content: center; |
|
||||||
flex-wrap: wrap; |
|
||||||
} |
|
||||||
|
|
||||||
.we div { |
|
||||||
background: linear-gradient(rgba(0,0,0,0) 15%,rgba(128,128,128,0.50) 15%); |
|
||||||
/* background-image: url("we_bg.png"); |
|
||||||
background-repeat:repeat-x; |
|
||||||
background-position: left bottom;*/ |
|
||||||
min-height: 128px; |
|
||||||
max-width: 118px; |
|
||||||
min-width: 100px; |
|
||||||
width: 23%; |
|
||||||
padding: 0 0 10px 0; |
|
||||||
text-align: center; |
|
||||||
} |
|
||||||
.we div img { |
|
||||||
margin-bottom: 10px; |
|
||||||
} |
|
||||||
.we div:hover { |
|
||||||
background: linear-gradient(rgba(0,0,0,0) 15%,rgba(76,113,126,0.66) 15%,rgba(113,169,189,00.66)); |
|
||||||
} |
|
||||||
.we div h3 { |
|
||||||
background-image: none; |
|
||||||
/* background-image: url("tr_bg.png"); |
|
||||||
background-repeat: no-repeat; |
|
||||||
background-position: left bottom;*/ |
|
||||||
color: #97e2fc; |
|
||||||
font-size: 16px; |
|
||||||
font-weight: normal; |
|
||||||
margin: 0 0 10px 0; |
|
||||||
padding: 0; |
|
||||||
} |
|
||||||
.de { |
|
||||||
display: flex; |
|
||||||
flex-direction: row; |
|
||||||
justify-content: center; |
|
||||||
flex-wrap: wrap; |
|
||||||
} |
|
||||||
.de div { |
|
||||||
/* background: linear-gradient(rgba(0,0,0,0) 18%,rgba(128,128,128,0.50) 18%); |
|
||||||
background-image: url("we_bg.png"); |
|
||||||
background-repeat:repeat-x; |
|
||||||
background-position: left bottom;*/ |
|
||||||
max-width: 250px; |
|
||||||
min-width: 100px; |
|
||||||
width: 50%; |
|
||||||
padding: 0; |
|
||||||
margin: 0; |
|
||||||
text-align: left; |
|
||||||
} |
|
||||||
.aug li { |
|
||||||
background-color: rgba(128,128,128,0.50); |
|
||||||
color: white; |
|
||||||
margin: 0 0 5px 10px; |
|
||||||
padding: 5px; |
|
||||||
} |
|
||||||
.aug li img { |
|
||||||
vertical-align: middle; |
|
||||||
} |
|
||||||
.aug li:hover { |
|
||||||
background: linear-gradient(45deg,rgba(76,113,126,0.66),rgba(113,169,189,00.66)); |
|
||||||
} |
|
||||||
.pr li { |
|
||||||
margin: 0 10px 2px 10px; |
|
||||||
padding: 5px; |
|
||||||
} |
|
||||||
.pr li span { |
|
||||||
color:white |
|
||||||
} |
|
||||||
.pr li:hover { |
|
||||||
background: linear-gradient(45deg,rgba(76,113,126,0.66),rgba(113,169,189,00.66)); |
|
||||||
} |
|
||||||
.ye { |
|
||||||
color: #ffb74c; |
|
||||||
} |
|
||||||
|
|
||||||
.hover:hover{ |
|
||||||
background-color:rgba(255,255,0,0.4); |
|
||||||
cursor:pointer; |
|
||||||
} |
|
||||||
|
|
||||||
input#editBox{ |
|
||||||
height:18px; |
|
||||||
width:50%; |
|
||||||
padding: 0px; |
|
||||||
margin: 0px; |
|
||||||
text-align:right; |
|
||||||
} |
|
||||||
|
|
||||||
.popup{ |
|
||||||
position:absolute; |
|
||||||
background-color: rgba(128,128,128,1); |
|
||||||
max-width: 250px; |
|
||||||
min-width: 100px; |
|
||||||
padding: 20px; |
|
||||||
} |
|
||||||
.popup button{ |
|
||||||
margin:5px; |
|
||||||
width:48px; |
|
||||||
font-size:12px; |
|
||||||
overflow:wrap; |
|
||||||
background-color:rgba(64,64,96,0.9); |
|
||||||
color:rgba(210,210,210,1); |
|
||||||
} |
|
@ -1,375 +0,0 @@ |
|||||||
import logo from './logo.svg'; |
|
||||||
import './App.css'; |
|
||||||
import React, {useState,useEffect,useRef,useReducer} from 'react'; |
|
||||||
|
|
||||||
function Col(p) { |
|
||||||
return <div className="con"> |
|
||||||
{p.children} |
|
||||||
</div> |
|
||||||
} |
|
||||||
|
|
||||||
function Box(p) { |
|
||||||
return <> |
|
||||||
<div className="box"> |
|
||||||
<h1>♦ {p.title}</h1> |
|
||||||
{p.children} |
|
||||||
</div> |
|
||||||
</> |
|
||||||
} |
|
||||||
|
|
||||||
function EditBox(p) { |
|
||||||
const [loaded,setLoaded] = useState(false) |
|
||||||
useEffect(()=>{ |
|
||||||
setTimeout(()=>{document.getElementById("editBox").focus()},100) |
|
||||||
setLoaded(true) |
|
||||||
}) |
|
||||||
return <input id="editBox" onKeyDown={(e)=>{ |
|
||||||
if (e.key==="Enter") {p.setEdit(false)} |
|
||||||
}} maxLength={p.maxlength?p.maxlength:20} onBlur={()=>{p.setEdit(false)}} value={p.value} onChange={(f)=>{f.currentTarget.value.length>0?p.setName(f.currentTarget.value):p.setName(p.originalName)}}> |
|
||||||
|
|
||||||
</input> |
|
||||||
} |
|
||||||
|
|
||||||
function EditableBox(p) { |
|
||||||
const [edit,setEdit] = useState(false) |
|
||||||
return <> |
|
||||||
<div className="hover" onClick={(f)=>{setEdit(true)}}> |
|
||||||
{edit? |
|
||||||
<EditBox maxlength={p.maxlength} setEdit={setEdit} originalName={p.data} setName={p.setData} value={p.data}/> |
|
||||||
:<>{p.data}</>} |
|
||||||
</div> |
|
||||||
</> |
|
||||||
} |
|
||||||
|
|
||||||
const CLASSES = { |
|
||||||
HUNTER:{ |
|
||||||
name:"Hunter", |
|
||||||
icon:"icons/UINGSClassHu.png" |
|
||||||
}, |
|
||||||
FIGHTER:{ |
|
||||||
name:"Fighter", |
|
||||||
icon:"icons/UINGSClassFi.png" |
|
||||||
}, |
|
||||||
RANGER:{ |
|
||||||
name:"Ranger", |
|
||||||
icon:"icons/UINGSClassRa.png" |
|
||||||
}, |
|
||||||
GUNNER:{ |
|
||||||
name:"Gunner", |
|
||||||
icon:"icons/UINGSClassGu.png" |
|
||||||
}, |
|
||||||
FORCE:{ |
|
||||||
name:"Force", |
|
||||||
icon:"icons/UINGSClassFo.png" |
|
||||||
}, |
|
||||||
TECHTER:{ |
|
||||||
name:"Techter", |
|
||||||
icon:"icons/UINGSClassTe.png" |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
const EFFECTS = { |
|
||||||
"Food Boost Effect":{ |
|
||||||
perks:[ |
|
||||||
"[Meat] Potency +10.0%", |
|
||||||
"[Crisp] Potency to Weak Point +5.0%" |
|
||||||
], |
|
||||||
icon:"icons/TQ8EBW2.png" |
|
||||||
}, |
|
||||||
"Shifta / Deband":{ |
|
||||||
perks:[ |
|
||||||
"Potency +5.0%", |
|
||||||
"Damage Resistance +10.0%" |
|
||||||
], |
|
||||||
icon:"icons/VIYYNIm.png" |
|
||||||
}, |
|
||||||
"Region Mag Boost":{ |
|
||||||
perks:[ |
|
||||||
"Potency +5.0%", |
|
||||||
], |
|
||||||
icon:"icons/N6M74Qr.png" |
|
||||||
}, |
|
||||||
} |
|
||||||
|
|
||||||
const EQUIPMENT = { |
|
||||||
"Ophistia Shooter":{ |
|
||||||
icon:"icons/uc1iBck.png" |
|
||||||
}, |
|
||||||
"Klauzdyne":{ |
|
||||||
icon:"icons/uldt9lR.png" |
|
||||||
}, |
|
||||||
"Klauznum":{ |
|
||||||
icon:"icons/F0t58xP.png" |
|
||||||
}, |
|
||||||
"Klauzment":{ |
|
||||||
icon:"icons/20M6Z7t.png" |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
const ABILITIES = { |
|
||||||
"Wellspring Unit Lv.3":{ |
|
||||||
icon:"icons/NGSUIItemPotentialAbility.png" |
|
||||||
}, |
|
||||||
"Fixa Fatale Lv.5":{ |
|
||||||
icon:"icons/UINGSItemPresetAbility.png" |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
const ABILITY_DEFAULT_ICON = "icons/UINGSItemSpecialAbility.png" |
|
||||||
|
|
||||||
function Class(p) { |
|
||||||
const class_obj = CLASSES[p.name] |
|
||||||
return <><img src={class_obj.icon}/>{class_obj.name}</> |
|
||||||
} |
|
||||||
|
|
||||||
function ClassSelector(p){ |
|
||||||
return <div className="popup"> |
|
||||||
Class Selector<br/> |
|
||||||
{Object.keys(CLASSES).map((cl,i)=>{ |
|
||||||
return <button id={i} className="rounded" onClick={()=>{p.setClassName(cl);p.setEdit(false)}}><img src={CLASSES[cl].icon}/><br/>{CLASSES[cl].name}</button> |
|
||||||
})} |
|
||||||
</div> |
|
||||||
} |
|
||||||
|
|
||||||
function EditableClass(p){ |
|
||||||
const [edit,setEdit] = useState(false) |
|
||||||
return <><span className="hover" onClick={()=>{setEdit(!edit)}}><Class name={p.class}/> |
|
||||||
</span> |
|
||||||
{edit&&<ClassSelector setClassName={p.setClassName} setEdit={setEdit}/>} |
|
||||||
</> |
|
||||||
} |
|
||||||
|
|
||||||
function MainBox(p) { |
|
||||||
return <Box title="NGS Planner"> |
|
||||||
<table className="ba"> |
|
||||||
<ListRow title="Author"><EditableBox setData={p.setAuthor} data={p.author}/></ListRow> |
|
||||||
<ListRow title="Build Name"><EditableBox setData={p.setBuildName} data={p.buildName}/></ListRow> |
|
||||||
<ListRow title="Class" content={<EditableClass setClassName={p.setClassName} class={p.className}></EditableClass>}><span className="ye">Lv.20</span></ListRow> |
|
||||||
<ListRow content={<><EditableClass setClassName={p.setSecondaryClassName} class={p.secondaryClassName}></EditableClass></>}>Lv.15</ListRow> |
|
||||||
</table> |
|
||||||
</Box> |
|
||||||
} |
|
||||||
|
|
||||||
function StatsBox(p) { |
|
||||||
return <Box title="Stats"> |
|
||||||
<table className="st"> |
|
||||||
<ListRow title="Battle Power" content={p.bp}></ListRow> |
|
||||||
<ListRow title="HP" content={p.hp}></ListRow> |
|
||||||
<ListRow title="PP" content={p.pp}></ListRow> |
|
||||||
<ListRow title="Defense" content={p.def}></ListRow> |
|
||||||
<ListRow title="Weapon Up" content={<><img alt="" src="https://pso2na.arks-visiphone.com/images/3/37/NGSUIStatSATK.png" /> <span className="ye">+{p.weaponUp1*100}%</span></>}><img alt="" src="https://pso2na.arks-visiphone.com/images/c/c5/NGSUIStatRATK.png" /> <span className="ye">+{p.weaponUp2*100}%</span></ListRow> |
|
||||||
<ListRow content={<><img alt="" src="https://pso2na.arks-visiphone.com/images/a/ae/NGSUIStatTATK.png" /> <span className="ye">+{p.weaponUp3*100}%</span></>}></ListRow> |
|
||||||
<ListRow title="Damage Resist." content={p.damageResist*100+"%"}></ListRow> |
|
||||||
</table> |
|
||||||
</Box> |
|
||||||
} |
|
||||||
|
|
||||||
function EffectListing(p) { |
|
||||||
return <li>{p.name} |
|
||||||
<ul> |
|
||||||
{EFFECTS[p.name].perks.map((perk,i)=>{ |
|
||||||
return <li key={i}><img alt="" src={EFFECTS[p.name].icon} /> {perk}</li> |
|
||||||
})} |
|
||||||
</ul> |
|
||||||
</li> |
|
||||||
} |
|
||||||
|
|
||||||
function PageControlButton(p) { |
|
||||||
return <li onClick={()=>{p.setCurrentPage(p.page)}} className={(p.currentPage==p.page)?"selected":""}>{p.pageName?p.pageName:p.page}</li> |
|
||||||
} |
|
||||||
|
|
||||||
function PageControl(p) { |
|
||||||
var pages = [] |
|
||||||
for (var i=0;i<p.pages;i++) { |
|
||||||
pages.push(<PageControlButton pageName={p.pageNames?p.pageNames[i]:undefined} currentPage={p.currentPage} setCurrentPage={p.setCurrentPage} page={i+1}/>) |
|
||||||
} |
|
||||||
return <ul className="boxmenu"> |
|
||||||
{pages.map((page,i)=>{return <React.Fragment key={i}>{page}</React.Fragment>})} |
|
||||||
</ul> |
|
||||||
} |
|
||||||
|
|
||||||
function EffectsBox(p) { |
|
||||||
const [currentPage,setCurrentPage]=useState(1) |
|
||||||
|
|
||||||
return <Box title="Current Effects"> |
|
||||||
<PageControl pages={2} currentPage={currentPage} setCurrentPage={setCurrentPage}/> |
|
||||||
<h3>Effect Name</h3> |
|
||||||
{ |
|
||||||
currentPage==1? |
|
||||||
<ul className="bu"> |
|
||||||
{p.effectList.map((ef,i)=>{ |
|
||||||
return <EffectListing key={i} name={ef}/> |
|
||||||
})} |
|
||||||
</ul>: |
|
||||||
<></> |
|
||||||
} |
|
||||||
</Box> |
|
||||||
} |
|
||||||
|
|
||||||
function EquipBox(p) { |
|
||||||
return <Box title="Equip"> |
|
||||||
<div className="we"> |
|
||||||
<div><h3>Weapon</h3><br /><img alt="" src={EQUIPMENT[p.weapon].icon} /><br />{p.weapon}+{p.weaponEnhancementLv}</div> |
|
||||||
<div><h3>Slot 1</h3><br /><img alt="" src={EQUIPMENT[p.armorSlot1].icon} /><br />{p.armorSlot1}+{p.armorSlot1EnhancementLv}</div> |
|
||||||
<div><h3>Slot 2</h3><br /><img alt="" src={EQUIPMENT[p.armorSlot2].icon} /><br />{p.armorSlot2}+{p.armorSlot2EnhancementLv}</div> |
|
||||||
<div><h3>Slot 3</h3><br /><img alt="" src={EQUIPMENT[p.armorSlot3].icon} /><br />{p.armorSlot3}+{p.armorSlot3EnhancementLv}</div> |
|
||||||
</div> |
|
||||||
</Box> |
|
||||||
} |
|
||||||
|
|
||||||
function EquippedWeaponBox(p) { |
|
||||||
const [currentPage,setCurrentPage] = useState(1) |
|
||||||
const [selectedEquip,setSelectedEquip] = useState(p.weapon) |
|
||||||
const [selectedEquipEnhancementLv,setSelectedEquipEnhancementLv] = useState(p.weaponEnhancementLv) |
|
||||||
const [selectedEquipAbilities,setSelectedEquipAbilities] = useState(p.weaponAbilityList) |
|
||||||
|
|
||||||
useEffect(()=>{ |
|
||||||
switch (currentPage) { |
|
||||||
case 2:{ |
|
||||||
setSelectedEquip(p.armorSlot1) |
|
||||||
setSelectedEquipEnhancementLv(p.armorSlot1EnhancementLv) |
|
||||||
setSelectedEquipAbilities(p.armorSlot1AbilityList) |
|
||||||
}break; |
|
||||||
case 3:{ |
|
||||||
setSelectedEquip(p.armorSlot2) |
|
||||||
setSelectedEquipEnhancementLv(p.armorSlot2EnhancementLv) |
|
||||||
setSelectedEquipAbilities(p.armorSlot2AbilityList) |
|
||||||
}break; |
|
||||||
case 4:{ |
|
||||||
setSelectedEquip(p.armorSlot3) |
|
||||||
setSelectedEquipEnhancementLv(p.armorSlot3EnhancementLv) |
|
||||||
setSelectedEquipAbilities(p.armorSlot3AbilityList) |
|
||||||
}break; |
|
||||||
default:{ |
|
||||||
setSelectedEquip(p.weapon) |
|
||||||
setSelectedEquipEnhancementLv(p.weaponEnhancementLv) |
|
||||||
setSelectedEquipAbilities(p.weaponAbilityList) |
|
||||||
} |
|
||||||
} |
|
||||||
},[currentPage]) |
|
||||||
|
|
||||||
return <Box title="Equipped Weapon"> |
|
||||||
<h2><img alt="" src="https://pso2na.arks-visiphone.com/images/b/bc/NGSUIItemAssaultRifleMini.png" />{selectedEquip}+{selectedEquipEnhancementLv}</h2> |
|
||||||
<PageControl pages={4} currentPage={currentPage} setCurrentPage={setCurrentPage} pageNames={["W",1,2,3]}/> |
|
||||||
<div className="de"> |
|
||||||
<div> |
|
||||||
<h3>Abilitiy Details</h3> |
|
||||||
<ul className="aug"> |
|
||||||
{ |
|
||||||
selectedEquipAbilities?selectedEquipAbilities.map((ability,i)=>{ |
|
||||||
return <li key={i}><img alt="" src={ABILITIES[ability]?ABILITIES[ability].icon:ABILITY_DEFAULT_ICON} /> {ability}</li> |
|
||||||
}):<></> |
|
||||||
} |
|
||||||
</ul> |
|
||||||
</div> |
|
||||||
<div> |
|
||||||
<h3>Properties</h3> |
|
||||||
<ul className="pr"> |
|
||||||
<li>Enhancement Lv. <span>+{selectedEquipEnhancementLv}</span></li> |
|
||||||
<li>Multi-Weapon <span>-</span></li> |
|
||||||
<li>Element <span>-</span></li> |
|
||||||
</ul> |
|
||||||
</div> |
|
||||||
</div> |
|
||||||
</Box> |
|
||||||
} |
|
||||||
|
|
||||||
function DamageBox(p) { |
|
||||||
const [currentPage,setCurrentPage] = useState(1) |
|
||||||
|
|
||||||
return <Box title="Damage"> |
|
||||||
<PageControl pages={3} currentPage={currentPage} setCurrentPage={setCurrentPage}/> |
|
||||||
<br /><br /> |
|
||||||
{ |
|
||||||
currentPage==1&& |
|
||||||
<table className="ba"> |
|
||||||
<ListRow title="Critical Hit Rate">{p.criticalHitRate*100}%</ListRow> |
|
||||||
<ListRow title="Critical Multiplier">{p.criticalMultiplier*100}%</ListRow> |
|
||||||
<ListRow title="Midrange">{p.midRange}</ListRow> |
|
||||||
<ListRow title="Critical">{p.critical}</ListRow> |
|
||||||
<ListRow title="Effective"><span className="ye">{p.effective}</span></ListRow> |
|
||||||
</table> |
|
||||||
} |
|
||||||
</Box> |
|
||||||
} |
|
||||||
|
|
||||||
function ListRow(p) { |
|
||||||
return <tr> |
|
||||||
<td>{p.title}</td> |
|
||||||
<td>{p.content}</td> |
|
||||||
<td>{p.children}</td> |
|
||||||
</tr> |
|
||||||
} |
|
||||||
|
|
||||||
function App() { |
|
||||||
const [author,setAuthor] = useState("Dudley") |
|
||||||
const [buildName,setBuildName] = useState("Fatimah") |
|
||||||
const [className,setClassName] = useState("RANGER") |
|
||||||
const [secondaryClassName,setSecondaryClassName] = useState("FORCE") |
|
||||||
|
|
||||||
const [bp,setBP] = useState(1344) |
|
||||||
const [hp,setHP] = useState(289) |
|
||||||
const [pp,setPP] = useState(100) |
|
||||||
const [def,setDef] = useState(402) |
|
||||||
const [weaponUp1,setWeaponUp1] = useState(0.34) |
|
||||||
const [weaponUp2,setWeaponUp2] = useState(0.34) |
|
||||||
const [weaponUp3,setWeaponUp3] = useState(0.34) |
|
||||||
const [damageResist,setDamageResist] = useState(0.18) |
|
||||||
|
|
||||||
const [effectList,setEffectList] = useState([ |
|
||||||
"Food Boost Effect", |
|
||||||
"Shifta / Deband", |
|
||||||
"Region Mag Boost" |
|
||||||
]) |
|
||||||
|
|
||||||
const [weapon,setWeapon] = useState("Ophistia Shooter") |
|
||||||
const [armorSlot1,setArmorSlot1] = useState("Klauzdyne") |
|
||||||
const [armorSlot2,setArmorSlot2] = useState("Klauznum") |
|
||||||
const [armorSlot3,setArmorSlot3] = useState("Klauzment") |
|
||||||
const [weaponEnhancementLv,setWeaponEnhancementLv] = useState(35) |
|
||||||
const [armorSlot1EnhancementLv,setArmorSlot1EnhancementLv] = useState(10) |
|
||||||
const [armorSlot2EnhancementLv,setArmorSlot2EnhancementLv] = useState(10) |
|
||||||
const [armorSlot3EnhancementLv,setArmorSlot3EnhancementLv] = useState(10) |
|
||||||
|
|
||||||
const [weaponAbilityList,setWeaponAbilityList] = useState([
|
|
||||||
"Wellspring Unit Lv.3", |
|
||||||
"Fixa Fatale Lv.5", |
|
||||||
"Legaro S Attack II", |
|
||||||
"Legaro S Efficiet", |
|
||||||
"Legaro S Efficiet", |
|
||||||
"Legaro Souls 2", |
|
||||||
"Legaro Reverij", |
|
||||||
"Legaro Factalz", |
|
||||||
"Legaro Crakus", |
|
||||||
"Legaro Attack Vaz III", |
|
||||||
]) |
|
||||||
const [armor1AbilityList,setArmor1AbilityList] = useState([]) |
|
||||||
const [armor2AbilityList,setArmor2AbilityList] = useState([]) |
|
||||||
const [armor3AbilityList,setArmor3AbilityList] = useState([]) |
|
||||||
|
|
||||||
const [criticalHitRate,setCriticalHitRate] = useState(0.05) |
|
||||||
const [criticalMultiplier,setCriticalMultiplier] = useState(1.2) |
|
||||||
const [midRange,setMidRange] = useState(126) |
|
||||||
const [critical,setCritical] = useState(152) |
|
||||||
const [effective,setEffective] = useState(127) |
|
||||||
|
|
||||||
return ( |
|
||||||
<> |
|
||||||
<div id="main"> |
|
||||||
<Col> |
|
||||||
<MainBox author={author} setAuthor={setAuthor} buildName={buildName} setBuildName={setBuildName} className={className} setClassName={setClassName} secondaryClassName={secondaryClassName} setSecondaryClassName={setSecondaryClassName}/> |
|
||||||
<StatsBox bp={bp} setBP={setBP} hp={hp} setHP={setHP} pp={pp} setPP={setPP} def={def} setDef={setDef} weaponUp1={weaponUp1} setWeaponUp1={setWeaponUp1} weaponUp2={weaponUp2} setWeaponUp2={setWeaponUp2} weaponUp3={weaponUp3} setWeaponUp3={setWeaponUp3} damageResist={damageResist}/> |
|
||||||
<EffectsBox effectList={effectList} setEffectList={setEffectList}/> |
|
||||||
</Col> |
|
||||||
<Col> |
|
||||||
<EquipBox weapon={weapon} setWeapon={setWeapon} armorSlot1={armorSlot1} setArmorSlot1={setArmorSlot1} armorSlot2={armorSlot2} setArmorSlot2={setArmorSlot2} armorSlot3={armorSlot3} setArmorSlot3={setArmorSlot3} weaponEnhancementLv={weaponEnhancementLv} setWeaponEnhancementLv={setWeaponEnhancementLv} armorSlot1EnhancementLv={armorSlot1EnhancementLv} setArmorSlot1EnhancementLv={setArmorSlot1EnhancementLv} armorSlot2EnhancementLv={armorSlot2EnhancementLv} setArmorSlot2EnhancementLv={setArmorSlot2EnhancementLv} armorSlot3EnhancementLv={armorSlot3EnhancementLv} setArmorSlot3EnhancementLv={setArmorSlot3EnhancementLv}/> |
|
||||||
<EquippedWeaponBox weapon={weapon} armorSlot1={armorSlot1} armorSlot2={armorSlot2} armorSlot3={armorSlot3} weaponAbilityList={weaponAbilityList} setWeaponAbilityList={setWeaponAbilityList} armor1AbilityList={armor1AbilityList} setArmor1AbilityList={setArmor1AbilityList} armor2AbilityList={armor2AbilityList} setArmor2AbilityList={setArmor2AbilityList} armor3AbilityList={armor3AbilityList} setArmor3AbilityList={setArmor3AbilityList} weaponEnhancementLv={weaponEnhancementLv}armorSlot1EnhancementLv={armorSlot1EnhancementLv}armorSlot2EnhancementLv={armorSlot2EnhancementLv}armorSlot3EnhancementLv={armorSlot3EnhancementLv}/> |
|
||||||
</Col> |
|
||||||
<Col> |
|
||||||
<DamageBox criticalHitRate={criticalHitRate} setCriticalHitRate={setCriticalHitRate} criticalMultiplier={criticalMultiplier} setCriticalMultiplier={setCriticalMultiplier} midRange={midRange} setMidRange={setMidRange} critical={critical} setCritical={setCritical} effective={effective} setEffective={setEffective}/> |
|
||||||
</Col> |
|
||||||
</div></> |
|
||||||
); |
|
||||||
} |
|
||||||
|
|
||||||
export default App; |
|
@ -1,8 +0,0 @@ |
|||||||
import { render, screen } from '@testing-library/react'; |
|
||||||
import App from './App'; |
|
||||||
|
|
||||||
test('renders learn react link', () => { |
|
||||||
render(<App />); |
|
||||||
const linkElement = screen.getByText(/learn react/i); |
|
||||||
expect(linkElement).toBeInTheDocument(); |
|
||||||
}); |
|
Before Width: | Height: | Size: 418 KiB |
Before Width: | Height: | Size: 3.1 KiB |
@ -1,13 +0,0 @@ |
|||||||
body { |
|
||||||
margin: 0; |
|
||||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', |
|
||||||
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', |
|
||||||
sans-serif; |
|
||||||
-webkit-font-smoothing: antialiased; |
|
||||||
-moz-osx-font-smoothing: grayscale; |
|
||||||
} |
|
||||||
|
|
||||||
code { |
|
||||||
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', |
|
||||||
monospace; |
|
||||||
} |
|
@ -1,17 +0,0 @@ |
|||||||
import React from 'react'; |
|
||||||
import ReactDOM from 'react-dom'; |
|
||||||
import './index.css'; |
|
||||||
import App from './App'; |
|
||||||
import reportWebVitals from './reportWebVitals'; |
|
||||||
|
|
||||||
ReactDOM.render( |
|
||||||
<React.StrictMode> |
|
||||||
<App /> |
|
||||||
</React.StrictMode>, |
|
||||||
document.getElementById('root') |
|
||||||
); |
|
||||||
|
|
||||||
// If you want to start measuring performance in your app, pass a function
|
|
||||||
// to log results (for example: reportWebVitals(console.log))
|
|
||||||
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
|
|
||||||
reportWebVitals(); |
|
Before Width: | Height: | Size: 2.6 KiB |
@ -1,13 +0,0 @@ |
|||||||
const reportWebVitals = onPerfEntry => { |
|
||||||
if (onPerfEntry && onPerfEntry instanceof Function) { |
|
||||||
import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => { |
|
||||||
getCLS(onPerfEntry); |
|
||||||
getFID(onPerfEntry); |
|
||||||
getFCP(onPerfEntry); |
|
||||||
getLCP(onPerfEntry); |
|
||||||
getTTFB(onPerfEntry); |
|
||||||
}); |
|
||||||
} |
|
||||||
}; |
|
||||||
|
|
||||||
export default reportWebVitals; |
|
@ -1,5 +0,0 @@ |
|||||||
// jest-dom adds custom jest matchers for asserting on DOM nodes.
|
|
||||||
// allows you to do things like:
|
|
||||||
// expect(element).toHaveTextContent(/react/i)
|
|
||||||
// learn more: https://github.com/testing-library/jest-dom
|
|
||||||
import '@testing-library/jest-dom'; |
|
Before Width: | Height: | Size: 653 B |