File tree Expand file tree Collapse file tree 6 files changed +23
-0
lines changed Expand file tree Collapse file tree 6 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ const {
59
59
silverSponsors,
60
60
bronzeSponsors,
61
61
specialNamingRightSponsors,
62
+ namingRightSponsors,
62
63
specialLunchSponsors,
63
64
afterPartySponsors,
64
65
nameCardSponsors,
@@ -146,6 +147,7 @@ const {
146
147
<SponsorList v-bind =" silverSponsors" />
147
148
<SponsorList v-bind =" bronzeSponsors" />
148
149
<SponsorList v-bind =" specialNamingRightSponsors" />
150
+ <SponsorList v-bind =" namingRightSponsors" />
149
151
<div class =" sponsor-list-layout-separate" >
150
152
<SponsorList v-bind =" specialLunchSponsors" />
151
153
<SponsorList v-bind =" afterPartySponsors" />
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ export function useSponsor() {
13
13
'option-separate' ,
14
14
'name-card' ,
15
15
'special-naming-rights' ,
16
+ 'naming-rights' ,
16
17
'after-party' ,
17
18
'simultaneous-interpretation' ,
18
19
'special-lunch' ,
Original file line number Diff line number Diff line change 76
76
"silver" : " Silver" ,
77
77
"bronze" : " Bronze" ,
78
78
"special_naming_rights" : " Special Naming Rights" ,
79
+ "naming_rights" : " Naming Rights" ,
79
80
"special_lunch" : " Special Lunch" ,
80
81
"after_party" : " After Party" ,
81
82
"name_card" : " Name Card" ,
Original file line number Diff line number Diff line change 94
94
"silver" : " シルバー" ,
95
95
"bronze" : " ブロンズ" ,
96
96
"special_naming_rights" : " スペシャルネーミングライツ" ,
97
+ "naming_rights" : " ネーミングライツ" ,
97
98
"special_lunch" : " スペシャルランチ" ,
98
99
"after_party" : " アフターパーティー" ,
99
100
"name_card" : " ネームカード" ,
Original file line number Diff line number Diff line change @@ -94,6 +94,21 @@ export default defineEventHandler(async (event) => {
94
94
} ) ,
95
95
}
96
96
97
+ const namingRightSponsors : SponsorInfo = {
98
+ type : 'option' ,
99
+ title : 'naming_rights' ,
100
+ list : sponsors
101
+ . filter ( ( s : Sponsor ) => {
102
+ if ( process . env . NODE_ENV === 'production' ) return s [ 'tag' ] . includes ( 'naming-rights' ) && s . is_open === true
103
+ return s [ 'tag' ] . includes ( 'naming-rights' )
104
+ } )
105
+ . sort ( ( a : Sponsor , b : Sponsor ) => {
106
+ if ( ! a . display_order ) return a . created_at < b . created_at ? - 1 : 1
107
+ if ( ! b . display_order ) return a . created_at < b . created_at ? - 1 : 1
108
+ return a . display_order - b . display_order
109
+ } ) ,
110
+ }
111
+
97
112
const specialLunchSponsors : SponsorInfo = {
98
113
type : 'option-separate' ,
99
114
title : 'special_lunch' ,
@@ -190,6 +205,7 @@ export default defineEventHandler(async (event) => {
190
205
silverSponsors,
191
206
bronzeSponsors,
192
207
specialNamingRightSponsors,
208
+ namingRightSponsors,
193
209
specialLunchSponsors,
194
210
afterPartySponsors,
195
211
nameCardSponsors,
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ export type SponsorCategory =
6
6
| 'silverSponsors'
7
7
| 'bronzeSponsors'
8
8
| 'specialNamingRightSponsors'
9
+ | 'namingRightSponsors'
9
10
| 'specialLunchSponsors'
10
11
| 'afterPartySponsors'
11
12
| 'nameCardSponsors'
@@ -17,6 +18,7 @@ export type SponsorCategory =
17
18
export type OptionSponsorType =
18
19
| 'name-card'
19
20
| 'special-naming-rights'
21
+ | 'naming-rights'
20
22
| 'after-party'
21
23
| 'simultaneous-interpretation'
22
24
| 'special-lunch'
You can’t perform that action at this time.
0 commit comments