@everymatrix/casino-tournament-list 1.0.69

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 (44) hide show
  1. package/dist/casino-tournament-list/casino-tournament-list.esm.js +1 -0
  2. package/dist/casino-tournament-list/index.esm.js +0 -0
  3. package/dist/casino-tournament-list/p-31a032bc.js +2 -0
  4. package/dist/casino-tournament-list/p-e1255160.js +1 -0
  5. package/dist/casino-tournament-list/p-e4421de0.entry.js +15 -0
  6. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  7. package/dist/cjs/casino-tournament-banner_6.cjs.entry.js +9174 -0
  8. package/dist/cjs/casino-tournament-list.cjs.js +25 -0
  9. package/dist/cjs/index-c8b392e1.js +1336 -0
  10. package/dist/cjs/index.cjs.js +2 -0
  11. package/dist/cjs/loader.cjs.js +15 -0
  12. package/dist/collection/collection-manifest.json +43 -0
  13. package/dist/collection/components/casino-tournament-list/casino-tournament-list.css +97 -0
  14. package/dist/collection/components/casino-tournament-list/casino-tournament-list.js +598 -0
  15. package/dist/collection/components/casino-tournament-list/index.js +1 -0
  16. package/dist/collection/index.js +1 -0
  17. package/dist/collection/utils/locale.utils.js +118 -0
  18. package/dist/collection/utils/utils.js +20 -0
  19. package/dist/esm/app-globals-0f993ce5.js +3 -0
  20. package/dist/esm/casino-tournament-banner_6.entry.js +9165 -0
  21. package/dist/esm/casino-tournament-list.js +20 -0
  22. package/dist/esm/index-8523ee68.js +1308 -0
  23. package/dist/esm/index.js +1 -0
  24. package/dist/esm/loader.js +11 -0
  25. package/dist/index.cjs.js +1 -0
  26. package/dist/index.js +1 -0
  27. package/dist/stencil.config.dev.js +17 -0
  28. package/dist/stencil.config.js +17 -0
  29. package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/casino-tournament-list/.stencil/packages/stencil/casino-tournament-list/stencil.config.d.ts +2 -0
  30. package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/casino-tournament-list/.stencil/packages/stencil/casino-tournament-list/stencil.config.dev.d.ts +2 -0
  31. package/dist/types/components/casino-tournament-list/casino-tournament-list.d.ts +108 -0
  32. package/dist/types/components/casino-tournament-list/index.d.ts +1 -0
  33. package/dist/types/components.d.ts +189 -0
  34. package/dist/types/index.d.ts +1 -0
  35. package/dist/types/stencil-public-runtime.d.ts +1674 -0
  36. package/dist/types/utils/locale.utils.d.ts +2 -0
  37. package/dist/types/utils/utils.d.ts +2 -0
  38. package/loader/cdn.js +1 -0
  39. package/loader/index.cjs.js +1 -0
  40. package/loader/index.d.ts +24 -0
  41. package/loader/index.es2017.js +1 -0
  42. package/loader/index.js +2 -0
  43. package/loader/package.json +11 -0
  44. package/package.json +30 -0
