mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-09-25 05:00:05 +00:00
58838f225c
Rewrite of the UI using Typescript, Vue3, Windicss and Vite. The design should be close to the current one with some changes: - latest pipeline in a sidebar on the right - secrets and registry as part of the repo-settings (secrets and registry entries shouldn't be used as much so they can be "hidden" under settings IMO) - start page shows list of active repositories with button to enable / add new ones (currently you see all repositories and in most cases you only add new repositories once in a while)
41 lines
993 B
Vue
41 lines
993 B
Vue
<template>
|
|
<div v-if="builds" class="space-y-4">
|
|
<router-link
|
|
v-for="build in builds"
|
|
:key="build.id"
|
|
:to="{ name: 'repo-build', params: { repoOwner: repo.owner, repoName: repo.name, buildId: build.number } }"
|
|
class="flex"
|
|
>
|
|
<BuildItem :build="build" />
|
|
</router-link>
|
|
<Panel v-if="builds.length === 0">
|
|
<span class="text-gray-500">No pipelines have been started yet.</span>
|
|
</Panel>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import { defineComponent, PropType } from 'vue';
|
|
|
|
import Panel from '~/components/layout/Panel.vue';
|
|
import BuildItem from '~/components/repo/build/BuildItem.vue';
|
|
import { Build, Repo } from '~/lib/api/types';
|
|
|
|
export default defineComponent({
|
|
name: 'BuildList',
|
|
|
|
components: { Panel, BuildItem },
|
|
|
|
props: {
|
|
repo: {
|
|
type: Object as PropType<Repo>,
|
|
required: true,
|
|
},
|
|
|
|
builds: {
|
|
type: Object as PropType<Build[] | undefined>,
|
|
required: true,
|
|
},
|
|
},
|
|
});
|
|
</script>
|