@@ -8,7 +8,6 @@ import Embeddable, { EmbeddableRouteParams } from './components/Embeddable';
88import PlayoffBracket from './components/PlayoffBracket' ;
99import PlayoffQueueing from './components/PlayoffQueueing/Queueing' ;
1010import Queueing from './components/QualDisplay/Queueing' ;
11- // import KeyableTicker from './components/RankingDisplay/KeyableTicker';
1211import TeamRankings from './components/RankingDisplay/TeamRankings' ;
1312import UserLogin from './components/Manage/UserLogin' ;
1413import Options from './components/Manage/Options' ;
@@ -62,12 +61,6 @@ const Routes: Route<any>[] = [
6261 component : PlayoffBracket ,
6362 usedIn : [ 'playoff' ] ,
6463 } ,
65- // {
66- // name: 'Rankings Ticker (Audience Display)',
67- // url: '/ranking/ticker',
68- // component: KeyableTicker,
69- // usedIn: [],
70- // },
7164 {
7265 name : 'FRC Pit Display' ,
7366 url : '/frcpitdisplay' ,
@@ -83,7 +76,20 @@ const Routes: Route<any>[] = [
8376 component : Embeddable ,
8477 usedIn : [ 'qual' , 'playoff' ] ,
8578 params : {
86- iframeUrl : ( _ , evt ) => evt . streamEmbedLink ?. replace ( '%HOST%' , window ?. location ?. host ) ,
79+ iframeUrl : ( _ , evt ) => evt . streamEmbedLink ?. replace ( '%HOST%' , window ?. location ?. hostname ) ,
80+ } ,
81+ } as Route < EmbeddableRouteParams > ,
82+ {
83+ name : 'Nexus for FRC' ,
84+ url : '/nexus' ,
85+ component : Embeddable ,
86+ usedIn : [ 'qual' , 'playoff' ] ,
87+ params : {
88+ iframeUrl : ( season , evt ) => `https://frc.nexus/en/event/${
89+ / ^ \d / . test ( evt . eventCode )
90+ ? evt . eventCode . toLowerCase ( )
91+ : `${ season } ${ evt . eventCode . toLowerCase ( ) } `
92+ } /display/pit`,
8793 } ,
8894 } as Route < EmbeddableRouteParams > ,
8995 {
0 commit comments