From 26102a90411aa18ac0c8327b65183cfc75b4c199 Mon Sep 17 00:00:00 2001 From: Andreas Dinauer Date: Sat, 18 Apr 2026 22:21:50 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Minor=20Improvements?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/app.vue | 9 ++- app/assets/base-style.css | 1 - app/assets/style.css | 1 + app/components/VersionComponent.vue | 54 +++++++++++++ app/components/artifact/Codebox.vue | 25 ++++++- app/pages/artifacts/[id]/index.vue | 55 ++++---------- app/pages/groups/[group_id]/index.vue | 18 ++++- app/pages/index.vue | 17 ++++- app/pages/settings/index.vue | 4 - app/utils/HttpUtils.ts | 104 ++++++++++++++++++++++++++ 10 files changed, 236 insertions(+), 52 deletions(-) create mode 100644 app/components/VersionComponent.vue create mode 100644 app/utils/HttpUtils.ts diff --git a/app/app.vue b/app/app.vue index b140a92..a06b5aa 100644 --- a/app/app.vue +++ b/app/app.vue @@ -10,7 +10,9 @@ settingsSettings logout Log Out - +
+ +
@@ -41,10 +43,11 @@ onMounted(() => { width: 100%; min-height: 100%; } -.page > * { - padding: 1rem; +.page-content { + padding: 2rem; } .sidebar { + padding: 1rem; background-color: var(--tile-color); border-right: 1px solid #cddaff; display: grid; diff --git a/app/assets/base-style.css b/app/assets/base-style.css index 35259d3..cc28964 100644 --- a/app/assets/base-style.css +++ b/app/assets/base-style.css @@ -96,7 +96,6 @@ gap: 1rem; } .content-xl { - display: grid; gap: 2rem; } diff --git a/app/assets/style.css b/app/assets/style.css index 3a4ffb4..c149ed8 100644 --- a/app/assets/style.css +++ b/app/assets/style.css @@ -20,6 +20,7 @@ html, body, #__nuxt { html { --tile-color: #eef6ff; --primary-color: #3c74ff; + --danger-color: #e10808; } h3 { diff --git a/app/components/VersionComponent.vue b/app/components/VersionComponent.vue new file mode 100644 index 0000000..86757ba --- /dev/null +++ b/app/components/VersionComponent.vue @@ -0,0 +1,54 @@ + + + + + \ No newline at end of file diff --git a/app/components/artifact/Codebox.vue b/app/components/artifact/Codebox.vue index 28da90d..b6d1871 100644 --- a/app/components/artifact/Codebox.vue +++ b/app/components/artifact/Codebox.vue @@ -1,6 +1,7 @@ @@ -8,13 +9,31 @@ defineProps<{ content: string }>() + +function copy(content: string) +{ + navigator.clipboard.writeText(content) +} \ No newline at end of file diff --git a/app/pages/artifacts/[id]/index.vue b/app/pages/artifacts/[id]/index.vue index 412e2ea..1c2ac7b 100644 --- a/app/pages/artifacts/[id]/index.vue +++ b/app/pages/artifacts/[id]/index.vue @@ -1,33 +1,23 @@ @@ -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 @@