mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-06-02 13:39:55 +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)
33 lines
572 B
Vue
33 lines
572 B
Vue
<template>
|
|
<a :href="`${docsBaseUrl}${url}`" target="_blank" class="text-blue-500 hover:text-blue-600 cursor-pointer mt-1"
|
|
><Icon name="question" class="!w-4 !h-4"
|
|
/></a>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import { defineComponent } from 'vue';
|
|
|
|
import Icon from '~/components/atomic/Icon.vue';
|
|
|
|
export default defineComponent({
|
|
name: 'DocsLink',
|
|
|
|
components: {
|
|
Icon,
|
|
},
|
|
|
|
props: {
|
|
url: {
|
|
type: String,
|
|
required: true,
|
|
},
|
|
},
|
|
|
|
setup() {
|
|
const docsBaseUrl = window.WOODPECKER_DOCS;
|
|
|
|
return { docsBaseUrl };
|
|
},
|
|
});
|
|
</script>
|