This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
2020-09-23 12:16:56 -07:00
|
|
|
<template>
|
|
|
|
<ul :class="{'list-unstyled': !expanded}">
|
2020-11-25 10:24:22 -08:00
|
|
|
<li v-for="author in config.contact.authors" class="mb-2">
|
|
|
|
<Icon v-if="!expanded" :v="author.group ? 'users' : 'user'"/>
|
|
|
|
<a :href="author.link" target="_blank" rel="noopener">
|
2020-11-22 12:08:00 -08:00
|
|
|
{{ author.name }}
|
2020-11-25 10:24:22 -08:00
|
|
|
</a>
|
2020-12-29 09:44:06 -08:00
|
|
|
<nuxt-link v-if="author.profile" :to="`/@${author.profile}`" class="badge badge-light border">
|
|
|
|
@{{author.profile}}
|
|
|
|
</nuxt-link>
|
|
|
|
<br v-if="author.areas && Object.keys(author.areas).length"/>
|
|
|
|
<small v-for="(link, area, index) in author.areas">
|
2020-09-23 14:00:01 -07:00
|
|
|
<Spaceless>
|
2020-09-28 09:29:13 -07:00
|
|
|
<nuxt-link v-if="link && link.indexOf('/') === 0" :to="link">{{ area.replace(/_/g, ' ') }}</nuxt-link>
|
|
|
|
<a v-else-if="link" :href="link" target="_blank" rel="noopener">{{ area.replace(/_/g, ' ') }}</a>
|
|
|
|
<span v-else>{{ area.replace(/_/g, ' ') }}</span>
|
2020-09-23 14:00:01 -07:00
|
|
|
<span v-if="index < Object.keys(author.areas).length - 1">, </span>
|
|
|
|
</Spaceless>
|
2020-12-29 09:44:06 -08:00
|
|
|
</small>
|
2020-09-23 12:16:56 -07:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
props: {
|
|
|
|
expanded: { type: Boolean }
|
|
|
|
},
|
|
|
|
}
|
|
|
|
</script>
|