Sha256: 87e8e284d4b70e83ad85547bbc39b5d11f5d450b394d87f102d2626ee1d8cf77

Contents?: true

Size: 895 Bytes

Versions: 17

Compression:

Stored size: 895 Bytes

Contents

<template>
  <div class="field is-grouped is-grouped-multiline">
    <div class="control" v-for="(dnsRecord, index) in dnsRecords" :key="index">
      <div class="tags has-addons are-medium">
        <span class="tag is-dark"> {{ dnsRecord.resource }}</span>
        <router-link
          class="tag"
          :to="{
            name: 'Alerts',
            query: { dnsRecord: dnsRecord.value }
          }"
        >
          {{ truncate(dnsRecord.value, 50) }}
        </router-link>
      </div>
    </div>
  </div>
</template>

<script lang="ts">
import truncate from "truncate"
import { defineComponent, type PropType } from "vue"

import type { DnsRecord } from "@/types"

export default defineComponent({
  name: "DnsRecords",
  props: {
    dnsRecords: {
      type: Array as PropType<DnsRecord[]>,
      required: true
    }
  },
  setup() {
    return { truncate }
  }
})
</script>

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
mihari-5.6.2 frontend/src/components/artifact/DnsRecords.vue
mihari-5.6.1 frontend/src/components/artifact/DnsRecords.vue
mihari-5.6.0 frontend/src/components/artifact/DnsRecords.vue
mihari-5.5.0 frontend/src/components/artifact/DnsRecords.vue
mihari-5.4.9 frontend/src/components/artifact/DnsRecords.vue
mihari-5.4.8 frontend/src/components/artifact/DnsRecords.vue
mihari-5.4.7 frontend/src/components/artifact/DnsRecords.vue
mihari-5.4.6 frontend/src/components/artifact/DnsRecords.vue
mihari-5.4.5 frontend/src/components/artifact/DnsRecords.vue
mihari-5.4.4 frontend/src/components/artifact/DnsRecords.vue
mihari-5.4.3 frontend/src/components/artifact/DnsRecords.vue
mihari-5.4.2 frontend/src/components/artifact/DnsRecords.vue
mihari-5.4.1 frontend/src/components/artifact/DnsRecords.vue
mihari-5.4.0 frontend/src/components/artifact/DnsRecords.vue
mihari-5.3.2 frontend/src/components/artifact/DnsRecords.vue
mihari-5.3.1 frontend/src/components/artifact/DnsRecords.vue
mihari-5.3.0 frontend/src/components/artifact/DnsRecords.vue