32 lines
1.0 KiB
Vue
32 lines
1.0 KiB
Vue
<template>
|
|
<Table v-if="artifacts" columns="auto auto auto 1fr auto">
|
|
<HeaderRow>
|
|
<HeaderCell>Group ID</HeaderCell>
|
|
<HeaderCell>Artifact ID</HeaderCell>
|
|
<HeaderCell>Latest Version</HeaderCell>
|
|
<HeaderCell>Pull Count</HeaderCell>
|
|
<HeaderCell>Updated At</HeaderCell>
|
|
</HeaderRow>
|
|
<ArtifactComponent :artifact="artifact" v-for="artifact in artifacts"></ArtifactComponent>
|
|
</Table>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import {Artifact} from "~/components/artifact/Artifact";
|
|
import ArtifactComponent from "~/components/artifact/ArtifactComponent.vue";
|
|
import Table from "~/components/ui/table/Table.vue";
|
|
import HeaderCell from "~/components/ui/table/HeaderCell.vue";
|
|
import HeaderRow from "~/components/ui/table/HeaderRow.vue";
|
|
|
|
const artifacts: Ref<Artifact[] | undefined> = ref(undefined);
|
|
|
|
onMounted(() => {
|
|
Artifact.get((_artifacts: Artifact[]) => {
|
|
artifacts.value = _artifacts;
|
|
});
|
|
})
|
|
</script>
|
|
|
|
<style scoped>
|
|
|
|
</style> |