@@ -0,0 +1,118 @@
1
+ const DEFAULT_LANGUAGE = 'en';
2
+ const TRANSLATIONS = {
3
+ en: {
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
+ All: 'All',
12
+ Upcoming: 'Upcoming',
13
+ Expired: 'Expired'
14
+ },
15
+ 'zh-hk': {
16
+ 500: '500內部服務器錯誤',
17
+ showMore: '顯示更多',
18
+ Scheduled: '預定的',
19
+ Ongoing: '進行中',
20
+ Finished: '完成的',
21
+ loading: '加載請稍候 ...',
22
+ noTournaments: '沒有找到比賽'
23
+ },
24
+ fr: {
25
+ 500: '500 - erreur de serveur interne',
26
+ showMore: 'Afficher plus',
27
+ Scheduled: 'Programmé',
28
+ Ongoing: 'En cours',
29
+ Finished: 'Fini',
30
+ loading: 'Chargement , veuillez patienter ...',
31
+ noTournaments: 'Aucun tournoi trouvé'
32
+ },
33
+ ro: {
34
+ 500: '500 - Internal server error',
35
+ showMore: 'Mai mult',
36
+ Scheduled: 'Programate',
37
+ Ongoing: 'În curs',
38
+ Finished: 'Finalizat',
39
+ loading: 'Se încarcă, asteptati ...',
40
+ noTournaments: 'Niciun turneu gasit'
41
+ },
42
+ tr: {
43
+ 500: '500 - Dahili sunucu hatası',
44
+ showMore: 'Daha fazla',
45
+ Scheduled: 'Planlanmış',
46
+ Ongoing: 'Devam Eden',
47
+ Finished: 'Sona Ermiş',
48
+ loading: 'Yükleniyor, lütfen bekleyin ...',
49
+ noTournaments: 'Herhangi bir turnuva bulunamadı.'
50
+ },
51
+ el: {
52
+ 500: '500 - Σφάλμα Διακομιστή',
53
+ showMore: 'Περισσότερα',
54
+ Scheduled: 'Προγραμματισμένα',
55
+ Ongoing: 'Τρέχοντα',
56
+ Finished: 'Ολοκληρωμένα',
57
+ loading: 'Φορτώνει, παρακαλούμε περιμένετε ...',
58
+ noTournaments: 'Δεν βρέθηκαν τουρνουά'
59
+ },
60
+ es: {
61
+ 500: '500 - Error servidor interno',
62
+ showMore: 'Mostrar más',
63
+ Scheduled: 'Programado',
64
+ Ongoing: 'En vivo',
65
+ Finished: 'Finalizado',
66
+ loading: 'Cargando …',
67
+ noTournaments: 'No se encontraron Torneos',
68
+ },
69
+ hu: {
70
+ 500: '500 - Belső szerver hiba',
71
+ showMore: 'Mutass többet',
72
+ Scheduled: 'Ütemezés',
73
+ Ongoing: 'Folyamatban',
74
+ Finished: 'Befejezett',
75
+ loading: 'Betöltés, kérjük várjon...',
76
+ noTournaments: 'Verseny nem található',
77
+ },
78
+ pt: {
79
+ 500: 'Erro 500 - Erro interno do servidor',
80
+ showMore: 'Ver mais',
81
+ Scheduled: 'Agendado',
82
+ Ongoing: 'Em progresso',
83
+ Finished: 'Finalizado',
84
+ loading: 'Carregando, por favor espere ...',
85
+ noTournaments: 'Nenhum torneio encontrado'
86
+ },
87
+ hr: {
88
+ 500: '500 - Internal server error',
89
+ showMore: 'Prikaži više',
90
+ Scheduled: 'Zakazano',
91
+ Ongoing: 'U tijeku',
92
+ Finished: 'Gotovo',
93
+ loading: 'Učitavanje, molimo pričekajte ...',
94
+ noTournaments: 'Nema pronađenih turnira'
95
+ }
96
+ };
97
+ export const translate = (key, customLang) => {
98
+ var _a, _b;
99
+ const lang = customLang;
100
+ return ((_a = TRANSLATIONS[lang]) === null || _a === void 0 ? void 0 : _a[key]) || ((_b = TRANSLATIONS[DEFAULT_LANGUAGE]) === null || _b === void 0 ? void 0 : _b[key]);
101
+ };
102
+ export const getTranslations = (url) => {
103
+ // fetch url, get the data, replace the TRANSLATIONS content
104
+ return new Promise((resolve, reject) => {
105
+ fetch(url)
106
+ .then((res) => res.json())
107
+ .then((data) => {
108
+ Object.keys(data).forEach((item) => {
109
+ for (let key in data[item]) {
110
+ TRANSLATIONS[item][key] = data[item][key];
111
+ }
112
+ });
113
+ resolve(TRANSLATIONS);
114
+ }).catch(err => {
115
+ reject(err);
116
+ });
117
+ });
118
+ };
@@ -0,0 +1,20 @@
1
+ export const getDevice = () => {
2
+ let userAgent = window.navigator.userAgent;
3
+ if (userAgent.toLowerCase().match(/android/i)) {
4
+ return 'Android';
5
+ }
6
+ if (userAgent.toLowerCase().match(/iphone/i)) {
7
+ return 'iPhone';
8
+ }
9
+ if (userAgent.toLowerCase().match(/ipad|ipod/i)) {
10
+ return 'iPad';
11
+ }
12
+ return 'PC';
13
+ };
14
+ export const isMobile = () => {
15
+ let userAgent = window.navigator.userAgent;
16
+ return !!(userAgent.toLowerCase().match(/android/i) ||
17
+ userAgent.toLowerCase().match(/blackberry|bb/i) ||
18
+ userAgent.toLowerCase().match(/iphone|ipad|ipod/i) ||
19
+ userAgent.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
20
+ };
@@ -0,0 +1,3 @@
1
+ const globalScripts = () => {};
2
+
3
+ export { globalScripts as g };