@everymatrix/casino-tournaments-controller 0.0.162 → 0.0.163
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.
|
|
3
|
+
"version": "0.0.163",
|
|
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.
|
|
33
|
-
"@everymatrix/casino-tournaments-filter-controller": "^0.0.
|
|
34
|
-
"@everymatrix/casino-tournaments-list-controller": "^0.0.
|
|
35
|
-
"@everymatrix/casino-tournaments-page-controller": "^0.0.
|
|
36
|
-
"@everymatrix/casino-tournaments-thumbnail-controller": "^0.0.
|
|
32
|
+
"@everymatrix/casino-tournaments-details": "^0.0.163",
|
|
33
|
+
"@everymatrix/casino-tournaments-filter-controller": "^0.0.163",
|
|
34
|
+
"@everymatrix/casino-tournaments-list-controller": "^0.0.163",
|
|
35
|
+
"@everymatrix/casino-tournaments-page-controller": "^0.0.163",
|
|
36
|
+
"@everymatrix/casino-tournaments-thumbnail-controller": "^0.0.163",
|
|
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": "
|
|
44
|
+
"gitHead": "0987227fd54b268a6dedfb7687bc94ba10d87ea7"
|
|
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="
|
|
221
|
-
<div class="
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
{#if
|
|
232
|
-
|
|
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>Loading, please wait ...</p>
|
|
235
|
+
{:else}
|
|
236
|
+
<p>No tournaments found</p>
|
|
237
|
+
{/if}
|
|
233
238
|
{:else}
|
|
234
|
-
<
|
|
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
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
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
|
-
.
|
|
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%;
|