eitri-cli 1.6.0 → 1.6.1-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/cmd/create.js
CHANGED
|
@@ -106,8 +106,8 @@ async function askClientApplication(applicationName) {
|
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
const cliOptions = [
|
|
109
|
-
...availableApplications,
|
|
110
109
|
{ name: ITEM_DOUBT, label: "Dúvidas? Veja documentação no browser" },
|
|
110
|
+
...availableApplications,
|
|
111
111
|
];
|
|
112
112
|
const createLabel = (tgt) => {
|
|
113
113
|
const orgLabel = tgt.organization?.name ? `(${tgt.organization?.name})`: ''
|
|
@@ -121,6 +121,7 @@ async function askClientApplication(applicationName) {
|
|
|
121
121
|
message:
|
|
122
122
|
"Selecione a aplicação para qual destina-se seu Eitri-App:",
|
|
123
123
|
choices: cliOptions.map(createLabel),
|
|
124
|
+
pageSize: cliOptions.length + 2,
|
|
124
125
|
},
|
|
125
126
|
]);
|
|
126
127
|
const clientApplication = cliOptions.find(
|
|
@@ -24,6 +24,7 @@ module.exports = class HuginService {
|
|
|
24
24
|
formData.append("filepath", relativePath);
|
|
25
25
|
formData.append("isDevMode", String(isDevMode));
|
|
26
26
|
formData.append("eitriAppId", eitriConf.id);
|
|
27
|
+
formData.append("applicationId", eitriConf.applicationId);
|
|
27
28
|
formData.append("workspaceId", workspace.id);
|
|
28
29
|
let url = this.getServerlessUploadUrl(filePath);
|
|
29
30
|
await this.http.postForm(url, formData);
|
|
@@ -25,12 +25,10 @@ class QRCodeFactory {
|
|
|
25
25
|
console.log('==================================================')
|
|
26
26
|
|
|
27
27
|
let qrCodeTempPath = `${eitriAppSlug}::${new Date().getTime()}`
|
|
28
|
-
|
|
29
28
|
if(displayOutsideTerminal){
|
|
30
29
|
qrCodeTempPath = await this.tempFile(eitriAppSlug)
|
|
30
|
+
await this.createQRCodeImage(qrCodeTempPath, data)
|
|
31
31
|
}
|
|
32
|
-
|
|
33
|
-
await this.createQRCodeImage(qrCodeTempPath, data)
|
|
34
32
|
return qrCodeTempPath
|
|
35
33
|
}
|
|
36
34
|
|