react-native-inapp-inspector 2.3.19 → 2.3.21
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 +14 -14
- package/android/src/main/java/com/inappinspector/NetworkInspectorModule.kt +67 -0
- package/dist/commonjs/analytics.js +1 -24
- package/dist/commonjs/bundle.js +1 -16
- package/dist/commonjs/capture.js +1 -35
- package/dist/commonjs/components/AnalyticsDetail.js +92 -623
- package/dist/commonjs/components/AnalyticsEventCard.js +54 -350
- package/dist/commonjs/components/AnalyticsGraph.js +70 -370
- package/dist/commonjs/components/AnimatedEntrance.js +1 -11
- package/dist/commonjs/components/AppHeaderLogo.js +7 -134
- package/dist/commonjs/components/BrandCircleIcon.js +73 -118
- package/dist/commonjs/components/BrandSquareIcon.js +63 -108
- package/dist/commonjs/components/CodeSnippet.js +48 -623
- package/dist/commonjs/components/ConsoleLogCard.js +63 -537
- package/dist/commonjs/components/CopyButton.js +3 -89
- package/dist/commonjs/components/DiffViewer.js +19 -83
- package/dist/commonjs/components/DomainHeader.js +27 -127
- package/dist/commonjs/components/EmptyState.js +10 -87
- package/dist/commonjs/components/EndOfListFooter.js +7 -81
- package/dist/commonjs/components/ErrorBoundary.js +72 -566
- package/dist/commonjs/components/HeadersSection.js +31 -110
- package/dist/commonjs/components/HighlightText.js +17 -58
- package/dist/commonjs/components/Inspector/AboutModal.d.ts +6 -0
- package/dist/commonjs/components/Inspector/AboutModal.js +243 -0
- package/dist/commonjs/components/Inspector/AnalyticsFilterModal.js +98 -797
- package/dist/commonjs/components/Inspector/AnalyticsTab.js +284 -930
- package/dist/commonjs/components/Inspector/BundleTab.js +551 -2918
- package/dist/commonjs/components/Inspector/ConsoleTab.js +79 -492
- package/dist/commonjs/components/Inspector/CrashDetail.js +123 -672
- package/dist/commonjs/components/Inspector/CrashFilterModal.js +66 -498
- package/dist/commonjs/components/Inspector/CrashTab.js +98 -670
- package/dist/commonjs/components/Inspector/DebuggingTab.js +74 -875
- package/dist/commonjs/components/Inspector/DeviceInfoTab.js +143 -907
- package/dist/commonjs/components/Inspector/FabLauncher.js +42 -466
- package/dist/commonjs/components/Inspector/FeatureUnderDevNotice.js +6 -99
- package/dist/commonjs/components/Inspector/InspectorContext.js +1 -21
- package/dist/commonjs/components/Inspector/InspectorHeader.js +191 -1110
- package/dist/commonjs/components/Inspector/LogDetail.js +168 -994
- package/dist/commonjs/components/Inspector/MainScreen.js +52 -335
- package/dist/commonjs/components/Inspector/MediaGalleryTab.js +97 -644
- package/dist/commonjs/components/Inspector/MediaPreviewModal.js +90 -605
- package/dist/commonjs/components/Inspector/NavigationTracker.js +1 -12
- package/dist/commonjs/components/Inspector/NetworkDetail.js +89 -411
- package/dist/commonjs/components/Inspector/NetworkFilterModal.js +60 -576
- package/dist/commonjs/components/Inspector/NetworkTab.js +84 -514
- package/dist/commonjs/components/Inspector/NpmStarPrompt.js +18 -434
- package/dist/commonjs/components/Inspector/NpmUpdateToast.js +25 -298
- package/dist/commonjs/components/Inspector/PerformanceTab.js +182 -1397
- package/dist/commonjs/components/Inspector/ReduxDetail.js +188 -1089
- package/dist/commonjs/components/Inspector/ReduxTab.js +85 -701
- package/dist/commonjs/components/Inspector/SettingsPanel.js +427 -3807
- package/dist/commonjs/components/Inspector/SkeletonPlaceholder.js +11 -180
- package/dist/commonjs/components/Inspector/StorageTab.js +93 -826
- package/dist/commonjs/components/Inspector/TabBar.js +36 -334
- package/dist/commonjs/components/Inspector/UpdateAvailableModal.js +37 -412
- package/dist/commonjs/components/JsonViewer.js +168 -381
- package/dist/commonjs/components/LogCard.js +57 -567
- package/dist/commonjs/components/LogSyntaxHighlighter.js +11 -130
- package/dist/commonjs/components/MetaAccordion.js +69 -238
- package/dist/commonjs/components/MiniBarChart.js +3 -56
- package/dist/commonjs/components/MiniLineChart.js +3 -58
- package/dist/commonjs/components/NetworkIcons.d.ts +13 -0
- package/dist/commonjs/components/NetworkIcons.js +521 -1022
- package/dist/commonjs/components/QRCodeView.js +5 -79
- package/dist/commonjs/components/SectionHeader.js +15 -37
- package/dist/commonjs/components/SegmentedTabs.js +7 -62
- package/dist/commonjs/components/SkeletonPlaceholder.js +11 -180
- package/dist/commonjs/components/Slider.js +15 -243
- package/dist/commonjs/components/SourcePageCard.js +30 -89
- package/dist/commonjs/components/Toast.js +5 -147
- package/dist/commonjs/components/TouchableScale.js +3 -24
- package/dist/commonjs/components/TreeNode.js +55 -130
- package/dist/commonjs/console.js +1 -16
- package/dist/commonjs/constants/index.js +1 -32
- package/dist/commonjs/constants/telemetryConfig.js +1 -6
- package/dist/commonjs/constants/version.d.ts +1 -1
- package/dist/commonjs/constants/version.js +1 -4
- package/dist/commonjs/crash.js +1 -23
- package/dist/commonjs/customHooks/analyticsLogger.js +1 -250
- package/dist/commonjs/customHooks/bundleAnalyzer.js +1 -957
- package/dist/commonjs/customHooks/consoleLogger.js +6 -445
- package/dist/commonjs/customHooks/crashHandler.js +7 -656
- package/dist/commonjs/customHooks/logFilters.js +1 -23
- package/dist/commonjs/customHooks/networkLogger.js +2 -536
- package/dist/commonjs/customHooks/performanceTracker.js +63 -750
- package/dist/commonjs/customHooks/reduxLogger.js +2 -313
- package/dist/commonjs/customHooks/storageInspector.js +1 -435
- package/dist/commonjs/customHooks/useAccordion.js +1 -18
- package/dist/commonjs/decorators/index.js +1 -100
- package/dist/commonjs/helpers/gaAnalyticsRegistry.js +1 -148
- package/dist/commonjs/helpers/index.d.ts +1 -0
- package/dist/commonjs/helpers/index.js +8 -921
- package/dist/commonjs/helpers/memoryManager.js +1 -99
- package/dist/commonjs/helpers/qrGenerator.js +1 -367
- package/dist/commonjs/helpers/remoteConfig.js +1 -165
- package/dist/commonjs/helpers/searchQueryParser.js +1 -62
- package/dist/commonjs/helpers/settingsStore.js +1 -144
- package/dist/commonjs/helpers/telemetry.js +1 -501
- package/dist/commonjs/helpers/toast.js +1 -20
- package/dist/commonjs/i18n/index.js +1 -90
- package/dist/commonjs/i18n/locales/en.json +1 -1140
- package/dist/commonjs/index.js +5 -2168
- package/dist/commonjs/metro.js +6 -468
- package/dist/commonjs/native/NativeInspector.d.ts +1 -0
- package/dist/commonjs/native/NativeInspector.js +1 -415
- package/dist/commonjs/native/NativeNetworkInspector.js +1 -4
- package/dist/commonjs/network.js +1 -13
- package/dist/commonjs/performance.js +1 -29
- package/dist/commonjs/redux.js +1 -20
- package/dist/commonjs/storage.js +1 -14
- package/dist/commonjs/styles/AppColors.js +1 -423
- package/dist/commonjs/styles/AppFonts.js +1 -17
- package/dist/commonjs/styles/common.js +1 -190
- package/dist/commonjs/styles/index.d.ts +6 -0
- package/dist/commonjs/styles/index.js +1 -1589
- package/dist/commonjs/types/enums.d.ts +0 -1
- package/dist/commonjs/types/enums.js +1 -152
- package/dist/commonjs/types/index.js +1 -18
- package/dist/commonjs/types/interfaces.d.ts +2 -2
- package/dist/commonjs/types/interfaces.js +1 -2
- package/dist/esm/analytics.js +1 -2
- package/dist/esm/bundle.js +1 -2
- package/dist/esm/capture.js +1 -32
- package/dist/esm/components/AnalyticsDetail.js +171 -664
- package/dist/esm/components/AnalyticsEventCard.js +77 -335
- package/dist/esm/components/AnalyticsGraph.js +95 -357
- package/dist/esm/components/AnimatedEntrance.js +1 -6
- package/dist/esm/components/AppHeaderLogo.js +7 -94
- package/dist/esm/components/BrandCircleIcon.js +114 -119
- package/dist/esm/components/BrandSquareIcon.js +73 -78
- package/dist/esm/components/CodeSnippet.js +58 -595
- package/dist/esm/components/ConsoleLogCard.js +91 -526
- package/dist/esm/components/CopyButton.js +3 -51
- package/dist/esm/components/DiffViewer.js +22 -48
- package/dist/esm/components/DomainHeader.js +43 -138
- package/dist/esm/components/EmptyState.js +17 -56
- package/dist/esm/components/EndOfListFooter.js +15 -83
- package/dist/esm/components/ErrorBoundary.js +125 -582
- package/dist/esm/components/HeadersSection.js +52 -93
- package/dist/esm/components/HighlightText.js +17 -53
- package/dist/esm/components/Inspector/AboutModal.d.ts +6 -0
- package/dist/esm/components/Inspector/AboutModal.js +243 -0
- package/dist/esm/components/Inspector/AnalyticsFilterModal.js +225 -886
- package/dist/esm/components/Inspector/AnalyticsTab.js +296 -904
- package/dist/esm/components/Inspector/BundleTab.js +1175 -3502
- package/dist/esm/components/Inspector/ConsoleTab.js +113 -488
- package/dist/esm/components/Inspector/CrashDetail.js +236 -747
- package/dist/esm/components/Inspector/CrashFilterModal.js +149 -541
- package/dist/esm/components/Inspector/CrashTab.js +177 -711
- package/dist/esm/components/Inspector/DebuggingTab.js +164 -925
- package/dist/esm/components/Inspector/DeviceInfoTab.js +199 -924
- package/dist/esm/components/Inspector/FabLauncher.js +68 -454
- package/dist/esm/components/Inspector/FeatureUnderDevNotice.js +14 -70
- package/dist/esm/components/Inspector/InspectorContext.js +1 -12
- package/dist/esm/components/Inspector/InspectorHeader.js +282 -1163
- package/dist/esm/components/Inspector/LogDetail.js +235 -1023
- package/dist/esm/components/Inspector/MainScreen.js +78 -323
- package/dist/esm/components/Inspector/MediaGalleryTab.js +143 -650
- package/dist/esm/components/Inspector/MediaPreviewModal.js +138 -613
- package/dist/esm/components/Inspector/NavigationTracker.js +1 -10
- package/dist/esm/components/Inspector/NetworkDetail.js +138 -455
- package/dist/esm/components/Inspector/NetworkFilterModal.js +122 -597
- package/dist/esm/components/Inspector/NetworkTab.js +125 -517
- package/dist/esm/components/Inspector/NpmStarPrompt.js +58 -434
- package/dist/esm/components/Inspector/NpmUpdateToast.js +45 -281
- package/dist/esm/components/Inspector/PerformanceTab.js +393 -1570
- package/dist/esm/components/Inspector/ReduxDetail.js +307 -1170
- package/dist/esm/components/Inspector/ReduxTab.js +144 -722
- package/dist/esm/components/Inspector/SettingsPanel.js +643 -3985
- package/dist/esm/components/Inspector/SkeletonPlaceholder.js +30 -163
- package/dist/esm/components/Inspector/StorageTab.js +172 -866
- package/dist/esm/components/Inspector/TabBar.js +45 -305
- package/dist/esm/components/Inspector/UpdateAvailableModal.js +80 -418
- package/dist/esm/components/JsonViewer.js +179 -354
- package/dist/esm/components/LogCard.js +93 -565
- package/dist/esm/components/LogSyntaxHighlighter.js +11 -123
- package/dist/esm/components/MetaAccordion.js +136 -267
- package/dist/esm/components/MiniBarChart.js +3 -18
- package/dist/esm/components/MiniLineChart.js +3 -20
- package/dist/esm/components/NetworkIcons.d.ts +13 -0
- package/dist/esm/components/NetworkIcons.js +523 -838
- package/dist/esm/components/QRCodeView.js +8 -45
- package/dist/esm/components/SectionHeader.js +22 -39
- package/dist/esm/components/SegmentedTabs.js +8 -58
- package/dist/esm/components/SkeletonPlaceholder.js +30 -163
- package/dist/esm/components/Slider.js +24 -213
- package/dist/esm/components/SourcePageCard.js +65 -86
- package/dist/esm/components/Toast.js +10 -117
- package/dist/esm/components/TouchableScale.js +3 -19
- package/dist/esm/components/TreeNode.js +58 -95
- package/dist/esm/console.js +1 -2
- package/dist/esm/constants/index.js +1 -28
- package/dist/esm/constants/telemetryConfig.js +1 -3
- package/dist/esm/constants/version.d.ts +1 -1
- package/dist/esm/constants/version.js +1 -1
- package/dist/esm/crash.js +1 -2
- package/dist/esm/customHooks/analyticsLogger.js +1 -230
- package/dist/esm/customHooks/bundleAnalyzer.js +1 -944
- package/dist/esm/customHooks/consoleLogger.js +6 -432
- package/dist/esm/customHooks/crashHandler.js +7 -630
- package/dist/esm/customHooks/logFilters.js +1 -20
- package/dist/esm/customHooks/networkLogger.js +2 -519
- package/dist/esm/customHooks/performanceTracker.js +63 -723
- package/dist/esm/customHooks/reduxLogger.js +2 -293
- package/dist/esm/customHooks/storageInspector.js +1 -418
- package/dist/esm/customHooks/useAccordion.js +1 -16
- package/dist/esm/decorators/index.js +1 -95
- package/dist/esm/helpers/gaAnalyticsRegistry.js +1 -143
- package/dist/esm/helpers/index.d.ts +1 -0
- package/dist/esm/helpers/index.js +8 -861
- package/dist/esm/helpers/memoryManager.js +1 -91
- package/dist/esm/helpers/qrGenerator.js +1 -364
- package/dist/esm/helpers/remoteConfig.js +1 -160
- package/dist/esm/helpers/searchQueryParser.js +1 -59
- package/dist/esm/helpers/settingsStore.js +1 -134
- package/dist/esm/helpers/telemetry.js +1 -489
- package/dist/esm/helpers/toast.js +1 -15
- package/dist/esm/i18n/index.js +1 -78
- package/dist/esm/i18n/locales/en.json +1 -1140
- package/dist/esm/index.js +7 -1982
- package/dist/esm/metro.js +6 -459
- package/dist/esm/native/NativeInspector.d.ts +1 -0
- package/dist/esm/native/NativeInspector.js +1 -382
- package/dist/esm/native/NativeNetworkInspector.js +1 -2
- package/dist/esm/network.js +1 -1
- package/dist/esm/performance.js +1 -2
- package/dist/esm/redux.js +1 -1
- package/dist/esm/storage.js +1 -1
- package/dist/esm/styles/AppColors.js +1 -417
- package/dist/esm/styles/AppFonts.js +1 -13
- package/dist/esm/styles/common.js +1 -186
- package/dist/esm/styles/index.d.ts +6 -0
- package/dist/esm/styles/index.js +1 -1551
- package/dist/esm/types/enums.d.ts +0 -1
- package/dist/esm/types/enums.js +1 -149
- package/dist/esm/types/index.js +1 -2
- package/dist/esm/types/interfaces.d.ts +2 -2
- package/dist/esm/types/interfaces.js +1 -1
- package/ios/NetworkInspectorModule.mm +60 -12
- package/package.json +5 -3
- package/src/native/NativeInspector.ts +18 -0
- package/dist/commonjs/components/Inspector/FeedbackModal.d.ts +0 -7
- package/dist/commonjs/components/Inspector/FeedbackModal.js +0 -552
- package/dist/esm/components/Inspector/FeedbackModal.d.ts +0 -7
- package/dist/esm/components/Inspector/FeedbackModal.js +0 -515
- package/src/analytics.ts +0 -35
- package/src/bundle.ts +0 -25
- package/src/capture.ts +0 -109
- package/src/components/AnalyticsDetail.tsx +0 -870
- package/src/components/AnalyticsEventCard.tsx +0 -444
- package/src/components/AnalyticsGraph.tsx +0 -583
- package/src/components/AnimatedEntrance.tsx +0 -20
- package/src/components/AppHeaderLogo.tsx +0 -143
- package/src/components/BrandCircleIcon.tsx +0 -144
- package/src/components/BrandSquareIcon.tsx +0 -184
- package/src/components/CodeSnippet.tsx +0 -725
- package/src/components/ConsoleLogCard.tsx +0 -679
- package/src/components/CopyButton.tsx +0 -87
- package/src/components/DiffViewer.tsx +0 -82
- package/src/components/DomainHeader.tsx +0 -224
- package/src/components/EmptyState.tsx +0 -97
- package/src/components/EndOfListFooter.tsx +0 -100
- package/src/components/ErrorBoundary.tsx +0 -688
- package/src/components/HeadersSection.tsx +0 -172
- package/src/components/HighlightText.tsx +0 -100
- package/src/components/Inspector/AnalyticsFilterModal.tsx +0 -1250
- package/src/components/Inspector/AnalyticsTab.tsx +0 -1362
- package/src/components/Inspector/BundleTab.tsx +0 -4768
- package/src/components/Inspector/ConsoleTab.tsx +0 -726
- package/src/components/Inspector/CrashDetail.tsx +0 -997
- package/src/components/Inspector/CrashFilterModal.tsx +0 -721
- package/src/components/Inspector/CrashTab.tsx +0 -933
- package/src/components/Inspector/DebuggingTab.tsx +0 -1103
- package/src/components/Inspector/DeviceInfoTab.tsx +0 -1397
- package/src/components/Inspector/FabLauncher.tsx +0 -590
- package/src/components/Inspector/FeatureUnderDevNotice.tsx +0 -94
- package/src/components/Inspector/FeedbackModal.tsx +0 -626
- package/src/components/Inspector/InspectorContext.tsx +0 -28
- package/src/components/Inspector/InspectorHeader.tsx +0 -1583
- package/src/components/Inspector/LogDetail.tsx +0 -1431
- package/src/components/Inspector/MainScreen.tsx +0 -460
- package/src/components/Inspector/MediaGalleryTab.tsx +0 -829
- package/src/components/Inspector/MediaPreviewModal.tsx +0 -783
- package/src/components/Inspector/NavigationTracker.tsx +0 -13
- package/src/components/Inspector/NetworkDetail.tsx +0 -778
- package/src/components/Inspector/NetworkFilterModal.tsx +0 -730
- package/src/components/Inspector/NetworkTab.tsx +0 -820
- package/src/components/Inspector/NpmStarPrompt.tsx +0 -532
- package/src/components/Inspector/NpmUpdateToast.tsx +0 -387
- package/src/components/Inspector/PerformanceTab.tsx +0 -1967
- package/src/components/Inspector/ReduxDetail.tsx +0 -1651
- package/src/components/Inspector/ReduxTab.tsx +0 -987
- package/src/components/Inspector/SettingsPanel.tsx +0 -5136
- package/src/components/Inspector/SkeletonPlaceholder.tsx +0 -206
- package/src/components/Inspector/StorageTab.tsx +0 -1159
- package/src/components/Inspector/TabBar.tsx +0 -431
- package/src/components/Inspector/UpdateAvailableModal.tsx +0 -555
- package/src/components/JsonViewer.tsx +0 -549
- package/src/components/LogCard.tsx +0 -694
- package/src/components/LogSyntaxHighlighter.tsx +0 -178
- package/src/components/MetaAccordion.tsx +0 -355
- package/src/components/MiniBarChart.tsx +0 -42
- package/src/components/MiniLineChart.tsx +0 -33
- package/src/components/NetworkIcons.tsx +0 -2655
- package/src/components/QRCodeView.tsx +0 -75
- package/src/components/SectionHeader.tsx +0 -101
- package/src/components/SegmentedTabs.tsx +0 -84
- package/src/components/SkeletonPlaceholder.tsx +0 -206
- package/src/components/Slider.tsx +0 -300
- package/src/components/SourcePageCard.tsx +0 -150
- package/src/components/Toast.tsx +0 -131
- package/src/components/TouchableScale.tsx +0 -61
- package/src/components/TreeNode.tsx +0 -171
- package/src/console.ts +0 -24
- package/src/constants/index.ts +0 -41
- package/src/constants/telemetryConfig.ts +0 -4
- package/src/constants/version.ts +0 -3
- package/src/crash.ts +0 -32
- package/src/customHooks/analyticsLogger.ts +0 -336
- package/src/customHooks/bundleAnalyzer.ts +0 -1256
- package/src/customHooks/consoleLogger.ts +0 -530
- package/src/customHooks/crashHandler.ts +0 -944
- package/src/customHooks/logFilters.ts +0 -32
- package/src/customHooks/networkLogger.ts +0 -624
- package/src/customHooks/performanceTracker.ts +0 -1014
- package/src/customHooks/reduxLogger.ts +0 -406
- package/src/customHooks/storageInspector.ts +0 -513
- package/src/customHooks/useAccordion.tsx +0 -27
- package/src/decorators/index.ts +0 -184
- package/src/helpers/gaAnalyticsRegistry.ts +0 -204
- package/src/helpers/index.ts +0 -1092
- package/src/helpers/memoryManager.ts +0 -138
- package/src/helpers/qrGenerator.ts +0 -430
- package/src/helpers/remoteConfig.ts +0 -212
- package/src/helpers/searchQueryParser.ts +0 -84
- package/src/helpers/settingsStore.ts +0 -171
- package/src/helpers/telemetry.ts +0 -568
- package/src/helpers/toast.ts +0 -17
- package/src/i18n/index.ts +0 -104
- package/src/i18n/locales/en.json +0 -1141
- package/src/index.tsx +0 -2650
- package/src/metro.ts +0 -598
- package/src/network.ts +0 -22
- package/src/performance.ts +0 -38
- package/src/redux.ts +0 -23
- package/src/storage.ts +0 -18
- package/src/styles/AppColors.ts +0 -455
- package/src/styles/AppFonts.ts +0 -26
- package/src/styles/common.ts +0 -209
- package/src/styles/index.ts +0 -1606
- package/src/types/enums.ts +0 -210
- package/src/types/index.ts +0 -34
- package/src/types/interfaces.ts +0 -535
|
@@ -1,794 +1,283 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Platform, ScrollView, StyleSheet, Text, TextInput, View, } from 'react-native';
|
|
3
|
-
import { useTranslation } from '../../i18n';
|
|
4
|
-
import { useInspector } from './InspectorContext';
|
|
5
|
-
import TouchableScale from '../TouchableScale';
|
|
6
|
-
import SegmentedTabs from '../SegmentedTabs';
|
|
7
|
-
import HighlightText from '../HighlightText';
|
|
8
|
-
import JsonViewer from '../JsonViewer';
|
|
9
|
-
import CopyButton from '../CopyButton';
|
|
10
|
-
import { AppColors } from '../../styles/AppColors';
|
|
11
|
-
import { AppFonts } from '../../styles/AppFonts';
|
|
12
|
-
import { exportCrashReport, parseCrashStackTrace, } from '../../customHooks/crashHandler';
|
|
13
|
-
import { copyToClipboard } from '../../helpers';
|
|
14
|
-
import { SearchIcon, ClearIcon, CopyIcon, TerminalIcon, LayersIcon, ClockIcon, CircleCheckIcon, GlobeIcon, AppleIcon, AndroidIcon, StackTraceIcon, DiagnosticsIcon, TrailIcon, RawJsonIcon, AppFramesIcon, AllFramesIcon, } from '../NetworkIcons';
|
|
15
|
-
const CrashDetail = React.memo(() => {
|
|
16
|
-
const { t } = useTranslation();
|
|
17
|
-
const { selectedCrash } = useInspector();
|
|
18
|
-
const [activeSubTab, setActiveSubTab] = useState('stack');
|
|
19
|
-
const [searchQuery, setSearchQuery] = useState('');
|
|
20
|
-
const [stackFilter, setStackFilter] = useState('app');
|
|
21
|
-
const [copiedSuccess, setCopiedSuccess] = useState(false);
|
|
22
|
-
const [copiedFrameIndex, setCopiedFrameIndex] = useState(null);
|
|
23
|
-
if (!selectedCrash)
|
|
24
|
-
return null;
|
|
25
|
-
const stackFrames = useMemo(() => {
|
|
26
|
-
if (selectedCrash.parsedStack && selectedCrash.parsedStack.length > 0) {
|
|
27
|
-
return selectedCrash.parsedStack;
|
|
28
|
-
}
|
|
29
|
-
if (selectedCrash.stack) {
|
|
30
|
-
return parseCrashStackTrace(selectedCrash.stack);
|
|
31
|
-
}
|
|
32
|
-
return [];
|
|
33
|
-
}, [selectedCrash]);
|
|
34
|
-
const rawCrashData = useMemo(() => {
|
|
35
|
-
try {
|
|
36
|
-
return JSON.parse(JSON.stringify(selectedCrash));
|
|
37
|
-
}
|
|
38
|
-
catch {
|
|
39
|
-
return selectedCrash;
|
|
40
|
-
}
|
|
41
|
-
}, [selectedCrash]);
|
|
42
|
-
const appStackFrames = useMemo(() => {
|
|
43
|
-
return stackFrames.filter(f => f.isAppCode);
|
|
44
|
-
}, [stackFrames]);
|
|
45
|
-
const displayedFrames = useMemo(() => {
|
|
46
|
-
if (stackFilter === 'app' && appStackFrames.length > 0) {
|
|
47
|
-
return appStackFrames;
|
|
48
|
-
}
|
|
49
|
-
return stackFrames;
|
|
50
|
-
}, [stackFilter, appStackFrames, stackFrames]);
|
|
51
|
-
const originFrame = useMemo(() => {
|
|
52
|
-
return appStackFrames[0] || stackFrames[0] || null;
|
|
53
|
-
}, [appStackFrames, stackFrames]);
|
|
54
|
-
const handleCopyReport = () => {
|
|
55
|
-
const report = exportCrashReport(selectedCrash);
|
|
56
|
-
copyToClipboard(report, 'Crash Report');
|
|
57
|
-
setCopiedSuccess(true);
|
|
58
|
-
setTimeout(() => setCopiedSuccess(false), 2000);
|
|
59
|
-
};
|
|
60
|
-
const handleCopyFrame = (frame, index) => {
|
|
61
|
-
const text = frame.raw || `${frame.method}@${frame.file}:${frame.lineNumber}:${frame.column}`;
|
|
62
|
-
copyToClipboard(text, 'Stack Frame');
|
|
63
|
-
setCopiedFrameIndex(index);
|
|
64
|
-
setTimeout(() => setCopiedFrameIndex(null), 1500);
|
|
65
|
-
};
|
|
66
|
-
const tabsConfig = [
|
|
67
|
-
{
|
|
68
|
-
key: 'stack',
|
|
69
|
-
label: t('crash.tabStack', { count: stackFrames.length }),
|
|
70
|
-
icon: (isActive) => (<StackTraceIcon size={12} color={isActive ? AppColors.white : AppColors.grayText}/>),
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
key: 'diagnostics',
|
|
74
|
-
label: t('crash.tabDiagnostics'),
|
|
75
|
-
icon: (isActive) => (<DiagnosticsIcon size={12} color={isActive ? AppColors.white : AppColors.grayText}/>),
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
key: 'breadcrumbs',
|
|
79
|
-
label: t('crash.tabTrail', { count: selectedCrash.breadcrumbs?.length || 0 }),
|
|
80
|
-
icon: (isActive) => (<TrailIcon size={12} color={isActive ? AppColors.white : AppColors.grayText}/>),
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
key: 'raw',
|
|
84
|
-
label: t('crash.tabRawJson'),
|
|
85
|
-
icon: (isActive) => (<RawJsonIcon size={12} color={isActive ? AppColors.white : AppColors.grayText}/>),
|
|
86
|
-
},
|
|
87
|
-
];
|
|
88
|
-
return (<View style={{ flex: 1, backgroundColor: AppColors.grayBackground }}>
|
|
1
|
+
import ae,{useMemo as L,useState as D}from"react";import{Platform as W,ScrollView as U,StyleSheet as ie,Text as S,TextInput as Ce,View as C}from"react-native";import{useTranslation as Te}from"../../i18n";import{useInspector as xe}from"./InspectorContext";import H from"../TouchableScale";import Se from"../SegmentedTabs";import Q from"../HighlightText";import _ from"../JsonViewer";import $ from"../CopyButton";import{AppColors as e}from"../../styles/AppColors";import{AppFonts as B}from"../../styles/AppFonts";import{exportCrashReport as Ve,parseCrashStackTrace as Be}from"../../customHooks/crashHandler";import{copyToClipboard as q}from"../../helpers";import{SearchIcon as Ie,ClearIcon as Fe,CopyIcon as K,TerminalIcon as Re,LayersIcon as X,ClockIcon as Le,CircleCheckIcon as Y,GlobeIcon as De,AppleIcon as He,AndroidIcon as Ae,StackTraceIcon as We,DiagnosticsIcon as $e,TrailIcon as Oe,RawJsonIcon as Me,AppFramesIcon as Ee,AllFramesIcon as Ge}from"../NetworkIcons";const je=ae.memo(()=>{const{t:V}=Te(),{selectedCrash:T}=xe(),[F,Z]=D("stack"),[R,E]=D(""),[I,G]=D("app"),[A,j]=D(!1),[J,N]=D(null);if(!T)return null;const z=L(()=>T.parsedStack&&T.parsedStack.length>0?T.parsedStack:T.stack?Be(T.stack):[],[T]),ee=L(()=>{try{return JSON.parse(JSON.stringify(T))}catch{return T}},[T]),v=L(()=>z.filter(x=>x.isAppCode),[z]),P=L(()=>I==="app"&&v.length>0?v:z,[I,v,z]),O=L(()=>v[0]||z[0]||null,[v,z]),re=()=>{const x=Ve(T);q(x,"Crash Report"),j(!0),setTimeout(()=>j(!1),2e3)},te=(x,k)=>{const M=x.raw||`${x.method}@${x.file}:${x.lineNumber}:${x.column}`;q(M,"Stack Frame"),N(k),setTimeout(()=>N(null),1500)},oe=[{key:"stack",label:V("crash.tabStack",{count:z.length}),icon:x=><We size={12}color={x?e.white:e.grayText}/>},{key:"diagnostics",label:V("crash.tabDiagnostics"),icon:x=><$e size={12}color={x?e.white:e.grayText}/>},{key:"breadcrumbs",label:V("crash.tabTrail",{count:T.breadcrumbs?.length||0}),icon:x=><Oe size={12}color={x?e.white:e.grayText}/>},{key:"raw",label:V("crash.tabRawJson"),icon:x=><Me size={12}color={x?e.white:e.grayText}/>}];return<C style={{flex:1,backgroundColor:e.grayBackground}}>
|
|
89
2
|
|
|
90
|
-
<
|
|
91
|
-
<
|
|
3
|
+
<C style={{paddingHorizontal:8,paddingTop:6}}>
|
|
4
|
+
<C style={r.infoBar}>
|
|
92
5
|
|
|
93
|
-
<
|
|
6
|
+
<C style={r.badgeRow}>
|
|
94
7
|
|
|
95
|
-
<
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
borderColor: selectedCrash.isFatal
|
|
102
|
-
? AppColors.errorBorder
|
|
103
|
-
: AppColors.amberWarmBorder,
|
|
104
|
-
},
|
|
105
|
-
]}>
|
|
106
|
-
<View style={[
|
|
107
|
-
localStyles.statusDot,
|
|
108
|
-
{
|
|
109
|
-
backgroundColor: selectedCrash.isFatal
|
|
110
|
-
? AppColors.red600
|
|
111
|
-
: AppColors.amber600,
|
|
112
|
-
},
|
|
113
|
-
]}/>
|
|
114
|
-
<Text style={[
|
|
115
|
-
localStyles.pillBadgeText,
|
|
116
|
-
{
|
|
117
|
-
color: selectedCrash.isFatal
|
|
118
|
-
? AppColors.redErrorText
|
|
119
|
-
: AppColors.amberWarmText,
|
|
120
|
-
},
|
|
121
|
-
]}>
|
|
122
|
-
{selectedCrash.isFatal ? t('crash.fatalCrash') : t('crash.handledException')}
|
|
123
|
-
</Text>
|
|
124
|
-
</View>
|
|
8
|
+
<C style={[r.pillBadge,{backgroundColor:T.isFatal?e.errorCardBg:e.amberBg,borderColor:T.isFatal?e.errorBorder:e.amberWarmBorder}]}>
|
|
9
|
+
<C style={[r.statusDot,{backgroundColor:T.isFatal?e.red600:e.amber600}]}/>
|
|
10
|
+
<S style={[r.pillBadgeText,{color:T.isFatal?e.redErrorText:e.amberWarmText}]}>
|
|
11
|
+
{T.isFatal?V("crash.fatalCrash"):V("crash.handledException")}
|
|
12
|
+
</S>
|
|
13
|
+
</C>
|
|
125
14
|
|
|
126
15
|
|
|
127
|
-
<
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
},
|
|
133
|
-
]}>
|
|
134
|
-
<Text style={[localStyles.pillBadgeText, { color: AppColors.purple700 }]}>
|
|
135
|
-
{selectedCrash.type.toUpperCase()}
|
|
136
|
-
</Text>
|
|
137
|
-
</View>
|
|
16
|
+
<C style={[r.pillBadge,{backgroundColor:e.violetSoftBg,borderColor:e.violetSoftBorder}]}>
|
|
17
|
+
<S style={[r.pillBadgeText,{color:e.purple700}]}>
|
|
18
|
+
{T.type.toUpperCase()}
|
|
19
|
+
</S>
|
|
20
|
+
</C>
|
|
138
21
|
|
|
139
|
-
<
|
|
22
|
+
<C style={{flex:1}}/>
|
|
140
23
|
|
|
141
24
|
|
|
142
|
-
<
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
copiedSuccess && { color: AppColors.mintGreenText },
|
|
150
|
-
]}>
|
|
151
|
-
{copiedSuccess ? t('crash.copied') : t('crash.copyReport')}
|
|
152
|
-
</Text>
|
|
153
|
-
</TouchableScale>
|
|
154
|
-
</View>
|
|
25
|
+
<H onPress={re}hitSlop={10}style={[r.actionButton,A&&{backgroundColor:e.mintGreenBg,borderColor:e.mintGreenBorder}]}>
|
|
26
|
+
{A?<Y color={e.mintGreenText}size={12}/>:<K color={e.purple}size={12}/>}
|
|
27
|
+
<S style={[r.actionButtonText,A&&{color:e.mintGreenText}]}>
|
|
28
|
+
{V(A?"crash.copied":"crash.copyReport")}
|
|
29
|
+
</S>
|
|
30
|
+
</H>
|
|
31
|
+
</C>
|
|
155
32
|
|
|
156
33
|
|
|
157
|
-
<
|
|
158
|
-
{
|
|
159
|
-
</
|
|
34
|
+
<S style={r.titleText}>
|
|
35
|
+
{T.message}
|
|
36
|
+
</S>
|
|
160
37
|
|
|
161
38
|
|
|
162
|
-
<
|
|
163
|
-
{
|
|
164
|
-
<
|
|
165
|
-
<
|
|
166
|
-
{
|
|
167
|
-
</
|
|
168
|
-
</
|
|
39
|
+
<U horizontal showsHorizontalScrollIndicator={!1}contentContainerStyle={r.metaRow}>
|
|
40
|
+
{O&&<C style={r.metaChip}>
|
|
41
|
+
<Re color={e.grayText}size={11}/>
|
|
42
|
+
<S style={r.metaChipText}numberOfLines={2}>
|
|
43
|
+
{O.file}:{O.lineNumber}
|
|
44
|
+
</S>
|
|
45
|
+
</C>}
|
|
169
46
|
|
|
170
|
-
<
|
|
171
|
-
<
|
|
172
|
-
<
|
|
173
|
-
{
|
|
174
|
-
</
|
|
175
|
-
</
|
|
47
|
+
<C style={r.metaChip}>
|
|
48
|
+
<Le color={e.grayText}size={11}/>
|
|
49
|
+
<S style={r.metaChipText}>
|
|
50
|
+
{T.timeStr||new Date(T.timestamp).toLocaleTimeString()}
|
|
51
|
+
</S>
|
|
52
|
+
</C>
|
|
176
53
|
|
|
177
|
-
{
|
|
178
|
-
{
|
|
179
|
-
<
|
|
180
|
-
{
|
|
181
|
-
</
|
|
182
|
-
</
|
|
183
|
-
</
|
|
184
|
-
</
|
|
185
|
-
</
|
|
54
|
+
{T.deviceInfo?.platform&&<C style={r.metaChip}>
|
|
55
|
+
{T.deviceInfo.platform==="ios"?<He color={e.grayText}size={11}/>:<Ae color={e.grayText}size={11}/>}
|
|
56
|
+
<S style={r.metaChipText}>
|
|
57
|
+
{T.deviceInfo.platform.toUpperCase()} {T.deviceInfo.osVersion}
|
|
58
|
+
</S>
|
|
59
|
+
</C>}
|
|
60
|
+
</U>
|
|
61
|
+
</C>
|
|
62
|
+
</C>
|
|
186
63
|
|
|
187
64
|
|
|
188
|
-
<
|
|
189
|
-
<
|
|
190
|
-
</
|
|
65
|
+
<C style={{paddingHorizontal:8,paddingTop:6,paddingBottom:4}}>
|
|
66
|
+
<Se tabs={oe}activeKey={F}onChange={x=>Z(x)}/>
|
|
67
|
+
</C>
|
|
191
68
|
|
|
192
69
|
|
|
193
|
-
{(
|
|
194
|
-
<
|
|
195
|
-
<
|
|
196
|
-
<
|
|
197
|
-
{
|
|
198
|
-
<
|
|
199
|
-
</
|
|
200
|
-
</
|
|
201
|
-
</
|
|
70
|
+
{(F==="stack"||F==="raw")&&<C style={{paddingHorizontal:12,paddingBottom:6}}>
|
|
71
|
+
<C style={r.searchContainer}>
|
|
72
|
+
<Ie color={e.grayText}size={14}/>
|
|
73
|
+
<Ce style={r.searchInput}placeholder={V("crash.searchDetailPlaceholder")}placeholderTextColor={e.grayTextWeak}value={R}onChangeText={E}autoCapitalize="none"autoCorrect={!1}/>
|
|
74
|
+
{R.length>0&&<H onPress={()=>E("")}hitSlop={10}>
|
|
75
|
+
<Fe color={e.grayText}size={13}/>
|
|
76
|
+
</H>}
|
|
77
|
+
</C>
|
|
78
|
+
</C>}
|
|
202
79
|
|
|
203
80
|
|
|
204
|
-
<
|
|
81
|
+
<U style={{flex:1}}contentContainerStyle={{padding:12,paddingBottom:40,gap:12}}>
|
|
205
82
|
|
|
206
|
-
{
|
|
83
|
+
{F==="stack"&&<C style={{gap:10}}>
|
|
207
84
|
|
|
208
|
-
<
|
|
209
|
-
<
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
: AppColors.purple}/>
|
|
216
|
-
<Text style={[
|
|
217
|
-
localStyles.filterChipText,
|
|
218
|
-
stackFilter === 'app' && localStyles.filterChipTextActive,
|
|
219
|
-
]}>
|
|
220
|
-
{t('crash.appFrames', { count: appStackFrames.length })}
|
|
221
|
-
</Text>
|
|
222
|
-
</TouchableScale>
|
|
85
|
+
<C style={r.filterChipsRow}>
|
|
86
|
+
<H onPress={()=>G("app")}style={[r.filterChip,I==="app"&&r.filterChipActive]}>
|
|
87
|
+
<Ee size={12}color={I==="app"?e.white:e.purple}/>
|
|
88
|
+
<S style={[r.filterChipText,I==="app"&&r.filterChipTextActive]}>
|
|
89
|
+
{V("crash.appFrames",{count:v.length})}
|
|
90
|
+
</S>
|
|
91
|
+
</H>
|
|
223
92
|
|
|
224
|
-
<
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
<Text style={[
|
|
232
|
-
localStyles.filterChipText,
|
|
233
|
-
stackFilter === 'all' && localStyles.filterChipTextActive,
|
|
234
|
-
]}>
|
|
235
|
-
{t('crash.allFrames', { count: stackFrames.length })}
|
|
236
|
-
</Text>
|
|
237
|
-
</TouchableScale>
|
|
238
|
-
</View>
|
|
93
|
+
<H onPress={()=>G("all")}style={[r.filterChip,I==="all"&&r.filterChipActive]}>
|
|
94
|
+
<Ge size={12}color={I==="all"?e.white:e.purple}/>
|
|
95
|
+
<S style={[r.filterChipText,I==="all"&&r.filterChipTextActive]}>
|
|
96
|
+
{V("crash.allFrames",{count:z.length})}
|
|
97
|
+
</S>
|
|
98
|
+
</H>
|
|
99
|
+
</C>
|
|
239
100
|
|
|
240
101
|
|
|
241
|
-
{
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
isOrigin && localStyles.originFrameCard,
|
|
254
|
-
]}>
|
|
255
|
-
<View style={localStyles.frameCardHeader}>
|
|
256
|
-
<View style={localStyles.frameIndexBadge}>
|
|
257
|
-
<Text style={localStyles.frameIndexBadgeText}>
|
|
258
|
-
#{index + 1}
|
|
259
|
-
</Text>
|
|
260
|
-
</View>
|
|
261
|
-
<View style={[
|
|
262
|
-
localStyles.frameTypeBadge,
|
|
263
|
-
frame.isAppCode
|
|
264
|
-
? { backgroundColor: '#ECFDF5', borderColor: '#A7F3D0' }
|
|
265
|
-
: { backgroundColor: '#F1F5F9', borderColor: '#E2E8F0' },
|
|
266
|
-
]}>
|
|
267
|
-
<Text style={[
|
|
268
|
-
localStyles.frameTypeBadgeText,
|
|
269
|
-
frame.isAppCode
|
|
270
|
-
? { color: '#059669' }
|
|
271
|
-
: { color: '#64748B' },
|
|
272
|
-
]}>
|
|
273
|
-
{frame.isAppCode ? t('crash.frameApp') : t('crash.frameLib')}
|
|
274
|
-
</Text>
|
|
275
|
-
</View>
|
|
102
|
+
{P.length>0?P.filter(x=>{if(!R.trim())return!0;const k=R.toLowerCase();return x.method.toLowerCase().includes(k)||x.file.toLowerCase().includes(k)}).map((x,k)=>{const M=k===0&&x.isAppCode;return<C key={`frame_${k}`}style={[r.frameCard,M&&r.originFrameCard]}>
|
|
103
|
+
<C style={r.frameCardHeader}>
|
|
104
|
+
<C style={r.frameIndexBadge}>
|
|
105
|
+
<S style={r.frameIndexBadgeText}>
|
|
106
|
+
#{k+1}
|
|
107
|
+
</S>
|
|
108
|
+
</C>
|
|
109
|
+
<C style={[r.frameTypeBadge,x.isAppCode?{backgroundColor:"#ECFDF5",borderColor:"#A7F3D0"}:{backgroundColor:"#F1F5F9",borderColor:"#E2E8F0"}]}>
|
|
110
|
+
<S style={[r.frameTypeBadgeText,x.isAppCode?{color:"#059669"}:{color:"#64748B"}]}>
|
|
111
|
+
{x.isAppCode?V("crash.frameApp"):V("crash.frameLib")}
|
|
112
|
+
</S>
|
|
113
|
+
</C>
|
|
276
114
|
|
|
277
|
-
<
|
|
278
|
-
<
|
|
279
|
-
</
|
|
115
|
+
<S style={r.frameMethodText}numberOfLines={1}>
|
|
116
|
+
<Q text={x.method||V("crash.anonymous")}highlight={R}/>
|
|
117
|
+
</S>
|
|
280
118
|
|
|
281
|
-
<
|
|
282
|
-
{
|
|
283
|
-
<
|
|
284
|
-
{
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
</TouchableScale>
|
|
289
|
-
</View>
|
|
119
|
+
<H onPress={()=>te(x,k)}hitSlop={8}style={r.frameCopyBtn}>
|
|
120
|
+
{J===k?<Y color={e.greenColor}size={12}/>:<K color={e.grayText}size={12}/>}
|
|
121
|
+
<S style={r.frameCopyBtnText}>
|
|
122
|
+
{V(J===k?"crash.frameCopied":"crash.frameCopy")}
|
|
123
|
+
</S>
|
|
124
|
+
</H>
|
|
125
|
+
</C>
|
|
290
126
|
|
|
291
|
-
<
|
|
292
|
-
<
|
|
293
|
-
<
|
|
294
|
-
</
|
|
295
|
-
<
|
|
296
|
-
:{
|
|
297
|
-
{
|
|
298
|
-
</
|
|
299
|
-
</
|
|
127
|
+
<C style={r.frameLocationRow}>
|
|
128
|
+
<S style={r.frameFileText}numberOfLines={1}>
|
|
129
|
+
<Q text={x.file}highlight={R}/>
|
|
130
|
+
</S>
|
|
131
|
+
<S style={r.frameLineText}>
|
|
132
|
+
:{x.lineNumber}
|
|
133
|
+
{x.column?`:${x.column}`:""}
|
|
134
|
+
</S>
|
|
135
|
+
</C>
|
|
300
136
|
|
|
301
|
-
{
|
|
302
|
-
{
|
|
303
|
-
</
|
|
304
|
-
</
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
: t('crash.noStackTrace')}
|
|
310
|
-
</Text>
|
|
311
|
-
</View>)}
|
|
137
|
+
{x.raw&&<S style={r.frameRawText}numberOfLines={2}>
|
|
138
|
+
{x.raw}
|
|
139
|
+
</S>}
|
|
140
|
+
</C>}):<C style={r.emptyContainer}>
|
|
141
|
+
<S style={r.emptyText}>
|
|
142
|
+
{T.stack?T.stack:V("crash.noStackTrace")}
|
|
143
|
+
</S>
|
|
144
|
+
</C>}
|
|
312
145
|
|
|
313
|
-
{
|
|
314
|
-
<
|
|
315
|
-
<
|
|
316
|
-
<
|
|
317
|
-
{
|
|
318
|
-
</
|
|
319
|
-
</
|
|
320
|
-
<
|
|
321
|
-
{
|
|
322
|
-
</
|
|
323
|
-
</
|
|
324
|
-
</
|
|
146
|
+
{T.componentStack&&<C style={r.sectionCard}>
|
|
147
|
+
<C style={r.sectionCardHeader}>
|
|
148
|
+
<X color={e.purple}size={14}/>
|
|
149
|
+
<S style={r.sectionCardTitle}>
|
|
150
|
+
{V("crash.componentHierarchy")}
|
|
151
|
+
</S>
|
|
152
|
+
</C>
|
|
153
|
+
<S style={r.componentStackText}>
|
|
154
|
+
{T.componentStack}
|
|
155
|
+
</S>
|
|
156
|
+
</C>}
|
|
157
|
+
</C>}
|
|
325
158
|
|
|
326
159
|
|
|
327
|
-
{
|
|
160
|
+
{F==="diagnostics"&&<C style={{gap:12}}>
|
|
328
161
|
|
|
329
|
-
<
|
|
330
|
-
<
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
</View>
|
|
340
|
-
<CopyButton value={selectedCrash.deviceInfo || {
|
|
341
|
-
platform: Platform.OS,
|
|
342
|
-
osVersion: String(Platform.Version),
|
|
343
|
-
}} label="Diagnostics"/>
|
|
344
|
-
</View>
|
|
162
|
+
<C style={r.sectionCard}>
|
|
163
|
+
<C style={[r.sectionCardHeader,{justifyContent:"space-between"}]}>
|
|
164
|
+
<C style={{flexDirection:"row",alignItems:"center",gap:6}}>
|
|
165
|
+
<De color={e.purple}size={14}/>
|
|
166
|
+
<S style={r.sectionCardTitle}>
|
|
167
|
+
{V("crash.deviceEnvironment")}
|
|
168
|
+
</S>
|
|
169
|
+
</C>
|
|
170
|
+
<$ value={T.deviceInfo||{platform:W.OS,osVersion:String(W.Version)}}label="Diagnostics"/>
|
|
171
|
+
</C>
|
|
345
172
|
|
|
346
|
-
<
|
|
347
|
-
<
|
|
348
|
-
<
|
|
349
|
-
<
|
|
350
|
-
{
|
|
351
|
-
</
|
|
352
|
-
</
|
|
173
|
+
<C style={r.diagGrid}>
|
|
174
|
+
<C style={r.diagItem}>
|
|
175
|
+
<S style={r.diagLabel}>{V("crash.platform")}</S>
|
|
176
|
+
<S style={r.diagValue}>
|
|
177
|
+
{T.deviceInfo?.platform?.toUpperCase()||W.OS.toUpperCase()}
|
|
178
|
+
</S>
|
|
179
|
+
</C>
|
|
353
180
|
|
|
354
|
-
<
|
|
355
|
-
<
|
|
356
|
-
<
|
|
357
|
-
{
|
|
358
|
-
</
|
|
359
|
-
</
|
|
181
|
+
<C style={r.diagItem}>
|
|
182
|
+
<S style={r.diagLabel}>{V("crash.osVersion")}</S>
|
|
183
|
+
<S style={r.diagValue}>
|
|
184
|
+
{T.deviceInfo?.osVersion||String(W.Version)}
|
|
185
|
+
</S>
|
|
186
|
+
</C>
|
|
360
187
|
|
|
361
|
-
<
|
|
362
|
-
<
|
|
363
|
-
<
|
|
364
|
-
{
|
|
365
|
-
</
|
|
366
|
-
</
|
|
188
|
+
<C style={r.diagItem}>
|
|
189
|
+
<S style={r.diagLabel}>{V("crash.reactNative")}</S>
|
|
190
|
+
<S style={r.diagValue}>
|
|
191
|
+
{T.deviceInfo?.rnVersion||"0.74+"}
|
|
192
|
+
</S>
|
|
193
|
+
</C>
|
|
367
194
|
|
|
368
|
-
<
|
|
369
|
-
<
|
|
370
|
-
<
|
|
371
|
-
{
|
|
372
|
-
</
|
|
373
|
-
</
|
|
195
|
+
<C style={r.diagItem}>
|
|
196
|
+
<S style={r.diagLabel}>{V("crash.jsEngine")}</S>
|
|
197
|
+
<S style={r.diagValue}>
|
|
198
|
+
{T.deviceInfo?.isHermes?V("crash.hermesEngine"):V("crash.jsc")}
|
|
199
|
+
</S>
|
|
200
|
+
</C>
|
|
374
201
|
|
|
375
|
-
<
|
|
376
|
-
<
|
|
377
|
-
<
|
|
378
|
-
{
|
|
379
|
-
</
|
|
380
|
-
</
|
|
202
|
+
<C style={r.diagItem}>
|
|
203
|
+
<S style={r.diagLabel}>{V("crash.architecture")}</S>
|
|
204
|
+
<S style={r.diagValue}>
|
|
205
|
+
{T.deviceInfo?.isFabric?V("crash.fabricNewArch"):V("crash.paperLegacy")}
|
|
206
|
+
</S>
|
|
207
|
+
</C>
|
|
381
208
|
|
|
382
|
-
<
|
|
383
|
-
<
|
|
384
|
-
<
|
|
385
|
-
{
|
|
386
|
-
</
|
|
387
|
-
</
|
|
388
|
-
</
|
|
389
|
-
</
|
|
209
|
+
<C style={r.diagItem}>
|
|
210
|
+
<S style={r.diagLabel}>{V("crash.appState")}</S>
|
|
211
|
+
<S style={r.diagValue}>
|
|
212
|
+
{T.deviceInfo?.appState||"active"}
|
|
213
|
+
</S>
|
|
214
|
+
</C>
|
|
215
|
+
</C>
|
|
216
|
+
</C>
|
|
390
217
|
|
|
391
218
|
|
|
392
|
-
{
|
|
393
|
-
<
|
|
394
|
-
|
|
395
|
-
{
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
</View>
|
|
403
|
-
<CopyButton value={selectedCrash.memoryInfo} label="Memory Info"/>
|
|
404
|
-
</View>
|
|
219
|
+
{T.memoryInfo&&<C style={r.sectionCard}>
|
|
220
|
+
<C style={[r.sectionCardHeader,{justifyContent:"space-between"}]}>
|
|
221
|
+
<C style={{flexDirection:"row",alignItems:"center",gap:6}}>
|
|
222
|
+
<X color={e.purple}size={14}/>
|
|
223
|
+
<S style={r.sectionCardTitle}>
|
|
224
|
+
{V("crash.jsHeapMemory")}
|
|
225
|
+
</S>
|
|
226
|
+
</C>
|
|
227
|
+
<$ value={T.memoryInfo}label="Memory Info"/>
|
|
228
|
+
</C>
|
|
405
229
|
|
|
406
|
-
<
|
|
407
|
-
<
|
|
408
|
-
<
|
|
409
|
-
<
|
|
410
|
-
{
|
|
411
|
-
</
|
|
412
|
-
</
|
|
230
|
+
<C style={r.diagGrid}>
|
|
231
|
+
<C style={r.diagItem}>
|
|
232
|
+
<S style={r.diagLabel}>{V("crash.usedHeap")}</S>
|
|
233
|
+
<S style={r.diagValue}>
|
|
234
|
+
{T.memoryInfo.usedJSHeapSize} MB
|
|
235
|
+
</S>
|
|
236
|
+
</C>
|
|
413
237
|
|
|
414
|
-
<
|
|
415
|
-
<
|
|
416
|
-
<
|
|
417
|
-
{
|
|
418
|
-
</
|
|
419
|
-
</
|
|
420
|
-
</
|
|
421
|
-
</
|
|
422
|
-
</
|
|
238
|
+
<C style={r.diagItem}>
|
|
239
|
+
<S style={r.diagLabel}>{V("crash.totalHeap")}</S>
|
|
240
|
+
<S style={r.diagValue}>
|
|
241
|
+
{T.memoryInfo.totalJSHeapSize} MB
|
|
242
|
+
</S>
|
|
243
|
+
</C>
|
|
244
|
+
</C>
|
|
245
|
+
</C>}
|
|
246
|
+
</C>}
|
|
423
247
|
|
|
424
248
|
|
|
425
|
-
{
|
|
426
|
-
{
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
<
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
<JsonViewer data={b.data} search="" wrap/>
|
|
454
|
-
</View>)}
|
|
455
|
-
</View>))) : (<View style={localStyles.emptyContainer}>
|
|
456
|
-
<Text style={localStyles.emptyText}>
|
|
457
|
-
{t('crash.noBreadcrumbs')}
|
|
458
|
-
</Text>
|
|
459
|
-
</View>)}
|
|
460
|
-
</View>)}
|
|
249
|
+
{F==="breadcrumbs"&&<C style={{gap:10}}>
|
|
250
|
+
{T.breadcrumbs&&T.breadcrumbs.length>0&&<C style={{flexDirection:"row",justifyContent:"flex-end",marginBottom:2}}>
|
|
251
|
+
<$ value={T.breadcrumbs}label="All Breadcrumbs"/>
|
|
252
|
+
</C>}
|
|
253
|
+
{T.breadcrumbs&&T.breadcrumbs.length>0?T.breadcrumbs.map((x,k)=><C key={`crumb_${k}`}style={r.breadcrumbCard}>
|
|
254
|
+
<C style={r.breadcrumbHeader}>
|
|
255
|
+
<C style={r.breadcrumbTag}>
|
|
256
|
+
<S style={r.breadcrumbTagText}>
|
|
257
|
+
{x.type.toUpperCase()}
|
|
258
|
+
</S>
|
|
259
|
+
</C>
|
|
260
|
+
<C style={{flexDirection:"row",alignItems:"center",gap:8}}>
|
|
261
|
+
<S style={r.breadcrumbTime}>
|
|
262
|
+
{new Date(x.timestamp).toLocaleTimeString()}
|
|
263
|
+
</S>
|
|
264
|
+
<$ value={`${new Date(x.timestamp).toLocaleTimeString()} [${x.type.toUpperCase()}] ${x.message}${x.data?" "+JSON.stringify(x.data):""}`}label="Breadcrumb"/>
|
|
265
|
+
</C>
|
|
266
|
+
</C>
|
|
267
|
+
<S style={r.breadcrumbMessage}>{x.message}</S>
|
|
268
|
+
{x.data&&<C style={{marginTop:6}}>
|
|
269
|
+
<_ data={x.data}search=""wrap/>
|
|
270
|
+
</C>}
|
|
271
|
+
</C>):<C style={r.emptyContainer}>
|
|
272
|
+
<S style={r.emptyText}>
|
|
273
|
+
{V("crash.noBreadcrumbs")}
|
|
274
|
+
</S>
|
|
275
|
+
</C>}
|
|
276
|
+
</C>}
|
|
461
277
|
|
|
462
278
|
|
|
463
|
-
{
|
|
464
|
-
<
|
|
465
|
-
</
|
|
466
|
-
</
|
|
467
|
-
</
|
|
468
|
-
});
|
|
469
|
-
export default CrashDetail;
|
|
470
|
-
const localStyles = StyleSheet.create({
|
|
471
|
-
infoBar: {
|
|
472
|
-
backgroundColor: AppColors.primaryLight,
|
|
473
|
-
borderRadius: 12,
|
|
474
|
-
padding: 12,
|
|
475
|
-
borderWidth: 1,
|
|
476
|
-
borderColor: AppColors.grayBorderSecondary,
|
|
477
|
-
shadowColor: AppColors.black,
|
|
478
|
-
shadowOffset: { width: 0, height: 1 },
|
|
479
|
-
shadowOpacity: 0.05,
|
|
480
|
-
shadowRadius: 3,
|
|
481
|
-
elevation: 2,
|
|
482
|
-
gap: 8,
|
|
483
|
-
},
|
|
484
|
-
badgeRow: {
|
|
485
|
-
flexDirection: 'row',
|
|
486
|
-
alignItems: 'center',
|
|
487
|
-
gap: 8,
|
|
488
|
-
},
|
|
489
|
-
pillBadge: {
|
|
490
|
-
flexDirection: 'row',
|
|
491
|
-
alignItems: 'center',
|
|
492
|
-
paddingHorizontal: 8,
|
|
493
|
-
paddingVertical: 3,
|
|
494
|
-
borderRadius: 12,
|
|
495
|
-
borderWidth: 1,
|
|
496
|
-
gap: 5,
|
|
497
|
-
},
|
|
498
|
-
statusDot: {
|
|
499
|
-
width: 6,
|
|
500
|
-
height: 6,
|
|
501
|
-
borderRadius: 3,
|
|
502
|
-
},
|
|
503
|
-
pillBadgeText: {
|
|
504
|
-
fontFamily: AppFonts.interBold,
|
|
505
|
-
fontSize: 9.5,
|
|
506
|
-
letterSpacing: 0.4,
|
|
507
|
-
},
|
|
508
|
-
actionButton: {
|
|
509
|
-
flexDirection: 'row',
|
|
510
|
-
alignItems: 'center',
|
|
511
|
-
gap: 4,
|
|
512
|
-
backgroundColor: `${AppColors.purple}14`,
|
|
513
|
-
borderColor: `${AppColors.purple}33`,
|
|
514
|
-
borderWidth: 1,
|
|
515
|
-
paddingHorizontal: 8,
|
|
516
|
-
paddingVertical: 4,
|
|
517
|
-
borderRadius: 8,
|
|
518
|
-
},
|
|
519
|
-
actionButtonText: {
|
|
520
|
-
fontFamily: AppFonts.interBold,
|
|
521
|
-
fontSize: 10.5,
|
|
522
|
-
color: AppColors.purple,
|
|
523
|
-
},
|
|
524
|
-
titleText: {
|
|
525
|
-
fontFamily: AppFonts.interBold,
|
|
526
|
-
fontSize: 14,
|
|
527
|
-
color: AppColors.primaryBlack,
|
|
528
|
-
lineHeight: 19,
|
|
529
|
-
},
|
|
530
|
-
metaRow: {
|
|
531
|
-
flexDirection: 'row',
|
|
532
|
-
alignItems: 'center',
|
|
533
|
-
gap: 6,
|
|
534
|
-
paddingVertical: 2,
|
|
535
|
-
},
|
|
536
|
-
metaChip: {
|
|
537
|
-
flexDirection: 'row',
|
|
538
|
-
alignItems: 'center',
|
|
539
|
-
gap: 4,
|
|
540
|
-
backgroundColor: AppColors.grayBackground,
|
|
541
|
-
paddingHorizontal: 7,
|
|
542
|
-
paddingVertical: 3,
|
|
543
|
-
borderRadius: 6,
|
|
544
|
-
borderWidth: 1,
|
|
545
|
-
borderColor: AppColors.dividerColor,
|
|
546
|
-
},
|
|
547
|
-
metaChipText: {
|
|
548
|
-
fontFamily: AppFonts.interMedium,
|
|
549
|
-
fontSize: 10,
|
|
550
|
-
color: AppColors.grayText,
|
|
551
|
-
},
|
|
552
|
-
searchContainer: {
|
|
553
|
-
flexDirection: 'row',
|
|
554
|
-
alignItems: 'center',
|
|
555
|
-
backgroundColor: AppColors.primaryLight,
|
|
556
|
-
borderWidth: 1,
|
|
557
|
-
borderColor: AppColors.grayBorderSecondary,
|
|
558
|
-
borderRadius: 8,
|
|
559
|
-
paddingHorizontal: 10,
|
|
560
|
-
height: 36,
|
|
561
|
-
gap: 8,
|
|
562
|
-
},
|
|
563
|
-
searchInput: {
|
|
564
|
-
flex: 1,
|
|
565
|
-
fontFamily: AppFonts.interRegular,
|
|
566
|
-
fontSize: 12,
|
|
567
|
-
color: AppColors.primaryBlack,
|
|
568
|
-
paddingVertical: 0,
|
|
569
|
-
},
|
|
570
|
-
filterChipsRow: {
|
|
571
|
-
flexDirection: 'row',
|
|
572
|
-
alignItems: 'center',
|
|
573
|
-
gap: 8,
|
|
574
|
-
},
|
|
575
|
-
filterChip: {
|
|
576
|
-
flexDirection: 'row',
|
|
577
|
-
alignItems: 'center',
|
|
578
|
-
gap: 5,
|
|
579
|
-
paddingHorizontal: 10,
|
|
580
|
-
paddingVertical: 5,
|
|
581
|
-
borderRadius: 8,
|
|
582
|
-
backgroundColor: AppColors.primaryLight,
|
|
583
|
-
borderWidth: 1,
|
|
584
|
-
borderColor: AppColors.grayBorderSecondary,
|
|
585
|
-
},
|
|
586
|
-
filterChipActive: {
|
|
587
|
-
backgroundColor: AppColors.purple,
|
|
588
|
-
borderColor: AppColors.purple,
|
|
589
|
-
},
|
|
590
|
-
filterChipText: {
|
|
591
|
-
fontFamily: AppFonts.interMedium,
|
|
592
|
-
fontSize: 11,
|
|
593
|
-
color: AppColors.grayText,
|
|
594
|
-
},
|
|
595
|
-
filterChipTextActive: {
|
|
596
|
-
fontFamily: AppFonts.interBold,
|
|
597
|
-
color: AppColors.white,
|
|
598
|
-
},
|
|
599
|
-
frameCard: {
|
|
600
|
-
backgroundColor: AppColors.primaryLight,
|
|
601
|
-
borderRadius: 8,
|
|
602
|
-
padding: 10,
|
|
603
|
-
borderWidth: 1,
|
|
604
|
-
borderColor: AppColors.grayBorderSecondary,
|
|
605
|
-
gap: 4,
|
|
606
|
-
},
|
|
607
|
-
originFrameCard: {
|
|
608
|
-
borderColor: '#6EE7B7',
|
|
609
|
-
backgroundColor: '#F0FDF4',
|
|
610
|
-
},
|
|
611
|
-
frameCardHeader: {
|
|
612
|
-
flexDirection: 'row',
|
|
613
|
-
alignItems: 'center',
|
|
614
|
-
gap: 8,
|
|
615
|
-
},
|
|
616
|
-
frameIndexBadge: {
|
|
617
|
-
minWidth: 24,
|
|
618
|
-
height: 18,
|
|
619
|
-
paddingHorizontal: 4,
|
|
620
|
-
borderRadius: 4,
|
|
621
|
-
backgroundColor: `${AppColors.purple}14`,
|
|
622
|
-
alignItems: 'center',
|
|
623
|
-
justifyContent: 'center',
|
|
624
|
-
},
|
|
625
|
-
frameIndexBadgeText: {
|
|
626
|
-
fontFamily: AppFonts.interBold,
|
|
627
|
-
fontSize: 9,
|
|
628
|
-
color: AppColors.purple,
|
|
629
|
-
},
|
|
630
|
-
frameTypeBadge: {
|
|
631
|
-
paddingHorizontal: 5,
|
|
632
|
-
paddingVertical: 2,
|
|
633
|
-
borderRadius: 4,
|
|
634
|
-
borderWidth: 1,
|
|
635
|
-
},
|
|
636
|
-
frameTypeBadgeText: {
|
|
637
|
-
fontFamily: AppFonts.interBold,
|
|
638
|
-
fontSize: 8.5,
|
|
639
|
-
},
|
|
640
|
-
frameMethodText: {
|
|
641
|
-
fontFamily: AppFonts.interBold,
|
|
642
|
-
fontSize: 12,
|
|
643
|
-
color: AppColors.primaryBlack,
|
|
644
|
-
flex: 1,
|
|
645
|
-
},
|
|
646
|
-
frameLocationRow: {
|
|
647
|
-
flexDirection: 'row',
|
|
648
|
-
alignItems: 'center',
|
|
649
|
-
},
|
|
650
|
-
frameFileText: {
|
|
651
|
-
fontFamily: AppFonts.interRegular,
|
|
652
|
-
fontSize: 11,
|
|
653
|
-
color: AppColors.grayText,
|
|
654
|
-
flex: 1,
|
|
655
|
-
},
|
|
656
|
-
frameLineText: {
|
|
657
|
-
fontFamily: AppFonts.interBold,
|
|
658
|
-
fontSize: 11,
|
|
659
|
-
color: AppColors.purple,
|
|
660
|
-
},
|
|
661
|
-
frameCopyBtn: {
|
|
662
|
-
flexDirection: 'row',
|
|
663
|
-
alignItems: 'center',
|
|
664
|
-
gap: 3,
|
|
665
|
-
paddingHorizontal: 6,
|
|
666
|
-
paddingVertical: 3,
|
|
667
|
-
borderRadius: 5,
|
|
668
|
-
backgroundColor: AppColors.grayBackground,
|
|
669
|
-
borderWidth: 1,
|
|
670
|
-
borderColor: AppColors.dividerColor,
|
|
671
|
-
},
|
|
672
|
-
frameCopyBtnText: {
|
|
673
|
-
fontFamily: AppFonts.interBold,
|
|
674
|
-
fontSize: 9,
|
|
675
|
-
color: AppColors.grayText,
|
|
676
|
-
},
|
|
677
|
-
frameRawText: {
|
|
678
|
-
fontFamily: AppFonts.interRegular,
|
|
679
|
-
fontSize: 9.5,
|
|
680
|
-
color: AppColors.grayTextWeak,
|
|
681
|
-
backgroundColor: `${AppColors.primaryBlack}06`,
|
|
682
|
-
borderRadius: 5,
|
|
683
|
-
paddingHorizontal: 7,
|
|
684
|
-
paddingVertical: 4,
|
|
685
|
-
overflow: 'hidden',
|
|
686
|
-
},
|
|
687
|
-
componentStackText: {
|
|
688
|
-
fontFamily: AppFonts.interRegular,
|
|
689
|
-
fontSize: 11,
|
|
690
|
-
lineHeight: 16,
|
|
691
|
-
color: AppColors.grayText,
|
|
692
|
-
backgroundColor: `${AppColors.primaryBlack}06`,
|
|
693
|
-
borderRadius: 6,
|
|
694
|
-
padding: 10,
|
|
695
|
-
},
|
|
696
|
-
sectionCard: {
|
|
697
|
-
backgroundColor: AppColors.primaryLight,
|
|
698
|
-
borderRadius: 10,
|
|
699
|
-
padding: 12,
|
|
700
|
-
borderWidth: 1,
|
|
701
|
-
borderColor: AppColors.grayBorderSecondary,
|
|
702
|
-
gap: 10,
|
|
703
|
-
},
|
|
704
|
-
sectionCardHeader: {
|
|
705
|
-
flexDirection: 'row',
|
|
706
|
-
alignItems: 'center',
|
|
707
|
-
gap: 6,
|
|
708
|
-
paddingBottom: 6,
|
|
709
|
-
borderBottomWidth: 1,
|
|
710
|
-
borderBottomColor: AppColors.dividerColor,
|
|
711
|
-
},
|
|
712
|
-
sectionCardTitle: {
|
|
713
|
-
fontFamily: AppFonts.interBold,
|
|
714
|
-
fontSize: 12.5,
|
|
715
|
-
color: AppColors.primaryBlack,
|
|
716
|
-
},
|
|
717
|
-
diagGrid: {
|
|
718
|
-
flexDirection: 'row',
|
|
719
|
-
flexWrap: 'wrap',
|
|
720
|
-
rowGap: 8,
|
|
721
|
-
columnGap: 12,
|
|
722
|
-
},
|
|
723
|
-
diagItem: {
|
|
724
|
-
width: '47%',
|
|
725
|
-
gap: 2,
|
|
726
|
-
},
|
|
727
|
-
diagLabel: {
|
|
728
|
-
fontFamily: AppFonts.interRegular,
|
|
729
|
-
fontSize: 10,
|
|
730
|
-
color: AppColors.grayTextWeak,
|
|
731
|
-
},
|
|
732
|
-
diagValue: {
|
|
733
|
-
fontFamily: AppFonts.interBold,
|
|
734
|
-
fontSize: 11.5,
|
|
735
|
-
color: AppColors.primaryBlack,
|
|
736
|
-
},
|
|
737
|
-
breadcrumbCard: {
|
|
738
|
-
backgroundColor: AppColors.primaryLight,
|
|
739
|
-
borderRadius: 8,
|
|
740
|
-
padding: 10,
|
|
741
|
-
borderWidth: 1,
|
|
742
|
-
borderColor: AppColors.grayBorderSecondary,
|
|
743
|
-
gap: 4,
|
|
744
|
-
},
|
|
745
|
-
breadcrumbHeader: {
|
|
746
|
-
flexDirection: 'row',
|
|
747
|
-
alignItems: 'center',
|
|
748
|
-
justifyContent: 'space-between',
|
|
749
|
-
},
|
|
750
|
-
breadcrumbTag: {
|
|
751
|
-
backgroundColor: `${AppColors.purple}14`,
|
|
752
|
-
paddingHorizontal: 6,
|
|
753
|
-
paddingVertical: 2,
|
|
754
|
-
borderRadius: 4,
|
|
755
|
-
},
|
|
756
|
-
breadcrumbTagText: {
|
|
757
|
-
fontFamily: AppFonts.interBold,
|
|
758
|
-
fontSize: 9,
|
|
759
|
-
color: AppColors.purple,
|
|
760
|
-
},
|
|
761
|
-
breadcrumbTime: {
|
|
762
|
-
fontFamily: AppFonts.interRegular,
|
|
763
|
-
fontSize: 10,
|
|
764
|
-
color: AppColors.grayTextWeak,
|
|
765
|
-
},
|
|
766
|
-
breadcrumbMessage: {
|
|
767
|
-
fontFamily: AppFonts.interRegular,
|
|
768
|
-
fontSize: 11.5,
|
|
769
|
-
color: AppColors.primaryBlack,
|
|
770
|
-
marginTop: 2,
|
|
771
|
-
},
|
|
772
|
-
rawContainer: {
|
|
773
|
-
backgroundColor: AppColors.primaryLight,
|
|
774
|
-
borderRadius: 10,
|
|
775
|
-
padding: 10,
|
|
776
|
-
borderWidth: 1,
|
|
777
|
-
borderColor: AppColors.grayBorderSecondary,
|
|
778
|
-
},
|
|
779
|
-
emptyContainer: {
|
|
780
|
-
padding: 16,
|
|
781
|
-
alignItems: 'center',
|
|
782
|
-
justifyContent: 'center',
|
|
783
|
-
backgroundColor: AppColors.primaryLight,
|
|
784
|
-
borderRadius: 8,
|
|
785
|
-
borderWidth: 1,
|
|
786
|
-
borderColor: AppColors.grayBorderSecondary,
|
|
787
|
-
},
|
|
788
|
-
emptyText: {
|
|
789
|
-
fontFamily: AppFonts.interRegular,
|
|
790
|
-
fontSize: 11,
|
|
791
|
-
color: AppColors.grayText,
|
|
792
|
-
textAlign: 'center',
|
|
793
|
-
},
|
|
794
|
-
});
|
|
279
|
+
{F==="raw"&&<C style={r.rawContainer}>
|
|
280
|
+
<_ data={ee}search={R}wrap/>
|
|
281
|
+
</C>}
|
|
282
|
+
</U>
|
|
283
|
+
</C>});export default je;const r=ie.create({infoBar:{backgroundColor:e.primaryLight,borderRadius:12,padding:12,borderWidth:1,borderColor:e.grayBorderSecondary,shadowColor:e.black,shadowOffset:{width:0,height:1},shadowOpacity:.05,shadowRadius:3,elevation:2,gap:8},badgeRow:{flexDirection:"row",alignItems:"center",gap:8},pillBadge:{flexDirection:"row",alignItems:"center",paddingHorizontal:8,paddingVertical:3,borderRadius:12,borderWidth:1,gap:5},statusDot:{width:6,height:6,borderRadius:3},pillBadgeText:{fontFamily:B.interBold,fontSize:9.5,letterSpacing:.4},actionButton:{flexDirection:"row",alignItems:"center",gap:4,backgroundColor:`${e.purple}14`,borderColor:`${e.purple}33`,borderWidth:1,paddingHorizontal:8,paddingVertical:4,borderRadius:8},actionButtonText:{fontFamily:B.interBold,fontSize:10.5,color:e.purple},titleText:{fontFamily:B.interBold,fontSize:14,color:e.primaryBlack,lineHeight:19},metaRow:{flexDirection:"row",alignItems:"center",gap:6,paddingVertical:2},metaChip:{flexDirection:"row",alignItems:"center",gap:4,backgroundColor:e.grayBackground,paddingHorizontal:7,paddingVertical:3,borderRadius:6,borderWidth:1,borderColor:e.dividerColor},metaChipText:{fontFamily:B.interMedium,fontSize:10,color:e.grayText},searchContainer:{flexDirection:"row",alignItems:"center",backgroundColor:e.primaryLight,borderWidth:1,borderColor:e.grayBorderSecondary,borderRadius:8,paddingHorizontal:10,height:36,gap:8},searchInput:{flex:1,fontFamily:B.interRegular,fontSize:12,color:e.primaryBlack,paddingVertical:0},filterChipsRow:{flexDirection:"row",alignItems:"center",gap:8},filterChip:{flexDirection:"row",alignItems:"center",gap:5,paddingHorizontal:10,paddingVertical:5,borderRadius:8,backgroundColor:e.primaryLight,borderWidth:1,borderColor:e.grayBorderSecondary},filterChipActive:{backgroundColor:e.purple,borderColor:e.purple},filterChipText:{fontFamily:B.interMedium,fontSize:11,color:e.grayText},filterChipTextActive:{fontFamily:B.interBold,color:e.white},frameCard:{backgroundColor:e.primaryLight,borderRadius:8,padding:10,borderWidth:1,borderColor:e.grayBorderSecondary,gap:4},originFrameCard:{borderColor:"#6EE7B7",backgroundColor:"#F0FDF4"},frameCardHeader:{flexDirection:"row",alignItems:"center",gap:8},frameIndexBadge:{minWidth:24,height:18,paddingHorizontal:4,borderRadius:4,backgroundColor:`${e.purple}14`,alignItems:"center",justifyContent:"center"},frameIndexBadgeText:{fontFamily:B.interBold,fontSize:9,color:e.purple},frameTypeBadge:{paddingHorizontal:5,paddingVertical:2,borderRadius:4,borderWidth:1},frameTypeBadgeText:{fontFamily:B.interBold,fontSize:8.5},frameMethodText:{fontFamily:B.interBold,fontSize:12,color:e.primaryBlack,flex:1},frameLocationRow:{flexDirection:"row",alignItems:"center"},frameFileText:{fontFamily:B.interRegular,fontSize:11,color:e.grayText,flex:1},frameLineText:{fontFamily:B.interBold,fontSize:11,color:e.purple},frameCopyBtn:{flexDirection:"row",alignItems:"center",gap:3,paddingHorizontal:6,paddingVertical:3,borderRadius:5,backgroundColor:e.grayBackground,borderWidth:1,borderColor:e.dividerColor},frameCopyBtnText:{fontFamily:B.interBold,fontSize:9,color:e.grayText},frameRawText:{fontFamily:B.interRegular,fontSize:9.5,color:e.grayTextWeak,backgroundColor:`${e.primaryBlack}06`,borderRadius:5,paddingHorizontal:7,paddingVertical:4,overflow:"hidden"},componentStackText:{fontFamily:B.interRegular,fontSize:11,lineHeight:16,color:e.grayText,backgroundColor:`${e.primaryBlack}06`,borderRadius:6,padding:10},sectionCard:{backgroundColor:e.primaryLight,borderRadius:10,padding:12,borderWidth:1,borderColor:e.grayBorderSecondary,gap:10},sectionCardHeader:{flexDirection:"row",alignItems:"center",gap:6,paddingBottom:6,borderBottomWidth:1,borderBottomColor:e.dividerColor},sectionCardTitle:{fontFamily:B.interBold,fontSize:12.5,color:e.primaryBlack},diagGrid:{flexDirection:"row",flexWrap:"wrap",rowGap:8,columnGap:12},diagItem:{width:"47%",gap:2},diagLabel:{fontFamily:B.interRegular,fontSize:10,color:e.grayTextWeak},diagValue:{fontFamily:B.interBold,fontSize:11.5,color:e.primaryBlack},breadcrumbCard:{backgroundColor:e.primaryLight,borderRadius:8,padding:10,borderWidth:1,borderColor:e.grayBorderSecondary,gap:4},breadcrumbHeader:{flexDirection:"row",alignItems:"center",justifyContent:"space-between"},breadcrumbTag:{backgroundColor:`${e.purple}14`,paddingHorizontal:6,paddingVertical:2,borderRadius:4},breadcrumbTagText:{fontFamily:B.interBold,fontSize:9,color:e.purple},breadcrumbTime:{fontFamily:B.interRegular,fontSize:10,color:e.grayTextWeak},breadcrumbMessage:{fontFamily:B.interRegular,fontSize:11.5,color:e.primaryBlack,marginTop:2},rawContainer:{backgroundColor:e.primaryLight,borderRadius:10,padding:10,borderWidth:1,borderColor:e.grayBorderSecondary},emptyContainer:{padding:16,alignItems:"center",justifyContent:"center",backgroundColor:e.primaryLight,borderRadius:8,borderWidth:1,borderColor:e.grayBorderSecondary},emptyText:{fontFamily:B.interRegular,fontSize:11,color:e.grayText,textAlign:"center"}});
|