()
| 416 | } |
| 417 | |
| 418 | async getAllAuthorColors() { |
| 419 | const authorIds = this.getAllAuthors(); |
| 420 | const returnTable:MapArrayType<string> = {}; |
| 421 | const colorPalette = authorManager.getColorPalette(); |
| 422 | |
| 423 | await Promise.all( |
| 424 | authorIds.map((authorId) => authorManager.getAuthorColorId(authorId).then((colorId:string) => { |
| 425 | // colorId might be a hex color or an number out of the palette |
| 426 | returnTable[authorId] = colorPalette[colorId] || colorId; |
| 427 | }))); |
| 428 | |
| 429 | return returnTable; |
| 430 | } |
| 431 | |
| 432 | getValidRevisionRange(startRev: any, endRev:any) { |
| 433 | startRev = parseInt(startRev, 10); |
no test coverage detected