[+] Encapsulate get thumbnail
This commit is contained in:
@@ -32,6 +32,11 @@
|
||||
{
|
||||
return new Date(this.rawDate);
|
||||
}
|
||||
|
||||
get imgThumb()
|
||||
{
|
||||
return require(`./assets/${this.rawDate}.pic.${this.format}`);
|
||||
}
|
||||
}
|
||||
|
||||
@Component
|
||||
|
||||
Reference in New Issue
Block a user