ts-glitter 13.3.3 → 13.3.5
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
|
@@ -56,7 +56,7 @@ export class Entry {
|
|
|
56
56
|
}
|
|
57
57
|
window.renderClock = (_a = window.renderClock) !== null && _a !== void 0 ? _a : clockF();
|
|
58
58
|
console.log(`Entry-time:`, window.renderClock.stop());
|
|
59
|
-
glitter.share.editerVersion = "V_13.3.
|
|
59
|
+
glitter.share.editerVersion = "V_13.3.5";
|
|
60
60
|
glitter.share.start = (new Date());
|
|
61
61
|
const vm = {
|
|
62
62
|
appConfig: [],
|
package/lowcode/Entry.ts
CHANGED
|
@@ -56,7 +56,7 @@ export class Entry {
|
|
|
56
56
|
}
|
|
57
57
|
(window as any).renderClock = (window as any).renderClock ?? clockF();
|
|
58
58
|
console.log(`Entry-time:`, (window as any).renderClock.stop());
|
|
59
|
-
glitter.share.editerVersion = "V_13.3.
|
|
59
|
+
glitter.share.editerVersion = "V_13.3.5";
|
|
60
60
|
glitter.share.start = (new Date());
|
|
61
61
|
const vm: {
|
|
62
62
|
appConfig: any;
|
|
@@ -120,9 +120,11 @@ export class BgCustomerMessage {
|
|
|
120
120
|
gvc,
|
|
121
121
|
title: '提示',
|
|
122
122
|
innerHTML: () => {
|
|
123
|
-
return
|
|
123
|
+
return `<div class="w-100" style="white-space:normal;word-break: break-all;">${BgWidget.grayNote([`*單一後台即可管理各渠道訊息`, `*前往第三方整合設定,設定Line與Facebook官方訊息串接`, `*為確保訊息同步,請統一透過SHOPNEX後台發送訊息`].map((dd) => {
|
|
124
|
+
return `<div style="letter-spacing: 1.2px;white-space:normal;word-break: break-all;">${dd}</div>`;
|
|
125
|
+
}).join('<div class="my-1"></div>'))}</div>`;
|
|
124
126
|
},
|
|
125
|
-
width:
|
|
127
|
+
width: 250
|
|
126
128
|
});
|
|
127
129
|
}))}
|
|
128
130
|
</div>
|
|
@@ -769,8 +771,15 @@ export class BgCustomerMessage {
|
|
|
769
771
|
</div>
|
|
770
772
|
<img
|
|
771
773
|
src="${head}"
|
|
772
|
-
class="rounded-circle ${dd.chat_id.startsWith('line')
|
|
773
|
-
style="border-radius: 50%;${
|
|
774
|
+
class="rounded-circle ${(dd.chat_id.startsWith('line') || dd.chat_id.startsWith('fb')) ? `` : `border`}"
|
|
775
|
+
style="border-radius: 50%;${(() => {
|
|
776
|
+
if (dd.chat_id.startsWith('line')) {
|
|
777
|
+
return `border:2px solid green;`;
|
|
778
|
+
}
|
|
779
|
+
else if (dd.chat_id.startsWith('fb')) {
|
|
780
|
+
return `border:2px solid #0078ff;`;
|
|
781
|
+
}
|
|
782
|
+
})()}"
|
|
774
783
|
width="40"
|
|
775
784
|
alt="Devon Lane"
|
|
776
785
|
/>
|
|
@@ -137,9 +137,11 @@ export class BgCustomerMessage {
|
|
|
137
137
|
gvc,
|
|
138
138
|
title: '提示',
|
|
139
139
|
innerHTML: () => {
|
|
140
|
-
return
|
|
140
|
+
return `<div class="w-100" style="white-space:normal;word-break: break-all;">${BgWidget.grayNote([`*單一後台即可管理各渠道訊息`, `*前往第三方整合設定,設定Line與Facebook官方訊息串接`, `*為確保訊息同步,請統一透過SHOPNEX後台發送訊息`].map((dd) => {
|
|
141
|
+
return `<div style="letter-spacing: 1.2px;white-space:normal;word-break: break-all;">${dd}</div>`
|
|
142
|
+
}).join('<div class="my-1"></div>'))}</div>`
|
|
141
143
|
},
|
|
142
|
-
width:
|
|
144
|
+
width: 250
|
|
143
145
|
});
|
|
144
146
|
})
|
|
145
147
|
)}
|
|
@@ -819,8 +821,14 @@ export class BgCustomerMessage {
|
|
|
819
821
|
</div>
|
|
820
822
|
<img
|
|
821
823
|
src="${head}"
|
|
822
|
-
class="rounded-circle ${dd.chat_id.startsWith('line')
|
|
823
|
-
style="border-radius: 50%;${
|
|
824
|
+
class="rounded-circle ${(dd.chat_id.startsWith('line') || dd.chat_id.startsWith('fb')) ? ``:`border`}"
|
|
825
|
+
style="border-radius: 50%;${(()=>{
|
|
826
|
+
if(dd.chat_id.startsWith('line')){
|
|
827
|
+
return `border:2px solid green;`
|
|
828
|
+
}else if(dd.chat_id.startsWith('fb')){
|
|
829
|
+
return `border:2px solid #0078ff;`
|
|
830
|
+
}
|
|
831
|
+
})()}"
|
|
824
832
|
width="40"
|
|
825
833
|
alt="Devon Lane"
|
|
826
834
|
/>
|
package/package.json
CHANGED
|
@@ -523,13 +523,14 @@ export class Chat {
|
|
|
523
523
|
userID: managerUser.user_id,
|
|
524
524
|
tag: 'message',
|
|
525
525
|
link: `./?toggle-message=true`,
|
|
526
|
-
body: `${user.userData.name}傳送一則訊息給你:「${(() => {
|
|
526
|
+
body: room.message.image ? `${user.userData.name}傳送一張圖片給你`:`${user.userData.name}傳送一則訊息給你:「${(() => {
|
|
527
527
|
let text = room.message.text ?? ""
|
|
528
528
|
if (text.length > 25) {
|
|
529
529
|
text = text?.substring(0, 25) + '...'
|
|
530
530
|
}
|
|
531
531
|
return text
|
|
532
532
|
})()}」`,
|
|
533
|
+
pass_store:true
|
|
533
534
|
});
|
|
534
535
|
}
|
|
535
536
|
} catch (e: any) {
|
package/src/modules/firebase.ts
CHANGED
|
@@ -77,7 +77,8 @@ export class Firebase {
|
|
|
77
77
|
tag: string,
|
|
78
78
|
link: string,
|
|
79
79
|
body: string,
|
|
80
|
-
app?: string
|
|
80
|
+
app?: string,
|
|
81
|
+
pass_store?:boolean
|
|
81
82
|
}) {
|
|
82
83
|
cf.body=cf.body.replace(/<br\s*\/?>/gi, '\n');
|
|
83
84
|
if(cf.userID){
|
|
@@ -98,7 +99,7 @@ export class Firebase {
|
|
|
98
99
|
from \`${cf.app || this.app}\`.t_user_public_config
|
|
99
100
|
where \`key\` ='notify_setting' and user_id=?`, [cf.userID]))[0]) ?? {value: {}}).value;
|
|
100
101
|
if (`${user_cf[cf.tag]}` !== 'false') {
|
|
101
|
-
if (cf.userID && cf.tag && cf.title && cf.body && cf.link) {
|
|
102
|
+
if (cf.userID && cf.tag && cf.title && cf.body && cf.link && !cf.pass_store) {
|
|
102
103
|
await db.query(`insert into \`${cf.app || this.app}\`.t_notice (user_id, tag, title, content, link)
|
|
103
104
|
values (?, ?, ?, ?, ?)`, [
|
|
104
105
|
cf.userID,
|