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,400 +1,91 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
const react_1 = __importStar(require("react"));
|
|
40
|
-
const i18n_1 = require("../../i18n");
|
|
41
|
-
const react_native_1 = require("react-native");
|
|
42
|
-
const InspectorContext_1 = require("./InspectorContext");
|
|
43
|
-
const HighlightText_1 = __importDefault(require("../HighlightText"));
|
|
44
|
-
const JsonViewer_1 = __importDefault(require("../JsonViewer"));
|
|
45
|
-
const CopyButton_1 = __importDefault(require("../CopyButton"));
|
|
46
|
-
const SegmentedTabs_1 = __importDefault(require("../SegmentedTabs"));
|
|
47
|
-
const NetworkIcons_1 = require("../NetworkIcons");
|
|
48
|
-
const AppColors_1 = require("../../styles/AppColors");
|
|
49
|
-
const AppFonts_1 = require("../../styles/AppFonts");
|
|
50
|
-
const styles_1 = __importDefault(require("../../styles"));
|
|
51
|
-
const helpers_1 = require("../../helpers");
|
|
52
|
-
const getRelativeTime = (timestamp) => {
|
|
53
|
-
const now = Date.now();
|
|
54
|
-
const diff = now - timestamp;
|
|
55
|
-
const seconds = Math.floor(diff / 1000);
|
|
56
|
-
const minutes = Math.floor(seconds / 60);
|
|
57
|
-
const hours = Math.floor(minutes / 60);
|
|
58
|
-
const days = Math.floor(hours / 24);
|
|
59
|
-
if (seconds < 60)
|
|
60
|
-
return `${seconds}s ago`;
|
|
61
|
-
if (minutes < 60)
|
|
62
|
-
return `${minutes}m ago`;
|
|
63
|
-
if (hours < 24)
|
|
64
|
-
return `${hours}h ago`;
|
|
65
|
-
return `${days}d ago`;
|
|
66
|
-
};
|
|
67
|
-
const LogDetail = react_1.default.memo(() => {
|
|
68
|
-
const { t } = (0, i18n_1.useTranslation)();
|
|
69
|
-
const { selectedLog } = (0, InspectorContext_1.useInspector)();
|
|
70
|
-
const [activeTab, setActiveTab] = (0, react_1.useState)('output');
|
|
71
|
-
const [detailSearch, setDetailSearch] = (0, react_1.useState)('');
|
|
72
|
-
const [viewMode, setViewMode] = (0, react_1.useState)('pretty');
|
|
73
|
-
const jsonContent = (0, react_1.useMemo)(() => (selectedLog ? (0, helpers_1.getJsonContent)(selectedLog.message) : null), [selectedLog]);
|
|
74
|
-
const [stackViewMode, setStackViewMode] = (0, react_1.useState)('structured');
|
|
75
|
-
const [stackSource, setStackSource] = (0, react_1.useState)('caller');
|
|
76
|
-
const [stackFilter, setStackFilter] = (0, react_1.useState)('app');
|
|
77
|
-
const activeStackString = (0, react_1.useMemo)(() => {
|
|
78
|
-
if (!selectedLog)
|
|
79
|
-
return '';
|
|
80
|
-
if (stackSource === 'error' && selectedLog.errorStack) {
|
|
81
|
-
return selectedLog.errorStack;
|
|
82
|
-
}
|
|
83
|
-
return selectedLog.stack || selectedLog.caller || '';
|
|
84
|
-
}, [selectedLog, stackSource]);
|
|
85
|
-
const parsedStackFrames = (0, react_1.useMemo)(() => {
|
|
86
|
-
if (!activeStackString)
|
|
87
|
-
return [];
|
|
88
|
-
return activeStackString
|
|
89
|
-
.split('\n')
|
|
90
|
-
.map(l => l.trim())
|
|
91
|
-
.filter(l => l.length > 0)
|
|
92
|
-
.map((line, idx) => (0, helpers_1.parseStackLine)(line, idx === 0));
|
|
93
|
-
}, [activeStackString]);
|
|
94
|
-
const appStackFrames = (0, react_1.useMemo)(() => {
|
|
95
|
-
return parsedStackFrames.filter(f => f.frameType === 'app' || !f.isRuntimeNoise);
|
|
96
|
-
}, [parsedStackFrames]);
|
|
97
|
-
const displayedFrames = (0, react_1.useMemo)(() => {
|
|
98
|
-
if (stackFilter === 'app' && appStackFrames.length > 0) {
|
|
99
|
-
return appStackFrames;
|
|
100
|
-
}
|
|
101
|
-
return parsedStackFrames;
|
|
102
|
-
}, [stackFilter, appStackFrames, parsedStackFrames]);
|
|
103
|
-
const originFrame = (0, react_1.useMemo)(() => {
|
|
104
|
-
if (!selectedLog)
|
|
105
|
-
return null;
|
|
106
|
-
if (appStackFrames.length > 0) {
|
|
107
|
-
return appStackFrames[0];
|
|
108
|
-
}
|
|
109
|
-
if (selectedLog.caller && selectedLog.caller !== 'Unknown') {
|
|
110
|
-
return (0, helpers_1.parseStackLine)(selectedLog.caller, true);
|
|
111
|
-
}
|
|
112
|
-
if (parsedStackFrames.length > 0) {
|
|
113
|
-
return parsedStackFrames[0];
|
|
114
|
-
}
|
|
115
|
-
return null;
|
|
116
|
-
}, [selectedLog, appStackFrames, parsedStackFrames]);
|
|
117
|
-
if (!selectedLog)
|
|
118
|
-
return null;
|
|
119
|
-
const isDark = AppColors_1.AppColors.primaryLight !== AppColors_1.AppColors.white;
|
|
120
|
-
const getTypeColors = () => {
|
|
121
|
-
const type = (selectedLog.type || 'log').toLowerCase();
|
|
122
|
-
const method = (selectedLog.sourceMethod || type).toLowerCase();
|
|
123
|
-
if (type === 'error' || method === 'error') {
|
|
124
|
-
return {
|
|
125
|
-
border: AppColors_1.AppColors.red500,
|
|
126
|
-
badgeBg: AppColors_1.AppColors.red100,
|
|
127
|
-
badgeText: AppColors_1.AppColors.redErrorText,
|
|
128
|
-
label: 'ERROR',
|
|
129
|
-
methodBorder: AppColors_1.AppColors.errorBorder,
|
|
130
|
-
methodBg: AppColors_1.AppColors.red100,
|
|
131
|
-
methodText: AppColors_1.AppColors.redErrorText,
|
|
132
|
-
};
|
|
133
|
-
}
|
|
134
|
-
if (type === 'warn' || method === 'warn') {
|
|
135
|
-
return {
|
|
136
|
-
border: AppColors_1.AppColors.amber500,
|
|
137
|
-
badgeBg: AppColors_1.AppColors.amber100,
|
|
138
|
-
badgeText: AppColors_1.AppColors.amber800Warm,
|
|
139
|
-
label: 'WARN',
|
|
140
|
-
methodBorder: AppColors_1.AppColors.amber200,
|
|
141
|
-
methodBg: AppColors_1.AppColors.amber100,
|
|
142
|
-
methodText: AppColors_1.AppColors.amber800Warm,
|
|
143
|
-
};
|
|
144
|
-
}
|
|
145
|
-
if (type === 'debug' || method === 'debug') {
|
|
146
|
-
return {
|
|
147
|
-
border: AppColors_1.AppColors.violet500,
|
|
148
|
-
badgeBg: AppColors_1.AppColors.purple100,
|
|
149
|
-
badgeText: AppColors_1.AppColors.violet600,
|
|
150
|
-
label: 'DEBUG',
|
|
151
|
-
methodBorder: AppColors_1.AppColors.purple200,
|
|
152
|
-
methodBg: AppColors_1.AppColors.purple100,
|
|
153
|
-
methodText: AppColors_1.AppColors.violet600,
|
|
154
|
-
};
|
|
155
|
-
}
|
|
156
|
-
if (type === 'info' || method === 'info') {
|
|
157
|
-
return {
|
|
158
|
-
border: AppColors_1.AppColors.sky500,
|
|
159
|
-
badgeBg: AppColors_1.AppColors.sky100,
|
|
160
|
-
badgeText: AppColors_1.AppColors.sky600,
|
|
161
|
-
label: 'INFO',
|
|
162
|
-
methodBorder: AppColors_1.AppColors.sky400,
|
|
163
|
-
methodBg: AppColors_1.AppColors.sky100,
|
|
164
|
-
methodText: AppColors_1.AppColors.sky600,
|
|
165
|
-
};
|
|
166
|
-
}
|
|
167
|
-
return {
|
|
168
|
-
border: AppColors_1.AppColors.indigo500,
|
|
169
|
-
badgeBg: AppColors_1.AppColors.indigo50,
|
|
170
|
-
badgeText: AppColors_1.AppColors.indigo600Alt,
|
|
171
|
-
label: 'LOG',
|
|
172
|
-
methodBorder: AppColors_1.AppColors.indigo400,
|
|
173
|
-
methodBg: AppColors_1.AppColors.indigo50,
|
|
174
|
-
methodText: AppColors_1.AppColors.indigo600Alt,
|
|
175
|
-
};
|
|
176
|
-
};
|
|
177
|
-
const typeColors = getTypeColors();
|
|
178
|
-
const hasMultipleArgs = selectedLog.rawArgs != null && selectedLog.rawArgs.length > 1;
|
|
179
|
-
const hasStack = Boolean(selectedLog.stack && selectedLog.stack.trim().length > 0);
|
|
180
|
-
const subTabs = [
|
|
181
|
-
{
|
|
182
|
-
key: 'output',
|
|
183
|
-
label: t('console.tabOutput'),
|
|
184
|
-
icon: (isActive) => (<NetworkIcons_1.TerminalIcon color={isActive ? AppColors_1.AppColors.white : AppColors_1.AppColors.grayTextWeak} size={12}/>),
|
|
185
|
-
},
|
|
186
|
-
...(hasMultipleArgs
|
|
187
|
-
? [
|
|
188
|
-
{
|
|
189
|
-
key: 'arguments',
|
|
190
|
-
label: t('console.tabArgs', { count: selectedLog.rawArgs?.length }),
|
|
191
|
-
icon: (isActive) => (<NetworkIcons_1.RequestIcon color={isActive ? AppColors_1.AppColors.white : AppColors_1.AppColors.grayTextWeak} size={12}/>),
|
|
192
|
-
},
|
|
193
|
-
]
|
|
194
|
-
: []),
|
|
195
|
-
...(hasStack
|
|
196
|
-
? [
|
|
197
|
-
{
|
|
198
|
-
key: 'stack',
|
|
199
|
-
label: t('console.tabStack'),
|
|
200
|
-
icon: (isActive) => (<NetworkIcons_1.LayersIcon color={isActive ? AppColors_1.AppColors.white : AppColors_1.AppColors.grayTextWeak} size={12}/>),
|
|
201
|
-
},
|
|
202
|
-
]
|
|
203
|
-
: []),
|
|
204
|
-
{
|
|
205
|
-
key: 'metadata',
|
|
206
|
-
label: t('console.tabMetadata'),
|
|
207
|
-
icon: (isActive) => (<NetworkIcons_1.InfoCircleIcon color={isActive ? AppColors_1.AppColors.white : AppColors_1.AppColors.grayTextWeak} size={12}/>),
|
|
208
|
-
},
|
|
209
|
-
];
|
|
210
|
-
return (<react_native_1.View style={{ flex: 1 }}>
|
|
1
|
+
"use strict";var __createBinding=this&&this.__createBinding||(Object.create?(function(o,t,l,i){i===void 0&&(i=l);var a=Object.getOwnPropertyDescriptor(t,l);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[l]}}),Object.defineProperty(o,i,a)}):(function(o,t,l,i){i===void 0&&(i=l),o[i]=t[l]})),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?(function(o,t){Object.defineProperty(o,"default",{enumerable:!0,value:t})}):function(o,t){o.default=t}),__importStar=this&&this.__importStar||(function(){var o=function(t){return o=Object.getOwnPropertyNames||function(l){var i=[];for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&(i[i.length]=a);return i},o(t)};return function(t){if(t&&t.__esModule)return t;var l={};if(t!=null)for(var i=o(t),a=0;a<i.length;a++)i[a]!=="default"&&__createBinding(l,t,i[a]);return __setModuleDefault(l,t),l}})(),__importDefault=this&&this.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(exports,"__esModule",{value:!0});const react_1=__importStar(require("react")),i18n_1=require("../../i18n"),react_native_1=require("react-native"),InspectorContext_1=require("./InspectorContext"),HighlightText_1=__importDefault(require("../HighlightText")),JsonViewer_1=__importDefault(require("../JsonViewer")),CopyButton_1=__importDefault(require("../CopyButton")),SegmentedTabs_1=__importDefault(require("../SegmentedTabs")),NetworkIcons_1=require("../NetworkIcons"),AppColors_1=require("../../styles/AppColors"),AppFonts_1=require("../../styles/AppFonts"),styles_1=__importDefault(require("../../styles")),helpers_1=require("../../helpers"),getRelativeTime=o=>{const l=Date.now()-o,i=Math.floor(l/1e3),a=Math.floor(i/60),y=Math.floor(a/60),b=Math.floor(y/24);return i<60?`${i}s ago`:a<60?`${a}m ago`:y<24?`${y}h ago`:`${b}d ago`},LogDetail=react_1.default.memo(()=>{const{t:o}=(0,i18n_1.useTranslation)(),{selectedLog:t}=(0,InspectorContext_1.useInspector)(),[l,i]=(0,react_1.useState)("output"),[a,y]=(0,react_1.useState)(""),[b,v]=(0,react_1.useState)("pretty"),p=(0,react_1.useMemo)(()=>t?(0,helpers_1.getJsonContent)(t.message):null,[t]),[d,h]=(0,react_1.useState)("structured"),[m,V]=(0,react_1.useState)("caller"),[_,k]=(0,react_1.useState)("app"),C=(0,react_1.useMemo)(()=>t?m==="error"&&t.errorStack?t.errorStack:t.stack||t.caller||"":"",[t,m]),s=(0,react_1.useMemo)(()=>C?C.split(`
|
|
2
|
+
`).map(e=>e.trim()).filter(e=>e.length>0).map((e,n)=>(0,helpers_1.parseStackLine)(e,n===0)):[],[C]),u=(0,react_1.useMemo)(()=>s.filter(e=>e.frameType==="app"||!e.isRuntimeNoise),[s]),x=(0,react_1.useMemo)(()=>_==="app"&&u.length>0?u:s,[_,u,s]),r=(0,react_1.useMemo)(()=>t?u.length>0?u[0]:t.caller&&t.caller!=="Unknown"?(0,helpers_1.parseStackLine)(t.caller,!0):s.length>0?s[0]:null:null,[t,u,s]);if(!t)return null;const g=AppColors_1.AppColors.primaryLight!==AppColors_1.AppColors.white,f=(()=>{const e=(t.type||"log").toLowerCase(),n=(t.sourceMethod||e).toLowerCase();return e==="error"||n==="error"?{border:AppColors_1.AppColors.red500,badgeBg:AppColors_1.AppColors.red100,badgeText:AppColors_1.AppColors.redErrorText,label:"ERROR",methodBorder:AppColors_1.AppColors.errorBorder,methodBg:AppColors_1.AppColors.red100,methodText:AppColors_1.AppColors.redErrorText}:e==="warn"||n==="warn"?{border:AppColors_1.AppColors.amber500,badgeBg:AppColors_1.AppColors.amber100,badgeText:AppColors_1.AppColors.amber800Warm,label:"WARN",methodBorder:AppColors_1.AppColors.amber200,methodBg:AppColors_1.AppColors.amber100,methodText:AppColors_1.AppColors.amber800Warm}:e==="debug"||n==="debug"?{border:AppColors_1.AppColors.violet500,badgeBg:AppColors_1.AppColors.purple100,badgeText:AppColors_1.AppColors.violet600,label:"DEBUG",methodBorder:AppColors_1.AppColors.purple200,methodBg:AppColors_1.AppColors.purple100,methodText:AppColors_1.AppColors.violet600}:e==="info"||n==="info"?{border:AppColors_1.AppColors.sky500,badgeBg:AppColors_1.AppColors.sky100,badgeText:AppColors_1.AppColors.sky600,label:"INFO",methodBorder:AppColors_1.AppColors.sky400,methodBg:AppColors_1.AppColors.sky100,methodText:AppColors_1.AppColors.sky600}:{border:AppColors_1.AppColors.indigo500,badgeBg:AppColors_1.AppColors.indigo50,badgeText:AppColors_1.AppColors.indigo600Alt,label:"LOG",methodBorder:AppColors_1.AppColors.indigo400,methodBg:AppColors_1.AppColors.indigo50,methodText:AppColors_1.AppColors.indigo600Alt}})(),T=t.rawArgs!=null&&t.rawArgs.length>1,S=!!(t.stack&&t.stack.trim().length>0),B=[{key:"output",label:o("console.tabOutput"),icon:e=><NetworkIcons_1.TerminalIcon color={e?AppColors_1.AppColors.white:AppColors_1.AppColors.grayTextWeak}size={12}/>},...T?[{key:"arguments",label:o("console.tabArgs",{count:t.rawArgs?.length}),icon:e=><NetworkIcons_1.RequestIcon color={e?AppColors_1.AppColors.white:AppColors_1.AppColors.grayTextWeak}size={12}/>}]:[],...S?[{key:"stack",label:o("console.tabStack"),icon:e=><NetworkIcons_1.LayersIcon color={e?AppColors_1.AppColors.white:AppColors_1.AppColors.grayTextWeak}size={12}/>}]:[],{key:"metadata",label:o("console.tabMetadata"),icon:e=><NetworkIcons_1.InfoCircleIcon color={e?AppColors_1.AppColors.white:AppColors_1.AppColors.grayTextWeak}size={12}/>}];return<react_native_1.View style={{flex:1}}>
|
|
211
3
|
|
|
212
4
|
<react_native_1.View style={styles_1.default.detailInfoBar}>
|
|
213
|
-
<react_native_1.View style={{
|
|
5
|
+
<react_native_1.View style={{flexDirection:"column",gap:10}}>
|
|
214
6
|
|
|
215
|
-
<react_native_1.View style={{
|
|
216
|
-
flexDirection:
|
|
217
|
-
alignItems: 'center',
|
|
218
|
-
justifyContent: 'space-between',
|
|
219
|
-
gap: 8,
|
|
220
|
-
}}>
|
|
221
|
-
<react_native_1.View style={{
|
|
222
|
-
flexDirection: 'row',
|
|
223
|
-
alignItems: 'center',
|
|
224
|
-
gap: 6,
|
|
225
|
-
flex: 1,
|
|
226
|
-
flexWrap: 'wrap',
|
|
227
|
-
}}>
|
|
7
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:8}}>
|
|
8
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:6,flex:1,flexWrap:"wrap"}}>
|
|
228
9
|
|
|
229
|
-
<react_native_1.View style={[
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
backgroundColor: typeColors.badgeBg,
|
|
233
|
-
borderWidth: 1,
|
|
234
|
-
borderColor: `${typeColors.border}40`,
|
|
235
|
-
paddingHorizontal: 8,
|
|
236
|
-
paddingVertical: 3,
|
|
237
|
-
},
|
|
238
|
-
]}>
|
|
239
|
-
<react_native_1.View style={[
|
|
240
|
-
styles_1.default.typeDot,
|
|
241
|
-
{ backgroundColor: typeColors.badgeText },
|
|
242
|
-
]}/>
|
|
243
|
-
<react_native_1.Text style={[
|
|
244
|
-
styles_1.default.typeChipText,
|
|
245
|
-
{ color: typeColors.badgeText, fontSize: 10 },
|
|
246
|
-
]}>
|
|
247
|
-
{typeColors.label}
|
|
10
|
+
<react_native_1.View style={[styles_1.default.metaChip,{backgroundColor:`${AppColors_1.AppColors.grayTextWeak}15`,borderColor:`${AppColors_1.AppColors.grayTextWeak}33`,paddingHorizontal:7,paddingVertical:3}]}>
|
|
11
|
+
<react_native_1.Text style={[styles_1.default.metaChipText,{color:AppColors_1.AppColors.grayTextStrong,fontSize:10,fontFamily:AppFonts_1.AppFonts.interBold}]}>
|
|
12
|
+
#{t.id!=null?t.id+1:1}
|
|
248
13
|
</react_native_1.Text>
|
|
249
14
|
</react_native_1.View>
|
|
250
15
|
|
|
251
16
|
|
|
252
|
-
<react_native_1.View style={[
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
]}>
|
|
17
|
+
<react_native_1.View style={[styles_1.default.typeChip,{backgroundColor:f.badgeBg,borderWidth:1,borderColor:`${f.border}40`,paddingHorizontal:8,paddingVertical:3}]}>
|
|
18
|
+
<react_native_1.View style={[styles_1.default.typeDot,{backgroundColor:f.badgeText}]}/>
|
|
19
|
+
<react_native_1.Text style={[styles_1.default.typeChipText,{color:f.badgeText,fontSize:10}]}>
|
|
20
|
+
{f.label}
|
|
21
|
+
</react_native_1.Text>
|
|
22
|
+
</react_native_1.View>
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
<react_native_1.View style={[styles_1.default.metaChip,{backgroundColor:`${AppColors_1.AppColors.brandPurple}12`,borderColor:`${AppColors_1.AppColors.brandPurple}30`}]}>
|
|
26
|
+
<react_native_1.Text style={[styles_1.default.metaChipText,{color:AppColors_1.AppColors.brandPurple,fontSize:10}]}>
|
|
263
27
|
console.
|
|
264
|
-
{
|
|
28
|
+
{t.sourceMethod||t.type||"log"}
|
|
265
29
|
</react_native_1.Text>
|
|
266
30
|
</react_native_1.View>
|
|
267
31
|
|
|
268
32
|
|
|
269
|
-
{
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
backgroundColor: `${AppColors_1.AppColors.teal600}12`,
|
|
273
|
-
borderColor: `${AppColors_1.AppColors.teal600}2B`,
|
|
274
|
-
},
|
|
275
|
-
]}>
|
|
276
|
-
<react_native_1.Text style={[
|
|
277
|
-
styles_1.default.metaChipText,
|
|
278
|
-
{ color: AppColors_1.AppColors.teal600, fontSize: 10 },
|
|
279
|
-
]}>
|
|
280
|
-
{Array.isArray(jsonContent.data)
|
|
281
|
-
? `Array[${jsonContent.data.length}]`
|
|
282
|
-
: `Object{${Object.keys(jsonContent.data).length}}`}
|
|
33
|
+
{p&&<react_native_1.View style={[styles_1.default.metaChip,{backgroundColor:`${AppColors_1.AppColors.teal600}12`,borderColor:`${AppColors_1.AppColors.teal600}2B`}]}>
|
|
34
|
+
<react_native_1.Text style={[styles_1.default.metaChipText,{color:AppColors_1.AppColors.teal600,fontSize:10}]}>
|
|
35
|
+
{Array.isArray(p.data)?`Array[${p.data.length}]`:`Object{${Object.keys(p.data).length}}`}
|
|
283
36
|
</react_native_1.Text>
|
|
284
|
-
</react_native_1.View>
|
|
37
|
+
</react_native_1.View>}
|
|
285
38
|
|
|
286
39
|
|
|
287
|
-
{
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
{
|
|
291
|
-
backgroundColor: `${AppColors_1.AppColors.purple}1A`,
|
|
292
|
-
borderColor: `${AppColors_1.AppColors.purple}3D`,
|
|
293
|
-
},
|
|
294
|
-
]}>
|
|
295
|
-
<react_native_1.Text style={[
|
|
296
|
-
styles_1.default.metaChipText,
|
|
297
|
-
{ color: AppColors_1.AppColors.purple, fontWeight: '700' },
|
|
298
|
-
]}>
|
|
299
|
-
{t('console.duplicates', {
|
|
300
|
-
count: selectedLog.duplicateCount,
|
|
301
|
-
})}
|
|
40
|
+
{t.duplicateCount!=null&&t.duplicateCount>1&&<react_native_1.View style={[styles_1.default.metaChip,{backgroundColor:`${AppColors_1.AppColors.purple}1A`,borderColor:`${AppColors_1.AppColors.purple}3D`}]}>
|
|
41
|
+
<react_native_1.Text style={[styles_1.default.metaChipText,{color:AppColors_1.AppColors.purple,fontWeight:"700"}]}>
|
|
42
|
+
{o("console.duplicates",{count:t.duplicateCount})}
|
|
302
43
|
</react_native_1.Text>
|
|
303
|
-
</react_native_1.View>
|
|
44
|
+
</react_native_1.View>}
|
|
304
45
|
</react_native_1.View>
|
|
305
46
|
|
|
306
47
|
|
|
307
|
-
<CopyButton_1.default value={
|
|
48
|
+
<CopyButton_1.default value={t.message}label={o("console.logMessage")}/>
|
|
308
49
|
</react_native_1.View>
|
|
309
50
|
|
|
310
51
|
|
|
311
|
-
<react_native_1.View style={{
|
|
312
|
-
<react_native_1.View style={{
|
|
313
|
-
{
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
: AppColors_1.AppColors.teal600,
|
|
317
|
-
borderRadius: 4,
|
|
318
|
-
paddingHorizontal: 5,
|
|
319
|
-
paddingVertical: 1.5,
|
|
320
|
-
}}>
|
|
321
|
-
<react_native_1.Text style={{
|
|
322
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
323
|
-
fontSize: 9.5,
|
|
324
|
-
color: AppColors_1.AppColors.white,
|
|
325
|
-
letterSpacing: 0.5,
|
|
326
|
-
}}>
|
|
327
|
-
{originFrame.fileExt.toUpperCase()}
|
|
52
|
+
<react_native_1.View style={{gap:4}}>
|
|
53
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:6,flexWrap:"wrap"}}>
|
|
54
|
+
{r?.fileExt&&r.fileExt!=="other"&&<react_native_1.View style={{backgroundColor:r.fileExt==="tsx"||r.fileExt==="ts"?AppColors_1.AppColors.brandPurple:AppColors_1.AppColors.teal600,borderRadius:4,paddingHorizontal:5,paddingVertical:1.5}}>
|
|
55
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9.5,color:AppColors_1.AppColors.white,letterSpacing:.5}}>
|
|
56
|
+
{r.fileExt.toUpperCase()}
|
|
328
57
|
</react_native_1.Text>
|
|
329
|
-
</react_native_1.View>
|
|
58
|
+
</react_native_1.View>}
|
|
330
59
|
|
|
331
|
-
<react_native_1.Text selectable style={{
|
|
332
|
-
|
|
333
|
-
fontSize: 13,
|
|
334
|
-
color: AppColors_1.AppColors.primaryBlack,
|
|
335
|
-
lineHeight: 18,
|
|
336
|
-
flexShrink: 1,
|
|
337
|
-
}}>
|
|
338
|
-
{originFrame?.functionName && originFrame.functionName !== '<anonymous>'
|
|
339
|
-
? `${originFrame.functionName}()`
|
|
340
|
-
: originFrame?.fileName || t('console.consoleLog')}
|
|
60
|
+
<react_native_1.Text selectable style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:13,color:AppColors_1.AppColors.primaryBlack,lineHeight:18,flexShrink:1}}>
|
|
61
|
+
{r?.functionName&&r.functionName!=="<anonymous>"?`${r.functionName}()`:r?.fileName||o("console.consoleLog")}
|
|
341
62
|
</react_native_1.Text>
|
|
342
63
|
|
|
343
|
-
{
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
paddingHorizontal: 7,
|
|
351
|
-
paddingVertical: 2,
|
|
352
|
-
},
|
|
353
|
-
]}>
|
|
354
|
-
<react_native_1.View style={{ flexDirection: 'row', alignItems: 'center', gap: 4, flexShrink: 1 }}>
|
|
355
|
-
<NetworkIcons_1.DocIcon color={AppColors_1.AppColors.brandPurple} size={10}/>
|
|
356
|
-
<react_native_1.Text style={[
|
|
357
|
-
styles_1.default.metaChipText,
|
|
358
|
-
{ color: AppColors_1.AppColors.brandPurple, fontSize: 10, fontFamily: AppFonts_1.AppFonts.interBold, flexShrink: 1 },
|
|
359
|
-
]}>
|
|
360
|
-
{originFrame.fileName}
|
|
361
|
-
{originFrame.lineNumber ? `:${originFrame.lineNumber}` : ''}
|
|
362
|
-
{originFrame.columnNumber ? `:${originFrame.columnNumber}` : ''}
|
|
64
|
+
{r?.fileName&&<react_native_1.Pressable onPress={()=>(0,helpers_1.openInVSCode)(r.rawFilePath||r.fullPath||r.fileName,r.lineNumber,r.columnNumber)}hitSlop={8}style={[styles_1.default.metaChip,{backgroundColor:`${AppColors_1.AppColors.brandPurple}15`,borderColor:`${AppColors_1.AppColors.brandPurple}40`,paddingHorizontal:7,paddingVertical:2}]}>
|
|
65
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:4,flexShrink:1}}>
|
|
66
|
+
<NetworkIcons_1.DocIcon color={AppColors_1.AppColors.brandPurple}size={10}/>
|
|
67
|
+
<react_native_1.Text style={[styles_1.default.metaChipText,{color:AppColors_1.AppColors.brandPurple,fontSize:10,fontFamily:AppFonts_1.AppFonts.interBold,flexShrink:1}]}>
|
|
68
|
+
{r.fileName}
|
|
69
|
+
{r.lineNumber?`:${r.lineNumber}`:""}
|
|
70
|
+
{r.columnNumber?`:${r.columnNumber}`:""}
|
|
363
71
|
</react_native_1.Text>
|
|
364
|
-
<NetworkIcons_1.ExternalLinkIcon color={AppColors_1.AppColors.brandPurple}
|
|
72
|
+
<NetworkIcons_1.ExternalLinkIcon color={AppColors_1.AppColors.brandPurple}size={9}/>
|
|
365
73
|
</react_native_1.View>
|
|
366
|
-
</react_native_1.Pressable>
|
|
74
|
+
</react_native_1.Pressable>}
|
|
367
75
|
</react_native_1.View>
|
|
368
76
|
|
|
369
77
|
|
|
370
|
-
<react_native_1.View style={{
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
gap: 8,
|
|
374
|
-
flexWrap: 'wrap',
|
|
375
|
-
}}>
|
|
376
|
-
<react_native_1.Text style={{
|
|
377
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
378
|
-
fontSize: 10,
|
|
379
|
-
color: AppColors_1.AppColors.grayTextWeak,
|
|
380
|
-
}}>
|
|
381
|
-
#{selectedLog.id + 1}
|
|
78
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:8,flexWrap:"wrap"}}>
|
|
79
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10,color:AppColors_1.AppColors.grayTextWeak}}>
|
|
80
|
+
#{t.id+1}
|
|
382
81
|
</react_native_1.Text>
|
|
383
82
|
<react_native_1.Text style={detailStyles.metaDot}>•</react_native_1.Text>
|
|
384
|
-
<react_native_1.Text style={{
|
|
385
|
-
|
|
386
|
-
fontSize: 10,
|
|
387
|
-
color: AppColors_1.AppColors.grayTextWeak,
|
|
388
|
-
}}>
|
|
389
|
-
{(0, helpers_1.formatDateTime)(selectedLog.timestamp)} ({getRelativeTime(selectedLog.timestamp)})
|
|
83
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:10,color:AppColors_1.AppColors.grayTextWeak}}>
|
|
84
|
+
{(0,helpers_1.formatDateTime)(t.timestamp)} ({getRelativeTime(t.timestamp)})
|
|
390
85
|
</react_native_1.Text>
|
|
391
86
|
<react_native_1.Text style={detailStyles.metaDot}>•</react_native_1.Text>
|
|
392
|
-
<react_native_1.Text style={{
|
|
393
|
-
|
|
394
|
-
fontSize: 10,
|
|
395
|
-
color: AppColors_1.AppColors.grayTextWeak,
|
|
396
|
-
}}>
|
|
397
|
-
{(0, helpers_1.getSize)(selectedLog.message)}
|
|
87
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:10,color:AppColors_1.AppColors.grayTextWeak}}>
|
|
88
|
+
{(0,helpers_1.getSize)(t.message)}
|
|
398
89
|
</react_native_1.Text>
|
|
399
90
|
</react_native_1.View>
|
|
400
91
|
</react_native_1.View>
|
|
@@ -403,717 +94,200 @@ const LogDetail = react_1.default.memo(() => {
|
|
|
403
94
|
|
|
404
95
|
|
|
405
96
|
<react_native_1.View style={detailStyles.tabsHeaderWrap}>
|
|
406
|
-
<SegmentedTabs_1.default tabs={
|
|
97
|
+
<SegmentedTabs_1.default tabs={B}activeKey={l}onChange={e=>i(e)}/>
|
|
407
98
|
</react_native_1.View>
|
|
408
99
|
|
|
409
100
|
|
|
410
|
-
{
|
|
411
|
-
<react_native_1.View style={[styles_1.default.detailSearchRow,
|
|
412
|
-
<react_native_1.View style={[
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
borderWidth: 1,
|
|
419
|
-
borderColor: AppColors_1.AppColors.dividerColor,
|
|
420
|
-
},
|
|
421
|
-
]}>
|
|
422
|
-
<NetworkIcons_1.SearchIcon color={AppColors_1.AppColors.grayTextWeak} size={15}/>
|
|
423
|
-
<react_native_1.TextInput placeholder="Search in log details..." placeholderTextColor={AppColors_1.AppColors.grayTextWeak} value={detailSearch} onChangeText={setDetailSearch} style={styles_1.default.detailSearchInput} autoCorrect={false} autoCapitalize="none"/>
|
|
424
|
-
{detailSearch.length > 0 && (<react_native_1.Pressable onPress={() => setDetailSearch('')} hitSlop={10} style={{ padding: 6 }}>
|
|
425
|
-
<NetworkIcons_1.ClearIcon color={AppColors_1.AppColors.grayTextWeak} size={13}/>
|
|
426
|
-
</react_native_1.Pressable>)}
|
|
101
|
+
{l!=="metadata"&&<react_native_1.View style={{paddingHorizontal:12,paddingTop:6,paddingBottom:4}}>
|
|
102
|
+
<react_native_1.View style={[styles_1.default.detailSearchRow,{marginBottom:0}]}>
|
|
103
|
+
<react_native_1.View style={[styles_1.default.detailSearchBox,{backgroundColor:g?`${AppColors_1.AppColors.brandPurple}10`:AppColors_1.AppColors.purpleShade50,borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor}]}>
|
|
104
|
+
<NetworkIcons_1.SearchIcon color={AppColors_1.AppColors.grayTextWeak}size={15}/>
|
|
105
|
+
<react_native_1.TextInput placeholder="Search in log details..."placeholderTextColor={AppColors_1.AppColors.grayTextWeak}value={a}onChangeText={y}style={styles_1.default.detailSearchInput}autoCorrect={!1}autoCapitalize="none"/>
|
|
106
|
+
{a.length>0&&<react_native_1.Pressable onPress={()=>y("")}hitSlop={10}style={{padding:6}}>
|
|
107
|
+
<NetworkIcons_1.ClearIcon color={AppColors_1.AppColors.grayTextWeak}size={13}/>
|
|
108
|
+
</react_native_1.Pressable>}
|
|
427
109
|
</react_native_1.View>
|
|
428
110
|
</react_native_1.View>
|
|
429
|
-
</react_native_1.View>
|
|
111
|
+
</react_native_1.View>}
|
|
430
112
|
|
|
431
113
|
|
|
432
|
-
<react_native_1.ScrollView style={{
|
|
433
|
-
paddingHorizontal: 12,
|
|
434
|
-
paddingTop: 6,
|
|
435
|
-
paddingBottom: 28,
|
|
436
|
-
flexGrow: 1,
|
|
437
|
-
}} showsVerticalScrollIndicator={true} keyboardShouldPersistTaps="handled">
|
|
114
|
+
<react_native_1.ScrollView style={{flex:1}}contentContainerStyle={{paddingHorizontal:12,paddingTop:6,paddingBottom:28,flexGrow:1}}showsVerticalScrollIndicator={!0}keyboardShouldPersistTaps="handled">
|
|
438
115
|
|
|
439
|
-
{
|
|
440
|
-
styles_1.default.sectionContainer,
|
|
441
|
-
{
|
|
442
|
-
backgroundColor: isDark
|
|
443
|
-
? `${AppColors_1.AppColors.purple}12`
|
|
444
|
-
: AppColors_1.AppColors.purpleShade50,
|
|
445
|
-
borderWidth: 1,
|
|
446
|
-
borderColor: AppColors_1.AppColors.dividerColor,
|
|
447
|
-
borderRadius: 12,
|
|
448
|
-
overflow: 'hidden',
|
|
449
|
-
flex: 1,
|
|
450
|
-
},
|
|
451
|
-
]}>
|
|
116
|
+
{l==="output"&&<react_native_1.View style={[styles_1.default.sectionContainer,{backgroundColor:g?`${AppColors_1.AppColors.purple}12`:AppColors_1.AppColors.purpleShade50,borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor,borderRadius:12,overflow:"hidden",flex:1}]}>
|
|
452
117
|
|
|
453
|
-
<react_native_1.View style={{
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
paddingVertical: 10,
|
|
458
|
-
borderBottomWidth: 1,
|
|
459
|
-
borderBottomColor: AppColors_1.AppColors.dividerColor,
|
|
460
|
-
backgroundColor: isDark
|
|
461
|
-
? AppColors_1.AppColors.primaryLight
|
|
462
|
-
: AppColors_1.AppColors.grayBackground,
|
|
463
|
-
}}>
|
|
464
|
-
<react_native_1.View style={{
|
|
465
|
-
flexDirection: 'row',
|
|
466
|
-
justifyContent: 'space-between',
|
|
467
|
-
alignItems: 'center',
|
|
468
|
-
}}>
|
|
469
|
-
<react_native_1.Text style={{
|
|
470
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
471
|
-
fontSize: 11.5,
|
|
472
|
-
color: AppColors_1.AppColors.purple,
|
|
473
|
-
letterSpacing: 0.4,
|
|
474
|
-
textTransform: 'uppercase',
|
|
475
|
-
}}>
|
|
476
|
-
{jsonContent
|
|
477
|
-
? t('console.jsonTitle')
|
|
478
|
-
: t('console.messageTitle')}
|
|
118
|
+
<react_native_1.View style={{flexDirection:"column",gap:8,paddingHorizontal:12,paddingVertical:10,borderBottomWidth:1,borderBottomColor:AppColors_1.AppColors.dividerColor,backgroundColor:g?AppColors_1.AppColors.primaryLight:AppColors_1.AppColors.grayBackground}}>
|
|
119
|
+
<react_native_1.View style={{flexDirection:"row",justifyContent:"space-between",alignItems:"center"}}>
|
|
120
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11.5,color:AppColors_1.AppColors.purple,letterSpacing:.4,textTransform:"uppercase"}}>
|
|
121
|
+
{o(p?"console.jsonTitle":"console.messageTitle")}
|
|
479
122
|
</react_native_1.Text>
|
|
480
|
-
<CopyButton_1.default value={
|
|
123
|
+
<CopyButton_1.default value={t.message}label={o("console.logMessage")}/>
|
|
481
124
|
</react_native_1.View>
|
|
482
125
|
|
|
483
|
-
{
|
|
484
|
-
{
|
|
485
|
-
key: 'pretty',
|
|
486
|
-
label: t('network.jsonViewer.pretty'),
|
|
487
|
-
icon: (isActive) => (<NetworkIcons_1.PrettyIcon color={isActive
|
|
488
|
-
? AppColors_1.AppColors.white
|
|
489
|
-
: AppColors_1.AppColors.grayTextWeak} size={12}/>),
|
|
490
|
-
},
|
|
491
|
-
{
|
|
492
|
-
key: 'raw',
|
|
493
|
-
label: t('network.jsonViewer.raw'),
|
|
494
|
-
icon: (isActive) => (<NetworkIcons_1.RawIcon color={isActive
|
|
495
|
-
? AppColors_1.AppColors.white
|
|
496
|
-
: AppColors_1.AppColors.grayTextWeak} size={12}/>),
|
|
497
|
-
},
|
|
498
|
-
{
|
|
499
|
-
key: 'table',
|
|
500
|
-
label: t('network.jsonViewer.table'),
|
|
501
|
-
icon: (isActive) => (<NetworkIcons_1.TableIcon color={isActive
|
|
502
|
-
? AppColors_1.AppColors.white
|
|
503
|
-
: AppColors_1.AppColors.grayTextWeak} size={12}/>),
|
|
504
|
-
},
|
|
505
|
-
]} activeKey={viewMode} onChange={key => setViewMode(key)}/>)}
|
|
126
|
+
{p&&<SegmentedTabs_1.default tabs={[{key:"pretty",label:o("network.jsonViewer.pretty"),icon:e=><NetworkIcons_1.PrettyIcon color={e?AppColors_1.AppColors.white:AppColors_1.AppColors.grayTextWeak}size={12}/>},{key:"raw",label:o("network.jsonViewer.raw"),icon:e=><NetworkIcons_1.RawIcon color={e?AppColors_1.AppColors.white:AppColors_1.AppColors.grayTextWeak}size={12}/>},{key:"table",label:o("network.jsonViewer.table"),icon:e=><NetworkIcons_1.TableIcon color={e?AppColors_1.AppColors.white:AppColors_1.AppColors.grayTextWeak}size={12}/>}]}activeKey={b}onChange={e=>v(e)}/>}
|
|
506
127
|
</react_native_1.View>
|
|
507
128
|
|
|
508
129
|
|
|
509
|
-
<react_native_1.View style={{
|
|
510
|
-
{
|
|
511
|
-
{
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
borderWidth: 1,
|
|
515
|
-
borderColor: AppColors_1.AppColors.dividerColor,
|
|
516
|
-
padding: 10,
|
|
517
|
-
marginBottom: 8,
|
|
518
|
-
}}>
|
|
519
|
-
<react_native_1.Text selectable style={{
|
|
520
|
-
fontFamily: AppFonts_1.AppFonts.interRegular,
|
|
521
|
-
fontSize: 12,
|
|
522
|
-
color: AppColors_1.AppColors.primaryBlack,
|
|
523
|
-
lineHeight: 17,
|
|
524
|
-
}}>
|
|
525
|
-
{jsonContent.header}
|
|
130
|
+
<react_native_1.View style={{padding:12,flex:1}}>
|
|
131
|
+
{p?<>
|
|
132
|
+
{p.header?<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,borderRadius:8,borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor,padding:10,marginBottom:8}}>
|
|
133
|
+
<react_native_1.Text selectable style={{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:12,color:AppColors_1.AppColors.primaryBlack,lineHeight:17}}>
|
|
134
|
+
{p.header}
|
|
526
135
|
</react_native_1.Text>
|
|
527
|
-
</react_native_1.View
|
|
528
|
-
<JsonViewer_1.default data={
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
: 2}/>
|
|
533
|
-
</>) : (<react_native_1.View style={{
|
|
534
|
-
backgroundColor: AppColors_1.AppColors.primaryLight,
|
|
535
|
-
borderRadius: 8,
|
|
536
|
-
borderWidth: 1,
|
|
537
|
-
borderColor: AppColors_1.AppColors.dividerColor,
|
|
538
|
-
padding: 10,
|
|
539
|
-
}}>
|
|
540
|
-
<HighlightText_1.default text={selectedLog.message} search={detailSearch} style={{
|
|
541
|
-
fontFamily: AppFonts_1.AppFonts.interRegular,
|
|
542
|
-
fontSize: 12,
|
|
543
|
-
color: AppColors_1.AppColors.primaryBlack,
|
|
544
|
-
lineHeight: 18,
|
|
545
|
-
}} highlightStyle={{
|
|
546
|
-
backgroundColor: AppColors_1.AppColors.yellowHighlight,
|
|
547
|
-
color: AppColors_1.AppColors.primaryBlack,
|
|
548
|
-
borderRadius: 3,
|
|
549
|
-
paddingHorizontal: 2,
|
|
550
|
-
}} detectLinks={true}/>
|
|
551
|
-
</react_native_1.View>)}
|
|
136
|
+
</react_native_1.View>:null}
|
|
137
|
+
<JsonViewer_1.default data={p.data}search={a}wrap forceOpen hideTabs fullHeight mode={b}defaultExpandDepth={p.data&&typeof p.data=="object"&&Object.keys(p.data).length>10?1:2}/>
|
|
138
|
+
</>:<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,borderRadius:8,borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor,padding:10}}>
|
|
139
|
+
<HighlightText_1.default text={t.message}search={a}style={{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:12,color:AppColors_1.AppColors.primaryBlack,lineHeight:18}}highlightStyle={{backgroundColor:AppColors_1.AppColors.yellowHighlight,color:AppColors_1.AppColors.primaryBlack,borderRadius:3,paddingHorizontal:2}}detectLinks={!0}/>
|
|
140
|
+
</react_native_1.View>}
|
|
552
141
|
</react_native_1.View>
|
|
553
|
-
</react_native_1.View>
|
|
142
|
+
</react_native_1.View>}
|
|
554
143
|
|
|
555
144
|
|
|
556
|
-
{
|
|
557
|
-
{
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
: typeof arg === 'object'
|
|
563
|
-
? `Object{${Object.keys(arg).length}}`
|
|
564
|
-
: typeof arg;
|
|
565
|
-
const isObj = arg != null &&
|
|
566
|
-
(typeof arg === 'object' || Array.isArray(arg));
|
|
567
|
-
const argStr = isObj
|
|
568
|
-
? JSON.stringify(arg, null, 2)
|
|
569
|
-
: String(arg);
|
|
570
|
-
return (<react_native_1.View key={idx} style={[
|
|
571
|
-
styles_1.default.sectionContainer,
|
|
572
|
-
{
|
|
573
|
-
backgroundColor: AppColors_1.AppColors.primaryLight,
|
|
574
|
-
borderRadius: 10,
|
|
575
|
-
borderWidth: 1,
|
|
576
|
-
borderColor: AppColors_1.AppColors.dividerColor,
|
|
577
|
-
overflow: 'hidden',
|
|
578
|
-
},
|
|
579
|
-
]}>
|
|
580
|
-
<react_native_1.View style={{
|
|
581
|
-
flexDirection: 'row',
|
|
582
|
-
alignItems: 'center',
|
|
583
|
-
justifyContent: 'space-between',
|
|
584
|
-
paddingHorizontal: 12,
|
|
585
|
-
paddingVertical: 8,
|
|
586
|
-
backgroundColor: AppColors_1.AppColors.grayBackground,
|
|
587
|
-
borderBottomWidth: 1,
|
|
588
|
-
borderBottomColor: AppColors_1.AppColors.dividerColor,
|
|
589
|
-
}}>
|
|
590
|
-
<react_native_1.View style={{
|
|
591
|
-
flexDirection: 'row',
|
|
592
|
-
alignItems: 'center',
|
|
593
|
-
gap: 6,
|
|
594
|
-
}}>
|
|
595
|
-
<react_native_1.Text style={{
|
|
596
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
597
|
-
fontSize: 11,
|
|
598
|
-
color: AppColors_1.AppColors.purple,
|
|
599
|
-
}}>
|
|
600
|
-
Arg #{idx + 1}
|
|
145
|
+
{l==="arguments"&&t.rawArgs&&<react_native_1.View style={{gap:10}}>
|
|
146
|
+
{t.rawArgs.map((e,n)=>{const c=e===null?"null":Array.isArray(e)?`Array[${e.length}]`:typeof e=="object"?`Object{${Object.keys(e).length}}`:typeof e,A=e!=null&&(typeof e=="object"||Array.isArray(e)),w=A?JSON.stringify(e,null,2):String(e);return<react_native_1.View key={n}style={[styles_1.default.sectionContainer,{backgroundColor:AppColors_1.AppColors.primaryLight,borderRadius:10,borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor,overflow:"hidden"}]}>
|
|
147
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:12,paddingVertical:8,backgroundColor:AppColors_1.AppColors.grayBackground,borderBottomWidth:1,borderBottomColor:AppColors_1.AppColors.dividerColor}}>
|
|
148
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:6}}>
|
|
149
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11,color:AppColors_1.AppColors.purple}}>
|
|
150
|
+
Arg #{n+1}
|
|
601
151
|
</react_native_1.Text>
|
|
602
|
-
<react_native_1.View style={[
|
|
603
|
-
styles_1.default.
|
|
604
|
-
|
|
605
|
-
backgroundColor: `${AppColors_1.AppColors.teal600}12`,
|
|
606
|
-
borderColor: `${AppColors_1.AppColors.teal600}2B`,
|
|
607
|
-
paddingHorizontal: 5,
|
|
608
|
-
paddingVertical: 1.5,
|
|
609
|
-
},
|
|
610
|
-
]}>
|
|
611
|
-
<react_native_1.Text style={[
|
|
612
|
-
styles_1.default.metaChipText,
|
|
613
|
-
{ color: AppColors_1.AppColors.teal600, fontSize: 9 },
|
|
614
|
-
]}>
|
|
615
|
-
{argType}
|
|
152
|
+
<react_native_1.View style={[styles_1.default.metaChip,{backgroundColor:`${AppColors_1.AppColors.teal600}12`,borderColor:`${AppColors_1.AppColors.teal600}2B`,paddingHorizontal:5,paddingVertical:1.5}]}>
|
|
153
|
+
<react_native_1.Text style={[styles_1.default.metaChipText,{color:AppColors_1.AppColors.teal600,fontSize:9}]}>
|
|
154
|
+
{c}
|
|
616
155
|
</react_native_1.Text>
|
|
617
156
|
</react_native_1.View>
|
|
618
157
|
</react_native_1.View>
|
|
619
|
-
<CopyButton_1.default value={
|
|
158
|
+
<CopyButton_1.default value={w}label={`Arg #${n+1}`}/>
|
|
620
159
|
</react_native_1.View>
|
|
621
160
|
|
|
622
|
-
<react_native_1.View style={{
|
|
623
|
-
{
|
|
624
|
-
fontFamily: AppFonts_1.AppFonts.interRegular,
|
|
625
|
-
fontSize: 12,
|
|
626
|
-
color: AppColors_1.AppColors.primaryBlack,
|
|
627
|
-
lineHeight: 17,
|
|
628
|
-
}} highlightStyle={{
|
|
629
|
-
backgroundColor: AppColors_1.AppColors.yellowHighlight,
|
|
630
|
-
color: AppColors_1.AppColors.primaryBlack,
|
|
631
|
-
}}/>)}
|
|
161
|
+
<react_native_1.View style={{padding:10}}>
|
|
162
|
+
{A?<JsonViewer_1.default data={e}search={a}wrap forceOpen hideTabs defaultExpandDepth={2}/>:<HighlightText_1.default text={w}search={a}style={{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:12,color:AppColors_1.AppColors.primaryBlack,lineHeight:17}}highlightStyle={{backgroundColor:AppColors_1.AppColors.yellowHighlight,color:AppColors_1.AppColors.primaryBlack}}/>}
|
|
632
163
|
</react_native_1.View>
|
|
633
|
-
</react_native_1.View>)
|
|
634
|
-
|
|
635
|
-
</react_native_1.View>)}
|
|
164
|
+
</react_native_1.View>})}
|
|
165
|
+
</react_native_1.View>}
|
|
636
166
|
|
|
637
167
|
|
|
638
|
-
{
|
|
639
|
-
styles_1.default.sectionContainer,
|
|
640
|
-
{
|
|
641
|
-
backgroundColor: isDark
|
|
642
|
-
? `${AppColors_1.AppColors.purple}12`
|
|
643
|
-
: AppColors_1.AppColors.purpleShade50,
|
|
644
|
-
borderWidth: 1,
|
|
645
|
-
borderColor: AppColors_1.AppColors.dividerColor,
|
|
646
|
-
borderRadius: 12,
|
|
647
|
-
overflow: 'hidden',
|
|
648
|
-
},
|
|
649
|
-
]}>
|
|
168
|
+
{l==="stack"&&<react_native_1.View style={[styles_1.default.sectionContainer,{backgroundColor:g?`${AppColors_1.AppColors.purple}12`:AppColors_1.AppColors.purpleShade50,borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor,borderRadius:12,overflow:"hidden"}]}>
|
|
650
169
|
|
|
651
|
-
<react_native_1.View style={{
|
|
652
|
-
flexDirection: 'column',
|
|
653
|
-
gap: 8,
|
|
654
|
-
paddingHorizontal: 12,
|
|
655
|
-
paddingVertical: 10,
|
|
656
|
-
borderBottomWidth: 1,
|
|
657
|
-
borderBottomColor: AppColors_1.AppColors.dividerColor,
|
|
658
|
-
backgroundColor: isDark
|
|
659
|
-
? AppColors_1.AppColors.primaryLight
|
|
660
|
-
: AppColors_1.AppColors.grayBackground,
|
|
661
|
-
}}>
|
|
170
|
+
<react_native_1.View style={{flexDirection:"column",gap:8,paddingHorizontal:12,paddingVertical:10,borderBottomWidth:1,borderBottomColor:AppColors_1.AppColors.dividerColor,backgroundColor:g?AppColors_1.AppColors.primaryLight:AppColors_1.AppColors.grayBackground}}>
|
|
662
171
|
|
|
663
|
-
<react_native_1.View style={{
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
justifyContent: 'space-between',
|
|
667
|
-
gap: 8,
|
|
668
|
-
}}>
|
|
669
|
-
<react_native_1.Text style={{
|
|
670
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
671
|
-
fontSize: 11.5,
|
|
672
|
-
color: AppColors_1.AppColors.purple,
|
|
673
|
-
textTransform: 'uppercase',
|
|
674
|
-
letterSpacing: 0.4,
|
|
675
|
-
}}>
|
|
676
|
-
{stackSource === 'error'
|
|
677
|
-
? t('console.errorStack', { count: parsedStackFrames.length })
|
|
678
|
-
: t('console.callStack', { count: parsedStackFrames.length })}
|
|
172
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:8}}>
|
|
173
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11.5,color:AppColors_1.AppColors.purple,textTransform:"uppercase",letterSpacing:.4}}>
|
|
174
|
+
{m==="error"?o("console.errorStack",{count:s.length}):o("console.callStack",{count:s.length})}
|
|
679
175
|
</react_native_1.Text>
|
|
680
176
|
|
|
681
|
-
<react_native_1.View style={{
|
|
682
|
-
<react_native_1.View style={{
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
borderWidth: 1,
|
|
688
|
-
borderColor: AppColors_1.AppColors.dividerColor,
|
|
689
|
-
}}>
|
|
690
|
-
<react_native_1.Pressable onPress={() => setStackViewMode('structured')} style={{
|
|
691
|
-
flexDirection: 'row',
|
|
692
|
-
alignItems: 'center',
|
|
693
|
-
gap: 3,
|
|
694
|
-
paddingVertical: 3.5,
|
|
695
|
-
paddingHorizontal: 7,
|
|
696
|
-
borderRadius: 5,
|
|
697
|
-
backgroundColor: stackViewMode === 'structured'
|
|
698
|
-
? AppColors_1.AppColors.brandPurple
|
|
699
|
-
: 'transparent',
|
|
700
|
-
}}>
|
|
701
|
-
<NetworkIcons_1.LayersIcon color={stackViewMode === 'structured'
|
|
702
|
-
? AppColors_1.AppColors.white
|
|
703
|
-
: AppColors_1.AppColors.grayTextWeak} size={11}/>
|
|
704
|
-
<react_native_1.Text style={{
|
|
705
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
706
|
-
fontSize: 10,
|
|
707
|
-
color: stackViewMode === 'structured'
|
|
708
|
-
? AppColors_1.AppColors.white
|
|
709
|
-
: AppColors_1.AppColors.grayTextStrong,
|
|
710
|
-
}}>
|
|
711
|
-
{t('console.cardsView')}
|
|
177
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:5}}>
|
|
178
|
+
<react_native_1.View style={{flexDirection:"row",backgroundColor:g?AppColors_1.AppColors.primaryLight:AppColors_1.AppColors.white,borderRadius:7,padding:2,borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor}}>
|
|
179
|
+
<react_native_1.Pressable onPress={()=>h("structured")}style={{flexDirection:"row",alignItems:"center",gap:3,paddingVertical:3.5,paddingHorizontal:7,borderRadius:5,backgroundColor:d==="structured"?AppColors_1.AppColors.brandPurple:"transparent"}}>
|
|
180
|
+
<NetworkIcons_1.LayersIcon color={d==="structured"?AppColors_1.AppColors.white:AppColors_1.AppColors.grayTextWeak}size={11}/>
|
|
181
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10,color:d==="structured"?AppColors_1.AppColors.white:AppColors_1.AppColors.grayTextStrong}}>
|
|
182
|
+
{o("console.cardsView")}
|
|
712
183
|
</react_native_1.Text>
|
|
713
184
|
</react_native_1.Pressable>
|
|
714
185
|
|
|
715
|
-
<react_native_1.Pressable onPress={()
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
paddingVertical: 3.5,
|
|
720
|
-
paddingHorizontal: 7,
|
|
721
|
-
borderRadius: 5,
|
|
722
|
-
backgroundColor: stackViewMode === 'raw'
|
|
723
|
-
? AppColors_1.AppColors.brandPurple
|
|
724
|
-
: 'transparent',
|
|
725
|
-
}}>
|
|
726
|
-
<NetworkIcons_1.RawIcon color={stackViewMode === 'raw'
|
|
727
|
-
? AppColors_1.AppColors.white
|
|
728
|
-
: AppColors_1.AppColors.grayTextWeak} size={11}/>
|
|
729
|
-
<react_native_1.Text style={{
|
|
730
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
731
|
-
fontSize: 10,
|
|
732
|
-
color: stackViewMode === 'raw'
|
|
733
|
-
? AppColors_1.AppColors.white
|
|
734
|
-
: AppColors_1.AppColors.grayTextStrong,
|
|
735
|
-
}}>
|
|
736
|
-
{t('console.rawTraceView')}
|
|
186
|
+
<react_native_1.Pressable onPress={()=>h("raw")}style={{flexDirection:"row",alignItems:"center",gap:3,paddingVertical:3.5,paddingHorizontal:7,borderRadius:5,backgroundColor:d==="raw"?AppColors_1.AppColors.brandPurple:"transparent"}}>
|
|
187
|
+
<NetworkIcons_1.RawIcon color={d==="raw"?AppColors_1.AppColors.white:AppColors_1.AppColors.grayTextWeak}size={11}/>
|
|
188
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:10,color:d==="raw"?AppColors_1.AppColors.white:AppColors_1.AppColors.grayTextStrong}}>
|
|
189
|
+
{o("console.rawTraceView")}
|
|
737
190
|
</react_native_1.Text>
|
|
738
191
|
</react_native_1.Pressable>
|
|
739
192
|
</react_native_1.View>
|
|
740
193
|
|
|
741
|
-
<CopyButton_1.default value={
|
|
194
|
+
<CopyButton_1.default value={C}label={o("console.fullStackTrace")}/>
|
|
742
195
|
</react_native_1.View>
|
|
743
196
|
</react_native_1.View>
|
|
744
197
|
|
|
745
198
|
|
|
746
|
-
{
|
|
747
|
-
{
|
|
748
|
-
key: 'caller',
|
|
749
|
-
label: t('console.callOriginStack'),
|
|
750
|
-
},
|
|
751
|
-
{
|
|
752
|
-
key: 'error',
|
|
753
|
-
label: t('console.errorThrownStack'),
|
|
754
|
-
},
|
|
755
|
-
]} activeKey={stackSource} onChange={key => setStackSource(key)}/>)}
|
|
199
|
+
{t.errorStack&&<SegmentedTabs_1.default tabs={[{key:"caller",label:o("console.callOriginStack")},{key:"error",label:o("console.errorThrownStack")}]}activeKey={m}onChange={e=>V(e)}/>}
|
|
756
200
|
|
|
757
201
|
|
|
758
|
-
<SegmentedTabs_1.default tabs={[
|
|
759
|
-
{
|
|
760
|
-
key: 'app',
|
|
761
|
-
label: t('console.appCodeScope', { count: appStackFrames.length }),
|
|
762
|
-
},
|
|
763
|
-
{
|
|
764
|
-
key: 'all',
|
|
765
|
-
label: t('console.allFramesScope', { count: parsedStackFrames.length }),
|
|
766
|
-
},
|
|
767
|
-
]} activeKey={stackFilter} onChange={key => setStackFilter(key)}/>
|
|
202
|
+
<SegmentedTabs_1.default tabs={[{key:"app",label:o("console.appCodeScope",{count:u.length})},{key:"all",label:o("console.allFramesScope",{count:s.length})}]}activeKey={_}onChange={e=>k(e)}/>
|
|
768
203
|
</react_native_1.View>
|
|
769
204
|
|
|
770
205
|
|
|
771
|
-
{
|
|
772
|
-
{
|
|
773
|
-
const isTopFrame = frameIdx === 0;
|
|
774
|
-
const frameBadgeBg = frame.frameType === 'app'
|
|
775
|
-
? `${AppColors_1.AppColors.brandPurple}15`
|
|
776
|
-
: frame.frameType === 'dependency'
|
|
777
|
-
? `${AppColors_1.AppColors.amber500}18`
|
|
778
|
-
: frame.frameType === 'native'
|
|
779
|
-
? `${AppColors_1.AppColors.sky500}18`
|
|
780
|
-
: AppColors_1.AppColors.grayBorderSecondary;
|
|
781
|
-
const frameBadgeText = frame.frameType === 'app'
|
|
782
|
-
? AppColors_1.AppColors.brandPurple
|
|
783
|
-
: frame.frameType === 'dependency'
|
|
784
|
-
? AppColors_1.AppColors.amber700
|
|
785
|
-
: frame.frameType === 'native'
|
|
786
|
-
? AppColors_1.AppColors.sky500
|
|
787
|
-
: AppColors_1.AppColors.grayTextWeak;
|
|
788
|
-
return (<react_native_1.View key={frameIdx} style={{
|
|
789
|
-
backgroundColor: isTopFrame
|
|
790
|
-
? `${AppColors_1.AppColors.brandPurple}0A`
|
|
791
|
-
: AppColors_1.AppColors.primaryLight,
|
|
792
|
-
borderRadius: 10,
|
|
793
|
-
borderWidth: 1,
|
|
794
|
-
borderColor: isTopFrame
|
|
795
|
-
? `${AppColors_1.AppColors.brandPurple}35`
|
|
796
|
-
: AppColors_1.AppColors.dividerColor,
|
|
797
|
-
padding: 11,
|
|
798
|
-
gap: 6,
|
|
799
|
-
}}>
|
|
206
|
+
{d==="structured"?<react_native_1.View style={{padding:12,gap:10}}>
|
|
207
|
+
{x.length>0?x.map((e,n)=>{const c=n===0,A=e.frameType==="app"?`${AppColors_1.AppColors.brandPurple}15`:e.frameType==="dependency"?`${AppColors_1.AppColors.amber500}18`:e.frameType==="native"?`${AppColors_1.AppColors.sky500}18`:AppColors_1.AppColors.grayBorderSecondary,w=e.frameType==="app"?AppColors_1.AppColors.brandPurple:e.frameType==="dependency"?AppColors_1.AppColors.amber700:e.frameType==="native"?AppColors_1.AppColors.sky500:AppColors_1.AppColors.grayTextWeak;return<react_native_1.View key={n}style={{backgroundColor:c?`${AppColors_1.AppColors.brandPurple}0A`:AppColors_1.AppColors.primaryLight,borderRadius:10,borderWidth:1,borderColor:c?`${AppColors_1.AppColors.brandPurple}35`:AppColors_1.AppColors.dividerColor,padding:11,gap:6}}>
|
|
800
208
|
|
|
801
|
-
<react_native_1.View style={{
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
}}>
|
|
807
|
-
<react_native_1.View style={{ flexDirection: 'row', alignItems: 'center', gap: 5, flex: 1, flexWrap: 'wrap' }}>
|
|
808
|
-
{isTopFrame && (<react_native_1.View style={{
|
|
809
|
-
backgroundColor: AppColors_1.AppColors.brandPurple,
|
|
810
|
-
borderRadius: 4,
|
|
811
|
-
paddingHorizontal: 5,
|
|
812
|
-
paddingVertical: 1.5,
|
|
813
|
-
}}>
|
|
814
|
-
<react_native_1.Text style={{
|
|
815
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
816
|
-
fontSize: 8.5,
|
|
817
|
-
color: AppColors_1.AppColors.white,
|
|
818
|
-
}}>
|
|
819
|
-
{t('console.originBadge')}
|
|
209
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:6}}>
|
|
210
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:5,flex:1,flexWrap:"wrap"}}>
|
|
211
|
+
{c&&<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.brandPurple,borderRadius:4,paddingHorizontal:5,paddingVertical:1.5}}>
|
|
212
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:8.5,color:AppColors_1.AppColors.white}}>
|
|
213
|
+
{o("console.originBadge")}
|
|
820
214
|
</react_native_1.Text>
|
|
821
|
-
</react_native_1.View>
|
|
215
|
+
</react_native_1.View>}
|
|
822
216
|
|
|
823
|
-
{
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
: `${AppColors_1.AppColors.teal600}18`,
|
|
827
|
-
borderRadius: 4,
|
|
828
|
-
paddingHorizontal: 4.5,
|
|
829
|
-
paddingVertical: 1.5,
|
|
830
|
-
}}>
|
|
831
|
-
<react_native_1.Text style={{
|
|
832
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
833
|
-
fontSize: 8.5,
|
|
834
|
-
color: frame.fileExt === 'tsx' || frame.fileExt === 'ts'
|
|
835
|
-
? AppColors_1.AppColors.brandPurple
|
|
836
|
-
: AppColors_1.AppColors.teal600,
|
|
837
|
-
}}>
|
|
838
|
-
{frame.fileExt.toUpperCase()}
|
|
217
|
+
{e.fileExt&&e.fileExt!=="other"&&<react_native_1.View style={{backgroundColor:e.fileExt==="tsx"||e.fileExt==="ts"?`${AppColors_1.AppColors.brandPurple}18`:`${AppColors_1.AppColors.teal600}18`,borderRadius:4,paddingHorizontal:4.5,paddingVertical:1.5}}>
|
|
218
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:8.5,color:e.fileExt==="tsx"||e.fileExt==="ts"?AppColors_1.AppColors.brandPurple:AppColors_1.AppColors.teal600}}>
|
|
219
|
+
{e.fileExt.toUpperCase()}
|
|
839
220
|
</react_native_1.Text>
|
|
840
|
-
</react_native_1.View>
|
|
221
|
+
</react_native_1.View>}
|
|
841
222
|
|
|
842
|
-
<react_native_1.Text style={{
|
|
843
|
-
|
|
844
|
-
fontSize: 11.5,
|
|
845
|
-
color: isTopFrame
|
|
846
|
-
? AppColors_1.AppColors.brandPurple
|
|
847
|
-
: AppColors_1.AppColors.primaryBlack,
|
|
848
|
-
}}>
|
|
849
|
-
{frame.fileName}
|
|
223
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11.5,color:c?AppColors_1.AppColors.brandPurple:AppColors_1.AppColors.primaryBlack}}>
|
|
224
|
+
{e.fileName}
|
|
850
225
|
</react_native_1.Text>
|
|
851
226
|
</react_native_1.View>
|
|
852
227
|
|
|
853
|
-
<react_native_1.View style={{
|
|
854
|
-
{
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
borderWidth: 1,
|
|
858
|
-
borderRadius: 4,
|
|
859
|
-
paddingHorizontal: 5,
|
|
860
|
-
paddingVertical: 1.5,
|
|
861
|
-
}}>
|
|
862
|
-
<react_native_1.Text style={{
|
|
863
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
864
|
-
fontSize: 9.5,
|
|
865
|
-
color: AppColors_1.AppColors.teal600,
|
|
866
|
-
}}>
|
|
867
|
-
L{frame.lineNumber}{frame.columnNumber ? `:C${frame.columnNumber}` : ''}
|
|
228
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:4}}>
|
|
229
|
+
{e.lineNumber&&<react_native_1.View style={{backgroundColor:`${AppColors_1.AppColors.teal600}15`,borderColor:`${AppColors_1.AppColors.teal600}30`,borderWidth:1,borderRadius:4,paddingHorizontal:5,paddingVertical:1.5}}>
|
|
230
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:9.5,color:AppColors_1.AppColors.teal600}}>
|
|
231
|
+
L{e.lineNumber}{e.columnNumber?`:C${e.columnNumber}`:""}
|
|
868
232
|
</react_native_1.Text>
|
|
869
|
-
</react_native_1.View>
|
|
870
|
-
<CopyButton_1.default value={
|
|
233
|
+
</react_native_1.View>}
|
|
234
|
+
<CopyButton_1.default value={e.copyableLocation}label={e.fileName}/>
|
|
871
235
|
</react_native_1.View>
|
|
872
236
|
</react_native_1.View>
|
|
873
237
|
|
|
874
238
|
|
|
875
|
-
<react_native_1.View style={{
|
|
876
|
-
<HighlightText_1.default text={
|
|
877
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
878
|
-
fontSize: 12.5,
|
|
879
|
-
color: AppColors_1.AppColors.primaryBlack,
|
|
880
|
-
}} highlightStyle={{
|
|
881
|
-
backgroundColor: AppColors_1.AppColors.yellowHighlight,
|
|
882
|
-
color: AppColors_1.AppColors.primaryBlack,
|
|
883
|
-
}}/>
|
|
239
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:5}}>
|
|
240
|
+
<HighlightText_1.default text={e.functionName!=="<anonymous>"?`${e.functionName}()`:"<anonymous>"}search={a}style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:12.5,color:AppColors_1.AppColors.primaryBlack}}highlightStyle={{backgroundColor:AppColors_1.AppColors.yellowHighlight,color:AppColors_1.AppColors.primaryBlack}}/>
|
|
884
241
|
</react_native_1.View>
|
|
885
242
|
|
|
886
243
|
|
|
887
|
-
<react_native_1.View style={{
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
borderRadius: 6,
|
|
893
|
-
paddingHorizontal: 8,
|
|
894
|
-
paddingVertical: 4.5,
|
|
895
|
-
gap: 6,
|
|
896
|
-
}}>
|
|
897
|
-
<react_native_1.View style={{ flexDirection: 'row', alignItems: 'center', gap: 5, flex: 1 }}>
|
|
898
|
-
<NetworkIcons_1.FolderIcon size={12} color={AppColors_1.AppColors.grayTextWeak}/>
|
|
899
|
-
<react_native_1.Text selectable style={{
|
|
900
|
-
fontFamily: AppFonts_1.AppFonts.interRegular,
|
|
901
|
-
fontSize: 9.5,
|
|
902
|
-
color: AppColors_1.AppColors.grayTextStrong,
|
|
903
|
-
flex: 1,
|
|
904
|
-
}} numberOfLines={1}>
|
|
905
|
-
{frame.fullPath}
|
|
244
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",justifyContent:"space-between",backgroundColor:g?`${AppColors_1.AppColors.primaryBlack}25`:AppColors_1.AppColors.grayBackground,borderRadius:6,paddingHorizontal:8,paddingVertical:4.5,gap:6}}>
|
|
245
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",gap:5,flex:1}}>
|
|
246
|
+
<NetworkIcons_1.FolderIcon size={12}color={AppColors_1.AppColors.grayTextWeak}/>
|
|
247
|
+
<react_native_1.Text selectable style={{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:9.5,color:AppColors_1.AppColors.grayTextStrong,flex:1}}numberOfLines={1}>
|
|
248
|
+
{e.fullPath}
|
|
906
249
|
</react_native_1.Text>
|
|
907
250
|
</react_native_1.View>
|
|
908
251
|
|
|
909
|
-
<react_native_1.View style={{
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
paddingHorizontal: 5,
|
|
913
|
-
paddingVertical: 1.5,
|
|
914
|
-
}}>
|
|
915
|
-
<react_native_1.Text style={{
|
|
916
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
917
|
-
fontSize: 8.5,
|
|
918
|
-
color: frameBadgeText,
|
|
919
|
-
}}>
|
|
920
|
-
{frame.frameType === 'app'
|
|
921
|
-
? t('console.appCodeBadge')
|
|
922
|
-
: frame.frameType === 'dependency'
|
|
923
|
-
? t('console.dependencyBadge')
|
|
924
|
-
: frame.frameType === 'native'
|
|
925
|
-
? t('console.nativeBadge')
|
|
926
|
-
: t('console.hermesVmBadge')}
|
|
252
|
+
<react_native_1.View style={{backgroundColor:A,borderRadius:4,paddingHorizontal:5,paddingVertical:1.5}}>
|
|
253
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:8.5,color:w}}>
|
|
254
|
+
{e.frameType==="app"?o("console.appCodeBadge"):e.frameType==="dependency"?o("console.dependencyBadge"):e.frameType==="native"?o("console.nativeBadge"):o("console.hermesVmBadge")}
|
|
927
255
|
</react_native_1.Text>
|
|
928
256
|
</react_native_1.View>
|
|
929
257
|
</react_native_1.View>
|
|
930
|
-
</react_native_1.View>)
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
{t('console.noStackAvailable')}
|
|
939
|
-
</react_native_1.Text>)}
|
|
940
|
-
</react_native_1.View>) : (<react_native_1.View style={{
|
|
941
|
-
backgroundColor: AppColors_1.AppColors.primaryLight,
|
|
942
|
-
padding: 12,
|
|
943
|
-
}}>
|
|
944
|
-
{activeStackString.split('\n').filter(l => l.trim().length > 0).map((line, lineIdx) => (<react_native_1.View key={lineIdx} style={{
|
|
945
|
-
flexDirection: 'row',
|
|
946
|
-
alignItems: 'flex-start',
|
|
947
|
-
paddingVertical: 2,
|
|
948
|
-
}}>
|
|
949
|
-
<react_native_1.Text style={{
|
|
950
|
-
width: 28,
|
|
951
|
-
textAlign: 'right',
|
|
952
|
-
paddingRight: 8,
|
|
953
|
-
fontFamily: AppFonts_1.AppFonts.interRegular,
|
|
954
|
-
fontSize: 11,
|
|
955
|
-
color: AppColors_1.AppColors.grayTextWeak,
|
|
956
|
-
lineHeight: 17,
|
|
957
|
-
}}>
|
|
958
|
-
{lineIdx + 1}
|
|
258
|
+
</react_native_1.View>}):<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:11.5,color:AppColors_1.AppColors.grayTextWeak,textAlign:"center",paddingVertical:16}}>
|
|
259
|
+
{o("console.noStackAvailable")}
|
|
260
|
+
</react_native_1.Text>}
|
|
261
|
+
</react_native_1.View>:<react_native_1.View style={{backgroundColor:AppColors_1.AppColors.primaryLight,padding:12}}>
|
|
262
|
+
{C.split(`
|
|
263
|
+
`).filter(e=>e.trim().length>0).map((e,n)=><react_native_1.View key={n}style={{flexDirection:"row",alignItems:"flex-start",paddingVertical:2}}>
|
|
264
|
+
<react_native_1.Text style={{width:28,textAlign:"right",paddingRight:8,fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:11,color:AppColors_1.AppColors.grayTextWeak,lineHeight:17}}>
|
|
265
|
+
{n+1}
|
|
959
266
|
</react_native_1.Text>
|
|
960
|
-
<HighlightText_1.default text={
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
color: AppColors_1.AppColors.primaryBlack,
|
|
965
|
-
lineHeight: 17,
|
|
966
|
-
}} highlightStyle={{
|
|
967
|
-
backgroundColor: AppColors_1.AppColors.yellowHighlight,
|
|
968
|
-
color: AppColors_1.AppColors.primaryBlack,
|
|
969
|
-
}}/>
|
|
970
|
-
</react_native_1.View>))}
|
|
971
|
-
</react_native_1.View>)}
|
|
972
|
-
</react_native_1.View>)}
|
|
267
|
+
<HighlightText_1.default text={e.trim()}search={a}style={{flex:1,fontFamily:AppFonts_1.AppFonts.interRegular,fontSize:12,color:AppColors_1.AppColors.primaryBlack,lineHeight:17}}highlightStyle={{backgroundColor:AppColors_1.AppColors.yellowHighlight,color:AppColors_1.AppColors.primaryBlack}}/>
|
|
268
|
+
</react_native_1.View>)}
|
|
269
|
+
</react_native_1.View>}
|
|
270
|
+
</react_native_1.View>}
|
|
973
271
|
|
|
974
272
|
|
|
975
|
-
{
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
backgroundColor: AppColors_1.AppColors.primaryLight,
|
|
979
|
-
borderRadius: 10,
|
|
980
|
-
borderWidth: 1,
|
|
981
|
-
borderColor: AppColors_1.AppColors.dividerColor,
|
|
982
|
-
overflow: 'hidden',
|
|
983
|
-
},
|
|
984
|
-
]}>
|
|
985
|
-
<react_native_1.View style={{
|
|
986
|
-
flexDirection: 'row',
|
|
987
|
-
alignItems: 'center',
|
|
988
|
-
justifyContent: 'space-between',
|
|
989
|
-
paddingHorizontal: 12,
|
|
990
|
-
paddingVertical: 9,
|
|
991
|
-
backgroundColor: AppColors_1.AppColors.grayBackground,
|
|
992
|
-
borderBottomWidth: 1,
|
|
993
|
-
borderBottomColor: AppColors_1.AppColors.dividerColor,
|
|
994
|
-
}}>
|
|
995
|
-
<react_native_1.Text style={{
|
|
996
|
-
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
997
|
-
fontSize: 11.5,
|
|
998
|
-
color: AppColors_1.AppColors.purple,
|
|
999
|
-
textTransform: 'uppercase',
|
|
1000
|
-
letterSpacing: 0.4,
|
|
1001
|
-
}}>
|
|
273
|
+
{l==="metadata"&&<react_native_1.View style={[styles_1.default.sectionContainer,{backgroundColor:AppColors_1.AppColors.primaryLight,borderRadius:10,borderWidth:1,borderColor:AppColors_1.AppColors.dividerColor,overflow:"hidden"}]}>
|
|
274
|
+
<react_native_1.View style={{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:12,paddingVertical:9,backgroundColor:AppColors_1.AppColors.grayBackground,borderBottomWidth:1,borderBottomColor:AppColors_1.AppColors.dividerColor}}>
|
|
275
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11.5,color:AppColors_1.AppColors.purple,textTransform:"uppercase",letterSpacing:.4}}>
|
|
1002
276
|
Log Properties
|
|
1003
277
|
</react_native_1.Text>
|
|
1004
|
-
<CopyButton_1.default value={JSON.stringify({
|
|
1005
|
-
id: selectedLog.id + 1,
|
|
1006
|
-
type: selectedLog.type,
|
|
1007
|
-
sourceMethod: selectedLog.sourceMethod || 'log',
|
|
1008
|
-
timestamp: selectedLog.timestamp,
|
|
1009
|
-
dateTime: (0, helpers_1.formatDateTime)(selectedLog.timestamp),
|
|
1010
|
-
caller: selectedLog.caller,
|
|
1011
|
-
triggerFile: originFrame?.fileName,
|
|
1012
|
-
triggerLine: originFrame?.lineNumber,
|
|
1013
|
-
triggerFunction: originFrame?.functionName,
|
|
1014
|
-
charCount: selectedLog.message.length,
|
|
1015
|
-
size: (0, helpers_1.getSize)(selectedLog.message),
|
|
1016
|
-
duplicates: selectedLog.duplicateCount || 1,
|
|
1017
|
-
}, null, 2)} label="Metadata JSON"/>
|
|
278
|
+
<CopyButton_1.default value={JSON.stringify({id:t.id+1,type:t.type,sourceMethod:t.sourceMethod||"log",timestamp:t.timestamp,dateTime:(0,helpers_1.formatDateTime)(t.timestamp),caller:t.caller,triggerFile:r?.fileName,triggerLine:r?.lineNumber,triggerFunction:r?.functionName,charCount:t.message.length,size:(0,helpers_1.getSize)(t.message),duplicates:t.duplicateCount||1},null,2)}label="Metadata JSON"/>
|
|
1018
279
|
</react_native_1.View>
|
|
1019
280
|
|
|
1020
|
-
<react_native_1.View style={{
|
|
1021
|
-
{[
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
{
|
|
1025
|
-
label: 'Source Method',
|
|
1026
|
-
value: `console.${selectedLog.sourceMethod || selectedLog.type || 'log'}`,
|
|
1027
|
-
},
|
|
1028
|
-
{
|
|
1029
|
-
label: 'Triggered At',
|
|
1030
|
-
value: `${(0, helpers_1.formatDateTime)(selectedLog.timestamp)} (${getRelativeTime(selectedLog.timestamp)})`,
|
|
1031
|
-
},
|
|
1032
|
-
{ label: 'Timestamp (ms)', value: String(selectedLog.timestamp) },
|
|
1033
|
-
{
|
|
1034
|
-
label: 'Trigger File',
|
|
1035
|
-
value: originFrame?.fileName || 'Unknown',
|
|
1036
|
-
},
|
|
1037
|
-
...(originFrame?.lineNumber
|
|
1038
|
-
? [
|
|
1039
|
-
{
|
|
1040
|
-
label: 'Trigger Location',
|
|
1041
|
-
value: `Line ${originFrame.lineNumber}, Col ${originFrame.columnNumber || 0}`,
|
|
1042
|
-
},
|
|
1043
|
-
]
|
|
1044
|
-
: []),
|
|
1045
|
-
...(originFrame?.functionName && originFrame.functionName !== '<anonymous>'
|
|
1046
|
-
? [
|
|
1047
|
-
{
|
|
1048
|
-
label: 'Trigger Function',
|
|
1049
|
-
value: `${originFrame.functionName}()`,
|
|
1050
|
-
},
|
|
1051
|
-
]
|
|
1052
|
-
: []),
|
|
1053
|
-
{
|
|
1054
|
-
label: 'Full Location',
|
|
1055
|
-
value: selectedLog.caller || 'Unknown',
|
|
1056
|
-
},
|
|
1057
|
-
{
|
|
1058
|
-
label: 'Character Length',
|
|
1059
|
-
value: `${selectedLog.message.length} chars`,
|
|
1060
|
-
},
|
|
1061
|
-
{
|
|
1062
|
-
label: 'Approx. Size',
|
|
1063
|
-
value: (0, helpers_1.getSize)(selectedLog.message),
|
|
1064
|
-
},
|
|
1065
|
-
{
|
|
1066
|
-
label: 'Duplicate Count',
|
|
1067
|
-
value: String(selectedLog.duplicateCount || 1),
|
|
1068
|
-
},
|
|
1069
|
-
...(hasMultipleArgs
|
|
1070
|
-
? [
|
|
1071
|
-
{
|
|
1072
|
-
label: 'Arguments Count',
|
|
1073
|
-
value: `${selectedLog.rawArgs?.length} arguments`,
|
|
1074
|
-
},
|
|
1075
|
-
]
|
|
1076
|
-
: []),
|
|
1077
|
-
].map((row, rIdx, arr) => (<react_native_1.View key={rIdx} style={{
|
|
1078
|
-
flexDirection: 'row',
|
|
1079
|
-
justifyContent: 'space-between',
|
|
1080
|
-
alignItems: 'center',
|
|
1081
|
-
paddingVertical: 8,
|
|
1082
|
-
borderBottomWidth: rIdx < arr.length - 1 ? 1 : 0,
|
|
1083
|
-
borderBottomColor: AppColors_1.AppColors.grayBorderSecondary,
|
|
1084
|
-
}}>
|
|
1085
|
-
<react_native_1.Text style={{
|
|
1086
|
-
fontFamily: AppFonts_1.AppFonts.interMedium,
|
|
1087
|
-
fontSize: 11.5,
|
|
1088
|
-
color: AppColors_1.AppColors.grayTextWeak,
|
|
1089
|
-
}}>
|
|
1090
|
-
{row.label}
|
|
281
|
+
<react_native_1.View style={{paddingHorizontal:12,paddingVertical:4}}>
|
|
282
|
+
{[{label:"Log ID",value:`#${t.id+1}`},{label:"Level",value:t.type.toUpperCase()},{label:"Source Method",value:`console.${t.sourceMethod||t.type||"log"}`},{label:"Triggered At",value:`${(0,helpers_1.formatDateTime)(t.timestamp)} (${getRelativeTime(t.timestamp)})`},{label:"Timestamp (ms)",value:String(t.timestamp)},{label:"Trigger File",value:r?.fileName||"Unknown"},...r?.lineNumber?[{label:"Trigger Location",value:`Line ${r.lineNumber}, Col ${r.columnNumber||0}`}]:[],...r?.functionName&&r.functionName!=="<anonymous>"?[{label:"Trigger Function",value:`${r.functionName}()`}]:[],{label:"Full Location",value:t.caller||"Unknown"},{label:"Character Length",value:`${t.message.length} chars`},{label:"Approx. Size",value:(0,helpers_1.getSize)(t.message)},{label:"Duplicate Count",value:String(t.duplicateCount||1)},...T?[{label:"Arguments Count",value:`${t.rawArgs?.length} arguments`}]:[]].map((e,n,c)=><react_native_1.View key={n}style={{flexDirection:"row",justifyContent:"space-between",alignItems:"center",paddingVertical:8,borderBottomWidth:n<c.length-1?1:0,borderBottomColor:AppColors_1.AppColors.grayBorderSecondary}}>
|
|
283
|
+
<react_native_1.Text style={{fontFamily:AppFonts_1.AppFonts.interMedium,fontSize:11.5,color:AppColors_1.AppColors.grayTextWeak}}>
|
|
284
|
+
{e.label}
|
|
1091
285
|
</react_native_1.Text>
|
|
1092
|
-
<react_native_1.Text selectable style={{
|
|
1093
|
-
|
|
1094
|
-
fontSize: 11.5,
|
|
1095
|
-
color: AppColors_1.AppColors.primaryBlack,
|
|
1096
|
-
maxWidth: '60%',
|
|
1097
|
-
textAlign: 'right',
|
|
1098
|
-
}} numberOfLines={2}>
|
|
1099
|
-
{row.value}
|
|
286
|
+
<react_native_1.Text selectable style={{fontFamily:AppFonts_1.AppFonts.interBold,fontSize:11.5,color:AppColors_1.AppColors.primaryBlack,maxWidth:"60%",textAlign:"right"}}numberOfLines={2}>
|
|
287
|
+
{e.value}
|
|
1100
288
|
</react_native_1.Text>
|
|
1101
|
-
</react_native_1.View>)
|
|
289
|
+
</react_native_1.View>)}
|
|
1102
290
|
</react_native_1.View>
|
|
1103
|
-
</react_native_1.View>
|
|
291
|
+
</react_native_1.View>}
|
|
1104
292
|
</react_native_1.ScrollView>
|
|
1105
|
-
</react_native_1.View>);
|
|
1106
|
-
});
|
|
1107
|
-
const detailStyles = react_native_1.StyleSheet.create({
|
|
1108
|
-
metaDot: {
|
|
1109
|
-
fontSize: 10,
|
|
1110
|
-
color: AppColors_1.AppColors.grayTextWeak,
|
|
1111
|
-
opacity: 0.7,
|
|
1112
|
-
},
|
|
1113
|
-
tabsHeaderWrap: {
|
|
1114
|
-
paddingHorizontal: 12,
|
|
1115
|
-
paddingTop: 8,
|
|
1116
|
-
paddingBottom: 4,
|
|
1117
|
-
},
|
|
1118
|
-
});
|
|
1119
|
-
exports.default = LogDetail;
|
|
293
|
+
</react_native_1.View>}),detailStyles=react_native_1.StyleSheet.create({metaDot:{fontSize:10,color:AppColors_1.AppColors.grayTextWeak,opacity:.7},tabsHeaderWrap:{paddingHorizontal:12,paddingTop:8,paddingBottom:4}});exports.default=LogDetail;
|