@abi-software/flatmapvuer 0.2.3-fixes-1 → 0.2.4-beta-0

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/flatmapvuer",
3
- "version": "0.2.3",
3
+ "version": "0.2.3-fixes-4",
4
4
  "lockfileVersion": 1,
5
5
  "requires": true,
6
6
  "dependencies": {
@@ -2869,6 +2869,53 @@
2869
2869
  }
2870
2870
  }
2871
2871
  },
2872
+ "base64-inline-loader": {
2873
+ "version": "2.0.1",
2874
+ "resolved": "https://registry.npmjs.org/base64-inline-loader/-/base64-inline-loader-2.0.1.tgz",
2875
+ "integrity": "sha512-PW2f2Xl2PDB+0ny7H81Ucxh3L0IcZVqbWdKrCf52OJhphy4lgv4G1KOLmhxRGwK9qVtPqqcEwvnemqOOFRSjOw==",
2876
+ "dev": true,
2877
+ "requires": {
2878
+ "loader-utils": "^2.0.0",
2879
+ "mime-types": "^2.1.32"
2880
+ },
2881
+ "dependencies": {
2882
+ "json5": {
2883
+ "version": "2.2.0",
2884
+ "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.0.tgz",
2885
+ "integrity": "sha512-f+8cldu7X/y7RAJurMEJmdoKXGB/X550w2Nr3tTbezL6RwEE/iMcm+tZnXeoZtKuOq6ft8+CqzEkrIgx1fPoQA==",
2886
+ "dev": true,
2887
+ "requires": {
2888
+ "minimist": "^1.2.5"
2889
+ }
2890
+ },
2891
+ "loader-utils": {
2892
+ "version": "2.0.0",
2893
+ "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.0.tgz",
2894
+ "integrity": "sha512-rP4F0h2RaWSvPEkD7BLDFQnvSf+nK+wr3ESUjNTyAGobqrijmW92zc+SO6d4p4B1wh7+B/Jg1mkQe5NYUEHtHQ==",
2895
+ "dev": true,
2896
+ "requires": {
2897
+ "big.js": "^5.2.2",
2898
+ "emojis-list": "^3.0.0",
2899
+ "json5": "^2.1.2"
2900
+ }
2901
+ },
2902
+ "mime-db": {
2903
+ "version": "1.49.0",
2904
+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.49.0.tgz",
2905
+ "integrity": "sha512-CIc8j9URtOVApSFCQIF+VBkX1RwXp/oMMOrqdyXSBXq5RWNEsRfyj1kiRnQgmNXmHxPoFIxOroKA3zcU9P+nAA==",
2906
+ "dev": true
2907
+ },
2908
+ "mime-types": {
2909
+ "version": "2.1.32",
2910
+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.32.tgz",
2911
+ "integrity": "sha512-hJGaVS4G4c9TSMYh2n6SQAGrC4RnfU+daP8G7cSCmaqNjiOoUY0VHCMS42pxnQmVF1GWwFhbHWn3RIxCqTmZ9A==",
2912
+ "dev": true,
2913
+ "requires": {
2914
+ "mime-db": "1.49.0"
2915
+ }
2916
+ }
2917
+ }
2918
+ },
2872
2919
  "base64-js": {
2873
2920
  "version": "1.5.1",
2874
2921
  "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/flatmapvuer",
3
- "version": "0.2.3-fixes-1",
3
+ "version": "0.2.4-beta-0",
4
4
  "main": "./dist/flatmapvuer.common.js",
5
5
  "files": [
6
6
  "dist/*",
@@ -32,6 +32,7 @@
32
32
  "@vue/cli-service": "^4.5.13",
33
33
  "babel-eslint": "^10.0.3",
34
34
  "babel-plugin-component": "^1.1.1",
35
+ "base64-inline-loader": "^2.0.1",
35
36
  "eslint": "^5.16.0",
36
37
  "eslint-plugin-vue": "^5.0.0",
37
38
  "node-sass": "^4.14.1",
package/src/App.vue CHANGED
@@ -83,7 +83,7 @@ export default {
83
83
  displayCloseButton: false,
84
84
  initial: "Rat",
85
85
  helpMode: false,
86
- flatmapAPI: "https://mapcore-demo.org/devel/flatmap/v1/"
86
+ flatmapAPI: "https://mapcore-demo.org/fccb/flatmap/"
87
87
  }
88
88
  },
89
89
  mounted: function() {
@@ -211,6 +211,7 @@
211
211
  ref="tooltip"
212
212
  class="tooltip"
213
213
  :content="tooltipContent"
214
+ :flatmapAPI="flatmapAPI"
214
215
  @resource-selected="resourceSelected"
215
216
  />
216
217
  </div>
@@ -352,10 +353,8 @@ export default {
352
353
  eventType: eventType
353
354
  };
354
355
  // Disable the nueron pop up for now.
355
- /*
356
356
  if (feature && feature.type !== "marker")
357
357
  this.checkAndCreatePopups(data);
358
- */
359
358
  this.$emit("resource-selected", data);
360
359
  };
361
360
  },
