fix(basic.gbapp): AS IMAGE testing.

This commit is contained in:
Rodrigo Rodriguez 2023-08-13 18:36:54 -03:00
parent fe01c11d2f
commit e841d80dc3
2 changed files with 5 additions and 3 deletions

View file

@ -1179,13 +1179,15 @@ export class DialogKeywords {
url = urlJoin(GBServer.globals.publicAddress, min.botId, 'cache', Path.basename(localName)); url = urlJoin(GBServer.globals.publicAddress, min.botId, 'cache', Path.basename(localName));
GBLog.info(`BASIC: WebAutomation: Sending the file ${url} to mobile ${mobile}.`); GBLog.info(`BASIC: WebAutomation: Sending ${url} to mobile ${mobile}.`);
} }
// GBFILE object. // GBFILE object.
else if (filename.url) { else if (filename.url) {
url = filename.url; url = filename.url;
nameOnly = Path.basename(filename.localName); nameOnly = Path.basename(filename.localName);
GBLog.info(`BASIC: Sending the GBFILE ${url} to mobile ${mobile}.`);
} }
// Handles Markdown. // Handles Markdown.
else if (filename.indexOf('.md') > -1) { else if (filename.indexOf('.md') > -1) {
@ -1199,7 +1201,7 @@ export class DialogKeywords {
} else { } else {
const gbaiName = DialogKeywords.getGBAIPath(min.botId, `gbkb`); const gbaiName = DialogKeywords.getGBAIPath(min.botId, `gbkb`);
GBLog.info(`BASIC: Sending the file ${filename} to mobile ${mobile}.`); GBLog.info(`BASIC: Sending the MD ${filename} to mobile ${mobile}.`);
if (!filename.startsWith('https://')) { if (!filename.startsWith('https://')) {
url = urlJoin(GBServer.globals.publicAddress, 'kb', gbaiName, 'assets', filename); url = urlJoin(GBServer.globals.publicAddress, 'kb', gbaiName, 'assets', filename);

View file

@ -251,7 +251,7 @@ export class SystemKeywords {
// Includes the associated CSS related to current theme. // Includes the associated CSS related to current theme.
const theme: string = 'white'; // TODO: params.theme; const theme: string = await DialogKeywords.getOption({ pid, name: 'theme' });
switch (theme) { switch (theme) {
case 'white': case 'white':
await page.addStyleTag({ path: 'node_modules/tabulator-tables/dist/css/tabulator_simple.min.css' }); await page.addStyleTag({ path: 'node_modules/tabulator-tables/dist/css/tabulator_simple.min.css' });