gramene-search 1.2.80 → 1.2.81

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.
@@ -1,2 +1,2 @@
1
- 412117173
2
- 1698693104569466000
1
+ 412207113
2
+ 1698694476766638000
Binary file
Binary file
Binary file
Binary file
Binary file
package/dist/index.js CHANGED
@@ -1804,6 +1804,31 @@ var $541b8b0d8c5501d2$export$2e2bcd8739ae039 = (0, $gXNCa$reduxbundlerreact.conn
1804
1804
 
1805
1805
 
1806
1806
 
1807
+ const $9e29a4f60318db7a$var$ImageLoader = (props)=>{
1808
+ const [loading, setLoading] = (0, $gXNCa$react.useState)(true);
1809
+ (0, $gXNCa$react.useEffect)(()=>{
1810
+ const image = new Image();
1811
+ image.src = props.url;
1812
+ image.onload = ()=>{
1813
+ setLoading(false);
1814
+ };
1815
+ }, []);
1816
+ return /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)("div", {
1817
+ className: "BAR-container",
1818
+ children: [
1819
+ loading && /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("img", {
1820
+ src: "https://www.sorghumbase.org/static/images/dna_spinner.svg",
1821
+ alt: "Loading..."
1822
+ }),
1823
+ !loading && /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("img", {
1824
+ style: {
1825
+ "max-width": "100%"
1826
+ },
1827
+ src: props.url
1828
+ })
1829
+ ]
1830
+ });
1831
+ };
1807
1832
  const $9e29a4f60318db7a$var$Detail = (props)=>{
1808
1833
  const gene = props.geneDocs[props.searchResult.id];
1809
1834
  let paralogs_url;
@@ -1849,13 +1874,9 @@ const $9e29a4f60318db7a$var$Detail = (props)=>{
1849
1874
  }))
1850
1875
  }),
1851
1876
  /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("br", {}),
1852
- /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("img", {
1853
- style: {
1854
- "max-width": "100%"
1855
- },
1856
- src: `${efp_browser.path}/${selectedStudy}/Absolute/${efp_browser.gene}`
1877
+ /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)($9e29a4f60318db7a$var$ImageLoader, {
1878
+ url: `${efp_browser.path}/${selectedStudy}/Absolute/${efp_browser.gene}`
1857
1879
  }),
1858
- /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsx)("br", {}),
1859
1880
  /*#__PURE__*/ (0, $gXNCa$reactjsxruntime.jsxs)("a", {
1860
1881
  href: `${efp_browser.bar}?dataSource=${selectedStudy}&mode=Absolute&primaryGene=${efp_browser.gene}`,
1861
1882
  children: [