generic-skin 3.7.8 → 3.7.9
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 +26 -26
- package/apps/vueChrono.min.js +1 -1
- package/apps/vueDefault.js +24 -24
- package/apps/vueDefault.min.js +2 -2
- package/apps/vueMulti.js +24 -24
- package/apps/vueMulti.min.js +1 -1
- package/apps/vueRela.js +28 -28
- package/apps/vueRela.min.js +1 -1
- package/config/vueComponents.js +80 -80
- package/config/vueComponents.min.js +2 -2
- package/extensions/vueRouter.js +1 -1
- package/general.js +6 -6
- package/general.min.js +1 -1
- package/options/noManagers.js +15 -15
- package/options/noManagers.min.js +1 -1
- package/package.json +1 -1
- package/pages/ucp.js +14 -14
- package/pages/ucp.min.js +1 -1
package/config/vueComponents.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* Estructura del foro */
|
|
2
2
|
Vue.component('categoria-foro', {
|
|
3
|
-
props: ['
|
|
3
|
+
props: ['id'],
|
|
4
4
|
computed: {
|
|
5
5
|
slugName() {
|
|
6
|
-
const name = (this.
|
|
6
|
+
const name = (this.id.indexOf('<h2>') > -1 ? FNR.utility.genSlug(this.id.split('<h2>')[1].split('</h2>')[0], '-') : FNR.utility.genSlug(this.id, '-'));
|
|
7
7
|
|
|
8
8
|
return 'category-' + name;
|
|
9
9
|
}
|
|
@@ -18,12 +18,12 @@ Vue.component('categoria-foro', {
|
|
|
18
18
|
Vue.component('cabecera-foro', {
|
|
19
19
|
data() {
|
|
20
20
|
return {
|
|
21
|
-
|
|
21
|
+
title: this.$slots['title'][0].tag === undefined ? this.$slots['title'][0].text : this.$slots['title'][0].children[0].text
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
template: `
|
|
25
25
|
<div class="forum-head regular-head">
|
|
26
|
-
<titulo-especial :
|
|
26
|
+
<titulo-especial :title="title"></titulo-especial>
|
|
27
27
|
</div>
|
|
28
28
|
`
|
|
29
29
|
});
|
|
@@ -31,12 +31,12 @@ Vue.component('cabecera-foro', {
|
|
|
31
31
|
Vue.component('cabcategoria-foro', {
|
|
32
32
|
data() {
|
|
33
33
|
return {
|
|
34
|
-
|
|
34
|
+
title: this.$slots['title'][0].tag === undefined ? this.$slots['title'][0].text : this.$slots['title'][0].children[0].text
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
template: `
|
|
38
38
|
<div class="forum-head category-head">
|
|
39
|
-
<titulo-especial :
|
|
39
|
+
<titulo-especial :title="title"></titulo-especial>
|
|
40
40
|
</div>
|
|
41
41
|
`
|
|
42
42
|
});
|
|
@@ -44,18 +44,18 @@ Vue.component('cabcategoria-foro', {
|
|
|
44
44
|
Vue.component('cabespecial-foro', {
|
|
45
45
|
data() {
|
|
46
46
|
return {
|
|
47
|
-
|
|
47
|
+
title: this.$slots['title'][0].tag === undefined ? this.$slots['title'][0].text : this.$slots['title'][0].children[0].text
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
template: `
|
|
51
51
|
<div class="forum-head special-head">
|
|
52
|
-
<titulo-especial :
|
|
52
|
+
<titulo-especial :title="title"></titulo-especial>
|
|
53
53
|
</div>
|
|
54
54
|
`
|
|
55
55
|
});
|
|
56
56
|
|
|
57
57
|
Vue.component('subforo-foro', {
|
|
58
|
-
props: ['
|
|
58
|
+
props: ['id'],
|
|
59
59
|
computed: {
|
|
60
60
|
slugId() {
|
|
61
61
|
let id = '';
|
|
@@ -69,7 +69,7 @@ Vue.component('subforo-foro', {
|
|
|
69
69
|
return 'subforum-' + id;
|
|
70
70
|
},
|
|
71
71
|
slugName() {
|
|
72
|
-
const name = (this.
|
|
72
|
+
const name = (this.id.indexOf('<h2>') > -1 ? FNR.utility.genSlug(this.id.split('<h2>')[1].split('</h2>')[0], '-') : FNR.utility.genSlug(this.id, '-'));
|
|
73
73
|
|
|
74
74
|
return 'subforum-' + name;
|
|
75
75
|
}
|
|
@@ -82,16 +82,16 @@ Vue.component('subforo-foro', {
|
|
|
82
82
|
});
|
|
83
83
|
|
|
84
84
|
Vue.component('lista-temas-cabecera', {
|
|
85
|
-
props: ['
|
|
85
|
+
props: ['elements'],
|
|
86
86
|
data() {
|
|
87
87
|
return {
|
|
88
|
-
elementos: JSON.parse(this.
|
|
88
|
+
elementos: JSON.parse(this.elements.replace(/'/g, '"'))
|
|
89
89
|
}
|
|
90
90
|
},
|
|
91
91
|
template: `
|
|
92
92
|
<ul class="topiclist-header no-style">
|
|
93
93
|
<li v-for="element in elementos">
|
|
94
|
-
<titulo-especial :
|
|
94
|
+
<titulo-especial :title="element"></titulo-especial>
|
|
95
95
|
</li>
|
|
96
96
|
</ul>
|
|
97
97
|
`
|
|
@@ -124,10 +124,10 @@ Vue.component('tema-foro', {
|
|
|
124
124
|
});
|
|
125
125
|
|
|
126
126
|
Vue.component('mando-foro', {
|
|
127
|
-
props: ['
|
|
127
|
+
props: ['id', 'app'],
|
|
128
128
|
template: `
|
|
129
|
-
<section :id="
|
|
130
|
-
<template v-if="
|
|
129
|
+
<section :id="id" class="forum-controls">
|
|
130
|
+
<template v-if="app === 'true'">
|
|
131
131
|
<div class="left page-pagination">
|
|
132
132
|
<slot name="pagination"></slot>
|
|
133
133
|
</div>
|
|
@@ -145,18 +145,18 @@ Vue.component('mando-foro', {
|
|
|
145
145
|
|
|
146
146
|
/* Componentes del foro */
|
|
147
147
|
Vue.component('titulo-especial', {
|
|
148
|
-
props: ['
|
|
148
|
+
props: ['title'],
|
|
149
149
|
template: `
|
|
150
|
-
<h3 class="is-tweakeable"><span class="is-measurable" v-html="
|
|
150
|
+
<h3 class="is-tweakeable"><span class="is-measurable" v-html="title"></span></h3>
|
|
151
151
|
`
|
|
152
152
|
});
|
|
153
153
|
|
|
154
154
|
Vue.component('cuerpo-widget', {
|
|
155
|
-
props: ['
|
|
155
|
+
props: ['class'],
|
|
156
156
|
computed: {
|
|
157
157
|
currentClass() {
|
|
158
|
-
if (this.
|
|
159
|
-
else return 'plank-inner' + ' ' + this.
|
|
158
|
+
if (this.class === undefined) return 'plank-inner';
|
|
159
|
+
else return 'plank-inner' + ' ' + this.class;
|
|
160
160
|
}
|
|
161
161
|
},
|
|
162
162
|
template: `
|
|
@@ -169,7 +169,7 @@ Vue.component('cuerpo-widget', {
|
|
|
169
169
|
});
|
|
170
170
|
|
|
171
171
|
Vue.component('separador-foro', {
|
|
172
|
-
props: ['
|
|
172
|
+
props: ['faction'],
|
|
173
173
|
data() {
|
|
174
174
|
return {
|
|
175
175
|
image: forumDefaults.separator
|
|
@@ -183,7 +183,7 @@ Vue.component('separador-foro', {
|
|
|
183
183
|
});
|
|
184
184
|
|
|
185
185
|
Vue.component('tema-ref', {
|
|
186
|
-
props: ['
|
|
186
|
+
props: ['info'],
|
|
187
187
|
data() {
|
|
188
188
|
return {
|
|
189
189
|
profileName: forumConfig.profileOptions.profileName || 'perfil'
|
|
@@ -191,33 +191,33 @@ Vue.component('tema-ref', {
|
|
|
191
191
|
},
|
|
192
192
|
computed: {
|
|
193
193
|
userColor() {
|
|
194
|
-
return 'color: ' + this.
|
|
194
|
+
return 'color: ' + this.info.lastpost.who.color;
|
|
195
195
|
}
|
|
196
196
|
},
|
|
197
197
|
template: `
|
|
198
198
|
<div class="ltopic-element">
|
|
199
|
-
<a class="ltopic-last" :href="
|
|
199
|
+
<a class="ltopic-last" :href="info.lastpost.url" target="_blank" :title="'Ir al último mensaje del tema «' + info.name + '»'">
|
|
200
200
|
<i class="fas fa-link"></i>
|
|
201
201
|
</a>
|
|
202
202
|
<div class="ltopic-data">
|
|
203
|
-
<a class="ltopic-title" :href="
|
|
204
|
-
<small class="ltopic-info"><a :href="
|
|
203
|
+
<a class="ltopic-title" :href="info.url" target="_blank" :title="'Ir al tema «' + info.name + '»'">{{ info.name }}</a>
|
|
204
|
+
<small class="ltopic-info"><a :href="info.lastpost.who.url" target="_blank" :style="userColor" :title="'Ir al ' + profileName + ' de «' + info.lastpost.who.name + '»'">{{ info.lastpost.who.name | just-name }}</a>, {{ info.lastpost.date }} en <a :href="info.forum.url" target="_blank" :title="'Ir al subforo «' + info.forum.name + '»'">{{ info.forum.name }}</a></small>
|
|
205
205
|
</div>
|
|
206
206
|
</div>
|
|
207
207
|
`
|
|
208
208
|
});
|
|
209
209
|
|
|
210
210
|
Vue.component('campo-foro', {
|
|
211
|
-
props: ['
|
|
211
|
+
props: ['name'],
|
|
212
212
|
mounted() {
|
|
213
213
|
const classList = this.$el.parentElement.classList;
|
|
214
214
|
|
|
215
215
|
classList.add('field-element');
|
|
216
|
-
classList.add('field-' + FNR.utility.genSlug(this.
|
|
216
|
+
classList.add('field-' + FNR.utility.genSlug(this.name, '-'));
|
|
217
217
|
},
|
|
218
218
|
template: `
|
|
219
219
|
<div class="forum-field">
|
|
220
|
-
<div class="field-name">{{
|
|
220
|
+
<div class="field-name">{{ name | capitalize }}</div>
|
|
221
221
|
<div class="field-content">
|
|
222
222
|
<slot></slot>
|
|
223
223
|
</div>
|
|
@@ -226,33 +226,33 @@ Vue.component('campo-foro', {
|
|
|
226
226
|
});
|
|
227
227
|
|
|
228
228
|
Vue.component('boton-foro', {
|
|
229
|
-
props: ['
|
|
229
|
+
props: ['url', 'name', 'icon', 'type', 'input'],
|
|
230
230
|
computed: {
|
|
231
231
|
realClass() {
|
|
232
|
-
if (this.
|
|
232
|
+
if (this.input === 'true') return 'forum-button is-input';
|
|
233
233
|
else return 'forum-button';
|
|
234
234
|
},
|
|
235
235
|
realName() {
|
|
236
|
-
return 'text' + (this.
|
|
236
|
+
return 'text' + (this.type === 'no-name' ? ' is-hidden-touch' : '');
|
|
237
237
|
},
|
|
238
238
|
realUrl() {
|
|
239
|
-
if (this.
|
|
240
|
-
else return this.
|
|
239
|
+
if (this.input === 'true') return 'javascript:{}';
|
|
240
|
+
else return this.url;
|
|
241
241
|
}
|
|
242
242
|
},
|
|
243
243
|
mounted() {
|
|
244
244
|
const classList = this.$el.parentElement.classList;
|
|
245
245
|
|
|
246
246
|
classList.add('btn-element');
|
|
247
|
-
classList.add('btn-' + FNR.utility.genSlug(this.
|
|
247
|
+
classList.add('btn-' + FNR.utility.genSlug(this.name, '-'));
|
|
248
248
|
},
|
|
249
249
|
template: `
|
|
250
|
-
<a :href="realUrl" targer="_blank" :class="realClass" :title="
|
|
250
|
+
<a :href="realUrl" targer="_blank" :class="realClass" :title="name">
|
|
251
251
|
<span class="icon">
|
|
252
|
-
<i :class="
|
|
252
|
+
<i :class="icon"></i>
|
|
253
253
|
</span>
|
|
254
|
-
<span :class="realName">{{
|
|
255
|
-
<span v-if="
|
|
254
|
+
<span :class="realName">{{ name }}</span>
|
|
255
|
+
<span v-if="input === 'true'" class="input-real">
|
|
256
256
|
<slot name="input"></slot>
|
|
257
257
|
</span>
|
|
258
258
|
</a>
|
|
@@ -260,12 +260,12 @@ Vue.component('boton-foro', {
|
|
|
260
260
|
});
|
|
261
261
|
|
|
262
262
|
Vue.component('cargando-foro', {
|
|
263
|
-
props: ['
|
|
263
|
+
props: ['text'],
|
|
264
264
|
template: `
|
|
265
265
|
<section id="loading-element">
|
|
266
266
|
<div id="loading-content">
|
|
267
267
|
<i class="fas fa-circle-notch fa-spin"></i>
|
|
268
|
-
<span>{{
|
|
268
|
+
<span>{{ text }}</span>
|
|
269
269
|
</div>
|
|
270
270
|
</section>
|
|
271
271
|
`
|
|
@@ -340,7 +340,7 @@ Vue.component('controles-foro', {
|
|
|
340
340
|
</nav>
|
|
341
341
|
<nav class="right">
|
|
342
342
|
<section id="forum-navbar-desktop" class="is-hidden-touch">
|
|
343
|
-
<navbar-foro :
|
|
343
|
+
<navbar-foro :username="userName" :userlevel="userLevel" :userid="userId" :userlog="userLog" :usermp="userMP" :userout="userOut" />
|
|
344
344
|
</section>
|
|
345
345
|
<section id="forum-navbar-mobile" class="is-hidden-desktop">
|
|
346
346
|
<div id="hmg-button" @click="turnActive()" class="is-pointer">
|
|
@@ -348,12 +348,12 @@ Vue.component('controles-foro', {
|
|
|
348
348
|
</div>
|
|
349
349
|
<div id="hmg-menu" :class="isActiveClass">
|
|
350
350
|
<h3>{{ userName | just-name }}<i class="fas fa-times is-pointer" @click="turnActive()"></i></h3>
|
|
351
|
-
<navbar-foro :
|
|
351
|
+
<navbar-foro :username="userName" :userlevel="userLevel" :userid="userId" :userlog="userLog" :usermp="userMP" :userout="userOut" />
|
|
352
352
|
</div>
|
|
353
353
|
<div class="bg-active" @click="turnActive()"></div>
|
|
354
354
|
</section>
|
|
355
355
|
<section v-if="maPage === 1" id="multiaccount-transition">
|
|
356
|
-
<cargando-foro
|
|
356
|
+
<cargando-foro text="Cambiando de cuenta…"></cargando-foro>
|
|
357
357
|
</section>
|
|
358
358
|
</nav>
|
|
359
359
|
</div>
|
|
@@ -361,7 +361,7 @@ Vue.component('controles-foro', {
|
|
|
361
361
|
});
|
|
362
362
|
|
|
363
363
|
Vue.component('navbar-foro', {
|
|
364
|
-
props: ['
|
|
364
|
+
props: ['username', 'userlevel', 'userid', 'userlog', 'usermp', 'userout'],
|
|
365
365
|
data() {
|
|
366
366
|
return {
|
|
367
367
|
profileName: forumConfig.profileOptions.profileName || 'perfil',
|
|
@@ -377,10 +377,10 @@ Vue.component('navbar-foro', {
|
|
|
377
377
|
},
|
|
378
378
|
computed: {
|
|
379
379
|
isStatusClass() {
|
|
380
|
-
return ((this.
|
|
380
|
+
return ((this.userlog === 1) ? 'is-logged' : 'is-unlogged') + ((this.userlevel === 1) ? ' is-admin' : ' is-user')
|
|
381
381
|
},
|
|
382
382
|
mpText() {
|
|
383
|
-
return 'Mensajería' + ((this.
|
|
383
|
+
return 'Mensajería' + ((this.usermp !== 0) ? ' (' + this.usermp + ')' : '')
|
|
384
384
|
},
|
|
385
385
|
links() {
|
|
386
386
|
return this.navigation.filter((item) => {
|
|
@@ -392,7 +392,7 @@ Vue.component('navbar-foro', {
|
|
|
392
392
|
changeAccount() {
|
|
393
393
|
this.$parent.maPage = 1;
|
|
394
394
|
|
|
395
|
-
FNR.user.changeAccount(this.
|
|
395
|
+
FNR.user.changeAccount(this.userout, this.multiAccount.accounts[this.multiAccount.position].name, this.multiAccount.accounts[this.multiAccount.position].password).then((r) => {
|
|
396
396
|
if (r) {
|
|
397
397
|
window.location.reload();
|
|
398
398
|
}
|
|
@@ -416,7 +416,7 @@ Vue.component('navbar-foro', {
|
|
|
416
416
|
},
|
|
417
417
|
template: `
|
|
418
418
|
<ul :class="isStatusClass">
|
|
419
|
-
<template v-if="!
|
|
419
|
+
<template v-if="!userlog">
|
|
420
420
|
<li class="navbar-item">
|
|
421
421
|
<a href="/register" title="Registrarse en el foro">
|
|
422
422
|
<div class="icon">
|
|
@@ -464,10 +464,10 @@ Vue.component('navbar-foro', {
|
|
|
464
464
|
<div class="icon">
|
|
465
465
|
<i class="fas fa-user"></i>
|
|
466
466
|
</div>
|
|
467
|
-
<div class="text">{{
|
|
467
|
+
<div class="text">{{ username | just-name }}</div>
|
|
468
468
|
</a>
|
|
469
469
|
<div class="navbar-dropdown is-right">
|
|
470
|
-
<template v-if="
|
|
470
|
+
<template v-if="userlevel === 1">
|
|
471
471
|
<a class="navbar-item" href="/admin" target="_blank" title="Ir al «Panel de Administrador»">
|
|
472
472
|
<div class="icon">
|
|
473
473
|
<i class="fas fa-cogs"></i>
|
|
@@ -481,7 +481,7 @@ Vue.component('navbar-foro', {
|
|
|
481
481
|
</div>
|
|
482
482
|
<div class="text">Panel Usuario</div>
|
|
483
483
|
</a>
|
|
484
|
-
<a class="navbar-item" :href="'/u' +
|
|
484
|
+
<a class="navbar-item" :href="'/u' + userid" :title="'Ir a tu ' + profileName">
|
|
485
485
|
<div class="icon">
|
|
486
486
|
<i class="far fa-id-card"></i>
|
|
487
487
|
</div>
|
|
@@ -493,7 +493,7 @@ Vue.component('navbar-foro', {
|
|
|
493
493
|
</div>
|
|
494
494
|
<div class="text">Temas personales</div>
|
|
495
495
|
</a>
|
|
496
|
-
<a class="navbar-item" :href="
|
|
496
|
+
<a class="navbar-item" :href="userout" title="Cerrar sesión">
|
|
497
497
|
<div class="icon">
|
|
498
498
|
<i class="fas fa-sign-out-alt"></i>
|
|
499
499
|
</div>
|
|
@@ -605,7 +605,7 @@ Vue.component('note-info', {
|
|
|
605
605
|
});
|
|
606
606
|
|
|
607
607
|
Vue.component('redirect', {
|
|
608
|
-
props: ['
|
|
608
|
+
props: ['to'],
|
|
609
609
|
computed: {
|
|
610
610
|
currentStatus() {
|
|
611
611
|
if (window.location.pathname.match(/t(\d+)-/)) return true;
|
|
@@ -614,7 +614,7 @@ Vue.component('redirect', {
|
|
|
614
614
|
},
|
|
615
615
|
created() {
|
|
616
616
|
if (this.currentStatus) {
|
|
617
|
-
window.location.replace(this.
|
|
617
|
+
window.location.replace(this.to);
|
|
618
618
|
}
|
|
619
619
|
},
|
|
620
620
|
template: `
|
|
@@ -627,7 +627,7 @@ Vue.component('redirect', {
|
|
|
627
627
|
});
|
|
628
628
|
|
|
629
629
|
Vue.component('quote', {
|
|
630
|
-
props: ['
|
|
630
|
+
props: ['from'],
|
|
631
631
|
template: `
|
|
632
632
|
<div class="admin-block admin-box user-coolquote">
|
|
633
633
|
<div class="coolquote-quote">
|
|
@@ -637,17 +637,17 @@ Vue.component('quote', {
|
|
|
637
637
|
</div>
|
|
638
638
|
<div class="fas fa-quote-right"></div>
|
|
639
639
|
</div>
|
|
640
|
-
<div class="coolquote-from">{{
|
|
640
|
+
<div class="coolquote-from">{{ from }}</div>
|
|
641
641
|
</div>
|
|
642
642
|
`
|
|
643
643
|
});
|
|
644
644
|
|
|
645
645
|
/* Wiki del foro */
|
|
646
646
|
Vue.component('wiki-index-items-d', {
|
|
647
|
-
props: ['
|
|
647
|
+
props: ['content'],
|
|
648
648
|
template: `
|
|
649
649
|
<ul>
|
|
650
|
-
<li v-for="content in
|
|
650
|
+
<li v-for="content in content">
|
|
651
651
|
<div class="wiki-controls">
|
|
652
652
|
<router-link :to="content.id" v-if="!content.children.length" :title="'Ir al artículo de «' + content.name + '»'">{{ content.name }}</router-link>
|
|
653
653
|
<a class="wiki-cascade" :title="'Desplegar categoría de «' + content.name + '»'" v-else>
|
|
@@ -658,7 +658,7 @@ Vue.component('wiki-index-items-d', {
|
|
|
658
658
|
</span>
|
|
659
659
|
</a>
|
|
660
660
|
</div>
|
|
661
|
-
<wiki-index-items-d v-if="content.children.length" :
|
|
661
|
+
<wiki-index-items-d v-if="content.children.length" :content="content.children"></wiki-index-items-d>
|
|
662
662
|
</li>
|
|
663
663
|
</ul>
|
|
664
664
|
`
|
|
@@ -700,7 +700,7 @@ Vue.component('wiki-index', {
|
|
|
700
700
|
<aside class="wiki-index is-content profile-sticky">
|
|
701
701
|
<div class="is-hidden-touch">
|
|
702
702
|
<h3>Contenido</h3>
|
|
703
|
-
<wiki-index-items-d :
|
|
703
|
+
<wiki-index-items-d :content="indexContent"></wiki-index-items-d>
|
|
704
704
|
</div>
|
|
705
705
|
<div class="select-container is-hidden-desktop">
|
|
706
706
|
<select>
|
|
@@ -739,11 +739,11 @@ Vue.component('wiki-index', {
|
|
|
739
739
|
});
|
|
740
740
|
|
|
741
741
|
Vue.component('wiki-contenido', {
|
|
742
|
-
props: ['
|
|
742
|
+
props: ['mode'],
|
|
743
743
|
template: `
|
|
744
744
|
<div class="wiki-body has-small-topiclist">
|
|
745
745
|
<wiki-index></wiki-index>
|
|
746
|
-
<template v-if="
|
|
746
|
+
<template v-if="mode === 'app'">
|
|
747
747
|
<slot></slot>
|
|
748
748
|
</template>
|
|
749
749
|
<template v-else>
|
|
@@ -795,19 +795,19 @@ Vue.component('wiki-nav', {
|
|
|
795
795
|
});
|
|
796
796
|
|
|
797
797
|
Vue.component('wiki-children', {
|
|
798
|
-
props: ['
|
|
798
|
+
props: ['name', 'category'],
|
|
799
799
|
computed: {
|
|
800
800
|
nav() {
|
|
801
801
|
return routes.filter((item) => {
|
|
802
802
|
return item.component
|
|
803
803
|
}).filter((item) => {
|
|
804
|
-
return item.component.page_parent === this.
|
|
804
|
+
return item.component.page_parent === this.category;
|
|
805
805
|
});
|
|
806
806
|
}
|
|
807
807
|
},
|
|
808
808
|
template: `
|
|
809
809
|
<div class="wiki-nav" v-if="nav.length > 0">
|
|
810
|
-
<h2>{{
|
|
810
|
+
<h2>{{ name }}</h2>
|
|
811
811
|
<template v-for="route in nav">* <router-link :to="route.path" :title="'Ir al artículo «' + route.component.page_name + '»'">{{ route.component.page_name }}</router-link><br/></template>
|
|
812
812
|
</div>
|
|
813
813
|
`
|
|
@@ -815,7 +815,7 @@ Vue.component('wiki-children', {
|
|
|
815
815
|
|
|
816
816
|
/* Modal del foro */
|
|
817
817
|
Vue.component('modal-foro', {
|
|
818
|
-
props: ['
|
|
818
|
+
props: ['title'],
|
|
819
819
|
methods: {
|
|
820
820
|
modalClose() {
|
|
821
821
|
this.$parent.state.modal = false;
|
|
@@ -826,7 +826,7 @@ Vue.component('modal-foro', {
|
|
|
826
826
|
<div id="forum-modal">
|
|
827
827
|
<div class="modal-element">
|
|
828
828
|
<div class="modal-title">
|
|
829
|
-
<h3>{{
|
|
829
|
+
<h3>{{ title }}</h3>
|
|
830
830
|
<a @click="modalClose()">
|
|
831
831
|
<i class="fas fa-times"></i>
|
|
832
832
|
</a>
|
|
@@ -1133,7 +1133,7 @@ Vue.component('expediente-usuario', {
|
|
|
1133
1133
|
</div>
|
|
1134
1134
|
<ul id="chronology-element" class="is-two-columns-list">
|
|
1135
1135
|
<template v-for="element in chronologyField">
|
|
1136
|
-
<elemento-cronologia :
|
|
1136
|
+
<elemento-cronologia :element="element" type="profile" />
|
|
1137
1137
|
</template>
|
|
1138
1138
|
</ul>
|
|
1139
1139
|
</li>
|
|
@@ -1143,7 +1143,7 @@ Vue.component('expediente-usuario', {
|
|
|
1143
1143
|
</div>
|
|
1144
1144
|
<ul id="relationships-element" class="is-two-columns-list">
|
|
1145
1145
|
<template v-for="element in relationshipsField">
|
|
1146
|
-
<elemento-relaciones :
|
|
1146
|
+
<elemento-relaciones :element="element" type="profile" />
|
|
1147
1147
|
</template>
|
|
1148
1148
|
</ul>
|
|
1149
1149
|
</li>
|
|
@@ -1156,11 +1156,11 @@ Vue.component('expediente-usuario', {
|
|
|
1156
1156
|
|
|
1157
1157
|
/* Tablillas */
|
|
1158
1158
|
Vue.component('cuerpo-principal', {
|
|
1159
|
-
props: ['
|
|
1159
|
+
props: ['title'],
|
|
1160
1160
|
computed: {
|
|
1161
1161
|
title() {
|
|
1162
|
-
if (typeof this.
|
|
1163
|
-
else return this.
|
|
1162
|
+
if (typeof this.title === 'undefined') return '';
|
|
1163
|
+
else return this.title;
|
|
1164
1164
|
}
|
|
1165
1165
|
},
|
|
1166
1166
|
template: `
|
|
@@ -1174,11 +1174,11 @@ Vue.component('cuerpo-principal', {
|
|
|
1174
1174
|
});
|
|
1175
1175
|
|
|
1176
1176
|
Vue.component('cuerpo-interior', {
|
|
1177
|
-
props: ['
|
|
1177
|
+
props: ['title'],
|
|
1178
1178
|
computed: {
|
|
1179
1179
|
title() {
|
|
1180
|
-
if (typeof this.
|
|
1181
|
-
else return this.
|
|
1180
|
+
if (typeof this.title === 'undefined') return '';
|
|
1181
|
+
else return this.title;
|
|
1182
1182
|
}
|
|
1183
1183
|
},
|
|
1184
1184
|
template: `
|
|
@@ -1192,11 +1192,11 @@ Vue.component('cuerpo-interior', {
|
|
|
1192
1192
|
});
|
|
1193
1193
|
|
|
1194
1194
|
Vue.component('cuerpo-lista', {
|
|
1195
|
-
props: ['
|
|
1195
|
+
props: ['title'],
|
|
1196
1196
|
computed: {
|
|
1197
1197
|
title() {
|
|
1198
|
-
if (typeof this.
|
|
1199
|
-
else return this.
|
|
1198
|
+
if (typeof this.title === 'undefined') return '';
|
|
1199
|
+
else return this.title;
|
|
1200
1200
|
}
|
|
1201
1201
|
},
|
|
1202
1202
|
template: `
|