mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-10-04 10:34:07 -04:00
33 lines
945 B
Vue
33 lines
945 B
Vue
<template>
|
|
<section v-if="Object.keys(socials).length">
|
|
<h2 class="mb-3">
|
|
<Icon v="hashtag" />
|
|
<T>links.social</T>
|
|
</h2>
|
|
<ul class="list-unstyled">
|
|
<template v-for="(groupLinks, group) in socials">
|
|
<li v-if="$t(`contact.groups.${group}`)">
|
|
<p class="h5">
|
|
<T>contact.groups.{{ group }}</T><T>quotation.colon</T>
|
|
</p>
|
|
</li>
|
|
<LinkEntry v-for="link in groupLinks" :key="link.url" :link="link" />
|
|
</template>
|
|
</ul>
|
|
</section>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import Vue from 'vue';
|
|
import { getSocialLinks } from '../src/contact.js';
|
|
import { groupBy } from '../src/helpers.ts';
|
|
|
|
export default Vue.extend({
|
|
data() {
|
|
return {
|
|
socials: groupBy([...getSocialLinks(this.$config)], (l) => l.group),
|
|
};
|
|
},
|
|
});
|
|
</script>
|