2020-07-22 13:19:23 -07:00
|
|
|
<template>
|
|
|
|
<NotFound v-if="!selectedTemplate"/>
|
|
|
|
<div class="container" v-else>
|
|
|
|
<Homepage/>
|
|
|
|
<h1>
|
|
|
|
<Icon v="tag"/>
|
|
|
|
Moje zaimki to:
|
|
|
|
</h1>
|
|
|
|
|
|
|
|
<section>
|
|
|
|
<div class="alert alert-primary">
|
|
|
|
<h2 class="text-center mb-0">
|
|
|
|
<strong>{{ selectedTemplate.name() }}</strong>
|
|
|
|
</h2>
|
|
|
|
<p class="h6 small text-center mb-0 mt-2" v-if="selectedTemplate.description">
|
|
|
|
<em>
|
2020-07-26 04:14:25 -07:00
|
|
|
({{Array.isArray(selectedTemplate.description)
|
|
|
|
? ('Formy wymienne: ' + selectedTemplate.description.join(' lub '))
|
|
|
|
: selectedTemplate.description
|
|
|
|
}})
|
2020-07-22 13:19:23 -07:00
|
|
|
</em>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<section>
|
|
|
|
<h2 class="h4">
|
|
|
|
<Icon v="file-signature"/>
|
|
|
|
Przykłady użycia w zdaniu:
|
|
|
|
</h2>
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
<li v-for="example in examples" class="my-1">
|
2020-07-25 10:21:52 -07:00
|
|
|
<span v-for="part in example[(example.isHonorific ? selectedTemplate.pluralHonorific : selectedTemplate.plural) ? 'pluralParts' : 'singularParts']">
|
2020-07-26 04:14:25 -07:00
|
|
|
<strong v-if="part.variable">{{selectedTemplate.getMorpheme(part.str, counter)}}</strong>
|
2020-07-24 11:52:01 -07:00
|
|
|
<span v-else>{{part.str}}</span>
|
|
|
|
</span>
|
|
|
|
</li>
|
2020-07-22 13:19:23 -07:00
|
|
|
</ul>
|
|
|
|
</section>
|
|
|
|
|
2020-08-03 10:47:53 -07:00
|
|
|
<section>
|
|
|
|
<h2 class="h4">
|
|
|
|
<Icon v="spell-check"/>
|
|
|
|
Odmiana:
|
|
|
|
</h2>
|
|
|
|
|
|
|
|
<div class="table-responsive">
|
|
|
|
<table class="table table-sm">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Mianownik</th>
|
|
|
|
<th>Dopełniacz</th>
|
|
|
|
<th>Celownik</th>
|
|
|
|
<th>Biernik</th>
|
|
|
|
<th>Narzędnik</th>
|
|
|
|
<th>Miejscownik</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td>{{ selectedTemplate.getMorpheme('pronoun_n') }}</td>
|
|
|
|
<td>{{ selectedTemplate.getMorpheme('pronoun_g') }} / {{ selectedTemplate.getMorpheme('pronoun_g_acc') }}</td>
|
|
|
|
<td>{{ selectedTemplate.getMorpheme('pronoun_d') }}</td>
|
|
|
|
<td>{{ selectedTemplate.getMorpheme('pronoun_a') }}</td>
|
|
|
|
<td>{{ selectedTemplate.getMorpheme('pronoun_i') }}</td>
|
|
|
|
<td>{{ selectedTemplate.getMorpheme('pronoun_l') }}</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="table-responsive">
|
|
|
|
<table class="table table-sm">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>1 os.</th>
|
|
|
|
<th>2 os.</th>
|
|
|
|
<th>3 os.</th>
|
|
|
|
<th>Przymiotniki</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td>-{{ selectedTemplate.getMorpheme('verb_middle') }}{{ selectedTemplate.plural ? 'śmy' : 'm'}}</td>
|
|
|
|
<td>-{{ selectedTemplate.getMorpheme('verb_middle') }}{{ selectedTemplate.plural ? 'ście' : 'ś'}}</td>
|
|
|
|
<td>-{{ selectedTemplate.getMorpheme('verb_end_about') }}</td>
|
|
|
|
<td>-{{ selectedTemplate.getMorpheme('adjective_n') }}</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
|
|
|
pronoun_all adjective_n adjective_ll adjective_middle verb_end_inter verb_end_about verb_middle verb_nasal verb_go verb_o
|
|
|
|
-->
|
|
|
|
</section>
|
|
|
|
|
2020-07-24 11:21:30 -07:00
|
|
|
<section v-if="selectedTemplate.history">
|
|
|
|
<div class="alert alert-info">
|
|
|
|
<Icon v="info-circle"/>
|
|
|
|
<span v-html="selectedTemplate.history"></span>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
2020-07-24 05:14:37 -07:00
|
|
|
<section>
|
|
|
|
<Share :title="'Moje zaimki to: ' + selectedTemplate.name()"/>
|
|
|
|
</section>
|
|
|
|
|
2020-07-27 08:26:40 -07:00
|
|
|
<section v-if="Object.keys(sources).length">
|
2020-07-26 06:27:36 -07:00
|
|
|
<Literature :sources="sources"/>
|
2020-07-22 13:19:23 -07:00
|
|
|
</section>
|
|
|
|
|
|
|
|
<Separator icon="info"/>
|
|
|
|
<section class="mb-0">
|
|
|
|
<h2 class="h4">
|
|
|
|
<Icon v="info-circle"/>
|
|
|
|
O co chodzi w tej stronie?
|
|
|
|
</h2>
|
|
|
|
<About/>
|
|
|
|
<Homepage align="center"/>
|
|
|
|
</section>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2020-07-26 06:27:36 -07:00
|
|
|
import { examples, templates, getSources } from "~/src/data";
|
2020-07-24 09:50:33 -07:00
|
|
|
import { buildTemplate, getTemplate } from "../src/buildTemplate";
|
2020-07-22 13:19:23 -07:00
|
|
|
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
examples: examples,
|
|
|
|
templates: templates,
|
2020-07-24 09:50:33 -07:00
|
|
|
getTemplate: getTemplate,
|
2020-07-22 13:19:23 -07:00
|
|
|
|
2020-08-03 05:54:43 -07:00
|
|
|
selectedTemplate: buildTemplate(templates, this.$route.path.substr(1).replace(/\/$/, '')),
|
2020-07-26 04:14:25 -07:00
|
|
|
|
|
|
|
counter: 0,
|
|
|
|
}
|
|
|
|
},
|
|
|
|
mounted() {
|
|
|
|
if (process.client) {
|
|
|
|
setInterval(_ => this.counter++, 1000);
|
2020-07-22 13:19:23 -07:00
|
|
|
}
|
|
|
|
},
|
|
|
|
head() {
|
|
|
|
if (!this.selectedTemplate) {
|
|
|
|
return {};
|
|
|
|
}
|
|
|
|
|
|
|
|
const title = 'Moje zaimki to: ' + this.selectedTemplate.name();
|
2020-08-03 05:54:43 -07:00
|
|
|
const banner = `${process.env.baseUrl}/banner${this.$route.path.replace(/\/$/, '')}.png`;
|
2020-07-22 13:19:23 -07:00
|
|
|
|
|
|
|
return {
|
|
|
|
title: title,
|
|
|
|
meta: [
|
|
|
|
{ hid: 'og:title', property: 'og:title', content: title },
|
|
|
|
{ hid: 'twitter:title', property: 'twitter:title', content: title },
|
|
|
|
|
|
|
|
{ hid: 'og:logo', property: 'og:logo', content: banner },
|
|
|
|
{ hid: 'twitter:image', property: 'twitter:image', content: banner },
|
|
|
|
],
|
|
|
|
}
|
|
|
|
},
|
2020-07-26 06:27:36 -07:00
|
|
|
computed: {
|
|
|
|
sources() {
|
|
|
|
return getSources(this.selectedTemplate);
|
|
|
|
},
|
|
|
|
},
|
2020-07-22 13:19:23 -07:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
|
|
|
|
</style>
|