1313//
1414// If you no longer want to use a dependency, remember
1515// to also remove its path from "config.paths.watched".
16- import ' core-js/stable' ;
16+ import " core-js/stable" ;
1717// eslint-disable-next-line import/no-extraneous-dependencies
18- import ' regenerator-runtime/runtime' ;
19- import ' phoenix_html' ;
20- import ' @fortawesome/fontawesome-free/js/all' ;
21- import '../css/style.scss' ;
22- import ' bootstrap' ;
18+ import " regenerator-runtime/runtime" ;
19+ import " phoenix_html" ;
20+ import " @fortawesome/fontawesome-free/js/all" ;
21+ // import '../css/style.scss';
22+ import " bootstrap" ;
2323
24- import { inspect } from ' @xstate/inspect' ;
25- import NProgress from ' nprogress' ;
26- import { Socket } from ' phoenix' ;
27- import { LiveSocket } from ' phoenix_live_view' ;
24+ import { inspect } from " @xstate/inspect" ;
25+ import NProgress from " nprogress" ;
26+ import { Socket } from " phoenix" ;
27+ import { LiveSocket } from " phoenix_live_view" ;
2828
2929// Import local files
3030//
3131// Local files can be imported directly using relative
3232// paths "./socket" or full ones "web/static/js/socket".
3333
34- import ' ./widgets/lib/sentry' ;
34+ import " ./widgets/lib/sentry" ;
3535import {
3636 renderBuilderWidget ,
3737 renderEventPage ,
@@ -51,11 +51,11 @@ import {
5151 renderTournamentsSchedule ,
5252 renderUserPage ,
5353 renderUsersRating ,
54- } from ' ./widgets' ;
54+ } from " ./widgets" ;
5555
56- if ( process . env . NODE_ENV === ' development' ) {
56+ if ( process . env . NODE_ENV === " development" ) {
5757 inspect ( {
58- iframe : ( ) => document . querySelector ( ' .xstate' ) ,
58+ iframe : ( ) => document . querySelector ( " .xstate" ) ,
5959 } ) ;
6060}
6161
@@ -70,16 +70,16 @@ const Hooks = {
7070 } ,
7171 TournamentChatInput : {
7272 mounted ( ) {
73- this . handleEvent ( ' clear' , ( { value } ) => {
73+ this . handleEvent ( " clear" , ( { value } ) => {
7474 this . el . value = value ;
7575 } ) ;
7676 } ,
7777 } ,
7878} ;
7979const csrfToken = document
8080 . querySelector ( "meta[name='csrf-token']" )
81- . getAttribute ( ' content' ) ;
82- const liveSocket = new LiveSocket ( ' /live' , Socket , {
81+ . getAttribute ( " content" ) ;
82+ const liveSocket = new LiveSocket ( " /live" , Socket , {
8383 hooks : Hooks ,
8484 params : {
8585 _csrf_token : csrfToken ,
@@ -88,31 +88,31 @@ const liveSocket = new LiveSocket('/live', Socket, {
8888 } ,
8989} ) ;
9090
91- window . addEventListener ( ' phx:page-loading-start' , _info => NProgress . start ( ) ) ;
92- window . addEventListener ( ' phx:page-loading-stop' , _info => NProgress . done ( ) ) ;
91+ window . addEventListener ( " phx:page-loading-start" , ( _info ) => NProgress . start ( ) ) ;
92+ window . addEventListener ( " phx:page-loading-stop" , ( _info ) => NProgress . done ( ) ) ;
9393
9494liveSocket . connect ( ) ;
9595
96- const builderWidgetRoot = document . getElementById ( ' builder-widget-root' ) ;
97- const gameWidgetRoot = document . getElementById ( ' game-widget-root' ) ;
98- const heatmapRoot = document . getElementById ( ' heatmap-root' ) ;
99- const onlineRoot = document . getElementById ( ' online-root' ) ;
100- const invitesRoot = document . getElementById ( ' invites-root' ) ;
101- const streamRoot = document . getElementById ( ' stream-classic-root' ) ;
102- const lobbyRoot = document . getElementById ( ' lobby-root' ) ;
103- const ratingList = document . getElementById ( ' rating-list' ) ;
104- const registrationRoot = document . getElementById ( ' registration' ) ;
105- const settingsRoot = document . getElementById ( ' settings' ) ;
106- const stairwayGameRoot = document . getElementById ( ' stairway-game-root' ) ;
107- const tournamentPlayerRoot = document . getElementById ( ' tournament-player-root' ) ;
108- const tournamentRoot = document . getElementById ( ' tournament-root' ) ;
109- const adminTournamentRoot = document . getElementById ( ' tournament-admin-root' ) ;
110- const eventWidgetRoot = document . getElementById ( ' event-widget' ) ;
111- const userPageRoot = document . getElementById ( ' user-page-root' ) ;
96+ const builderWidgetRoot = document . getElementById ( " builder-widget-root" ) ;
97+ const gameWidgetRoot = document . getElementById ( " game-widget-root" ) ;
98+ const heatmapRoot = document . getElementById ( " heatmap-root" ) ;
99+ const onlineRoot = document . getElementById ( " online-root" ) ;
100+ const invitesRoot = document . getElementById ( " invites-root" ) ;
101+ const streamRoot = document . getElementById ( " stream-classic-root" ) ;
102+ const lobbyRoot = document . getElementById ( " lobby-root" ) ;
103+ const ratingList = document . getElementById ( " rating-list" ) ;
104+ const registrationRoot = document . getElementById ( " registration" ) ;
105+ const settingsRoot = document . getElementById ( " settings" ) ;
106+ const stairwayGameRoot = document . getElementById ( " stairway-game-root" ) ;
107+ const tournamentPlayerRoot = document . getElementById ( " tournament-player-root" ) ;
108+ const tournamentRoot = document . getElementById ( " tournament-root" ) ;
109+ const adminTournamentRoot = document . getElementById ( " tournament-admin-root" ) ;
110+ const eventWidgetRoot = document . getElementById ( " event-widget" ) ;
111+ const userPageRoot = document . getElementById ( " user-page-root" ) ;
112112const tournamentsScheduleRoot = document . getElementById (
113- ' tournaments-schedule-root' ,
113+ " tournaments-schedule-root" ,
114114) ;
115- const hallOfFameRoot = document . getElementById ( ' hall-of-fame-root' ) ;
115+ const hallOfFameRoot = document . getElementById ( " hall-of-fame-root" ) ;
116116
117117if ( gameWidgetRoot ) {
118118 renderGameWidget ( gameWidgetRoot ) ;
0 commit comments