@everymatrix/casino-search 1.12.0 → 1.12.2
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/dist/casino-search.js +321 -402
- package/dist/casino-search.js.map +1 -1
- package/package.json +2 -2
- package/src/CasinoSearch.svelte +11 -11
- package/src/translations.js +149 -199
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/casino-search",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.2",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"svelte": "src/index.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "22bb69e504862fb909bc5d21d62ba4178aaefe3d"
|
|
39
39
|
}
|
package/src/CasinoSearch.svelte
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
<script lang="ts">
|
|
4
4
|
import { _, addNewMessages, setLocale } from './i18n';
|
|
5
|
-
import {
|
|
5
|
+
import { TRANSLATIONS } from './translations.js';
|
|
6
6
|
import { getDevice } from 'rvhelper';
|
|
7
7
|
import { onMount } from 'svelte';
|
|
8
8
|
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
Object.keys(
|
|
58
|
-
addNewMessages(item,
|
|
57
|
+
Object.keys(TRANSLATIONS).forEach((item:any):void => {
|
|
58
|
+
addNewMessages(item, TRANSLATIONS[item]);
|
|
59
59
|
});
|
|
60
60
|
|
|
61
61
|
const messageHandler = (e:any):void => {
|
|
@@ -347,28 +347,28 @@
|
|
|
347
347
|
<circle cx="6.5" cy="6.5" r="5.75" stroke="#212121" stroke-width="1.5"/>
|
|
348
348
|
</svg>
|
|
349
349
|
</div>
|
|
350
|
-
<input class="SearchInput" type="search" placeholder="{$_('
|
|
350
|
+
<input class="SearchInput" type="search" placeholder="{$_('placeHolderSearchGames')}" bind:value={searchValue} on:focus={onFocus} bind:this={searchElement} maxlength={searchInputMaxLength}>
|
|
351
351
|
<span on:click={() => clearSearch()} class="SearchClearButton { searchValue.length != 0 ? '' : 'NotVisible'}">
|
|
352
352
|
<svg width="11" height="11" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
353
353
|
<path d="m1.45 1.5 8.1 8M1.45 9.5l8.1-8" stroke="#717171" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
354
354
|
</svg>
|
|
355
355
|
</span>
|
|
356
356
|
<small on:click={() => cancelSearch()} class="SearchCancelButton {searchCancelled ? 'NotVisible' : ''}">
|
|
357
|
-
{$_('
|
|
357
|
+
{$_('cancel')}
|
|
358
358
|
</small>
|
|
359
359
|
</div>
|
|
360
360
|
{#if isLoading}
|
|
361
|
-
<p>{$_('
|
|
361
|
+
<p>{$_('loading')}</p>
|
|
362
362
|
{:else}
|
|
363
363
|
{#if searchActive == true && searchValue.length < 2}
|
|
364
|
-
<p class="SearchMessage">{$_('
|
|
364
|
+
<p class="SearchMessage">{$_('recentSearch')}</p>
|
|
365
365
|
{#if searchArray.length == 0}
|
|
366
366
|
<div class="ResultsContainerError">
|
|
367
|
-
<p class="SearchMessage">{$_('
|
|
367
|
+
<p class="SearchMessage">{$_('noRecentSearches')}</p>
|
|
368
368
|
</div>
|
|
369
369
|
{/if}
|
|
370
370
|
{:else if searchArray.length != 0}
|
|
371
|
-
<p class="SearchMessage">{$_('
|
|
371
|
+
<p class="SearchMessage">{$_('searchResult')}</p>
|
|
372
372
|
{/if}
|
|
373
373
|
<div class="SearchResultsContainer {searchActive == true ? '': 'NotVisible'}">
|
|
374
374
|
{#if searchCancelled === false}
|
|
@@ -399,8 +399,8 @@
|
|
|
399
399
|
{/if}
|
|
400
400
|
{#if searchValue.length >= 2 && searchArray.length == 0}
|
|
401
401
|
<div class="ResultsContainerError">
|
|
402
|
-
<p class="SearchMessage">{$_('
|
|
403
|
-
<p>{$_('
|
|
402
|
+
<p class="SearchMessage">{$_('notFound')}</p>
|
|
403
|
+
<p>{$_('notFoundText')}</p>
|
|
404
404
|
</div>
|
|
405
405
|
{/if}
|
|
406
406
|
</div>
|
package/src/translations.js
CHANGED
|
@@ -1,199 +1,149 @@
|
|
|
1
|
-
export const
|
|
2
|
-
en: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
},
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
},
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
},
|
|
151
|
-
pl: {
|
|
152
|
-
Translations: {
|
|
153
|
-
recentSearch: "Recent search",
|
|
154
|
-
loading: "Loading, please wait",
|
|
155
|
-
searchResult: "Search result",
|
|
156
|
-
cancel: "Cancel",
|
|
157
|
-
notFound: "Game not found!",
|
|
158
|
-
notFoundText:
|
|
159
|
-
"Please type the correct name of the game to start to play.",
|
|
160
|
-
noRecentSearches: "No recent searches yet. Search for any of our games.",
|
|
161
|
-
},
|
|
162
|
-
},
|
|
163
|
-
pt: {
|
|
164
|
-
Translations: {
|
|
165
|
-
recentSearch: "Recent search",
|
|
166
|
-
loading: "Loading, please wait",
|
|
167
|
-
searchResult: "Search result",
|
|
168
|
-
cancel: "Cancel",
|
|
169
|
-
notFound: "Game not found!",
|
|
170
|
-
notFoundText:
|
|
171
|
-
"Please type the correct name of the game to start to play.",
|
|
172
|
-
noRecentSearches: "No recent searches yet. Search for any of our games.",
|
|
173
|
-
},
|
|
174
|
-
},
|
|
175
|
-
sl: {
|
|
176
|
-
Translations: {
|
|
177
|
-
recentSearch: "Recent search",
|
|
178
|
-
loading: "Loading, please wait",
|
|
179
|
-
searchResult: "Search result",
|
|
180
|
-
cancel: "Cancel",
|
|
181
|
-
notFound: "Game not found!",
|
|
182
|
-
notFoundText:
|
|
183
|
-
"Please type the correct name of the game to start to play.",
|
|
184
|
-
noRecentSearches: "No recent searches yet. Search for any of our games.",
|
|
185
|
-
},
|
|
186
|
-
},
|
|
187
|
-
sr: {
|
|
188
|
-
Translations: {
|
|
189
|
-
recentSearch: "Recent search",
|
|
190
|
-
loading: "Loading, please wait",
|
|
191
|
-
searchResult: "Search result",
|
|
192
|
-
cancel: "Cancel",
|
|
193
|
-
notFound: "Game not found!",
|
|
194
|
-
notFoundText:
|
|
195
|
-
"Please type the correct name of the game to start to play.",
|
|
196
|
-
noRecentSearches: "No recent searches yet. Search for any of our games.",
|
|
197
|
-
},
|
|
198
|
-
},
|
|
199
|
-
};
|
|
1
|
+
export const TRANSLATIONS = {
|
|
2
|
+
"en": {
|
|
3
|
+
"recentSearch": "Recent search",
|
|
4
|
+
"placeHolderSearchGames": "Search for Games",
|
|
5
|
+
"loading": "Loading, please wait",
|
|
6
|
+
"searchResult": "Search result",
|
|
7
|
+
"cancel": "Cancel",
|
|
8
|
+
"notFound": "Game not found!",
|
|
9
|
+
"notFoundText": "Please type the correct name of the game to start to play.",
|
|
10
|
+
"noRecentSearches": "No recent searches yet. Search for any of our games."
|
|
11
|
+
},
|
|
12
|
+
"zh-hk": {
|
|
13
|
+
"recentSearch": "最近的搜索",
|
|
14
|
+
"loading": "加载请稍候",
|
|
15
|
+
"searchResult": "搜索结果",
|
|
16
|
+
"cancel": "取消",
|
|
17
|
+
"notFound": "找不到游戏!",
|
|
18
|
+
"notFoundText": "请输入正确的游戏名称开始玩。",
|
|
19
|
+
"noRecentSearches": "还没有最近的搜索。 搜索我们的任何游戏。"
|
|
20
|
+
},
|
|
21
|
+
"de": {
|
|
22
|
+
"recentSearch": "Letzte Suche",
|
|
23
|
+
"placeHolderSearchGames": "Hier nach Spielen suchen",
|
|
24
|
+
"loading": "Es lädt, bitte warten...",
|
|
25
|
+
"searchResult": "Ergebnis suchen",
|
|
26
|
+
"cancel": "Abbrechen",
|
|
27
|
+
"notFound": "Spiel wurde nicht gefunden!",
|
|
28
|
+
"notFoundText": "Spiel nicht gefunden! Bitte verwende den richtigen Spielnamen um es zu starten.",
|
|
29
|
+
"noRecentSearches": "Keine vorherige Suche vorhanden! Suche nach einem beliebigen Spiel"
|
|
30
|
+
},
|
|
31
|
+
"it": {
|
|
32
|
+
"recentSearch": "Recent search",
|
|
33
|
+
"loading": "Loading, please wait",
|
|
34
|
+
"searchResult": "Search result",
|
|
35
|
+
"cancel": "Cancel",
|
|
36
|
+
"notFound": "Game not found!",
|
|
37
|
+
"notFoundText": "Please type the correct name of the game to start to play.",
|
|
38
|
+
"noRecentSearches": "No recent searches yet. Search for any of our games."
|
|
39
|
+
},
|
|
40
|
+
"fr": {
|
|
41
|
+
"recentSearch": "Recherche récente",
|
|
42
|
+
"placeHolderSearchGames": "Recherche de jeux de casino",
|
|
43
|
+
"loading": "Chargement, veuillez patienter",
|
|
44
|
+
"searchResult": "Résultat de la recherche",
|
|
45
|
+
"cancel": "Annuler",
|
|
46
|
+
"notFound": "Jeu non trouvé!",
|
|
47
|
+
"notFoundText": "Veuillez saisir le nom correct du jeu pour commencer à jouer.",
|
|
48
|
+
"noRecentSearches": "Pas encore de recherches récentes. Recherchez l'un de nos jeux."
|
|
49
|
+
},
|
|
50
|
+
"es": {
|
|
51
|
+
"recentSearch": "Busqueda reciente",
|
|
52
|
+
"placeHolderSearchGames": "Buscar juegos",
|
|
53
|
+
"loading": "Cargando",
|
|
54
|
+
"searchResult": "Resultado de busqueda",
|
|
55
|
+
"cancel": "Cancelar",
|
|
56
|
+
"notFound": "Juego no encontrado!",
|
|
57
|
+
"notFoundText": "Por favor escriba el nombre correcto del juego para empezar a jugar.",
|
|
58
|
+
"noRecentSearches": "No hay búsquedas recientes. Busca cualquiera de nuestros juegos"
|
|
59
|
+
},
|
|
60
|
+
"gr": {
|
|
61
|
+
"recentSearch": "Recent search",
|
|
62
|
+
"loading": "Loading, please wait",
|
|
63
|
+
"searchResult": "Search result",
|
|
64
|
+
"cancel": "Cancel",
|
|
65
|
+
"notFound": "Game not found!",
|
|
66
|
+
"notFoundText": "Please type the correct name of the game to start to play.",
|
|
67
|
+
"noRecentSearches": "No recent searches yet. Search for any of our games."
|
|
68
|
+
},
|
|
69
|
+
"tr": {
|
|
70
|
+
"recentSearch": "Recent search",
|
|
71
|
+
"loading": "Loading, please wait",
|
|
72
|
+
"searchResult": "Search result",
|
|
73
|
+
"cancel": "Cancel",
|
|
74
|
+
"notFound": "Game not found!",
|
|
75
|
+
"notFoundText": "Please type the correct name of the game to start to play.",
|
|
76
|
+
"noRecentSearches": "No recent searches yet. Search for any of our games."
|
|
77
|
+
},
|
|
78
|
+
"ru": {
|
|
79
|
+
"recentSearch": "Recent search",
|
|
80
|
+
"loading": "Loading, please wait",
|
|
81
|
+
"searchResult": "Search result",
|
|
82
|
+
"cancel": "Cancel",
|
|
83
|
+
"notFound": "Game not found!",
|
|
84
|
+
"notFoundText": "Please type the correct name of the game to start to play."
|
|
85
|
+
},
|
|
86
|
+
"ro": {
|
|
87
|
+
"recentSearch": "Cautari recente",
|
|
88
|
+
"loading": "Se incarca, te rugam asteapta…",
|
|
89
|
+
"searchResult": "Rezultat cautare",
|
|
90
|
+
"cancel": "Anuleaza",
|
|
91
|
+
"notFound": "Nu am gasit niciun rezultat!",
|
|
92
|
+
"notFoundText": "Te rugam sa introduci corect numele jocului.",
|
|
93
|
+
"noRecentSearches": "Nu sunt cautari recente. Cauta oricare din jocurile noastre."
|
|
94
|
+
},
|
|
95
|
+
"hr": {
|
|
96
|
+
"recentSearch": "Recent search",
|
|
97
|
+
"loading": "Loading, please wait",
|
|
98
|
+
"searchResult": "Search result",
|
|
99
|
+
"cancel": "Cancel",
|
|
100
|
+
"notFound": "Game not found!",
|
|
101
|
+
"notFoundText": "Please type the correct name of the game to start to play.",
|
|
102
|
+
"noRecentSearches": "No recent searches yet. Search for any of our games."
|
|
103
|
+
},
|
|
104
|
+
"hu": {
|
|
105
|
+
"recentSearch": "Recent search",
|
|
106
|
+
"loading": "Loading, please wait",
|
|
107
|
+
"searchResult": "Search result",
|
|
108
|
+
"cancel": "Cancel",
|
|
109
|
+
"notFound": "Game not found!",
|
|
110
|
+
"notFoundText": "Please type the correct name of the game to start to play.",
|
|
111
|
+
"noRecentSearches": "No recent searches yet. Search for any of our games."
|
|
112
|
+
},
|
|
113
|
+
"pl": {
|
|
114
|
+
"recentSearch": "Recent search",
|
|
115
|
+
"loading": "Loading, please wait",
|
|
116
|
+
"searchResult": "Search result",
|
|
117
|
+
"cancel": "Cancel",
|
|
118
|
+
"notFound": "Game not found!",
|
|
119
|
+
"notFoundText": "Please type the correct name of the game to start to play.",
|
|
120
|
+
"noRecentSearches": "No recent searches yet. Search for any of our games."
|
|
121
|
+
},
|
|
122
|
+
"pt": {
|
|
123
|
+
"recentSearch": "Recent search",
|
|
124
|
+
"loading": "Loading, please wait",
|
|
125
|
+
"searchResult": "Search result",
|
|
126
|
+
"cancel": "Cancel",
|
|
127
|
+
"notFound": "Game not found!",
|
|
128
|
+
"notFoundText": "Please type the correct name of the game to start to play.",
|
|
129
|
+
"noRecentSearches": "No recent searches yet. Search for any of our games."
|
|
130
|
+
},
|
|
131
|
+
"sl": {
|
|
132
|
+
"recentSearch": "Recent search",
|
|
133
|
+
"loading": "Loading, please wait",
|
|
134
|
+
"searchResult": "Search result",
|
|
135
|
+
"cancel": "Cancel",
|
|
136
|
+
"notFound": "Game not found!",
|
|
137
|
+
"notFoundText": "Please type the correct name of the game to start to play.",
|
|
138
|
+
"noRecentSearches": "No recent searches yet. Search for any of our games."
|
|
139
|
+
},
|
|
140
|
+
"sr": {
|
|
141
|
+
"recentSearch": "Recent search",
|
|
142
|
+
"loading": "Loading, please wait",
|
|
143
|
+
"searchResult": "Search result",
|
|
144
|
+
"cancel": "Cancel",
|
|
145
|
+
"notFound": "Game not found!",
|
|
146
|
+
"notFoundText": "Please type the correct name of the game to start to play.",
|
|
147
|
+
"noRecentSearches": "No recent searches yet. Search for any of our games."
|
|
148
|
+
}
|
|
149
|
+
}
|