@abi-software/mapintegratedvuer 0.7.0-vue3.2 → 0.7.0-vue3.4

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.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@abi-software/mapintegratedvuer",
3
- "version": "0.7.0-vue3.2",
3
+ "version": "0.7.0-vue3.4",
4
4
  "license": "Apache-2.0",
5
5
  "scripts": {
6
6
  "serve": "vite --host --force",
7
7
  "build-bundle": "vite build",
8
8
  "test-unit": "mochapack --webpack-config test/unit/webpack.config.js --require test/unit/setup.js test/unit/**/*.spec.js",
9
- "lint": "vue-cli-service lint",
10
- "build-static": "vue-cli-service build --dest test_html --mode static",
11
- "start": "vue-cli-service serve",
9
+ "test": "vitest --dom",
10
+ "build-static": "vite build -c vite.static-build.js",
12
11
  "cypress": "cypress",
12
+ "cypress-component": "cypress run --component",
13
13
  "report:merge": "mochawesome-merge cypress/results/json/*json > cypress/results/mochawesome-bundle.json",
14
14
  "report:generate": "marge cypress/results/mochawesome-bundle.json -o cypress/reports/html",
15
15
  "changelog": "auto-changelog -p --output CHANGELOG.md --template keepachangelog",
@@ -42,11 +42,15 @@
42
42
  "*.js"
43
43
  ],
