gramene-search 1.6.19 → 1.6.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.parcel-cache/{4987902b3f9787cc-BundleGraph-0 → 83e7562660f7cc15-BundleGraph} +0 -0
- package/.parcel-cache/{70f1f7555dda250d-AssetGraph-0 → 9a0d07555444f4da-AssetGraph} +0 -0
- package/.parcel-cache/{7b8e4611c0f03524-AssetGraph-0 → d3a1b9507cb44047-AssetGraph} +0 -0
- package/.parcel-cache/data.mdb +0 -0
- package/.parcel-cache/dc1da35000e13623-RequestGraph +0 -0
- package/.parcel-cache/lock.mdb +0 -0
- package/.parcel-cache/snapshot-dc1da35000e13623.txt +2 -0
- package/dist/{Study.5ff9518c.js → Study.826d318c.js} +9 -9
- package/dist/Study.826d318c.js.map +1 -0
- package/dist/index.css +1 -2
- package/dist/index.css.map +1 -1
- package/dist/index.js +686 -680
- package/dist/index.js.map +1 -1
- package/package.json +2 -4
- package/src/components/Feedback.js +4 -123
- package/src/components/results/details/VEP.js +3 -0
- package/src/demo.js +6 -6
- package/src/maize.html +2 -2
- package/src/static/jbrowse2.umd.dev.js +359304 -0
- package/.parcel-cache/requestGraph-369948a06d23ec44-0 +0 -0
- package/.parcel-cache/requestGraph-nodes-0-369948a06d23ec44-0 +0 -0
- package/.parcel-cache/snapshot-369948a06d23ec44.txt +0 -2
- package/dist/Study.5ff9518c.js.map +0 -1
- /package/.parcel-cache/{a9d9b54b885e4239 → 0cb96b2d2253d5bf} +0 -0
- /package/.parcel-cache/{6e0d647eb7a7035b → 44888011676322e1} +0 -0
- /package/.parcel-cache/{1cb2c17a689c678c → 6b08bad2463798bc} +0 -0
- /package/.parcel-cache/{4096d45442aa8ed9 → 7894f7c9e2b6cc5b} +0 -0
- /package/.parcel-cache/{02ca82bff80c02eb → fe1bcc9106b60671} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gramene-search",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.20",
|
|
4
4
|
"description": "search wrapper for gramene",
|
|
5
5
|
"source": "src/index.js",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -28,7 +28,6 @@
|
|
|
28
28
|
"axios": "^1.6.8",
|
|
29
29
|
"firebase": "^11.0.1",
|
|
30
30
|
"flat-to-nested": "^1.1.1",
|
|
31
|
-
"formik": "^3.0.0-next.8",
|
|
32
31
|
"gramene-bins-client": "^2.3.3",
|
|
33
32
|
"gramene-dbxrefs": "^3.0.14",
|
|
34
33
|
"gramene-efp-browser": "^1.0.8",
|
|
@@ -53,8 +52,7 @@
|
|
|
53
52
|
"react-simple-tree-menu": "^1.1.18",
|
|
54
53
|
"react-switch": "^7.0.0",
|
|
55
54
|
"redux-bundler": "21.0.0",
|
|
56
|
-
"redux-bundler-react": "^1.2.0"
|
|
57
|
-
"yup": "^0.32.9"
|
|
55
|
+
"redux-bundler-react": "^1.2.0"
|
|
58
56
|
},
|
|
59
57
|
"prettier": {
|
|
60
58
|
"singleQuote": true,
|
|
@@ -1,129 +1,10 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import { Formik } from 'formik'
|
|
3
|
-
import * as Yup from 'yup'
|
|
4
|
-
import { Container, Form, Col, Button } from 'react-bootstrap'
|
|
5
|
-
import axios from 'axios'
|
|
6
2
|
|
|
7
|
-
const categories = ['Bug','Enhancement','Help Needed','Data','Uncategorized'];
|
|
8
|
-
const schema = Yup.object().shape({
|
|
9
|
-
name: Yup.string().min(2, 'Too short').max(50, 'Too long').required('Required'),
|
|
10
|
-
category: Yup.string().oneOf(categories).required('Required'),
|
|
11
|
-
subject: Yup.string().min(2, 'Too short').max(50, 'Too long').required('Required'),
|
|
12
|
-
content: Yup.string().min(2, 'Too short').max(50000, 'Too long').required('Required'),
|
|
13
|
-
email: Yup.string().email('Invalid email').required('Required')
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
const postFeedback = (formData) => {
|
|
17
|
-
axios.post('/feedback/', formData)
|
|
18
|
-
.then(function (response) {
|
|
19
|
-
alert(`Thank you for your feedback!\nticket #${response.data.ticket}`);
|
|
20
|
-
})
|
|
21
|
-
.catch(function (error) {
|
|
22
|
-
console.log(error);
|
|
23
|
-
});
|
|
24
|
-
};
|
|
25
3
|
|
|
26
4
|
const Feedback = (props) => (
|
|
27
|
-
<
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
validationSchema={schema}
|
|
31
|
-
onSubmit={postFeedback}
|
|
32
|
-
initialValues={{
|
|
33
|
-
referrer: props.location.state && props.location.state.search || document.referrer,
|
|
34
|
-
category: '',
|
|
35
|
-
subject: '',
|
|
36
|
-
content: '',
|
|
37
|
-
name: '',
|
|
38
|
-
email: ''
|
|
39
|
-
}}
|
|
40
|
-
>
|
|
41
|
-
{({
|
|
42
|
-
handleSubmit,
|
|
43
|
-
handleChange,
|
|
44
|
-
handleBlur,
|
|
45
|
-
values,
|
|
46
|
-
touched,
|
|
47
|
-
isValid,
|
|
48
|
-
errors
|
|
49
|
-
}) => (
|
|
50
|
-
<Form noValidate onSubmit={handleSubmit}>
|
|
51
|
-
<Form.Row>
|
|
52
|
-
<Form.Group as={Col} md="4" controlId="validationFormik01">
|
|
53
|
-
<Form.Label>Name</Form.Label>
|
|
54
|
-
<Form.Control
|
|
55
|
-
type="text"
|
|
56
|
-
name="name"
|
|
57
|
-
value={values.name}
|
|
58
|
-
onChange={handleChange}
|
|
59
|
-
isValid={touched.name && !errors.name}
|
|
60
|
-
/>
|
|
61
|
-
<Form.Control.Feedback type="invalid" style={{display:'block'}}>{errors.name}</Form.Control.Feedback>
|
|
62
|
-
</Form.Group>
|
|
63
|
-
</Form.Row>
|
|
64
|
-
<Form.Row>
|
|
65
|
-
<Form.Group as={Col} md="4" controlId="validationFormik02">
|
|
66
|
-
<Form.Label>Email address</Form.Label>
|
|
67
|
-
<Form.Control
|
|
68
|
-
type="email"
|
|
69
|
-
name="email"
|
|
70
|
-
value={values.email}
|
|
71
|
-
onChange={handleChange}
|
|
72
|
-
isValid={touched.email && !errors.email}
|
|
73
|
-
/>
|
|
74
|
-
<Form.Control.Feedback type="invalid" style={{display:'block'}}>{errors.email}</Form.Control.Feedback>
|
|
75
|
-
</Form.Group>
|
|
76
|
-
</Form.Row>
|
|
77
|
-
<Form.Row>
|
|
78
|
-
<Form.Group as={Col} md="4" controlId="validationFormik02a">
|
|
79
|
-
<Form.Label>Category</Form.Label>
|
|
80
|
-
<Form.Control
|
|
81
|
-
as="select"
|
|
82
|
-
name="category"
|
|
83
|
-
value={values.category}
|
|
84
|
-
onChange={handleChange}
|
|
85
|
-
isValid={touched.category && !errors.category}
|
|
86
|
-
>
|
|
87
|
-
<option>Select a Category</option>
|
|
88
|
-
{categories.map((cat,idx) => (
|
|
89
|
-
<option key={idx}>{cat}</option>
|
|
90
|
-
))}
|
|
91
|
-
</Form.Control>
|
|
92
|
-
<Form.Control.Feedback type="invalid" style={{display:'block'}}>{errors.category}</Form.Control.Feedback>
|
|
93
|
-
</Form.Group>
|
|
94
|
-
</Form.Row>
|
|
95
|
-
<Form.Row>
|
|
96
|
-
<Form.Group as={Col} md="4" controlId="validationFormik03">
|
|
97
|
-
<Form.Label>Subject</Form.Label>
|
|
98
|
-
<Form.Control
|
|
99
|
-
type="text"
|
|
100
|
-
name="subject"
|
|
101
|
-
value={values.subject}
|
|
102
|
-
onChange={handleChange}
|
|
103
|
-
isValid={touched.subject && !errors.subject}
|
|
104
|
-
/>
|
|
105
|
-
<Form.Control.Feedback type="invalid" style={{display:'block'}}>{errors.subject}</Form.Control.Feedback>
|
|
106
|
-
</Form.Group>
|
|
107
|
-
</Form.Row>
|
|
108
|
-
<Form.Row>
|
|
109
|
-
<Form.Group as={Col} md="4" controlId="validationFormik04">
|
|
110
|
-
<Form.Label>Your message</Form.Label>
|
|
111
|
-
<Form.Control
|
|
112
|
-
style={{height:'15rem', width:'40rem'}}
|
|
113
|
-
as="textarea"
|
|
114
|
-
name="content"
|
|
115
|
-
value={values.content}
|
|
116
|
-
onChange={handleChange}
|
|
117
|
-
isValid={touched.content && !errors.content}
|
|
118
|
-
/>
|
|
119
|
-
<Form.Control.Feedback type="invalid" style={{display:'block'}}>{errors.content}</Form.Control.Feedback>
|
|
120
|
-
</Form.Group>
|
|
121
|
-
</Form.Row>
|
|
122
|
-
<Button type="submit">Submit feedback</Button>
|
|
123
|
-
</Form>
|
|
124
|
-
)}
|
|
125
|
-
</Formik>
|
|
126
|
-
</Container>
|
|
5
|
+
<iframe src="https://forms.monday.com/forms/embed/afd004c9495060caf0f1313de599b563?r=use1"
|
|
6
|
+
width="100%" height="1280px"
|
|
7
|
+
style={{border: 0, boxShadow: '5px 5px 56px 0px rgba(0,0,0,0.25)'}}/>
|
|
127
8
|
);
|
|
128
9
|
|
|
129
|
-
export default Feedback;
|
|
10
|
+
export default Feedback;
|
|
@@ -27,6 +27,9 @@ const study_info = {
|
|
|
27
27
|
'8': {label: 'Lasky landraces', type: 'NAT'},
|
|
28
28
|
'9': {label: 'Sorghum Genomics Toolbox', type: 'NAT'}
|
|
29
29
|
},
|
|
30
|
+
'zea_maysb73': {
|
|
31
|
+
'15': {label: 'MaizeGDB 2024', type: 'NAT'}
|
|
32
|
+
},
|
|
30
33
|
'oryza_sativa': {
|
|
31
34
|
'7': {label: 'Rice 3K', type: 'NAT'},
|
|
32
35
|
'29': {label: 'Rice USDA mini core', type: 'NAT'},
|
package/src/demo.js
CHANGED
|
@@ -86,17 +86,17 @@ const panSites = [
|
|
|
86
86
|
id: 'maize',
|
|
87
87
|
name: 'Maize',
|
|
88
88
|
url: 'https://maize-pangenome.gramene.org',
|
|
89
|
-
ensemblURL: 'https://
|
|
90
|
-
ensemblSite: 'https://
|
|
91
|
-
ensemblRest: 'https://data.gramene.org/pansite-ensembl-
|
|
92
|
-
grameneData: 'https://data.gramene.org/
|
|
89
|
+
ensemblURL: 'https://test.gramene.org',
|
|
90
|
+
ensemblSite: 'https://test.gramene.org',
|
|
91
|
+
ensemblRest: 'https://data.gramene.org/pansite-ensembl-108',
|
|
92
|
+
grameneData: 'https://data.gramene.org/maize_v5',
|
|
93
93
|
targetTaxonId: 4577,
|
|
94
94
|
ga: "G-Y7ZYG1R8QT",
|
|
95
|
-
showViews:
|
|
95
|
+
showViews: false,
|
|
96
96
|
not_downtime: 'The search interface will be undergoing maintenance on Tuesday, July 20 from 3:00 - 4:00 PM EDT',
|
|
97
97
|
details: {
|
|
98
98
|
sequences: true,
|
|
99
|
-
VEP:
|
|
99
|
+
VEP: true,
|
|
100
100
|
location: true,
|
|
101
101
|
expression: true,
|
|
102
102
|
homology: true,
|
package/src/maize.html
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<title>Gramene Search</title>
|
|
6
6
|
<script>
|
|
7
7
|
window.gramene = {};
|
|
8
|
-
gramene.defaultServer = 'https://data.gramene.org/
|
|
8
|
+
gramene.defaultServer = 'https://data.gramene.org/maize_v5/swagger';
|
|
9
9
|
</script>
|
|
10
10
|
<script async src="./static/gramene-dalliance/dalliance-all.js"></script>
|
|
11
11
|
<script async src="https://plantreactome.gramene.org/DiagramJs/diagram/diagram.nocache.js"></script>
|
|
@@ -50,4 +50,4 @@
|
|
|
50
50
|
}
|
|
51
51
|
</script>
|
|
52
52
|
</body>
|
|
53
|
-
</html>
|
|
53
|
+
</html>
|