@everymatrix/casino-jackpot-winner 1.44.0 → 1.45.0
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-jackpot-winner/casino-jackpot-winner.esm.js +1 -1
- package/dist/casino-jackpot-winner/p-ac5b2e9b.entry.js +1 -0
- package/dist/casino-jackpot-winner/p-d8aa97f8.js +2 -0
- package/dist/casino-jackpot-winner/p-e1255160.js +1 -0
- package/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/casino-jackpot-winner.cjs.entry.js +299 -787
- package/dist/cjs/casino-jackpot-winner.cjs.js +17 -11
- package/dist/cjs/index-043b8326.js +1191 -0
- package/dist/cjs/loader.cjs.js +7 -13
- package/dist/collection/collection-manifest.json +3 -3
- package/dist/collection/components/casino-jackpot-winner/casino-jackpot-winner.css +1 -1
- package/dist/collection/components/casino-jackpot-winner/casino-jackpot-winner.js +181 -199
- package/dist/collection/components/casino-jackpot-winner/index.js +1 -0
- package/dist/collection/decorators/base.decorator.js +9 -9
- package/dist/collection/decorators/locale.decorator.js +27 -27
- package/dist/collection/decorators/style.decorator.js +21 -21
- package/dist/collection/decorators/style.util.js +28 -28
- package/dist/collection/renders/Layout.js +2 -3
- package/dist/collection/renders/ListLoader.js +8 -8
- package/dist/collection/renders/Loader.js +2 -7
- package/dist/collection/renders/User.js +10 -13
- package/dist/collection/renders/images.js +15 -15
- package/dist/collection/renders/index.js +10 -10
- package/dist/collection/utils/business.js +10 -10
- package/dist/collection/utils/currencySymbols.js +170 -170
- package/dist/collection/utils/fetch.js +12 -12
- package/dist/collection/utils/translation.js +9 -9
- package/dist/collection/utils/utils.js +3 -0
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/casino-jackpot-winner.entry.js +299 -787
- package/dist/esm/casino-jackpot-winner.js +14 -11
- package/dist/esm/index-a3763668.js +1163 -0
- package/dist/esm/loader.js +7 -13
- package/dist/stencil.config.dev.js +17 -0
- package/dist/stencil.config.js +12 -29
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-jackpot-winner/.stencil/packages/stencil/casino-jackpot-winner/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-jackpot-winner/.stencil/packages/stencil/casino-jackpot-winner/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/casino-jackpot-winner/casino-jackpot-winner.d.ts +44 -44
- package/dist/types/components/casino-jackpot-winner/index.d.ts +1 -0
- package/dist/types/renders/ListLoader.d.ts +4 -4
- package/dist/types/renders/User.d.ts +2 -2
- package/dist/types/renders/index.d.ts +4 -4
- package/dist/types/stencil-public-runtime.d.ts +142 -33
- package/dist/types/utils/currencySymbols.d.ts +170 -170
- package/dist/types/utils/translation.d.ts +10 -10
- package/dist/types/utils/utils.d.ts +1 -0
- package/loader/cdn.js +1 -3
- package/loader/index.cjs.js +1 -3
- package/loader/index.d.ts +13 -1
- package/loader/index.es2017.js +1 -3
- package/loader/index.js +1 -3
- package/loader/package.json +1 -0
- package/package.json +8 -8
- package/dist/assets/logo.svg +0 -1
- package/dist/assets/winner1.svg +0 -59
- package/dist/assets/winner2.svg +0 -37
- package/dist/assets/winner3.svg +0 -124
- package/dist/assets/winner4.svg +0 -88
- package/dist/casino-jackpot-winner/p-4584d40b.entry.js +0 -1
- package/dist/casino-jackpot-winner/p-849daf58.js +0 -1
- package/dist/cjs/index-a0c6f675.js +0 -1298
- package/dist/components/casino-jackpot-winner.d.ts +0 -11
- package/dist/components/casino-jackpot-winner.js +0 -864
- package/dist/components/index.d.ts +0 -26
- package/dist/components/index.js +0 -1
- package/dist/esm/index-426eb6f0.js +0 -1271
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/casino-jackpot-winner/.stencil/packages/casino-jackpot-winner/stencil.config.d.ts +0 -2
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
export const fetchText = async (url) => {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
let styleCode;
|
|
3
|
+
try {
|
|
4
|
+
let res = await fetch(url);
|
|
5
|
+
styleCode = await res.text();
|
|
6
|
+
}
|
|
7
|
+
catch (err) {
|
|
8
|
+
console.error('error ', err);
|
|
9
|
+
}
|
|
10
|
+
return styleCode;
|
|
11
11
|
};
|
|
12
12
|
export const setStyle = (container, index, styleCode) => {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
const sheet = new CSSStyleSheet();
|
|
14
|
+
styleCode && sheet.insertRule(styleCode);
|
|
15
|
+
try {
|
|
16
|
+
container.adoptedStyleSheets[index] = sheet;
|
|
17
|
+
}
|
|
18
|
+
catch (err) { }
|
|
19
19
|
};
|
|
20
20
|
export const addStyle = (container, index, styleCode) => {
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
const sheet = container.adoptedStyleSheets[index];
|
|
22
|
+
sheet.insertRule(styleCode);
|
|
23
23
|
};
|
|
24
24
|
const getCode = async (url) => {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
let styleCode;
|
|
26
|
+
if (url) {
|
|
27
|
+
styleCode = await fetchText(url);
|
|
28
|
+
}
|
|
29
|
+
return styleCode;
|
|
30
30
|
};
|
|
31
31
|
export const setClientStyling = (root, styleCode) => {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
if (!root)
|
|
33
|
+
return;
|
|
34
|
+
setStyle(root, 1, styleCode);
|
|
35
35
|
};
|
|
36
36
|
export const setClientStylingUrl = async (root, url) => {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
if (!root)
|
|
38
|
+
return;
|
|
39
|
+
setStyle(root, 2, await getCode(url));
|
|
40
40
|
};
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import { h } from
|
|
2
|
-
export const renderLayout = (rows) => (h("div", { class: "RootContainer" },
|
|
3
|
-
h("div", { class: "CoreContainer" }, rows.map(row => h("div", { class: "Row" }, row)))));
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
export const renderLayout = (rows) => (h("div", { class: "RootContainer" }, h("div", { class: "CoreContainer" }, rows.map(row => h("div", { class: "Row" }, row)))));
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { Fragment, h } from "@stencil/core";
|
|
2
2
|
import { Loader } from "./Loader";
|
|
3
3
|
export const ListLoader = ({ isLoading, list, render, renderNotFound }) => {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
else {
|
|
8
|
-
if (list === null || list === void 0 ? void 0 : list.length) {
|
|
9
|
-
return render();
|
|
4
|
+
if (isLoading) {
|
|
5
|
+
return (h(Fragment, null, Loader));
|
|
10
6
|
}
|
|
11
7
|
else {
|
|
12
|
-
|
|
8
|
+
if (list === null || list === void 0 ? void 0 : list.length) {
|
|
9
|
+
return render();
|
|
10
|
+
}
|
|
11
|
+
else {
|
|
12
|
+
return renderNotFound();
|
|
13
|
+
}
|
|
13
14
|
}
|
|
14
|
-
}
|
|
15
15
|
};
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
import { h } from
|
|
2
|
-
export const Loader = h("div", { class: "Loader" },
|
|
3
|
-
h("div", { class: "lds-ellipsis" },
|
|
4
|
-
h("div", null),
|
|
5
|
-
h("div", null),
|
|
6
|
-
h("div", null),
|
|
7
|
-
h("div", null)));
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
export const Loader = h("div", { class: "Loader" }, h("div", { class: "lds-ellipsis" }, h("div", null), h("div", null), h("div", null), h("div", null)));
|
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
import { h } from
|
|
2
|
-
import { currencySymbols } from
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { currencySymbols } from "../utils/currencySymbols";
|
|
3
3
|
export const renderUser = (user, index, currency) => {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
h("div", { class: `RankImageWrapper RankImageBg${index + 1}` }),
|
|
7
|
-
h("div", { class: "AmountWrapper" },
|
|
8
|
-
h("button", { class: 'Amount', innerHTML: `${user.specifiedCurrencyAmount} ${currencySymbols[currency]}` }))));
|
|
4
|
+
const style = index === 0 ? 'UserFirst' : 'UserOther';
|
|
5
|
+
return (h("div", { class: `User ${style}` }, h("div", { class: `RankImageWrapper RankImageBg${index + 1}` }), h("div", { class: "AmountWrapper" }, h("button", { class: 'Amount', innerHTML: `${user.specifiedCurrencyAmount} ${currencySymbols[currency]}` }))));
|
|
9
6
|
};
|
|
10
7
|
export const renderUsers = (users, currency) => {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
8
|
+
const renderedUsers = users.map((user, index) => renderUser(user, index, currency));
|
|
9
|
+
return {
|
|
10
|
+
UsersFirst: renderedUsers[0],
|
|
11
|
+
// @ts-ignore
|
|
12
|
+
UsersRest: renderedUsers.filter((u, i) => i !== 0),
|
|
13
|
+
};
|
|
17
14
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { addStyle } from
|
|
2
|
-
import logoIcon from
|
|
3
|
-
import winner1 from
|
|
4
|
-
import winner2 from
|
|
5
|
-
import winner3 from
|
|
6
|
-
import winner4 from
|
|
1
|
+
import { addStyle } from "../decorators/style.util";
|
|
2
|
+
import logoIcon from "../static/logo.svg";
|
|
3
|
+
import winner1 from "../static/winner1.svg";
|
|
4
|
+
import winner2 from "../static/winner2.svg";
|
|
5
|
+
import winner3 from "../static/winner3.svg";
|
|
6
|
+
import winner4 from "../static/winner4.svg";
|
|
7
7
|
export const winnerIcons = [
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
winner1,
|
|
9
|
+
winner2,
|
|
10
|
+
winner3,
|
|
11
|
+
winner4
|
|
12
12
|
];
|
|
13
13
|
export const setDefaultStyle = (root) => {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
const addStyleToRootDefault = (styleCode) => addStyle(root, 0, styleCode);
|
|
15
|
+
addStyleToRootDefault(`.Logo { ${getRawImageStyle(logoIcon)} }`);
|
|
16
|
+
winnerIcons.map((svg, index) => {
|
|
17
|
+
addStyleToRootDefault(`.RankImageBg${index + 1} { ${getRawImageStyle(svg)} }`);
|
|
18
|
+
});
|
|
19
19
|
};
|
|
20
20
|
const getSvgSource = (inlineSvg) => `data:image/svg+xml;base64,${window.btoa(inlineSvg)}`;
|
|
21
21
|
const getRawImageStyle = (inlineSvg) => `background-image: url(${getSvgSource(inlineSvg)})`;
|
|
@@ -3,15 +3,15 @@ import { renderLayout } from "./Layout";
|
|
|
3
3
|
import { h } from "@stencil/core";
|
|
4
4
|
import { ListLoader } from "./ListLoader";
|
|
5
5
|
const renderMain = (users, currency) => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
6
|
+
const { UsersFirst, UsersRest } = renderUsers(users, currency);
|
|
7
|
+
const Logo = h("div", { class: "Logo" });
|
|
8
|
+
const UsersFirstWithLogo = [
|
|
9
|
+
Logo,
|
|
10
|
+
UsersFirst,
|
|
11
|
+
];
|
|
12
|
+
return renderLayout([
|
|
13
|
+
UsersFirstWithLogo,
|
|
14
|
+
UsersRest,
|
|
15
|
+
]);
|
|
16
16
|
};
|
|
17
17
|
export const RenderJackpotWinner = ({ isLoading, users, currency, locale }) => h(ListLoader, { isLoading: isLoading, list: users, renderNotFound: () => h("span", { innerHTML: locale.NotFound }), render: () => renderMain(users, currency) });
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { fetcher, getUrl } from "./fetch";
|
|
2
2
|
export const getWinners = async (endpoint, language, currency) => {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
const params = {
|
|
4
|
+
limit: 4,
|
|
5
|
+
device: 'All',
|
|
6
|
+
language,
|
|
7
|
+
specifiedCurrency: currency || 'EUR',
|
|
8
|
+
isAscByAmount: false
|
|
9
|
+
};
|
|
10
|
+
const url = getUrl(endpoint + `/casino/jackpot-winners`, params);
|
|
11
|
+
const res = await fetcher(url);
|
|
12
|
+
return (res === null || res === void 0 ? void 0 : res.items) || [];
|
|
13
13
|
};
|
|
@@ -1,172 +1,172 @@
|
|
|
1
1
|
export const currencySymbols = {
|
|
2
|
-
|
|
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
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
2
|
+
'AED': 'د.إ',
|
|
3
|
+
'AFN': '؋',
|
|
4
|
+
'ALL': 'L',
|
|
5
|
+
'AMD': '֏',
|
|
6
|
+
'ANG': 'ƒ',
|
|
7
|
+
'AOA': 'Kz',
|
|
8
|
+
'ARS': '$',
|
|
9
|
+
'AUD': '$',
|
|
10
|
+
'AWG': 'ƒ',
|
|
11
|
+
'AZN': 'ман',
|
|
12
|
+
'BAM': 'KM',
|
|
13
|
+
'BBD': '$',
|
|
14
|
+
'BDT': '৳',
|
|
15
|
+
'BGN': 'лв',
|
|
16
|
+
'BHD': '.د.ب',
|
|
17
|
+
'BIF': 'FBu',
|
|
18
|
+
'BMD': '$',
|
|
19
|
+
'BND': '$',
|
|
20
|
+
'BOB': '$b',
|
|
21
|
+
'BRL': 'R$',
|
|
22
|
+
'BSD': '$',
|
|
23
|
+
'BTC': '฿',
|
|
24
|
+
'BTN': 'Nu.',
|
|
25
|
+
'BWP': 'P',
|
|
26
|
+
'BYR': 'p.',
|
|
27
|
+
'BZD': 'BZ$',
|
|
28
|
+
'CAD': '$',
|
|
29
|
+
'CDF': 'FC',
|
|
30
|
+
'CHF': 'CHF',
|
|
31
|
+
'CLP': '$',
|
|
32
|
+
'CNY': '¥',
|
|
33
|
+
'COP': '$',
|
|
34
|
+
'CRC': '₡',
|
|
35
|
+
'CUC': '$',
|
|
36
|
+
'CUP': '₱',
|
|
37
|
+
'CVE': '$',
|
|
38
|
+
'CZK': 'Kč',
|
|
39
|
+
'DJF': 'Fdj',
|
|
40
|
+
'DKK': 'kr',
|
|
41
|
+
'DOP': 'RD$',
|
|
42
|
+
'DZD': 'دج',
|
|
43
|
+
'EEK': 'kr',
|
|
44
|
+
'EGP': '£',
|
|
45
|
+
'ERN': 'Nfk',
|
|
46
|
+
'ETB': 'Br',
|
|
47
|
+
'ETH': 'Ξ',
|
|
48
|
+
'EUR': '€',
|
|
49
|
+
'FJD': '$',
|
|
50
|
+
'FKP': '£',
|
|
51
|
+
'GBP': '£',
|
|
52
|
+
'GEL': '₾',
|
|
53
|
+
'GGP': '£',
|
|
54
|
+
'GHC': '₵',
|
|
55
|
+
'GHS': 'GH₵',
|
|
56
|
+
'GIP': '£',
|
|
57
|
+
'GMD': 'D',
|
|
58
|
+
'GNF': 'FG',
|
|
59
|
+
'GTQ': 'Q',
|
|
60
|
+
'GYD': '$',
|
|
61
|
+
'HKD': '$',
|
|
62
|
+
'HNL': 'L',
|
|
63
|
+
'HRK': 'kn',
|
|
64
|
+
'HTG': 'G',
|
|
65
|
+
'HUF': 'Ft',
|
|
66
|
+
'IDR': 'Rp',
|
|
67
|
+
'ILS': '₪',
|
|
68
|
+
'IMP': '£',
|
|
69
|
+
'INR': '₹',
|
|
70
|
+
'IQD': 'ع.د',
|
|
71
|
+
'IRR': '﷼',
|
|
72
|
+
'ISK': 'kr',
|
|
73
|
+
'JEP': '£',
|
|
74
|
+
'JMD': 'J$',
|
|
75
|
+
'JOD': 'JD',
|
|
76
|
+
'JPY': '¥',
|
|
77
|
+
'KES': 'KSh',
|
|
78
|
+
'KGS': 'лв',
|
|
79
|
+
'KHR': '៛',
|
|
80
|
+
'KMF': 'CF',
|
|
81
|
+
'KPW': '₩',
|
|
82
|
+
'KRW': '₩',
|
|
83
|
+
'KWD': 'KD',
|
|
84
|
+
'KYD': '$',
|
|
85
|
+
'KZT': 'лв',
|
|
86
|
+
'LAK': '₭',
|
|
87
|
+
'LBP': '£',
|
|
88
|
+
'LKR': '₨',
|
|
89
|
+
'LRD': '$',
|
|
90
|
+
'LSL': 'M',
|
|
91
|
+
'LTC': 'Ł',
|
|
92
|
+
'LTL': 'Lt',
|
|
93
|
+
'LVL': 'Ls',
|
|
94
|
+
'LYD': 'LD',
|
|
95
|
+
'MAD': 'MAD',
|
|
96
|
+
'MDL': 'lei',
|
|
97
|
+
'MGA': 'Ar',
|
|
98
|
+
'MKD': 'ден',
|
|
99
|
+
'MMK': 'K',
|
|
100
|
+
'MNT': '₮',
|
|
101
|
+
'MOP': 'MOP$',
|
|
102
|
+
'MRO': 'UM',
|
|
103
|
+
'MUR': '₨',
|
|
104
|
+
'MVR': 'Rf',
|
|
105
|
+
'MWK': 'MK',
|
|
106
|
+
'MXN': '$',
|
|
107
|
+
'MYR': 'RM',
|
|
108
|
+
'MZN': 'MT',
|
|
109
|
+
'NAD': '$',
|
|
110
|
+
'NGN': '₦',
|
|
111
|
+
'NIO': 'C$',
|
|
112
|
+
'NOK': 'kr',
|
|
113
|
+
'NPR': '₨',
|
|
114
|
+
'NZD': '$',
|
|
115
|
+
'OMR': '﷼',
|
|
116
|
+
'PAB': 'B/.',
|
|
117
|
+
'PEN': 'S/.',
|
|
118
|
+
'PGK': 'K',
|
|
119
|
+
'PHP': '₱',
|
|
120
|
+
'PKR': '₨',
|
|
121
|
+
'PLN': 'zł',
|
|
122
|
+
'PYG': 'Gs',
|
|
123
|
+
'QAR': '﷼',
|
|
124
|
+
'RMB': '¥',
|
|
125
|
+
'RON': 'lei',
|
|
126
|
+
'RSD': 'Дин.',
|
|
127
|
+
'RUB': '₽',
|
|
128
|
+
'RWF': 'R₣',
|
|
129
|
+
'SAR': '﷼',
|
|
130
|
+
'SBD': '$',
|
|
131
|
+
'SCR': '₨',
|
|
132
|
+
'SDG': 'ج.س.',
|
|
133
|
+
'SEK': 'kr',
|
|
134
|
+
'SGD': '$',
|
|
135
|
+
'SHP': '£',
|
|
136
|
+
'SLL': 'Le',
|
|
137
|
+
'SOS': 'S',
|
|
138
|
+
'SRD': '$',
|
|
139
|
+
'SSP': '£',
|
|
140
|
+
'STD': 'Db',
|
|
141
|
+
'SVC': '$',
|
|
142
|
+
'SYP': '£',
|
|
143
|
+
'SZL': 'E',
|
|
144
|
+
'THB': '฿',
|
|
145
|
+
'TJS': 'SM',
|
|
146
|
+
'TMT': 'T',
|
|
147
|
+
'TND': 'د.ت',
|
|
148
|
+
'TOP': 'T$',
|
|
149
|
+
'TRL': '₤',
|
|
150
|
+
'TRY': '₺',
|
|
151
|
+
'TTD': 'TT$',
|
|
152
|
+
'TVD': '$',
|
|
153
|
+
'TWD': 'NT$',
|
|
154
|
+
'TZS': 'TSh',
|
|
155
|
+
'UAH': '₴',
|
|
156
|
+
'UGX': 'USh',
|
|
157
|
+
'USD': '$',
|
|
158
|
+
'UYU': '$U',
|
|
159
|
+
'UZS': 'лв',
|
|
160
|
+
'VEF': 'Bs',
|
|
161
|
+
'VND': '₫',
|
|
162
|
+
'VUV': 'VT',
|
|
163
|
+
'WST': 'WS$',
|
|
164
|
+
'XAF': 'FCFA',
|
|
165
|
+
'XBT': 'Ƀ',
|
|
166
|
+
'XCD': '$',
|
|
167
|
+
'XOF': 'CFA',
|
|
168
|
+
'XPF': '₣',
|
|
169
|
+
'YER': '﷼',
|
|
170
|
+
'ZAR': 'R',
|
|
171
|
+
'ZWD': 'Z$',
|
|
172
172
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
export const getUrl = (path, params = {}) => {
|
|
2
|
-
|
|
2
|
+
return path + '?' + Object.keys(params).map(key => `${key}=${params[key]}`).join('&');
|
|
3
3
|
};
|
|
4
4
|
export const fetcher = async (input, init = {}) => {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
5
|
+
let res;
|
|
6
|
+
// @ts-ignore
|
|
7
|
+
res = await fetch(input, init);
|
|
8
|
+
res = await res.text();
|
|
9
|
+
try {
|
|
10
|
+
res = JSON.parse(res);
|
|
11
|
+
}
|
|
12
|
+
catch (e) {
|
|
13
|
+
console.error(e);
|
|
14
|
+
}
|
|
15
|
+
return res;
|
|
16
16
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export const translation = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
en: {
|
|
3
|
+
NotFound: 'Winners Not Found',
|
|
4
|
+
},
|
|
5
|
+
'zh-hk': {
|
|
6
|
+
NotFound: '未找到Winners'
|
|
7
|
+
},
|
|
8
|
+
hr: {
|
|
9
|
+
NotFound: 'Dobitnici nisu pronađeni'
|
|
10
|
+
}
|
|
11
11
|
};
|