Preprod (#486)
* style(#1284): seach responsive styles added (#480) Co-authored-by: Farber Denis <denis.farber@instatsport.com> * refactor(ott-1548): change tabs size and lexics (#477) * style(hidescore): hide scrore icon mobile size fix (#481) Co-authored-by: Farber Denis <denis.farber@instatsport.com> * style(#mobilefix): fixed broken mobile styles (#482) * fix(ott-1597): fix mobile styles (#483) Co-authored-by: boyvanov <boyvanov.sergey@gmail.com> * feat(ott-1613): landing page adaptive (#484) * Ott 1603 configurations for diff clients (#485) * fix(ott-1498): add facr staging * fix(ott-1498): fix proc and make * feat(ott-1498): changed client_id to facr-ott-web * chore(ott-1498): changed directory from facrtv to facr * fix(ott-1498): rm facrtv version key from get matches requests * fix(ott-1498): returned version key for get matches requests * feat(ott-1498): added hash to well-known certificate oidc * fix(ott-1552): add czech lang * fix(ott-1498): fixes for facr * fix(1603): removed old paged * fix(1603): client configurations * fix(1603): request params * fix(1603): styles * fix(1603): added default client language Co-authored-by: blazecolour <936x936@gmail.com> Co-authored-by: quitesocial <quitesocial@yandex.ru> Co-authored-by: Farber Denis <42491613+Bombamuerta@users.noreply.github.com> Co-authored-by: Farber Denis <denis.farber@instatsport.com> Co-authored-by: Aleksey Miroshnichenko <alexnofoget@mail.ru> Co-authored-by: boyvanov <50294488+boyvanov@users.noreply.github.com> Co-authored-by: boyvanov <boyvanov.sergey@gmail.com> Co-authored-by: PolyakovaM <55061222+PolyakovaM@users.noreply.github.com> Co-authored-by: blazecolour <936x936@gmail.com> Co-authored-by: quitesocial <quitesocial@yandex.ru>keep-around/af30b88d367751c9e05a735e4a0467a96238ef47
parent
b9ea06225b
commit
708d33a453
|
After Width: | Height: | Size: 32 KiB |
@ -0,0 +1,28 @@ |
||||
import type { ClientConfig } from './types' |
||||
import { PROCEDURES } from '../procedures' |
||||
|
||||
const randomHash = () => ( |
||||
(Math.random() ** Math.random()) * 9999999999999999 |
||||
) |
||||
|
||||
const params = { _p_version: 'facrtv' } |
||||
|
||||
export const facr: ClientConfig = { |
||||
auth: { |
||||
clientId: 'facr-ott-web', |
||||
metaDataUrlParams: `?hash=${randomHash()}`, |
||||
}, |
||||
defaultLanguage: 'cs', |
||||
requests: { |
||||
[PROCEDURES.get_matches]: params, |
||||
[PROCEDURES.get_team_matches]: params, |
||||
[PROCEDURES.get_player_matches]: params, |
||||
[PROCEDURES.get_tournament_matches]: params, |
||||
}, |
||||
styles: { |
||||
background: '', |
||||
logo: 'facr-logo.svg', |
||||
logoHeight: 3.35, |
||||
logoWidth: 2.45, |
||||
}, |
||||
} |
||||
@ -0,0 +1,13 @@ |
||||
import type { ClientConfig } from './types' |
||||
|
||||
import { instat } from './instat' |
||||
import { facr } from './facr' |
||||
|
||||
const currentClient = process.env.REACT_APP_CLIENT || 'instat' |
||||
|
||||
const clients = { |
||||
facr, |
||||
instat, |
||||
} |
||||
|
||||
export const client: ClientConfig = clients[currentClient] |
||||
@ -0,0 +1,13 @@ |
||||
import type { ClientConfig } from './types' |
||||
|
||||
export const instat: ClientConfig = { |
||||
auth: { |
||||
clientId: 'ott-web', |
||||
}, |
||||
styles: { |
||||
background: 'background-image: url(/images/Checker.png);', |
||||
logo: 'logo.svg', |
||||
logoHeight: 1.465, |
||||
logoWidth: 6.37, |
||||
}, |
||||
} |
||||
@ -0,0 +1,19 @@ |
||||
import type { Languages } from 'config/languages' |
||||
|
||||
type ProcedureName = string |
||||
type RequestParameters = any |
||||
|
||||
export type ClientConfig = { |
||||
auth: { |
||||
clientId: string, |
||||
metaDataUrlParams?: string, |
||||
}, |
||||
defaultLanguage?: Languages, |
||||
requests?: Record<ProcedureName, RequestParameters>, |
||||
styles: { |
||||
background?: string, |
||||
logo: string, |
||||
logoHeight?: number, |
||||
logoWidth?: number, |
||||
}, |
||||
} |
||||
@ -0,0 +1 @@ |
||||
export const MATCH_SIDE_PLAYLIST_WIDTH = [80, 85, 123] |
||||
Loading…
Reference in new issue