@momo-kits/foundation 0.89.3-beta.1 → 0.89.3-beta.4
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/Application/StackScreen.tsx +2 -13
- package/Assets/icon.json +78 -0
- package/Assets/icon_bank.json +506 -0
- package/Button/index.tsx +15 -35
- package/CheckBox/index.tsx +0 -18
- package/CheckBox/types.ts +0 -4
- package/Icon/index.tsx +2 -1
- package/IconButton/index.tsx +8 -28
- package/Input/Input.tsx +6 -35
- package/Input/InputMoney.tsx +6 -35
- package/Input/InputOTP.tsx +8 -24
- package/Input/InputSearch.tsx +27 -56
- package/Input/index.tsx +0 -7
- package/Radio/index.tsx +1 -16
- package/Radio/types.ts +0 -5
- package/Switch/index.tsx +2 -21
- package/Switch/types.ts +0 -4
- package/code-scanner.js +30 -2
- package/package.json +1 -1
package/code-scanner.js
CHANGED
|
@@ -18,12 +18,38 @@ const calculateAdoptionRate = (kitJsonPath, miniappJsonPath) => {
|
|
|
18
18
|
console.log("Number of kit's components: ", numOfKitComponents);
|
|
19
19
|
console.log("Number of miniapp's components: ", numOfMiniAppComponents);
|
|
20
20
|
console.log('Adoption rate: ', adoptionRate);
|
|
21
|
+
|
|
22
|
+
sendMessage(numOfKitComponents, numOfMiniAppComponents, adoptionRate)
|
|
21
23
|
};
|
|
22
24
|
|
|
25
|
+
const sendMessage = (numOfKitComponents, numOfMiniAppComponents, adoptionRate, miniAppName = '')=>{
|
|
26
|
+
const url = 'https://chat.googleapis.com/v1/spaces/AAAAeF61HpQ/messages?key=AIzaSyDdI0hCZtE6vySjMm-WEfRq3CPzqKqqsHI&token=Sc3BNocUODajbLVFB7y8JCRWBPw-h-yKM5hLZm6MvyQ';
|
|
27
|
+
|
|
28
|
+
const data = {
|
|
29
|
+
text: `MiniApp: ${miniAppName}\nNumber of kit's components: ${numOfKitComponents}\nNumber of miniapp's components: ${numOfMiniAppComponents}\nAdoption rate: ${adoptionRate}`
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
fetch(url, {
|
|
33
|
+
method: 'POST',
|
|
34
|
+
headers: {
|
|
35
|
+
'Content-Type': 'application/json'
|
|
36
|
+
},
|
|
37
|
+
body: JSON.stringify(data)
|
|
38
|
+
})
|
|
39
|
+
.then(response => response.json())
|
|
40
|
+
.then(data => {
|
|
41
|
+
console.log('Success:', data);
|
|
42
|
+
})
|
|
43
|
+
.catch((error) => {
|
|
44
|
+
console.error('Error:', error);
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
|
|
23
48
|
const main = async () => {
|
|
24
|
-
const [scanPath
|
|
25
|
-
process.argv.slice(2);
|
|
49
|
+
const [scanPath] = process.argv.slice(2);
|
|
26
50
|
|
|
51
|
+
const kitJsonRelativePath = './code_scan_report/kits.json'
|
|
52
|
+
const miniappJsonRelativePath = './code_scan_report/miniapp.json'
|
|
27
53
|
const kitJsonPath = path.resolve(process.cwd(), kitJsonRelativePath);
|
|
28
54
|
const miniappJsonPath = path.resolve(process.cwd(), miniappJsonRelativePath);
|
|
29
55
|
|
|
@@ -48,4 +74,6 @@ const main = async () => {
|
|
|
48
74
|
calculateAdoptionRate(kitJsonPath, miniappJsonPath);
|
|
49
75
|
};
|
|
50
76
|
|
|
77
|
+
|
|
78
|
+
|
|
51
79
|
main().catch(console.error);
|