generic-skin 2.5.3 → 2.6.41
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/apps/vueChrono.js +45 -44
- package/apps/vueChrono.min.js +1 -1
- package/apps/vueDefault.js +354 -100
- package/apps/vueDefault.min.js +2 -4
- package/apps/vueMulti.js +49 -39
- package/apps/vueMulti.min.js +1 -1
- package/apps/vueRela.js +41 -40
- package/apps/vueRela.min.js +1 -1
- package/config/vueComponents.js +78 -114
- package/config/vueComponents.min.js +2 -2
- package/config/vueElements.js +1 -1
- package/config/vueElements.min.js +1 -1
- package/config/vueFilters.js +6 -0
- package/config/vueFilters.min.js +1 -1
- package/extensions/vueRouter.js +0 -0
- package/extensions/vueRouter.min.js +0 -0
- package/frameworks/FNRFramework.js +952 -860
- package/frameworks/FNRFramework.min.js +1 -1
- package/general.js +33 -9
- package/general.min.js +1 -1
- package/options/noManagers.js +3 -3
- package/options/noManagers.min.js +1 -1
- package/package.json +1 -1
- package/pages/ucp.js +37 -1
- package/pages/ucp.min.js +1 -1
- package/plugins/sjcl.min.js +0 -0
- package/readme.md +0 -0
- package/stylesheet.css +57 -26
- package/stylesheet.min.css +1 -1
package/config/vueComponents.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Vue.component('categoria-foro', {
|
|
3
3
|
props: ['dataId'],
|
|
4
4
|
computed: {
|
|
5
|
-
slugName
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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,24 +125,8 @@ Vue.component('tema-foro', {
|
|
|
125
125
|
|
|
126
126
|
Vue.component('mando-foro', {
|
|
127
127
|
props: ['dataId', 'dataApp'],
|
|
128
|
-
data: function () {
|
|
129
|
-
return {
|
|
130
|
-
children: 0
|
|
131
|
-
}
|
|
132
|
-
},
|
|
133
|
-
computed: {
|
|
134
|
-
isStatusClass: function () {
|
|
135
|
-
if (this.children > 0) return 'forum-controls';
|
|
136
|
-
else return 'forum-controls not-show';
|
|
137
|
-
}
|
|
138
|
-
},
|
|
139
|
-
created() {
|
|
140
|
-
Object.values(this.$slots).map((item) => {
|
|
141
|
-
this.children += item.length;
|
|
142
|
-
});
|
|
143
|
-
},
|
|
144
128
|
template: `
|
|
145
|
-
<section :id="dataId"
|
|
129
|
+
<section :id="dataId" class="forum-controls">
|
|
146
130
|
<template v-if="dataApp === 'true'">
|
|
147
131
|
<div class="left page-pagination">
|
|
148
132
|
<slot name="pagination"></slot>
|
|
@@ -162,24 +146,15 @@ Vue.component('mando-foro', {
|
|
|
162
146
|
/* Componentes del foro */
|
|
163
147
|
Vue.component('titulo-especial', {
|
|
164
148
|
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
149
|
template: `
|
|
175
|
-
<h3 class="is-tweakeable"><span class="is-measurable"
|
|
150
|
+
<h3 class="is-tweakeable"><span class="is-measurable" v-html="dataTitle"></span></h3>
|
|
176
151
|
`
|
|
177
152
|
});
|
|
178
153
|
|
|
179
154
|
Vue.component('cuerpo-widget', {
|
|
180
155
|
props: ['dataClass'],
|
|
181
156
|
computed: {
|
|
182
|
-
currentClass
|
|
157
|
+
currentClass() {
|
|
183
158
|
if (this.dataClass === undefined) return 'plank-inner';
|
|
184
159
|
else return 'plank-inner' + ' ' + this.dataClass;
|
|
185
160
|
}
|
|
@@ -195,7 +170,7 @@ Vue.component('cuerpo-widget', {
|
|
|
195
170
|
|
|
196
171
|
Vue.component('separador-foro', {
|
|
197
172
|
props: ['dataFaction'],
|
|
198
|
-
data
|
|
173
|
+
data() {
|
|
199
174
|
return {
|
|
200
175
|
image: forumDefaults.separator
|
|
201
176
|
}
|
|
@@ -209,13 +184,13 @@ Vue.component('separador-foro', {
|
|
|
209
184
|
|
|
210
185
|
Vue.component('tema-ref', {
|
|
211
186
|
props: ['dataInfo'],
|
|
212
|
-
data
|
|
187
|
+
data() {
|
|
213
188
|
return {
|
|
214
189
|
profileName: forumConfig.profileOptions.profileName || 'perfil'
|
|
215
190
|
}
|
|
216
191
|
},
|
|
217
192
|
computed: {
|
|
218
|
-
userColor
|
|
193
|
+
userColor() {
|
|
219
194
|
return 'color: ' + this.dataInfo.lastpost.who.color;
|
|
220
195
|
}
|
|
221
196
|
},
|
|
@@ -253,14 +228,14 @@ Vue.component('campo-foro', {
|
|
|
253
228
|
Vue.component('boton-foro', {
|
|
254
229
|
props: ['dataUrl', 'dataName', 'dataIcon', 'dataType', 'dataInput'],
|
|
255
230
|
computed: {
|
|
256
|
-
realClass
|
|
231
|
+
realClass() {
|
|
257
232
|
if (this.dataInput === 'true') return 'forum-button is-input';
|
|
258
233
|
else return 'forum-button';
|
|
259
234
|
},
|
|
260
|
-
realName
|
|
235
|
+
realName() {
|
|
261
236
|
return 'text' + (this.dataType === 'no-name' ? ' is-hidden-touch' : '');
|
|
262
237
|
},
|
|
263
|
-
realUrl
|
|
238
|
+
realUrl() {
|
|
264
239
|
if (this.dataInput === 'true') return 'javascript:{}';
|
|
265
240
|
else return this.dataUrl;
|
|
266
241
|
}
|
|
@@ -306,7 +281,7 @@ Vue.component('aviso-foro', {
|
|
|
306
281
|
});
|
|
307
282
|
|
|
308
283
|
Vue.component('afiliaciones-foro', {
|
|
309
|
-
data
|
|
284
|
+
data() {
|
|
310
285
|
return {
|
|
311
286
|
afis: {}
|
|
312
287
|
}
|
|
@@ -323,7 +298,7 @@ Vue.component('afiliaciones-foro', {
|
|
|
323
298
|
|
|
324
299
|
/* Navbar del foro */
|
|
325
300
|
Vue.component('controles-foro', {
|
|
326
|
-
data
|
|
301
|
+
data() {
|
|
327
302
|
return {
|
|
328
303
|
maPage: 0,
|
|
329
304
|
userName: _userdata.username,
|
|
@@ -336,12 +311,12 @@ Vue.component('controles-foro', {
|
|
|
336
311
|
};
|
|
337
312
|
},
|
|
338
313
|
computed: {
|
|
339
|
-
isActiveClass
|
|
314
|
+
isActiveClass() {
|
|
340
315
|
return 'has-bg' + ((this.isActive) ? ' visible' : ' not-visible');
|
|
341
316
|
}
|
|
342
317
|
},
|
|
343
318
|
methods: {
|
|
344
|
-
turnActive
|
|
319
|
+
turnActive() {
|
|
345
320
|
this.isActive = (this.isActive) ? false : true;
|
|
346
321
|
}
|
|
347
322
|
},
|
|
@@ -368,14 +343,14 @@ Vue.component('controles-foro', {
|
|
|
368
343
|
<navbar-foro :data-username="userName" :data-userlevel="userLevel" :data-userid="userId" :data-userlog="userLog" :data-usermp="userMP" :data-userout="userOut" />
|
|
369
344
|
</section>
|
|
370
345
|
<section id="forum-navbar-mobile" class="is-hidden-desktop">
|
|
371
|
-
<div id="hmg-button"
|
|
346
|
+
<div id="hmg-button" @click="turnActive()" class="is-pointer">
|
|
372
347
|
<i class="fas fa-bars"></i>
|
|
373
348
|
</div>
|
|
374
349
|
<div id="hmg-menu" :class="isActiveClass">
|
|
375
|
-
<h3>{{ userName | just-name }}<i class="fas fa-times is-pointer"
|
|
350
|
+
<h3>{{ userName | just-name }}<i class="fas fa-times is-pointer" @click="turnActive()"></i></h3>
|
|
376
351
|
<navbar-foro :data-username="userName" :data-userlevel="userLevel" :data-userid="userId" :data-userlog="userLog" :data-usermp="userMP" :data-userout="userOut" />
|
|
377
352
|
</div>
|
|
378
|
-
<div class="bg-active"
|
|
353
|
+
<div class="bg-active" @click="turnActive()"></div>
|
|
379
354
|
</section>
|
|
380
355
|
<section v-if="maPage === 1" id="multiaccount-transition">
|
|
381
356
|
<cargando-foro data-text="Cambiando de cuenta…"></cargando-foro>
|
|
@@ -387,10 +362,11 @@ Vue.component('controles-foro', {
|
|
|
387
362
|
|
|
388
363
|
Vue.component('navbar-foro', {
|
|
389
364
|
props: ['dataUsername', 'dataUserlevel', 'dataUserid', 'dataUserlog', 'dataUsermp', 'dataUserout'],
|
|
390
|
-
data
|
|
365
|
+
data() {
|
|
391
366
|
return {
|
|
392
367
|
profileName: forumConfig.profileOptions.profileName || 'perfil',
|
|
393
368
|
items: forumContent.navbar,
|
|
369
|
+
navigation: forumContent.links,
|
|
394
370
|
directions: forumConfig.usableDirections,
|
|
395
371
|
multiAccount: {
|
|
396
372
|
status: false,
|
|
@@ -400,20 +376,20 @@ Vue.component('navbar-foro', {
|
|
|
400
376
|
}
|
|
401
377
|
},
|
|
402
378
|
computed: {
|
|
403
|
-
isStatusClass
|
|
379
|
+
isStatusClass() {
|
|
404
380
|
return ((this.dataUserlog === 1) ? 'is-logged' : 'is-unlogged') + ((this.dataUserlevel === 1) ? ' is-admin' : ' is-user')
|
|
405
381
|
},
|
|
406
|
-
mpText
|
|
382
|
+
mpText() {
|
|
407
383
|
return 'Mensajería' + ((this.dataUsermp !== 0) ? ' (' + this.dataUsermp + ')' : '')
|
|
408
384
|
},
|
|
409
|
-
links
|
|
410
|
-
return
|
|
385
|
+
links() {
|
|
386
|
+
return this.navigation.filter((item) => {
|
|
411
387
|
return item.icon !== undefined;
|
|
412
388
|
});
|
|
413
389
|
}
|
|
414
390
|
},
|
|
415
391
|
methods: {
|
|
416
|
-
changeAccount
|
|
392
|
+
changeAccount() {
|
|
417
393
|
this.$parent.maPage = 1;
|
|
418
394
|
|
|
419
395
|
FNR.user.changeAccount(this.dataUserout, this.multiAccount.accounts[this.multiAccount.position].name, this.multiAccount.accounts[this.multiAccount.position].password).then((r) => {
|
|
@@ -517,7 +493,7 @@ Vue.component('navbar-foro', {
|
|
|
517
493
|
</div>
|
|
518
494
|
<div class="text">Temas personales</div>
|
|
519
495
|
</a>
|
|
520
|
-
<a class="navbar-item" :href="dataUserout">
|
|
496
|
+
<a class="navbar-item" :href="dataUserout" title="Cerrar sesión">
|
|
521
497
|
<div class="icon">
|
|
522
498
|
<i class="fas fa-sign-out-alt"></i>
|
|
523
499
|
</div>
|
|
@@ -526,7 +502,7 @@ Vue.component('navbar-foro', {
|
|
|
526
502
|
<template v-if="multiAccount.status">
|
|
527
503
|
<hr/>
|
|
528
504
|
<div class="select-container">
|
|
529
|
-
<select v-model="multiAccount.position"
|
|
505
|
+
<select v-model="multiAccount.position" @change="changeAccount()" @click="$event.stopPropagation()">
|
|
530
506
|
<option value="-1" hidden selected>Selec. personaje</option>
|
|
531
507
|
<option v-for="(account, index) in multiAccount.accounts" :value="index">{{ account.name }}</option>
|
|
532
508
|
</select>
|
|
@@ -541,7 +517,7 @@ Vue.component('navbar-foro', {
|
|
|
541
517
|
|
|
542
518
|
/* Widgets del foro */
|
|
543
519
|
Vue.component('links-ayuda', {
|
|
544
|
-
data
|
|
520
|
+
data() {
|
|
545
521
|
return {
|
|
546
522
|
links: forumContent.links
|
|
547
523
|
}
|
|
@@ -554,7 +530,7 @@ Vue.component('links-ayuda', {
|
|
|
554
530
|
});
|
|
555
531
|
|
|
556
532
|
Vue.component('links-anuncios', {
|
|
557
|
-
data
|
|
533
|
+
data() {
|
|
558
534
|
return {
|
|
559
535
|
announcements: forumContent.announcements
|
|
560
536
|
}
|
|
@@ -570,7 +546,7 @@ Vue.component('links-anuncios', {
|
|
|
570
546
|
});
|
|
571
547
|
|
|
572
548
|
Vue.component('links-staff', {
|
|
573
|
-
data
|
|
549
|
+
data() {
|
|
574
550
|
return {
|
|
575
551
|
staff: forumContent.staff
|
|
576
552
|
}
|
|
@@ -583,47 +559,35 @@ Vue.component('links-staff', {
|
|
|
583
559
|
});
|
|
584
560
|
|
|
585
561
|
Vue.component('sabias-que', {
|
|
586
|
-
data
|
|
562
|
+
data() {
|
|
587
563
|
return {
|
|
588
|
-
content: forumContent.sq
|
|
589
|
-
position: forumContent.sq[Math.floor(Math.random() * forumContent.sq.length)]
|
|
590
|
-
}
|
|
591
|
-
},
|
|
592
|
-
computed: {
|
|
593
|
-
current: function () {
|
|
594
|
-
return this.content[this.position];
|
|
564
|
+
content: forumContent.sq[Math.floor(Math.random() * forumContent.sq.length)]
|
|
595
565
|
}
|
|
596
566
|
},
|
|
597
567
|
created() {
|
|
598
568
|
setInterval(() => {
|
|
599
|
-
this.
|
|
569
|
+
this.content = forumContent.sq[Math.floor(Math.random() * forumContent.sq.length)];
|
|
600
570
|
}, 12000);
|
|
601
571
|
},
|
|
602
572
|
template: `
|
|
603
|
-
<img id="sq-img" :src="
|
|
573
|
+
<img id="sq-img" :src="content" alt="¿Sabías que?" />
|
|
604
574
|
`
|
|
605
575
|
});
|
|
606
576
|
|
|
607
577
|
Vue.component('busquedas', {
|
|
608
|
-
data
|
|
578
|
+
data() {
|
|
609
579
|
return {
|
|
610
|
-
content: forumContent.searches
|
|
611
|
-
position: forumContent.searches[Math.floor(Math.random() * forumContent.searches.length)]
|
|
612
|
-
}
|
|
613
|
-
},
|
|
614
|
-
computed: {
|
|
615
|
-
current: function () {
|
|
616
|
-
return this.content[this.position];
|
|
580
|
+
content: forumContent.searches[Math.floor(Math.random() * forumContent.searches.length)]
|
|
617
581
|
}
|
|
618
582
|
},
|
|
619
583
|
created() {
|
|
620
584
|
setInterval(() => {
|
|
621
|
-
this.
|
|
585
|
+
this.content = forumContent.searches[Math.floor(Math.random() * forumContent.searches.length)];
|
|
622
586
|
}, 16000);
|
|
623
587
|
},
|
|
624
588
|
template: `
|
|
625
|
-
<a id="search-img" :href="
|
|
626
|
-
<img :src="
|
|
589
|
+
<a id="search-img" :href="content.url" target="_blank" :title="content.desc">
|
|
590
|
+
<img :src="content.img" alt="Búsqueda" />
|
|
627
591
|
</a>
|
|
628
592
|
`
|
|
629
593
|
});
|
|
@@ -643,7 +607,7 @@ Vue.component('note-info', {
|
|
|
643
607
|
Vue.component('redirect', {
|
|
644
608
|
props: ['dataTo'],
|
|
645
609
|
computed: {
|
|
646
|
-
currentStatus
|
|
610
|
+
currentStatus() {
|
|
647
611
|
if (window.location.pathname.match(/t(\d+)-/)) return true;
|
|
648
612
|
else return false;
|
|
649
613
|
}
|
|
@@ -702,7 +666,7 @@ Vue.component('wiki-index-items-d', {
|
|
|
702
666
|
|
|
703
667
|
Vue.component('wiki-index', {
|
|
704
668
|
computed: {
|
|
705
|
-
indexContent
|
|
669
|
+
indexContent() {
|
|
706
670
|
const getChildren = (name) => {
|
|
707
671
|
return filtered.filter((item) => {
|
|
708
672
|
return item.component.page_parent === name;
|
|
@@ -793,7 +757,7 @@ Vue.component('wiki-contenido', {
|
|
|
793
757
|
|
|
794
758
|
Vue.component('wiki-nav', {
|
|
795
759
|
computed: {
|
|
796
|
-
more
|
|
760
|
+
more() {
|
|
797
761
|
return routes.filter((item) => {
|
|
798
762
|
return item.component
|
|
799
763
|
}).filter((item) => {
|
|
@@ -802,7 +766,7 @@ Vue.component('wiki-nav', {
|
|
|
802
766
|
})[0].component.page_parent
|
|
803
767
|
}).length > 1;
|
|
804
768
|
},
|
|
805
|
-
nav
|
|
769
|
+
nav() {
|
|
806
770
|
const list = routes.filter((item) => {
|
|
807
771
|
return item.component
|
|
808
772
|
}).filter((item) => {
|
|
@@ -833,7 +797,7 @@ Vue.component('wiki-nav', {
|
|
|
833
797
|
Vue.component('wiki-children', {
|
|
834
798
|
props: ['dataName', 'dataCategory'],
|
|
835
799
|
computed: {
|
|
836
|
-
nav
|
|
800
|
+
nav() {
|
|
837
801
|
return routes.filter((item) => {
|
|
838
802
|
return item.component
|
|
839
803
|
}).filter((item) => {
|
|
@@ -853,7 +817,7 @@ Vue.component('wiki-children', {
|
|
|
853
817
|
Vue.component('modal-foro', {
|
|
854
818
|
props: ['dataTitle'],
|
|
855
819
|
methods: {
|
|
856
|
-
modalClose
|
|
820
|
+
modalClose() {
|
|
857
821
|
this.$parent.state.modal = false;
|
|
858
822
|
this.$emit('modal-close');
|
|
859
823
|
}
|
|
@@ -863,7 +827,7 @@ Vue.component('modal-foro', {
|
|
|
863
827
|
<div class="modal-element">
|
|
864
828
|
<div class="modal-title">
|
|
865
829
|
<h3>{{ dataTitle }}</h3>
|
|
866
|
-
<a
|
|
830
|
+
<a @click="modalClose()">
|
|
867
831
|
<i class="fas fa-times"></i>
|
|
868
832
|
</a>
|
|
869
833
|
</div>
|
|
@@ -874,7 +838,7 @@ Vue.component('modal-foro', {
|
|
|
874
838
|
<slot name="controls"></slot>
|
|
875
839
|
</div>
|
|
876
840
|
</div>
|
|
877
|
-
<div class="is-bgmodal bg-active"
|
|
841
|
+
<div class="is-bgmodal bg-active" @click="modalClose()"></div>
|
|
878
842
|
</div>
|
|
879
843
|
`
|
|
880
844
|
});
|
|
@@ -889,7 +853,7 @@ Vue.component('controles-modal', {
|
|
|
889
853
|
|
|
890
854
|
/* Expediente */
|
|
891
855
|
Vue.component('expediente-usuario', {
|
|
892
|
-
data
|
|
856
|
+
data() {
|
|
893
857
|
return {
|
|
894
858
|
info: {
|
|
895
859
|
name: _userdata.username,
|
|
@@ -901,16 +865,16 @@ Vue.component('expediente-usuario', {
|
|
|
901
865
|
}
|
|
902
866
|
},
|
|
903
867
|
computed: {
|
|
904
|
-
userRank
|
|
868
|
+
userRank() {
|
|
905
869
|
return this.profile.fields[forumConfig.profileOptions.profileRank].content;
|
|
906
870
|
},
|
|
907
|
-
userCite
|
|
871
|
+
userCite() {
|
|
908
872
|
return this.profile.fields[forumConfig.profileOptions.profileCite].content
|
|
909
873
|
},
|
|
910
|
-
userCover
|
|
874
|
+
userCover() {
|
|
911
875
|
return this.profile.fields[forumConfig.profileOptions.profileCover].content
|
|
912
876
|
},
|
|
913
|
-
usableMiniFields
|
|
877
|
+
usableMiniFields() {
|
|
914
878
|
if (this.config.miniFields === undefined || !this.config.miniFields.length) return [];
|
|
915
879
|
else return Object.entries(this.profile.fields).filter((item) => {
|
|
916
880
|
return this.config.miniFields.indexOf(item[0]) > -1;
|
|
@@ -934,7 +898,7 @@ Vue.component('expediente-usuario', {
|
|
|
934
898
|
};
|
|
935
899
|
});
|
|
936
900
|
},
|
|
937
|
-
usableBigFields
|
|
901
|
+
usableBigFields() {
|
|
938
902
|
if (this.config.mainFields === undefined || !Object.keys(this.config.mainFields).length) return [];
|
|
939
903
|
else return Object.entries(this.profile.fields).filter((item) => {
|
|
940
904
|
return Object.keys(this.config.mainFields).indexOf(item[0]) > -1;
|
|
@@ -960,7 +924,7 @@ Vue.component('expediente-usuario', {
|
|
|
960
924
|
};
|
|
961
925
|
});
|
|
962
926
|
},
|
|
963
|
-
lengthBigFields
|
|
927
|
+
lengthBigFields() {
|
|
964
928
|
let length = 0;
|
|
965
929
|
|
|
966
930
|
this.usableBigFields.map((item) => {
|
|
@@ -971,7 +935,7 @@ Vue.component('expediente-usuario', {
|
|
|
971
935
|
|
|
972
936
|
return length;
|
|
973
937
|
},
|
|
974
|
-
usableExtraFields
|
|
938
|
+
usableExtraFields() {
|
|
975
939
|
if (this.config.extraFields === undefined || !this.config.extraFields.length) return [];
|
|
976
940
|
else return Object.entries(this.profile.fields).filter((item) => {
|
|
977
941
|
return this.config.extraFields.indexOf(item[0]) > -1;
|
|
@@ -995,7 +959,7 @@ Vue.component('expediente-usuario', {
|
|
|
995
959
|
};
|
|
996
960
|
});
|
|
997
961
|
},
|
|
998
|
-
lengthExtraFields
|
|
962
|
+
lengthExtraFields() {
|
|
999
963
|
let length = 0;
|
|
1000
964
|
|
|
1001
965
|
this.usableExtraFields.map((item) => {
|
|
@@ -1006,7 +970,7 @@ Vue.component('expediente-usuario', {
|
|
|
1006
970
|
|
|
1007
971
|
return length;
|
|
1008
972
|
},
|
|
1009
|
-
usableLinkFields
|
|
973
|
+
usableLinkFields() {
|
|
1010
974
|
if (this.profile.contact.length) return [];
|
|
1011
975
|
else return Object.entries(this.profile.contact).filter((item) => {
|
|
1012
976
|
return item[1].label !== 'Mensaje Privado';
|
|
@@ -1020,15 +984,15 @@ Vue.component('expediente-usuario', {
|
|
|
1020
984
|
}
|
|
1021
985
|
});
|
|
1022
986
|
},
|
|
1023
|
-
chronologyField
|
|
987
|
+
chronologyField() {
|
|
1024
988
|
if (this.config.cronoField === undefined || !this.config.cronoField.length) return [];
|
|
1025
989
|
else return FNR.utility.genArray(this.profile.fields[FNR.utility.genSlug(this.config.cronoField, '_')].content);
|
|
1026
990
|
},
|
|
1027
|
-
relationshipsField
|
|
991
|
+
relationshipsField() {
|
|
1028
992
|
if (this.config.relaField === undefined || !this.config.relaField.length) return [];
|
|
1029
993
|
else return FNR.utility.genArray(this.profile.fields[FNR.utility.genSlug(this.config.relaField, '_')].content);
|
|
1030
994
|
},
|
|
1031
|
-
lengthHistoryFields
|
|
995
|
+
lengthHistoryFields() {
|
|
1032
996
|
let length = 0;
|
|
1033
997
|
|
|
1034
998
|
length += this.chronologyField.length;
|
|
@@ -1036,7 +1000,7 @@ Vue.component('expediente-usuario', {
|
|
|
1036
1000
|
|
|
1037
1001
|
return length;
|
|
1038
1002
|
},
|
|
1039
|
-
currentClass
|
|
1003
|
+
currentClass() {
|
|
1040
1004
|
return 'usergroup-' + this.profile.colour
|
|
1041
1005
|
}
|
|
1042
1006
|
},
|
|
@@ -1082,16 +1046,16 @@ Vue.component('expediente-usuario', {
|
|
|
1082
1046
|
</div>
|
|
1083
1047
|
</section>
|
|
1084
1048
|
<section id="profile-subhead">
|
|
1085
|
-
<div class="columns is-vcentered">
|
|
1049
|
+
<div class="columns is-centered is-vcentered is-gapless">
|
|
1086
1050
|
<div class="column is-6 is-full-mobile">
|
|
1087
1051
|
<div id="profile-quote" class="is-content">
|
|
1088
1052
|
<quote>{{ userCite }}</quote>
|
|
1089
1053
|
</div>
|
|
1090
1054
|
</div>
|
|
1091
|
-
<div class="column is-5 is-
|
|
1092
|
-
<div class="columns is-flex is-vcentered">
|
|
1093
|
-
<div class="column is-
|
|
1094
|
-
<ul class="profile-
|
|
1055
|
+
<div class="column is-5 is-full-mobile">
|
|
1056
|
+
<div id="profile-links" class="columns is-flex is-vcentered is-multiline py-4">
|
|
1057
|
+
<div class="column is-full-touch is-half-desktop">
|
|
1058
|
+
<ul class="profile-linklist">
|
|
1095
1059
|
<li>
|
|
1096
1060
|
<a :href="profile.links.posts" :title="'Mensajes de «' + profile.name + '»'" target="_blank">
|
|
1097
1061
|
<i :class="config.contactFields.mensajes"></i> Mensajes
|
|
@@ -1109,8 +1073,8 @@ Vue.component('expediente-usuario', {
|
|
|
1109
1073
|
</li>
|
|
1110
1074
|
</ul>
|
|
1111
1075
|
</div>
|
|
1112
|
-
<div class="column is-
|
|
1113
|
-
<ul class="profile-
|
|
1076
|
+
<div class="column is-full-touch is-half-desktop">
|
|
1077
|
+
<ul class="profile-linklist">
|
|
1114
1078
|
<li :id="'profile-link-' + field.id" v-for="field in usableLinkFields">
|
|
1115
1079
|
<a :href="field.url" :title="field.desc" target="_blank">
|
|
1116
1080
|
<i :class="field.icon"></i> {{ field.title }}
|
|
@@ -1194,7 +1158,7 @@ Vue.component('expediente-usuario', {
|
|
|
1194
1158
|
Vue.component('cuerpo-principal', {
|
|
1195
1159
|
props: ['dataTitle'],
|
|
1196
1160
|
computed: {
|
|
1197
|
-
title
|
|
1161
|
+
title() {
|
|
1198
1162
|
if (typeof this.dataTitle === 'undefined') return '';
|
|
1199
1163
|
else return this.dataTitle;
|
|
1200
1164
|
}
|
|
@@ -1212,7 +1176,7 @@ Vue.component('cuerpo-principal', {
|
|
|
1212
1176
|
Vue.component('cuerpo-interior', {
|
|
1213
1177
|
props: ['dataTitle'],
|
|
1214
1178
|
computed: {
|
|
1215
|
-
title
|
|
1179
|
+
title() {
|
|
1216
1180
|
if (typeof this.dataTitle === 'undefined') return '';
|
|
1217
1181
|
else return this.dataTitle;
|
|
1218
1182
|
}
|
|
@@ -1230,7 +1194,7 @@ Vue.component('cuerpo-interior', {
|
|
|
1230
1194
|
Vue.component('cuerpo-lista', {
|
|
1231
1195
|
props: ['dataTitle'],
|
|
1232
1196
|
computed: {
|
|
1233
|
-
title
|
|
1197
|
+
title() {
|
|
1234
1198
|
if (typeof this.dataTitle === 'undefined') return '';
|
|
1235
1199
|
else return this.dataTitle;
|
|
1236
1200
|
}
|