@everymatrix/casino-tournaments-page-controller 0.0.309 → 0.0.310

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.html CHANGED
@@ -29,7 +29,7 @@
29
29
  </h1>
30
30
  </header>
31
31
 
32
- <casino-tournaments-page-controller session="d91e9d22-68e4-474c-8c5a-d1915ce9ffd8" namemask="opap" userid="3976988" showleaderboard="true" endpoint="https://demo-api.stage.norway.everymatrix.com/v1" cmsendpoint="https://casinouat.pamestoixima.gr/apijson/en/tournaments/906333318049055456" lang="en" loginevent="Login" registerevent="Register" tourid="919351011811343804"></casino-tournaments-page-controller>
32
+ <casino-tournaments-page-controller session="d91e9d22-68e4-474c-8c5a-d1915ce9ffd8" namemask="opap" userid="3976988" showleaderboard="true" endpoint="https://demo-api.stage.norway.everymatrix.com/v1" cmsendpoint="https://widgets.everymatrix.com/apijson/en/tournaments/906333318049055456" lang="en" loginevent="Login" registerevent="Register" tourid="919351011811343804"></casino-tournaments-page-controller>
33
33
 
34
34
  </body>
35
35
  </html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-tournaments-page-controller",
3
- "version": "0.0.309",
3
+ "version": "0.0.310",
4
4
  "main": "dist/casino-tournaments-page-controller.js",
5
5
  "svelte": "src/index.ts",
6
6
  "scripts": {
@@ -36,5 +36,5 @@
36
36
  "publishConfig": {
37
37
  "access": "public"
38
38
  },
39
- "gitHead": "5d3dd3ff57c483ac2d7f6526cd70f1a7746af0cf"
39
+ "gitHead": "3955cf9d2fc7c1740b79c97d5e06492ea705194f"
40
40
  }
@@ -361,7 +361,7 @@
361
361
  }
362
362
 
363
363
  const getDataFromCMS = () => {
364
- fetch(`${cmsendpoint}?tournamentId=${tourid}`)
364
+ fetch(`${cmsendpoint}/${tourid}`)
365
365
  .then((res: any) => res.json())
366
366
  .then((data: any) => {
367
367
  if (data && data.details) {
@@ -394,7 +394,7 @@
394
394
  $: lang && setActiveLanguage();
395
395
  $: initialParameters = tourid && endpoint && session && lang;
396
396
  $: initialParameters && initialLoad();
397
- $: tourid && cmsendpoint && getDataFromCMS();
397
+ $: cmsendpoint && tourid && getDataFromCMS();
398
398
  $: isMiniMode = (viewmode != 'desktop') && isMobile(userAgent); // forward this page from tournamentslider
399
399
  </script>
400
400
 
@@ -466,7 +466,7 @@
466
466
  </div>
467
467
 
468
468
  <div class="{showleaderboard == 'true' ? 'TournamentTableDetails ' : 'DisplayNone'}"
469
- part="{showleaderboard == 'true' ? 'TournamentTableDetails ' : 'DisplayNone'}">
469
+ part="{showleaderboard == 'true' ? 'TournamentTableDetails ' : 'DisplayNone'}">
470
470
  {#if showleaderboard == "true"}
471
471
  {#if showTable == true}
472
472
  <casino-tournaments-table
@@ -491,7 +491,7 @@
491
491
  {#if !tournamentDetails}
492
492
  <div class="Thumbnail MiniMode" part="MiniThumbnail">
493
493
  <img part="CardImg" class="CardImg {(status == 'Closing' || status == 'Closed') ? 'CardImgFinished' : ''}" src="https://i.stack.imgur.com/y9DpT.jpg"
494
- width="65px" height="40px" title="">
494
+ width="65px" height="40px" title="">
495
495
  <div class="MobileRight" part="ThumbnailRight">
496
496
  <div class="Title"> </div>
497
497
  <div>