mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-06-02 21:49:25 +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)
39 lines
778 B
Vue
39 lines
778 B
Vue
<template>
|
|
<div class="flex flex-col mt-2 mb-4">
|
|
<div class="flex items-center text-gray-500 font-bold mb-2">
|
|
<label v-if="label" v-bind="$attrs">{{ label }}</label>
|
|
<DocsLink v-if="docsUrl" :url="docsUrl" class="ml-2" />
|
|
</div>
|
|
<slot />
|
|
<div v-if="$slots['description']" class="ml-1 text-gray-400">
|
|
<slot name="description" />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import { defineComponent } from 'vue';
|
|
|
|
import DocsLink from '~/components/atomic/DocsLink.vue';
|
|
|
|
export default defineComponent({
|
|
name: 'InputField',
|
|
|
|
components: { DocsLink },
|
|
|
|
inheritAttrs: false,
|
|
|
|
props: {
|
|
label: {
|
|
type: String,
|
|
default: null,
|
|
},
|
|
|
|
docsUrl: {
|
|
type: String,
|
|
default: null,
|
|
},
|
|
},
|
|
});
|
|
</script>
|