Skip to content

Commit

Permalink
Move URLs to /public/zarr_samples.json file
Browse files Browse the repository at this point in the history
  • Loading branch information
will-moore committed Feb 9, 2023
1 parent 92e127b commit 064a062
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
8 changes: 8 additions & 0 deletions public/zarr_samples.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"urls": [
"https://uk1s3.embassy.ebi.ac.uk/idr/zarr/v0.4/idr0048A/9846152.zarr/",
"https://uk1s3.embassy.ebi.ac.uk/idr/zarr/v0.3/9836842.zarr",
"https://uk1s3.embassy.ebi.ac.uk/idr/zarr/v0.2/6001240.zarr",
"https://uk1s3.embassy.ebi.ac.uk/idr/zarr/v0.1/4495402.zarr"
]
}
9 changes: 3 additions & 6 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,11 @@ import React from "react";

import ImageItem from "./ImageItem";

import zarr_samples_json from "../public/zarr_samples.json";

// DeckGL react component
export default function App() {
let sources = [
"https://uk1s3.embassy.ebi.ac.uk/idr/zarr/v0.4/idr0048A/9846152.zarr/",
"https://uk1s3.embassy.ebi.ac.uk/idr/zarr/v0.3/9836842.zarr",
"https://uk1s3.embassy.ebi.ac.uk/idr/zarr/v0.2/6001240.zarr",
"https://uk1s3.embassy.ebi.ac.uk/idr/zarr/v0.1/4495402.zarr"
]
let sources = zarr_samples_json.urls;

let items = sources.map((source) => <ImageItem key={source} source={source}/>);

Expand Down

0 comments on commit 064a062

Please sign in to comment.