@abi-software/map-side-bar 1.2.0-beta.5 → 1.2.0-beta.8

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/package-lock.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@abi-software/map-side-bar",
3
- "version": "1.2.0-beta.2",
3
+ "version": "1.2.0-beta.7",
4
4
  "lockfileVersion": 1,
5
5
  "requires": true,
6
6
  "dependencies": {
7
7
  "@abi-software/gallery": {
8
- "version": "0.3.0-beta.1",
9
- "resolved": "https://registry.npmjs.org/@abi-software/gallery/-/gallery-0.3.0-beta.1.tgz",
10
- "integrity": "sha512-AY2kIWCkHT/gsqjVB3/JjOx332ap0pywWcYkADSiiy0SBOIb5cO6wTCS/CJBmRsa9ft7eLcUzgmATihyyuTgKg==",
8
+ "version": "0.3.0-beta.2",
9
+ "resolved": "https://registry.npmjs.org/@abi-software/gallery/-/gallery-0.3.0-beta.2.tgz",
10
+ "integrity": "sha512-sYfXNdM3jhRmEJy9gscPfafcyzL9otGqfc349SRRzFxeEsncZlFSEPU0huXgt5y3+FxF+VzKPoYhcENDmSDn9w==",
11
11
  "requires": {
12
12
  "@babel/code-frame": "^7.12.11",
13
13
  "axios": "^0.26.1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/map-side-bar",
3
- "version": "1.2.0-beta.5",
3
+ "version": "1.2.0-beta.8",
4
4
  "main": "./dist/map-side-bar.common.js",
5
5
  "files": [
6
6
  "dist/*",
@@ -17,7 +17,7 @@
17
17
  "start": "vue-cli-service serve"
18
18
  },
19
19
  "dependencies": {
20
- "@abi-software/gallery": "^0.3.0-beta.1",
20
+ "@abi-software/gallery": "^0.3.0-beta.2",
21
21
  "@abi-software/svg-sprite": "^0.1.14",
22
22
  "algoliasearch": "^4.10.5",
23
23
  "element-ui": "^2.13.0",
@@ -23,6 +23,7 @@
23
23
  :thumbnails="entry.thumbnails"
24
24
  :label="label"
25
25
  :datasetThumbnail="thumbnail"
26
+ :dataset-biolucida="biolucidaData"
26
27
  @card-clicked="galleryClicked"/>
27
28
  </span>
28
29
  <div class="card-right" >
@@ -167,11 +168,7 @@ export default {
167
168
  },
168
169
  methods: {
169
170
  cardClicked: function(){
170
- if(this.entry.scaffolds){
171
- this.openScaffold()
172
- }else{
173
- this.openDataset()
174
- }
171
+ this.openDataset()
175
172
  },
176
173
  galleryClicked: function(payload) {
177
174
  this.propogateCardAction(payload)
@@ -264,7 +261,7 @@ export default {
264
261
  const datasetVersion = this.version;
265
262
  const prefix = this.envVars.NL_LINK_PREFIX;
266
263
  const resource = {
267
- share_link: `${prefix}/dataviewer?datasetId=${datasetId}&version=${datasetVersion}&path=${filePath}`
264
+ share_link: `${prefix}/dataviewer?datasetId=${datasetId}&version=${datasetVersion}&path=files/${filePath}`
268
265
  };
269
266
  let action = {
270
267
  label: capitalise(this.label),
@@ -197,7 +197,7 @@ export default {
197
197
  }
198
198
  let action = {
199
199
  label: capitalise(this.label),
200
- resource: `${this.envVars.API_LOCATION}s3-resource/${this.datasetId}/${this.datasetVersion}/files/${filePath}`,
200
+ resource: `${this.envVars.API_LOCATION}s3-resource/${this.datasetId}/${this.datasetVersion}/${filePath}`,
201
201
  title: "View plot",
202
202
  type: "Plot",
203
203
  discoverId: this.discoverId,
@@ -266,7 +266,7 @@ export default {
266
266
  filePath = filePath.replaceAll(",", "_");
267
267
  const prefix = this.envVars.NL_LINK_PREFIX;
268
268
  const resource = {
269
- share_link: `${prefix}/dataviewer?datasetId=${this.datasetId}&version=${this.datasetVersion}&path=${filePath}`,
269
+ share_link: `${prefix}/dataviewer?datasetId=${this.datasetId}&version=${this.datasetVersion}&path=files/${filePath}`,
270
270
  };
271
271
  let action = {
272
272
  label: capitalise(this.label),
@@ -376,14 +376,6 @@ export default {
376
376
  id: dataset_image.image_id,
377
377
  }
378
378
  );
379
- this.getImageInfoFromBiolucida(
380
- this.envVars.API_LOCATION,
381
- items,
382
- {
383
- id: dataset_image.image_id,
384
- fetchAttempts: 0,
385
- }
386
- );
387
379
  const resource = {
388
380
  share_link: dataset_image.share_link,
389
381
  id: dataset_image.image_id,
@@ -399,7 +391,7 @@ export default {
399
391
  };
400
392
  return {
401
393
  id: dataset_image.image_id,
402
- title: null,
394
+ title: `Biolucida Image`,
403
395
  type: "Image",
404
396
  thumbnail: thumbnailURL,
405
397
  userData: action,