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.
Zaimki/routes/avoiding.vue

51 lines
1.3 KiB
Vue
Raw Normal View History

2020-11-29 02:03:01 -08:00
<template>
<div>
<h2>
<T>pronouns.avoiding.header</T>
</h2>
<p>
<T>pronouns.avoiding.description</T>
</p>
<section v-for="idea in $t('pronouns.avoiding.ideas')">
<h3>{{idea.header}}</h3>
2020-12-01 10:06:21 -08:00
<p v-if="idea.description">
{{idea.description}}
</p>
2020-11-29 02:03:01 -08:00
<ul>
<li v-for="[exampleFrom, exampleTo] in idea.examples">
2021-05-12 13:41:01 -07:00
<LinkedText :text="exampleFrom"/> <strong><LinkedText :text="exampleTo"/></strong>
2020-11-29 02:03:01 -08:00
</li>
</ul>
</section>
<section v-if="sources && Object.keys(sources).length">
<Literature :sources="sources"/>
</section>
2020-11-29 02:03:01 -08:00
</div>
</template>
<script>
import {SourceLibrary} from "../src/classes";
2020-11-29 02:03:01 -08:00
import { head } from "../src/helpers";
export default {
data() {
return {
sources: undefined,
}
},
async mounted() {
this.sources = {
'': new SourceLibrary(await this.$axios.$get(`/sources?pronoun=${this.config.pronouns.avoiding}`)).getForPronoun(this.config.pronouns.avoiding),
};
},
2020-11-29 02:03:01 -08:00
head() {
return head({
title: this.$t('pronouns.avoiding.header'),
});
},
};
</script>