Commit fe8647f7 authored by José Pereira's avatar José Pereira
Browse files

PullRequest

parent 9913a615
{
"homepage": "https://iquasere.github.io/MOSGUITO",
"name": "mosguito",
"version": "0.1.0",
"private": true,
"dependencies": {
"@grapecity/spread-excelio": "^14.0.3",
"@material-ui/core": "^4.11.0",
"@material-ui/icons": "^4.9.1",
"@zip.js/zip.js": "^2.2.28",
"awesome-react-icons": "^1.4.4",
"ba-js-base-components": "^1.2.10",
"csvtojson": "^2.0.10",
"d3": "^6.3.1",
"export-from-json": "^1.4.0",
"file-saver": "^2.0.5",
"html-react-parser": "^1.2.1",
"html-to-react": "^1.4.5",
"i18next": "^20.3.0",
"jquery": "^3.6.0",
"jszip": "^3.5.0",
"mui-datatables": "^3.7.1",
"papaparse": "^5.3.0",
"react": "^17.0.1",
"react-csv-reader": "^3.3.0",
"react-data-table-component": "^6.11.7",
"react-dom": "^17.0.1",
"react-file-reader": "^1.1.4",
"react-html-parser": "^2.0.2",
"react-i18next": "^11.8.15",
"react-icons": "^4.1.0",
"react-medium-image-zoom": "^3.1.3",
"react-minimal-side-navigation": "^1.5.1",
"react-router": "^5.2.0",
"react-router-config": "^5.1.1",
"react-router-dom": "^5.2.0",
"react-scripts": "4.0.0",
"styled-components": "^5.3.0",
"tsv": "^0.2.0",
"web-vitals": "^0.2.4",
"yaml": "^1.10.0"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"predeploy": "npm run build",
"deploy": "gh-pages -d build"
},
"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"
]
},
"devDependencies": {
"gh-pages": "^3.2.1",
"html-loader": "^2.1.2"
}
}
import React, {useState} from "react";
import Routes from "./_routes";
import { defaultValues } from '../utils/defaultValues'
export const App = () => {
const [experiments, setExperiments] = useState([
{
"Files":"",
"Sample":"",
"Data type":"",
"Condition":"",
"Name":""
}
])
const [configData, setConfig] = useState(defaultValues)
const [nExperimentsRows, setExperimentsRows] = useState(1)
const [outputsFiles, setOutputsFiles] = useState({})
const onConfigChange = (field, value) => {
const newValue = { ...configData, [field]: value }
setConfig(newValue)
}
return <Routes
configData={configData}
onConfigChange={onConfigChange}
nExperimentsRows={nExperimentsRows}
setExperimentsRows={setExperimentsRows}
experiments={experiments}
setExperiments={setExperiments}
outputsFiles={outputsFiles}
setOutputsFiles={setOutputsFiles}
/>;
};
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment