-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathPackagesVersions.vue
More file actions
54 lines (48 loc) · 1.21 KB
/
PackagesVersions.vue
File metadata and controls
54 lines (48 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<script setup>
import { Status } from "@ogw_front/utils/status"
import { useGeodeStore } from "@ogw_front/stores/geode"
const { schema } = defineProps({
schema: { type: Object, required: true },
})
const geodeStore = useGeodeStore()
const packages_versions = ref([])
async function get_packages_versions() {
await geodeStore.request(
schema,
{},
{
response_function: (response) => {
packages_versions.value = response.versions
},
},
)
}
watch(
() => geodeStore.status,
(value) => {
if (value === Status.CONNECTED) {
get_packages_versions()
}
},
)
await get_packages_versions()
</script>
<template>
<v-container>
This tool uses our Open-Source codes
<v-tooltip location="end">
<span
v-for="package_version in packages_versions"
:key="package_version.package"
>
{{ package_version.package }} v{{ package_version.version }}
<br />
</span>
<template #activator="{ props }">
<v-icon v-bind="props" color="primary" class="justify-right">
mdi-information-outline
</v-icon>
</template>
</v-tooltip>
</v-container>
</template>