@everymatrix/casino-tournaments-controller 0.0.162 → 0.0.166

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
@@ -18,7 +18,7 @@
18
18
  </style>
19
19
 
20
20
  <div class="webcomponent">
21
- <casino-tournaments-controller session="3a621d62-1a5e-40fb-89d1-36f1cd0af643" userid="3657535" loginevent="OpenRegisterLoginModal" showleaderboard="true" endpoint="https://demo-api.stage.norway.everymatrix.com/v1" cmsendpoint="https://casinouat.pamestoixima.gr/apijson/en/tournaments/906333318049055456" numberoftournaments="4" showmorestep="3" lang="en" filters="All,Scheduled,Ongoing,Finished"></casino-tournaments-controller>
21
+ <casino-tournaments-controller session="3a621d62-1a5e-40fb-89d1-36f1cd0af643" userid="3657535" loginevent="OpenRegisterLoginModal" showleaderboard="true" endpoint="https://demo-api.stage.norway.everymatrix.com/v1" cmsendpoint="https://casinouat.pamestoixima.gr/apijson/en/tournaments/906333318049055456" numberoftournaments="4" showmorestep="3" lang="en" filters="All,Scheduled,Ongoing,Finished" containermaxwidth="1300"></casino-tournaments-controller>
22
22
  <!--<casino-tournaments-controller loginevent="OpenRegisterLoginModal" showleaderboard="true" endpoint="https://demo-api.stage.norway.everymatrix.com/v1" cmsendpoint="https://wp-one-widgets.everymatrix.com/wp-json/wpone-rest/v1/tournaments" numberoftournaments="10" showmorestep="3" lang="en" filters="All,Scheduled,Ongoing,Finished"></casino-tournaments-controller>-->
23
23
  </div>
24
24
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-tournaments-controller",
3
- "version": "0.0.162",
3
+ "version": "0.0.166",
4
4
  "main": "dist/casino-tournaments-controller.js",
5
5
  "svelte": "src/index.ts",
6
6
  "scripts": {
@@ -29,11 +29,11 @@
29
29
  "typescript": "^3.9.3"
30
30
  },
31
31
  "dependencies": {
32
- "@everymatrix/casino-tournaments-details": "^0.0.162",
33
- "@everymatrix/casino-tournaments-filter-controller": "^0.0.162",
34
- "@everymatrix/casino-tournaments-list-controller": "^0.0.162",
35
- "@everymatrix/casino-tournaments-page-controller": "^0.0.162",
36
- "@everymatrix/casino-tournaments-thumbnail-controller": "^0.0.162",
32
+ "@everymatrix/casino-tournaments-details": "^0.0.166",
33
+ "@everymatrix/casino-tournaments-filter-controller": "^0.0.166",
34
+ "@everymatrix/casino-tournaments-list-controller": "^0.0.166",
35
+ "@everymatrix/casino-tournaments-page-controller": "^0.0.166",
36
+ "@everymatrix/casino-tournaments-thumbnail-controller": "^0.0.166",
37
37
  "cross-env": "^7.0.3",
38
38
  "sirv-cli": "^1.0.0",
39
39
  "svelte": "^3.0.0"
@@ -41,5 +41,5 @@
41
41
  "publishConfig": {
42
42
  "access": "public"
43
43
  },
44
- "gitHead": "f0ae2ffa2c984a3f90ab2eea42992f92e6acf725"
44
+ "gitHead": "cc5cea8f5d4ed68bf0b052d98cc82ce69e97fc45"
45
45
  }
@@ -25,6 +25,7 @@
25
25
  export let loginurl:string = '';
26
26
  export let registerurl:string = '';
27
27
  export let currency:string = 'EUR';
28
+ export let containermaxwidth:string = '';
28
29
 
29
30
  const sortByStatus:string = '""|type1';
30
31
  // Variables of topics for communication
@@ -217,44 +218,46 @@
217
218
  <p>{$_('tournamentsController.500')}</p>
218
219
  <p>{error}</p>
219
220
  {:else}
