@everymatrix/casino-tournaments-controller 1.0.16 → 1.0.70

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