react-native-debug-toolkit 0.6.4 → 2.0.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/LICENSE +21 -0
- package/README.md +150 -212
- package/lib/commonjs/components/ClipboardTab.js +92 -0
- package/lib/commonjs/components/ClipboardTab.js.map +1 -0
- package/lib/commonjs/components/ConsoleLogTab.js +295 -0
- package/lib/commonjs/components/ConsoleLogTab.js.map +1 -0
- package/lib/commonjs/components/EnvironmentTab.js +288 -0
- package/lib/commonjs/components/EnvironmentTab.js.map +1 -0
- package/lib/commonjs/components/FloatPanelView.js +797 -0
- package/lib/commonjs/components/FloatPanelView.js.map +1 -0
- package/lib/commonjs/components/NavigationLogTab.js +131 -0
- package/lib/commonjs/components/NavigationLogTab.js.map +1 -0
- package/lib/commonjs/components/NetworkLogTab.js +575 -0
- package/lib/commonjs/components/NetworkLogTab.js.map +1 -0
- package/lib/commonjs/components/ThirdPartyLibsTab.js +97 -0
- package/lib/commonjs/components/ThirdPartyLibsTab.js.map +1 -0
- package/lib/commonjs/components/TrackLogTab.js +372 -0
- package/lib/commonjs/components/TrackLogTab.js.map +1 -0
- package/lib/commonjs/components/ZustandLogTab.js +451 -0
- package/lib/commonjs/components/ZustandLogTab.js.map +1 -0
- package/lib/commonjs/components/shared/CollapsibleSection.js +84 -0
- package/lib/commonjs/components/shared/CollapsibleSection.js.map +1 -0
- package/lib/commonjs/components/shared/CopyButton.js +64 -0
- package/lib/commonjs/components/shared/CopyButton.js.map +1 -0
- package/lib/commonjs/components/shared/JsonView.js +157 -0
- package/lib/commonjs/components/shared/JsonView.js.map +1 -0
- package/lib/commonjs/core/DebugToolkit.js +142 -0
- package/lib/commonjs/core/DebugToolkit.js.map +1 -0
- package/lib/commonjs/core/DebugToolkitProvider.js +64 -0
- package/lib/commonjs/core/DebugToolkitProvider.js.map +1 -0
- package/lib/commonjs/features/ClipboardFeature.js +17 -0
- package/lib/commonjs/features/ClipboardFeature.js.map +1 -0
- package/lib/commonjs/features/ConsoleLogFeature.js +98 -0
- package/lib/commonjs/features/ConsoleLogFeature.js.map +1 -0
- package/lib/commonjs/features/EnvironmentFeature.js +168 -0
- package/lib/commonjs/features/EnvironmentFeature.js.map +1 -0
- package/lib/commonjs/features/NavigationLogFeature.js +60 -0
- package/lib/commonjs/features/NavigationLogFeature.js.map +1 -0
- package/lib/commonjs/features/NetworkFeature.js +328 -0
- package/lib/commonjs/features/NetworkFeature.js.map +1 -0
- package/lib/commonjs/features/ThirdPartyLibsFeature.js +51 -0
- package/lib/commonjs/features/ThirdPartyLibsFeature.js.map +1 -0
- package/lib/commonjs/features/TrackFeature.js +55 -0
- package/lib/commonjs/features/TrackFeature.js.map +1 -0
- package/lib/commonjs/features/ZustandLogFeature.js +76 -0
- package/lib/commonjs/features/ZustandLogFeature.js.map +1 -0
- package/lib/commonjs/hooks/useNavigationLogger.js +78 -0
- package/lib/commonjs/hooks/useNavigationLogger.js.map +1 -0
- package/lib/commonjs/hooks/useSlideDetailAnimation.js +53 -0
- package/lib/commonjs/hooks/useSlideDetailAnimation.js.map +1 -0
- package/lib/commonjs/index.js +165 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/initialize.js +161 -0
- package/lib/commonjs/initialize.js.map +1 -0
- package/lib/commonjs/native/NativeDebugLibs.js +58 -0
- package/lib/commonjs/native/NativeDebugLibs.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/types/index.js +6 -0
- package/lib/commonjs/types/index.js.map +1 -0
- package/lib/commonjs/utils/constants.js +135 -0
- package/lib/commonjs/utils/constants.js.map +1 -0
- package/lib/commonjs/utils/copyToComputer.js +97 -0
- package/lib/commonjs/utils/copyToComputer.js.map +1 -0
- package/lib/commonjs/utils/createEventChannel.js +21 -0
- package/lib/commonjs/utils/createEventChannel.js.map +1 -0
- package/lib/commonjs/utils/createObservableStore.js +38 -0
- package/lib/commonjs/utils/createObservableStore.js.map +1 -0
- package/lib/commonjs/utils/safeStringify.js +27 -0
- package/lib/commonjs/utils/safeStringify.js.map +1 -0
- package/lib/module/components/ClipboardTab.js +86 -0
- package/lib/module/components/ClipboardTab.js.map +1 -0
- package/lib/module/components/ConsoleLogTab.js +290 -0
- package/lib/module/components/ConsoleLogTab.js.map +1 -0
- package/lib/module/components/EnvironmentTab.js +282 -0
- package/lib/module/components/EnvironmentTab.js.map +1 -0
- package/lib/module/components/FloatPanelView.js +791 -0
- package/lib/module/components/FloatPanelView.js.map +1 -0
- package/lib/module/components/NavigationLogTab.js +126 -0
- package/lib/module/components/NavigationLogTab.js.map +1 -0
- package/lib/module/components/NetworkLogTab.js +570 -0
- package/lib/module/components/NetworkLogTab.js.map +1 -0
- package/lib/module/components/ThirdPartyLibsTab.js +91 -0
- package/lib/module/components/ThirdPartyLibsTab.js.map +1 -0
- package/lib/module/components/TrackLogTab.js +367 -0
- package/lib/module/components/TrackLogTab.js.map +1 -0
- package/lib/module/components/ZustandLogTab.js +446 -0
- package/lib/module/components/ZustandLogTab.js.map +1 -0
- package/lib/module/components/shared/CollapsibleSection.js +78 -0
- package/lib/module/components/shared/CollapsibleSection.js.map +1 -0
- package/lib/module/components/shared/CopyButton.js +58 -0
- package/lib/module/components/shared/CopyButton.js.map +1 -0
- package/lib/module/components/shared/JsonView.js +152 -0
- package/lib/module/components/shared/JsonView.js.map +1 -0
- package/lib/module/core/DebugToolkit.js +137 -0
- package/lib/module/core/DebugToolkit.js.map +1 -0
- package/lib/module/core/DebugToolkitProvider.js +58 -0
- package/lib/module/core/DebugToolkitProvider.js.map +1 -0
- package/lib/module/features/ClipboardFeature.js +12 -0
- package/lib/module/features/ClipboardFeature.js.map +1 -0
- package/lib/module/features/ConsoleLogFeature.js +93 -0
- package/lib/module/features/ConsoleLogFeature.js.map +1 -0
- package/lib/module/features/EnvironmentFeature.js +164 -0
- package/lib/module/features/EnvironmentFeature.js.map +1 -0
- package/lib/module/features/NavigationLogFeature.js +54 -0
- package/lib/module/features/NavigationLogFeature.js.map +1 -0
- package/lib/module/features/NetworkFeature.js +322 -0
- package/lib/module/features/NetworkFeature.js.map +1 -0
- package/lib/module/features/ThirdPartyLibsFeature.js +46 -0
- package/lib/module/features/ThirdPartyLibsFeature.js.map +1 -0
- package/lib/module/features/TrackFeature.js +49 -0
- package/lib/module/features/TrackFeature.js.map +1 -0
- package/lib/module/features/ZustandLogFeature.js +69 -0
- package/lib/module/features/ZustandLogFeature.js.map +1 -0
- package/lib/module/hooks/useNavigationLogger.js +74 -0
- package/lib/module/hooks/useNavigationLogger.js.map +1 -0
- package/lib/module/hooks/useSlideDetailAnimation.js +50 -0
- package/lib/module/hooks/useSlideDetailAnimation.js.map +1 -0
- package/lib/module/index.js +29 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/initialize.js +156 -0
- package/lib/module/initialize.js.map +1 -0
- package/lib/module/native/NativeDebugLibs.js +54 -0
- package/lib/module/native/NativeDebugLibs.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/module/types/index.js +4 -0
- package/lib/module/types/index.js.map +1 -0
- package/lib/module/utils/constants.js +130 -0
- package/lib/module/utils/constants.js.map +1 -0
- package/lib/module/utils/copyToComputer.js +91 -0
- package/lib/module/utils/copyToComputer.js.map +1 -0
- package/lib/module/utils/createEventChannel.js +17 -0
- package/lib/module/utils/createEventChannel.js.map +1 -0
- package/lib/module/utils/createObservableStore.js +34 -0
- package/lib/module/utils/createObservableStore.js.map +1 -0
- package/lib/module/utils/safeStringify.js +23 -0
- package/lib/module/utils/safeStringify.js.map +1 -0
- package/lib/typescript/src/components/ClipboardTab.d.ts +4 -0
- package/lib/typescript/src/components/ClipboardTab.d.ts.map +1 -0
- package/lib/typescript/src/components/ConsoleLogTab.d.ts +4 -0
- package/lib/typescript/src/components/ConsoleLogTab.d.ts.map +1 -0
- package/lib/typescript/src/components/EnvironmentTab.d.ts +4 -0
- package/lib/typescript/src/components/EnvironmentTab.d.ts.map +1 -0
- package/lib/typescript/src/components/FloatPanelView.d.ts +64 -0
- package/lib/typescript/src/components/FloatPanelView.d.ts.map +1 -0
- package/lib/typescript/src/components/NavigationLogTab.d.ts +4 -0
- package/lib/typescript/src/components/NavigationLogTab.d.ts.map +1 -0
- package/lib/typescript/src/components/NetworkLogTab.d.ts +4 -0
- package/lib/typescript/src/components/NetworkLogTab.d.ts.map +1 -0
- package/lib/typescript/src/components/ThirdPartyLibsTab.d.ts +4 -0
- package/lib/typescript/src/components/ThirdPartyLibsTab.d.ts.map +1 -0
- package/lib/typescript/src/components/TrackLogTab.d.ts +4 -0
- package/lib/typescript/src/components/TrackLogTab.d.ts.map +1 -0
- package/lib/typescript/src/components/ZustandLogTab.d.ts +4 -0
- package/lib/typescript/src/components/ZustandLogTab.d.ts.map +1 -0
- package/lib/typescript/src/components/shared/CollapsibleSection.d.ts +9 -0
- package/lib/typescript/src/components/shared/CollapsibleSection.d.ts.map +1 -0
- package/lib/typescript/src/components/shared/CopyButton.d.ts +12 -0
- package/lib/typescript/src/components/shared/CopyButton.d.ts.map +1 -0
- package/lib/typescript/src/components/shared/JsonView.d.ts +6 -0
- package/lib/typescript/src/components/shared/JsonView.d.ts.map +1 -0
- package/lib/typescript/src/core/DebugToolkit.d.ts +27 -0
- package/lib/typescript/src/core/DebugToolkit.d.ts.map +1 -0
- package/lib/typescript/src/core/DebugToolkitProvider.d.ts +18 -0
- package/lib/typescript/src/core/DebugToolkitProvider.d.ts.map +1 -0
- package/lib/typescript/src/features/ClipboardFeature.d.ts +3 -0
- package/lib/typescript/src/features/ClipboardFeature.d.ts.map +1 -0
- package/lib/typescript/src/features/ConsoleLogFeature.d.ts +7 -0
- package/lib/typescript/src/features/ConsoleLogFeature.d.ts.map +1 -0
- package/lib/typescript/src/features/EnvironmentFeature.d.ts +8 -0
- package/lib/typescript/src/features/EnvironmentFeature.d.ts.map +1 -0
- package/lib/typescript/src/features/NavigationLogFeature.d.ts +8 -0
- package/lib/typescript/src/features/NavigationLogFeature.d.ts.map +1 -0
- package/lib/typescript/src/features/NetworkFeature.d.ts +28 -0
- package/lib/typescript/src/features/NetworkFeature.d.ts.map +1 -0
- package/lib/typescript/src/features/ThirdPartyLibsFeature.d.ts +3 -0
- package/lib/typescript/src/features/ThirdPartyLibsFeature.d.ts.map +1 -0
- package/lib/typescript/src/features/TrackFeature.d.ts +12 -0
- package/lib/typescript/src/features/TrackFeature.d.ts.map +1 -0
- package/lib/typescript/src/features/ZustandLogFeature.d.ts +29 -0
- package/lib/typescript/src/features/ZustandLogFeature.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useNavigationLogger.d.ts +20 -0
- package/lib/typescript/src/hooks/useNavigationLogger.d.ts.map +1 -0
- package/lib/typescript/src/hooks/useSlideDetailAnimation.d.ts +11 -0
- package/lib/typescript/src/hooks/useSlideDetailAnimation.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +26 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/initialize.d.ts +51 -0
- package/lib/typescript/src/initialize.d.ts.map +1 -0
- package/lib/typescript/src/native/NativeDebugLibs.d.ts +11 -0
- package/lib/typescript/src/native/NativeDebugLibs.d.ts.map +1 -0
- package/lib/typescript/src/types/index.d.ts +112 -0
- package/lib/typescript/src/types/index.d.ts.map +1 -0
- package/lib/typescript/src/utils/constants.d.ts +96 -0
- package/lib/typescript/src/utils/constants.d.ts.map +1 -0
- package/lib/typescript/src/utils/copyToComputer.d.ts +30 -0
- package/lib/typescript/src/utils/copyToComputer.d.ts.map +1 -0
- package/lib/typescript/src/utils/createEventChannel.d.ts +7 -0
- package/lib/typescript/src/utils/createEventChannel.d.ts.map +1 -0
- package/lib/typescript/src/utils/createObservableStore.d.ts +9 -0
- package/lib/typescript/src/utils/createObservableStore.d.ts.map +1 -0
- package/lib/typescript/src/utils/safeStringify.d.ts +6 -0
- package/lib/typescript/src/utils/safeStringify.d.ts.map +1 -0
- package/package.json +63 -24
- package/src/components/ClipboardTab.tsx +81 -0
- package/src/components/ConsoleLogTab.tsx +209 -0
- package/src/components/EnvironmentTab.tsx +276 -0
- package/src/components/FloatPanelView.tsx +714 -0
- package/src/components/NavigationLogTab.tsx +66 -0
- package/src/components/NetworkLogTab.tsx +411 -0
- package/src/components/ThirdPartyLibsTab.tsx +63 -0
- package/src/components/TrackLogTab.tsx +245 -0
- package/src/components/ZustandLogTab.tsx +305 -0
- package/src/components/shared/CollapsibleSection.tsx +78 -0
- package/src/components/shared/CopyButton.tsx +68 -0
- package/src/components/shared/JsonView.tsx +125 -0
- package/src/core/DebugToolkit.tsx +174 -0
- package/src/core/DebugToolkitProvider.tsx +89 -0
- package/src/features/ClipboardFeature.ts +11 -0
- package/src/features/ConsoleLogFeature.ts +118 -0
- package/src/features/EnvironmentFeature.ts +194 -0
- package/src/features/NavigationLogFeature.ts +74 -0
- package/src/features/NetworkFeature.ts +488 -0
- package/src/features/ThirdPartyLibsFeature.ts +42 -0
- package/src/features/TrackFeature.ts +69 -0
- package/src/features/ZustandLogFeature.ts +127 -0
- package/src/hooks/useNavigationLogger.ts +107 -0
- package/src/hooks/useSlideDetailAnimation.ts +45 -0
- package/src/index.ts +52 -0
- package/src/initialize.ts +214 -0
- package/src/native/NativeDebugLibs.ts +74 -0
- package/src/types/index.ts +138 -0
- package/src/utils/constants.ts +91 -0
- package/src/utils/copyToComputer.ts +104 -0
- package/src/utils/createEventChannel.ts +22 -0
- package/src/utils/createObservableStore.ts +42 -0
- package/src/utils/safeStringify.ts +25 -0
- package/.cursor/rules/react-native.mdc +0 -41
- package/README.zh-CN.md +0 -230
- package/index.js +0 -41
- package/ios/BuildTypeModule.h +0 -9
- package/ios/BuildTypeModule.m +0 -42
- package/ios/RNDebugLibs.h +0 -10
- package/ios/RNDebugLibs.m +0 -79
- package/lib/DebugToolKit.js +0 -126
- package/lib/EnvironmentManager.ts +0 -80
- package/lib/NativeDebugLibs.js +0 -67
- package/lib/features/ConsoleLogFeature.js +0 -70
- package/lib/features/NavigationLogFeature.js +0 -45
- package/lib/features/NetworkFeature.js +0 -389
- package/lib/features/PerformanceFeature.js +0 -390
- package/lib/features/ThirdPartyLibsFeature.js +0 -63
- package/lib/features/TrackFeature.js +0 -94
- package/lib/features/ZustandLogFeature.js +0 -44
- package/lib/hooks/useNavigationLogger.js +0 -92
- package/lib/index.js +0 -114
- package/lib/navigation/NavigationLogger.js +0 -1
- package/lib/types/TrackTypes.ts +0 -92
- package/lib/utils/DebugConst.js +0 -67
- package/lib/utils/StorageUtils.js +0 -80
- package/lib/views/ConsoleLogDetails.js +0 -314
- package/lib/views/FloatPanelView.js +0 -697
- package/lib/views/HttpLogDetails.js +0 -648
- package/lib/views/NavigationLogDetails.js +0 -302
- package/lib/views/RestartModal.js +0 -75
- package/lib/views/SubViewConsoleLogs.js +0 -209
- package/lib/views/SubViewEnvironment.js +0 -73
- package/lib/views/SubViewHTTPLogs.js +0 -235
- package/lib/views/SubViewNavigationLogs.js +0 -199
- package/lib/views/SubViewPerformance.js +0 -515
- package/lib/views/SubViewThirdPartyLibs.js +0 -239
- package/lib/views/SubViewTrackLogs.js +0 -318
- package/lib/views/SubViewZustandLogs.js +0 -279
- package/lib/views/TabView.js +0 -66
- package/lib/views/TrackLogDetails.js +0 -481
- package/lib/views/ZustandLogDetails.js +0 -355
- package/react-native-debug-toolkit.podspec +0 -25
- package/react-native.config.js +0 -18
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View, Text, FlatList, StyleSheet } from 'react-native';
|
|
3
|
+
import { Colors } from '../utils/constants';
|
|
4
|
+
import { CopyButton } from './shared/CopyButton';
|
|
5
|
+
import type { DebugFeatureRenderProps, NavigationLogEntry } from '../types';
|
|
6
|
+
|
|
7
|
+
export const NavigationLogTab: React.FC<DebugFeatureRenderProps<NavigationLogEntry>> = React.memo(({
|
|
8
|
+
data,
|
|
9
|
+
}) => {
|
|
10
|
+
const renderItem = ({ item }: { item: NavigationLogEntry }) => (
|
|
11
|
+
<View style={styles.logItem}>
|
|
12
|
+
<View style={styles.header}>
|
|
13
|
+
<Text style={styles.action}>{item.action}</Text>
|
|
14
|
+
<View style={styles.headerRight}>
|
|
15
|
+
{item.duration != null && <Text style={styles.duration}>{item.duration}ms</Text>}
|
|
16
|
+
<CopyButton
|
|
17
|
+
text={`${item.action}: ${item.from || '—'} → ${item.to}`}
|
|
18
|
+
label="Navigation"
|
|
19
|
+
compact
|
|
20
|
+
/>
|
|
21
|
+
</View>
|
|
22
|
+
</View>
|
|
23
|
+
<View style={styles.routeRow}>
|
|
24
|
+
<Text style={styles.routeLabel}>From:</Text>
|
|
25
|
+
<Text style={styles.routeValue}>{item.from || '—'}</Text>
|
|
26
|
+
</View>
|
|
27
|
+
<View style={styles.routeRow}>
|
|
28
|
+
<Text style={styles.routeLabel}>To:</Text>
|
|
29
|
+
<Text style={styles.routeValue}>{item.to}</Text>
|
|
30
|
+
</View>
|
|
31
|
+
<Text style={styles.time}>{new Date(item.timestamp).toLocaleTimeString()}</Text>
|
|
32
|
+
</View>
|
|
33
|
+
);
|
|
34
|
+
|
|
35
|
+
return (
|
|
36
|
+
<View style={styles.container}>
|
|
37
|
+
{data.length === 0 ? (
|
|
38
|
+
<Text style={styles.empty}>No navigation events</Text>
|
|
39
|
+
) : (
|
|
40
|
+
<FlatList
|
|
41
|
+
data={[...data].reverse()}
|
|
42
|
+
renderItem={renderItem}
|
|
43
|
+
keyExtractor={(item) => item.id}
|
|
44
|
+
initialNumToRender={20}
|
|
45
|
+
maxToRenderPerBatch={10}
|
|
46
|
+
windowSize={5}
|
|
47
|
+
removeClippedSubviews={true}
|
|
48
|
+
/>
|
|
49
|
+
)}
|
|
50
|
+
</View>
|
|
51
|
+
);
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
const styles = StyleSheet.create({
|
|
55
|
+
container: { flex: 1, backgroundColor: Colors.surface },
|
|
56
|
+
empty: { textAlign: 'center', color: Colors.textLight, marginTop: 20 },
|
|
57
|
+
logItem: { padding: 12, borderBottomWidth: 1, borderBottomColor: '#EEE' },
|
|
58
|
+
header: { flexDirection: 'row', justifyContent: 'space-between', alignItems: 'center', marginBottom: 6 },
|
|
59
|
+
headerRight: { flexDirection: 'row', alignItems: 'center', gap: 8 },
|
|
60
|
+
action: { fontSize: 14, fontWeight: 'bold', color: Colors.primary },
|
|
61
|
+
duration: { fontSize: 13, color: Colors.textLight },
|
|
62
|
+
routeRow: { flexDirection: 'row', marginBottom: 3 },
|
|
63
|
+
routeLabel: { fontSize: 13, color: Colors.textSecondary, marginRight: 8, fontWeight: '600' },
|
|
64
|
+
routeValue: { fontSize: 13, color: Colors.text, flex: 1 },
|
|
65
|
+
time: { fontSize: 12, color: Colors.textLight, marginTop: 4 },
|
|
66
|
+
});
|
|
@@ -0,0 +1,411 @@
|
|
|
1
|
+
import React, { useState, useEffect, useRef } from 'react';
|
|
2
|
+
import {
|
|
3
|
+
View,
|
|
4
|
+
Text,
|
|
5
|
+
FlatList,
|
|
6
|
+
TouchableOpacity,
|
|
7
|
+
StyleSheet,
|
|
8
|
+
TextInput,
|
|
9
|
+
Animated,
|
|
10
|
+
ScrollView,
|
|
11
|
+
} from 'react-native';
|
|
12
|
+
import { Colors, getMethodColor } from '../utils/constants';
|
|
13
|
+
import { CollapsibleSection } from './shared/CollapsibleSection';
|
|
14
|
+
import { JsonView } from './shared/JsonView';
|
|
15
|
+
import { CopyButton } from './shared/CopyButton';
|
|
16
|
+
import { fmt } from '../utils/copyToComputer';
|
|
17
|
+
import type { DebugFeatureRenderProps, NetworkLogEntry } from '../types';
|
|
18
|
+
|
|
19
|
+
const formatSize = (data: unknown): string => {
|
|
20
|
+
if (!data) return '';
|
|
21
|
+
try {
|
|
22
|
+
const len = (typeof data === 'string' ? data : JSON.stringify(data)).length;
|
|
23
|
+
if (len < 1024) return `(${len} B)`;
|
|
24
|
+
if (len < 1024 * 1024) return `(${(len / 1024).toFixed(1)} KB)`;
|
|
25
|
+
return `(${(len / (1024 * 1024)).toFixed(1)} MB)`;
|
|
26
|
+
} catch {
|
|
27
|
+
return '';
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
// --- Detail view (in-panel push) ---
|
|
32
|
+
const NetworkLogDetail: React.FC<{ log: NetworkLogEntry; onBack: () => void }> = ({
|
|
33
|
+
log,
|
|
34
|
+
onBack,
|
|
35
|
+
}) => {
|
|
36
|
+
const statusColor =
|
|
37
|
+
log.error || (log.response && log.response.status >= 400) ? Colors.error : Colors.success;
|
|
38
|
+
|
|
39
|
+
const curl = () => {
|
|
40
|
+
let c = `curl -X ${log.request.method} '${log.request.url}'`;
|
|
41
|
+
if (log.request.headers) {
|
|
42
|
+
Object.entries(log.request.headers).forEach(([k, v]) => (c += ` \\\n -H '${k}: ${v}'`));
|
|
43
|
+
}
|
|
44
|
+
if (log.request.body) {
|
|
45
|
+
c += ` \\\n -d '${typeof log.request.body === 'string' ? log.request.body : JSON.stringify(log.request.body)}'`;
|
|
46
|
+
}
|
|
47
|
+
return c;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
return (
|
|
51
|
+
<View style={s.detailWrap}>
|
|
52
|
+
<View style={s.detailHeader}>
|
|
53
|
+
<TouchableOpacity onPress={onBack} style={s.backBtn} activeOpacity={0.6}>
|
|
54
|
+
<Text style={s.backIcon}>‹</Text>
|
|
55
|
+
<Text style={s.backText}>Back</Text>
|
|
56
|
+
</TouchableOpacity>
|
|
57
|
+
<View style={s.detailHeaderCenter}>
|
|
58
|
+
<View style={[s.methodBadge, { backgroundColor: getMethodColor(log.request.method) }]}>
|
|
59
|
+
<Text style={s.methodBadgeText}>{log.request.method}</Text>
|
|
60
|
+
</View>
|
|
61
|
+
<View style={[s.statusPill, { backgroundColor: statusColor }]}>
|
|
62
|
+
<Text style={s.statusPillText}>{log.response?.status ?? 'ERR'}</Text>
|
|
63
|
+
</View>
|
|
64
|
+
{log.duration != null && (
|
|
65
|
+
<Text style={s.durationText}>{log.duration}ms</Text>
|
|
66
|
+
)}
|
|
67
|
+
</View>
|
|
68
|
+
</View>
|
|
69
|
+
<ScrollView style={s.detailBody} contentContainerStyle={s.detailBodyContent}>
|
|
70
|
+
{/* URL */}
|
|
71
|
+
<View style={s.urlCard}>
|
|
72
|
+
<Text style={s.urlText} selectable numberOfLines={3}>
|
|
73
|
+
{log.request.url}
|
|
74
|
+
</Text>
|
|
75
|
+
<CopyButton text={log.request.url} label="URL" />
|
|
76
|
+
</View>
|
|
77
|
+
|
|
78
|
+
{/* Request Body */}
|
|
79
|
+
<CollapsibleSection title="Request Body" initiallyExpanded>
|
|
80
|
+
{log.request.body != null ? (
|
|
81
|
+
<View style={s.sectionWithCopy}>
|
|
82
|
+
<CopyButton text={fmt(log.request.body)} label="Request Body" />
|
|
83
|
+
<JsonView data={log.request.body} maxHeight={250} />
|
|
84
|
+
</View>
|
|
85
|
+
) : (
|
|
86
|
+
<Text style={s.emptySection}>No request body</Text>
|
|
87
|
+
)}
|
|
88
|
+
</CollapsibleSection>
|
|
89
|
+
|
|
90
|
+
<CollapsibleSection title="Request Headers">
|
|
91
|
+
{log.request.headers ? (
|
|
92
|
+
<View style={s.sectionWithCopy}>
|
|
93
|
+
<CopyButton text={fmt(log.request.headers)} label="Request Headers" />
|
|
94
|
+
<JsonView data={log.request.headers} maxHeight={200} />
|
|
95
|
+
</View>
|
|
96
|
+
) : (
|
|
97
|
+
<Text style={s.emptySection}>No headers</Text>
|
|
98
|
+
)}
|
|
99
|
+
</CollapsibleSection>
|
|
100
|
+
|
|
101
|
+
{/* Response */}
|
|
102
|
+
<CollapsibleSection
|
|
103
|
+
title={`Response ${formatSize(log.response?.data)}`}
|
|
104
|
+
initiallyExpanded
|
|
105
|
+
>
|
|
106
|
+
{log.error && (
|
|
107
|
+
<View style={s.errorBox}>
|
|
108
|
+
<Text style={s.errorIcon}>⚠</Text>
|
|
109
|
+
<Text style={s.errorText}>{log.error}</Text>
|
|
110
|
+
</View>
|
|
111
|
+
)}
|
|
112
|
+
{log.response?.data != null ? (
|
|
113
|
+
<View style={s.sectionWithCopy}>
|
|
114
|
+
<CopyButton text={fmt(log.response.data)} label="Response Body" />
|
|
115
|
+
<JsonView data={log.response.data} maxHeight={300} />
|
|
116
|
+
</View>
|
|
117
|
+
) : (
|
|
118
|
+
<Text style={s.emptySection}>No response body</Text>
|
|
119
|
+
)}
|
|
120
|
+
</CollapsibleSection>
|
|
121
|
+
|
|
122
|
+
{log.response?.headers && (
|
|
123
|
+
<CollapsibleSection title="Response Headers">
|
|
124
|
+
<View style={s.sectionWithCopy}>
|
|
125
|
+
<CopyButton text={fmt(log.response.headers)} label="Response Headers" />
|
|
126
|
+
<JsonView data={log.response.headers} maxHeight={200} />
|
|
127
|
+
</View>
|
|
128
|
+
</CollapsibleSection>
|
|
129
|
+
)}
|
|
130
|
+
|
|
131
|
+
{/* cURL */}
|
|
132
|
+
<CollapsibleSection title="cURL">
|
|
133
|
+
<View style={s.sectionWithCopy}>
|
|
134
|
+
<CopyButton text={curl()} label="cURL" />
|
|
135
|
+
<View style={s.codeBlock}>
|
|
136
|
+
<Text style={s.codeText} selectable>{curl()}</Text>
|
|
137
|
+
</View>
|
|
138
|
+
</View>
|
|
139
|
+
</CollapsibleSection>
|
|
140
|
+
</ScrollView>
|
|
141
|
+
</View>
|
|
142
|
+
);
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
// --- List view ---
|
|
146
|
+
export const NetworkLogTab: React.FC<DebugFeatureRenderProps<NetworkLogEntry>> = React.memo(({
|
|
147
|
+
data,
|
|
148
|
+
}) => {
|
|
149
|
+
const [selectedLog, setSelectedLog] = useState<NetworkLogEntry | null>(null);
|
|
150
|
+
const [search, setSearch] = useState('');
|
|
151
|
+
const slideAnim = useRef(new Animated.Value(0)).current;
|
|
152
|
+
const listSlideAnim = useRef(new Animated.Value(0)).current;
|
|
153
|
+
|
|
154
|
+
useEffect(() => {
|
|
155
|
+
if (selectedLog) {
|
|
156
|
+
listSlideAnim.setValue(0);
|
|
157
|
+
Animated.parallel([
|
|
158
|
+
Animated.spring(slideAnim, { toValue: 1, friction: 9, tension: 60, useNativeDriver: true }),
|
|
159
|
+
Animated.spring(listSlideAnim, { toValue: 1, friction: 9, tension: 60, useNativeDriver: true }),
|
|
160
|
+
]).start();
|
|
161
|
+
} else {
|
|
162
|
+
slideAnim.setValue(0);
|
|
163
|
+
listSlideAnim.setValue(0);
|
|
164
|
+
}
|
|
165
|
+
}, [selectedLog]);
|
|
166
|
+
|
|
167
|
+
const detailTranslateX = slideAnim.interpolate({
|
|
168
|
+
inputRange: [0, 1],
|
|
169
|
+
outputRange: [300, 0],
|
|
170
|
+
});
|
|
171
|
+
const listTranslateX = listSlideAnim.interpolate({
|
|
172
|
+
inputRange: [0, 1],
|
|
173
|
+
outputRange: [0, -60],
|
|
174
|
+
});
|
|
175
|
+
const listOpacity = listSlideAnim.interpolate({
|
|
176
|
+
inputRange: [0, 1],
|
|
177
|
+
outputRange: [1, 0],
|
|
178
|
+
});
|
|
179
|
+
|
|
180
|
+
const filtered = search
|
|
181
|
+
? data.filter(
|
|
182
|
+
(l) =>
|
|
183
|
+
l.request.url.toLowerCase().includes(search.toLowerCase()) ||
|
|
184
|
+
l.request.method.toLowerCase().includes(search.toLowerCase()),
|
|
185
|
+
)
|
|
186
|
+
: data;
|
|
187
|
+
|
|
188
|
+
const sorted = [...filtered].sort(
|
|
189
|
+
(a, b) => b.timestamp - a.timestamp,
|
|
190
|
+
);
|
|
191
|
+
|
|
192
|
+
const renderItem = ({ item }: { item: NetworkLogEntry }) => {
|
|
193
|
+
const ok = !item.error && (!item.response || item.response.status < 400);
|
|
194
|
+
const sc = ok ? Colors.success : Colors.error;
|
|
195
|
+
return (
|
|
196
|
+
<TouchableOpacity style={s.card} onPress={() => setSelectedLog(item)} activeOpacity={0.6}>
|
|
197
|
+
<View style={s.cardRow}>
|
|
198
|
+
<View style={[s.statusIndicator, { backgroundColor: sc }]} />
|
|
199
|
+
<View style={s.cardBody}>
|
|
200
|
+
<View style={s.cardMeta}>
|
|
201
|
+
<Text style={[s.methodText, { color: getMethodColor(item.request.method) }]}>
|
|
202
|
+
{item.request.method}
|
|
203
|
+
</Text>
|
|
204
|
+
<View style={[s.miniPill, { backgroundColor: sc }]}>
|
|
205
|
+
<Text style={s.miniPillText}>{item.response?.status ?? 'ERR'}</Text>
|
|
206
|
+
</View>
|
|
207
|
+
{item.duration != null && <Text style={s.durationText}>{item.duration}ms</Text>}
|
|
208
|
+
</View>
|
|
209
|
+
<Text style={[s.url, !ok && { color: Colors.error }]} numberOfLines={2}>
|
|
210
|
+
{item.request.url}
|
|
211
|
+
</Text>
|
|
212
|
+
<Text style={s.time}>
|
|
213
|
+
{new Date(item.timestamp).toLocaleTimeString()}
|
|
214
|
+
</Text>
|
|
215
|
+
</View>
|
|
216
|
+
</View>
|
|
217
|
+
</TouchableOpacity>
|
|
218
|
+
);
|
|
219
|
+
};
|
|
220
|
+
|
|
221
|
+
return (
|
|
222
|
+
<View style={s.container}>
|
|
223
|
+
{/* List */}
|
|
224
|
+
<Animated.View style={[s.listWrap, selectedLog ? { opacity: listOpacity, transform: [{ translateX: listTranslateX }] } : null]}>
|
|
225
|
+
<View style={s.searchContainer}>
|
|
226
|
+
<View style={s.searchBar}>
|
|
227
|
+
<Text style={s.searchIcon}>⌕</Text>
|
|
228
|
+
<TextInput
|
|
229
|
+
style={s.search}
|
|
230
|
+
placeholder="Search URLs..."
|
|
231
|
+
placeholderTextColor={Colors.textLight}
|
|
232
|
+
value={search}
|
|
233
|
+
onChangeText={setSearch}
|
|
234
|
+
/>
|
|
235
|
+
</View>
|
|
236
|
+
</View>
|
|
237
|
+
{sorted.length === 0 ? (
|
|
238
|
+
<View style={s.emptyContainer}>
|
|
239
|
+
<Text style={s.emptyIcon}>~</Text>
|
|
240
|
+
<Text style={s.empty}>No HTTP requests logged</Text>
|
|
241
|
+
</View>
|
|
242
|
+
) : (
|
|
243
|
+
<FlatList
|
|
244
|
+
data={sorted}
|
|
245
|
+
renderItem={renderItem}
|
|
246
|
+
keyExtractor={(item) => item.id}
|
|
247
|
+
contentContainerStyle={s.listContent}
|
|
248
|
+
initialNumToRender={20}
|
|
249
|
+
maxToRenderPerBatch={10}
|
|
250
|
+
windowSize={5}
|
|
251
|
+
removeClippedSubviews={true}
|
|
252
|
+
/>
|
|
253
|
+
)}
|
|
254
|
+
</Animated.View>
|
|
255
|
+
|
|
256
|
+
{/* Detail (push navigation) */}
|
|
257
|
+
{selectedLog && (
|
|
258
|
+
<Animated.View style={[s.detailOverlay, { transform: [{ translateX: detailTranslateX }] }]}>
|
|
259
|
+
<NetworkLogDetail log={selectedLog} onBack={() => setSelectedLog(null)} />
|
|
260
|
+
</Animated.View>
|
|
261
|
+
)}
|
|
262
|
+
</View>
|
|
263
|
+
);
|
|
264
|
+
});
|
|
265
|
+
|
|
266
|
+
const s = StyleSheet.create({
|
|
267
|
+
container: { flex: 1, backgroundColor: Colors.background },
|
|
268
|
+
listWrap: {
|
|
269
|
+
position: 'absolute',
|
|
270
|
+
top: 0,
|
|
271
|
+
left: 0,
|
|
272
|
+
right: 0,
|
|
273
|
+
bottom: 0,
|
|
274
|
+
},
|
|
275
|
+
|
|
276
|
+
// Search
|
|
277
|
+
searchContainer: {
|
|
278
|
+
paddingHorizontal: 12,
|
|
279
|
+
paddingTop: 10,
|
|
280
|
+
paddingBottom: 6,
|
|
281
|
+
backgroundColor: Colors.background,
|
|
282
|
+
},
|
|
283
|
+
searchBar: {
|
|
284
|
+
flexDirection: 'row',
|
|
285
|
+
alignItems: 'center',
|
|
286
|
+
backgroundColor: Colors.surface,
|
|
287
|
+
borderRadius: 10,
|
|
288
|
+
paddingHorizontal: 10,
|
|
289
|
+
height: 38,
|
|
290
|
+
},
|
|
291
|
+
searchIcon: { fontSize: 16, color: Colors.textLight, marginRight: 6 },
|
|
292
|
+
search: {
|
|
293
|
+
flex: 1,
|
|
294
|
+
fontSize: 14,
|
|
295
|
+
color: Colors.text,
|
|
296
|
+
padding: 0,
|
|
297
|
+
},
|
|
298
|
+
|
|
299
|
+
// Empty
|
|
300
|
+
emptyContainer: { flex: 1, alignItems: 'center', justifyContent: 'center' },
|
|
301
|
+
emptyIcon: { fontSize: 40, color: Colors.textLight, marginBottom: 4 },
|
|
302
|
+
empty: { textAlign: 'center', color: Colors.textLight, fontSize: 14 },
|
|
303
|
+
|
|
304
|
+
// List
|
|
305
|
+
listContent: { padding: 12 },
|
|
306
|
+
card: {
|
|
307
|
+
backgroundColor: Colors.surface,
|
|
308
|
+
borderRadius: 12,
|
|
309
|
+
marginBottom: 8,
|
|
310
|
+
overflow: 'hidden',
|
|
311
|
+
},
|
|
312
|
+
cardRow: { flexDirection: 'row', padding: 14 },
|
|
313
|
+
statusIndicator: { width: 3, borderRadius: 2, marginRight: 12 },
|
|
314
|
+
cardBody: { flex: 1 },
|
|
315
|
+
cardMeta: { flexDirection: 'row', alignItems: 'center', marginBottom: 6, gap: 6 },
|
|
316
|
+
methodText: { fontSize: 13, fontWeight: '700' },
|
|
317
|
+
miniPill: { paddingHorizontal: 7, paddingVertical: 2, borderRadius: 4 },
|
|
318
|
+
miniPillText: { color: '#FFF', fontSize: 10, fontWeight: '700' },
|
|
319
|
+
durationText: { fontSize: 12, color: Colors.textSecondary, fontWeight: '500' },
|
|
320
|
+
url: { fontSize: 13, color: Colors.textSecondary, marginBottom: 4, lineHeight: 18 },
|
|
321
|
+
time: { fontSize: 11, color: Colors.textLight },
|
|
322
|
+
|
|
323
|
+
// Detail overlay
|
|
324
|
+
detailOverlay: {
|
|
325
|
+
position: 'absolute',
|
|
326
|
+
top: 0,
|
|
327
|
+
left: 0,
|
|
328
|
+
right: 0,
|
|
329
|
+
bottom: 0,
|
|
330
|
+
backgroundColor: Colors.background,
|
|
331
|
+
},
|
|
332
|
+
detailWrap: { flex: 1, backgroundColor: Colors.background },
|
|
333
|
+
detailHeader: {
|
|
334
|
+
flexDirection: 'row',
|
|
335
|
+
alignItems: 'center',
|
|
336
|
+
paddingHorizontal: 8,
|
|
337
|
+
paddingVertical: 10,
|
|
338
|
+
backgroundColor: Colors.surface,
|
|
339
|
+
borderBottomWidth: StyleSheet.hairlineWidth,
|
|
340
|
+
borderBottomColor: Colors.border,
|
|
341
|
+
},
|
|
342
|
+
backBtn: {
|
|
343
|
+
flexDirection: 'row',
|
|
344
|
+
alignItems: 'center',
|
|
345
|
+
paddingHorizontal: 6,
|
|
346
|
+
paddingVertical: 4,
|
|
347
|
+
borderRadius: 8,
|
|
348
|
+
marginRight: 8,
|
|
349
|
+
},
|
|
350
|
+
backIcon: {
|
|
351
|
+
fontSize: 24,
|
|
352
|
+
fontWeight: '300',
|
|
353
|
+
color: Colors.primary,
|
|
354
|
+
marginTop: -2,
|
|
355
|
+
marginRight: 2,
|
|
356
|
+
},
|
|
357
|
+
backText: {
|
|
358
|
+
fontSize: 16,
|
|
359
|
+
color: Colors.primary,
|
|
360
|
+
fontWeight: '500',
|
|
361
|
+
},
|
|
362
|
+
detailHeaderCenter: {
|
|
363
|
+
flexDirection: 'row',
|
|
364
|
+
alignItems: 'center',
|
|
365
|
+
gap: 8,
|
|
366
|
+
flex: 1,
|
|
367
|
+
},
|
|
368
|
+
methodBadge: {
|
|
369
|
+
paddingHorizontal: 10,
|
|
370
|
+
paddingVertical: 4,
|
|
371
|
+
borderRadius: 6,
|
|
372
|
+
},
|
|
373
|
+
methodBadgeText: { color: '#FFF', fontSize: 12, fontWeight: '700' },
|
|
374
|
+
statusPill: { paddingHorizontal: 9, paddingVertical: 3, borderRadius: 6 },
|
|
375
|
+
statusPillText: { color: '#FFF', fontSize: 11, fontWeight: '700' },
|
|
376
|
+
detailBody: { flex: 1 },
|
|
377
|
+
detailBodyContent: { padding: 12, paddingBottom: 40 },
|
|
378
|
+
|
|
379
|
+
// Detail content
|
|
380
|
+
urlCard: {
|
|
381
|
+
flexDirection: 'row',
|
|
382
|
+
alignItems: 'center',
|
|
383
|
+
backgroundColor: Colors.surface,
|
|
384
|
+
borderRadius: 12,
|
|
385
|
+
padding: 14,
|
|
386
|
+
marginBottom: 8,
|
|
387
|
+
gap: 8,
|
|
388
|
+
},
|
|
389
|
+
urlText: { flex: 1, fontSize: 13, color: Colors.textSecondary, lineHeight: 18 },
|
|
390
|
+
sectionWithCopy: { gap: 8 },
|
|
391
|
+
emptySection: { fontSize: 13, color: Colors.textLight, paddingVertical: 4 },
|
|
392
|
+
errorBox: {
|
|
393
|
+
backgroundColor: 'rgba(255,59,48,0.06)',
|
|
394
|
+
borderWidth: 1,
|
|
395
|
+
borderColor: 'rgba(255,59,48,0.15)',
|
|
396
|
+
borderRadius: 10,
|
|
397
|
+
padding: 12,
|
|
398
|
+
marginBottom: 10,
|
|
399
|
+
flexDirection: 'row',
|
|
400
|
+
alignItems: 'flex-start',
|
|
401
|
+
gap: 8,
|
|
402
|
+
},
|
|
403
|
+
errorIcon: { fontSize: 14, color: Colors.error },
|
|
404
|
+
errorText: { flex: 1, fontSize: 13, color: Colors.error, lineHeight: 18 },
|
|
405
|
+
codeBlock: {
|
|
406
|
+
backgroundColor: '#1E1E2E',
|
|
407
|
+
borderRadius: 12,
|
|
408
|
+
padding: 12,
|
|
409
|
+
},
|
|
410
|
+
codeText: { fontFamily: 'Courier', fontSize: 12, color: '#CDD6F4', lineHeight: 18 },
|
|
411
|
+
});
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View, Text, TouchableOpacity, StyleSheet } from 'react-native';
|
|
3
|
+
import { Colors } from '../utils/constants';
|
|
4
|
+
import type { DebugFeatureRenderProps, ThirdPartyLib } from '../types';
|
|
5
|
+
|
|
6
|
+
export const ThirdPartyLibsTab: React.FC<DebugFeatureRenderProps<ThirdPartyLib>> = ({
|
|
7
|
+
data,
|
|
8
|
+
}) => {
|
|
9
|
+
if (data.length === 0) {
|
|
10
|
+
return (
|
|
11
|
+
<View style={styles.container}>
|
|
12
|
+
<Text style={styles.empty}>No debug libraries available for this platform</Text>
|
|
13
|
+
</View>
|
|
14
|
+
);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
return (
|
|
18
|
+
<View style={styles.container}>
|
|
19
|
+
{data.map((lib) => (
|
|
20
|
+
<View key={lib.id} style={styles.libCard}>
|
|
21
|
+
<Text style={styles.libName}>{lib.name}</Text>
|
|
22
|
+
<Text style={styles.libDesc}>{lib.description}</Text>
|
|
23
|
+
<View style={styles.actions}>
|
|
24
|
+
{lib.actions.map((action) => (
|
|
25
|
+
<TouchableOpacity
|
|
26
|
+
key={action.id}
|
|
27
|
+
style={styles.actionButton}
|
|
28
|
+
onPress={action.onPress}
|
|
29
|
+
>
|
|
30
|
+
<Text style={styles.actionText}>{action.label}</Text>
|
|
31
|
+
</TouchableOpacity>
|
|
32
|
+
))}
|
|
33
|
+
</View>
|
|
34
|
+
</View>
|
|
35
|
+
))}
|
|
36
|
+
</View>
|
|
37
|
+
);
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
const styles = StyleSheet.create({
|
|
41
|
+
container: { flex: 1, backgroundColor: Colors.surface, padding: 15 },
|
|
42
|
+
empty: { textAlign: 'center', color: Colors.textLight, marginTop: 20 },
|
|
43
|
+
libCard: {
|
|
44
|
+
backgroundColor: Colors.background,
|
|
45
|
+
borderRadius: 8,
|
|
46
|
+
padding: 15,
|
|
47
|
+
marginBottom: 12,
|
|
48
|
+
borderWidth: 1,
|
|
49
|
+
borderColor: Colors.border,
|
|
50
|
+
},
|
|
51
|
+
libName: { fontSize: 16, fontWeight: 'bold', color: Colors.text, marginBottom: 4 },
|
|
52
|
+
libDesc: { fontSize: 13, color: Colors.textSecondary, marginBottom: 12 },
|
|
53
|
+
actions: { flexDirection: 'row', flexWrap: 'wrap' },
|
|
54
|
+
actionButton: {
|
|
55
|
+
backgroundColor: Colors.primary,
|
|
56
|
+
paddingHorizontal: 14,
|
|
57
|
+
paddingVertical: 8,
|
|
58
|
+
borderRadius: 6,
|
|
59
|
+
marginRight: 8,
|
|
60
|
+
marginBottom: 8,
|
|
61
|
+
},
|
|
62
|
+
actionText: { color: '#FFF', fontSize: 14, fontWeight: '600' },
|
|
63
|
+
});
|