gramene-search 1.6.37 → 1.6.39
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/83e7562660f7cc15-BundleGraph +0 -0
- package/.parcel-cache/9a0d07555444f4da-AssetGraph +0 -0
- package/.parcel-cache/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 -2
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/index.js +24 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/bundles/filters.js +11 -0
- package/src/components/results/genes.css +2 -2
- package/src/components/suggestions.js +4 -7
package/package.json
CHANGED
package/src/bundles/filters.js
CHANGED
|
@@ -464,6 +464,17 @@ grameneFilters.reactGrameneFilters = createSelector(
|
|
|
464
464
|
}
|
|
465
465
|
return { type: 'BATCH_ACTIONS', actions: actions };
|
|
466
466
|
}
|
|
467
|
+
if (queryObject.hasOwnProperty('sugg')) {
|
|
468
|
+
const url = new URL(myUrl.href);
|
|
469
|
+
url.search = '';
|
|
470
|
+
return {
|
|
471
|
+
type: 'BATCH_ACTIONS', actions: [
|
|
472
|
+
{type: 'URL_UPDATED', payload: {url: url.href, replace:false}},
|
|
473
|
+
{type: 'GRAMENE_SEARCH_CLEARED'},
|
|
474
|
+
{type: 'GRAMENE_FILTER_ADDED', payload: JSON.parse(queryObject.suggestion)}
|
|
475
|
+
]
|
|
476
|
+
};
|
|
477
|
+
}
|
|
467
478
|
if (queryObject.hasOwnProperty('suggestion')) {
|
|
468
479
|
const url = new URL(myUrl.href);
|
|
469
480
|
url.search = '';
|
|
@@ -53,13 +53,10 @@ const TryAnotherSite = props => {
|
|
|
53
53
|
const query = props.query;
|
|
54
54
|
const config = props.config;
|
|
55
55
|
let sites = Object.keys(config.panSite);
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
</div>
|
|
61
|
-
}
|
|
62
|
-
return <></>
|
|
56
|
+
return <div>
|
|
57
|
+
<Alert variant={'info'}>Don't see what you're looking for? Search for <b>{query}</b> on one of our sister sites</Alert>
|
|
58
|
+
{sites.map((p, idx) => <TryPan key={idx} query={query} pan={config.panSite[p]}/>)}
|
|
59
|
+
</div>
|
|
63
60
|
}
|
|
64
61
|
|
|
65
62
|
const Suggestions = props => {
|