3fd6b9b563
* Adding a help button on top of the chat, that links to the online documentation on frama.io. * Replaced github.io documentation links by frama.io documentation. * Adding links to the documentation in the diagnostic tool.
32 lines
581 B
TypeScript
32 lines
581 B
TypeScript
type nextValue = 'backend' | 'debug' | 'webchat-video' | 'prosody' | 'everything-ok'
|
|
|
|
interface MessageWithLevel {
|
|
level: 'info' | 'warning' | 'error'
|
|
message: string
|
|
help?: {
|
|
url: string
|
|
text: string
|
|
}
|
|
}
|
|
export interface TestResult {
|
|
label?: string
|
|
messages: Array<string | MessageWithLevel>
|
|
debug: Array<{
|
|
title: string
|
|
message: string
|
|
}>
|
|
next: nextValue | null
|
|
ok: boolean
|
|
test: string
|
|
}
|
|
|
|
export function newResult (test: string): TestResult {
|
|
return {
|
|
test: test,
|
|
ok: false,
|
|
messages: [],
|
|
debug: [],
|
|
next: null
|
|
}
|
|
}
|