src/aoc-report.ts
Properties |
|
Methods |
|
constructor(reportFile: string)
|
||||||
Parameters :
|
Static aocReports |
Type : Map<string | AocReport>
|
Default value : new Map<string, AocReport>()
|
Public cacheDir |
Type : string
|
Default value : 'nocachedir'
|
Static globalLocals |
Type : any
|
Default value : { os, path, fs }
|
Public pugFile |
Type : string
|
Default value : 'nofile.pug'
|
Public reportEndpointPath |
Type : string
|
Default value : 'noname'
|
Public reportName |
Type : string
|
Default value : 'No name'
|
Public wkHtmlArgs |
Type : object
|
Default value : {}
|
Public workflows |
Type : string[]
|
Default value : []
|
Public compile |
compile()
|
Returns :
void
|
Public createCacheDir |
createCacheDir()
|
Returns :
void
|
Public getCachedFilename | ||||||
getCachedFilename(req: Request)
|
||||||
Parameters :
Returns :
string | number
|
Public Async getLocals | |||||||||
getLocals(req: Request, res: Response)
|
|||||||||
Parameters :
Returns :
Promise<Partial<AocReportLocals>>
|
Public getWkHtmlArgs | ||||||
getWkHtmlArgs(locals: AocReportLocals)
|
||||||
Parameters :
Returns :
string[]
|
Public render | ||||||
render(locals?: AocReportLocals)
|
||||||
Parameters :
Returns :
string
|
Public Async workflow | |||||||||||||||
workflow(workflowName: string, req: Request, res: Response, next: NextFunction)
|
|||||||||||||||
Parameters :
Returns :
Promise<any>
|