koylu-vampir-design 1.0.47 → 1.0.49
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BadgeWins.d.ts","sourceRoot":"","sources":["../../src/Scores/BadgeWins.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,aAAK,KAAK,GAAG;IACX,MAAM,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IACpB,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,
|
|
1
|
+
{"version":3,"file":"BadgeWins.d.ts","sourceRoot":"","sources":["../../src/Scores/BadgeWins.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,aAAK,KAAK,GAAG;IACX,MAAM,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IACpB,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAwDrC,CAAC"}
|
package/dist/Scores/BadgeWins.js
CHANGED
|
@@ -13,14 +13,26 @@ const BadgeWins = ({ badges, roles }) => {
|
|
|
13
13
|
return null;
|
|
14
14
|
}
|
|
15
15
|
function getBadgeTitle(badge) {
|
|
16
|
-
const cleanName = badge.replace("_w", "");
|
|
16
|
+
const cleanName = badge.replace("_w", "").replace("b_", "");
|
|
17
17
|
const found = roles.find((item) => item.key === cleanName);
|
|
18
18
|
if (found) {
|
|
19
19
|
return found.name;
|
|
20
20
|
}
|
|
21
|
+
if (badge.indexOf("b_") !== -1) {
|
|
22
|
+
return badge.replace("b_", "");
|
|
23
|
+
}
|
|
24
|
+
if (badge.indexOf("egitim") !== -1) {
|
|
25
|
+
return "Eğitimci olarak";
|
|
26
|
+
}
|
|
21
27
|
return "";
|
|
22
28
|
}
|
|
23
29
|
function getBadgeDescription(badge) {
|
|
30
|
+
if (badge.indexOf("egitim") !== -1) {
|
|
31
|
+
return "Eğitim kampında en iyisi";
|
|
32
|
+
}
|
|
33
|
+
if (badge.indexOf("b_") === 0) {
|
|
34
|
+
return "adanın muhtarı";
|
|
35
|
+
}
|
|
24
36
|
const isWeekly = badge.indexOf("_w") > 0;
|
|
25
37
|
return isWeekly
|
|
26
38
|
? "rolünde bu haftanın en iyisi"
|
|
@@ -28,11 +40,11 @@ const BadgeWins = ({ badges, roles }) => {
|
|
|
28
40
|
}
|
|
29
41
|
const reversedBadges = [...badges.reverse()];
|
|
30
42
|
return (react_1.default.createElement(react_native_1.View, { style: styles.wrapper },
|
|
31
|
-
react_1.default.createElement(react_native_1.View, { style: [styles.row, styles.rowWrap] }, reversedBadges.reverse().map((item
|
|
43
|
+
react_1.default.createElement(react_native_1.View, { style: [styles.row, styles.rowWrap] }, reversedBadges.reverse().map((item) => {
|
|
32
44
|
return (react_1.default.createElement(react_native_1.View, { style: styles.badgeBox, key: item.name },
|
|
33
45
|
react_1.default.createElement(Utils_1.FadeImage, { source: item.image, style: styles.badge }),
|
|
34
46
|
react_1.default.createElement(Typography_1.Typography, { style: styles.badgeText },
|
|
35
|
-
getBadgeTitle(item.name),
|
|
47
|
+
react_1.default.createElement(Typography_1.Typography, { bold: true }, getBadgeTitle(item.name)),
|
|
36
48
|
" ",
|
|
37
49
|
getBadgeDescription(item.name))));
|
|
38
50
|
}))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GoldWins.d.ts","sourceRoot":"","sources":["../../src/Scores/GoldWins.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,aAAK,KAAK,GAAG;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"GoldWins.d.ts","sourceRoot":"","sources":["../../src/Scores/GoldWins.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,aAAK,KAAK,GAAG;IACX,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAsDpC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RoleWins.d.ts","sourceRoot":"","sources":["../../src/Scores/RoleWins.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,aAAK,KAAK,GAAG;IACX,KAAK,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"RoleWins.d.ts","sourceRoot":"","sources":["../../src/Scores/RoleWins.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,aAAK,KAAK,GAAG;IACX,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,OAAO,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAkCpC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "koylu-vampir-design",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.49",
|
|
4
4
|
"description": "Design System for Koylu Vampir Game",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-native",
|
|
@@ -15,14 +15,14 @@
|
|
|
15
15
|
"dist"
|
|
16
16
|
],
|
|
17
17
|
"scripts": {
|
|
18
|
-
"build": "tsc &&
|
|
19
|
-
"watch": "
|
|
18
|
+
"build": "tsc && npm run copy-files",
|
|
19
|
+
"watch": "npm run copy-files && tsc --watch",
|
|
20
20
|
"copy-files": "copyfiles -u 1 ./src/assets/*/*.* ./dist/",
|
|
21
21
|
"build-storybook": "build-storybook",
|
|
22
22
|
"lint": "eslint src --ext .ts,.tsx --cache",
|
|
23
23
|
"storybook": "NODE_OPTIONS=--openssl-legacy-provider start-storybook -p 6006",
|
|
24
24
|
"type-check": "tsc --noEmit",
|
|
25
|
-
"storycap:all": "rm -rf ./__screenshots__ &&
|
|
25
|
+
"storycap:all": "rm -rf ./__screenshots__ && npm run storycap http://localhost:6006 --serverCmd 'npm run storybook --ci' --viewport '414x736' --serverTimeout '200000'"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@react-native-community/masked-view": "^0.1.11",
|