@everymatrix/player-bonus-card 0.0.367 → 0.0.369
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/README.md +30 -30
- package/dist/player-bonus-card.js.map +1 -1
- package/index.html +21 -21
- package/index.js +1 -1
- package/package.json +2 -2
- package/public/reset.css +47 -47
- package/rollup.config.js +67 -67
- package/src/PlayerBonusCard.svelte +164 -164
- package/src/i18n.js +27 -27
- package/src/index.ts +4 -4
- package/src/translations.js +68 -68
- package/stories/PlayerBonusCard.stories.js +13 -13
- package/tsconfig.json +6 -6
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 PlayerBonusCard from './PlayerBonusCard.svelte';
|
|
2
|
-
|
|
3
|
-
!customElements.get('player-bonus-card') && customElements.define('player-bonus-card', PlayerBonusCard);
|
|
4
|
-
export default PlayerBonusCard;
|
|
1
|
+
import PlayerBonusCard from './PlayerBonusCard.svelte';
|
|
2
|
+
|
|
3
|
+
!customElements.get('player-bonus-card') && customElements.define('player-bonus-card', PlayerBonusCard);
|
|
4
|
+
export default PlayerBonusCard;
|
package/src/translations.js
CHANGED
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
export const PlayerBonusCardTranslations = {
|
|
2
|
-
en: {
|
|
3
|
-
bonusCard: {
|
|
4
|
-
date: `Granted date:`,
|
|
5
|
-
bonusName: `Bonus Name`,
|
|
6
|
-
bonusType: `Bonus Type`,
|
|
7
|
-
bonusAmount: `Bonus Amount`,
|
|
8
|
-
wageringAmount: `Wagering Amount`,
|
|
9
|
-
remainingBonus: `Remaining Bonus Amount`,
|
|
10
|
-
forfeitBonus: `Forfeit Bonus`
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
|
-
zh: {
|
|
14
|
-
bonusCard: {
|
|
15
|
-
date: `授予日期:`,
|
|
16
|
-
bonusName: `獎金名稱`,
|
|
17
|
-
bonusType: `獎金類型`,
|
|
18
|
-
bonusAmount: `獎金金額`,
|
|
19
|
-
wageringAmount: `投注金額`,
|
|
20
|
-
remainingBonus: `剩餘紅利金額`,
|
|
21
|
-
forfeitBonus: `沒收獎金`
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
fr: {
|
|
25
|
-
bonusCard: {
|
|
26
|
-
date: `Date d'attribution:`,
|
|
27
|
-
bonusName: `Nom du bonus`,
|
|
28
|
-
bonusType: `Type de bonus`,
|
|
29
|
-
bonusAmount: `Montant du bonus`,
|
|
30
|
-
wageringAmount: `Montant de la mise`,
|
|
31
|
-
remainingBonus: `Montant du bonus restant`,
|
|
32
|
-
forfeitBonus: `Supprimer le bonus`
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
ro: {
|
|
36
|
-
bonusCard: {
|
|
37
|
-
date: `Dată Alocare:`,
|
|
38
|
-
bonusName: `Nume bonus`,
|
|
39
|
-
bonusType: `Tip de bonus`,
|
|
40
|
-
bonusAmount: `Sumă`,
|
|
41
|
-
wageringAmount: `Sumă de pariat`,
|
|
42
|
-
remainingBonus: `Bonus rămas`,
|
|
43
|
-
forfeitBonus: `Anulează bonusul`
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
es: {
|
|
47
|
-
bonusCard: {
|
|
48
|
-
date: `Fecha de entrega del bono:`,
|
|
49
|
-
bonusName: `Nombre del bono`,
|
|
50
|
-
bonusType: `Tipo de bono`,
|
|
51
|
-
bonusAmount: `Cantidad del bono`,
|
|
52
|
-
wageringAmount: `Cantidad de apuesta`,
|
|
53
|
-
remainingBonus: `Cantidad de bonificación restante`,
|
|
54
|
-
forfeitBonus: `Bono de pérdida`
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
pt: {
|
|
58
|
-
bonusCard: {
|
|
59
|
-
date: `Data de atribuição do bônus:`,
|
|
60
|
-
bonusName: `Nome do bônus`,
|
|
61
|
-
bonusType: `Tipo de bônus`,
|
|
62
|
-
bonusAmount: `Valor do bônus`,
|
|
63
|
-
wageringAmount: `Valor da aposta`,
|
|
64
|
-
remainingBonus: `Valor do bônus restante`,
|
|
65
|
-
forfeitBonus: `Bônus de Perda`
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
};
|
|
1
|
+
export const PlayerBonusCardTranslations = {
|
|
2
|
+
en: {
|
|
3
|
+
bonusCard: {
|
|
4
|
+
date: `Granted date:`,
|
|
5
|
+
bonusName: `Bonus Name`,
|
|
6
|
+
bonusType: `Bonus Type`,
|
|
7
|
+
bonusAmount: `Bonus Amount`,
|
|
8
|
+
wageringAmount: `Wagering Amount`,
|
|
9
|
+
remainingBonus: `Remaining Bonus Amount`,
|
|
10
|
+
forfeitBonus: `Forfeit Bonus`
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
zh: {
|
|
14
|
+
bonusCard: {
|
|
15
|
+
date: `授予日期:`,
|
|
16
|
+
bonusName: `獎金名稱`,
|
|
17
|
+
bonusType: `獎金類型`,
|
|
18
|
+
bonusAmount: `獎金金額`,
|
|
19
|
+
wageringAmount: `投注金額`,
|
|
20
|
+
remainingBonus: `剩餘紅利金額`,
|
|
21
|
+
forfeitBonus: `沒收獎金`
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
fr: {
|
|
25
|
+
bonusCard: {
|
|
26
|
+
date: `Date d'attribution:`,
|
|
27
|
+
bonusName: `Nom du bonus`,
|
|
28
|
+
bonusType: `Type de bonus`,
|
|
29
|
+
bonusAmount: `Montant du bonus`,
|
|
30
|
+
wageringAmount: `Montant de la mise`,
|
|
31
|
+
remainingBonus: `Montant du bonus restant`,
|
|
32
|
+
forfeitBonus: `Supprimer le bonus`
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
ro: {
|
|
36
|
+
bonusCard: {
|
|
37
|
+
date: `Dată Alocare:`,
|
|
38
|
+
bonusName: `Nume bonus`,
|
|
39
|
+
bonusType: `Tip de bonus`,
|
|
40
|
+
bonusAmount: `Sumă`,
|
|
41
|
+
wageringAmount: `Sumă de pariat`,
|
|
42
|
+
remainingBonus: `Bonus rămas`,
|
|
43
|
+
forfeitBonus: `Anulează bonusul`
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
es: {
|
|
47
|
+
bonusCard: {
|
|
48
|
+
date: `Fecha de entrega del bono:`,
|
|
49
|
+
bonusName: `Nombre del bono`,
|
|
50
|
+
bonusType: `Tipo de bono`,
|
|
51
|
+
bonusAmount: `Cantidad del bono`,
|
|
52
|
+
wageringAmount: `Cantidad de apuesta`,
|
|
53
|
+
remainingBonus: `Cantidad de bonificación restante`,
|
|
54
|
+
forfeitBonus: `Bono de pérdida`
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
pt: {
|
|
58
|
+
bonusCard: {
|
|
59
|
+
date: `Data de atribuição do bônus:`,
|
|
60
|
+
bonusName: `Nome do bônus`,
|
|
61
|
+
bonusType: `Tipo de bônus`,
|
|
62
|
+
bonusAmount: `Valor do bônus`,
|
|
63
|
+
wageringAmount: `Valor da aposta`,
|
|
64
|
+
remainingBonus: `Valor do bônus restante`,
|
|
65
|
+
forfeitBonus: `Bônus de Perda`
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { html } from 'lit-element';
|
|
2
|
-
|
|
3
|
-
import PlayerBonusCard from '../src/PlayerBonusCard';
|
|
4
|
-
|
|
5
|
-
// This default export determines where your story goes in the story list
|
|
6
|
-
export default {
|
|
7
|
-
title: 'PlayerBonusCard',
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
// 👇 We create a “template” of how args map to rendering
|
|
11
|
-
const PlayerBonusCard = ({ aProperty }) => html`<player-bonus-card></player-bonus-card>`;
|
|
12
|
-
|
|
13
|
-
export const FirstStory = PlayerBonusCard.bind({});
|
|
1
|
+
import { html } from 'lit-element';
|
|
2
|
+
|
|
3
|
+
import PlayerBonusCard from '../src/PlayerBonusCard';
|
|
4
|
+
|
|
5
|
+
// This default export determines where your story goes in the story list
|
|
6
|
+
export default {
|
|
7
|
+
title: 'PlayerBonusCard',
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
// 👇 We create a “template” of how args map to rendering
|
|
11
|
+
const PlayerBonusCard = ({ aProperty }) => html`<player-bonus-card></player-bonus-card>`;
|
|
12
|
+
|
|
13
|
+
export const FirstStory = PlayerBonusCard.bind({});
|
package/tsconfig.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "@tsconfig/svelte/tsconfig.json",
|
|
3
|
-
|
|
4
|
-
"include": ["src/**/*"],
|
|
5
|
-
"exclude": ["node_modules/*", "__sapper__/*", "public/*"]
|
|
6
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"extends": "@tsconfig/svelte/tsconfig.json",
|
|
3
|
+
|
|
4
|
+
"include": ["src/**/*"],
|
|
5
|
+
"exclude": ["node_modules/*", "__sapper__/*", "public/*"]
|
|
6
|
+
}
|