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,584 +1,112 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import { getStatusColor, getDurationColor, formatDateTime, getSize, getPath, getBaseUrl, } from '../helpers';
|
|
7
|
-
import { CalendarIcon, ClockIcon, SizeIcon, CircleCheckIcon, CircleAlertIcon, CircleXIcon, RepeatIcon, PinIcon, } from './NetworkIcons';
|
|
8
|
-
import { AppFonts } from '../styles/AppFonts';
|
|
9
|
-
import HighlightText from './HighlightText';
|
|
10
|
-
import TouchableScale from './TouchableScale';
|
|
11
|
-
import { useTranslation } from '../i18n';
|
|
12
|
-
const LogCard = React.memo(function LogCard({ item, onPress, timelineMinStart, timelineTotalRange, isNew, isSelected, onToggleSelect, searchStr, }) {
|
|
13
|
-
const { t } = useTranslation();
|
|
14
|
-
const methodColor = METHOD_COLORS[item.method] ?? METHOD_COLORS.ALL;
|
|
15
|
-
const urlParsed = useMemo(() => {
|
|
16
|
-
try {
|
|
17
|
-
const u = new URL(item.url);
|
|
18
|
-
const host = u.host;
|
|
19
|
-
const path = u.pathname + (u.search ? u.search : '');
|
|
20
|
-
const isHttps = u.protocol === 'https:';
|
|
21
|
-
return { host, path: path || '/', isHttps };
|
|
22
|
-
}
|
|
23
|
-
catch {
|
|
24
|
-
const isHttps = item.url.toLowerCase().startsWith('https:');
|
|
25
|
-
const path = getPath(item.url);
|
|
26
|
-
const host = getBaseUrl(item.url).replace(/^https?:\/\//, '');
|
|
27
|
-
return { host, path: path || item.url, isHttps };
|
|
28
|
-
}
|
|
29
|
-
}, [item.url]);
|
|
30
|
-
const handleOpenUrl = (e) => {
|
|
31
|
-
e?.stopPropagation?.();
|
|
32
|
-
Alert.alert(t('common.openInBrowser') || 'Open in Browser', `${t('common.openInBrowserPrompt') || 'Are you sure you want to open this URL in your external browser?'}\n\n${item.url}`, [
|
|
33
|
-
{ text: t('common.cancel') || 'Cancel', style: 'cancel' },
|
|
34
|
-
{
|
|
35
|
-
text: t('common.open') || 'Open',
|
|
36
|
-
onPress: () => {
|
|
37
|
-
Linking.canOpenURL(item.url)
|
|
38
|
-
.then(supported => {
|
|
39
|
-
if (supported) {
|
|
40
|
-
Linking.openURL(item.url);
|
|
41
|
-
}
|
|
42
|
-
else {
|
|
43
|
-
Linking.openURL(item.url).catch(() => { });
|
|
44
|
-
}
|
|
45
|
-
})
|
|
46
|
-
.catch(() => { });
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
]);
|
|
50
|
-
};
|
|
51
|
-
const isFailed = item.status === 0 || (item.status != null && item.status >= 400);
|
|
52
|
-
const isLoading = item.status == null;
|
|
53
|
-
const statusColor = getStatusColor(item.status);
|
|
54
|
-
const durationColor = getDurationColor(item.duration);
|
|
55
|
-
const cardStatusColor = isLoading
|
|
56
|
-
? AppColors.darkOrange
|
|
57
|
-
: isFailed
|
|
58
|
-
? AppColors.errorColor
|
|
59
|
-
: AppColors.greenColor;
|
|
60
|
-
const shimmerOpacity = useRef(new Animated.Value(isNew ? 0.35 : 0)).current;
|
|
61
|
-
useEffect(() => {
|
|
62
|
-
if (isNew) {
|
|
63
|
-
Animated.timing(shimmerOpacity, {
|
|
64
|
-
toValue: 0,
|
|
65
|
-
duration: 1200,
|
|
66
|
-
useNativeDriver: false,
|
|
67
|
-
}).start();
|
|
68
|
-
}
|
|
69
|
-
}, [isNew]);
|
|
70
|
-
const getStatusText = () => {
|
|
71
|
-
if (isLoading)
|
|
72
|
-
return '...';
|
|
73
|
-
if (item.status === 0 || item.status == null) {
|
|
74
|
-
return t('network.statusFailed') || 'FAILED';
|
|
75
|
-
}
|
|
76
|
-
const num = typeof item.status === 'number' ? item.status : parseInt(String(item.status || 0), 10);
|
|
77
|
-
if (num === 200)
|
|
78
|
-
return '200 OK';
|
|
79
|
-
if (num === 201)
|
|
80
|
-
return '201 Created';
|
|
81
|
-
if (num === 204)
|
|
82
|
-
return '204 No Content';
|
|
83
|
-
if (num === 304)
|
|
84
|
-
return '304 Not Modified';
|
|
85
|
-
if (num === 400)
|
|
86
|
-
return '400 Bad Req';
|
|
87
|
-
if (num === 401)
|
|
88
|
-
return '401 Unauth';
|
|
89
|
-
if (num === 403)
|
|
90
|
-
return '403 Forbidden';
|
|
91
|
-
if (num === 404)
|
|
92
|
-
return '404 Not Found';
|
|
93
|
-
if (num === 500)
|
|
94
|
-
return '500 Error';
|
|
95
|
-
return String(item.status);
|
|
96
|
-
};
|
|
97
|
-
const renderStatusIcon = () => {
|
|
98
|
-
if (isLoading) {
|
|
99
|
-
return <ClockIcon color={AppColors.darkOrange} size={10}/>;
|
|
100
|
-
}
|
|
101
|
-
const num = typeof item.status === 'number' ? item.status : parseInt(String(item.status || 0), 10);
|
|
102
|
-
if (num >= 200 && num < 300) {
|
|
103
|
-
return <CircleCheckIcon color={AppColors.greenColor} size={10}/>;
|
|
104
|
-
}
|
|
105
|
-
if (num >= 300 && num < 400) {
|
|
106
|
-
return <RepeatIcon color={AppColors.amber700} size={10}/>;
|
|
107
|
-
}
|
|
108
|
-
if (num >= 400 && num < 500) {
|
|
109
|
-
return <CircleAlertIcon color={AppColors.darkOrange} size={10}/>;
|
|
110
|
-
}
|
|
111
|
-
return <CircleXIcon color={AppColors.errorColor} size={10}/>;
|
|
112
|
-
};
|
|
113
|
-
const triggeredAt = formatDateTime(item.startTime);
|
|
114
|
-
const isJson = item.url.split('?')[0].toLowerCase().endsWith('.json');
|
|
115
|
-
return (<View style={styles.container}>
|
|
116
|
-
<TouchableScale onPress={onPress} style={[
|
|
117
|
-
styles.card,
|
|
118
|
-
{
|
|
119
|
-
borderLeftWidth: 3.5,
|
|
120
|
-
borderLeftColor: cardStatusColor,
|
|
121
|
-
backgroundColor: isFailed ? '#FFF8F8' : AppColors.white,
|
|
122
|
-
},
|
|
123
|
-
]}>
|
|
124
|
-
<View style={styles.cardBody}>
|
|
1
|
+
import oe,{useEffect as te,useRef as le,useMemo as j}from"react";import{Alert as ae,Animated as W,Linking as D,View as C,Pressable as A,Text as T,StyleSheet as U}from"react-native";import Ce,{Path as Te}from"react-native-svg";import{AppColors as e}from"../styles/AppColors";import{METHOD_COLORS as E}from"../constants";import{getStatusColor as Be,getDurationColor as Se,formatDateTime as Re,getSize as ze,getPath as Ve,getBaseUrl as He}from"../helpers";import{CalendarIcon as Le,ClockIcon as N,SizeIcon as $e,CircleCheckIcon as Ie,CircleAlertIcon as We,CircleXIcon as De,RepeatIcon as Fe,PinIcon as Oe}from"./NetworkIcons";import{AppFonts as B}from"../styles/AppFonts";import Pe from"./HighlightText";import Me from"./TouchableScale";import{useTranslation as je}from"../i18n";const Ae=oe.memo(function({item:r,onPress:_,timelineMinStart:Ee,timelineTotalRange:qe,isNew:$,isSelected:F,onToggleSelect:G,searchStr:J}){const{t:H}=je(),O=E[r.method]??E.ALL,S=j(()=>{try{const t=new URL(r.url),V=t.host,M=t.pathname+(t.search?t.search:""),re=t.protocol==="https:";return{host:V,path:M||"/",isHttps:re}}catch{const t=r.url.toLowerCase().startsWith("https:"),V=Ve(r.url);return{host:He(r.url).replace(/^https?:\/\//,""),path:V||r.url,isHttps:t}}},[r.url]),P=j(()=>{if(!r.caller||r.caller==="Unknown")return null;const t=r.caller.split(/[\/\\]/);return(t[t.length-1]||r.caller).replace(/\?.*$/,"").replace(/^[a-zA-Z0-9_$]+@/,"")},[r.caller]),K=t=>{t?.stopPropagation?.(),ae.alert(H("common.openInBrowser")||"Open in Browser",`${H("common.openInBrowserPrompt")||"Are you sure you want to open this URL in your external browser?"}
|
|
2
|
+
|
|
3
|
+
${r.url}`,[{text:H("common.cancel")||"Cancel",style:"cancel"},{text:H("common.open")||"Open",onPress:()=>{D.canOpenURL(r.url).then(V=>{V?D.openURL(r.url):D.openURL(r.url).catch(()=>{})}).catch(()=>{})}}])},R=r.status===0||r.status!=null&&r.status>=400,z=r.status==null,I=Be(r.status),L=Se(r.duration),Q=z?e.darkOrange:R?e.errorColor:e.greenColor,v=le(new W.Value($?.35:0)).current;te(()=>{$&&W.timing(v,{toValue:0,duration:1200,useNativeDriver:!1}).start()},[$]);const X=()=>{if(z)return"...";if(r.status===0||r.status==null)return H("network.statusFailed")||"FAILED";const t=typeof r.status=="number"?r.status:parseInt(String(r.status||0),10);return t===200?"200 OK":t===201?"201 Created":t===204?"204 No Content":t===304?"304 Not Modified":t===400?"400 Bad Req":t===401?"401 Unauth":t===403?"403 Forbidden":t===404?"404 Not Found":t===500?"500 Error":String(r.status)},Z=()=>{if(z)return<N color={e.darkOrange}size={10}/>;const t=typeof r.status=="number"?r.status:parseInt(String(r.status||0),10);return t>=200&&t<300?<Ie color={e.greenColor}size={10}/>:t>=300&&t<400?<Fe color={e.amber700}size={10}/>:t>=400&&t<500?<We color={e.darkOrange}size={10}/>:<De color={e.errorColor}size={10}/>},Y=Re(r.startTime),ee=r.url.split("?")[0].toLowerCase().endsWith(".json");return<C style={o.container}>
|
|
4
|
+
<Me onPress={_}style={[o.card,{borderLeftWidth:3.5,borderLeftColor:Q,backgroundColor:R?e.errorCardBg:e.white}]}>
|
|
5
|
+
<C style={o.cardBody}>
|
|
125
6
|
|
|
126
|
-
<
|
|
127
|
-
<
|
|
128
|
-
<
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
<Path d="M20 6L9 17l-5-5" stroke={AppColors.white} strokeWidth="4" strokeLinecap="round" strokeLinejoin="round"/>
|
|
134
|
-
</Svg>)}
|
|
135
|
-
</Pressable>
|
|
7
|
+
<C style={o.cardHeaderRow}>
|
|
8
|
+
<C style={o.cardHeaderLeft}>
|
|
9
|
+
<A onPress={()=>G(r.id)}hitSlop={12}style={[o.smallCheckbox,F&&o.smallCheckboxChecked]}>
|
|
10
|
+
{F&&<Ce width={9}height={9}viewBox="0 0 24 24"fill="none">
|
|
11
|
+
<Te d="M20 6L9 17l-5-5"stroke={e.white}strokeWidth="4"strokeLinecap="round"strokeLinejoin="round"/>
|
|
12
|
+
</Ce>}
|
|
13
|
+
</A>
|
|
136
14
|
|
|
137
|
-
<
|
|
15
|
+
<T style={o.serialNumber}>#{r.id+1}</T>
|
|
138
16
|
|
|
139
|
-
<
|
|
140
|
-
<
|
|
141
|
-
{
|
|
142
|
-
</
|
|
143
|
-
</
|
|
17
|
+
<C style={[o.methodBadge,{backgroundColor:O}]}>
|
|
18
|
+
<T style={o.methodBadgeText}>
|
|
19
|
+
{r.method}
|
|
20
|
+
</T>
|
|
21
|
+
</C>
|
|
144
22
|
|
|
145
|
-
{
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
: item.client === 'apollo' || item.client === 'graphql'
|
|
151
|
-
? `${AppColors.pink500}14`
|
|
152
|
-
: item.client === 'xhr'
|
|
153
|
-
? `${AppColors.amber500}14`
|
|
154
|
-
: `${AppColors.sky500}14`,
|
|
155
|
-
borderColor: item.client === 'axios'
|
|
156
|
-
? `${AppColors.purple}30`
|
|
157
|
-
: item.client === 'apollo' || item.client === 'graphql'
|
|
158
|
-
? `${AppColors.pink500}30`
|
|
159
|
-
: item.client === 'xhr'
|
|
160
|
-
? `${AppColors.amber500}30`
|
|
161
|
-
: `${AppColors.sky500}30`,
|
|
162
|
-
},
|
|
163
|
-
]}>
|
|
164
|
-
<Text style={[
|
|
165
|
-
styles.chipText,
|
|
166
|
-
{
|
|
167
|
-
color: item.client === 'axios'
|
|
168
|
-
? AppColors.purple
|
|
169
|
-
: item.client === 'apollo' || item.client === 'graphql'
|
|
170
|
-
? AppColors.pink500
|
|
171
|
-
: item.client === 'xhr'
|
|
172
|
-
? AppColors.amber700
|
|
173
|
-
: AppColors.sky600,
|
|
174
|
-
},
|
|
175
|
-
]}>
|
|
176
|
-
{item.client.toUpperCase()}
|
|
177
|
-
</Text>
|
|
178
|
-
</View>)}
|
|
23
|
+
{r.client&&<C style={[o.chip,{backgroundColor:r.client==="axios"?`${e.purple}14`:r.client==="apollo"||r.client==="graphql"?`${e.pink500}14`:r.client==="xhr"?`${e.amber500}14`:`${e.sky500}14`,borderColor:r.client==="axios"?`${e.purple}30`:r.client==="apollo"||r.client==="graphql"?`${e.pink500}30`:r.client==="xhr"?`${e.amber500}30`:`${e.sky500}30`}]}>
|
|
24
|
+
<T style={[o.chipText,{color:r.client==="axios"?e.purple:r.client==="apollo"||r.client==="graphql"?e.pink500:r.client==="xhr"?e.amber700:e.sky600}]}>
|
|
25
|
+
{r.client.toUpperCase()}
|
|
26
|
+
</T>
|
|
27
|
+
</C>}
|
|
179
28
|
|
|
180
29
|
|
|
181
|
-
{(
|
|
182
|
-
|
|
183
|
-
item.client === 'graphql') && (<View style={[
|
|
184
|
-
styles.chip,
|
|
185
|
-
{
|
|
186
|
-
backgroundColor: AppColors.roseBg,
|
|
187
|
-
borderColor: AppColors.roseBorder,
|
|
188
|
-
},
|
|
189
|
-
]}>
|
|
190
|
-
<Text style={[
|
|
191
|
-
styles.chipText,
|
|
192
|
-
{ color: AppColors.pink600 },
|
|
193
|
-
]}>
|
|
30
|
+
{(r.url.toLowerCase().includes("graphql")||r.client==="apollo"||r.client==="graphql")&&<C style={[o.chip,{backgroundColor:e.roseBg,borderColor:e.roseBorder}]}>
|
|
31
|
+
<T style={[o.chipText,{color:e.pink600}]}>
|
|
194
32
|
GQL
|
|
195
|
-
</
|
|
196
|
-
</
|
|
197
|
-
</
|
|
33
|
+
</T>
|
|
34
|
+
</C>}
|
|
35
|
+
</C>
|
|
198
36
|
|
|
199
|
-
<
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
: `${statusColor}14`,
|
|
207
|
-
borderColor: isFailed
|
|
208
|
-
? `${AppColors.errorColor}33`
|
|
209
|
-
: isLoading
|
|
210
|
-
? `${AppColors.darkOrange}33`
|
|
211
|
-
: `${statusColor}33`,
|
|
212
|
-
},
|
|
213
|
-
]}>
|
|
214
|
-
{renderStatusIcon()}
|
|
215
|
-
<Text style={[
|
|
216
|
-
styles.statusPillText,
|
|
217
|
-
{
|
|
218
|
-
color: isFailed
|
|
219
|
-
? AppColors.errorColor
|
|
220
|
-
: isLoading
|
|
221
|
-
? AppColors.darkOrange
|
|
222
|
-
: statusColor,
|
|
223
|
-
},
|
|
224
|
-
]}>
|
|
225
|
-
{getStatusText()}
|
|
226
|
-
</Text>
|
|
227
|
-
</View>
|
|
228
|
-
</View>
|
|
37
|
+
<C style={[o.statusPill,{backgroundColor:R?`${e.errorColor}14`:z?`${e.darkOrange}14`:`${I}14`,borderColor:R?`${e.errorColor}33`:z?`${e.darkOrange}33`:`${I}33`}]}>
|
|
38
|
+
{Z()}
|
|
39
|
+
<T style={[o.statusPillText,{color:R?e.errorColor:z?e.darkOrange:I}]}>
|
|
40
|
+
{X()}
|
|
41
|
+
</T>
|
|
42
|
+
</C>
|
|
43
|
+
</C>
|
|
229
44
|
|
|
230
45
|
|
|
231
|
-
<
|
|
232
|
-
<
|
|
233
|
-
<
|
|
234
|
-
<
|
|
235
|
-
{
|
|
236
|
-
<
|
|
237
|
-
</
|
|
238
|
-
{
|
|
239
|
-
<
|
|
240
|
-
</
|
|
241
|
-
</
|
|
242
|
-
</
|
|
46
|
+
<A onPress={K}hitSlop={6}style={o.urlBox}>
|
|
47
|
+
<C style={o.urlMainRow}>
|
|
48
|
+
<Pe text={S.path}search={J}style={o.pathText}highlightStyle={o.highlight}numberOfLines={2}ellipsizeMode="middle"/>
|
|
49
|
+
<C style={o.urlBadgeRow}>
|
|
50
|
+
{ee&&<C style={o.jsonBadge}>
|
|
51
|
+
<T style={o.jsonBadgeText}>.json</T>
|
|
52
|
+
</C>}
|
|
53
|
+
{r.duplicateCount!=null&&r.duplicateCount>1&&<C style={o.dupBadge}>
|
|
54
|
+
<T style={o.dupBadgeText}>×{r.duplicateCount}</T>
|
|
55
|
+
</C>}
|
|
56
|
+
</C>
|
|
57
|
+
</C>
|
|
243
58
|
|
|
244
|
-
{
|
|
245
|
-
<
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
]}>
|
|
256
|
-
<Text style={[
|
|
257
|
-
styles.protoBadgeText,
|
|
258
|
-
{
|
|
259
|
-
color: urlParsed.isHttps
|
|
260
|
-
? AppColors.emerald600
|
|
261
|
-
: AppColors.amber700,
|
|
262
|
-
},
|
|
263
|
-
]}>
|
|
264
|
-
{urlParsed.isHttps ? 'HTTPS' : 'HTTP'}
|
|
265
|
-
</Text>
|
|
266
|
-
</View>
|
|
267
|
-
<Text style={styles.hostText} numberOfLines={1} ellipsizeMode="tail">
|
|
268
|
-
{urlParsed.host}
|
|
269
|
-
</Text>
|
|
270
|
-
</View>) : null}
|
|
271
|
-
</Pressable>
|
|
59
|
+
{S.host?<C style={o.hostRow}>
|
|
60
|
+
<C style={[o.protoBadge,{backgroundColor:S.isHttps?`${e.emerald600}12`:`${e.amber600}12`,borderColor:S.isHttps?`${e.emerald600}2B`:`${e.amber600}2B`}]}>
|
|
61
|
+
<T style={[o.protoBadgeText,{color:S.isHttps?e.emerald600:e.amber700}]}>
|
|
62
|
+
{S.isHttps?"HTTPS":"HTTP"}
|
|
63
|
+
</T>
|
|
64
|
+
</C>
|
|
65
|
+
<T style={o.hostText}numberOfLines={1}ellipsizeMode="tail">
|
|
66
|
+
{S.host}
|
|
67
|
+
</T>
|
|
68
|
+
</C>:null}
|
|
69
|
+
</A>
|
|
272
70
|
|
|
273
71
|
|
|
274
|
-
<
|
|
275
|
-
<
|
|
276
|
-
<
|
|
277
|
-
<
|
|
278
|
-
<
|
|
279
|
-
</
|
|
72
|
+
<C style={o.cardFooterRow}>
|
|
73
|
+
<C style={o.footerLeft}>
|
|
74
|
+
<C style={o.cardDateRow}>
|
|
75
|
+
<Le color={e.grayTextWeak}size={10}/>
|
|
76
|
+
<T style={o.cardDateText}>{Y}</T>
|
|
77
|
+
</C>
|
|
280
78
|
|
|
281
|
-
{
|
|
282
|
-
<
|
|
283
|
-
<
|
|
284
|
-
{
|
|
285
|
-
</
|
|
286
|
-
</
|
|
287
|
-
</
|
|
79
|
+
{P&&<C style={o.callerChip}>
|
|
80
|
+
<Oe color={e.sky600}size={8.5}/>
|
|
81
|
+
<T style={o.callerChipText}numberOfLines={1}ellipsizeMode="middle">
|
|
82
|
+
{P}
|
|
83
|
+
</T>
|
|
84
|
+
</C>}
|
|
85
|
+
</C>
|
|
288
86
|
|
|
289
|
-
<
|
|
290
|
-
{
|
|
291
|
-
|
|
292
|
-
<
|
|
293
|
-
{
|
|
294
|
-
</
|
|
295
|
-
</
|
|
87
|
+
<C style={o.footerRight}>
|
|
88
|
+
{r.response!=null&&<C style={o.metaStatChip}>
|
|
89
|
+
<$e color={e.purple}size={9}/>
|
|
90
|
+
<T style={o.metaStatText}>
|
|
91
|
+
{ze(r.response)}
|
|
92
|
+
</T>
|
|
93
|
+
</C>}
|
|
296
94
|
|
|
297
|
-
{
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
<Text style={[styles.metaStatText, { color: durationColor }]}>
|
|
306
|
-
{item.duration}ms
|
|
307
|
-
</Text>
|
|
308
|
-
</View>)}
|
|
309
|
-
</View>
|
|
310
|
-
</View>
|
|
95
|
+
{r.duration!=null&&!R&&<C style={[o.metaStatChip,{backgroundColor:`${L}12`,borderColor:`${L}2E`}]}>
|
|
96
|
+
<N color={L}size={9}/>
|
|
97
|
+
<T style={[o.metaStatText,{color:L}]}>
|
|
98
|
+
{r.duration}ms
|
|
99
|
+
</T>
|
|
100
|
+
</C>}
|
|
101
|
+
</C>
|
|
102
|
+
</C>
|
|
311
103
|
|
|
312
104
|
|
|
313
|
-
{typeof
|
|
314
|
-
<
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
width: `${Math.min(100, Math.max(6, (item.duration / 1200) * 100))}%`,
|
|
318
|
-
backgroundColor: durationColor,
|
|
319
|
-
},
|
|
320
|
-
]}/>
|
|
321
|
-
</View>)}
|
|
322
|
-
</View>
|
|
105
|
+
{typeof r.duration=="number"&&r.duration>0&&!R&&<C style={o.waterfallContainer}>
|
|
106
|
+
<C style={[o.waterfallBar,{width:`${Math.min(100,Math.max(6,r.duration/1200*100))}%`,backgroundColor:L}]}/>
|
|
107
|
+
</C>}
|
|
108
|
+
</C>
|
|
323
109
|
|
|
324
|
-
{
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
]}/>)}
|
|
328
|
-
</TouchableScale>
|
|
329
|
-
</View>);
|
|
330
|
-
});
|
|
331
|
-
const styles = StyleSheet.create({
|
|
332
|
-
container: {
|
|
333
|
-
paddingHorizontal: 10,
|
|
334
|
-
paddingVertical: 3.5,
|
|
335
|
-
},
|
|
336
|
-
card: {
|
|
337
|
-
alignSelf: 'stretch',
|
|
338
|
-
borderRadius: 11,
|
|
339
|
-
overflow: 'hidden',
|
|
340
|
-
shadowColor: AppColors.black,
|
|
341
|
-
shadowOffset: { width: 0, height: 1.5 },
|
|
342
|
-
shadowOpacity: 0.04,
|
|
343
|
-
shadowRadius: 3,
|
|
344
|
-
elevation: 1.5,
|
|
345
|
-
borderWidth: 1,
|
|
346
|
-
borderColor: AppColors.grayBorderSecondary,
|
|
347
|
-
backgroundColor: AppColors.white,
|
|
348
|
-
},
|
|
349
|
-
cardBody: {
|
|
350
|
-
paddingHorizontal: 12,
|
|
351
|
-
paddingTop: 9,
|
|
352
|
-
paddingBottom: 8,
|
|
353
|
-
},
|
|
354
|
-
cardHeaderRow: {
|
|
355
|
-
flexDirection: 'row',
|
|
356
|
-
alignItems: 'center',
|
|
357
|
-
justifyContent: 'space-between',
|
|
358
|
-
marginBottom: 6,
|
|
359
|
-
minHeight: 22,
|
|
360
|
-
},
|
|
361
|
-
cardHeaderLeft: {
|
|
362
|
-
flexDirection: 'row',
|
|
363
|
-
alignItems: 'center',
|
|
364
|
-
flex: 1,
|
|
365
|
-
marginRight: 6,
|
|
366
|
-
gap: 5.5,
|
|
367
|
-
minWidth: 0,
|
|
368
|
-
flexWrap: 'wrap',
|
|
369
|
-
},
|
|
370
|
-
smallCheckbox: {
|
|
371
|
-
width: 15,
|
|
372
|
-
height: 15,
|
|
373
|
-
borderRadius: 4,
|
|
374
|
-
borderWidth: 1.6,
|
|
375
|
-
borderColor: AppColors.grayTextWeak,
|
|
376
|
-
alignItems: 'center',
|
|
377
|
-
justifyContent: 'center',
|
|
378
|
-
backgroundColor: AppColors.white,
|
|
379
|
-
},
|
|
380
|
-
smallCheckboxChecked: {
|
|
381
|
-
backgroundColor: AppColors.purple,
|
|
382
|
-
borderColor: AppColors.purple,
|
|
383
|
-
},
|
|
384
|
-
serialNumber: {
|
|
385
|
-
fontFamily: AppFonts.interBold,
|
|
386
|
-
color: AppColors.grayTextWeak,
|
|
387
|
-
fontSize: 10,
|
|
388
|
-
},
|
|
389
|
-
methodBadge: {
|
|
390
|
-
paddingHorizontal: 6.5,
|
|
391
|
-
paddingVertical: 2,
|
|
392
|
-
borderRadius: 5,
|
|
393
|
-
alignItems: 'center',
|
|
394
|
-
justifyContent: 'center',
|
|
395
|
-
},
|
|
396
|
-
methodBadgeText: {
|
|
397
|
-
fontFamily: AppFonts.interBold,
|
|
398
|
-
fontSize: 9.5,
|
|
399
|
-
letterSpacing: 0.5,
|
|
400
|
-
color: AppColors.white,
|
|
401
|
-
},
|
|
402
|
-
chip: {
|
|
403
|
-
paddingHorizontal: 5,
|
|
404
|
-
paddingVertical: 1.5,
|
|
405
|
-
borderRadius: 4,
|
|
406
|
-
borderWidth: 1,
|
|
407
|
-
},
|
|
408
|
-
chipText: {
|
|
409
|
-
fontFamily: AppFonts.interBold,
|
|
410
|
-
fontSize: 8.5,
|
|
411
|
-
},
|
|
412
|
-
statusPill: {
|
|
413
|
-
flexDirection: 'row',
|
|
414
|
-
alignItems: 'center',
|
|
415
|
-
gap: 4,
|
|
416
|
-
paddingHorizontal: 7,
|
|
417
|
-
paddingVertical: 2.5,
|
|
418
|
-
borderRadius: 6,
|
|
419
|
-
borderWidth: 1,
|
|
420
|
-
flexShrink: 0,
|
|
421
|
-
},
|
|
422
|
-
statusPillText: {
|
|
423
|
-
fontFamily: AppFonts.interBold,
|
|
424
|
-
fontSize: 9.5,
|
|
425
|
-
},
|
|
426
|
-
urlBox: {
|
|
427
|
-
backgroundColor: AppColors.grayBackground,
|
|
428
|
-
borderRadius: 8,
|
|
429
|
-
borderWidth: 1,
|
|
430
|
-
borderColor: AppColors.dividerColor,
|
|
431
|
-
paddingHorizontal: 9,
|
|
432
|
-
paddingVertical: 6,
|
|
433
|
-
marginVertical: 4,
|
|
434
|
-
gap: 4,
|
|
435
|
-
},
|
|
436
|
-
urlMainRow: {
|
|
437
|
-
flexDirection: 'row',
|
|
438
|
-
alignItems: 'flex-start',
|
|
439
|
-
justifyContent: 'space-between',
|
|
440
|
-
gap: 6,
|
|
441
|
-
},
|
|
442
|
-
pathText: {
|
|
443
|
-
fontFamily: AppFonts.interBold,
|
|
444
|
-
fontSize: 12,
|
|
445
|
-
lineHeight: 16.5,
|
|
446
|
-
color: AppColors.primaryBlack,
|
|
447
|
-
flex: 1,
|
|
448
|
-
},
|
|
449
|
-
urlBadgeRow: {
|
|
450
|
-
flexDirection: 'row',
|
|
451
|
-
alignItems: 'center',
|
|
452
|
-
gap: 4,
|
|
453
|
-
flexShrink: 0,
|
|
454
|
-
},
|
|
455
|
-
jsonBadge: {
|
|
456
|
-
backgroundColor: `${AppColors.darkOrange}14`,
|
|
457
|
-
borderColor: `${AppColors.darkOrange}2E`,
|
|
458
|
-
borderWidth: 1,
|
|
459
|
-
paddingHorizontal: 4,
|
|
460
|
-
paddingVertical: 1,
|
|
461
|
-
borderRadius: 3,
|
|
462
|
-
},
|
|
463
|
-
jsonBadgeText: {
|
|
464
|
-
fontFamily: AppFonts.interBold,
|
|
465
|
-
fontSize: 8.5,
|
|
466
|
-
color: AppColors.darkOrange,
|
|
467
|
-
},
|
|
468
|
-
dupBadge: {
|
|
469
|
-
backgroundColor: `${AppColors.purple}14`,
|
|
470
|
-
borderColor: `${AppColors.purple}2E`,
|
|
471
|
-
borderWidth: 1,
|
|
472
|
-
paddingHorizontal: 4,
|
|
473
|
-
paddingVertical: 1,
|
|
474
|
-
borderRadius: 3,
|
|
475
|
-
},
|
|
476
|
-
dupBadgeText: {
|
|
477
|
-
fontFamily: AppFonts.interBold,
|
|
478
|
-
fontSize: 8.5,
|
|
479
|
-
color: AppColors.purple,
|
|
480
|
-
},
|
|
481
|
-
hostRow: {
|
|
482
|
-
flexDirection: 'row',
|
|
483
|
-
alignItems: 'center',
|
|
484
|
-
gap: 5,
|
|
485
|
-
},
|
|
486
|
-
protoBadge: {
|
|
487
|
-
paddingHorizontal: 4,
|
|
488
|
-
paddingVertical: 1,
|
|
489
|
-
borderRadius: 3,
|
|
490
|
-
borderWidth: 1,
|
|
491
|
-
},
|
|
492
|
-
protoBadgeText: {
|
|
493
|
-
fontFamily: AppFonts.interBold,
|
|
494
|
-
fontSize: 7.5,
|
|
495
|
-
},
|
|
496
|
-
hostText: {
|
|
497
|
-
fontFamily: AppFonts.interMedium,
|
|
498
|
-
fontSize: 10.5,
|
|
499
|
-
color: AppColors.grayText,
|
|
500
|
-
flex: 1,
|
|
501
|
-
},
|
|
502
|
-
highlight: {
|
|
503
|
-
backgroundColor: AppColors.yellowHighlight,
|
|
504
|
-
color: AppColors.primaryBlack,
|
|
505
|
-
borderRadius: 2,
|
|
506
|
-
},
|
|
507
|
-
cardFooterRow: {
|
|
508
|
-
flexDirection: 'row',
|
|
509
|
-
alignItems: 'center',
|
|
510
|
-
justifyContent: 'space-between',
|
|
511
|
-
marginTop: 4,
|
|
512
|
-
gap: 6,
|
|
513
|
-
},
|
|
514
|
-
footerLeft: {
|
|
515
|
-
flexDirection: 'row',
|
|
516
|
-
alignItems: 'center',
|
|
517
|
-
gap: 6,
|
|
518
|
-
flex: 1,
|
|
519
|
-
minWidth: 0,
|
|
520
|
-
},
|
|
521
|
-
footerRight: {
|
|
522
|
-
flexDirection: 'row',
|
|
523
|
-
alignItems: 'center',
|
|
524
|
-
gap: 5,
|
|
525
|
-
flexShrink: 0,
|
|
526
|
-
},
|
|
527
|
-
cardDateRow: {
|
|
528
|
-
flexDirection: 'row',
|
|
529
|
-
alignItems: 'center',
|
|
530
|
-
gap: 3.5,
|
|
531
|
-
},
|
|
532
|
-
cardDateText: {
|
|
533
|
-
fontFamily: AppFonts.interRegular,
|
|
534
|
-
fontSize: 9.5,
|
|
535
|
-
color: AppColors.grayTextWeak,
|
|
536
|
-
},
|
|
537
|
-
callerChip: {
|
|
538
|
-
flexDirection: 'row',
|
|
539
|
-
alignItems: 'center',
|
|
540
|
-
gap: 3,
|
|
541
|
-
backgroundColor: `${AppColors.sky600}10`,
|
|
542
|
-
borderColor: `${AppColors.sky600}2B`,
|
|
543
|
-
borderWidth: 1,
|
|
544
|
-
paddingHorizontal: 5,
|
|
545
|
-
paddingVertical: 1,
|
|
546
|
-
borderRadius: 4,
|
|
547
|
-
flexShrink: 1,
|
|
548
|
-
minWidth: 0,
|
|
549
|
-
},
|
|
550
|
-
callerChipText: {
|
|
551
|
-
color: AppColors.sky600,
|
|
552
|
-
fontSize: 8.5,
|
|
553
|
-
fontFamily: AppFonts.interBold,
|
|
554
|
-
},
|
|
555
|
-
metaStatChip: {
|
|
556
|
-
flexDirection: 'row',
|
|
557
|
-
alignItems: 'center',
|
|
558
|
-
gap: 3,
|
|
559
|
-
backgroundColor: `${AppColors.purple}10`,
|
|
560
|
-
borderColor: `${AppColors.purple}28`,
|
|
561
|
-
borderWidth: 1,
|
|
562
|
-
paddingHorizontal: 5,
|
|
563
|
-
paddingVertical: 1.5,
|
|
564
|
-
borderRadius: 4,
|
|
565
|
-
},
|
|
566
|
-
metaStatText: {
|
|
567
|
-
fontFamily: AppFonts.interBold,
|
|
568
|
-
color: AppColors.purple,
|
|
569
|
-
fontSize: 9,
|
|
570
|
-
},
|
|
571
|
-
waterfallContainer: {
|
|
572
|
-
height: 2.5,
|
|
573
|
-
width: '100%',
|
|
574
|
-
backgroundColor: AppColors.grayBorderSecondary,
|
|
575
|
-
borderRadius: 1.5,
|
|
576
|
-
overflow: 'hidden',
|
|
577
|
-
marginTop: 6,
|
|
578
|
-
},
|
|
579
|
-
waterfallBar: {
|
|
580
|
-
height: '100%',
|
|
581
|
-
borderRadius: 1.5,
|
|
582
|
-
},
|
|
583
|
-
});
|
|
584
|
-
export default LogCard;
|
|
110
|
+
{$&&<W.View pointerEvents="none"style={[U.absoluteFill,{backgroundColor:O,opacity:v}]}/>}
|
|
111
|
+
</Me>
|
|
112
|
+
</C>}),o=U.create({container:{paddingHorizontal:8,paddingVertical:3},card:{alignSelf:"stretch",borderRadius:10,overflow:"hidden",borderWidth:1,borderColor:e.dividerColor,shadowColor:e.shadowColorString},cardBody:{paddingHorizontal:11,paddingTop:8,paddingBottom:7},cardHeaderRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginBottom:5,minHeight:20},cardHeaderLeft:{flexDirection:"row",alignItems:"center",flex:1,marginRight:6,gap:5,minWidth:0,flexWrap:"wrap"},smallCheckbox:{width:14,height:14,borderRadius:3.5,borderWidth:1.5,borderColor:e.grayTextWeak,alignItems:"center",justifyContent:"center",backgroundColor:e.white},smallCheckboxChecked:{backgroundColor:e.purple,borderColor:e.purple},serialNumber:{fontFamily:B.interBold,color:e.grayTextWeak,fontSize:9.5},methodBadge:{paddingHorizontal:6,paddingVertical:2,borderRadius:5,alignItems:"center",justifyContent:"center"},methodBadgeText:{fontFamily:B.interBold,fontSize:9,lineHeight:11,letterSpacing:.5,color:e.white},chip:{paddingHorizontal:5,paddingVertical:1.5,borderRadius:4,borderWidth:1},chipText:{fontFamily:B.interBold,fontSize:8.5,lineHeight:11},statusPill:{flexDirection:"row",alignItems:"center",gap:3.5,paddingHorizontal:6.5,paddingVertical:2,borderRadius:6,borderWidth:1,flexShrink:0},statusPillText:{fontFamily:B.interBold,fontSize:9.5,lineHeight:12},urlBox:{backgroundColor:e.grayBackground,borderRadius:7,borderWidth:1,borderColor:e.dividerColor,paddingHorizontal:8,paddingVertical:5,marginVertical:3,gap:3},urlMainRow:{flexDirection:"row",alignItems:"flex-start",justifyContent:"space-between",gap:6},pathText:{fontFamily:B.interBold,fontSize:12,lineHeight:16,color:e.primaryBlack,flex:1},urlBadgeRow:{flexDirection:"row",alignItems:"center",gap:4,flexShrink:0},jsonBadge:{backgroundColor:`${e.darkOrange}14`,borderColor:`${e.darkOrange}2E`,borderWidth:1,paddingHorizontal:4,paddingVertical:1,borderRadius:3},jsonBadgeText:{fontFamily:B.interBold,fontSize:8.5,color:e.darkOrange},dupBadge:{backgroundColor:`${e.purple}14`,borderColor:`${e.purple}2E`,borderWidth:1,paddingHorizontal:4,paddingVertical:1,borderRadius:3},dupBadgeText:{fontFamily:B.interBold,fontSize:8.5,color:e.purple},hostRow:{flexDirection:"row",alignItems:"center",gap:4.5},protoBadge:{paddingHorizontal:4,paddingVertical:1,borderRadius:3,borderWidth:1},protoBadgeText:{fontFamily:B.interBold,fontSize:7.5,lineHeight:9},hostText:{fontFamily:B.interMedium,fontSize:10,lineHeight:13,color:e.grayTextWeak,flex:1},highlight:{backgroundColor:e.yellowHighlight,color:e.primaryBlack,borderRadius:2},cardFooterRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginTop:3,gap:6},footerLeft:{flexDirection:"row",alignItems:"center",gap:5,flex:1,minWidth:0},footerRight:{flexDirection:"row",alignItems:"center",gap:4,flexShrink:0},cardDateRow:{flexDirection:"row",alignItems:"center",gap:3},cardDateText:{fontFamily:B.interRegular,fontSize:9.5,lineHeight:12,color:e.slate400},callerChip:{flexDirection:"row",alignItems:"center",gap:2.5,backgroundColor:e.skySoftBg,borderColor:e.skySoftBorder,borderWidth:1,paddingHorizontal:4.5,paddingVertical:1,borderRadius:4,flexShrink:1,minWidth:0},callerChipText:{color:e.skySoftText,fontSize:8.5,lineHeight:11,fontFamily:B.interBold},metaStatChip:{flexDirection:"row",alignItems:"center",gap:2.5,backgroundColor:e.violetSoftBg,borderColor:e.violetSoftBorder,borderWidth:1,paddingHorizontal:5,paddingVertical:1.5,borderRadius:4},metaStatText:{fontFamily:B.interBold,color:e.violetSoftText,fontSize:9,lineHeight:11},waterfallContainer:{height:2,width:"100%",backgroundColor:e.graySurface,borderRadius:1,overflow:"hidden",marginTop:5},waterfallBar:{height:"100%",borderRadius:1}});export default Ae;
|