ts-glitter 13.9.6 → 13.9.7
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/lowcode/Entry.js +1 -1
- package/lowcode/Entry.ts +1 -1
- package/lowcode/cms-plugin/ai-generator/product-ai.js +1 -0
- package/lowcode/cms-plugin/ai-generator/product-ai.ts +1 -0
- package/lowcode/glitter-base/route/ai-chat.js +1 -1
- package/lowcode/glitter-base/route/ai-chat.ts +3 -2
- package/package.json +1 -1
package/lowcode/Entry.js
CHANGED
|
@@ -70,7 +70,7 @@ export class Entry {
|
|
|
70
70
|
}
|
|
71
71
|
window.renderClock = (_a = window.renderClock) !== null && _a !== void 0 ? _a : clockF();
|
|
72
72
|
console.log(`Entry-time:`, window.renderClock.stop());
|
|
73
|
-
glitter.share.editerVersion = 'V_13.9.
|
|
73
|
+
glitter.share.editerVersion = 'V_13.9.7';
|
|
74
74
|
glitter.share.start = new Date();
|
|
75
75
|
const vm = {
|
|
76
76
|
appConfig: [],
|
package/lowcode/Entry.ts
CHANGED
|
@@ -72,7 +72,7 @@ export class Entry {
|
|
|
72
72
|
}
|
|
73
73
|
(window as any).renderClock = (window as any).renderClock ?? clockF();
|
|
74
74
|
console.log(`Entry-time:`, (window as any).renderClock.stop());
|
|
75
|
-
glitter.share.editerVersion = 'V_13.9.
|
|
75
|
+
glitter.share.editerVersion = 'V_13.9.7';
|
|
76
76
|
glitter.share.start = new Date();
|
|
77
77
|
const vm: {
|
|
78
78
|
appConfig: any;
|
|
@@ -153,6 +153,7 @@ ${BgWidget.save(gvc.event(() => {
|
|
|
153
153
|
const dialog = new ShareDialog(gvc.glitter);
|
|
154
154
|
dialog.dataLoading({ visible: true });
|
|
155
155
|
AiChat.generateHtml({
|
|
156
|
+
token: window.parent.saasConfig.config.token,
|
|
156
157
|
app_name: window.parent.appName,
|
|
157
158
|
text: message
|
|
158
159
|
}).then((res) => {
|
|
@@ -276,6 +276,7 @@ ${BgWidget.save(gvc.event(() => {
|
|
|
276
276
|
const dialog = new ShareDialog(gvc.glitter)
|
|
277
277
|
dialog.dataLoading({visible: true})
|
|
278
278
|
AiChat.generateHtml({
|
|
279
|
+
token:(window.parent as any).saasConfig.config.token,
|
|
279
280
|
app_name: (window.parent as any).appName,
|
|
280
281
|
text: message
|
|
281
282
|
}).then((res) => {
|
|
@@ -32,7 +32,7 @@ export class AiChat {
|
|
|
32
32
|
"headers": {
|
|
33
33
|
"Content-Type": "application/json",
|
|
34
34
|
"g-app": json.app_name || getConfig().config.appName,
|
|
35
|
-
"Authorization": GlobalUser.token
|
|
35
|
+
"Authorization": json.token || GlobalUser.token
|
|
36
36
|
},
|
|
37
37
|
"data": JSON.stringify(json)
|
|
38
38
|
});
|
|
@@ -35,7 +35,8 @@ export class AiChat{
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
public static generateHtml(json: { app_name?:string,
|
|
38
|
-
text:string
|
|
38
|
+
text:string,
|
|
39
|
+
token?:string
|
|
39
40
|
}) {
|
|
40
41
|
return BaseApi.create({
|
|
41
42
|
"url": getBaseUrl() + `/api-public/v1/ai/generate-html`,
|
|
@@ -43,7 +44,7 @@ export class AiChat{
|
|
|
43
44
|
"headers": {
|
|
44
45
|
"Content-Type": "application/json",
|
|
45
46
|
"g-app": json.app_name || getConfig().config.appName,
|
|
46
|
-
"Authorization": GlobalUser.token
|
|
47
|
+
"Authorization": json.token || GlobalUser.token
|
|
47
48
|
},
|
|
48
49
|
"data":JSON.stringify(json)
|
|
49
50
|
})
|