+
Artifact
{{ artifact.groupId }}
{{ artifact.artifactId }}
-
+
Versions
{ selectedVersion = version }">{{ version.version }}
+
+
Danger Zone
+
+ Delete Artifact
+
+
@@ -42,11 +32,7 @@ onMounted(() => {
const id = useRoute().params.id as string;
Artifact.getById(id, (_artifact: Artifact) => {
artifact.value = _artifact;
- const _version = _artifact.versions.at(0);
- if (_version != null)
- {
- selectedVersion.value = _version;
- }
+ selectedVersion.value = _artifact.versions.at(0);
})
})
@@ -57,21 +43,6 @@ function del()
useRouter().push("/artifacts");
})
}
-
-const dependency = computed(() => {
- if (selectedVersion.value)
- {
- const template = [
- "
",
- "\t" + selectedVersion.value.groupId + "",
- "\t" + selectedVersion.value.artifactId + "",
- "\t" + selectedVersion.value.version + "",
- ""
- ]
- return template.join("\n").replace(//g, ">");
- }
- return undefined;
-});
\ No newline at end of file
diff --git a/app/pages/groups/[group_id]/index.vue b/app/pages/groups/[group_id]/index.vue
index e1a4111..ebbd7e6 100644
--- a/app/pages/groups/[group_id]/index.vue
+++ b/app/pages/groups/[group_id]/index.vue
@@ -2,11 +2,18 @@
Group: {{group.groupId}}
+
+
Danger Zone
+
+ Delete
+
+
\ No newline at end of file
diff --git a/app/pages/index.vue b/app/pages/index.vue
index 4aeac7f..18813ea 100644
--- a/app/pages/index.vue
+++ b/app/pages/index.vue
@@ -1,6 +1,16 @@
-
Home
+
Hello, Andreas Dinauer
+
+
+
Total Groups
+
{{groups.data.length}}
+
+
+
Total Artifacts
+
{{artifacts.data.length}}
+
+
Recent Events
@@ -8,6 +18,11 @@