configuration/strings/report.strings.ts

configuration/strings/report.strings.ts is a file in Bane's Lab Site. 40 lines of code and 21 definitions.

export const WALK_UNAVAILABLE = "The walk diagram for a file could not be loaded.";

export const SOURCE_UNAVAILABLE = "The source text for a file could not be loaded.";

export const SURFACE_UNAVAILABLE = "The recording for a surface figure could not be loaded.";

export const MALFORMED_RECORDING =
    "A surface recording on disk is not a recording, so the static render cannot write its transcript. Build the site again so the surfaces step records it.";

export const PAYLOAD_UNAVAILABLE = "A page payload could not be loaded.";

export const DIAGRAM_UNAVAILABLE = "A rendered diagram could not be loaded.";

export const DIAGRAM_STYLE_UNAVAILABLE = "The stylesheet for rendered diagrams could not be loaded.";

export const SCROLL_UNREADABLE = "The saved scroll position could not be read from session storage.";

export const SCROLL_UNWRITABLE = "The scroll position could not be saved to session storage.";

export const UNLINKED_PAGE = "The home page has no row link for the page ";

export const COPY_REFUSED = "The browser refused to copy the text to the clipboard.";

export const MISSING_SHARE = "The share map holds no share image for the page ";

export const missingKeywordCategory = function missingKeywordCategory(category: string): string {
    return `The grammar snapshot has no keyword with a role in the category ${category}.`;
};

export const missingProductionGroup = function missingProductionGroup(group: string): string {
    return `The grammar snapshot has no production group named ${group}.`;
};

export const missingTemplate = function missingTemplate(type: string): string {
    return `The grammar snapshot has no template of the type ${type}.`;
};

export const missingRecording = function missingRecording(figure: string): string {
    return `The static render has no recording for the surface figure ${figure}, so its transcript cannot be written.`;
};

export const missingRootLink = function missingRootLink(tab: string): string {
    return `The tree ${tab} links its files to a repository, and its root folder has no link. Build the site again.`;
};

export const unpublishedTree = function unpublishedTree(tab: string): string {
    return `The tree ${tab} has no published folder in the methodology repository. Declare its folder in the paths declaration under methodology.`;
};

export const undeclaredTree = function undeclaredTree(tab: string): string {
    return `No anatomy tree is declared with the tab ${tab}, so it has no label. Name a declared tree, or build the site so the trees are declared again.`;
};

export const missingSection = function missingSection(page: string, tab: string, section: string): string {
    return `The page ${page} draws no section ${section} on its tab ${tab}. Name a section the tab holds.`;
};

export const missingElement = function missingElement(id: string): string {
    return `The page shell has no element with the id ${id}, so the site cannot mount.`;
};