import platform from 'platform'; /** * Creates a bug report template in Markdown. * @param location The location this template will apply to. * @param trxVersion The Tildes ReExtended version to include in the template. */ export function createReportTemplate( location: 'gitlab' | 'tildes', trxVersion: string ): string { let introText = "Thank you for taking the time to report a bug! Don't forget to fill in an\n appropriate title above, and make sure the information below is correct."; if (location === 'tildes') { introText = 'Thank you for taking the time to report a bug! Please make sure the\n information below is correct.'; } const layout: string = platform.layout!; const name: string = platform.name!; const os: string = platform.os?.toString()!; const version: string = platform.version!; // Set the headers using HTML tags, these can't be with #-style Markdown // headers as they'll be interpreted as an ID instead of Markdown content. let reportTemplate = `