generic-skin 3.0.8 → 3.0.11

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.
@@ -2,7 +2,7 @@
2
2
  Vue.component('categoria-foro', {
3
3
  props: ['dataId'],
4
4
  computed: {
5
- slugName: function () {
5
+ slugName() {
6
6
  const name = (this.dataId.indexOf('<h2>') > -1 ? FNR.utility.genSlug(this.dataId.split('<h2>')[1].split('</h2>')[0], '-') : FNR.utility.genSlug(this.dataId, '-'));
7
7
 
8
8
  return 'category-' + name;
@@ -16,7 +16,7 @@ Vue.component('categoria-foro', {
16
16
  });
17
17
 
18
18
  Vue.component('cabecera-foro', {
19
- data: function () {
19
+ data() {
20
20
  return {
21
21
  dataTitle: this.$slots['title'][0].tag === undefined ? this.$slots['title'][0].text : this.$slots['title'][0].children[0].text
22
22
  }
@@ -29,7 +29,7 @@ Vue.component('cabecera-foro', {
29
29
  });
30
30
 
31
31
  Vue.component('cabcategoria-foro', {
32
- data: function () {
32
+ data() {
33
33
  return {
34
34
  dataTitle: this.$slots['title'][0].tag === undefined ? this.$slots['title'][0].text : this.$slots['title'][0].children[0].text
35
35
  }
@@ -42,7 +42,7 @@ Vue.component('cabcategoria-foro', {
42
42
  });
43
43
 
44
44
  Vue.component('cabespecial-foro', {
45
- data: function () {
45
+ data() {
46
46
  return {
47
47
  dataTitle: this.$slots['title'][0].tag === undefined ? this.$slots['title'][0].text : this.$slots['title'][0].children[0].text
48
48
  }
@@ -57,7 +57,7 @@ Vue.component('cabespecial-foro', {
57
57
  Vue.component('subforo-foro', {
58
58
  props: ['dataId'],
59
59
  computed: {
60
- slugId: function () {
60
+ slugId() {
61
61
  let id = '';
62
62
 
63
63
  if (window.location.pathname.match(/f(\d+)-/)) {
@@ -68,7 +68,7 @@ Vue.component('subforo-foro', {
68
68
 
69
69
  return 'subforum-' + id;
70
70
  },
71
- slugName: function () {
71
+ slugName() {
72
72
  const name = (this.dataId.indexOf('<h2>') > -1 ? FNR.utility.genSlug(this.dataId.split('<h2>')[1].split('</h2>')[0], '-') : FNR.utility.genSlug(this.dataId, '-'));
73
73
 
74
74
  return 'subforum-' + name;
@@ -83,7 +83,7 @@ Vue.component('subforo-foro', {
83
83
 
84
84
  Vue.component('lista-temas-cabecera', {
85
85
  props: ['dataElements'],
86
- data: function () {
86
+ data() {
87
87
  return {
88
88
  elementos: JSON.parse(this.dataElements.replace(/'/g, '"'))
89
89
  }
@@ -99,7 +99,7 @@ Vue.component('lista-temas-cabecera', {
99
99
 
100
100
  Vue.component('tema-foro', {
101
101
  computed: {
102
- slugId: function () {
102
+ slugId() {
103
103
  let id = '';
104
104
 
105
105
  if (window.location.pathname.match(/t(\d+)-/)) {
@@ -110,7 +110,7 @@ Vue.component('tema-foro', {
110
110
 
111
111
  return 'topic-' + id;
112
112
  },
113
- slugName: function () {
113
+ slugName() {
114
114
  const name = FNR.utility.genSlug((this.$slots['title'][0].tag === undefined ? this.$slots['title'][0].text : this.$slots['title'][0].children[0].text), '-');
115
115
 
116
116
  return 'topic-' + name;
@@ -125,13 +125,13 @@ Vue.component('tema-foro', {
125
125
 
126
126
  Vue.component('mando-foro', {
127
127
  props: ['dataId', 'dataApp'],
128
- data: function () {
128
+ data() {
129
129
  return {
130
130
  children: 0
131
131
  }
132
132
  },
133
133
  computed: {
134
- isStatusClass: function () {
134
+ isStatusClass() {
135
135
  if (this.children > 0) return 'forum-controls';
136
136
  else return 'forum-controls not-show';
137
137
  }
@@ -162,24 +162,15 @@ Vue.component('mando-foro', {
162
162
  /* Componentes del foro */
163
163
  Vue.component('titulo-especial', {
164
164
  props: ['dataTitle'],
165
- computed: {
166
- cleaned: function () {
167
- if (this.dataTitle.indexOf('<h2>') > -1) return this.dataTitle.split('<h2>')[1].split('</h2>')[0];
168
- else return this.dataTitle;
169
- },
170
- minimized: function () {
171
- return FNR.utility.genSlug(this.cleaned, ' ');
172
- }
173
- },
174
165
  template: `
175
- <h3 class="is-tweakeable"><span class="is-measurable" v-html="cleaned"></span></h3>
166
+ <h3 class="is-tweakeable"><span class="is-measurable">{{ dataTitle }}</span></h3>
176
167
  `
177
168
  });
178
169
 
179
170
  Vue.component('cuerpo-widget', {
180
171
  props: ['dataClass'],
181
172
  computed: {
182
- currentClass: function () {
173
+ currentClass() {
183
174
  if (this.dataClass === undefined) return 'plank-inner';
184
175
  else return 'plank-inner' + ' ' + this.dataClass;
185
176
  }
@@ -195,7 +186,7 @@ Vue.component('cuerpo-widget', {
195
186
 
196
187
  Vue.component('separador-foro', {
197
188
  props: ['dataFaction'],
198
- data: function () {
189
+ data() {
199
190
  return {
200
191
  image: forumDefaults.separator
201
192
  }
@@ -209,13 +200,13 @@ Vue.component('separador-foro', {
209
200
 
210
201
  Vue.component('tema-ref', {
211
202
  props: ['dataInfo'],
212
- data: function () {
203
+ data() {
213
204
  return {
214
205
  profileName: forumConfig.profileOptions.profileName || 'perfil'
215
206
  }
216
207
  },
217
208
  computed: {
218
- userColor: function () {
209
+ userColor() {
219
210
  return 'color: ' + this.dataInfo.lastpost.who.color;
220
211
  }
221
212
  },
@@ -253,14 +244,14 @@ Vue.component('campo-foro', {
253
244
  Vue.component('boton-foro', {
254
245
  props: ['dataUrl', 'dataName', 'dataIcon', 'dataType', 'dataInput'],
255
246
  computed: {
256
- realClass: function () {
247
+ realClass() {
257
248
  if (this.dataInput === 'true') return 'forum-button is-input';
258
249
  else return 'forum-button';
259
250
  },
260
- realName: function () {
251
+ realName() {
261
252
  return 'text' + (this.dataType === 'no-name' ? ' is-hidden-touch' : '');
262
253
  },
263
- realUrl: function () {
254
+ realUrl() {
264
255
  if (this.dataInput === 'true') return 'javascript:{}';
265
256
  else return this.dataUrl;
266
257
  }
@@ -306,7 +297,7 @@ Vue.component('aviso-foro', {
306
297
  });
307
298
 
308
299
  Vue.component('afiliaciones-foro', {
309
- data: function () {
300
+ data() {
310
301
  return {
311
302
  afis: {}
312
303
  }
@@ -323,7 +314,7 @@ Vue.component('afiliaciones-foro', {
323
314
 
324
315
  /* Navbar del foro */
325
316
  Vue.component('controles-foro', {
326
- data: function () {
317
+ data() {
327
318
  return {
328
319
  maPage: 0,
329
320
  userName: _userdata.username,
@@ -336,12 +327,12 @@ Vue.component('controles-foro', {
336
327
  };
337
328
  },
338
329
  computed: {
339
- isActiveClass: function () {
330
+ isActiveClass() {
340
331
  return 'has-bg' + ((this.isActive) ? ' visible' : ' not-visible');
341
332
  }
342
333
  },
343
334
  methods: {
344
- turnActive: function () {
335
+ turnActive() {
345
336
  this.isActive = (this.isActive) ? false : true;
346
337
  }
347
338
  },
@@ -387,7 +378,7 @@ Vue.component('controles-foro', {
387
378
 
388
379
  Vue.component('navbar-foro', {
389
380
  props: ['dataUsername', 'dataUserlevel', 'dataUserid', 'dataUserlog', 'dataUsermp', 'dataUserout'],
390
- data: function () {
381
+ data() {
391
382
  return {
392
383
  profileName: forumConfig.profileOptions.profileName || 'perfil',
393
384
  items: forumContent.navbar,
@@ -400,20 +391,20 @@ Vue.component('navbar-foro', {
400
391
  }
401
392
  },
402
393
  computed: {
403
- isStatusClass: function () {
394
+ isStatusClass() {
404
395
  return ((this.dataUserlog === 1) ? 'is-logged' : 'is-unlogged') + ((this.dataUserlevel === 1) ? ' is-admin' : ' is-user')
405
396
  },
406
- mpText: function () {
397
+ mpText() {
407
398
  return 'Mensajería' + ((this.dataUsermp !== 0) ? ' (' + this.dataUsermp + ')' : '')
408
399
  },
409
- links: function () {
400
+ links() {
410
401
  return forumContent.links.filter((item) => {
411
402
  return item.icon !== undefined;
412
403
  });
413
404
  }
414
405
  },
415
406
  methods: {
416
- changeAccount: function () {
407
+ changeAccount() {
417
408
  this.$parent.maPage = 1;
418
409
 
419
410
  FNR.user.changeAccount(this.dataUserout, this.multiAccount.accounts[this.multiAccount.position].name, this.multiAccount.accounts[this.multiAccount.position].password).then((r) => {
@@ -541,7 +532,7 @@ Vue.component('navbar-foro', {
541
532
 
542
533
  /* Widgets del foro */
543
534
  Vue.component('links-ayuda', {
544
- data: function () {
535
+ data() {
545
536
  return {
546
537
  links: forumContent.links
547
538
  }
@@ -554,7 +545,7 @@ Vue.component('links-ayuda', {
554
545
  });
555
546
 
556
547
  Vue.component('links-anuncios', {
557
- data: function () {
548
+ data() {
558
549
  return {
559
550
  announcements: forumContent.announcements
560
551
  }
@@ -570,7 +561,7 @@ Vue.component('links-anuncios', {
570
561
  });
571
562
 
572
563
  Vue.component('links-staff', {
573
- data: function () {
564
+ data() {
574
565
  return {
575
566
  staff: forumContent.staff
576
567
  }
@@ -583,7 +574,7 @@ Vue.component('links-staff', {
583
574
  });
584
575
 
585
576
  Vue.component('sabias-que', {
586
- data: function () {
577
+ data() {
587
578
  return {
588
579
  content: {}
589
580
  }
@@ -603,7 +594,7 @@ Vue.component('sabias-que', {
603
594
  });
604
595
 
605
596
  Vue.component('busquedas', {
606
- data: function () {
597
+ data() {
607
598
  return {
608
599
  content: {}
609
600
  }
@@ -639,7 +630,7 @@ Vue.component('note-info', {
639
630
  Vue.component('redirect', {
640
631
  props: ['dataTo'],
641
632
  computed: {
642
- currentStatus: function () {
633
+ currentStatus() {
643
634
  if (window.location.pathname.match(/t(\d+)-/)) return true;
644
635
  else return false;
645
636
  }
@@ -698,7 +689,7 @@ Vue.component('wiki-index-items-d', {
698
689
 
699
690
  Vue.component('wiki-index', {
700
691
  computed: {
701
- indexContent: function () {
692
+ indexContent() {
702
693
  const getChildren = (name) => {
703
694
  return filtered.filter((item) => {
704
695
  return item.component.page_parent === name;
@@ -789,7 +780,7 @@ Vue.component('wiki-contenido', {
789
780
 
790
781
  Vue.component('wiki-nav', {
791
782
  computed: {
792
- more: function () {
783
+ more() {
793
784
  return routes.filter((item) => {
794
785
  return item.component
795
786
  }).filter((item) => {
@@ -798,7 +789,7 @@ Vue.component('wiki-nav', {
798
789
  })[0].component.page_parent
799
790
  }).length > 1;
800
791
  },
801
- nav: function () {
792
+ nav() {
802
793
  const list = routes.filter((item) => {
803
794
  return item.component
804
795
  }).filter((item) => {
@@ -829,7 +820,7 @@ Vue.component('wiki-nav', {
829
820
  Vue.component('wiki-children', {
830
821
  props: ['dataName', 'dataCategory'],
831
822
  computed: {
832
- nav: function () {
823
+ nav() {
833
824
  return routes.filter((item) => {
834
825
  return item.component
835
826
  }).filter((item) => {
@@ -849,7 +840,7 @@ Vue.component('wiki-children', {
849
840
  Vue.component('modal-foro', {
850
841
  props: ['dataTitle'],
851
842
  methods: {
852
- modalClose: function () {
843
+ modalClose() {
853
844
  this.$parent.state.modal = false;
854
845
  this.$emit('modal-close');
855
846
  }
@@ -885,7 +876,7 @@ Vue.component('controles-modal', {
885
876
 
886
877
  /* Expediente */
887
878
  Vue.component('expediente-usuario', {
888
- data: function () {
879
+ data() {
889
880
  return {
890
881
  info: {
891
882
  name: _userdata.username,
@@ -897,16 +888,16 @@ Vue.component('expediente-usuario', {
897
888
  }
898
889
  },
899
890
  computed: {
900
- userRank: function () {
891
+ userRank() {
901
892
  return this.profile.fields[forumConfig.profileOptions.profileRank].content;
902
893
  },
903
- userCite: function () {
894
+ userCite() {
904
895
  return this.profile.fields[forumConfig.profileOptions.profileCite].content
905
896
  },
906
- userCover: function () {
897
+ userCover() {
907
898
  return this.profile.fields[forumConfig.profileOptions.profileCover].content
908
899
  },
909
- usableMiniFields: function () {
900
+ usableMiniFields() {
910
901
  if (this.config.miniFields === undefined || !this.config.miniFields.length) return [];
911
902
  else return Object.entries(this.profile.fields).filter((item) => {
912
903
  return this.config.miniFields.indexOf(item[0]) > -1;
@@ -930,7 +921,7 @@ Vue.component('expediente-usuario', {
930
921
  };
931
922
  });
932
923
  },
933
- usableBigFields: function () {
924
+ usableBigFields() {
934
925
  if (this.config.mainFields === undefined || !Object.keys(this.config.mainFields).length) return [];
935
926
  else return Object.entries(this.profile.fields).filter((item) => {
936
927
  return Object.keys(this.config.mainFields).indexOf(item[0]) > -1;
@@ -956,7 +947,7 @@ Vue.component('expediente-usuario', {
956
947
  };
957
948
  });
958
949
  },
959
- lengthBigFields: function () {
950
+ lengthBigFields() {
960
951
  let length = 0;
961
952
 
962
953
  this.usableBigFields.map((item) => {
@@ -967,7 +958,7 @@ Vue.component('expediente-usuario', {
967
958
 
968
959
  return length;
969
960
  },
970
- usableExtraFields: function () {
961
+ usableExtraFields() {
971
962
  if (this.config.extraFields === undefined || !this.config.extraFields.length) return [];
972
963
  else return Object.entries(this.profile.fields).filter((item) => {
973
964
  return this.config.extraFields.indexOf(item[0]) > -1;
@@ -991,7 +982,7 @@ Vue.component('expediente-usuario', {
991
982
  };
992
983
  });
993
984
  },
994
- lengthExtraFields: function () {
985
+ lengthExtraFields() {
995
986
  let length = 0;
996
987
 
997
988
  this.usableExtraFields.map((item) => {
@@ -1002,7 +993,7 @@ Vue.component('expediente-usuario', {
1002
993
 
1003
994
  return length;
1004
995
  },
1005
- usableLinkFields: function () {
996
+ usableLinkFields() {
1006
997
  if (this.profile.contact.length) return [];
1007
998
  else return Object.entries(this.profile.contact).filter((item) => {
1008
999
  return item[1].label !== 'Mensaje Privado';
@@ -1016,15 +1007,15 @@ Vue.component('expediente-usuario', {
1016
1007
  }
1017
1008
  });
1018
1009
  },
1019
- chronologyField: function () {
1010
+ chronologyField() {
1020
1011
  if (this.config.cronoField === undefined || !this.config.cronoField.length) return [];
1021
1012
  else return FNR.utility.genArray(this.profile.fields[FNR.utility.genSlug(this.config.cronoField, '_')].content);
1022
1013
  },
1023
- relationshipsField: function () {
1014
+ relationshipsField() {
1024
1015
  if (this.config.relaField === undefined || !this.config.relaField.length) return [];
1025
1016
  else return FNR.utility.genArray(this.profile.fields[FNR.utility.genSlug(this.config.relaField, '_')].content);
1026
1017
  },
1027
- lengthHistoryFields: function () {
1018
+ lengthHistoryFields() {
1028
1019
  let length = 0;
1029
1020
 
1030
1021
  length += this.chronologyField.length;
@@ -1032,7 +1023,7 @@ Vue.component('expediente-usuario', {
1032
1023
 
1033
1024
  return length;
1034
1025
  },
1035
- currentClass: function () {
1026
+ currentClass() {
1036
1027
  return 'usergroup-' + this.profile.colour
1037
1028
  }
1038
1029
  },
@@ -1190,7 +1181,7 @@ Vue.component('expediente-usuario', {
1190
1181
  Vue.component('cuerpo-principal', {
1191
1182
  props: ['dataTitle'],
1192
1183
  computed: {
1193
- title: function () {
1184
+ title() {
1194
1185
  if (typeof this.dataTitle === 'undefined') return '';
1195
1186
  else return this.dataTitle;
1196
1187
  }
@@ -1208,7 +1199,7 @@ Vue.component('cuerpo-principal', {
1208
1199
  Vue.component('cuerpo-interior', {
1209
1200
  props: ['dataTitle'],
1210
1201
  computed: {
1211
- title: function () {
1202
+ title() {
1212
1203
  if (typeof this.dataTitle === 'undefined') return '';
1213
1204
  else return this.dataTitle;
1214
1205
  }
@@ -1226,7 +1217,7 @@ Vue.component('cuerpo-interior', {
1226
1217
  Vue.component('cuerpo-lista', {
1227
1218
  props: ['dataTitle'],
1228
1219
  computed: {
1229
- title: function () {
1220
+ title() {
1230
1221
  if (typeof this.dataTitle === 'undefined') return '';
1231
1222
  else return this.dataTitle;
1232
1223
  }
@@ -38,7 +38,7 @@ const topbar = new Vue({
38
38
  if (document.querySelector('#forum-wiki:not(.is-not-vue)')) {
39
39
  const wiki = new Vue({
40
40
  router,
41
- updated: function () {
41
+ updated() {
42
42
  this.$nextTick(function () {
43
43
  FNR.behaviour.genWiki();
44
44
  });
@@ -64,4 +64,9 @@ Vue.filter('search-number', (value) => {
64
64
  Vue.filter('turn-br', (value) => {
65
65
  if (!value || typeof value !== 'string') return value;
66
66
  else return value.replace(/\n/g, '<br>');
67
+ });
68
+
69
+ Vue.filter('mini-sanitize', (value) => {
70
+ if (!value || typeof value !== 'string') return value;
71
+ else return value.replace(/</g, '&lt;').replace(/>/g, '&gt;');
67
72
  });
@@ -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<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);
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<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);
@@ -29,16 +29,16 @@ Vue.component('tema', {
29
29
 
30
30
  Vue.component('relacion', {
31
31
  props: ['dataId', 'dataName', 'dataImg', 'dataColor'],
32
- data: function () {
32
+ data() {
33
33
  return {
34
34
  profileName: forumConfig.profileOptions.profileName || 'perfil'
35
35
  }
36
36
  },
37
37
  computed: {
38
- relaClass: function () {
38
+ relaClass() {
39
39
  return 'rela-list usergroup-' + this.dataColor.toLowerCase();
40
40
  },
41
- relaType: function () {
41
+ relaType() {
42
42
  return typeof this.dataId !== 'undefined';
43
43
  }
44
44
  },
@@ -1 +1 @@
1
- Vue.component("tema", { props: ["dataType", "dataUrl", "dataName", "dataDate"], template: '\n <div class="rp-list">\n <a class="rp-element" :href="dataUrl" target="_blank" :title="\'Ir al tema «\' + dataName + \'»\'">\n <div class="rp-icon">\n <template v-if="dataType === \'abierto\'">\n <i class="fas fa-lock-open"></i>\n </template>\n <template v-else-if="dataType === \'cerrado\'">\n <i class="fas fa-lock"></i>\n </template>\n <template v-else-if="dataType === \'abandonado\'">\n <i class="fas fa-times"></i>\n </template>\n </div>\n <div class="rp-content">\n <div class="rp-name">\n <span>{{ dataName }}</span>\n <small>\n {{ dataDate }} - <slot></slot>\n </small>\n </div>\n </div>\n </a>\n </div>\n ' }), Vue.component("relacion", { props: ["dataId", "dataName", "dataImg", "dataColor"], data: function () { return { profileName: forumConfig.profileOptions.profileName || "perfil" } }, computed: { relaClass: function () { return "rela-list usergroup-" + this.dataColor.toLowerCase() }, relaType: function () { return void 0 !== this.dataId } }, template: '\n <div :class="relaClass">\n <template v-if="relaType">\n <a class="rela-element" :href="\'/u\' + dataId" target="_blank" :title="\'Ir al \' + profileName + \' de «\' + dataName + \'»\'">\n <div class="rela-image" :style="\'background-image: url(\' + dataImg + \')\'"></div>\n <div class="rela-content">\n <div class="rela-title">\n <h4>{{ dataName }}</h4>\n </div>\n <div class="small-text is-content">\n <slot></slot>\n </div>\n </div>\n </a>\n </template>\n <template v-else>\n <a class="rela-element">\n <div class="rela-image" :style="\'background-image: url(\' + dataImg + \')\'"></div>\n <div class="rela-content">\n <div class="rela-title">\n <h4>{{ dataName }}</h4>\n </div>\n <div class="small-text is-content">\n <slot></slot>\n </div>\n </div>\n </a>\n </template>\n </div>\n ' });
1
+ Vue.component("tema", { props: ["dataType", "dataUrl", "dataName", "dataDate"], template: '\n <div class="rp-list">\n <a class="rp-element" :href="dataUrl" target="_blank" :title="\'Ir al tema «\' + dataName + \'»\'">\n <div class="rp-icon">\n <template v-if="dataType === \'abierto\'">\n <i class="fas fa-lock-open"></i>\n </template>\n <template v-else-if="dataType === \'cerrado\'">\n <i class="fas fa-lock"></i>\n </template>\n <template v-else-if="dataType === \'abandonado\'">\n <i class="fas fa-times"></i>\n </template>\n </div>\n <div class="rp-content">\n <div class="rp-name">\n <span>{{ dataName }}</span>\n <small>\n {{ dataDate }} - <slot></slot>\n </small>\n </div>\n </div>\n </a>\n </div>\n ' }), Vue.component("relacion", { props: ["dataId", "dataName", "dataImg", "dataColor"], data() { return { profileName: forumConfig.profileOptions.profileName || "perfil" } }, computed: { relaClass() { return "rela-list usergroup-" + this.dataColor.toLowerCase() }, relaType() { return void 0 !== this.dataId } }, template: '\n <div :class="relaClass">\n <template v-if="relaType">\n <a class="rela-element" :href="\'/u\' + dataId" target="_blank" :title="\'Ir al \' + profileName + \' de «\' + dataName + \'»\'">\n <div class="rela-image" :style="\'background-image: url(\' + dataImg + \')\'"></div>\n <div class="rela-content">\n <div class="rela-title">\n <h4>{{ dataName }}</h4>\n </div>\n <div class="small-text is-content">\n <slot></slot>\n </div>\n </div>\n </a>\n </template>\n <template v-else>\n <a class="rela-element">\n <div class="rela-image" :style="\'background-image: url(\' + dataImg + \')\'"></div>\n <div class="rela-content">\n <div class="rela-title">\n <h4>{{ dataName }}</h4>\n </div>\n <div class="small-text is-content">\n <slot></slot>\n </div>\n </div>\n </a>\n </template>\n </div>\n ' });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "generic-skin",
3
- "version": "3.0.8",
3
+ "version": "3.0.11",
4
4
  "description": "Generic Forum Skin for Forumotion created by Gaylien.",
5
5
  "main": "readme.md",
6
6
  "scripts": {