Sha256: 5277103890b44d770d1e7024dc3a1dd2e1c3026f0ac4451be62509fa04d6706c

Contents?: true

Size: 788 Bytes

Versions: 94

Compression:

Stored size: 788 Bytes

Contents

<template>
  <div class='Nxd-search__result'>
    <a class='Nxd-search__result__link' v-bind:href='url' target='_blank'>
      <div>
        <h6 class='Vlt-blue-dark'>{{ title }}</h6>
        <p class='Nxd-search__result__highlight' v-html='snippet'></p>
        <span class='Vlt-badge Vlt-badge--grey Nxd-search__badge'>{{ badge }}</span>
      </div>
    </a>
  </div>
</template>
<script>
export default {
  props: ['hit'],
  computed: {
    badge: function() {
      return this.hit.section.full_path;
    },
    snippet: function() {
      return `...${this.hit._snippetResult.body_safe.value}...`;
    },
    title: function() {
      return this.hit.title;
    },
    url: function() {
      return `https://help.nexmo.com/hc/en-us/articles/${this.hit.id}`;
    },
  }
}
</script>

Version data entries

94 entries across 94 versions & 1 rubygems

Version Path
station-0.0.109 lib/nexmo_developer/app/webpacker/javascript/components/search/ZendeskArticle.vue
station-0.0.108 lib/nexmo_developer/app/webpacker/javascript/components/search/ZendeskArticle.vue
station-0.0.107 lib/nexmo_developer/app/webpacker/javascript/components/search/ZendeskArticle.vue
station-0.0.106 lib/nexmo_developer/app/webpacker/javascript/components/search/ZendeskArticle.vue
station-0.0.105 lib/nexmo_developer/app/webpacker/javascript/components/search/ZendeskArticle.vue
station-0.0.104 lib/nexmo_developer/app/webpacker/javascript/components/search/ZendeskArticle.vue
station-0.0.103 lib/nexmo_developer/app/webpacker/javascript/components/search/ZendeskArticle.vue
station-0.0.102 lib/nexmo_developer/app/webpacker/javascript/components/search/ZendeskArticle.vue
station-0.0.101 lib/nexmo_developer/app/webpacker/javascript/components/search/ZendeskArticle.vue
station-0.0.100 lib/nexmo_developer/app/webpacker/javascript/components/search/ZendeskArticle.vue
station-0.0.97 lib/nexmo_developer/app/webpacker/javascript/components/search/ZendeskArticle.vue
station-0.0.96 lib/nexmo_developer/app/webpacker/javascript/components/search/ZendeskArticle.vue
station-0.0.95 lib/nexmo_developer/app/webpacker/javascript/components/search/ZendeskArticle.vue
station-0.0.93 lib/nexmo_developer/app/webpacker/javascript/components/search/ZendeskArticle.vue