mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-21 02:56:40 -08:00
Merge branch 'vue3' of github.com:n8n-io/n8n into vue3
This commit is contained in:
commit
134938dcc9
|
@ -1,12 +1,5 @@
|
|||
<template>
|
||||
<!-- eslint-disable vue/no-mutating-props -->
|
||||
<a
|
||||
v-if="version"
|
||||
:set="(version = version)"
|
||||
:href="version.documentationUrl"
|
||||
target="_blank"
|
||||
:class="$style.card"
|
||||
>
|
||||
<a v-if="version" :href="version.documentationUrl" target="_blank" :class="$style.card">
|
||||
<div :class="$style.header">
|
||||
<div>
|
||||
<div :class="$style.name">
|
||||
|
@ -53,17 +46,24 @@
|
|||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import type { PropType } from 'vue';
|
||||
import { defineComponent } from 'vue';
|
||||
import NodeIcon from './NodeIcon.vue';
|
||||
import TimeAgo from './TimeAgo.vue';
|
||||
import Badge from './Badge.vue';
|
||||
import WarningTooltip from './WarningTooltip.vue';
|
||||
import type { IVersionNode } from '@/Interface';
|
||||
import type { IVersion } from '@/Interface';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'VersionCard',
|
||||
components: { NodeIcon, TimeAgo, Badge, WarningTooltip },
|
||||
props: ['version'],
|
||||
props: {
|
||||
version: {
|
||||
type: Object as PropType<IVersion>,
|
||||
required: true,
|
||||
},
|
||||
},
|
||||
// @ts-ignore
|
||||
nodeName(node: IVersionNode): string {
|
||||
return node !== null ? node.displayName : this.$locale.baseText('versionCard.unknown');
|
||||
|
|
Loading…
Reference in a new issue