@geode/opengeodeweb-front 6.0.0-rc.4 → 6.0.0-rc.6
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/components/ObjectSelector.vue +42 -14
- package/package.json +6 -6
|
@@ -1,17 +1,36 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<FetchingData v-if="loading" />
|
|
3
|
-
<v-row v-else-if="allowed_objects.length" class="justify-left">
|
|
4
|
-
<v-col v-for="
|
|
5
|
-
<v-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
3
|
+
<v-row v-else-if="Object.keys(allowed_objects).length" class="justify-left">
|
|
4
|
+
<v-col v-for="(value, key) in allowed_objects" :key="key" cols="2" md="2">
|
|
5
|
+
<v-tooltip
|
|
6
|
+
:disabled="value.is_saveable"
|
|
7
|
+
:text="
|
|
8
|
+
value['is_loadable']
|
|
9
|
+
? geode_objects[key].tooltip
|
|
10
|
+
: `Data not loadable with this class (${key})`
|
|
11
|
+
"
|
|
12
|
+
location="bottom"
|
|
13
|
+
>
|
|
14
|
+
<template v-slot:activator="{ props }">
|
|
15
|
+
<span v-bind="props">
|
|
16
|
+
<v-card
|
|
17
|
+
v-ripple
|
|
18
|
+
class="card ma-2"
|
|
19
|
+
hover
|
|
20
|
+
rounded
|
|
21
|
+
:disabled="!value['is_loadable']"
|
|
22
|
+
:elevation="value['is_loadable'] ? 5 : 3"
|
|
23
|
+
>
|
|
24
|
+
<v-img
|
|
25
|
+
:src="geode_objects[key].image"
|
|
26
|
+
cover
|
|
27
|
+
@click="set_geode_object(key)"
|
|
28
|
+
:class="!value['is_loadable'] ? 'disabled' : ''"
|
|
29
|
+
/>
|
|
30
|
+
</v-card>
|
|
31
|
+
</span>
|
|
32
|
+
</template>
|
|
33
|
+
</v-tooltip>
|
|
15
34
|
</v-col>
|
|
16
35
|
</v-row>
|
|
17
36
|
<v-row v-else class="pa-5">
|
|
@@ -45,8 +64,7 @@
|
|
|
45
64
|
const { filenames, key } = props
|
|
46
65
|
|
|
47
66
|
const loading = ref(false)
|
|
48
|
-
const allowed_objects = ref(
|
|
49
|
-
|
|
67
|
+
const allowed_objects = ref({})
|
|
50
68
|
const toggle_loading = useToggle(loading)
|
|
51
69
|
|
|
52
70
|
async function get_allowed_objects() {
|
|
@@ -95,3 +113,13 @@
|
|
|
95
113
|
get_allowed_objects()
|
|
96
114
|
})
|
|
97
115
|
</script>
|
|
116
|
+
|
|
117
|
+
<style scoped>
|
|
118
|
+
.disabled {
|
|
119
|
+
filter: opacity(0.7);
|
|
120
|
+
cursor: pointer;
|
|
121
|
+
}
|
|
122
|
+
.disabled div {
|
|
123
|
+
cursor: not-allowed;
|
|
124
|
+
}
|
|
125
|
+
</style>
|
package/package.json
CHANGED
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
"lint": "eslint --fix --ext .js,.vue --ignore-path .gitignore ."
|
|
5
5
|
},
|
|
6
6
|
"devDependencies": {
|
|
7
|
-
"eslint": "^8.
|
|
8
|
-
"eslint-plugin-import": "^2.29.
|
|
7
|
+
"eslint": "^8.56.0",
|
|
8
|
+
"eslint-plugin-import": "^2.29.1",
|
|
9
9
|
"eslint-plugin-nuxt": "^4.0.0",
|
|
10
10
|
"eslint-plugin-prettier": "^5.0.1",
|
|
11
11
|
"eslint-plugin-prettier-vue": "^5.0.0",
|
|
12
12
|
"eslint-plugin-vue": "^9.19.2",
|
|
13
|
-
"eslint-plugin-vuetify": "^2.1.
|
|
13
|
+
"eslint-plugin-vuetify": "^2.1.1",
|
|
14
14
|
"nuxt": "^3.8.2",
|
|
15
15
|
"prettier": "3.1.1"
|
|
16
16
|
},
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
},
|
|
20
20
|
"description": "OpenSource Vue/Vuetify framework for web applications",
|
|
21
21
|
"type": "module",
|
|
22
|
-
"version": "6.0.0-rc.
|
|
22
|
+
"version": "6.0.0-rc.6",
|
|
23
23
|
"main": "./nuxt.config.js",
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@kitware/vtk.js": "^29.2.0",
|
|
26
26
|
"@mdi/font": "^7.3.67",
|
|
27
27
|
"@pinia/nuxt": "^0.5.1",
|
|
28
|
-
"@types/node": "^20.10.
|
|
28
|
+
"@types/node": "^20.10.5",
|
|
29
29
|
"@vueuse/components": "^10.7.0",
|
|
30
30
|
"@vueuse/core": "^10.7.0",
|
|
31
31
|
"ajv": "^8.12.0",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"sass": "^1.69.5",
|
|
35
35
|
"semver": "^7.5.4",
|
|
36
36
|
"vue-recaptcha": "^2.0.3",
|
|
37
|
-
"vuetify": "^3.4.
|
|
37
|
+
"vuetify": "^3.4.7",
|
|
38
38
|
"wslink": "^1.12.4"
|
|
39
39
|
},
|
|
40
40
|
"repository": {
|