@politicalwatch/tipi-uikit 1.9.2 → 1.9.4
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 +1 -1
- package/src/components/CSVDownload/CSVDownload.vue +3 -1
- package/src/components/Charts/WordsCloud/d3.wordscloud.vue +1 -1
- package/src/components/Charts/d3.chart.vue +63 -57
- package/src/components/CongressLink/CongressLink.vue +3 -1
- package/src/components/Deputy/Deputy.vue +7 -6
- package/src/components/Header/Header.vue +9 -5
- package/src/components/InitiativeCard/InitiativeCard.vue +20 -16
- package/src/components/InitiativeMeta/InitiativeMeta.vue +20 -20
- package/src/components/Message/Message.vue +5 -1
- package/src/components/Navbar/Navbar.vue +4 -2
- package/src/components/Neuron/Neuron.vue +10 -9
- package/src/components/PartyLogo/PartyLogo.vue +1 -1
- package/src/components/PartyLogo/PartyLogoIcon.vue +9 -7
- package/src/components/Results/Results.vue +21 -22
- package/src/components/Splash/Splash.vue +3 -2
- package/src/components/Text/Text.vue +14 -10
- package/src/components/TopicCard/TopicCard.vue +15 -10
- package/src/components/TopicLink/TopicLink.vue +6 -3
- package/src/components/TopicPill/TopicPill.vue +13 -6
- package/src/components/Topics/Topics.vue +30 -33
- package/src/components/TwoCircles/TwoCircles.vue +15 -12
- package/src/stories/D3BarChart.stories.js +40 -0
- package/src/stories/D3SlicesChart.stories.js +64 -0
- package/src/stories/D3Sunburst.stories.js +293 -0
- package/src/stories/{Charts.stories.js → D3WordsCloud.stories.js} +15 -3
- package/src/stories/InitiativeCard.stories.js +3 -153
- package/src/stories/Navbar.stories.js +40 -0
- package/src/stories/Results.stories.js +2 -105
- package/src/stories/Text.stories.js +10 -0
- package/src/stories/TopicCard.stories.js +2 -9
- package/src/stories/TopicPill.stories.js +6 -107
- package/src/stories/Topics.stories.js +80 -0
- package/src/stories/mocks.js +153 -0
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
import D3Sunburst from '@/components/Charts/Sunburst/d3.sunburst.vue';
|
|
2
|
+
|
|
3
|
+
// More on how to set up stories at: https://storybook.js.org/docs/vue/writing-stories/introduction
|
|
4
|
+
export default {
|
|
5
|
+
title: 'Example/D3Sunburst',
|
|
6
|
+
component: D3Sunburst,
|
|
7
|
+
tags: ['autodocs'],
|
|
8
|
+
|
|
9
|
+
argTypes: {
|
|
10
|
+
config: {
|
|
11
|
+
type: 'object',
|
|
12
|
+
},
|
|
13
|
+
datum: {
|
|
14
|
+
type: 'array',
|
|
15
|
+
},
|
|
16
|
+
title: {
|
|
17
|
+
type: 'text',
|
|
18
|
+
},
|
|
19
|
+
source: {
|
|
20
|
+
type: 'text',
|
|
21
|
+
},
|
|
22
|
+
height: {
|
|
23
|
+
type: 'number',
|
|
24
|
+
},
|
|
25
|
+
download: {
|
|
26
|
+
type: 'text',
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
// More on writing stories with args: https://storybook.js.org/docs/vue/writing-stories/args
|
|
32
|
+
export const Primary = {
|
|
33
|
+
args: {
|
|
34
|
+
config: {
|
|
35
|
+
key: 'name',
|
|
36
|
+
value: 'value',
|
|
37
|
+
color: {
|
|
38
|
+
key: 'color',
|
|
39
|
+
},
|
|
40
|
+
tooltip: {
|
|
41
|
+
suffix: 'aparición',
|
|
42
|
+
suffixPlural: 'apariciones',
|
|
43
|
+
},
|
|
44
|
+
transition: { duration: 1000 },
|
|
45
|
+
},
|
|
46
|
+
datum: [
|
|
47
|
+
{
|
|
48
|
+
name: 'Results',
|
|
49
|
+
children: [
|
|
50
|
+
{
|
|
51
|
+
name: 'ODS 2',
|
|
52
|
+
color: '#d3a029',
|
|
53
|
+
children: [
|
|
54
|
+
{
|
|
55
|
+
name: '2.1 Acceso universal a alimentos',
|
|
56
|
+
color: '#fcbf31',
|
|
57
|
+
children: [
|
|
58
|
+
{
|
|
59
|
+
name: 'ODS 2 | Inflación de precios y coste de los alimentos',
|
|
60
|
+
color: '#ffe53b',
|
|
61
|
+
value: 1,
|
|
62
|
+
},
|
|
63
|
+
],
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
name: '2.c Estabilidad del mercado de la alimentación',
|
|
67
|
+
color: '#fcbf31',
|
|
68
|
+
children: [
|
|
69
|
+
{
|
|
70
|
+
name: 'ODS 2 | Estabilidad en mercados alimentarios',
|
|
71
|
+
color: '#ffe53b',
|
|
72
|
+
value: 1,
|
|
73
|
+
},
|
|
74
|
+
],
|
|
75
|
+
},
|
|
76
|
+
],
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
name: 'ODS 3',
|
|
80
|
+
color: '#4c9f38',
|
|
81
|
+
children: [
|
|
82
|
+
{
|
|
83
|
+
name: '3.8 Cobertura sanitaria universal y medicamentos y vacunas asequibles',
|
|
84
|
+
color: '#5bbe43',
|
|
85
|
+
children: [
|
|
86
|
+
{ name: 'ODS 3 | Medios de protección', color: '#6de350', value: 1 },
|
|
87
|
+
{ name: 'ODS 3 | Personal médico', color: '#6de350', value: 4 },
|
|
88
|
+
{ name: 'ODS 3 | Trabajador sanitario', color: '#6de350', value: 3 },
|
|
89
|
+
{ name: 'ODS 3 | Atención sanitaria', color: '#6de350', value: 1 },
|
|
90
|
+
{ name: 'ODS 3 | Atención médica de urgencia', color: '#6de350', value: 1 },
|
|
91
|
+
{ name: 'ODS 3 | Centro de salud', color: '#6de350', value: 1 },
|
|
92
|
+
{ name: 'ODS 3 | Listas de espera', color: '#6de350', value: 1 },
|
|
93
|
+
{ name: 'ODS 3 | Sistema Nacional de Salud', color: '#6de350', value: 2 },
|
|
94
|
+
],
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
name: '3.3 Epidemias y otras enfermedades transmisibles',
|
|
98
|
+
color: '#5bbe43',
|
|
99
|
+
children: [
|
|
100
|
+
{
|
|
101
|
+
name: 'ODS 3 | Enfermedades de transmisión sexual ',
|
|
102
|
+
color: '#6de350',
|
|
103
|
+
value: 1,
|
|
104
|
+
},
|
|
105
|
+
],
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
name: '3.7 Salud sexual y reproductiva',
|
|
109
|
+
color: '#5bbe43',
|
|
110
|
+
children: [
|
|
111
|
+
{ name: 'ODS 3 | Enfermedad de transmisión sexual', color: '#6de350', value: 1 },
|
|
112
|
+
],
|
|
113
|
+
},
|
|
114
|
+
],
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
name: 'ODS 4',
|
|
118
|
+
color: '#c52333',
|
|
119
|
+
children: [
|
|
120
|
+
{
|
|
121
|
+
name: '4.7 Educación para el desarrollo sostenible',
|
|
122
|
+
color: '#eb2a3d',
|
|
123
|
+
children: [
|
|
124
|
+
{ name: 'ODS 4 | Artes escénicas y cinematografía', color: '#ff3249', value: 2 },
|
|
125
|
+
{ name: 'ODS 4 | Artes plásticas y visuales', color: '#ff3249', value: 1 },
|
|
126
|
+
],
|
|
127
|
+
},
|
|
128
|
+
],
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
name: 'ODS 5',
|
|
132
|
+
color: '#ed4135',
|
|
133
|
+
children: [
|
|
134
|
+
{
|
|
135
|
+
name: '5.5 Participación plena de las mujeres',
|
|
136
|
+
color: '#ff4e3f',
|
|
137
|
+
children: [
|
|
138
|
+
{ name: 'ODS 5 | Mujeres en política', color: '#ff5d4c', value: 2 },
|
|
139
|
+
{ name: 'ODS 5 | Feminismo', color: '#ff5d4c', value: 1 },
|
|
140
|
+
{ name: 'ODS 5 | Empleo masculinizado', color: '#ff5d4c', value: 1 },
|
|
141
|
+
],
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
name: '5.2 Acabar con la violencia contra las mujeres',
|
|
145
|
+
color: '#ff4e3f',
|
|
146
|
+
children: [
|
|
147
|
+
{ name: 'ODS 5 | Agresión contra una mujer', color: '#ff5d4c', value: 2 },
|
|
148
|
+
{ name: 'ODS 5 | Mujeres asesinadas', color: '#ff5d4c', value: 1 },
|
|
149
|
+
{ name: 'ODS 5 | Víctima de violación', color: '#ff5d4c', value: 1 },
|
|
150
|
+
{ name: 'ODS 5 | Abuso sexual a mujeres', color: '#ff5d4c', value: 1 },
|
|
151
|
+
],
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
name: '5.1 Fin de la discriminación contra las mujeres',
|
|
155
|
+
color: '#ff4e3f',
|
|
156
|
+
children: [{ name: 'ODS 5 | Movimiento feminista', color: '#ff5d4c', value: 1 }],
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
name: '5.c Políticas para la igualdad',
|
|
160
|
+
color: '#ff4e3f',
|
|
161
|
+
children: [
|
|
162
|
+
{ name: 'ODS 5 | Mujeres en el deporte', color: '#ff5d4c', value: 2 },
|
|
163
|
+
{ name: 'ODS 5 | Deporte y mujeres', color: '#ff5d4c', value: 1 },
|
|
164
|
+
],
|
|
165
|
+
},
|
|
166
|
+
],
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
name: 'ODS 14',
|
|
170
|
+
color: '#007dbc',
|
|
171
|
+
children: [
|
|
172
|
+
{
|
|
173
|
+
name: '14.5 Conservación de zonas costeras y marinas',
|
|
174
|
+
color: '#0095e1',
|
|
175
|
+
children: [
|
|
176
|
+
{
|
|
177
|
+
name: 'ODS 14 | Leyes de protección de las costas y eventos culturales',
|
|
178
|
+
color: '#00b3ff',
|
|
179
|
+
value: 1,
|
|
180
|
+
},
|
|
181
|
+
],
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
name: '14.2 Protección de ecosistemas marinos',
|
|
185
|
+
color: '#0095e1',
|
|
186
|
+
children: [{ name: 'ODS 14 | Océanos', color: '#00b3ff', value: 2 }],
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
name: '14.3 Acidificación de los océanos',
|
|
190
|
+
color: '#0095e1',
|
|
191
|
+
children: [{ name: 'ODS 14 | Temperatura del agua ', color: '#00b3ff', value: 1 }],
|
|
192
|
+
},
|
|
193
|
+
],
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
name: 'ODS 15',
|
|
197
|
+
color: '#5cb84d',
|
|
198
|
+
children: [
|
|
199
|
+
{
|
|
200
|
+
name: '15.3 Lucha contra la desertificación',
|
|
201
|
+
color: '#6edc5c',
|
|
202
|
+
children: [{ name: 'ODS 15 | Sequías', color: '#83ff6e', value: 2 }],
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
name: '15.1 Ecosistemas terrestres y de agua dulce',
|
|
206
|
+
color: '#6edc5c',
|
|
207
|
+
children: [
|
|
208
|
+
{
|
|
209
|
+
name: 'ODS 15 | Ecosistemas interiores de agua dulce',
|
|
210
|
+
color: '#83ff6e',
|
|
211
|
+
value: 6,
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
name: 'ODS 15 | Protección de la cultura en ecosistemas terrestres',
|
|
215
|
+
color: '#83ff6e',
|
|
216
|
+
value: 1,
|
|
217
|
+
},
|
|
218
|
+
],
|
|
219
|
+
},
|
|
220
|
+
],
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
name: 'ODS 16',
|
|
224
|
+
color: '#02558b',
|
|
225
|
+
children: [
|
|
226
|
+
{
|
|
227
|
+
name: '16.6 Rendición de cuentas',
|
|
228
|
+
color: '#0266a6',
|
|
229
|
+
children: [
|
|
230
|
+
{ name: 'ODS 16 | Cortes Generales', color: '#0379c7', value: 7 },
|
|
231
|
+
{ name: 'ODS 16 | Funcionamiento del Congreso', color: '#0379c7', value: 4 },
|
|
232
|
+
{ name: 'ODS 16 | Partidos políticos', color: '#0379c7', value: 27 },
|
|
233
|
+
{ name: 'ODS 16 | Poder Judicial', color: '#0379c7', value: 1 },
|
|
234
|
+
],
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
name: '16.4 Tráfico ilegal y crimen organizado',
|
|
238
|
+
color: '#0266a6',
|
|
239
|
+
children: [
|
|
240
|
+
{ name: 'ODS 16 | Malversación de fondos', color: '#0379c7', value: 6 },
|
|
241
|
+
{ name: 'ODS 16 | Crimen organizado', color: '#0379c7', value: 1 },
|
|
242
|
+
{ name: 'ODS 16 | Delincuencia organizada', color: '#0379c7', value: 1 },
|
|
243
|
+
],
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
name: '16.1 Reducción de la violencia',
|
|
247
|
+
color: '#0266a6',
|
|
248
|
+
children: [
|
|
249
|
+
{ name: 'ODS 16 | Conflicto Palestino-Israelí', color: '#0379c7', value: 5 },
|
|
250
|
+
{ name: 'ODS 16 | Asesinato', color: '#0379c7', value: 5 },
|
|
251
|
+
{ name: 'ODS 16 | Agresión sexual', color: '#0379c7', value: 3 },
|
|
252
|
+
{ name: 'ODS 16 | Violencia sexual', color: '#0379c7', value: 3 },
|
|
253
|
+
{ name: 'ODS 16 | Homicidio', color: '#0379c7', value: 1 },
|
|
254
|
+
{ name: 'ODS 16 | Guerra Ucrania', color: '#0379c7', value: 1 },
|
|
255
|
+
{ name: 'ODS 16 | Guerras', color: '#0379c7', value: 1 },
|
|
256
|
+
],
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
name: '16.5 Reducción de la corrupción',
|
|
260
|
+
color: '#0266a6',
|
|
261
|
+
children: [{ name: 'ODS 16 | Corrupción', color: '#0379c7', value: 3 }],
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
name: '16.a Fortalecimiento de las instituciones de seguridad',
|
|
265
|
+
color: '#0266a6',
|
|
266
|
+
children: [
|
|
267
|
+
{
|
|
268
|
+
name: 'ODS 16 | Prevención de la violencia y la delincuencia',
|
|
269
|
+
color: '#0379c7',
|
|
270
|
+
value: 1,
|
|
271
|
+
},
|
|
272
|
+
{ name: 'ODS 16 | Ciberseguridad', color: '#0379c7', value: 4 },
|
|
273
|
+
{ name: 'ODS 16 | Dictadura', color: '#0379c7', value: 1 },
|
|
274
|
+
],
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
name: '16.9 Identidad jurídica garantizada',
|
|
278
|
+
color: '#0266a6',
|
|
279
|
+
children: [
|
|
280
|
+
{ name: 'ODS 16 | Documento nacional de identidad', color: '#0379c7', value: 1 },
|
|
281
|
+
],
|
|
282
|
+
},
|
|
283
|
+
],
|
|
284
|
+
},
|
|
285
|
+
],
|
|
286
|
+
color: '#EEE',
|
|
287
|
+
},
|
|
288
|
+
],
|
|
289
|
+
title: 'Sunburst',
|
|
290
|
+
height: 600,
|
|
291
|
+
download: 'Download',
|
|
292
|
+
},
|
|
293
|
+
};
|
|
@@ -7,17 +7,29 @@ export default {
|
|
|
7
7
|
tags: ['autodocs'],
|
|
8
8
|
|
|
9
9
|
argTypes: {
|
|
10
|
-
|
|
10
|
+
config: {
|
|
11
|
+
type: 'object',
|
|
12
|
+
},
|
|
13
|
+
datum: {
|
|
14
|
+
type: 'array',
|
|
15
|
+
},
|
|
16
|
+
title: {
|
|
11
17
|
type: 'text',
|
|
12
18
|
},
|
|
13
|
-
|
|
19
|
+
source: {
|
|
20
|
+
type: 'text',
|
|
21
|
+
},
|
|
22
|
+
height: {
|
|
23
|
+
type: 'number',
|
|
24
|
+
},
|
|
25
|
+
download: {
|
|
14
26
|
type: 'text',
|
|
15
27
|
},
|
|
16
28
|
},
|
|
17
29
|
};
|
|
18
30
|
|
|
19
31
|
// More on writing stories with args: https://storybook.js.org/docs/vue/writing-stories/args
|
|
20
|
-
export const
|
|
32
|
+
export const Primary = {
|
|
21
33
|
args: {
|
|
22
34
|
datum: [
|
|
23
35
|
{ tag: 'Atención a personas dependientes', size: 25, value: 1, color: '#dd1367' },
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { vueRouter } from 'storybook-vue3-router';
|
|
2
2
|
import TipiInitiativeCard from '@/components/InitiativeCard/InitiativeCard.vue';
|
|
3
|
+
import { initiative, topicsStyles } from './mocks';
|
|
3
4
|
|
|
4
5
|
const customRoutes = [
|
|
5
6
|
{
|
|
@@ -47,159 +48,8 @@ export default {
|
|
|
47
48
|
// More on writing stories with args: https://storybook.js.org/docs/vue/writing-stories/args
|
|
48
49
|
export const Primary = {
|
|
49
50
|
args: {
|
|
50
|
-
initiative
|
|
51
|
-
|
|
52
|
-
{
|
|
53
|
-
knowledgebase: 'ods',
|
|
54
|
-
topics: ['ODS 16 Paz, justicia e instituciones sólidas', 'ODS 5 Igualdad de género'],
|
|
55
|
-
tags: [
|
|
56
|
-
{
|
|
57
|
-
topic: 'ODS 16 Paz, justicia e instituciones sólidas',
|
|
58
|
-
subtopic: '16.1 Redución de la violencia',
|
|
59
|
-
tag: 'Violencia de género',
|
|
60
|
-
times: 1,
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
topic: 'ODS 16 Paz, justicia e instituciones sólidas',
|
|
64
|
-
subtopic: '16.a Fortalecimiento de las instituciones de seguridad',
|
|
65
|
-
tag: 'Prevención de la violencia y la delincuencia',
|
|
66
|
-
times: 1,
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
topic: 'ODS 5 Igualdad de género',
|
|
70
|
-
subtopic: '5.2 Acabar con la violencia contra las mujeres',
|
|
71
|
-
tag: 'Ley 1/2004',
|
|
72
|
-
times: 1,
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
topic: 'ODS 5 Igualdad de género',
|
|
76
|
-
subtopic: '5.2 Acabar con la violencia contra las mujeres',
|
|
77
|
-
tag: 'Violencia de género',
|
|
78
|
-
times: 1,
|
|
79
|
-
},
|
|
80
|
-
],
|
|
81
|
-
},
|
|
82
|
-
],
|
|
83
|
-
title:
|
|
84
|
-
'Proposición no de Ley sobre lucha contra la violencia de género en el ámbito digital.',
|
|
85
|
-
status: 'En tramitación',
|
|
86
|
-
reference: '161/000792',
|
|
87
|
-
authors: ['Grupo Parlamentario Socialista'],
|
|
88
|
-
deputies: [],
|
|
89
|
-
id: '161-000792',
|
|
90
|
-
place: 'Comisión de Igualdad',
|
|
91
|
-
url: 'https://www.congreso.es/es/busqueda-de-iniciativas?p_p_id=iniciativas&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&_iniciativas_mode=mostrarDetalle&_iniciativas_legislatura=XV&_iniciativas_id=161%2F000792',
|
|
92
|
-
created: '2024-05-10T00:00:00+00:00',
|
|
93
|
-
oldid: 'e351228585d59fe61d31d7590de8f386a9288e2d',
|
|
94
|
-
initiative_type: '161',
|
|
95
|
-
initiative_type_alt: 'Proposición no de Ley en Comisión',
|
|
96
|
-
updated: '2024-05-14T00:00:00+00:00',
|
|
97
|
-
},
|
|
98
|
-
topicsStyles: {
|
|
99
|
-
'ODS 1 Fin de la pobreza': {
|
|
100
|
-
shortname: 'ODS 1',
|
|
101
|
-
color: '#eb1c2d',
|
|
102
|
-
image: 'ods-1.svg',
|
|
103
|
-
orgs_logos: ['caritas.png'],
|
|
104
|
-
},
|
|
105
|
-
'ODS 2 Hambre cero': {
|
|
106
|
-
shortname: 'ODS 2',
|
|
107
|
-
color: '#d3a029',
|
|
108
|
-
image: 'ods-2.svg',
|
|
109
|
-
orgs_logos: ['fao.png'],
|
|
110
|
-
},
|
|
111
|
-
'ODS 3 Salud y bienestar': {
|
|
112
|
-
shortname: 'ODS 3',
|
|
113
|
-
color: '#4c9f38',
|
|
114
|
-
image: 'ods-3.svg',
|
|
115
|
-
orgs_logos: ['salud_por_der.png', 'isglobal.png'],
|
|
116
|
-
},
|
|
117
|
-
'ODS 4 Educación de calidad': {
|
|
118
|
-
shortname: 'ODS 4',
|
|
119
|
-
color: '#c52333',
|
|
120
|
-
image: 'ods-4.svg',
|
|
121
|
-
orgs_logos: ['cmi.png'],
|
|
122
|
-
},
|
|
123
|
-
'ODS 5 Igualdad de género': {
|
|
124
|
-
shortname: 'ODS 5',
|
|
125
|
-
color: '#ed4135',
|
|
126
|
-
image: 'ods-5.svg',
|
|
127
|
-
orgs_logos: ['cedawsombra.png', 'coordinadora.png', 'fpfe_g.png'],
|
|
128
|
-
},
|
|
129
|
-
'ODS 6 Agua limpia y saneamiento': {
|
|
130
|
-
shortname: 'ODS 6',
|
|
131
|
-
color: '#00aed9',
|
|
132
|
-
image: 'ods-6.svg',
|
|
133
|
-
orgs_logos: ['catedra-aquae.png', 'ongawa.png'],
|
|
134
|
-
},
|
|
135
|
-
'ODS 7 Energía asequible y no contaminante': {
|
|
136
|
-
shortname: 'ODS 7',
|
|
137
|
-
color: '#fdb713',
|
|
138
|
-
image: 'ods-7.svg',
|
|
139
|
-
orgs_logos: ['esf.png'],
|
|
140
|
-
},
|
|
141
|
-
'ODS 8 Trabajo decente y crecimiento económico': {
|
|
142
|
-
shortname: 'ODS 8',
|
|
143
|
-
color: '#8f1838',
|
|
144
|
-
image: 'ods-8.svg',
|
|
145
|
-
orgs_logos: ['ccoo.png'],
|
|
146
|
-
},
|
|
147
|
-
'ODS 9 Industria, innovación e infraestructura': {
|
|
148
|
-
shortname: 'ODS 9',
|
|
149
|
-
color: '#f06a38',
|
|
150
|
-
image: 'ods-9.svg',
|
|
151
|
-
orgs_logos: ['foretica.png'],
|
|
152
|
-
},
|
|
153
|
-
'ODS 10 Reducción de las desigualdades': {
|
|
154
|
-
shortname: 'ODS 10',
|
|
155
|
-
color: '#dd1367',
|
|
156
|
-
image: 'ods-10.svg',
|
|
157
|
-
orgs_logos: ['congde.png', 'caritas.png'],
|
|
158
|
-
},
|
|
159
|
-
'ODS 11 Ciudades y comunidades sostenibles': {
|
|
160
|
-
shortname: 'ODS 11',
|
|
161
|
-
color: '#f69c39',
|
|
162
|
-
image: 'ods-11.svg',
|
|
163
|
-
orgs_logos: ['idl_uam.png', 'itgespub.png'],
|
|
164
|
-
},
|
|
165
|
-
'ODS 12 Producción y consumo responsables': {
|
|
166
|
-
shortname: 'ODS 12',
|
|
167
|
-
color: '#cf8d2a',
|
|
168
|
-
image: 'ods-12.svg',
|
|
169
|
-
orgs_logos: ['hispacoop.png'],
|
|
170
|
-
},
|
|
171
|
-
'ODS 13 Acción por el clima': {
|
|
172
|
-
shortname: 'ODS 13',
|
|
173
|
-
color: '#48773e',
|
|
174
|
-
image: 'ods-13.svg',
|
|
175
|
-
orgs_logos: ['wwf.png'],
|
|
176
|
-
},
|
|
177
|
-
'ODS 14 Vida submarina': {
|
|
178
|
-
shortname: 'ODS 14',
|
|
179
|
-
color: '#007dbc',
|
|
180
|
-
image: 'ods-14.svg',
|
|
181
|
-
orgs_logos: ['oceana.png'],
|
|
182
|
-
},
|
|
183
|
-
'ODS 15 Vida de ecosistemas terrestres': {
|
|
184
|
-
shortname: 'ODS 15',
|
|
185
|
-
color: '#5cb84d',
|
|
186
|
-
image: 'ods-15.svg',
|
|
187
|
-
orgs_logos: ['greenpeace.png'],
|
|
188
|
-
},
|
|
189
|
-
'ODS 16 Paz, justicia e instituciones sólidas': {
|
|
190
|
-
shortname: 'ODS 16',
|
|
191
|
-
color: '#02558b',
|
|
192
|
-
image: 'ods-16.svg',
|
|
193
|
-
orgs_logos: [],
|
|
194
|
-
},
|
|
195
|
-
'ODS 17 Alianzas para lograr los objetivos': {
|
|
196
|
-
shortname: 'ODS 17',
|
|
197
|
-
color: '#183668',
|
|
198
|
-
image: 'ods-17.svg',
|
|
199
|
-
orgs_logos: ['mauec.png'],
|
|
200
|
-
},
|
|
201
|
-
'no-topic': { shortname: 'Sin relación con la Agenda2030' },
|
|
202
|
-
},
|
|
51
|
+
initiative,
|
|
52
|
+
topicsStyles,
|
|
203
53
|
extendedLayout: true,
|
|
204
54
|
metaDeputies: 'Diputada/o',
|
|
205
55
|
metaGroupOthers: 'Autor',
|
|
@@ -1,9 +1,49 @@
|
|
|
1
|
+
import { vueRouter } from 'storybook-vue3-router';
|
|
1
2
|
import TipiNavbar from '@/components/Navbar/Navbar.vue';
|
|
2
3
|
|
|
4
|
+
const customRoutes = [
|
|
5
|
+
{
|
|
6
|
+
path: '/',
|
|
7
|
+
name: 'home',
|
|
8
|
+
component: TipiNavbar,
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
path: '/alerts',
|
|
12
|
+
name: 'alerts',
|
|
13
|
+
component: TipiNavbar,
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
path: '/about',
|
|
17
|
+
name: 'about',
|
|
18
|
+
component: TipiNavbar,
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
path: '/dashboard',
|
|
22
|
+
name: 'dashboard',
|
|
23
|
+
component: TipiNavbar,
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
path: '/deputies',
|
|
27
|
+
name: 'deputies',
|
|
28
|
+
component: TipiNavbar,
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
path: '/ods',
|
|
32
|
+
name: 'ods',
|
|
33
|
+
component: TipiNavbar,
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
path: '/search',
|
|
37
|
+
name: 'search',
|
|
38
|
+
component: TipiNavbar,
|
|
39
|
+
},
|
|
40
|
+
];
|
|
41
|
+
|
|
3
42
|
// More on how to set up stories at: https://storybook.js.org/docs/vue/writing-stories/introduction
|
|
4
43
|
export default {
|
|
5
44
|
title: 'Example/TipiNavbar',
|
|
6
45
|
component: TipiNavbar,
|
|
46
|
+
decorators: [vueRouter(customRoutes)],
|
|
7
47
|
tags: ['autodocs'],
|
|
8
48
|
|
|
9
49
|
argTypes: {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { vueRouter } from 'storybook-vue3-router';
|
|
2
2
|
import TipiResults from '@/components/Results/Results.vue';
|
|
3
|
+
import { topicsStyles } from './mocks';
|
|
3
4
|
|
|
4
5
|
const customRoutes = [
|
|
5
6
|
{
|
|
@@ -341,111 +342,7 @@ export const Primary = {
|
|
|
341
342
|
],
|
|
342
343
|
queryMeta: { total: 3, pages: 1, page: 1, per_page: 20 },
|
|
343
344
|
layout: undefined,
|
|
344
|
-
topicsStyles
|
|
345
|
-
'ODS 1 Fin de la pobreza': {
|
|
346
|
-
shortname: 'ODS 1',
|
|
347
|
-
color: '#eb1c2d',
|
|
348
|
-
image: 'ods-1.svg',
|
|
349
|
-
orgs_logos: ['caritas.png'],
|
|
350
|
-
},
|
|
351
|
-
'ODS 2 Hambre cero': {
|
|
352
|
-
shortname: 'ODS 2',
|
|
353
|
-
color: '#d3a029',
|
|
354
|
-
image: 'ods-2.svg',
|
|
355
|
-
orgs_logos: ['fao.png'],
|
|
356
|
-
},
|
|
357
|
-
'ODS 3 Salud y bienestar': {
|
|
358
|
-
shortname: 'ODS 3',
|
|
359
|
-
color: '#4c9f38',
|
|
360
|
-
image: 'ods-3.svg',
|
|
361
|
-
orgs_logos: ['salud_por_der.png', 'isglobal.png'],
|
|
362
|
-
},
|
|
363
|
-
'ODS 4 Educación de calidad': {
|
|
364
|
-
shortname: 'ODS 4',
|
|
365
|
-
color: '#c52333',
|
|
366
|
-
image: 'ods-4.svg',
|
|
367
|
-
orgs_logos: ['cmi.png'],
|
|
368
|
-
},
|
|
369
|
-
'ODS 5 Igualdad de género': {
|
|
370
|
-
shortname: 'ODS 5',
|
|
371
|
-
color: '#ed4135',
|
|
372
|
-
image: 'ods-5.svg',
|
|
373
|
-
orgs_logos: ['cedawsombra.png', 'coordinadora.png', 'fpfe_g.png'],
|
|
374
|
-
},
|
|
375
|
-
'ODS 6 Agua limpia y saneamiento': {
|
|
376
|
-
shortname: 'ODS 6',
|
|
377
|
-
color: '#00aed9',
|
|
378
|
-
image: 'ods-6.svg',
|
|
379
|
-
orgs_logos: ['catedra-aquae.png', 'ongawa.png'],
|
|
380
|
-
},
|
|
381
|
-
'ODS 7 Energía asequible y no contaminante': {
|
|
382
|
-
shortname: 'ODS 7',
|
|
383
|
-
color: '#fdb713',
|
|
384
|
-
image: 'ods-7.svg',
|
|
385
|
-
orgs_logos: ['esf.png'],
|
|
386
|
-
},
|
|
387
|
-
'ODS 8 Trabajo decente y crecimiento económico': {
|
|
388
|
-
shortname: 'ODS 8',
|
|
389
|
-
color: '#8f1838',
|
|
390
|
-
image: 'ods-8.svg',
|
|
391
|
-
orgs_logos: ['ccoo.png'],
|
|
392
|
-
},
|
|
393
|
-
'ODS 9 Industria, innovación e infraestructura': {
|
|
394
|
-
shortname: 'ODS 9',
|
|
395
|
-
color: '#f06a38',
|
|
396
|
-
image: 'ods-9.svg',
|
|
397
|
-
orgs_logos: ['foretica.png'],
|
|
398
|
-
},
|
|
399
|
-
'ODS 10 Reducción de las desigualdades': {
|
|
400
|
-
shortname: 'ODS 10',
|
|
401
|
-
color: '#dd1367',
|
|
402
|
-
image: 'ods-10.svg',
|
|
403
|
-
orgs_logos: ['congde.png', 'caritas.png'],
|
|
404
|
-
},
|
|
405
|
-
'ODS 11 Ciudades y comunidades sostenibles': {
|
|
406
|
-
shortname: 'ODS 11',
|
|
407
|
-
color: '#f69c39',
|
|
408
|
-
image: 'ods-11.svg',
|
|
409
|
-
orgs_logos: ['idl_uam.png', 'itgespub.png'],
|
|
410
|
-
},
|
|
411
|
-
'ODS 12 Producción y consumo responsables': {
|
|
412
|
-
shortname: 'ODS 12',
|
|
413
|
-
color: '#cf8d2a',
|
|
414
|
-
image: 'ods-12.svg',
|
|
415
|
-
orgs_logos: ['hispacoop.png'],
|
|
416
|
-
},
|
|
417
|
-
'ODS 13 Acción por el clima': {
|
|
418
|
-
shortname: 'ODS 13',
|
|
419
|
-
color: '#48773e',
|
|
420
|
-
image: 'ods-13.svg',
|
|
421
|
-
orgs_logos: ['wwf.png'],
|
|
422
|
-
},
|
|
423
|
-
'ODS 14 Vida submarina': {
|
|
424
|
-
shortname: 'ODS 14',
|
|
425
|
-
color: '#007dbc',
|
|
426
|
-
image: 'ods-14.svg',
|
|
427
|
-
orgs_logos: ['oceana.png'],
|
|
428
|
-
},
|
|
429
|
-
'ODS 15 Vida de ecosistemas terrestres': {
|
|
430
|
-
shortname: 'ODS 15',
|
|
431
|
-
color: '#5cb84d',
|
|
432
|
-
image: 'ods-15.svg',
|
|
433
|
-
orgs_logos: ['greenpeace.png'],
|
|
434
|
-
},
|
|
435
|
-
'ODS 16 Paz, justicia e instituciones sólidas': {
|
|
436
|
-
shortname: 'ODS 16',
|
|
437
|
-
color: '#02558b',
|
|
438
|
-
image: 'ods-16.svg',
|
|
439
|
-
orgs_logos: [],
|
|
440
|
-
},
|
|
441
|
-
'ODS 17 Alianzas para lograr los objetivos': {
|
|
442
|
-
shortname: 'ODS 17',
|
|
443
|
-
color: '#183668',
|
|
444
|
-
image: 'ods-17.svg',
|
|
445
|
-
orgs_logos: ['mauec.png'],
|
|
446
|
-
},
|
|
447
|
-
'no-topic': { shortname: 'Sin relación con la Agenda2030' },
|
|
448
|
-
},
|
|
345
|
+
topicsStyles,
|
|
449
346
|
metaDeputies: 'Diputada/o',
|
|
450
347
|
metaGroupsOthers: 'Autor',
|
|
451
348
|
metaColors: undefined,
|
|
@@ -1,9 +1,19 @@
|
|
|
1
|
+
import { vueRouter } from 'storybook-vue3-router';
|
|
1
2
|
import TipiText from '@/components/Text/Text.vue';
|
|
2
3
|
|
|
4
|
+
const customRoutes = [
|
|
5
|
+
{
|
|
6
|
+
path: '/',
|
|
7
|
+
name: 'home',
|
|
8
|
+
component: TipiText,
|
|
9
|
+
},
|
|
10
|
+
];
|
|
11
|
+
|
|
3
12
|
// More on how to set up stories at: https://storybook.js.org/docs/vue/writing-stories/introduction
|
|
4
13
|
export default {
|
|
5
14
|
title: 'Example/TipiText',
|
|
6
15
|
component: TipiText,
|
|
16
|
+
decorators: [vueRouter(customRoutes)],
|
|
7
17
|
tags: ['autodocs'],
|
|
8
18
|
|
|
9
19
|
argTypes: {
|