@geode/opengeodeweb-front 7.1.0 → 7.1.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.
@@ -11,7 +11,7 @@ jobs:
11
11
  uses: actions/checkout@v4
12
12
  - name: Unit tests
13
13
  run: |
14
- npm install
14
+ npm i
15
15
  npm run test
16
16
 
17
17
  build:
@@ -7,16 +7,16 @@
7
7
  >
8
8
  <v-row>
9
9
  <v-col cols="auto" class="text-white text-center">
10
- <v-tooltip location="end">
11
- <span>
12
- We turn off our server automatically after 5 minutes of inactivity
13
- </span>
14
- <template #activator="{ props }">
15
- <v-icon v-bind="props" color="white" class="justify-right">
16
- mdi-information-outline
17
- </v-icon>
18
- </template>
19
- </v-tooltip>
10
+ <v-icon
11
+ v-bind="props"
12
+ color="white"
13
+ class="justify-right"
14
+ v-tooltip:bottom="
15
+ 'We turn off our server automatically after 5 minutes of inactivity'
16
+ "
17
+ >
18
+ mdi-information-outline
19
+ </v-icon>
20
20
  </v-col>
21
21
  <v-col cols="auto" class="text-white font-weight-bold">
22
22
  Server timed out due to inactivity, please reload this page or click
@@ -9,16 +9,12 @@
9
9
  class="justify-left"
10
10
  >
11
11
  <v-card class="card ma-2 pa-2" width="100%">
12
- <v-tooltip
13
- :text="`Export as a ${output_geode_object}`"
14
- location="bottom"
12
+ <v-card-title
13
+ v-tooltip:bottom="`Export as a ${output_geode_object}`"
14
+ v-bind="props"
15
15
  >
16
- <template v-slot:activator="{ props }">
17
- <v-card-title v-bind="props">
18
- {{ output_geode_object }}
19
- </v-card-title>
20
- </template>
21
- </v-tooltip>
16
+ {{ output_geode_object }}
17
+ </v-card-title>
22
18
  <v-card-text>
23
19
  <v-row>
24
20
  <v-col
@@ -111,10 +107,8 @@
111
107
  final_object[key] = {}
112
108
  for (const value of values) {
113
109
  for (const extension of Object.keys(value[key])) {
114
- if (value[key][extension].is_saveable == false) {
115
- final_object[key][extension] = { is_saveable: false }
116
- } else {
117
- final_object[key][extension] = { is_saveable: true }
110
+ final_object[key][extension] = {
111
+ is_saveable: value[key][extension].is_saveable,
118
112
  }
119
113
  }
120
114
  }
@@ -1,19 +1,15 @@
1
1
  <template>
2
2
  <v-row dense :class="[$style.floatToolbar, 'flex-column']">
3
3
  <v-col>
4
- <v-tooltip location="left">
5
- Reset camera
6
- <template #activator="{ props }">
7
- <v-btn
8
- density="comfortable"
9
- v-bind="props"
10
- icon
11
- @click.stop="reset_camera"
12
- >
13
- <v-icon size="32"> mdi-cube-scan </v-icon>
14
- </v-btn>
15
- </template>
16
- </v-tooltip>
4
+ <v-btn
5
+ density="comfortable"
6
+ v-bind="props"
7
+ icon
8
+ @click.stop="reset_camera"
9
+ v-tooltip:left="'Reset camera'"
10
+ >
11
+ <v-icon icon="mdi-cube-scan" size="32" />
12
+ </v-btn>
17
13
  </v-col>
18
14
  </v-row>
19
15
  </template>
package/package.json CHANGED
@@ -35,11 +35,11 @@
35
35
  },
36
36
  "description": "OpenSource Vue/Vuetify framework for web applications",
37
37
  "type": "module",
38
- "version": "7.1.0",
38
+ "version": "7.1.1",
39
39
  "main": "./nuxt.config.js",
40
40
  "dependencies": {
41
- "@geode/opengeodeweb-back": "4.1.0",
42
- "@geode/opengeodeweb-viewer": "0.1.1",
41
+ "@geode/opengeodeweb-back": "4.1.1",
42
+ "@geode/opengeodeweb-viewer": "0.1.2",
43
43
  "@kitware/vtk.js": "^30.3.1",
44
44
  "@mdi/font": "^7.4.47",
45
45
  "@pinia/nuxt": "^0.5.1",
@@ -31,21 +31,21 @@ describe("ExtensionSelector.vue", async () => {
31
31
  },
32
32
  }),
33
33
  })
34
- // const wrapper = await mountSuspended(ExtensionSelector, {
35
- // global: {
36
- // plugins: [vuetify],
37
- // },
38
- // props: { input_geode_object: "BRep", filenames: ["test.toto"] },
39
- // })
40
- // await nextTick()
41
- // expect(wrapper.exists()).toBe(true)
42
- // const v_card = await wrapper.findAllComponents(components.VCard)
43
- // await v_card[1].trigger("click")
44
- // expect(wrapper.emitted()).toHaveProperty("update_values")
45
- // expect(wrapper.emitted().update_values).toHaveLength(1)
46
- // expect(wrapper.emitted().update_values[0][0]).toStrictEqual({
47
- // output_geode_object,
48
- // output_extension,
49
- // })
34
+ const wrapper = await mountSuspended(ExtensionSelector, {
35
+ global: {
36
+ plugins: [vuetify],
37
+ },
38
+ props: { input_geode_object: "BRep", filenames: ["test.toto"] },
39
+ })
40
+ await nextTick()
41
+ expect(wrapper.exists()).toBe(true)
42
+ const v_card = await wrapper.findAllComponents(components.VCard)
43
+ await v_card[1].trigger("click")
44
+ expect(wrapper.emitted()).toHaveProperty("update_values")
45
+ expect(wrapper.emitted().update_values).toHaveLength(1)
46
+ expect(wrapper.emitted().update_values[0][0]).toStrictEqual({
47
+ output_geode_object,
48
+ output_extension,
49
+ })
50
50
  })
51
51
  })