220
- <div class="Tournaments">
221
- <div class="FirstRow">
222
- {#if filtersLoaded}
223
- <casino-tournaments-filter-controller
224
- filters={filtersArray}
225
- activefilters={filters}
226
- ></casino-tournaments-filter-controller>
227
- {/if}
228
- </div>
229
- <div class="SecondRow">
230
- {#if tournamentsNumber == 0}
231
- {#if isLoading}
232
- <p>Loading, please wait ...</p>
221
+ <div class="TournamentsWrapper">
222
+ <div class="Tournaments" style="max-width: {containermaxwidth}px;">
223
+ <div class="FirstRow">
224
+ {#if filtersLoaded}
225
+ <casino-tournaments-filter-controller
226
+ filters={filtersArray}
227
+ activefilters={filters}
228
+ ></casino-tournaments-filter-controller>
229
+ {/if}
230
+ </div>
231
+ <div class="SecondRow">
232
+ {#if tournamentsNumber == 0}
233
+ {#if isLoading}
234
+ <p>{$_('tournamentsController.loading')}</p>
235
+ {:else}
236
+ <p>No tournaments found</p>
237
+ {/if}
233
238
  {:else}
234
- <p>No tournaments found</p>
239
+ <casino-tournaments-list-controller
240
+ session={session}
241
+ userid={userid}
242
+ numberoftournaments={numberoftournaments}
243
+ endpoint={endpoint}
244
+ loginurl={loginurl}
245
+ loginevent={loginevent}
246
+ registerurl={registerurl}
247
+ registerevent={registerevent}
248
+ {lang}
249
+ {currency}
250
+ ></casino-tournaments-list-controller>
235
251
  {/if}
236
- {:else}
237
- <casino-tournaments-list-controller
238
- session={session}
239
- userid={userid}
240
- numberoftournaments={numberoftournaments}
241
- endpoint={endpoint}
242
- loginurl={loginurl}
243
- loginevent={loginevent}
244
- registerurl={registerurl}
245
- registerevent={registerevent}
246
- {lang}
247
- {currency}
248
- ></casino-tournaments-list-controller>
252
+ </div>
253
+ {#if !allTournamentsShown}
254
+ <div class="ThirdRow">
255
+ <div class="CenterButton">
256
+ <button class="ShowMoreButton" on:click="{() => showMoreAction()}" title="Show More">{$_('tournamentsController.showMore')}</button>
257
+ </div>
258
+ </div>
249
259
  {/if}
250
260
  </div>
251
- {#if !allTournamentsShown}
252
- <div class="ThirdRow">
253
- <div class="CenterButton">
254
- <button class="ShowMoreButton" on:click="{() => showMoreAction()}" title="Show More">{$_('tournamentsController.showMore')}</button>
255
- </div>
256
- </div>
257
- {/if}
258
261
  </div>
259
262
  {/if}
260
263
 
@@ -301,12 +304,17 @@
301
304
  opacity: 0.7;
302
305
  }
303
306
 
304
- .Tournaments {
307
+ .TournamentsWrapper {
305
308
  background: $primary-background-color;
309
+ }
310
+
311
+ .Tournaments {
306
312
  color: $primary-font-color;
307
313
  display: flex;
308
314
  flex-direction: column;
309
315
  position: relative;
316
+ margin: 0 auto;
317
+ padding: 0 10px;
310
318
 
311
319
  .FirstRow {
312
320
  width: 100%;
@@ -5,7 +5,9 @@ export const TournamentsControllerTranslations = {
5
5
  showMore: 'Show more',
6
6
  Scheduled: 'Scheduled',
7
7
  Ongoing: 'OnGoing',
8
- Finished: 'Finished'
8
+ Finished: 'Finished',
9
+ loading: 'Loading, please wait ...',
10
+ noTournaments: 'No tournaments found'
9
11
  }
10
12
  },
11
13
  tr: {
@@ -14,7 +16,9 @@ export const TournamentsControllerTranslations = {
14
16
  showMore: 'Daha fazla',
15
17
  Scheduled: 'Scheduledddddd',
16
18
  Ongoing: 'OnGoingggggg',
17
- Finished: 'Finisheddddddd'
19
+ Finished: 'Finisheddddddd',
20
+ loading: 'Yükelniyor, lütfen bekleyin ...',
21
+ noTournaments: 'Herhangi bir turnuva bulunamadı.'
18
22
  }
19
23
  },
20
24
  el: {
@@ -23,7 +27,9 @@ export const TournamentsControllerTranslations = {
23
27
  showMore: 'Περισσότερα',
24
28
  Scheduled: 'ΠΡΟΓΡΑΜΜΑΤΙΣΜΕΝΑ',
25
29
  Ongoing: 'ΤΡΕΧΟΝΤΑ',
26
- Finished: 'ΟΛΟΚΛΗΡΩΜΕΝΑ'
30
+ Finished: 'ΟΛΟΚΛΗΡΩΜΕΝΑ',
31
+ loading: 'Φορτώνει, παρακαλούμε περιμένετε ...',
32
+ noTournaments: 'Δεν βρέθηκαν τουρνουά'
27
33
  }
28
34
  },
29
35
  };