@everymatrix/casino-page 0.0.365 → 0.0.367

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.
@@ -1,92 +1,92 @@
1
- export interface CategoriesData {
2
- count: number,
3
- items: Array<CategoriesItems>,
4
- pages: CategoriesPages,
5
- total: number ,
6
- }
7
-
8
- export interface CategoriesItems {
9
- id: number,
10
- name: String,
11
- href: String,
12
- games: Array<GamesItem>
13
- };
14
-
15
- interface GamesItem {
16
- count: number,
17
- items: Array<Object>,
18
- pages: PagesItem,
19
- total: number
20
- }
21
-
22
- interface PagesItem {
23
- first: String,
24
- last: String,
25
- next: String,
26
- previous: String
27
- }
28
-
29
- interface CategoriesPages {
30
- first: String,
31
- last: String,
32
- next: String,
33
- previous: String,
34
- }
35
-
36
- export interface CasinoData {
37
- count: number,
38
- items: CasinoItems[],
39
- pages: CasinoPages,
40
- total: number
41
- }
42
-
43
- export interface CasinoItems {
44
- name: string,
45
- games: CasinoGames,
46
- moreBtn?: boolean
47
- }
48
-
49
- interface CasinoGames {
50
- count: number,
51
- items: [{href: string}],
52
- pages: CasinoPages,
53
- total: number
54
- }
55
-
56
- interface CasinoPages {
57
- first: string,
58
- last: string,
59
- next: null,
60
- previous: null
61
- }
62
-
63
- export interface CasinoGameData {
64
- backgroundImageUrl: string,
65
- categories: CasinoBaseData,
66
- defaultThumbnail: string,
67
- groups: CasinoGroups,
68
- hasAnonymousFunMode: boolean,
69
- hasFunMode: boolean,
70
- href: string,
71
- id: string,
72
- isNew: boolean,
73
- launchURL: string,
74
- name: string,
75
- platform: string[],
76
- popularity: number,
77
- thumbnail: string,
78
- vendor: {href: string, name:string},
79
- cellSize?: string
80
- }
81
-
82
- interface CasinoBaseData {
83
- count: number,
84
- items: [{href: string}],
85
- pagination: CasinoPages,
86
- total: number
87
- }
88
-
89
- interface CasinoGroups {
90
- count: number,
91
- items: string[]
92
- }
1
+ export interface CategoriesData {
2
+ count: number,
3
+ items: Array<CategoriesItems>,
4
+ pages: CategoriesPages,
5
+ total: number ,
6
+ }
7
+
8
+ export interface CategoriesItems {
9
+ id: number,
10
+ name: String,
11
+ href: String,
12
+ games: Array<GamesItem>
13
+ };
14
+
15
+ interface GamesItem {
16
+ count: number,
17
+ items: Array<Object>,
18
+ pages: PagesItem,
19
+ total: number
20
+ }
21
+
22
+ interface PagesItem {
23
+ first: String,
24
+ last: String,
25
+ next: String,
26
+ previous: String
27
+ }
28
+
29
+ interface CategoriesPages {
30
+ first: String,
31
+ last: String,
32
+ next: String,
33
+ previous: String,
34
+ }
35
+
36
+ export interface CasinoData {
37
+ count: number,
38
+ items: CasinoItems[],
39
+ pages: CasinoPages,
40
+ total: number
41
+ }
42
+
43
+ export interface CasinoItems {
44
+ name: string,
45
+ games: CasinoGames,
46
+ moreBtn?: boolean
47
+ }
48
+
49
+ interface CasinoGames {
50
+ count: number,
51
+ items: [{href: string}],
52
+ pages: CasinoPages,
53
+ total: number
54
+ }
55
+
56
+ interface CasinoPages {
57
+ first: string,
58
+ last: string,
59
+ next: null,
60
+ previous: null
61
+ }
62
+
63
+ export interface CasinoGameData {
64
+ backgroundImageUrl: string,
65
+ categories: CasinoBaseData,
66
+ defaultThumbnail: string,
67
+ groups: CasinoGroups,
68
+ hasAnonymousFunMode: boolean,
69
+ hasFunMode: boolean,
70
+ href: string,
71
+ id: string,
72
+ isNew: boolean,
73
+ launchURL: string,
74
+ name: string,
75
+ platform: string[],
76
+ popularity: number,
77
+ thumbnail: string,
78
+ vendor: {href: string, name:string},
79
+ cellSize?: string
80
+ }
81
+
82
+ interface CasinoBaseData {
83
+ count: number,
84
+ items: [{href: string}],
85
+ pagination: CasinoPages,
86
+ total: number
87
+ }
88
+
89
+ interface CasinoGroups {
90
+ count: number,
91
+ items: string[]
92
+ }
package/src/i18n.js CHANGED
@@ -1,27 +1,27 @@
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 };
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 CHANGED
@@ -1,4 +1,4 @@
1
- import CasinoPage from './CasinoPage.svelte';
2
-
3
- !customElements.get('casino-page') && customElements.define('casino-page', CasinoPage);
4
- export default CasinoPage;
1
+ import CasinoPage from './CasinoPage.svelte';
2
+
3
+ !customElements.get('casino-page') && customElements.define('casino-page', CasinoPage);
4
+ export default CasinoPage;
@@ -1,212 +1,212 @@
1
- export const CasinoPageTranslations = {
2
- en: {
3
- casinoPage: {
4
- 500: '500 Error - Internal Server Error',
5
- search: 'Search',
6
- loading: 'Loading',
7
- searchMobile: 'Search',
8
- break: 'Take 1 day break from playing',
9
- breakButton: 'Hold button for 3 seconds to take 24-hours instant lock',
10
- searchGames: 'Search casino games',
11
- filters: 'Filters',
12
- clear: 'Clear',
13
- noGamesPlayed: 'You have no games played!'
14
- }
15
- },
16
- zh: {
17
- casinoPage: {
18
- 500: '500 錯誤 - 內部服務器錯誤',
19
- search: '搜索',
20
- loading: '正在加載',
21
- searchMobile: '搜索',
22
- break: '休息 1 天',
23
- breakButton: '24 小時冷卻',
24
- searchGames: '搜索賭場遊戲',
25
- filters: '過濾器',
26
- clear: '清除',
27
- noGamesPlayed: '你沒有玩過遊戲!'
28
- }
29
- },
30
- de: {
31
- casinoPage: {
32
- 500: '500-Fehler – Interner Serverfehler',
33
- search: 'Suche',
34
- loading: 'Loading',
35
- searchMobile: 'Suche',
36
- break: 'Mach mal einen Tag Pause!',
37
- breakButton: 'Für 24 Std. Games Sofortpause, 3 Sekunden drücken',
38
- searchGames: 'Casinospiele suchen',
39
- filters: 'Filter',
40
- clear: 'Zurücksetzen',
41
- noGamesPlayed: 'Sie haben keine Spiele gespielt!'
42
- }
43
- },
44
- it: {
45
- casinoPage: {
46
- 500: 'Errore 500 - Errore interno del server',
47
- search: 'Cerca',
48
- loading: 'Loading',
49
- searchMobile: 'Cerca',
50
- break: 'Take 1 day break from playing',
51
- breakButton: '24-hour Cool Off',
52
- searchGames: 'Cerca giochi da casinò',
53
- filters: 'Filtri',
54
- clear: 'Azzera',
55
- noGamesPlayed: 'Non hai giochi giocati!'
56
- }
57
- },
58
- fr: {
59
- casinoPage: {
60
- 500: 'Erreur - erreur de serveur interne',
61
- search: 'Recherche',
62
- loading: 'Chargement',
63
- searchMobile: 'Recherche',
64
- break: 'Faire une pause d\'un jour dans le jeu ',
65
- breakButton: 'Refroidissement de 24 heures',
66
- searchGames: 'Recherche de jeux de casino',
67
- filters: 'Filtres',
68
- clear: 'Clair',
69
- noGamesPlayed: 'Vous n\'avez aucune partie jouée'
70
- }
71
- },
72
- es: {
73
- casinoPage: {
74
- 500: 'Error 500 - Error Interno del Servidor',
75
- search: 'Buscar ...',
76
- loading: 'Cargando ...',
77
- searchMobile: 'Buscar',
78
- break: 'Tómate un descanso de 1 día del juego.',
79
- breakButton: 'Tómese un descanso de 24 horas del juego',
80
- searchGames: 'Buscar juegos de casino',
81
- filters: 'Filtros',
82
- clear: 'Limpio',
83
- noGamesPlayed: 'No has probado ningún juego!'
84
- }
85
- },
86
- tr: {
87
- casinoPage: {
88
- 500: '500 Hatası - Dahili Sunucu Hatası',
89
- search: 'Oyun ara ...',
90
- loading: 'Yükleniyor ...',
91
- searchMobile: 'Arama',
92
- break: 'Take 1 day break from playing',
93
- breakButton: '24-hour Cool Off',
94
- searchGames: 'Casino oyunları ara',
95
- filters: 'Filtreler',
96
- clear: 'Temizlemek',
97
- noGamesPlayed: 'Oynadığın oyun yok!'
98
- }
99
- },
100
- ru: {
101
- casinoPage: {
102
- 500: 'Ошибка 500 — внутренняя ошибка сервера',
103
- search: 'Искать игры ...',
104
- loading: 'Загрузка ...',
105
- searchMobile: 'Поиск',
106
- break: 'Take 1 day break from playing',
107
- breakButton: '24-hour Cool Off',
108
- searchGames: 'Поиск игр казино',
109
- filters: 'Фильтры',
110
- clear: 'Прозрачный',
111
- noGamesPlayed: 'У вас нет сыгранных игр!'
112
- }
113
- },
114
- ro: {
115
- casinoPage: {
116
- 500: '500 Error - Internal Server Error',
117
- search: 'Cautare jocuri...',
118
- loading: 'Se incarca ...',
119
- searchMobile: 'Cauta',
120
- break: 'Take 1 day break from playing',
121
- breakButton: '24-hour Cool Off',
122
- searchGames: 'Cauta jocuri de casino',
123
- filters: 'Filtrare',
124
- clear: 'Sterge',
125
- noGamesPlayed: 'Nu ai jucat niciun joc!'
126
- }
127
- },
128
- hr: {
129
- casinoPage: {
130
- 500: '500 Error - Internal Server Error',
131
- search: 'Pretraži',
132
- loading: 'Učitavanje',
133
- searchMobile: 'Pretraži',
134
- break: 'Take 1 day break from playing',
135
- breakButton: '24-hour Cool Off',
136
- searchGames: 'Traži casino igre',
137
- filters: 'Filtri',
138
- clear: 'Resetiraj',
139
- noGamesPlayed: 'Niste igrali nijednu igru!'
140
- }
141
- },
142
- hu: {
143
- casinoPage: {
144
- 500: '500 Error - Internal Server Error',
145
- search: 'Keresés',
146
- loading: 'betöltés',
147
- searchMobile: 'Keresés',
148
- break: 'Take 1 day break from playing',
149
- breakButton: '24-hour Cool Off',
150
- searchGames: 'Kaszinó játékok keresése',
151
- filters: 'Szűrők',
152
- clear: 'Visszaállítás',
153
- noGamesPlayed: 'Nincsenek lejátszott játékok!'
154
- }
155
- },
156
- pl: {
157
- casinoPage: {
158
- 500: '500 Error - Internal Server Error',
159
- search: 'Szukaj',
160
- loading: 'Ładowanie',
161
- searchMobile: 'Szukaj',
162
- break: 'Take 1 day break from playing',
163
- breakButton: '24-hour Cool Off',
164
- searchGames: 'Wyszukaj gry kasynowe',
165
- filters: 'Filtry',
166
- clear: 'Przywróć',
167
- noGamesPlayed: 'Nie grałeś w żadne gry!'
168
- }
169
- },
170
- pt: {
171
- casinoPage: {
172
- 500: 'Erro 500 - Erro interno do servidor',
173
- search: 'Procurar ...',
174
- loading: 'Carregando ...',
175
- searchMobile: 'Procurar',
176
- break: 'Faça uma pausa de 1 dia no jogo',
177
- breakButton: 'Faça uma pausa de 24 horas no jogo',
178
- searchGames: 'Pesquisar jogos de cassino',
179
- filters: 'Filtros',
180
- clear: 'Limpar',
181
- noGamesPlayed: 'Você não experimentou nenhum jogo!'
182
- }
183
- },
184
- sl: {
185
- casinoPage: {
186
- 500: '500 Error - Internal Server Error',
187
- search: 'Iskanje',
188
- loading: 'Loading',
189
- searchMobile: 'Iskanje',
190
- break: 'Take 1 day break from playing',
191
- breakButton: '24-hour Cool Off',
192
- searchGames: 'Search casino games',
193
- filters: 'Filters',
194
- clear: 'Ponastavitev',
195
- noGamesPlayed: 'You have no games played!'
196
- }
197
- },
198
- sr: {
199
- casinoPage: {
200
- 500: '500 Error - Internal Server Error',
201
- search: 'Pretraži',
202
- loading: 'Loading',
203
- searchMobile: 'Pretraži',
204
- break: 'Take 1 day break from playing',
205
- breakButton: '24-hour Cool Off',
206
- searchGames: 'Search casino games',
207
- filters: 'Filters',
208
- clear: 'Resetuj',
209
- noGamesPlayed: 'You have no games played!'
210
- }
211
- }
212
- };
1
+ export const CasinoPageTranslations = {
2
+ en: {
3
+ casinoPage: {
4
+ 500: '500 Error - Internal Server Error',
5
+ search: 'Search',
6
+ loading: 'Loading',
7
+ searchMobile: 'Search',
8
+ break: 'Take 1 day break from playing',
9
+ breakButton: 'Hold button for 3 seconds to take 24-hours instant lock',
10
+ searchGames: 'Search casino games',
11
+ filters: 'Filters',
12
+ clear: 'Clear',
13
+ noGamesPlayed: 'You have no games played!'
14
+ }
15
+ },
16
+ zh: {
17
+ casinoPage: {
18
+ 500: '500 錯誤 - 內部服務器錯誤',
19
+ search: '搜索',
20
+ loading: '正在加載',
21
+ searchMobile: '搜索',
22
+ break: '休息 1 天',
23
+ breakButton: '24 小時冷卻',
24
+ searchGames: '搜索賭場遊戲',
25
+ filters: '過濾器',
26
+ clear: '清除',
27
+ noGamesPlayed: '你沒有玩過遊戲!'
28
+ }
29
+ },
30
+ de: {
31
+ casinoPage: {
32
+ 500: '500-Fehler – Interner Serverfehler',
33
+ search: 'Suche',
34
+ loading: 'Loading',
35
+ searchMobile: 'Suche',
36
+ break: 'Mach mal einen Tag Pause!',
37
+ breakButton: 'Für 24 Std. Games Sofortpause, 3 Sekunden drücken',
38
+ searchGames: 'Casinospiele suchen',
39
+ filters: 'Filter',
40
+ clear: 'Zurücksetzen',
41
+ noGamesPlayed: 'Sie haben keine Spiele gespielt!'
42
+ }
43
+ },
44
+ it: {
45
+ casinoPage: {
46
+ 500: 'Errore 500 - Errore interno del server',
47
+ search: 'Cerca',
48
+ loading: 'Loading',
49
+ searchMobile: 'Cerca',
50
+ break: 'Take 1 day break from playing',
51
+ breakButton: '24-hour Cool Off',
52
+ searchGames: 'Cerca giochi da casinò',
53
+ filters: 'Filtri',
54
+ clear: 'Azzera',
55
+ noGamesPlayed: 'Non hai giochi giocati!'
56
+ }
57
+ },
58
+ fr: {
59
+ casinoPage: {
60
+ 500: 'Erreur - erreur de serveur interne',
61
+ search: 'Recherche',
62
+ loading: 'Chargement',
63
+ searchMobile: 'Recherche',
64
+ break: 'Faire une pause d\'un jour dans le jeu ',
65
+ breakButton: 'Refroidissement de 24 heures',
66
+ searchGames: 'Recherche de jeux de casino',
67
+ filters: 'Filtres',
68
+ clear: 'Clair',
69
+ noGamesPlayed: 'Vous n\'avez aucune partie jouée'
70
+ }
71
+ },
72
+ es: {
73
+ casinoPage: {
74
+ 500: 'Error 500 - Error Interno del Servidor',
75
+ search: 'Buscar ...',
76
+ loading: 'Cargando ...',
77
+ searchMobile: 'Buscar',
78
+ break: 'Tómate un descanso de 1 día del juego.',
79
+ breakButton: 'Tómese un descanso de 24 horas del juego',
80
+ searchGames: 'Buscar juegos de casino',
81
+ filters: 'Filtros',
82
+ clear: 'Limpio',
83
+ noGamesPlayed: 'No has probado ningún juego!'
84
+ }
85
+ },
86
+ tr: {
87
+ casinoPage: {
88
+ 500: '500 Hatası - Dahili Sunucu Hatası',
89
+ search: 'Oyun ara ...',
90
+ loading: 'Yükleniyor ...',
91
+ searchMobile: 'Arama',
92
+ break: 'Take 1 day break from playing',
93
+ breakButton: '24-hour Cool Off',
94
+ searchGames: 'Casino oyunları ara',
95
+ filters: 'Filtreler',
96
+ clear: 'Temizlemek',
97
+ noGamesPlayed: 'Oynadığın oyun yok!'
98
+ }
99
+ },
100
+ ru: {
101
+ casinoPage: {
102
+ 500: 'Ошибка 500 — внутренняя ошибка сервера',
103
+ search: 'Искать игры ...',
104
+ loading: 'Загрузка ...',
105
+ searchMobile: 'Поиск',
106
+ break: 'Take 1 day break from playing',
107
+ breakButton: '24-hour Cool Off',
108
+ searchGames: 'Поиск игр казино',
109
+ filters: 'Фильтры',
110
+ clear: 'Прозрачный',
111
+ noGamesPlayed: 'У вас нет сыгранных игр!'
112
+ }
113
+ },
114
+ ro: {
115
+ casinoPage: {
116
+ 500: '500 Error - Internal Server Error',
117
+ search: 'Cautare jocuri...',
118
+ loading: 'Se incarca ...',
119
+ searchMobile: 'Cauta',
120
+ break: 'Take 1 day break from playing',
121
+ breakButton: '24-hour Cool Off',
122
+ searchGames: 'Cauta jocuri de casino',
123
+ filters: 'Filtrare',
124
+ clear: 'Sterge',
125
+ noGamesPlayed: 'Nu ai jucat niciun joc!'
126
+ }
127
+ },
128
+ hr: {
129
+ casinoPage: {
130
+ 500: '500 Error - Internal Server Error',
131
+ search: 'Pretraži',
132
+ loading: 'Učitavanje',
133
+ searchMobile: 'Pretraži',
134
+ break: 'Take 1 day break from playing',
135
+ breakButton: '24-hour Cool Off',
136
+ searchGames: 'Traži casino igre',
137
+ filters: 'Filtri',
138
+ clear: 'Resetiraj',
139
+ noGamesPlayed: 'Niste igrali nijednu igru!'
140
+ }
141
+ },
142
+ hu: {
143
+ casinoPage: {
144
+ 500: '500 Error - Internal Server Error',
145
+ search: 'Keresés',
146
+ loading: 'betöltés',
147
+ searchMobile: 'Keresés',
148
+ break: 'Take 1 day break from playing',
149
+ breakButton: '24-hour Cool Off',
150
+ searchGames: 'Kaszinó játékok keresése',
151
+ filters: 'Szűrők',
152
+ clear: 'Visszaállítás',
153
+ noGamesPlayed: 'Nincsenek lejátszott játékok!'
154
+ }
155
+ },
156
+ pl: {
157
+ casinoPage: {
158
+ 500: '500 Error - Internal Server Error',
159
+ search: 'Szukaj',
160
+ loading: 'Ładowanie',
161
+ searchMobile: 'Szukaj',
162
+ break: 'Take 1 day break from playing',
163
+ breakButton: '24-hour Cool Off',
164
+ searchGames: 'Wyszukaj gry kasynowe',
165
+ filters: 'Filtry',
166
+ clear: 'Przywróć',
167
+ noGamesPlayed: 'Nie grałeś w żadne gry!'
168
+ }
169
+ },
170
+ pt: {
171
+ casinoPage: {
172
+ 500: 'Erro 500 - Erro interno do servidor',
173
+ search: 'Procurar ...',
174
+ loading: 'Carregando ...',
175
+ searchMobile: 'Procurar',
176
+ break: 'Faça uma pausa de 1 dia no jogo',
177
+ breakButton: 'Faça uma pausa de 24 horas no jogo',
178
+ searchGames: 'Pesquisar jogos de cassino',
179
+ filters: 'Filtros',
180
+ clear: 'Limpar',
181
+ noGamesPlayed: 'Você não experimentou nenhum jogo!'
182
+ }
183
+ },
184
+ sl: {
185
+ casinoPage: {
186
+ 500: '500 Error - Internal Server Error',
187
+ search: 'Iskanje',
188
+ loading: 'Loading',
189
+ searchMobile: 'Iskanje',
190
+ break: 'Take 1 day break from playing',
191
+ breakButton: '24-hour Cool Off',
192
+ searchGames: 'Search casino games',
193
+ filters: 'Filters',
194
+ clear: 'Ponastavitev',
195
+ noGamesPlayed: 'You have no games played!'
196
+ }
197
+ },
198
+ sr: {
199
+ casinoPage: {
200
+ 500: '500 Error - Internal Server Error',
201
+ search: 'Pretraži',
202
+ loading: 'Loading',
203
+ searchMobile: 'Pretraži',
204
+ break: 'Take 1 day break from playing',
205
+ breakButton: '24-hour Cool Off',
206
+ searchGames: 'Search casino games',
207
+ filters: 'Filters',
208
+ clear: 'Resetuj',
209
+ noGamesPlayed: 'You have no games played!'
210
+ }
211
+ }
212
+ };