File

src/aoc-report.ts

Index

Properties
Methods

Constructor

constructor(reportFile: string)
Parameters :
Name Type Optional
reportFile string No

Properties

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 : []

Methods

Public compile
compile()
Returns : void
Public createCacheDir
createCacheDir()
Returns : void
Public getCachedFilename
getCachedFilename(req: Request)
Parameters :
Name Type Optional
req Request No
Returns : string | number
Public Async getLocals
getLocals(req: Request, res: Response)
Parameters :
Name Type Optional
req Request No
res Response No
Public getWkHtmlArgs
getWkHtmlArgs(locals: AocReportLocals)
Parameters :
Name Type Optional
locals AocReportLocals No
Returns : string[]
Public render
render(locals?: AocReportLocals)
Parameters :
Name Type Optional
locals AocReportLocals Yes
Returns : string
Public Async workflow
workflow(workflowName: string, req: Request, res: Response, next: NextFunction)
Parameters :
Name Type Optional
workflowName string No
req Request No
res Response No
next NextFunction No
Returns : Promise<any>

results matching ""

    No results matching ""