@everymatrix/player-active-bonuses 0.0.258 → 0.0.261
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/player-active-bonuses",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.261",
|
|
4
4
|
"main": "dist/player-active-bonuses",
|
|
5
5
|
"svelte": "src/index.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "a93c0ae8104c039af7d54949a0889c11bca83acb"
|
|
40
40
|
}
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|
let bonusCode:string = '';
|
|
23
23
|
|
|
24
|
-
let filter:string = 'status=active,type=standard,type=
|
|
24
|
+
let filter:string = 'status=active,type=standard,type=freeround,type=freebet';
|
|
25
25
|
|
|
26
26
|
let bonusesPrevPage:number = 0;
|
|
27
27
|
let bonusesNextPage:number = 0;
|
|
@@ -128,13 +128,13 @@
|
|
|
128
128
|
getActiveBonuses(0);
|
|
129
129
|
window.postMessage({ type: 'WidgetNotification', data: {
|
|
130
130
|
type: 'success',
|
|
131
|
-
message: '
|
|
131
|
+
message: $_('activeBonuses.successMessage')
|
|
132
132
|
}}, window.location.href);
|
|
133
133
|
} else {
|
|
134
134
|
invalidBonusCode = true;
|
|
135
135
|
window.postMessage({ type: 'WidgetNotification', data: {
|
|
136
136
|
type: 'error',
|
|
137
|
-
message: '
|
|
137
|
+
message: $_('activeBonuses.errorMessage')
|
|
138
138
|
}}, window.location.href);
|
|
139
139
|
}
|
|
140
140
|
});
|
|
@@ -270,13 +270,6 @@
|
|
|
270
270
|
{/if}
|
|
271
271
|
|
|
272
272
|
<style lang="scss">
|
|
273
|
-
//This function does a multiplication
|
|
274
|
-
// in order to work with px the
|
|
275
|
-
// same way as working with em
|
|
276
|
-
@function ttp($value) {
|
|
277
|
-
$multiplicator: 16px;
|
|
278
|
-
@return $value * $multiplicator;
|
|
279
|
-
}
|
|
280
273
|
|
|
281
274
|
:host {
|
|
282
275
|
font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
|
|
@@ -322,14 +315,14 @@
|
|
|
322
315
|
color: var(--emfe-w-color-gray-300, #58586B);
|
|
323
316
|
display: flex;
|
|
324
317
|
flex-direction: column;
|
|
325
|
-
padding-bottom:
|
|
318
|
+
padding-bottom: 30px;
|
|
326
319
|
position: relative;
|
|
327
320
|
width: 70%;
|
|
328
321
|
|
|
329
322
|
label {
|
|
330
|
-
font-size:
|
|
323
|
+
font-size: 14px;
|
|
331
324
|
font-weight: 300;
|
|
332
|
-
padding-bottom:
|
|
325
|
+
padding-bottom: 5px;
|
|
333
326
|
}
|
|
334
327
|
|
|
335
328
|
&.BonusCodeContainerMobile {
|
|
@@ -345,15 +338,13 @@
|
|
|
345
338
|
|
|
346
339
|
.BonusCodeInput {
|
|
347
340
|
width: 70%;
|
|
348
|
-
height:
|
|
341
|
+
height: 44px;
|
|
349
342
|
border: 1px solid var(--emfe-w-color-gray-100, #E6E6E6);
|
|
350
|
-
border-radius:
|
|
351
|
-
padding: ttp(0.3125);
|
|
352
|
-
font-size: ttp(0.875);
|
|
343
|
+
border-radius: 5px;
|
|
353
344
|
box-sizing: border-box;
|
|
354
|
-
padding:
|
|
355
|
-
font-size:
|
|
356
|
-
line-height:
|
|
345
|
+
padding: 5px 15px;
|
|
346
|
+
font-size: 16px;
|
|
347
|
+
line-height: 18px;
|
|
357
348
|
&:focus {
|
|
358
349
|
outline-color: var(--emfe-w-color-primary, #D0046C);
|
|
359
350
|
}
|
package/src/translations.js
CHANGED
|
@@ -8,7 +8,9 @@ export const PlayerActiveBonusesTranslations = {
|
|
|
8
8
|
noActiveBonuses: `You have no active bonuses at the moment.`,
|
|
9
9
|
forfeitBonus: `Are you sure want to forfeit bonus?`,
|
|
10
10
|
forfeitBonusConfirm: `Confirm`,
|
|
11
|
-
forfeitBonusCancel: `Cancel
|
|
11
|
+
forfeitBonusCancel: `Cancel`,
|
|
12
|
+
successMessage: `Bonus claimed!`,
|
|
13
|
+
errorMessage: `Invalid bonus`
|
|
12
14
|
}
|
|
13
15
|
},
|
|
14
16
|
ro: {
|
|
@@ -20,7 +22,9 @@ export const PlayerActiveBonusesTranslations = {
|
|
|
20
22
|
noActiveBonuses: `Nu ai niciun bonus activ în acest moment.`,
|
|
21
23
|
forfeitBonus: `Ești sigur că vrei să anulezi acest bonus și câștigurile provenite din acest bonus?`,
|
|
22
24
|
forfeitBonusConfirm: `Confirmă`,
|
|
23
|
-
forfeitBonusCancel: `Anuleaz
|
|
25
|
+
forfeitBonusCancel: `Anulează`,
|
|
26
|
+
successMessage: `Bonus revendicat!`,
|
|
27
|
+
errorMessage: `Bonus invalid`
|
|
24
28
|
}
|
|
25
29
|
}
|
|
26
30
|
};
|