2
2
<div class =" bg-grey-dark color-white" >
3
3
<div class =" row p-medium" >
4
4
<button
5
- v-for =" { name, contentKey } in $tm('resources.tabs')"
5
+ v-for =" { name, key } in $tm('resources.tabs')"
6
6
:key =" name"
7
7
class =" type-uppercase mr-medium theme-button"
8
- :class =" activeTab === contentKey ? 'active' : ''"
9
- @click =" activeTab = contentKey " >
8
+ :class =" activeTab === key ? 'active' : ''"
9
+ @click =" activeTab = key " >
10
10
{{ name }}
11
11
</button >
12
12
</div >
13
13
<transition name =" opacity" mode =" out-in" >
14
14
<div :key =" activeTab" >
15
15
<div class =" row mb-medium" >
16
16
<div class =" col-sm-9 pl-medium" >
17
- {{ selectedTab .description }}
17
+ {{ $tm('resources.tabs').find(({ key }) => key === activeTab) .description }}
18
18
</div >
19
19
<div class =" col-sm-3 pr-medium flex bottom end" >
20
20
<div class =" relative" >
@@ -138,11 +138,11 @@ export default {
138
138
' Tags'
139
139
]
140
140
},
141
- selectedTab () {
141
+ selectedList () {
142
142
return this .$tm (` resourcesList.${ this .activeTab } ` )
143
143
},
144
144
visibleItems () {
145
- const filtered = this .selectedTab
145
+ const filtered = this .selectedList
146
146
.filter ((item ) => ! this .tagFilterExactMatch || (item .tags && item .tags .some ((tag ) => tag .toLowerCase () === this .filterInput .toLowerCase ())))
147
147
if (this .sortBy === ' default' ) {
148
148
return [
@@ -161,14 +161,14 @@ export default {
161
161
return this .tabTags .some ((tag ) => tag .toLowerCase () === this .filterInput .toLowerCase ())
162
162
},
163
163
tabTags () {
164
- return [... new Set (this .selectedTab . items
164
+ return [... new Set (this .selectedList
165
165
.flatMap ((item ) => item .tags )
166
166
.filter ((tag ) => tag)
167
167
.sort ((a , b ) => a > b ? 1 : - 1 ))]
168
168
}
169
169
},
170
170
created () {
171
- this .activeTab = this .$tm (' resources.tabs' )[0 ].contentKey
171
+ this .activeTab = this .$tm (' resources.tabs' )[0 ].key
172
172
},
173
173
watch: {
174
174
activeTab () {
@@ -222,11 +222,11 @@ table {
222
222
}
223
223
.table-container-gradient ::before {
224
224
top : 0 ;
225
- background : linear-gradient (var (--color-grey-dark ), rgba (255 , 255 , 255 , 0.001 ));
225
+ background : linear-gradient (var (--color-grey-dark ), rgba (41 , 47 , 51 , 0 ));
226
226
}
227
227
.table-container-gradient ::after {
228
228
bottom : 0 ;
229
- background : linear-gradient (rgba (255 , 255 , 255 , 0.001 ), var (--color-grey-dark ));
229
+ background : linear-gradient (rgba (41 , 47 , 51 , 0 ), var (--color-grey-dark ));
230
230
}
231
231
.table-container {
232
232
height : 50vh ;
0 commit comments