diff --git a/packages/basic.gblib/services/SystemKeywords.ts b/packages/basic.gblib/services/SystemKeywords.ts index 8daf9274..6da21f91 100644 --- a/packages/basic.gblib/services/SystemKeywords.ts +++ b/packages/basic.gblib/services/SystemKeywords.ts @@ -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 { let array = exts.filter((v, i, a) => a[i]['extension'] === ext); diff --git a/packages/core.gbapp/services/GBMinService.ts b/packages/core.gbapp/services/GBMinService.ts index 3a882f37..410e6f90 100644 --- a/packages/core.gbapp/services/GBMinService.ts +++ b/packages/core.gbapp/services/GBMinService.ts @@ -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) {