[www] Collective/Person pages updated
This commit is contained in:
1 parent
b2191200da
commit
39ce95746f
14 files changed
+200
-123
No files matched your search
@@ -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
@@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
@@ -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
|
||||
|
||||
Reference in new issue
Block a user