@everymatrix/casino-tournaments-page-controller 0.0.307 → 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.307",
3
+ "version": "0.0.310",
4
4
  "main": "dist/casino-tournaments-page-controller.js",
5
5
  "svelte": "src/index.ts",
6
6
  "scripts": {
@@ -29,7 +29,6 @@
29
29
  "typescript": "^3.9.3"
30
30
  },
31
31
  "dependencies": {
32
- "@everymatrix/casino-tournaments-page": "^0.0.30",
33
32
  "cross-env": "^7.0.3",
34
33
  "sirv-cli": "^1.0.0",
35
34
  "svelte": "^3.0.0"
@@ -37,5 +36,5 @@
37
36
  "publishConfig": {
38
37
  "access": "public"
39
38
  },
40
- "gitHead": "28f4973122626812bb9aebe1512b21179e144e57"
39
+ "gitHead": "3955cf9d2fc7c1740b79c97d5e06492ea705194f"
41
40
  }
@@ -36,6 +36,7 @@
36
36
 
37
37
  export let leaderboardoffset:string = '0';
38
38
  export let leaderboardlimit:string = '15';
39
+ export let keepbrowsercontext:string = 'false';
39
40
  // Variables of topics for communication
40
41
  let sessionTopic;
41
42
 
@@ -360,7 +361,7 @@
360
361
  }
361
362
 
362
363
  const getDataFromCMS = () => {
363
- fetch(`${cmsendpoint}?tournamentId=${tourid}`)
364
+ fetch(`${cmsendpoint}/${tourid}`)
364
365
  .then((res: any) => res.json())
365
366
  .then((data: any) => {
366
367
  if (data && data.details) {
@@ -393,7 +394,7 @@
393
394
  $: lang && setActiveLanguage();
394
395
  $: initialParameters = tourid && endpoint && session && lang;
395
396
  $: initialParameters && initialLoad();
396
- $: tourid && cmsendpoint && getDataFromCMS();
397
+ $: cmsendpoint && tourid && getDataFromCMS();
397
398
  $: isMiniMode = (viewmode != 'desktop') && isMobile(userAgent); // forward this page from tournamentslider
398
399
  </script>
399
400
 
@@ -445,6 +446,7 @@
445
446
  fullsize={!!showleaderboard}
446
447
  {lang}
447
448
  {currency}
449
+ {keepbrowsercontext}
448
450
  exportparts="Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, Games, TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank,
449
451
  TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill,
450
452
  TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton
@@ -464,7 +466,7 @@
464
466
  </div>
465
467
 
466
468
  <div class="{showleaderboard == 'true' ? 'TournamentTableDetails ' : 'DisplayNone'}"
467
- part="{showleaderboard == 'true' ? 'TournamentTableDetails ' : 'DisplayNone'}">
469
+ part="{showleaderboard == 'true' ? 'TournamentTableDetails ' : 'DisplayNone'}">
468
470
  {#if showleaderboard == "true"}
469
471
  {#if showTable == true}
470
472
  <casino-tournaments-table
@@ -489,7 +491,7 @@
489
491
  {#if !tournamentDetails}
490
492
  <div class="Thumbnail MiniMode" part="MiniThumbnail">
491
493
  <img part="CardImg" class="CardImg {(status == 'Closing' || status == 'Closed') ? 'CardImgFinished' : ''}" src="https://i.stack.imgur.com/y9DpT.jpg"
492
- width="65px" height="40px" title="">
494
+ width="65px" height="40px" title="">
493
495
  <div class="MobileRight" part="ThumbnailRight">
494
496
  <div class="Title"> </div>
495
497
  <div>