mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-01-24 08:08:38 +00:00
22414744b0
Co-authored-by: qwerty287 <qwerty287@posteo.de> Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com> Co-authored-by: Anbraten <6918444+anbraten@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
18 lines
600 B
Vue
18 lines
600 B
Vue
<template>
|
|
<PipelineList :pipelines="pipelines" :repo="repo" />
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { inject, type Ref } from 'vue';
|
|
|
|
import PipelineList from '~/components/repo/pipeline/PipelineList.vue';
|
|
import type { Pipeline, Repo, RepoPermissions } from '~/lib/api/types';
|
|
|
|
const repo = inject<Ref<Repo>>('repo');
|
|
const repoPermissions = inject<Ref<RepoPermissions>>('repo-permissions');
|
|
if (!repo || !repoPermissions) {
|
|
throw new Error('Unexpected: "repo" & "repoPermissions" should be provided at this place');
|
|
}
|
|
|
|
const pipelines = inject<Ref<Pipeline[]>>('pipelines');
|
|
</script>
|