#6 nowe typy źródeł: filmy i seriale
This commit is contained in:
parent
39de6b88ab
commit
8f9535f711
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<div>
|
||||
<Icon :v="source.icon()" v-if="source.icon()"/>
|
||||
<strong>{{source.author}} – <em><a v-if="source.link" :href="source.link" target="_blank" rel="noopener">{{source.title}}</a><span v-else>{{source.title}}</span></em></strong><template v-if="source.extra"> ({{source.extra}})</template>, {{source.year}}<template v-if="source.comment">; {{source.comment}}</template>
|
||||
<strong>{{source.author}}<span v-if="source.author"> – </span><em><a v-if="source.link" :href="source.link" target="_blank" rel="noopener">{{source.title}}</a><span v-else>{{source.title}}</span></em></strong><template v-if="source.extra"> ({{source.extra}})</template>, {{source.year}}<template v-if="source.comment">; {{source.comment}}</template>
|
||||
<ul v-if="source.fragments.length">
|
||||
<li v-for="fragment in source.fragments">
|
||||
„<span v-html="fragment.replace(/\n/g, '<br/>')"></span>”
|
||||
|
|
|
@ -97,6 +97,18 @@ export class Article extends Source {
|
|||
}
|
||||
}
|
||||
|
||||
export class Movie extends Source {
|
||||
icon() {
|
||||
return 'film';
|
||||
}
|
||||
}
|
||||
|
||||
export class Series extends Source {
|
||||
icon() {
|
||||
return 'tv';
|
||||
}
|
||||
}
|
||||
|
||||
export const morphemes = [
|
||||
'pronoun_n',
|
||||
'pronoun_g',
|
||||
|
|
12
src/data.js
12
src/data.js
|
@ -1,4 +1,4 @@
|
|||
import { Article, Book, Example, Template } from './classes'
|
||||
import { Article, Book, Movie, Series, Example, Template } from './classes'
|
||||
|
||||
export const examples = [
|
||||
Example.parse('Myślę, że {pronoun_n} jest bardzo mił{adjective_n}.|Myślę, że {pronoun_n} są bardzo mi{adjective_ll}{adjective_n}'),
|
||||
|
@ -86,6 +86,16 @@ export const templates = {
|
|||
'Milo - historia życia i śmierci',
|
||||
'https://tvn24.pl/magazyn-tvn24/zrobimy-z-ciebie-mezczyzne,242,4189'
|
||||
),
|
||||
new Series(
|
||||
'',
|
||||
'Star Trek: Następne Pokolenie, sezon 5 odcinek 17 „Wyklęci”/„Presja społeczna”',
|
||||
'tłumaczenie: Kamil Borek',
|
||||
1991,
|
||||
['– Radzisz sobie, jakbyś dorastało w wahadłowcu.\n' +
|
||||
'– Dorastałom. Moi rodzice to piloci. Latałom z nimi, zanim umiałom chodzić.'],
|
||||
'',
|
||||
'https://www.netflix.com/watch/70177979',
|
||||
),
|
||||
new Book(
|
||||
'Bartek Biedrzycki',
|
||||
'Confirmatio Vir Llamki, albo o wizycie Nieziemca Macka Simma na Starej Ziemi',
|
||||
|
|
Reference in New Issue