@everymatrix/casino-tournaments-controller 1.43.4 → 1.45.0

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.
Files changed (38) hide show
  1. package/components/CasinoTournamentsController-BBv1Hyoc.js +5627 -0
  2. package/components/CasinoTournamentsController-BgoGP80M.cjs +14 -0
  3. package/components/CasinoTournamentsFilterController-BqjTkXsP.js +529 -0
  4. package/components/CasinoTournamentsFilterController-DRPLlsmH.cjs +1 -0
  5. package/components/CasinoTournamentsListController-BHZPf1Di.js +3103 -0
  6. package/components/CasinoTournamentsListController-nfyqtXdi.cjs +13 -0
  7. package/components/CasinoTournamentsThumbnail-B5svaS7p.cjs +4 -0
  8. package/components/CasinoTournamentsThumbnail-DdkzbUpk.js +865 -0
  9. package/components/CasinoTournamentsThumbnailController-BnIRoSw0.cjs +1 -0
  10. package/components/CasinoTournamentsThumbnailController-DX_9tXvb.js +1405 -0
  11. package/components/CasinoTournamentsThumbnailDuration-BZyUIEUp.cjs +1 -0
  12. package/components/CasinoTournamentsThumbnailDuration-CVtlYaVM.js +495 -0
  13. package/components/CasinoTournamentsThumbnailGamesSlider-CPUoPnwu.js +438 -0
  14. package/components/CasinoTournamentsThumbnailGamesSlider-CuGCo4r6.cjs +1 -0
  15. package/components/CasinoTournamentsThumbnailPrizes-CPmYLRmC.cjs +1 -0
  16. package/components/CasinoTournamentsThumbnailPrizes-DD7Zhrne.js +310 -0
  17. package/es2015/casino-tournaments-controller.cjs +1 -0
  18. package/es2015/casino-tournaments-controller.js +16 -0
  19. package/package.json +18 -32
  20. package/.eslintrc +0 -84
  21. package/CHANGELOG.md +0 -11
  22. package/README.md +0 -0
  23. package/dist/casino-tournaments-controller.js +0 -2
  24. package/dist/casino-tournaments-controller.js.map +0 -1
  25. package/documentation.md +0 -170
  26. package/index.html +0 -29
  27. package/index.js +0 -1
  28. package/public/favicon.png +0 -0
  29. package/public/reset.css +0 -48
  30. package/rollup.config.js +0 -67
  31. package/src/CasinoTournamentsController.svelte +0 -515
  32. package/src/i18n.js +0 -27
  33. package/src/index.ts +0 -4
  34. package/src/translations.js +0 -112
  35. package/src/util.ts +0 -2
  36. package/stories/CasinoTournamentsController.stories.js +0 -13
  37. package/svelte.config.js +0 -7
  38. package/tsconfig.json +0 -6
