@abi-software/map-side-bar 1.3.0 → 1.3.1

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
@@ -5,9 +5,9 @@
5
5
  "requires": true,
6
6
  "dependencies": {
7
7
  "@abi-software/gallery": {
8
- "version": "0.3.0",
9
- "resolved": "https://registry.npmjs.org/@abi-software/gallery/-/gallery-0.3.0.tgz",
10
- "integrity": "sha512-T66YWvo2qWELFuMr0R9r2oomjpJ1UoFyiPA9FLF/OOaBRqwyYP89pPSE4lIouOHBCLlK1h51QxQ6FxKcLxUxLw==",
8
+ "version": "0.3.1",
9
+ "resolved": "https://registry.npmjs.org/@abi-software/gallery/-/gallery-0.3.1.tgz",
10
+ "integrity": "sha512-ED5ppMiXfHbobM073SnDiUhomviLH+dSQ6jgk6b9ULBkdTmF6r0cE6WbPHYJHdNgZVJDbYokBieO/URrff8QhQ==",
11
11
  "requires": {
12
12
  "@babel/code-frame": "^7.12.11",
13
13
  "axios": "^0.26.1",
@@ -55,14 +55,14 @@
55
55
  }
56
56
  },
57
57
  "core-js": {
58
- "version": "3.22.7",
59
- "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.22.7.tgz",
60
- "integrity": "sha512-Jt8SReuDKVNZnZEzyEQT5eK6T2RRCXkfTq7Lo09kpm+fHjgGewSbNjV+Wt4yZMhPDdzz2x1ulI5z/w4nxpBseg=="
58
+ "version": "3.22.8",
59
+ "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.22.8.tgz",
60
+ "integrity": "sha512-UoGQ/cfzGYIuiq6Z7vWL1HfkE9U9IZ4Ub+0XSiJTCzvbZzgPA69oDF2f+lgJ6dFFLEdjW5O6svvoKzXX23xFkA=="
61
61
  },
62
62
  "element-ui": {
63
- "version": "2.15.8",
64
- "resolved": "https://registry.npmjs.org/element-ui/-/element-ui-2.15.8.tgz",
65
- "integrity": "sha512-N54zxosRFqpYax3APY3GeRmtOZwIls6Z756WM0kdPZ5Q92PIeKHnZgF1StlamIg9bLxP1k+qdhTZvIeQlim09A==",
63
+ "version": "2.15.9",
64
+ "resolved": "https://registry.npmjs.org/element-ui/-/element-ui-2.15.9.tgz",
65
+ "integrity": "sha512-dx45nQLt4Hn87/Z9eRr3ex6KFZbxlFAwEU3QoW3wA5EsYftvHTyL9Pq7VnXXD7hu1Eiaup2jcs6kp+/VSFmXuA==",
66
66
  "requires": {
67
67
  "async-validator": "~1.8.1",
68
68
  "babel-helper-vue-jsx-merge-props": "^2.0.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/map-side-bar",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
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",
20
+ "@abi-software/gallery": "^0.3.1",
21
21
  "@abi-software/svg-sprite": "^0.1.14",
22
22
  "algoliasearch": "^4.10.5",
23
23
  "element-ui": "^2.13.0",
@@ -123,6 +123,8 @@ export default {
123
123
  removeDoubleFilesPath: function(path){
124
124
  if (path.includes('files/')){
125
125
  return path.replace('files/', '')
126
+ } else if (path.includes('files\\')) {
127
+ return path.replace('files\\', '')
126
128
  } else {
127
129
  return path
128
130
  }
@@ -147,9 +149,8 @@ export default {
147
149
 
148
150
  },
149
151
  openViewFile: function(view){
150
-
151
152
  // note that we assume that the view file is in the same directory as the scaffold (viewUrls take relative paths)
152
- this.entry.viewUrl = view.path.split('/')[view.path.split('/').length-1]
153
+ this.entry.viewUrl = `${this.entry.apiLocation}s3-resource/${this.entry.discoverId}/${this.entry.version}/${view.path}`
153
154
  this.entry.type = 'Scaffold View'
154
155
  EventBus.$emit("PopoverActionClick", this.entry)
155
156
  }
@@ -235,6 +235,7 @@ export default {
235
235
  .dataset-card {
236
236
  padding-left: 16px;
237
237
  position: relative;
238
+ min-height:17rem;
238
239
  }
239
240
 
240
241
  .title {
@@ -105,7 +105,7 @@ export default {
105
105
  },
106
106
  imageStyle: { maxWidth: '160px', maxHeight: '160px'},
107
107
  shadow: "never",
108
- bottomSpacer: { minHeight: '1.5rem' },
108
+ bottomSpacer: { minHeight: '0rem' },
109
109
  resetIndex: false
110
110
  };
111
111
  },
@@ -135,6 +135,7 @@ export default {
135
135
  thumbnail: this.datasetThumbnail,
136
136
  link,
137
137
  hideType: true,
138
+ hideTitle: true,
138
139
  });
139
140
  }
140
141
  },
@@ -243,6 +244,7 @@ export default {
243
244
  discoverId: this.datasetId,
244
245
  apiLocation: this.envVars.API_LOCATION,
245
246
  version: this.datasetVersion,
247
+ banner: this.datasetThumbnail,
246
248
  contextCardUrl: this.entry.contextualInformation ? `${this.envVars.API_LOCATION}s3-resource/${this.datasetId}/${this.datasetVersion}/files/${this.entry.contextualInformation}` : undefined,
247
249
  };
248
250
  this.items['Scaffolds'].push({
@@ -314,6 +316,7 @@ export default {
314
316
  title: " ",
315
317
  type: "Simulation",
316
318
  hideType: true,
319
+ hideTitle: true,
317
320
  userData: action,
318
321
  });
319
322
  }