44
44
  "dependencies": {
45
- "@abi-software/flatmapvuer": "^0.6.0-vue3.4",
45
+ "@abi-software/flatmapvuer": "^0.6.0-vue3.6",
46
46
  "@abi-software/map-side-bar": "^1.7.0-vue3.4",
47
- "@abi-software/scaffoldvuer": "^0.4.0-vue3.5",
47
+ "@abi-software/plotvuer": "^0.4.0-vue-3-alpha.5",
48
+ "@abi-software/scaffoldvuer": "^0.4.0-vue3.6",
49
+ "@abi-software/simulationvuer": "^0.7.0-vue-3-alpha.3",
48
50
  "@abi-software/svg-sprite": "^0.4.0-vue3-beta.0",
51
+ "@cypress/vite-dev-server": "^5.0.7",
49
52
  "@element-plus/icons-vue": "^2.3.1",
53
+ "@pinia/testing": "^0.1.3",
50
54
  "@soda/get-current-script": "^1.0.2",
51
55
  "core-js": "^3.22.5",
52
56
  "css-element-queries": "^1.2.3",
@@ -71,21 +75,21 @@
71
75
  "devDependencies": {
72
76
  "@cypress/webpack-dev-server": "^1.3.1",
73
77
  "@vitejs/plugin-vue": "^4.6.2",
74
- "@vue/test-utils": "^2.4.3",
78
+ "@vue/test-utils": "^2.4.4",
75
79
  "auto-changelog": "^2.4.0",
76
80
  "babel-eslint": "^10.0.3",
77
81
  "babel-plugin-component": "^1.1.1",
78
82
  "base64-inline-loader": "^2.0.1",
79
83
  "canvas": "^2.8.0",
80
84
  "chai": "^4.1.2",
81
- "cypress": "^12.11.0",
82
- "cypress-multi-reporters": "^1.6.3",
85
+ "cypress": "^13.6.4",
86
+ "cypress-multi-reporters": "^1.6.4",
83
87
  "cypress-wait-until": "^1.7.1",
84
88
  "dom-parser": "^0.1.6",
85
89
  "eslint": "^8.56.0",
86
- "eslint-plugin-cypress": "^2.12.1",
90
+ "eslint-plugin-cypress": "^2.15.1",
87
91
  "eslint-plugin-vue": "^9.19.2",
88
- "file-loader": "^5.1.0",
92
+ "happy-dom": "^13.3.8",
89
93
  "jsdom": "^16.2.2",
90
94
  "jsdom-global": "^3.0.2",
91
95
  "mocha": "^8.1.3",
@@ -93,11 +97,9 @@
93
97
  "mochawesome": "^7.1.3",
94
98
  "mochawesome-merge": "^4.3.0",
95
99
  "mochawesome-report-generator": "^6.2.0",
96
- "node-loader": "^0.6.0",
97
- "raw-loader": "^0.5.1",
98
- "resolve-url-loader": "^3.1.2",
99
100
  "sass": "^1.69.5",
100
- "vite": "^5.0.10"
101
+ "vite": "^5.0.10",
102
+ "vitest": "^1.2.2"
101
103
  },
102
104
  "eslintConfig": {
103
105
  "root": true,
@@ -312,7 +312,7 @@ export default {
312
312
  element: wrapperElement,
313
313
  className: "highlight-marker"
314
314
  });
315
- this.settingsStore.updateFeaturedMarkerIdentifie({
315
+ this.settingsStore.updateFeaturedMarkerIdentifier({
316
316
  index,
317
317
  markerIdentifier,
318
318
  });
@@ -1,25 +1,23 @@
1
1
  <template>
2
- <!--
3
2
  <PlotVuer
4
3
  :data-source="entry.resource.dataSource"
5
4
  :metadata="entry.resource.metadata"
6
5
  :supplemental-data="entry.resource.supplementalData"
7
6
  style="overflow: hidden"
8
7
  />
9
- -->
10
8
  </template>
11
9
 
12
10
  <script>
13
11
  /* eslint-disable no-alert, no-console */
14
- //import { PlotVuer } from "@abi-software/plotvuer";
15
- //import "@abi-software/plotvuer/dist/plotvuer.css";
12
+ import { PlotVuer } from "@abi-software/plotvuer";
13
+ import "@abi-software/plotvuer/dist/style.css";
16
14
  import ContentMixin from "../../mixins/ContentMixin";
17
15
 
18
16
  export default {
19
17
  name: "Plot",
20
18
  mixins: [ ContentMixin ],
21
19
  components: {
22
- // PlotVuer,
20
+ PlotVuer,
23
21
  }
24
22
  };
25
23
  </script>
@@ -1,23 +1,21 @@
1
1
  <template>
2
- <!--
3
2
  <SimulationVuer
4
3
  :apiLocation="apiLocation"
5
4
  :id="entry.discoverId"
6
5
  />
7
- -->
8
6
  </template>
9
7
 
10
8
  <script>
11
9
  /* eslint-disable no-alert, no-console */
12
10
  import ContentMixin from "../../mixins/ContentMixin";
13
- //import { SimulationVuer } from "@abi-software/simulationvuer";
14
- //import "@abi-software/simulationvuer/dist/simulationvuer.css";
11
+ import { SimulationVuer } from "@abi-software/simulationvuer";
12
+ import "@abi-software/simulationvuer/dist/style.css";
15
13
 
16
14
  export default {
17
15
  name: "Simulation",
18
16
  mixins: [ ContentMixin ],
19
17
  components: {
20
- // SimulationVuer,
18
+ SimulationVuer,
21
19
  },
22
20
  };
23
21
  </script>
@@ -386,7 +386,7 @@ export default {
386
386
  },
387
387
  data: function () {
388
388
  return {
389
- apiLocation: process.env.VUE_APP_API_LOCATION,
389
+ apiLocation: undefined,
390
390
  activeSpecies: "Rat",
391
391
  scaffoldCamera: undefined,
392
392
  mainStyle: {
package/vite.config.js CHANGED
@@ -44,6 +44,7 @@ export default defineConfig(({ command, mode }) => {
44
44
  output: {
45
45
  globals: {
46
46
  vue: "Vue",
47
+ pinia: "pinia"
47
48
  },
48
49
  },
49
50
  },
@@ -0,0 +1,12 @@
1
+ import { defineConfig } from 'vite'
2
+ import rootConfig from './vite.config.js'
3
+
4
+ // defineWorkspace provides a nice type hinting DX
5
+ export default defineConfig((configEnv) => {
6
+ const config = rootConfig(configEnv);
7
+ config.build = {
8
+ outDir: "test-html"
9
+ };
10
+
11
+ return config;
12
+ })
@@ -0,0 +1,3 @@
1
+ export default [
2
+ 'test/vitest.config.js'
3
+ ]
package/vue.config.js DELETED
@@ -1,48 +0,0 @@
1
- const nodeExternals = require('webpack-node-externals');
2
-
3
- module.exports = {
4
- pluginOptions: {
5
- webpackBundleAnalyzer: {
6
- openAnalyzer: false
7
- }
8
- },
9
- chainWebpack: config => {
10
- // GraphQL Loader
11
- config.module
12
- .rule('shader')
13
- .test(/\.(vs|fs)$/i)
14
- .use('raw-loader')
15
- .loader('raw-loader')
16
- .end()
17
- const fontsRule = config.module.rule('fonts')
18
- fontsRule.uses.clear()
19
- config.module
20
- .rule('fonts')
21
- .test(/\.(ttf|otf|eot|woff|woff2)$/)
22
- .use('base64-inline-loader')
23
- .loader('base64-inline-loader')
24
- .tap(options => {
25
- // modify the options...
26
- return options
27
- })
28
- .end()
29
- },
30
- devServer: {
31
- disableHostCheck: true
32
- },
33
- configureWebpack: config => {
34
- if(process.env.NODE_ENV === 'production') {
35
- //By including element-ui and all abi projects, the problem with element-ui
36
- //stylesheet can be avoided.
37
- config.externals = [ nodeExternals({allowlist: [/^element-ui/, /^@abi-software/, /^marked/, /^maplibre-gl/ ]}) ];
38
- }
39
- },
40
- css: {
41
- //Import variables into all stylesheets.
42
- loaderOptions: {
43
- sass: {
44
- prependData: `@import '@/assets/styles';`
45
- }
46
- }
47
- }
48
- }