@@ -1,515 +0,0 @@
1
- <svelte:options tag={null} />
2
-
3
- <script lang="ts">
4
- import { onMount } from 'svelte';
5
- import { getDevice } from 'rvhelper';
6
- import { _, addNewMessages, setLocale, setupI18n } from './i18n';
7
- import { TRANSLATIONS } from './translations';
8
- import { EventSourcePolyfill } from 'event-source-polyfill';
9
-
10
- import '@everymatrix/casino-tournaments-filter-controller';
11
- import '@everymatrix/casino-tournaments-list-controller';
12
- import { isValidSession } from './util';
13
-
14
- // endpoint for NorWAy
15
- export let session:string = '';
16
- export let userid:string = '';
17
- export let endpoint:string = '';
18
- export let lang:string = 'en';
19
- export let translationurl:string = '';
20
- // number of default tournaments shown
21
- export let numberoftournaments:string = '6';
22
- // number of added elements to the list when showmore is clicked
23
- export let showmorestep:string = '2';
24
- export let filters:string = 'All';
25
- export let loginevent:string = '';
26
- export let registerevent:string = '';
27
- export let loginurl:string = '';
28
- export let registerurl:string = '';
29
- export let currency:string = 'EUR';
30
- export let keepbrowsercontext:string = 'false';
31
- export let sorttype: string = '';
32
- export let sortorder: string = ''
33
- export let starttimeafter: string = '' // start time after how many days
34
- export let showanonymoustournaments: string = 'true'
35
-
36
- export let clientstyling:string = '';
37
- export let clientstylingurl:string = '';
38
-
39
- export let delaybeforeload = 1000;//to avoid duplicate initload
40
-
41
- // Variables of topics for communication
42
- let hasErrors:boolean = false;
43
- let error:string = '';
44
- let isLoggedIn:boolean = false;
45
- let sessionID:string = '';
46
- let playerID:string = '';
47
- let userAgent:string = window.navigator.userAgent;
48
- let isLoading:boolean = true;
49
- let filtersLoaded:boolean = false;
50
- let startingTournamentUpdater:boolean = false;
51
-
52
- let customStylingContainer: HTMLElement;
53
- let displayNone:boolean = false;
54
-
55
- let filtersArray = 'All,Scheduled,Ongoing,Finished';
56
- let tournamentsNumber:number = 0;
57
-
58
- let isMounted = false;
59
- // Default state
60
- let tournamentsShownNumber:number = 6;
61
- let allTournamentsShown:boolean = true;
62
- let activeFilters:Array<string> = [];
63
-
64
- let tournamentsSearchParams:string;
65
- let tournamentsUpdateEventSource:EventSourcePolyfill;
66
- let isLoadTriggered = false
67
-
68
- setupI18n({ withLocale: 'en', translations: {}});
69
-
70
- const setTranslationUrl = ():void => {
71
- let url:string = translationurl;
72
-
73
- fetch(url).then((res:any) => res.json())
74
- .then((res) => {
75
- Object.keys(res).forEach((item:any):void => {
76
- addNewMessages(item, res[item]);
77
- });
78
- }).catch((err:any) => {
79
- console.log(err);
80
- });
81
- }
82
-
83
-
84
- Object.keys(TRANSLATIONS).forEach((item:any) => {
85
- addNewMessages(item, TRANSLATIONS[item]);
86
- });
87
-
88
- const messageHandler = (e:any) => {
89
- if (e.data && e.data.type === 'UserSessionID') {
90
- isLoggedIn = true;
91
- sessionID = e.data.session;
92
- playerID = e.data.userid;
93
-
94
- getData(endpoint, 0, tournamentsShownNumber);
95
- }
96
-
97
- if (e.data && e.data.type === 'TournamentsFiltersSelected') {
98
- activeFilters = e.data.filters;
99
-
100
- getData(endpoint, 0, tournamentsShownNumber);
101
- }
102
- }
103
-
104
- const matchStatus = (status:string) => {
105
- if (status == 'Scheduled') {
106
- return 'Unstarted';
107
- }
108
-
109
- if (status == 'Ongoing') {
110
- return 'Running';
111
- }
112
-
113
- return 'Closing|Closed';
114
- }
115
-
116
- const getData = async (url:string, offset:number, limit:number) => {
117
- isLoading = true;
118
- tournamentsNumber = 0;
119
-
120
- const res = await fetcher(url, offset, limit)
121
-
122
- setTimeout(() => {
123
- window.postMessage({ type: 'TournamentList', tournamentList: res.items }, window.location.href);
124
- }, 50)
125
-
126
- isLoading = false;
127
- }
128
-
129
- const getDataWithoutfresh = async (url:string, offset:number, limit:number) => {
130
- const res = await fetcher(url, offset, limit)
131
-
132
- window.postMessage({ type: 'TournamentListShowMore', tournamentList: res.items }, window.location.href);
133
- }
134
-
135
- const getStartTimeAfter = () => {
136
-
137
- const dateStartTimeAfter = new Date();
138
-
139
- if(starttimeafter){
140
- dateStartTimeAfter.setDate(
141
- dateStartTimeAfter.getDate() - Number(starttimeafter)
142
- );
143
- }else{
144
- dateStartTimeAfter.setMonth(
145
- dateStartTimeAfter.getMonth() - 1
146
- );
147
- }
148
-
149
- return dateStartTimeAfter.toISOString().substring(0, 10);
150
- }
151
-
152
- const fetcher = async (url:string, offset:number, limit:number) => {
153
-
154
- let tournamentsUrl:URL = new URL(`${url}/v1/tournaments`);
155
- let reqHeaders:Headers = new Headers();
156
-
157
- tournamentsUrl.searchParams.append('pagination', `offset=${offset},limit=${limit}`);
158
- tournamentsUrl.searchParams.append('sortField', 'StartTime');
159
- tournamentsUrl.searchParams.append('sortOrder', sortorder || 'desc');
160
- tournamentsUrl.searchParams.append('language', lang);
161
-
162
- const filterOptions: any = {
163
- StartTimeAfter: getStartTimeAfter(),
164
- }
165
-
166
- if(!isValidSession(session) && showanonymoustournaments === 'false'){
167
- filterOptions.tags = 'no-role-set'
168
- }
169
-
170
- if (activeFilters.length > 0 && activeFilters[0] != 'All') {
171
- filterOptions.state = activeFilters.map((item:any) => matchStatus(item)).join("|")
172
- }
173
-
174
- const filter = Object.keys(filterOptions).map(k => `${k}=${filterOptions[k]}`).join(',')
175
- tournamentsUrl.searchParams.append('filter', filter);
176
-
177
- tournamentsUrl.searchParams.append('platform', getDevice(userAgent));
178
-
179
- if(sorttype){
180
- tournamentsUrl.searchParams.append('sortType', sorttype);
181
- }
182
-
183
- if (isLoggedIn) {
184
- reqHeaders.append("X-SessionID", sessionID);
185
- }
186
-
187
- let requestOptions: RequestInit = {
188
- method: 'GET',
189
- headers: reqHeaders,
190
- cache: 'no-cache'
191
- };
192
-
193
- return fetch(tournamentsUrl, requestOptions)
194
- .then((res:any) => res.json())
195
- .then((res:any) => {
196
- tournamentsSearchParams = tournamentsUrl.searchParams.toString();
197
-
198
- tournamentsNumber = res.total;
199
-
200
- if (tournamentsShownNumber >= tournamentsNumber) {
201
- allTournamentsShown = true;
202
- } else {
203
- allTournamentsShown = false;
204
- }
205
- if(!startingTournamentUpdater){
206
- startupTouramentDataChangeListener();
207
- }
208
- return res
209
- });
210
- }
211
- const tournamentsUpdateMessageHandler = (message: any)=>{
212
- if(message.type != 'message'){
213
- return;
214
- }
215
- let messageData = message.data;
216
- if(messageData){
217
- try{
218
- let updateTourData = JSON.parse(messageData);
219
- if(!updateTourData || !updateTourData.item){
220
- return;
221
- }
222
- let updateInfo = updateTourData.item;
223
- if(updateTourData.messageType == "TournamentUpdate"){
224
- window.postMessage({type: 'UpdateTournamentView', tournamentData: updateInfo}, window.location.href);
225
- }
226
-
227
- if(updateTourData.messageType == 'TournamentRemove'){
228
- //remove tournament from TournamentList by id
229
- window.postMessage({ type: 'TournamentList', tournamentList: updateTourData.items }, window.location.href);
230
- }
231
- }catch(err){
232
- console.error(err);
233
- }
234
- }
235
- }
236
- const startupTouramentDataChangeListener = ()=>{
237
- startingTournamentUpdater = true;
238
- setTimeout(()=>{
239
- startingTournamentUpdater = false;//to make sure only one eventsource work at the same time when query parameter changed
240
- }, 1000)
241
- if(tournamentsUpdateEventSource){
242
- tournamentsUpdateEventSource.removeEventListener('message', tournamentsUpdateMessageHandler);
243
- tournamentsUpdateEventSource.close();
244
- }
245
- let endpointURL: string = `${endpoint}/v1/tournaments/updates?${tournamentsSearchParams}`;
246
- tournamentsUpdateEventSource = new EventSourcePolyfill(endpointURL, {headers: {'accept': 'text/event-stream','X-SessionId': session}});
247
- if(typeof(tournamentsUpdateEventSource) != "undefined"){
248
- tournamentsUpdateEventSource.addEventListener('message', tournamentsUpdateMessageHandler);
249
- }
250
- }
251
-
252
- const showMoreAction = async () => {
253
- let previousNumber = tournamentsShownNumber
254
-
255
- const _showmorestep = parseInt(showmorestep, 10);
256
- tournamentsShownNumber += _showmorestep
257
-
258
- window.postMessage({ type: 'TournamentsPagination', offset: 0, limit: tournamentsShownNumber }, window.location.href);
259
-
260
- await getDataWithoutfresh(endpoint, previousNumber, _showmorestep)
261
-
262
- if (tournamentsShownNumber >= tournamentsNumber) {
263
- allTournamentsShown = true;
264
- }
265
- }
266
-
267
- const checkAttrs = () => {
268
- if (!endpoint) {
269
- error = "Endpoint is missing! Please provide a valid endpointURL.";
270
- hasErrors = true;
271
-
272
- console.error(error);
273
- }
274
-
275
- if (!lang || lang.length != 2) {
276
- error = "Language is missing! Please provide a valid language (alpha2code)";
277
- hasErrors = true;
278
-
279
- console.error(error);
280
- }
281
-
282
- return hasErrors;
283
- }
284
-
285
- const initialLoad = () => {
286
- if(!isMounted) return false;
287
- if (!checkAttrs()) {
288
- tournamentsShownNumber = parseInt(numberoftournaments, 10);
289
-
290
- setLocale(lang);
291
-
292
- getData(endpoint, 0, tournamentsShownNumber);
293
- }
294
- }
295
-
296
- const setActiveLanguage = ():void => {
297
- setLocale(lang);
298
- }
299
-
300
- const setActiveFilters = () => {
301
- activeFilters = filters.split(',');
302
- filtersLoaded = true;
303
- }
304
-
305
- const setSession = () => {
306
- if (isValidSession(session)) {
307
- isLoggedIn = true;
308
- sessionID = session;
309
- } else {
310
- isLoggedIn = false;
311
- sessionID = ''
312
- }
313
- }
314
-
315
- // ensure multiple props (from session and others) change just trigger initialLoad only once
316
- const shouldLoad = async () => {
317
- if(!isLoadTriggered){
318
- isLoadTriggered = true
319
- await initialLoad()
320
- isLoadTriggered = false
321
- }
322
- }
323
-
324
- const setPlayerID = () => {
325
- playerID = userid;
326
- }
327
-
328
- const setClientStyling = ():void => {
329
- let sheet = document.createElement('style');
330
- sheet.innerHTML = clientstyling;
331
- customStylingContainer.appendChild(sheet);
332
- }
333
-
334
- const setClientStylingURL = ():void => {
335
- displayNone = true;
336
-
337
- let url:URL = new URL(clientstylingurl);
338
- let cssFile:HTMLElement = document.createElement('style');
339
-
340
- fetch(url.href)
341
- .then((res:any) => res.text())
342
- .then((data:any) => {
343
- cssFile.innerHTML = data
344
-
345
- setTimeout(() => { customStylingContainer.appendChild(cssFile) }, 1);
346
- setTimeout(() => { displayNone = false; }, 500);
347
- });
348
- }
349
-
350
- onMount(() => {
351
- setTimeout(()=>{
352
- isMounted = true;
353
- }, delaybeforeload);
354
- window.addEventListener('message', messageHandler, false);
355
- return () => {
356
- window.removeEventListener('message', messageHandler);
357
- if(tournamentsUpdateEventSource){
358
- tournamentsUpdateEventSource.removeEventListener('message', tournamentsUpdateMessageHandler);
359
- tournamentsUpdateEventSource.close();
360
- }
361
- }
362
- });
363
-
364
- $: customStylingContainer && clientstyling && setClientStyling();
365
- $: customStylingContainer && clientstylingurl && setClientStylingURL();
366
- $: userid && setPlayerID();
367
- $: filters && setActiveFilters();
368
- $: lang && setActiveLanguage();
369
- $: translationurl && setTranslationUrl();
370
- $: isMounted && initialLoad();
371
-
372
- $: if(session === '' || session) setSession()
373
- $: if(sessionID === '' || sessionID) shouldLoad()
374
- $: if(endpoint && numberoftournaments && showmorestep && lang && showanonymoustournaments) shouldLoad()
375
- </script>
376
-
377
- <div bind:this={customStylingContainer}>
378
- {#if hasErrors}
379
- <p>{$_('tournamentsController.500')}</p>
380
- <p>{error}</p>
381
- {:else}
382
- <div class="TournamentsWrapper" part="TournamentsWrapper">
383
- <div class="Tournaments" part="Tournaments">
384
- <div class="FirstRow" part="FirstRow">
385
- {#if filtersLoaded}
386
- <casino-tournaments-filter-controller
387
- {clientstyling}
388
- {clientstylingurl}
389
- filters={filtersArray}
390
- activefilters={filters}
391
- exportparts="FiltersController, MobileClass, Non-MobileClass/empty, Active, FilterButton, bi, bi-check, FiltersList, FiltersTitle, FiltersItem"
392
- ></casino-tournaments-filter-controller>
393
- {/if}
394
- </div>
395
- <div class="SecondRow" part="SecondRow">
396
- {#if tournamentsNumber == 0}
397
- {#if isLoading}
398
- <p class="LoadingMessage" part="LoadingMessage">{$_('tournamentsController.loading')}</p>
399
- {:else}
400
- <p class="NoTournaments" part="NoTournaments">{$_('tournamentsController.noTournaments')}</p>
401
- {/if}
402
- {:else}
403
- <casino-tournaments-list-controller
404
- {clientstyling}
405
- {clientstylingurl}
406
- userid={userid}
407
- numberoftournaments={numberoftournaments}
408
- loginurl={loginurl}
409
- loginevent={loginevent}
410
- registerurl={registerurl}
411
- registerevent={registerevent}
412
- {lang}
413
- {currency}
414
- {keepbrowsercontext}
415
- session={session}
416
- endpoint={endpoint}
417
- exportparts="Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank,
418
- TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill,
419
- TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton
420
- TournamentCard, CardMaxWidth, CardFullSize, elementToFadeOut, elementToFadeIn, ph-item, ph-col-12, ph-picture, ph-row, ph-col-6, big, ph-col-4, empty, ph-col-8, TournamentButtons, LoginButton, RegisterButton, DetailsButton, EnrolledButton, JoinButton, JoinButtonSpan, JoinButtonSvg, JoinButtonSvgA, JoinButtonFullSize, spinner, DetailsLargeButton, ErrorText, TournamentList, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing, TournamentPrizesIconSection, TournamentPrizesIconWrapper"
421
- ></casino-tournaments-list-controller>
422
- {/if}
423
- </div>
424
- {#if !allTournamentsShown}
425
- <div class="ThirdRow" part="ThirdRow">
426
- <div class="CenterButton" part="CenterButton">
427
- <button class="ShowMoreButton" part="ShowMoreButton" on:click="{() => showMoreAction()}" title="Show More">{$_('tournamentsController.showMore')}</button>
428
- </div>
429
- </div>
430
- {/if}
431
- </div>
432
- </div>
433
- {/if}
434
- </div>
435
-
436
- <style lang="scss">
437
- $primary-background-color: var(--emfe-w-color-contrast, #07072A);
438
- $font-stack: "Helvetica Neue", "Helvetica", sans-serif;
439
- $primary-font-color: var(--emfe-w-color-white, #FFFFFF);
440
- $primary-font-size: 1rem;
441
-
442
-
443
-
444
- *,
445
- *::before,
446
- *::after {
447
- margin: 0;
448
- padding: 0;
449
- list-style: none;
450
- text-decoration: none;
451
- outline: none;
452
- box-sizing: border-box;
453
- }
454
-
455
- .ShowMoreButton {
456
- background: var(--emfe-w-color-contrast, #07072A);
457
- font-size: 18px;
458
- width: 280px;
459
- height: 60px;
460
- text-align: center;
461
- color: var(--emfe-w-color-green, #48952a);
462
- border: solid var(--emfe-w-color-green, #48952a) 1px;
463
- text-transform: uppercase;
464
- margin-bottom: 20px;
465
- cursor: pointer;
466
- }
467
-
468
- .ShowMoreButton:hover {
469
- opacity: 0.7;
470
- }
471
-
472
- .TournamentsWrapper {
473
- min-height: 100vh;
474
- background: $primary-background-color;
475
- overflow-x: hidden;
476
- }
477
-
478
- .Tournaments {
479
- color: $primary-font-color;
480
- display: flex;
481
- flex-direction: column;
482
- position: relative;
483
- margin: 0 auto;
484
- max-width: 1300px;
485
- padding: 24px 0;
486
-
487
- @media screen and (max-width: 1300px) {
488
- padding: 24px 2.4%;
489
- }
490
-
491
- .FirstRow {
492
- width: 100%;
493
- margin: 0 auto;
494
- }
495
-
496
- .SecondRow {
497
- margin: 0 auto;
498
- width: 100%;
499
- }
500
-
501
- .ThirdRow {
502
- display: flex;
503
- flex-direction: column;
504
- justify-content: center;
505
-
506
- .CenterButton {
507
- padding-top: 20px;
508
- width: 100%;
509
- display: flex;
510
- justify-content: center;
511
- }
512
- }
513
- }
514
-
515
- </style>
package/src/i18n.js DELETED
@@ -1,27 +0,0 @@
1
- import {
2
- dictionary,
3
- locale,
4
- addMessages,
5
- _
6
- } from 'svelte-i18n';
7
-
8
- function setupI18n({ withLocale: _locale, translations }) {
9
- locale.subscribe((data) => {
10
- if (data == null) {
11
- dictionary.set(translations);
12
- locale.set(_locale);
13
- }
14
- }); // maybe we will need this to make sure that the i18n is set up only once
15
- /*dictionary.set(translations);
16
- locale.set(_locale);*/
17
- }
18
-
19
- function addNewMessages(lang, dict) {
20
- addMessages(lang, dict);
21
- }
22
-
23
- function setLocale(_locale) {
24
- locale.set(_locale);
25
- }
26
-
27
- export { _, setupI18n, addNewMessages, setLocale };
package/src/index.ts DELETED
@@ -1,4 +0,0 @@
1
- import CasinoTournamentsController from './CasinoTournamentsController.svelte';
2
-
3
- !customElements.get('casino-tournaments-controller') && customElements.define('casino-tournaments-controller', CasinoTournamentsController);
4
- export default CasinoTournamentsController;
@@ -1,112 +0,0 @@
1
- export const TRANSLATIONS = {
2
- "en": {
3
- "tournamentsController": {
4
- "500": "500 - Internal server error",
5
- "showMore": "Show more",
6
- "Scheduled": "Scheduled",
7
- "Ongoing": "Ongoing",
8
- "Finished": "Finished",
9
- "loading": "Loading, please wait ...",
10
- "noTournaments": "No tournaments found"
11
- }
12
- },
13
- "hr": {
14
- "tournamentsController": {
15
- "500": "500 - Interna pogreška poslužitelja",
16
- "showMore": "Prikaži više",
17
- "Scheduled": "Planirano",
18
- "Ongoing": "U tijeku",
19
- "Finished": "Završeno",
20
- "loading": "Učitavanje, molimo pričekajte ...",
21
- "noTournaments": "Nema pronađenih turnira"
22
- }
23
- },
24
- "zh-hk": {
25
- "tournamentsController": {
26
- "500": "500內部服務器錯誤",
27
- "showMore": "顯示更多",
28
- "Scheduled": "預定的",
29
- "Ongoing": "進行中",
30
- "Finished": "完成的",
31
- "loading": "加載請稍候 ...",
32
- "noTournaments": "沒有找到比賽"
33
- }
34
- },
35
- "fr": {
36
- "tournamentsController": {
37
- "500": "500 - erreur de serveur interne",
38
- "showMore": "Afficher plus",
39
- "Scheduled": "Programmé",
40
- "Ongoing": "En cours",
41
- "Finished": "Fini",
42
- "loading": "Chargement , veuillez patienter ...",
43
- "noTournaments": "Aucun tournoi trouvé"
44
- }
45
- },
46
- "ro": {
47
- "tournamentsController": {
48
- "500": "500 - Internal server error",
49
- "showMore": "Mai mult",
50
- "Scheduled": "Programate",
51
- "Ongoing": "În curs",
52
- "Finished": "Finalizat",
53
- "loading": "Se încarcă, asteptati ...",
54
- "noTournaments": "Niciun turneu gasit"
55
- }
56
- },
57
- "tr": {
58
- "tournamentsController": {
59
- "500": "500 - Dahili sunucu hatası",
60
- "showMore": "Daha fazla göster",
61
- "Scheduled": "Planlanmış",
62
- "Ongoing": "Devam ediyor",
63
- "Finished": "Tamamlanmış",
64
- "loading": "Yükleniyor, lütfen bekleyin ...",
65
- "noTournaments": "Turnuva bulunamadı"
66
- }
67
- },
68
- "el": {
69
- "tournamentsController": {
70
- "500": "500 - Σφάλμα Διακομιστή",
71
- "showMore": "Περισσότερα",
72
- "Scheduled": "Προγραμματισμένα",
73
- "Ongoing": "Τρέχοντα",
74
- "Finished": "Ολοκληρωμένα",
75
- "loading": "Φορτώνει, παρακαλούμε περιμένετε ...",
76
- "noTournaments": "Δεν βρέθηκαν τουρνουά"
77
- }
78
- },
79
- "es": {
80
- "tournamentsController": {
81
- "500": "500 - Error servidor interno",
82
- "showMore": "Mostrar más",
83
- "Scheduled": "Programado",
84
- "Ongoing": "En vivo",
85
- "Finished": "Finalizado",
86
- "loading": "Cargando …",
87
- "noTournaments": "No se encontraron Torneos"
88
- }
89
- },
90
- "hu": {
91
- "tournamentsController": {
92
- "500": "500 - Belső szerver hiba",
93
- "showMore": "Mutass többet",
94
- "Scheduled": "Ütemezés",
95
- "Ongoing": "Folyamatban",
96
- "Finished": "Befejezett",
97
- "loading": "Betöltés, kérjük várjon...",
98
- "noTournaments": "Verseny nem található"
99
- }
100
- },
101
- "pt": {
102
- "tournamentsController": {
103
- "500": "Erro 500 - Erro interno do servidor",
104
- "showMore": "Ver mais",
105
- "Scheduled": "Agendado",
106
- "Ongoing": "Em progresso",
107
- "Finished": "Finalizado",
108
- "loading": "Carregando, por favor espere ...",
109
- "noTournaments": "Nenhum torneio encontrado"
110
- }
111
- }
112
- }
package/src/util.ts DELETED
@@ -1,2 +0,0 @@
1
-
2
- export const isValidSession = (session: string) => session.length > 0 && session != 'false'
@@ -1,13 +0,0 @@
1
- import { html } from 'lit-element';
2
-
3
- import CasinoTournamentsController from '../src/CasinoTournamentsController';
4
-
5
- // This default export determines where your story goes in the story list
6
- export default {
7
- title: 'CasinoTournamentsController',
8
- };
9
-
10
- // 👇 We create a “template” of how args map to rendering
11
- const CasinoTournamentsController = ({ aProperty }) => html`<casino-tournaments-controller></casino-tournaments-controller>`;
12
-
13
- export const FirstStory = CasinoTournamentsController.bind({});
package/svelte.config.js DELETED
@@ -1,7 +0,0 @@
1
- module.exports = {
2
- svelte: {
3
- "language-server": {
4
- runtime: `sass`
5
- }
6
- }
7
- }
package/tsconfig.json DELETED
@@ -1,6 +0,0 @@
1
- {
2
- "extends": "@tsconfig/svelte/tsconfig.json",
3
-
4
- "include": ["src/**/*"],
5
- "exclude": ["node_modules/*", "__sapper__/*", "public/*"]
6
- }