@mixd-id/web-scaffold 0.1.230406162 → 0.1.230406163

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mixd-id/web-scaffold",
3
3
  "private": false,
4
- "version": "0.1.230406162",
4
+ "version": "0.1.230406163",
5
5
  "scripts": {
6
6
  "dev": "vite serve",
7
7
  "build": "vite build",
@@ -8,7 +8,7 @@
8
8
  @click="openWindow(fbShareUrl)">
9
9
  <svg id="Apple" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><defs></defs><title/><path :class="$style.facebook1" d="M459.44,23.47H52.56A29.15,29.15,0,0,0,23.49,52.54V459.42a29.15,29.15,0,0,0,29.07,29.07H271.38V308.67H210.72V238.25h60.66V186c0-41.17,9.51-64.72,30.06-79.9,17.61-13,40.56-13.83,54.57-13.4,15,.46,60.13,3,60.13,3v63.77l-41.85-.4s-17.46-.61-24,9.34c-5.58,8.54-5.69,23.16-5.69,23.16v46.31h68.65l-7.72,70.82H344.23V488.49H459.44a29.15,29.15,0,0,0,29.07-29.07V52.54A29.15,29.15,0,0,0,459.44,23.47Z"/></svg>
10
10
  </a>
11
- <a v-else-if="channel.channel === 'instagram' && instagramShareUrl"
11
+ <a v-else-if="channel.channel === 'instagram' && ($screenPrefix && $screenPrefix.value === '') && instagramShareUrl"
12
12
  href="javascript:void(0)"
13
13
  @click="openWindow(instagramShareUrl)">
14
14
  <svg id="Apple" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><linearGradient gradientUnits="userSpaceOnUse" id="instagram3" x1="328.27" x2="183.73" y1="508.05" y2="3.95"><stop offset="0" stop-color="#ffdb73"/><stop offset="0.08" stop-color="#fdad4e"/><stop offset="0.15" stop-color="#fb832e"/><stop offset="0.19" stop-color="#fa7321"/><stop offset="0.23" stop-color="#f6692f"/><stop offset="0.37" stop-color="#e84a5a"/><stop offset="0.48" stop-color="#e03675"/><stop offset="0.55" stop-color="#dd2f7f"/><stop offset="0.68" stop-color="#b43d97"/><stop offset="0.97" stop-color="#4d60d4"/><stop offset="1" stop-color="#4264db"/></linearGradient></defs><title/><rect :class="$style.instagram1" height="465.06" rx="107.23" ry="107.23" width="465.06" x="23.47" y="23.47"/><path :class="$style.instagram2" d="M331,115.22a66.92,66.92,0,0,1,66.65,66.65V330.13A66.92,66.92,0,0,1,331,396.78H181a66.92,66.92,0,0,1-66.65-66.65V181.87A66.92,66.92,0,0,1,181,115.22H331m0-31H181c-53.71,0-97.66,44-97.66,97.66V330.13c0,53.71,44,97.66,97.66,97.66H331c53.71,0,97.66-44,97.66-97.66V181.87c0-53.71-43.95-97.66-97.66-97.66Z"/><path :class="$style.instagram2" d="M256,198.13A57.87,57.87,0,1,1,198.13,256,57.94,57.94,0,0,1,256,198.13m0-31A88.87,88.87,0,1,0,344.87,256,88.87,88.87,0,0,0,256,167.13Z"/><circle :class="$style.instagram2" cx="346.81" cy="163.23" r="21.07"/></svg>
@@ -66,16 +66,30 @@ export default{
66
66
  },
67
67
 
68
68
  fbShareUrl(){
69
- return `https://www.facebook.com/dialog/share?app_id=${this.config.fbAppId}&display=popup&href=` +
69
+ const url = `https://www.facebook.com/dialog/share?app_id=${this.config.fbAppId}&display=popup&href=` +
70
70
  encodeURIComponent(this.currentUrl);
71
+
72
+ console.log('fbShareUrl', url)
73
+
74
+ return url
71
75
  },
72
76
 
73
77
  waShareUrl(){
74
- return `https://web.whatsapp.com/send?text=` + encodeURIComponent(this.currentUrl)
78
+ let url
79
+ if(this.$screenPrefix && this.$screenPrefix.value === '')
80
+ url = `whatsapp://send?text=` + encodeURIComponent(this.currentUrl)
81
+ else
82
+ url = `https://web.whatsapp.com/send?text=` + encodeURIComponent(this.currentUrl)
83
+
84
+ console.log('waShareUrl', url)
85
+
86
+ return url
75
87
  },
76
88
 
77
89
  twitterShareUrl(){
78
- return `https://twitter.com/intent/tweet?url=` + encodeURIComponent(this.currentUrl)
90
+ const url = `https://twitter.com/intent/tweet?url=` + encodeURIComponent(this.currentUrl)
91
+ console.log('twitterShareUrl', url)
92
+ return url
79
93
  },
80
94
 
81
95
  instagramShareUrl(){