@geode/opengeodeweb-front 10.33.2 → 10.33.3-rc.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.
|
@@ -21,6 +21,11 @@ const TRUNCATE_START_CHARS = 12;
|
|
|
21
21
|
const TRUNCATE_END_CHARS = 7;
|
|
22
22
|
|
|
23
23
|
const { copy, copied } = useClipboard({ copiedDuring: COPIED_TIMEOUT });
|
|
24
|
+
const copiedId = ref("");
|
|
25
|
+
|
|
26
|
+
function isCopied(id) {
|
|
27
|
+
return copied.value && copiedId.value === id;
|
|
28
|
+
}
|
|
24
29
|
|
|
25
30
|
const menuStore = useMenuStore();
|
|
26
31
|
const dataStore = useDataStore();
|
|
@@ -87,6 +92,7 @@ async function copyId(targetId) {
|
|
|
87
92
|
}
|
|
88
93
|
try {
|
|
89
94
|
await copy(targetId);
|
|
95
|
+
copiedId.value = targetId;
|
|
90
96
|
} catch (error) {
|
|
91
97
|
console.error("Failed to copy ID:", error);
|
|
92
98
|
}
|
|
@@ -102,7 +108,7 @@ function formatId(id) {
|
|
|
102
108
|
return `${id.slice(0, ID_SLICE_START)}...${id.slice(id.length - ID_SLICE_END_OFFSET)}`;
|
|
103
109
|
}
|
|
104
110
|
|
|
105
|
-
const formattedId = computed(() => formatId(metaData
|
|
111
|
+
const formattedId = computed(() => formatId(metaData.id));
|
|
106
112
|
</script>
|
|
107
113
|
|
|
108
114
|
<template>
|
|
@@ -136,12 +142,12 @@ const formattedId = computed(() => formatId(metaData?.id));
|
|
|
136
142
|
@click.stop="copyId(metaData.id)"
|
|
137
143
|
>
|
|
138
144
|
<span class="id-text">
|
|
139
|
-
{{
|
|
145
|
+
{{ isCopied(metaData.id) ? "COPIED!" : formattedId }}
|
|
140
146
|
</span>
|
|
141
147
|
<v-icon
|
|
142
|
-
:icon="
|
|
148
|
+
:icon="isCopied(metaData.id) ? 'mdi-check' : 'mdi-content-copy'"
|
|
143
149
|
size="10"
|
|
144
|
-
:color="
|
|
150
|
+
:color="isCopied(metaData.id) ? 'success' : 'white'"
|
|
145
151
|
class="ml-1"
|
|
146
152
|
/>
|
|
147
153
|
</v-col>
|
|
@@ -166,9 +172,14 @@ const formattedId = computed(() => formatId(metaData?.id));
|
|
|
166
172
|
@click.stop="copyId(componentItem.id)"
|
|
167
173
|
>
|
|
168
174
|
<span class="id-text">
|
|
169
|
-
{{ formatId(componentItem.id) }}
|
|
175
|
+
{{ isCopied(componentItem.id) ? "COPIED!" : formatId(componentItem.id) }}
|
|
170
176
|
</span>
|
|
171
|
-
<v-icon
|
|
177
|
+
<v-icon
|
|
178
|
+
:icon="isCopied(componentItem.id) ? 'mdi-check' : 'mdi-content-copy'"
|
|
179
|
+
size="10"
|
|
180
|
+
:color="isCopied(componentItem.id) ? 'success' : 'white'"
|
|
181
|
+
class="ml-1"
|
|
182
|
+
/>
|
|
172
183
|
</v-col>
|
|
173
184
|
</template>
|
|
174
185
|
</v-row>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geode/opengeodeweb-front",
|
|
3
|
-
"version": "10.33.
|
|
3
|
+
"version": "10.33.3-rc.1",
|
|
4
4
|
"description": "OpenSource Vue/Nuxt/Pinia/Vuetify framework for web applications",
|
|
5
5
|
"homepage": "https://github.com/Geode-solutions/OpenGeodeWeb-Front",
|
|
6
6
|
"bugs": {
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"build": ""
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@geode/opengeodeweb-back": "
|
|
43
|
-
"@geode/opengeodeweb-viewer": "
|
|
42
|
+
"@geode/opengeodeweb-back": "next",
|
|
43
|
+
"@geode/opengeodeweb-viewer": "next",
|
|
44
44
|
"@google-cloud/run": "3.2.0",
|
|
45
45
|
"@kitware/vtk.js": "33.3.0",
|
|
46
46
|
"@mdi/font": "7.4.47",
|