mirror of
https://github.com/nexus-stc/hyperboria
synced 2025-01-10 02:35:53 +01:00
dd23846059
- [nexus] Switch bot - [bot] Added extra receivers functionality GitOrigin-RevId: 68fc32d3e79ff411758f54f435fe8680fc42dead
22 lines
505 B
JavaScript
22 lines
505 B
JavaScript
import { BaseView } from './base'
|
|
|
|
export class ScitechView extends BaseView {
|
|
index = 'scitech'
|
|
icon = '📚'
|
|
|
|
getFormattedLocator () {
|
|
const parts = []
|
|
if (this.authorsList) {
|
|
parts.push(this.getFirstAuthors(true, 3))
|
|
}
|
|
if (this.issuedAt) {
|
|
const date = new Date(this.issuedAt * 1000)
|
|
parts.push(`(${date.getUTCFullYear()})`)
|
|
}
|
|
if (this.pages) {
|
|
parts.push(`pp. ${self.pages}`)
|
|
}
|
|
return parts.join(' ')
|
|
}
|
|
}
|