vue-intergrall-plugins 0.0.171 → 0.0.172

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,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-intergrall-plugins",
3
- "version": "0.0.171",
3
+ "version": "0.0.172",
4
4
  "description": "",
5
5
  "main": "dist/vue-intergrall-plugins.ssr.js",
6
6
  "browser": "dist/vue-intergrall-plugins.esm.js",
@@ -116,6 +116,8 @@ export default {
116
116
  if(!this.ticket_id || !this.ticket_id.cod) return ""
117
117
  const { cod } = this.ticket_id
118
118
  switch(cod) {
119
+ case 17:
120
+ case "17":
119
121
  case 9:
120
122
  case "9":
121
123
  case 8:
@@ -66,7 +66,7 @@ import AnexoMensagem from "./AnexoMensagem"
66
66
  import InteratividadeBotoes from "./InteratividadeBotoes"
67
67
  import { formataTimezoneData } from "../../services/textFormatting"
68
68
  import LinkPrevue from "link-prevue"
69
- import { getLinkPreview } from "link-preview-js";
69
+ // import { getLinkPreview } from "link-preview-js";
70
70
 
71
71
  export default {
72
72
  components: { AnexoMensagem, InteratividadeBotoes, LinkPrevue },
@@ -154,19 +154,19 @@ export default {
154
154
  this.urlFileName = this.getUrlFileName()
155
155
  this.message = this.removeUrlStickerByString(this.urlSticker)
156
156
  }
157
- if(this.validadeIfExistsUrl()){
158
- const linkRegex = /(?:(?:https?|ftp|file):\/\/|www\.|ftp\.)(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$])/igm;
159
- let link = [];
160
- link = this.message.match(linkRegex);
161
- if(!link || link.length == 0){
162
- return;
163
- }
164
- getLinkPreview(link[0]).then((data) => {
165
- if(data.images && data.images.length > 0){
166
- this.urlSticker = data.images[0];
167
- }
168
- });
169
- }
157
+ // if(this.validadeIfExistsUrl()){
158
+ // const linkRegex = /(?:(?:https?|ftp|file):\/\/|www\.|ftp\.)(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$])/igm;
159
+ // let link = [];
160
+ // link = this.message.match(linkRegex);
161
+ // if(!link || link.length == 0){
162
+ // return;
163
+ // }
164
+ // getLinkPreview(link[0]).then((data) => {
165
+ // if(data.images && data.images.length > 0){
166
+ // this.urlSticker = data.images[0];
167
+ // }
168
+ // });
169
+ // }
170
170
  },
171
171
  getUrlFileName(){
172
172
  let urlRegex = /(?<=\/)[^\/\?#]+(?=[^\/]*$)/;
@@ -182,12 +182,12 @@ export default {
182
182
  let url = this.message.match(urlRegex)[1];
183
183
  return url;
184
184
  },
185
- validadeIfExistsUrl(){
186
- if(this.message && this.message.indexOf("https://") !== false && this.message.indexOf("<a") !== false){
187
- return true;
188
- }
189
- return false;
190
- },
185
+ // validadeIfExistsUrl(){
186
+ // if(this.message && this.message.indexOf("https://") !== false && this.message.indexOf("<a") !== false){
187
+ // return true;
188
+ // }
189
+ // return false;
190
+ // },
191
191
  validadeIfExistsSticker(){
192
192
  if(this.message && this.message.indexOf("KSTICKERK https://smarters") === 0){
193
193
  return true;