fix(basic.gbapp): AS IMAGE testing.
This commit is contained in:
parent
d5bee8f721
commit
8e1289adb9
2 changed files with 13 additions and 3 deletions
|
@ -291,8 +291,8 @@ export class SystemKeywords {
|
|||
|
||||
const code = `
|
||||
var table = new Tabulator("#table", {
|
||||
height:"311px",
|
||||
layout:"fitColumns",
|
||||
height:"auto",
|
||||
layout:"fitDataStretch",
|
||||
data: ${JSON.stringify(data)},
|
||||
columns: ${JSON.stringify(fields)}
|
||||
});
|
||||
|
@ -2018,10 +2018,17 @@ export class SystemKeywords {
|
|||
const ext = Path.extname(fileName).substring(1);
|
||||
const kind = await this.getExtensionInfo(ext);
|
||||
|
||||
const result = await client.api(`${baseUrl}/drive/root:/${path}/${kind.category}/${fileName}:/content`).put(file.data);
|
||||
let d = new Date(),
|
||||
month = '' + (d.getMonth() + 1),
|
||||
day = '' + d.getDate(),
|
||||
year = d.getFullYear();
|
||||
|
||||
const today= [day, month, year].join('-')
|
||||
const result = await client.api(`${baseUrl}/drive/root:/${path}/${today}/${kind.category}/${fileName}:/content`).put(file.data);
|
||||
|
||||
return {contentType, ext, kind, category: kind['category']};
|
||||
}
|
||||
|
||||
public async getExtensionInfo(ext: any): Promise<any> {
|
||||
|
||||
let array = exts.filter((v, i, a) => a[i]['extension'] === ext);
|
||||
|
|
|
@ -1015,6 +1015,7 @@ export class GBMinService {
|
|||
|
||||
// Answer to specific BOT Framework event conversationUpdate to auto start dialogs.
|
||||
// Skips if the bot is talking.
|
||||
|
||||
const startDialog = min.core.getParam(min.instance, 'Start Dialog', null);
|
||||
|
||||
if (context.activity.type === 'installationUpdate') {
|
||||
|
@ -1284,6 +1285,7 @@ export class GBMinService {
|
|||
}
|
||||
|
||||
// Prepare Promises to download each attachment and then execute each Promise.
|
||||
|
||||
if (step.context.activity.attachments
|
||||
&& step.context.activity.attachments[0]
|
||||
&& step.context.activity.attachments[0].contentType != 'text/html') {
|
||||
|
@ -1358,6 +1360,7 @@ export class GBMinService {
|
|||
// Files in .gbdialog can be called directly by typing its name normalized into JS .
|
||||
|
||||
const isVMCall = Object.keys(min.scriptMap).find(key => min.scriptMap[key] === context.activity.text) !== undefined;
|
||||
|
||||
if (/create dialog|creative dialog|create a dialog|criar diálogo|criar diálogo/gi.test(context.activity.text)) {
|
||||
await step.beginDialog('/dialog');
|
||||
} else if (isVMCall) {
|
||||
|
|
Loading…
Add table
Reference in a new issue