ts-glitter 13.3.3 → 13.3.4

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.3";
59
+ glitter.share.editerVersion = "V_13.3.4";
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.3";
59
+ glitter.share.editerVersion = "V_13.3.4";
60
60
  glitter.share.start = (new Date());
61
61
  const vm: {
62
62
  appConfig: any;
@@ -769,8 +769,15 @@ export class BgCustomerMessage {
769
769
  </div>
770
770
  <img
771
771
  src="${head}"
772
- class="rounded-circle ${dd.chat_id.startsWith('line') ? '' : 'border'}"
773
- style="border-radius: 50%;${dd.chat_id.startsWith('line') ? 'border:1px solid green' : ''}"
772
+ class="rounded-circle ${(dd.chat_id.startsWith('line') || dd.chat_id.startsWith('fb')) ? `` : `border`}"
773
+ style="border-radius: 50%;${(() => {
774
+ if (dd.chat_id.startsWith('line')) {
775
+ return `border:2px solid green;`;
776
+ }
777
+ else if (dd.chat_id.startsWith('fb')) {
778
+ return `border:2px solid #0078ff;`;
779
+ }
780
+ })()}"
774
781
  width="40"
775
782
  alt="Devon Lane"
776
783
  />
@@ -819,8 +819,14 @@ export class BgCustomerMessage {
819
819
  </div>
820
820
  <img
821
821
  src="${head}"
822
- class="rounded-circle ${dd.chat_id.startsWith('line') ? '' : 'border'}"
823
- style="border-radius: 50%;${dd.chat_id.startsWith('line') ? 'border:1px solid green' : ''}"
822
+ class="rounded-circle ${(dd.chat_id.startsWith('line') || dd.chat_id.startsWith('fb')) ? ``:`border`}"
823
+ style="border-radius: 50%;${(()=>{
824
+ if(dd.chat_id.startsWith('line')){
825
+ return `border:2px solid green;`
826
+ }else if(dd.chat_id.startsWith('fb')){
827
+ return `border:2px solid #0078ff;`
828
+ }
829
+ })()}"
824
830
  width="40"
825
831
  alt="Devon Lane"
826
832
  />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ts-glitter",
3
- "version": "13.3.3",
3
+ "version": "13.3.4",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -530,6 +530,7 @@ export class Chat {
530
530
  }
531
531
  return text
532
532
  })()}」`,
533
+ pass_store:true
533
534
  });
534
535
  }
535
536
  } catch (e: any) {
@@ -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,