File tree 2 files changed +42
-0
lines changed
2 files changed +42
-0
lines changed Original file line number Diff line number Diff line change
1
+ export default {
2
+ contentDependencies : [
3
+ 'generateColorStyleAttribute' ,
4
+ 'linkStationaryIndex' ,
5
+ ] ,
6
+
7
+ query : ( flashSide ) => ( {
8
+ jumpAct :
9
+ flashSide . acts [ 0 ] ,
10
+ } ) ,
11
+
12
+ relations : ( relation , _query , flashSide ) => ( {
13
+ link :
14
+ relation (
15
+ 'linkStationaryIndex' ,
16
+ 'localized.flashIndex' ,
17
+ 'flashIndex.title' ) ,
18
+
19
+ colorStyle :
20
+ relation ( 'generateColorStyleAttribute' , flashSide . color ?? null ) ,
21
+ } ) ,
22
+
23
+ data : ( query , flashSide ) => ( {
24
+ name :
25
+ flashSide . name ,
26
+
27
+ jumpActDirectory :
28
+ query . jumpAct . directory ,
29
+ } ) ,
30
+
31
+ generate : ( data , relations ) =>
32
+ relations . link . slots ( {
33
+ content : data . name ,
34
+ hash : data . jumpActDirectory ,
35
+ attributes : [ relations . colorStyle ] ,
36
+ } ) ,
37
+ } ;
Original file line number Diff line number Diff line change @@ -84,6 +84,11 @@ export const replacerSpec = {
84
84
link : 'linkFlashAct' ,
85
85
} ,
86
86
87
+ 'flash-side' : {
88
+ find : 'flashSide' ,
89
+ link : 'linkFlashSide' ,
90
+ } ,
91
+
87
92
'group' : {
88
93
find : 'group' ,
89
94
link : 'linkGroup' ,
You can’t perform that action at this time.
0 commit comments