ts-glitter 14.8.9 → 14.9.0
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
CHANGED
|
@@ -80,7 +80,7 @@ export class Entry {
|
|
|
80
80
|
}
|
|
81
81
|
window.renderClock = (_a = window.renderClock) !== null && _a !== void 0 ? _a : clockF();
|
|
82
82
|
console.log(`Entry-time:`, window.renderClock.stop());
|
|
83
|
-
glitter.share.editerVersion = 'V_14.
|
|
83
|
+
glitter.share.editerVersion = 'V_14.9.0';
|
|
84
84
|
glitter.share.start = new Date();
|
|
85
85
|
const vm = {
|
|
86
86
|
appConfig: [],
|
package/lowcode/Entry.ts
CHANGED
|
@@ -82,7 +82,7 @@ export class Entry {
|
|
|
82
82
|
|
|
83
83
|
(window as any).renderClock = (window as any).renderClock ?? clockF();
|
|
84
84
|
console.log(`Entry-time:`, (window as any).renderClock.stop());
|
|
85
|
-
glitter.share.editerVersion = 'V_14.
|
|
85
|
+
glitter.share.editerVersion = 'V_14.9.0';
|
|
86
86
|
glitter.share.start = new Date();
|
|
87
87
|
const vm: {
|
|
88
88
|
appConfig: any;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ApiUser } from '../../glitter-base/route/user.js';
|
|
2
|
-
import { AiSearch } from '../ai/ai-search.js';
|
|
3
2
|
import { Language } from '../../glitter-base/global/language.js';
|
|
3
|
+
import { LanguageView } from "../public/language-view.js";
|
|
4
|
+
import { Color } from "../public/color.js";
|
|
4
5
|
const html = String.raw;
|
|
5
6
|
export class Sy05 {
|
|
6
7
|
static main(gvc, widget, subData) {
|
|
@@ -240,49 +241,7 @@ background: ${(_a = widget.formData.theme_color['background']) !== null && _a !=
|
|
|
240
241
|
<div class="d-flex align-items-center ms-auto">
|
|
241
242
|
<!--固定按鈕顯示區塊-->
|
|
242
243
|
<ul class="navbar-nav flex-row ms-auto">
|
|
243
|
-
|
|
244
|
-
const id = gvc.glitter.getUUID();
|
|
245
|
-
const vm = {
|
|
246
|
-
visible: false,
|
|
247
|
-
};
|
|
248
|
-
ApiUser.getPublicConfig('store-information', 'manager').then((res) => {
|
|
249
|
-
if (res.response.value.ai_search) {
|
|
250
|
-
vm.visible = true;
|
|
251
|
-
gvc.notifyDataChange(id);
|
|
252
|
-
}
|
|
253
|
-
});
|
|
254
|
-
return {
|
|
255
|
-
bind: id,
|
|
256
|
-
view: () => {
|
|
257
|
-
var _a, _b;
|
|
258
|
-
return html `<div
|
|
259
|
-
class="d-flex align-items-center justify-content-center "
|
|
260
|
-
style="color: ${(_a = widget.formData.theme_color['title']) !== null && _a !== void 0 ? _a : '#000'} !important;width:30px;height:30px;font-size: 15px;
|
|
261
|
-
border: 2px solid ${(_b = widget.formData.theme_color['title']) !== null && _b !== void 0 ? _b : '#000'} !important;
|
|
262
|
-
border-radius: 50%;
|
|
263
|
-
font-weight: 700 !important;
|
|
264
|
-
padding-bottom: 2px;
|
|
265
|
-
"
|
|
266
|
-
>
|
|
267
|
-
AI
|
|
268
|
-
</div>`;
|
|
269
|
-
},
|
|
270
|
-
divCreate: () => {
|
|
271
|
-
return {
|
|
272
|
-
class: `nav-item ${vm.visible ? `d-flex` : `d-none`} align-items-center justify-content-center`,
|
|
273
|
-
style: `width:48px !important;cursor: pointer;`,
|
|
274
|
-
option: [
|
|
275
|
-
{
|
|
276
|
-
key: 'onclick',
|
|
277
|
-
value: gvc.event(() => {
|
|
278
|
-
AiSearch.searchProduct(gvc);
|
|
279
|
-
}),
|
|
280
|
-
},
|
|
281
|
-
],
|
|
282
|
-
};
|
|
283
|
-
},
|
|
284
|
-
};
|
|
285
|
-
})}
|
|
244
|
+
<div class="mt-n2"> ${LanguageView.selectLanguage(gvc, Color.getTheme(gvc, widget.formData))}</div>
|
|
286
245
|
|
|
287
246
|
</ul>
|
|
288
247
|
</div>
|
|
@@ -4,6 +4,8 @@ import { getCheckoutCount } from '../../official_event/e-commerce/get-count.js';
|
|
|
4
4
|
import { GlobalUser } from '../../glitter-base/global/global-user.js';
|
|
5
5
|
import { AiSearch } from '../ai/ai-search.js';
|
|
6
6
|
import { Language } from '../../glitter-base/global/language.js';
|
|
7
|
+
import {LanguageView} from "../public/language-view.js";
|
|
8
|
+
import {Color} from "../public/color.js";
|
|
7
9
|
|
|
8
10
|
const html = String.raw;
|
|
9
11
|
|
|
@@ -248,48 +250,7 @@ background: ${widget.formData.theme_color['background'] ?? '#000'};overflow-x: h
|
|
|
248
250
|
<div class="d-flex align-items-center ms-auto">
|
|
249
251
|
<!--固定按鈕顯示區塊-->
|
|
250
252
|
<ul class="navbar-nav flex-row ms-auto">
|
|
251
|
-
|
|
252
|
-
const id = gvc.glitter.getUUID();
|
|
253
|
-
const vm = {
|
|
254
|
-
visible: false,
|
|
255
|
-
};
|
|
256
|
-
ApiUser.getPublicConfig('store-information', 'manager').then((res) => {
|
|
257
|
-
if (res.response.value.ai_search) {
|
|
258
|
-
vm.visible = true;
|
|
259
|
-
gvc.notifyDataChange(id);
|
|
260
|
-
}
|
|
261
|
-
});
|
|
262
|
-
return {
|
|
263
|
-
bind: id,
|
|
264
|
-
view: () => {
|
|
265
|
-
return html`<div
|
|
266
|
-
class="d-flex align-items-center justify-content-center "
|
|
267
|
-
style="color: ${widget.formData.theme_color['title'] ?? '#000'} !important;width:30px;height:30px;font-size: 15px;
|
|
268
|
-
border: 2px solid ${widget.formData.theme_color['title'] ?? '#000'} !important;
|
|
269
|
-
border-radius: 50%;
|
|
270
|
-
font-weight: 700 !important;
|
|
271
|
-
padding-bottom: 2px;
|
|
272
|
-
"
|
|
273
|
-
>
|
|
274
|
-
AI
|
|
275
|
-
</div>`;
|
|
276
|
-
},
|
|
277
|
-
divCreate: () => {
|
|
278
|
-
return {
|
|
279
|
-
class: `nav-item ${vm.visible ? `d-flex` : `d-none`} align-items-center justify-content-center`,
|
|
280
|
-
style: `width:48px !important;cursor: pointer;`,
|
|
281
|
-
option: [
|
|
282
|
-
{
|
|
283
|
-
key: 'onclick',
|
|
284
|
-
value: gvc.event(() => {
|
|
285
|
-
AiSearch.searchProduct(gvc);
|
|
286
|
-
}),
|
|
287
|
-
},
|
|
288
|
-
],
|
|
289
|
-
};
|
|
290
|
-
},
|
|
291
|
-
};
|
|
292
|
-
})}
|
|
253
|
+
<div class="mt-n2"> ${LanguageView.selectLanguage(gvc, Color.getTheme(gvc, widget.formData))}</div>
|
|
293
254
|
|
|
294
255
|
</ul>
|
|
295
256
|
</div>
|