[www] Collective/Person pages updated

This commit is contained in:
Roman Timashev committed 2017-10-23 23:15:36 +03:00
1 parent b2191200da
commit 39ce95746f
14 files changed
+200 -123

No files matched your search

+1
View File
@@ -24,6 +24,7 @@ class Config {
this.articlesPerPage = data.articlesPerPage || 5
this.collectiveOrder = data.collectiveOrder || []
this.articleCardDefaultPreview = data.articleCardDefaultPreview
this.collectiveImage = data.collectiveImage
this.redirect = new Map(Object
.entries(data.redirect)
+8 -6
View File
@@ -47,16 +47,18 @@ class Image {
const a = this.getArtifact(size)
const a2 = this.getArtifact(retinaSize)
const srcset = !a2
? null
: [{
url: a2.url,
density: ImageArtifactType.RETINA_DENSITY,
}]
return {
src: a.url,
width: a.width,
height: a.height,
set: [
{
url: a2.url,
density: ImageArtifactType.RETINA_DENSITY,
}
]
set: srcset,
}
}
}
+2 -1
View File
@@ -7,7 +7,8 @@ class ImageArtifactType {
ImageArtifactType.SMALL = 'small'
ImageArtifactType.MEDIUM = 'medium'
ImageArtifactType.BIG = 'big'
ImageArtifactType.ORIGIN = 'origin'
ImageArtifactType.ORIGIN = 'original'
ImageArtifactType.ORIGINAL = 'original'
ImageArtifactType.FACEBOOK = 'fb'
+1 -1
View File
@@ -20,7 +20,7 @@ class Teacher {
constructor(data) {
this.id = data.id
this.biography = data.biography
this.post = data.post
this.file = data.file
this.edu = data.edu
this.picture = data.picture