generic-skin 4.5.1 → 4.5.3

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.
@@ -18,7 +18,9 @@ Vue.filter('max-two-digits', (value) => {
18
18
  Vue.filter('just-name', (value) => {
19
19
  if (!value || typeof value !== 'string') return value;
20
20
  else if (value === 'Anonymous') return 'Invitado';
21
- else if (value.split(' ')[0].length === value.length) return value.split("'")[0].length < 3 ? value.split("'")[1] : value.split("'")[0]
21
+ else if (!value.includes(' ') && value.length < 9) return value;
22
+ else if (!value.includes(' ') && value.includes('-')) return value.split('-')[0].length < 3 ? value.split('-')[1] : value.split('-')[0];
23
+ else if (!value.includes(' ')) return value.split("'")[0].length < 3 ? value.split("'")[1] : value.split("'")[0]
22
24
  else if (value.split(' ').length === 1) return value;
23
25
  else return value.split(' ')[0].length < 3 ? value.split(' ')[1] : value.split(' ')[0];
24
26
  });
@@ -1 +1 @@
1
- Vue.filter("to-number",e=>e&&"string"==typeof e?parseFloat(e):e),Vue.filter("in-two-digits",e=>null===e||"string"==typeof e?e:e>9?e:"0"+e),Vue.filter("max-two-digits",e=>e&&"string"==typeof e&&parseFloat(e)>99?[e.toString.split("")[0],e.toString.split("")[1]].join():e),Vue.filter("just-name",e=>e&&"string"==typeof e?"Anonymous"===e?"Invitado":e.split(" ")[0].length===e.length?e.split("'")[0].length<3?e.split("'")[1]:e.split("'")[0]:1===e.split(" ").length?e:e.split(" ")[0].length<3?e.split(" ")[1]:e.split(" ")[0]:e),Vue.filter("capitalize",e=>e&&"string"==typeof e?"¿"===e.charAt(0)||"¡"===e.charAt(0)?e.charAt(0)+e.charAt(1).toUpperCase()+e.slice(2).toLowerCase():e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():e),Vue.filter("url-to-normal",e=>e&&"string"==typeof e?e.replace(/[\?\&]change_version=invision/,""):e),Vue.filter("url-to-invision",e=>e&&"string"==typeof e?e.split("#")[0]+"?change_version=invision#"+e.split("#")[1]:e),Vue.filter("tray-title",e=>e&&"string"==typeof e?e.indexOf("bandeja de entrada")>-1?"Bandeja de Entrada":e.indexOf("bandeja de recepción")>-1?"Bandeja de Entrada":e.indexOf("andeja de Mensajes enviados")>-1?"Elementos Enviados":e.indexOf("andeja de envío")>-1?"Bandeja de Envio":e.indexOf("andeja de elementos guardados")>-1?"Elementos Guardados":void 0:e),Vue.filter("tray-percent",e=>e&&"string"==typeof e?-1===e.indexOf("vacía")?e.match(/[\d]+/)[0]:0:e),Vue.filter("search-from",e=>e&&"string"==typeof e?e.split(" para ")[1]:e),Vue.filter("search-number",e=>e&&"string"==typeof e?e+` resultado${1===parseFloat(e)?"":"s"}`:e),Vue.filter("turn-br",e=>e&&"string"==typeof e?e.replace(/\n/g,"<br>"):e),Vue.filter("mini-sanitize",e=>e&&"string"==typeof e?e.replace(/</g,"&lt;").replace(/>/g,"&gt;"):e);
1
+ Vue.filter("to-number",e=>e&&"string"==typeof e?parseFloat(e):e),Vue.filter("in-two-digits",e=>null===e||"string"==typeof e?e:e>9?e:"0"+e),Vue.filter("max-two-digits",e=>e&&"string"==typeof e&&parseFloat(e)>99?[e.toString.split("")[0],e.toString.split("")[1]].join():e),Vue.filter("just-name",e=>e&&"string"==typeof e?"Anonymous"===e?"Invitado":!e.includes(" ")&&e.length<9?e:!e.includes(" ")&&e.includes("-")?e.split("-")[0].length<3?e.split("-")[1]:e.split("-")[0]:e.includes(" ")?1===e.split(" ").length?e:e.split(" ")[0].length<3?e.split(" ")[1]:e.split(" ")[0]:e.split("'")[0].length<3?e.split("'")[1]:e.split("'")[0]:e),Vue.filter("capitalize",e=>e&&"string"==typeof e?"¿"===e.charAt(0)||"¡"===e.charAt(0)?e.charAt(0)+e.charAt(1).toUpperCase()+e.slice(2).toLowerCase():e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():e),Vue.filter("url-to-normal",e=>e&&"string"==typeof e?e.replace(/[\?\&]change_version=invision/,""):e),Vue.filter("url-to-invision",e=>e&&"string"==typeof e?e.split("#")[0]+"?change_version=invision#"+e.split("#")[1]:e),Vue.filter("tray-title",e=>e&&"string"==typeof e?e.indexOf("bandeja de entrada")>-1?"Bandeja de Entrada":e.indexOf("bandeja de recepción")>-1?"Bandeja de Entrada":e.indexOf("andeja de Mensajes enviados")>-1?"Elementos Enviados":e.indexOf("andeja de envío")>-1?"Bandeja de Envio":e.indexOf("andeja de elementos guardados")>-1?"Elementos Guardados":void 0:e),Vue.filter("tray-percent",e=>e&&"string"==typeof e?-1===e.indexOf("vacía")?e.match(/[\d]+/)[0]:0:e),Vue.filter("search-from",e=>e&&"string"==typeof e?e.split(" para ")[1]:e),Vue.filter("search-number",e=>e&&"string"==typeof e?e+` resultado${1===parseFloat(e)?"":"s"}`:e),Vue.filter("turn-br",e=>e&&"string"==typeof e?e.replace(/\n/g,"<br>"):e),Vue.filter("mini-sanitize",e=>e&&"string"==typeof e?e.replace(/</g,"&lt;").replace(/>/g,"&gt;"):e);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "generic-skin",
3
- "version": "4.5.1",
3
+ "version": "4.5.3",
4
4
  "description": "Generic Forum Skin for Forumotion created by Gaylien.",
5
5
  "main": "readme.md",
6
6
  "scripts": {