@geode/opengeodeweb-front 10.32.1 → 10.32.2-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.
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import ToolPanel from "@ogw_front/components/ToolPanel";
|
|
3
3
|
import fileDownload from "js-file-download";
|
|
4
|
-
import
|
|
5
|
-
|
|
4
|
+
import { useClipboardItems } from "@vueuse/core";
|
|
6
5
|
import { useFeedbackStore } from "@ogw_front/stores/feedback";
|
|
7
6
|
import { useViewerStore } from "@ogw_front/stores/viewer";
|
|
7
|
+
import viewer_schemas from "@geode/opengeodeweb-viewer/opengeodeweb_viewer_schemas.json";
|
|
8
8
|
|
|
9
9
|
const show = defineModel({ type: Boolean, default: false });
|
|
10
10
|
|
|
@@ -19,6 +19,8 @@ const output_extension = ref("png");
|
|
|
19
19
|
const include_background = ref(true);
|
|
20
20
|
const screenshot_type = ref("file");
|
|
21
21
|
|
|
22
|
+
const { copy } = useClipboardItems();
|
|
23
|
+
|
|
22
24
|
async function takeScreenshot() {
|
|
23
25
|
const viewerStore = useViewerStore();
|
|
24
26
|
const feedbackStore = useFeedbackStore();
|
|
@@ -42,7 +44,7 @@ async function takeScreenshot() {
|
|
|
42
44
|
} else {
|
|
43
45
|
try {
|
|
44
46
|
const pngBlob = new Blob([response.blob], { type: "image/png" });
|
|
45
|
-
await
|
|
47
|
+
await copy([new ClipboardItem({ "image/png": pngBlob })]);
|
|
46
48
|
feedbackStore.add_success("Screenshot copied to clipboard");
|
|
47
49
|
} catch (error) {
|
|
48
50
|
feedbackStore.add_error(
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import GlassCard from "@ogw_front/components/GlassCard";
|
|
3
3
|
import { middleTruncate } from "@ogw_front/utils/string";
|
|
4
|
+
import { useClipboard } from "@vueuse/core";
|
|
4
5
|
import { useDataStore } from "@ogw_front/stores/data";
|
|
5
6
|
import { useMenuStore } from "@ogw_front/stores/menu";
|
|
6
7
|
|
|
@@ -19,6 +20,8 @@ const TRUNCATE_MAX_LENGTH = 22;
|
|
|
19
20
|
const TRUNCATE_START_CHARS = 12;
|
|
20
21
|
const TRUNCATE_END_CHARS = 7;
|
|
21
22
|
|
|
23
|
+
const { copy, copied } = useClipboard({ copiedDuring: COPIED_TIMEOUT });
|
|
24
|
+
|
|
22
25
|
const menuStore = useMenuStore();
|
|
23
26
|
const dataStore = useDataStore();
|
|
24
27
|
|
|
@@ -78,17 +81,12 @@ const displayComponentTitle = computed(() => {
|
|
|
78
81
|
);
|
|
79
82
|
});
|
|
80
83
|
|
|
81
|
-
const copied = ref(false);
|
|
82
84
|
async function copyId(targetId) {
|
|
83
85
|
if (!targetId) {
|
|
84
86
|
return;
|
|
85
87
|
}
|
|
86
88
|
try {
|
|
87
|
-
await
|
|
88
|
-
copied.value = true;
|
|
89
|
-
setTimeout(() => {
|
|
90
|
-
copied.value = false;
|
|
91
|
-
}, COPIED_TIMEOUT);
|
|
89
|
+
await copy(targetId);
|
|
92
90
|
} catch (error) {
|
|
93
91
|
console.error("Failed to copy ID:", error);
|
|
94
92
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { middleTruncate } from "@ogw_front/utils/string";
|
|
3
|
+
import { useClipboard } from "@vueuse/core";
|
|
3
4
|
import { useFeedbackStore } from "@ogw_front/stores/feedback";
|
|
4
5
|
|
|
5
6
|
const feedbackStore = useFeedbackStore();
|
|
7
|
+
const { copy } = useClipboard();
|
|
6
8
|
|
|
7
9
|
const { item, isLeaf } = defineProps({
|
|
8
10
|
item: { type: Object, required: true },
|
|
@@ -52,7 +54,7 @@ const tooltipDisabled = computed(() => {
|
|
|
52
54
|
});
|
|
53
55
|
|
|
54
56
|
async function copyToClipboard(text, label) {
|
|
55
|
-
await
|
|
57
|
+
await copy(text);
|
|
56
58
|
feedbackStore.add_success(`${label} copied to clipboard`);
|
|
57
59
|
}
|
|
58
60
|
</script>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geode/opengeodeweb-front",
|
|
3
|
-
"version": "10.32.1",
|
|
3
|
+
"version": "10.32.2-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",
|