@@ -635,7 +634,7 @@ export default {
635
634
  },
636
635
  warningMessage: {
637
636
  type: String,
638
- default: "Beta feature - under active development"
637
+ default: "Beta feature - This map is based on the connectivity of a rat. New connectivity and species specificity will be added as the SPARC program progress."
639
638
  },
640
639
  /**
641
640
  * State containing state of the flatmap.
@@ -43,6 +43,13 @@ export default {
43
43
  type: String,
44
44
  default: ''
45
45
  },
46
+ /**
47
+ * Specify the endpoint of the flatmap server.
48
+ */
49
+ flatmapAPI: {
50
+ type: String,
51
+ default: "https://mapcore-demo.org/flatmaps/"
52
+ }
46
53
  },
47
54
  watch: {
48
55
  'featureId': function (val){
@@ -85,8 +92,9 @@ export default {
85
92
  flatmapQuery: function(identifier){
86
93
  this.pubmeds = []
87
94
  this.loading.response = true
95
+ let endpoint = this.flatmapAPI + 'knowledge/query/';
88
96
  const data = { sql: 'select publication from publications where entity=?', "params": [identifier]};
89
- fetch('https://mapcore-demo.org/devel/flatmap/v1/knowledge/query/', {
97
+ fetch(endpoint, {
90
98
  method: 'POST',
91
99
  headers: {
92
100
  'Content-Type': 'application/json',
@@ -9,7 +9,7 @@
9
9
  </div>
10
10
 
11
11
 
12
- <pubmed-viewer v-if="content.featureId" class="block" :featureId="content.featureId" @pubmedSearchUrl="pubmedSearchUrlUpdate"/>
12
+ <pubmed-viewer v-if="content.featureId" class="block" :flatmapAPI=flatmapAPI :featureId="content.featureId" @pubmedSearchUrl="pubmedSearchUrlUpdate"/>
13
13
  <div v-if="content.components" class="block">
14
14
  <div class="attribute-title">Components</div>
15
15
  <span class="attribute-content">{{content.components}}</span>
@@ -71,6 +71,13 @@ export default {
71
71
  content: {
72
72
  type: Object,
73
73
  default: undefined
74
+ },
75
+ /**
76
+ * Specify the endpoint of the flatmap server.
77
+ */
78
+ flatmapAPI: {
79
+ type: String,
80
+ default: "https://mapcore-demo.org/flatmaps/"
74
81
  }
75
82
  },
76
83
  data: function() {
@@ -104,7 +111,6 @@ export default {
104
111
  @import "~element-ui/packages/theme-chalk/src/button";
105
112
  @import "~element-ui/packages/theme-chalk/src/container";
106
113
  @import "~element-ui/packages/theme-chalk/src/header";
107
- @import "~element-ui/packages/theme-chalk/src/icon";
108
114
  @import "~element-ui/packages/theme-chalk/src/main";
109
115
 
110
116
  .tooltip-container {
package/vue.config.js CHANGED
@@ -6,6 +6,20 @@ module.exports = {
6
6
  config.externals = [nodeExternals({}) ];
7
7
  }
8
8
  },
9
+ chainWebpack: config => {
10
+ const fontsRule = config.module.rule('fonts')
11
+ fontsRule.uses.clear()
12
+ config.module
13
+ .rule('fonts')
14
+ .test(/\.(ttf|otf|eot|woff|woff2)$/)
15
+ .use('base64-inline-loader')
16
+ .loader('base64-inline-loader')
17
+ .tap(options => {
18
+ // modify the options...
19
+ return options
20
+ })
21
+ .end()
22
+ },
9
23
  css: {
10
24
  //Import variables into all stylesheets.
11
25
  loaderOptions: {