react-native-inapp-inspector 2.4.0 → 2.4.2
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.ar.md +163 -0
- package/README.de.md +163 -0
- package/README.es.md +164 -0
- package/README.fr.md +163 -0
- package/README.hi.md +163 -0
- package/README.ja.md +180 -0
- package/README.ko.md +163 -0
- package/README.md +340 -243
- package/README.pt-BR.md +163 -0
- package/README.ru.md +163 -0
- package/README.zh-CN.md +387 -0
- package/android/src/main/java/com/inappinspector/NetworkInspectorModule.kt +82 -21
- package/assets/banner_dark.svg +186 -0
- package/assets/banner_light.svg +186 -0
- package/assets/icon_circle.svg +148 -0
- package/assets/icon_square.svg +369 -0
- package/assets/inapp_inspector_icon.gif +0 -0
- package/assets/inapp_inspector_icon_original.gif +0 -0
- package/assets/social_preview.png +0 -0
- package/assets/walkthrough.gif +0 -0
- package/dist/commonjs/components/AnimatedBrandOwl.d.ts +7 -0
- package/dist/commonjs/components/AnimatedBrandOwl.js +175 -0
- package/dist/commonjs/components/AppHeaderLogo.d.ts +1 -0
- package/dist/commonjs/components/AppHeaderLogo.js +7 -5
- package/dist/commonjs/components/BrandSquareIcon.d.ts +5 -0
- package/dist/commonjs/components/BrandSquareIcon.js +139 -0
- package/dist/commonjs/components/ConsoleLogCard.d.ts +2 -1
- package/dist/commonjs/components/ConsoleLogCard.js +23 -39
- package/dist/commonjs/components/Inspector/AboutModal.js +44 -54
- package/dist/commonjs/components/Inspector/AnalyticsTab.js +16 -16
- package/dist/commonjs/components/Inspector/ConfirmationModal.d.ts +13 -0
- package/dist/commonjs/components/Inspector/ConfirmationModal.js +32 -0
- package/dist/commonjs/components/Inspector/ConsoleTab.js +15 -15
- package/dist/commonjs/components/Inspector/CrashTab.js +25 -23
- package/dist/commonjs/components/Inspector/DebuggingTab.js +17 -17
- package/dist/commonjs/components/Inspector/FabLauncher.js +22 -30
- package/dist/commonjs/components/Inspector/FeatureUnderDevNotice.js +2 -2
- package/dist/commonjs/components/Inspector/LanguageSelectorModal.d.ts +15 -0
- package/dist/commonjs/components/Inspector/LanguageSelectorModal.js +90 -0
- package/dist/commonjs/components/Inspector/MainScreen.js +46 -33
- package/dist/commonjs/components/Inspector/MediaGalleryTab.js +21 -19
- package/dist/commonjs/components/Inspector/MediaPreviewModal.js +85 -101
- package/dist/commonjs/components/Inspector/NetworkTab.js +50 -50
- package/dist/commonjs/components/Inspector/NpmUpdateToast.js +1 -1
- package/dist/commonjs/components/Inspector/PushCard.d.ts +3 -2
- package/dist/commonjs/components/Inspector/PushCard.js +5 -4
- package/dist/commonjs/components/Inspector/PushDetail.js +32 -23
- package/dist/commonjs/components/Inspector/PushTab.js +13 -13
- package/dist/commonjs/components/Inspector/ReduxDetail.js +32 -32
- package/dist/commonjs/components/Inspector/ReduxTab.js +14 -14
- package/dist/commonjs/components/Inspector/SettingsPanel.js +258 -139
- package/dist/commonjs/components/Inspector/SocketCard.d.ts +5 -0
- package/dist/commonjs/components/Inspector/SocketCard.js +116 -0
- package/dist/commonjs/components/Inspector/SocketDetail.d.ts +4 -0
- package/dist/commonjs/components/Inspector/SocketDetail.js +317 -0
- package/dist/commonjs/components/Inspector/SocketFilterModal.d.ts +13 -0
- package/dist/commonjs/components/Inspector/SocketFilterModal.js +69 -0
- package/dist/commonjs/components/Inspector/SocketTab.d.ts +3 -0
- package/dist/commonjs/components/Inspector/SocketTab.js +112 -0
- package/dist/commonjs/components/Inspector/StorageTab.js +34 -32
- package/dist/commonjs/components/Inspector/SupportModal.d.ts +7 -0
- package/dist/commonjs/components/Inspector/SupportModal.js +125 -0
- package/dist/commonjs/components/Inspector/SupportPage.d.ts +5 -0
- package/dist/commonjs/components/Inspector/SupportPage.js +227 -0
- package/dist/commonjs/components/Inspector/TabBar.js +24 -23
- package/dist/commonjs/components/Inspector/UpdateAvailableModal.js +24 -24
- package/dist/commonjs/components/JsonViewer.js +7 -7
- package/dist/commonjs/components/LogCard.d.ts +3 -2
- package/dist/commonjs/components/LogCard.js +17 -14
- package/dist/commonjs/components/LogSyntaxHighlighter.js +5 -5
- package/dist/commonjs/components/ModuleErrorBoundary.js +2 -2
- package/dist/commonjs/components/NetworkIcons.d.ts +15 -0
- package/dist/commonjs/components/NetworkIcons.js +38 -3
- package/dist/commonjs/components/SegmentedTabs.js +1 -1
- package/dist/commonjs/constants/version.d.ts +1 -1
- package/dist/commonjs/constants/version.js +1 -1
- package/dist/commonjs/customHooks/socketLogger.d.ts +26 -0
- package/dist/commonjs/customHooks/socketLogger.js +2 -0
- package/dist/commonjs/helpers/index.js +3 -3
- package/dist/commonjs/helpers/memoryManager.d.ts +1 -0
- package/dist/commonjs/helpers/memoryManager.js +1 -1
- package/dist/commonjs/helpers/searchQueryParser.d.ts +1 -1
- package/dist/commonjs/helpers/searchQueryParser.js +5 -1
- package/dist/commonjs/helpers/settingsStore.d.ts +1 -0
- package/dist/commonjs/helpers/settingsStore.js +1 -1
- package/dist/commonjs/helpers/shareFormatter.d.ts +3 -1
- package/dist/commonjs/helpers/shareFormatter.js +8 -7
- package/dist/commonjs/i18n/index.d.ts +99 -1
- package/dist/commonjs/i18n/index.js +1 -1
- package/dist/commonjs/i18n/locales/ar.json +1 -1
- package/dist/commonjs/i18n/locales/bn.json +1 -0
- package/dist/commonjs/i18n/locales/de.json +1 -1
- package/dist/commonjs/i18n/locales/en.json +1 -1
- package/dist/commonjs/i18n/locales/es.json +1 -1
- package/dist/commonjs/i18n/locales/fr.json +1 -1
- package/dist/commonjs/i18n/locales/gu.json +1 -0
- package/dist/commonjs/i18n/locales/hi.json +1 -1
- package/dist/commonjs/i18n/locales/id.json +1 -0
- package/dist/commonjs/i18n/locales/it.json +1 -0
- package/dist/commonjs/i18n/locales/ja.json +1 -1
- package/dist/commonjs/i18n/locales/kn.json +1 -0
- package/dist/commonjs/i18n/locales/ko.json +1 -1
- package/dist/commonjs/i18n/locales/ml.json +1 -0
- package/dist/commonjs/i18n/locales/mr.json +1 -0
- package/dist/commonjs/i18n/locales/nl.json +1 -0
- package/dist/commonjs/i18n/locales/pa.json +1 -0
- package/dist/commonjs/i18n/locales/pl.json +1 -0
- package/dist/commonjs/i18n/locales/pt.json +1 -1
- package/dist/commonjs/i18n/locales/ru.json +1 -1
- package/dist/commonjs/i18n/locales/ta.json +1 -0
- package/dist/commonjs/i18n/locales/te.json +1 -0
- package/dist/commonjs/i18n/locales/tr.json +1 -0
- package/dist/commonjs/i18n/locales/vi.json +1 -0
- package/dist/commonjs/i18n/locales/zh.json +1 -1
- package/dist/commonjs/index.d.ts +13 -13
- package/dist/commonjs/index.js +5 -4
- package/dist/commonjs/native/NativeInspector.d.ts +1 -0
- package/dist/commonjs/socket.d.ts +4 -0
- package/dist/commonjs/socket.js +1 -0
- package/dist/commonjs/styles/index.d.ts +23 -0
- package/dist/commonjs/styles/index.js +1 -1
- package/dist/commonjs/types/enums.d.ts +40 -0
- package/dist/commonjs/types/enums.js +1 -1
- package/dist/commonjs/types/interfaces.d.ts +122 -1
- package/dist/esm/components/AnimatedBrandOwl.d.ts +7 -0
- package/dist/esm/components/AnimatedBrandOwl.js +175 -0
- package/dist/esm/components/AppHeaderLogo.d.ts +1 -0
- package/dist/esm/components/AppHeaderLogo.js +7 -5
- package/dist/esm/components/BrandSquareIcon.d.ts +5 -0
- package/dist/esm/components/BrandSquareIcon.js +139 -0
- package/dist/esm/components/ConsoleLogCard.d.ts +2 -1
- package/dist/esm/components/ConsoleLogCard.js +61 -77
- package/dist/esm/components/Inspector/AboutModal.js +85 -95
- package/dist/esm/components/Inspector/AnalyticsTab.js +31 -31
- package/dist/esm/components/Inspector/ConfirmationModal.d.ts +13 -0
- package/dist/esm/components/Inspector/ConfirmationModal.js +32 -0
- package/dist/esm/components/Inspector/ConsoleTab.js +49 -49
- package/dist/esm/components/Inspector/CrashTab.js +40 -38
- package/dist/esm/components/Inspector/DebuggingTab.js +29 -29
- package/dist/esm/components/Inspector/FabLauncher.js +50 -58
- package/dist/esm/components/Inspector/FeatureUnderDevNotice.js +7 -7
- package/dist/esm/components/Inspector/LanguageSelectorModal.d.ts +15 -0
- package/dist/esm/components/Inspector/LanguageSelectorModal.js +90 -0
- package/dist/esm/components/Inspector/MainScreen.js +123 -110
- package/dist/esm/components/Inspector/MediaGalleryTab.js +64 -62
- package/dist/esm/components/Inspector/MediaPreviewModal.js +107 -123
- package/dist/esm/components/Inspector/NetworkTab.js +90 -90
- package/dist/esm/components/Inspector/NpmUpdateToast.js +1 -1
- package/dist/esm/components/Inspector/PushCard.d.ts +3 -2
- package/dist/esm/components/Inspector/PushCard.js +23 -22
- package/dist/esm/components/Inspector/PushDetail.js +34 -25
- package/dist/esm/components/Inspector/PushTab.js +25 -25
- package/dist/esm/components/Inspector/ReduxDetail.js +42 -42
- package/dist/esm/components/Inspector/ReduxTab.js +35 -35
- package/dist/esm/components/Inspector/SettingsPanel.js +495 -376
- package/dist/esm/components/Inspector/SocketCard.d.ts +5 -0
- package/dist/esm/components/Inspector/SocketCard.js +116 -0
- package/dist/esm/components/Inspector/SocketDetail.d.ts +4 -0
- package/dist/esm/components/Inspector/SocketDetail.js +317 -0
- package/dist/esm/components/Inspector/SocketFilterModal.d.ts +13 -0
- package/dist/esm/components/Inspector/SocketFilterModal.js +69 -0
- package/dist/esm/components/Inspector/SocketTab.d.ts +3 -0
- package/dist/esm/components/Inspector/SocketTab.js +112 -0
- package/dist/esm/components/Inspector/StorageTab.js +136 -134
- package/dist/esm/components/Inspector/SupportModal.d.ts +7 -0
- package/dist/esm/components/Inspector/SupportModal.js +125 -0
- package/dist/esm/components/Inspector/SupportPage.d.ts +5 -0
- package/dist/esm/components/Inspector/SupportPage.js +227 -0
- package/dist/esm/components/Inspector/TabBar.js +36 -35
- package/dist/esm/components/Inspector/UpdateAvailableModal.js +22 -22
- package/dist/esm/components/JsonViewer.js +55 -55
- package/dist/esm/components/LogCard.d.ts +3 -2
- package/dist/esm/components/LogCard.js +61 -58
- package/dist/esm/components/LogSyntaxHighlighter.js +5 -5
- package/dist/esm/components/ModuleErrorBoundary.js +23 -23
- package/dist/esm/components/NetworkIcons.d.ts +15 -0
- package/dist/esm/components/NetworkIcons.js +38 -3
- package/dist/esm/components/SegmentedTabs.js +7 -7
- package/dist/esm/constants/version.d.ts +1 -1
- package/dist/esm/constants/version.js +1 -1
- package/dist/esm/customHooks/socketLogger.d.ts +26 -0
- package/dist/esm/customHooks/socketLogger.js +2 -0
- package/dist/esm/helpers/index.js +3 -3
- package/dist/esm/helpers/memoryManager.d.ts +1 -0
- package/dist/esm/helpers/memoryManager.js +1 -1
- package/dist/esm/helpers/searchQueryParser.d.ts +1 -1
- package/dist/esm/helpers/searchQueryParser.js +5 -1
- package/dist/esm/helpers/settingsStore.d.ts +1 -0
- package/dist/esm/helpers/settingsStore.js +1 -1
- package/dist/esm/helpers/shareFormatter.d.ts +3 -1
- package/dist/esm/helpers/shareFormatter.js +8 -7
- package/dist/esm/i18n/index.d.ts +99 -1
- package/dist/esm/i18n/index.js +1 -1
- package/dist/esm/i18n/locales/ar.json +1 -1
- package/dist/esm/i18n/locales/bn.json +1 -0
- package/dist/esm/i18n/locales/de.json +1 -1
- package/dist/esm/i18n/locales/en.json +1 -1
- package/dist/esm/i18n/locales/es.json +1 -1
- package/dist/esm/i18n/locales/fr.json +1 -1
- package/dist/esm/i18n/locales/gu.json +1 -0
- package/dist/esm/i18n/locales/hi.json +1 -1
- package/dist/esm/i18n/locales/id.json +1 -0
- package/dist/esm/i18n/locales/it.json +1 -0
- package/dist/esm/i18n/locales/ja.json +1 -1
- package/dist/esm/i18n/locales/kn.json +1 -0
- package/dist/esm/i18n/locales/ko.json +1 -1
- package/dist/esm/i18n/locales/ml.json +1 -0
- package/dist/esm/i18n/locales/mr.json +1 -0
- package/dist/esm/i18n/locales/nl.json +1 -0
- package/dist/esm/i18n/locales/pa.json +1 -0
- package/dist/esm/i18n/locales/pl.json +1 -0
- package/dist/esm/i18n/locales/pt.json +1 -1
- package/dist/esm/i18n/locales/ru.json +1 -1
- package/dist/esm/i18n/locales/ta.json +1 -0
- package/dist/esm/i18n/locales/te.json +1 -0
- package/dist/esm/i18n/locales/tr.json +1 -0
- package/dist/esm/i18n/locales/vi.json +1 -0
- package/dist/esm/i18n/locales/zh.json +1 -1
- package/dist/esm/index.d.ts +13 -13
- package/dist/esm/index.js +8 -7
- package/dist/esm/native/NativeInspector.d.ts +1 -0
- package/dist/esm/socket.d.ts +4 -0
- package/dist/esm/socket.js +1 -0
- package/dist/esm/styles/index.d.ts +23 -0
- package/dist/esm/styles/index.js +1 -1
- package/dist/esm/types/enums.d.ts +40 -0
- package/dist/esm/types/enums.js +1 -1
- package/dist/esm/types/interfaces.d.ts +122 -1
- package/ios/NetworkInspectorModule.mm +102 -12
- package/package.json +204 -2
- package/src/native/NativeInspector.ts +8 -0
|
@@ -1,166 +1,150 @@
|
|
|
1
|
-
import{useState as
|
|
2
|
-
<
|
|
1
|
+
import{useState as B}from"react";import{Image as Z,Modal as Oe,Platform as k,Share as _,StatusBar as W,StyleSheet as M,Text as T,TouchableOpacity as R,View as C}from"react-native";import Fe from"react-native-linear-gradient";import{AppColors as t}from"../../styles/AppColors";import{AppFonts as S}from"../../styles/AppFonts";import P from"../TouchableScale";import{ConfirmationModal as De}from"./ConfirmationModal";import{ChevronDownIcon as Ee,CopyIcon as H,ExpandCollapseIcon as We,FilmIcon as L,GifIcon as U,ImageIcon as Me,PlayIcon as Ce,ShareIcon as Te,TrashIcon as Se}from"../NetworkIcons";import{ScreenCapture as He}from"../../capture";import{copyImageOrMediaToClipboard as Le,formatBytes as $}from"../../helpers";import{showToast as V}from"../../helpers/toast";import{useTranslation as je}from"../../i18n";import{triggerNativeHaptic as Ue}from"../../native/NativeInspector";export const MediaPreviewModal=({item:o,visible:ve,onClose:F,onDelete:Pe,onConvertToGif:D})=>{const{t:r}=je(),[A,N]=B(!1),[Ie,q]=B(!1),[z,ze]=B(!1),[Be,J]=B(!1),[ke,E]=B(!1);if(!o)return null;const G=()=>{o?.uri&&Le(o.uri,o.type==="image"?"Image":"Media")},K=async()=>{try{J(!0),await He.playVideo(o.uri)}catch{V(r("mediaGallery.playError","Unable to play video"))}finally{J(!1)}},Q=()=>{Ue("medium"),E(!0)},Re=async()=>{if(D){N(!0);try{await D(o),V(r("mediaGallery.convertedSuccess"))}catch{V(r("mediaGallery.convertFailed"))}finally{N(!1)}}},X=async()=>{try{const O=o.uri.startsWith("file://")||o.uri.startsWith("content://")||o.uri.startsWith("http")?o.uri:`file://${o.uri}`,Ge=k.select({ios:{url:O,title:o.filename},default:{title:o.filename,message:o.filename,url:O}});(await _.share(Ge)).action===_.sharedAction&&V(r("mediaGallery.shareSuccess","Shared successfully"))}catch(O){O?.message!=="User did not share"&&V(r("mediaGallery.shareUnavailable","Sharing not available on this device"))}},v=o.type==="video",Y=o.type==="gif",I=o.durationMs?(o.durationMs/1e3).toFixed(1):null,Ve=I?`00:${Number(I)<10?"0":""}${I}`:null;return<Oe visible={ve}transparent={!0}animationType="fade"statusBarTranslucent={!0}onRequestClose={F}>
|
|
2
|
+
<W translucent backgroundColor="transparent"barStyle="light-content"/>
|
|
3
|
+
<C style={e.overlay}>
|
|
3
4
|
|
|
4
|
-
<
|
|
5
|
-
<
|
|
6
|
-
<C style={
|
|
7
|
-
{
|
|
8
|
-
<T style={
|
|
9
|
-
{
|
|
5
|
+
<Fe colors={[t.indigo600,t.violet600]}start={{x:0,y:0}}end={{x:1,y:1}}style={e.header}>
|
|
6
|
+
<R activeOpacity={.8}onPress={G}style={e.headerLeft}>
|
|
7
|
+
<C style={e.badge}>
|
|
8
|
+
{v?<L size={12}color={t.white}/>:Y?<U size={12}color={t.white}/>:<Me size={12}color={t.white}/>}
|
|
9
|
+
<T style={e.badgeText}>
|
|
10
|
+
{o.format.toUpperCase()}
|
|
10
11
|
</T>
|
|
11
12
|
</C>
|
|
12
|
-
<C style={
|
|
13
|
-
<T style={
|
|
14
|
-
{
|
|
13
|
+
<C style={e.headerTextCol}>
|
|
14
|
+
<T style={e.title}numberOfLines={1}>
|
|
15
|
+
{o.filename}
|
|
15
16
|
</T>
|
|
16
|
-
<T style={
|
|
17
|
-
{
|
|
17
|
+
<T style={e.subtitle}>
|
|
18
|
+
{$(o.sizeBytes)} • {new Date(o.timestamp).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit"})}
|
|
18
19
|
</T>
|
|
19
20
|
</C>
|
|
20
|
-
</
|
|
21
|
+
</R>
|
|
21
22
|
|
|
22
23
|
|
|
23
|
-
<C style={
|
|
24
|
-
<
|
|
25
|
-
<
|
|
26
|
-
</
|
|
24
|
+
<C style={e.headerRight}>
|
|
25
|
+
<P accessible={!0}accessibilityRole="button"accessibilityLabel={r("mediaGallery.copyUri","Copy URI")}onPress={G}style={e.headerActionBtn}hitSlop={{top:10,bottom:10,left:10,right:10}}>
|
|
26
|
+
<H size={13}color={t.white}/>
|
|
27
|
+
</P>
|
|
27
28
|
|
|
28
|
-
<
|
|
29
|
-
<Te size={
|
|
30
|
-
</
|
|
29
|
+
<P accessible={!0}accessibilityRole="button"accessibilityLabel={r("mediaGallery.share","Share")}onPress={X}style={e.headerActionBtn}hitSlop={{top:10,bottom:10,left:10,right:10}}>
|
|
30
|
+
<Te size={13}color={t.white}/>
|
|
31
|
+
</P>
|
|
31
32
|
|
|
32
|
-
<
|
|
33
|
-
<
|
|
34
|
-
</
|
|
33
|
+
<P accessible={!0}accessibilityRole="button"accessibilityLabel={r("mediaGallery.delete")}onPress={Q}style={e.headerDeleteBtn}hitSlop={{top:10,bottom:10,left:10,right:10}}>
|
|
34
|
+
<Se size={13}color={t.white}/>
|
|
35
|
+
</P>
|
|
35
36
|
|
|
36
|
-
<
|
|
37
|
-
<We size={
|
|
38
|
-
</
|
|
37
|
+
<R accessible={!0}accessibilityRole="button"accessibilityLabel={z?r("mediaGallery.collapse","Exit Fullscreen"):r("mediaGallery.expand","Expand Fullscreen")}onPress={()=>ze(!z)}style={e.headerIconBtn}hitSlop={{top:10,bottom:10,left:10,right:10}}>
|
|
38
|
+
<We size={13}isExpanded={z}color={t.white}/>
|
|
39
|
+
</R>
|
|
39
40
|
|
|
40
|
-
<
|
|
41
|
-
<
|
|
42
|
-
</
|
|
41
|
+
<R accessible={!0}accessibilityRole="button"accessibilityLabel={r("mediaGallery.minimize","Minimize")}onPress={F}style={e.headerIconBtn}hitSlop={{top:10,bottom:10,left:10,right:10}}>
|
|
42
|
+
<Ee size={14}color={t.white}/>
|
|
43
|
+
</R>
|
|
43
44
|
</C>
|
|
44
|
-
</
|
|
45
|
+
</Fe>
|
|
45
46
|
|
|
46
47
|
|
|
47
|
-
<C style={[
|
|
48
|
-
<
|
|
49
|
-
{
|
|
50
|
-
<
|
|
51
|
-
<C style={
|
|
52
|
-
</>:<C style={
|
|
53
|
-
<C style={
|
|
54
|
-
<
|
|
55
|
-
<T style={
|
|
56
|
-
{
|
|
48
|
+
<C style={[e.stage,z&&e.stageExpanded]}>
|
|
49
|
+
<R activeOpacity={v?.92:1}onPress={v?K:void 0}style={[e.previewCard,z&&e.previewCardExpanded]}>
|
|
50
|
+
{v?o.thumbnailUri&&!Ie?<>
|
|
51
|
+
<Z source={{uri:o.thumbnailUri}}style={e.image}resizeMode="contain"onError={()=>q(!0)}/>
|
|
52
|
+
<C style={e.videoImageOverlay}/>
|
|
53
|
+
</>:<C style={e.videoFallbackBackdrop}>
|
|
54
|
+
<C style={e.videoFallbackGlow}/>
|
|
55
|
+
<L size={52}color={t.sky400}/>
|
|
56
|
+
<T style={e.videoFallbackTitle}>
|
|
57
|
+
{o.width&&o.height?`${o.width} \xD7 ${o.height}`:"HD Video Recording"}
|
|
57
58
|
</T>
|
|
58
|
-
|
|
59
|
+
<T style={e.videoFallbackSubtitle}>
|
|
60
|
+
{I?`${I}s duration`:"MP4 Video"} • {$(o.sizeBytes)}
|
|
61
|
+
</T>
|
|
62
|
+
</C>:<Z source={{uri:o.uri}}style={e.image}resizeMode="contain"onError={()=>q(!0)}/>}
|
|
59
63
|
|
|
60
64
|
|
|
61
|
-
{
|
|
62
|
-
<C style={
|
|
63
|
-
|
|
65
|
+
{v&&<C style={e.centerPlayContainer}pointerEvents="box-none">
|
|
66
|
+
<C style={e.centerPlayGlow}/>
|
|
67
|
+
<C style={e.centerPlayCircle}>
|
|
68
|
+
<Ce size={28}color={t.white}/>
|
|
69
|
+
</C>
|
|
70
|
+
<C style={e.centerPlayPill}>
|
|
71
|
+
<T style={e.centerPlayText}>
|
|
72
|
+
{r("mediaGallery.playVideo","Play Video")}
|
|
73
|
+
</T>
|
|
64
74
|
</C>
|
|
65
|
-
<T style={o.centerPlayText}>
|
|
66
|
-
{r("mediaGallery.playVideo","Play Video")}
|
|
67
|
-
</T>
|
|
68
75
|
</C>}
|
|
69
76
|
|
|
70
77
|
|
|
71
|
-
{
|
|
72
|
-
<C style={
|
|
73
|
-
<
|
|
74
|
-
<T style={
|
|
75
|
-
{
|
|
78
|
+
{v&&<C style={e.topLeftBadgeOverlay}pointerEvents="none">
|
|
79
|
+
<C style={e.metaPill}>
|
|
80
|
+
<L size={11}color={t.sky400}/>
|
|
81
|
+
<T style={e.metaPillText}>
|
|
82
|
+
{Ve||(I?`${I}s`:"VIDEO")}
|
|
76
83
|
</T>
|
|
77
84
|
</C>
|
|
78
85
|
</C>}
|
|
79
86
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
<
|
|
84
|
-
<T style={o.playPillText}>ANIMATED GIF</T>
|
|
87
|
+
{Y&&<C style={e.topLeftBadgeOverlay}pointerEvents="none">
|
|
88
|
+
<C style={[e.metaPill,{backgroundColor:"rgba(245, 158, 11, 0.85)"}]}>
|
|
89
|
+
<U size={11}color={t.white}/>
|
|
90
|
+
<T style={e.metaPillText}>ANIMATED GIF</T>
|
|
85
91
|
</C>
|
|
86
92
|
</C>}
|
|
87
93
|
|
|
88
94
|
|
|
89
|
-
<
|
|
90
|
-
<
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
<R activeOpacity={.8}onPress={G}style={e.bottomRightBadgeOverlay}>
|
|
96
|
+
<C style={e.metaPill}>
|
|
97
|
+
<H size={10}color={t.sky400}/>
|
|
98
|
+
<T style={e.metaPillText}>
|
|
99
|
+
{o.width&&o.height?`${o.width} \xD7 ${o.height} \u2022 `:""}
|
|
100
|
+
{$(o.sizeBytes)}
|
|
101
|
+
</T>
|
|
102
|
+
</C>
|
|
103
|
+
</R>
|
|
104
|
+
</R>
|
|
97
105
|
</C>
|
|
98
106
|
|
|
99
107
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
<T style={
|
|
104
|
-
|
|
108
|
+
<C style={e.footer}>
|
|
109
|
+
{v&&<P onPress={K}style={e.primaryPlayBtn}>
|
|
110
|
+
<Ce size={16}color={t.white}/>
|
|
111
|
+
<T style={e.primaryPlayText}>
|
|
112
|
+
{Be?r("mediaGallery.playing","Playing Video..."):r("mediaGallery.playInPlayer","Play Fullscreen Video")}
|
|
105
113
|
</T>
|
|
106
|
-
|
|
107
|
-
<C style={[o.progressFill,{width:`${Math.max(10,Math.min(100,W*100))}%`}]}/>
|
|
108
|
-
<C style={[o.scrubberThumb,{left:`${Math.max(8,Math.min(96,W*100))}%`}]}/>
|
|
109
|
-
</A>
|
|
110
|
-
<T style={o.timeLabel}>{Ge}</T>
|
|
111
|
-
</C>
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
<C style={o.controlsRow}>
|
|
115
|
-
|
|
116
|
-
<A onPress={X}style={o.controlActionPill}>
|
|
117
|
-
{J?<Ee size={14}color={e.sky400}/>:<Ce size={14}color={e.sky400}/>}
|
|
118
|
-
<T style={[o.controlActionText,{color:e.sky400}]}>
|
|
119
|
-
{J?r("mediaGallery.pause","Pause"):r("mediaGallery.play","Play")}
|
|
120
|
-
</T>
|
|
121
|
-
</A>
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
<C style={o.speedGroup}>
|
|
125
|
-
{["1.0x","1.5x","2.0x"].map(v=><A key={v}onPress={()=>ze(v)}style={[o.speedBtn,Q===v&&o.speedBtnActive]}>
|
|
126
|
-
<T style={[o.speedText,Q===v&&o.speedTextActive]}>
|
|
127
|
-
{v}
|
|
128
|
-
</T>
|
|
129
|
-
</A>)}
|
|
130
|
-
</C>
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
<A onPress={()=>Be(!$)}style={[o.loopPill,$&&o.loopPillActive]}>
|
|
134
|
-
<He size={12}color={$?e.sky400:e.whiteAlpha60}/>
|
|
135
|
-
<T style={[o.loopText,$&&o.loopTextActive]}>
|
|
136
|
-
{$?"Loop: ON":"Loop: OFF"}
|
|
137
|
-
</T>
|
|
138
|
-
</A>
|
|
139
|
-
</C>
|
|
140
|
-
</C>}
|
|
114
|
+
</P>}
|
|
141
115
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
<
|
|
146
|
-
<T style={[o.actionText,{color:e.slate200}]}>
|
|
116
|
+
<C style={e.actionsRow}>
|
|
117
|
+
<P onPress={G}style={e.actionBtn}>
|
|
118
|
+
<H size={14}color={t.grayText}/>
|
|
119
|
+
<T style={e.actionText}>
|
|
147
120
|
{r("mediaGallery.copyUri","Copy URI")}
|
|
148
121
|
</T>
|
|
149
|
-
</
|
|
122
|
+
</P>
|
|
150
123
|
|
|
151
|
-
{D&&
|
|
152
|
-
<
|
|
153
|
-
<T style={[
|
|
154
|
-
{r(
|
|
124
|
+
{D&&v&&<P onPress={Re}disabled={A}style={[e.actionBtn,{backgroundColor:t.amber100,borderColor:t.amber200}]}>
|
|
125
|
+
<U size={15}color={t.amber600}/>
|
|
126
|
+
<T style={[e.actionText,{color:t.amber600,fontFamily:S.interBold}]}>
|
|
127
|
+
{r(A?"mediaGallery.converting":"mediaGallery.convertToGif")}
|
|
155
128
|
</T>
|
|
156
|
-
</
|
|
129
|
+
</P>}
|
|
157
130
|
|
|
158
|
-
<
|
|
159
|
-
<Te size={14}color={
|
|
160
|
-
<T style={[
|
|
131
|
+
<P onPress={X}style={[e.actionBtn,{backgroundColor:t.indigo600,borderColor:t.indigo600}]}>
|
|
132
|
+
<Te size={14}color={t.white}/>
|
|
133
|
+
<T style={[e.actionText,{color:t.white,fontFamily:S.interBold}]}>
|
|
161
134
|
{r("mediaGallery.share","Share")}
|
|
162
135
|
</T>
|
|
163
|
-
</
|
|
164
|
-
|
|
136
|
+
</P>
|
|
137
|
+
|
|
138
|
+
{!v&&<P onPress={Q}style={[e.actionBtn,{backgroundColor:t.red100,borderColor:`${t.red500}4D`}]}>
|
|
139
|
+
<Se size={14}color={t.red500}/>
|
|
140
|
+
<T style={[e.actionText,{color:t.red500,fontFamily:S.interBold}]}>
|
|
141
|
+
{r("mediaGallery.delete","Delete")}
|
|
142
|
+
</T>
|
|
143
|
+
</P>}
|
|
144
|
+
</C>
|
|
145
|
+
</C>
|
|
165
146
|
</C>
|
|
166
|
-
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
<De visible={ke}title={r("mediaGallery.deleteTitle","Delete Media?")}message={r("mediaGallery.deleteMessage",{filename:o.filename})}confirmText={r("mediaGallery.delete","Delete")}cancelText={r("common.cancel","Cancel")}isDestructive={!0}icon="trash"onConfirm={()=>{E(!1),Pe(o),F()}}onCancel={()=>E(!1)}/>
|
|
150
|
+
</Oe>};const e=M.create({overlay:{flex:1,backgroundColor:t.slate900,justifyContent:"space-between"},header:{flexShrink:0,minHeight:k.OS==="ios"?96:66,flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingHorizontal:16,paddingTop:k.OS==="ios"?48:W.currentHeight?W.currentHeight+8:18,paddingBottom:14,borderBottomWidth:M.hairlineWidth,borderBottomColor:"rgba(255, 255, 255, 0.25)",zIndex:10},headerLeft:{flexDirection:"row",alignItems:"center",gap:10,flex:1,minWidth:0,marginRight:8},headerTextCol:{flex:1,minWidth:0},headerRight:{flexDirection:"row",alignItems:"center",gap:7},badge:{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:7,paddingVertical:3.5,borderRadius:6,backgroundColor:"rgba(255, 255, 255, 0.22)",borderWidth:1,borderColor:"rgba(255, 255, 255, 0.38)"},badgeText:{fontFamily:S.interBold,fontSize:10,letterSpacing:.4,color:t.white},title:{fontFamily:S.interSemiBold,fontSize:13,color:t.white},subtitle:{fontFamily:S.interRegular,fontSize:11,color:"rgba(255, 255, 255, 0.6)",marginTop:1},headerActionBtn:{width:30,height:30,borderRadius:8,backgroundColor:"rgba(255, 255, 255, 0.22)",borderWidth:1,borderColor:"rgba(255, 255, 255, 0.38)",alignItems:"center",justifyContent:"center"},headerDeleteBtn:{width:30,height:30,borderRadius:8,backgroundColor:"rgba(239, 68, 68, 0.35)",borderWidth:1,borderColor:"rgba(252, 165, 165, 0.55)",alignItems:"center",justifyContent:"center"},headerIconBtn:{width:30,height:30,borderRadius:8,backgroundColor:"rgba(255, 255, 255, 0.22)",borderWidth:1,borderColor:"rgba(255, 255, 255, 0.38)",alignItems:"center",justifyContent:"center"},stage:{flex:1,minHeight:0,alignItems:"center",justifyContent:"center",paddingHorizontal:14,paddingVertical:12,overflow:"hidden"},stageExpanded:{paddingHorizontal:0,paddingVertical:0},previewCard:{flex:1,width:"100%",minHeight:0,borderRadius:16,overflow:"hidden",backgroundColor:t.slate900,borderWidth:1,borderColor:"rgba(255, 255, 255, 0.1)",alignItems:"center",justifyContent:"center",position:"relative"},previewCardExpanded:{borderRadius:0,borderWidth:0},image:{width:"100%",height:"100%"},videoImageOverlay:{...M.absoluteFillObject,backgroundColor:"rgba(10, 13, 20, 0.28)"},videoFallbackBackdrop:{flex:1,width:"100%",backgroundColor:t.slate900,alignItems:"center",justifyContent:"center",padding:24},videoFallbackGlow:{position:"absolute",width:150,height:150,borderRadius:75,backgroundColor:"rgba(56, 189, 248, 0.08)"},videoFallbackTitle:{fontFamily:S.interSemiBold,fontSize:15,color:t.white,marginTop:12},videoFallbackSubtitle:{fontFamily:S.interRegular,fontSize:12,color:"rgba(255, 255, 255, 0.6)",marginTop:4},centerPlayContainer:{position:"absolute",alignItems:"center",justifyContent:"center",gap:8},centerPlayGlow:{position:"absolute",width:80,height:80,borderRadius:40,backgroundColor:"rgba(56, 189, 248, 0.22)"},centerPlayCircle:{width:62,height:62,borderRadius:31,backgroundColor:t.sky500,alignItems:"center",justifyContent:"center",paddingLeft:3,shadowColor:t.sky500,shadowOffset:{width:0,height:4},shadowOpacity:.5,shadowRadius:10,elevation:8},centerPlayPill:{backgroundColor:"rgba(15, 23, 42, 0.90)",paddingHorizontal:12,paddingVertical:4,borderRadius:12,borderWidth:1,borderColor:"rgba(255, 255, 255, 0.15)"},centerPlayText:{fontFamily:S.interBold,fontSize:11.5,color:t.white,letterSpacing:.3},topLeftBadgeOverlay:{position:"absolute",top:12,left:12},bottomRightBadgeOverlay:{position:"absolute",bottom:12,right:12},metaPill:{flexDirection:"row",alignItems:"center",gap:5,backgroundColor:"rgba(15, 23, 42, 0.90)",paddingHorizontal:10,paddingVertical:5,borderRadius:12,borderWidth:1,borderColor:"rgba(255, 255, 255, 0.15)"},metaPillText:{fontFamily:S.interSemiBold,fontSize:11,color:t.white,letterSpacing:.2},footer:{flexShrink:0,paddingHorizontal:16,paddingTop:12,paddingBottom:k.OS==="ios"?34:16,borderTopWidth:1,borderTopColor:t.grayBorderSecondary,backgroundColor:t.white,gap:10,zIndex:10,...k.select({ios:{shadowColor:t.slate900,shadowOffset:{width:0,height:-3},shadowOpacity:.08,shadowRadius:8},android:{elevation:6}})},primaryPlayBtn:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:8,width:"100%",paddingVertical:12,borderRadius:12,backgroundColor:t.indigo600,shadowColor:t.indigo600,shadowOffset:{width:0,height:3},shadowOpacity:.35,shadowRadius:6,elevation:4},primaryPlayText:{fontFamily:S.interBold,fontSize:13.5,color:t.white,letterSpacing:.3},actionsRow:{flexDirection:"row",alignItems:"center",justifyContent:"center",gap:8},actionBtn:{flex:1,flexDirection:"row",alignItems:"center",justifyContent:"center",gap:6,paddingVertical:10,paddingHorizontal:12,borderRadius:10,backgroundColor:t.graySurface,borderWidth:1,borderColor:t.grayBorderSecondary},actionText:{fontFamily:S.interSemiBold,fontSize:12,color:t.grayText}});
|
|
@@ -1,153 +1,153 @@
|
|
|
1
|
-
import
|
|
2
|
-
<
|
|
3
|
-
</
|
|
1
|
+
import j,{useCallback as se,useMemo as H,useRef as qe}from"react";import{FlatList as De,Pressable as He,ScrollView as We,Text as V,TextInput as Ge,View as C}from"react-native";import{useInspector as _e}from"./InspectorContext";import O from"../TouchableScale";import Te from"../AnimatedEntrance";import Qe from"../DomainHeader";import Ue from"../LogCard";import Ke from"../EmptyState";import Xe from"../EndOfListFooter";import Je from"./NetworkFilterModal";import b from"../../styles";import{AppColors as o}from"../../styles/AppColors";import{AppFonts as I}from"../../styles/AppFonts";import{METHOD_COLORS as ze}from"../../constants";import{useTranslation as Ye}from"../../i18n";import{SearchIcon as Ze,ClearIcon as Co,TrashIcon as So,SortArrowIcon as To,FilterIcon as Vo,ChevronIcon as Io,CheckIcon as Fo,CircleCheckIcon as Ro,CircleXIcon as Lo,LayersIcon as Ve,ClockIcon as Bo,RequestIcon as Po,ResponseIcon as Eo,AtomIcon as Mo}from"../NetworkIcons";const No=j.memo(()=>{const{groupedData:Q,loadMoreSection:ne,search:F,setSearch:U,setSearchScope:de,quickFilter:K,setQuickFilter:le,handleDelete:Ie,isGroupByPageEnabled:k,setIsGroupByPageEnabled:ke,selectedLogs:X,sortOrder:Fe,setSortOrder:J,statusFilters:R,setStatusFilters:v,methodFilters:L,setMethodFilters:W,latencyFilter:$,setLatencyFilter:Y,protocolFilter:A,setProtocolFilter:Z,networkSortBy:q,setNetworkSortBy:ee,filteredLogs:B,logs:G,toggleSectionFilter:ce,toggleSectionCollapse:ue,minStart:ge,totalRange:pe,newLogIds:he,toggleSelect:me,setSelected:ye,maxNetworkLogs:ae}=_e(),{t:oe}=Ye(),Re=qe(null),[Le,fe]=j.useState(!1),[we,Ce]=j.useState(!1),[te,Se]=j.useState(ae||50);j.useEffect(()=>{Se(ae||50)},[F,K,ae]);const Be=H(()=>k?Q:Q.slice(0,te),[k,Q,te]),Pe=se(e=>e?.id?String(e.id):"",[]),M=H(()=>R.size>0&&!R.has("all")||L.size>0&&!L.has("all")||$!=="all"||A!=="all"||q!=="time_desc",[R,L,$,A,q]),Ee=H(()=>{let e=0;return R.size>0&&!R.has("all")&&(e+=R.size),L.size>0&&!L.has("all")&&(e+=L.size),$!=="all"&&e++,A!=="all"&&e++,q!=="time_desc"&&e++,e},[R,L,$,A,q]),Me=H(()=>({statusCodes:R.size>0?new Set(R):new Set(["all"]),methods:L.size>0?new Set(L):new Set(["all"]),latency:$,protocol:A,sortBy:q}),[R,L,$,A,q]),Ne=se(e=>{e.statusCodes.has("all")||e.statusCodes.size===0?v(new Set):v(new Set(e.statusCodes)),e.methods.has("all")||e.methods.size===0?W(new Set):W(new Set([...e.methods].map(T=>T))),Y(e.latency||"all"),Z(e.protocol||"all"),ee(e.sortBy||"time_desc"),e.sortBy==="time_asc"?J("oldest"):J("newest")},[v,W,Y,Z,ee,J]),P=H(()=>{let e=0,T=0,z=0,x=0,_=0,re=0;return G.forEach(S=>{const N=typeof S.status=="number"?S.status:parseInt(String(S.status),10);S.status===0||S.status==null||!isNaN(N)&&N>=400?e++:!isNaN(N)&&N>=200&&N<400&&T++,(S.duration||0)>=500&&z++;const E=(S.method||"").toUpperCase();E==="POST"&&x++,E==="GET"&&_++;const ie=(S.url||"").toLowerCase(),D=(S.client||"").toLowerCase();(ie.includes("graphql")||D.includes("graphql")||D.includes("apollo"))&&re++}),{all:G.length,errors:e,success:T,slow:z,post:x,get:_,graphql:re}},[G]),Oe=H(()=>[{id:"all",label:"All",count:P.all,color:o.purple},{id:"errors",label:"Errors",count:P.errors,color:o.errorColor},{id:"success",label:"2xx OK",count:P.success,color:o.greenColor},{id:"slow",label:"Slow >500ms",count:P.slow,color:o.warningIconGold},{id:"POST",label:"POST",count:P.post,color:ze.POST||o.blue500},{id:"GET",label:"GET",count:P.get,color:ze.GET||o.emerald500},{id:"graphql",label:"GraphQL",count:P.graphql,color:o.graphqlPink}],[P]),$e=se(({item:e,index:T})=>{if(e.type==="header")return<Te index={T}distance={8}>
|
|
2
|
+
<Qe pageName={e.pageName}color={e.color}stats={e.stats}activeFilters={e.activeFilters}onToggleFilter={ce}isCollapsed={e.isCollapsed}onToggleCollapse={ue}isFirst={e.isFirst}timestamp={e.timestamp}/>
|
|
3
|
+
</Te>;if(e.type==="loadMore"){const{pageName:re,color:S,remainingCount:N,totalCount:E,loadedCount:ie,loadMoreStep:D,hasMore:Ae}=e;return<C style={[b.treeNodeRow,b.treeNodeRowLast]}>
|
|
4
4
|
<C style={b.treeLines}>
|
|
5
5
|
<C style={[b.modernTreeLine,{borderColor:S},b.modernTreeLineLast]}/>
|
|
6
6
|
</C>
|
|
7
7
|
<C style={b.treeCardWrapper}>
|
|
8
|
-
{
|
|
8
|
+
{Ae?<O onPress={()=>ne(re,D||10)}hitSlop={6}style={{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingVertical:9,paddingHorizontal:12,marginVertical:3,marginRight:2,borderRadius:10,backgroundColor:`${S}14`,borderWidth:1.5,borderColor:`${S}40`,shadowColor:S,shadowOffset:{width:0,height:1.5},shadowOpacity:.1,shadowRadius:3,elevation:2}}>
|
|
9
9
|
<C style={{flexDirection:"row",alignItems:"center",gap:8}}>
|
|
10
10
|
<C style={{width:22,height:22,borderRadius:11,backgroundColor:S,alignItems:"center",justifyContent:"center",shadowColor:S,shadowOffset:{width:0,height:1},shadowOpacity:.25,shadowRadius:2,elevation:1}}>
|
|
11
|
-
<
|
|
11
|
+
<Io color={o.white}size={9}direction="down"/>
|
|
12
12
|
</C>
|
|
13
13
|
<C>
|
|
14
|
-
<
|
|
15
|
-
{
|
|
16
|
-
</
|
|
17
|
-
<
|
|
18
|
-
Showing {
|
|
19
|
-
</
|
|
14
|
+
<V style={{fontFamily:I.interBold,fontSize:12,color:S}}>
|
|
15
|
+
{oe("footer.loadMoreRequests",{count:D,defaultValue:`Load ${D} More Requests`})}
|
|
16
|
+
</V>
|
|
17
|
+
<V style={{fontFamily:I.interRegular,fontSize:9.5,color:o.grayTextWeak,marginTop:1}}>
|
|
18
|
+
Showing {ie} of {E} requests
|
|
19
|
+
</V>
|
|
20
20
|
</C>
|
|
21
21
|
</C>
|
|
22
22
|
|
|
23
23
|
<C style={{flexDirection:"row",alignItems:"center",backgroundColor:`${S}25`,paddingHorizontal:8,paddingVertical:4,borderRadius:8,borderWidth:1,borderColor:`${S}40`,gap:3}}>
|
|
24
|
-
<
|
|
25
|
-
+{
|
|
26
|
-
</
|
|
27
|
-
<
|
|
24
|
+
<V style={{fontFamily:I.interBold,fontSize:10.5,color:S}}>
|
|
25
|
+
+{N}
|
|
26
|
+
</V>
|
|
27
|
+
<V style={{fontFamily:I.interRegular,fontSize:9,color:S}}>
|
|
28
28
|
more
|
|
29
|
-
</
|
|
29
|
+
</V>
|
|
30
30
|
</C>
|
|
31
31
|
</O>:<C style={{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingVertical:7,paddingHorizontal:11,marginVertical:3,marginRight:2,borderRadius:9,backgroundColor:`${S}0A`,borderWidth:1,borderColor:`${S}25`}}>
|
|
32
32
|
<C style={{flexDirection:"row",alignItems:"center",gap:7}}>
|
|
33
33
|
<C style={{width:17,height:17,borderRadius:8.5,backgroundColor:`${S}25`,alignItems:"center",justifyContent:"center"}}>
|
|
34
|
-
<
|
|
34
|
+
<Fo color={S}size={8}/>
|
|
35
35
|
</C>
|
|
36
|
-
<
|
|
37
|
-
{
|
|
38
|
-
</
|
|
36
|
+
<V style={{fontFamily:I.interMedium,fontSize:11,color:o.grayTextStrong}}>
|
|
37
|
+
{oe("footer.allLoaded",{count:E,defaultValue:`All ${E} requests loaded`})}
|
|
38
|
+
</V>
|
|
39
39
|
</C>
|
|
40
40
|
|
|
41
41
|
<C style={{backgroundColor:`${S}18`,paddingHorizontal:7,paddingVertical:2,borderRadius:6}}>
|
|
42
|
-
<
|
|
43
|
-
{
|
|
44
|
-
</
|
|
42
|
+
<V style={{fontFamily:I.interBold,fontSize:9.5,color:S}}>
|
|
43
|
+
{E}/{E}
|
|
44
|
+
</V>
|
|
45
45
|
</C>
|
|
46
46
|
</C>}
|
|
47
47
|
</C>
|
|
48
|
-
</C>}const{log:
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
</C>}const{log:z,isLast:x,color:_}=e;return<Te index={T}distance={8}style={k?[b.treeNodeRow,x&&b.treeNodeRowLast]:{marginBottom:6,marginHorizontal:2}}>
|
|
49
|
+
{k&&<C style={b.treeLines}>
|
|
50
|
+
<C style={[b.modernTreeLine,{borderColor:_},x&&b.modernTreeLineLast]}/>
|
|
51
|
+
{!x&&<C style={[b.modernTreeBranch,{borderColor:_}]}/>}
|
|
52
|
+
</C>}
|
|
53
|
+
<C style={k?b.treeCardWrapper:{flex:1}}>
|
|
54
|
+
<Ue item={z}isSelected={X.has(z.id)}onToggleSelect={me}onPress={()=>{ye(z)}}timelineMinStart={ge}timelineTotalRange={pe}isNew={he.has(z.id)}searchStr={F}/>
|
|
52
55
|
</C>
|
|
53
|
-
|
|
54
|
-
<Ee item={T}isSelected={E.has(T.id)}onToggleSelect={ie}onPress={()=>{se(T)}}timelineMinStart={te}timelineTotalRange={re}isNew={le.has(T.id)}searchStr={F}/>
|
|
55
|
-
</C>
|
|
56
|
-
</Ce>},[te,re,le,E,ie,F,ee,oe,Z,se,_]);return<C style={{flex:1}}>
|
|
56
|
+
</Te>},[k,ge,pe,he,X,me,F,ce,ue,ne,ye,oe]);return<C style={{flex:1}}>
|
|
57
57
|
<C style={{marginTop:6}}>
|
|
58
58
|
|
|
59
59
|
<C style={b.toolbarRow}>
|
|
60
|
-
<C style={[b.searchContainer,
|
|
61
|
-
<
|
|
62
|
-
<
|
|
60
|
+
<C style={[b.searchContainer,we&&{borderColor:o.purple,borderWidth:1.5}]}>
|
|
61
|
+
<Ze color={we?o.purple:o.grayTextWeak}size={15}/>
|
|
62
|
+
<Ge placeholder="Search URL, status, method, headers, body..."placeholderTextColor={o.grayTextWeak}value={F}onChangeText={U}onFocus={()=>Ce(!0)}onBlur={()=>Ce(!1)}style={b.searchInput}autoCorrect={!1}autoCapitalize="none"/>
|
|
63
63
|
|
|
64
64
|
{F.length>0&&<C style={{flexDirection:"row",alignItems:"center",gap:4}}>
|
|
65
|
-
<C style={{backgroundColor:`${
|
|
66
|
-
<
|
|
67
|
-
{
|
|
68
|
-
</
|
|
65
|
+
<C style={{backgroundColor:`${o.purple}20`,borderRadius:10,paddingHorizontal:6,paddingVertical:1.5}}>
|
|
66
|
+
<V style={{color:o.purple,fontSize:9.5,fontFamily:I.interBold}}>
|
|
67
|
+
{B.length}
|
|
68
|
+
</V>
|
|
69
69
|
</C>
|
|
70
|
-
<
|
|
71
|
-
<
|
|
72
|
-
</
|
|
70
|
+
<He onPress={()=>U("")}hitSlop={10}style={b.clearBtn}>
|
|
71
|
+
<Co color={o.grayTextWeak}size={13}/>
|
|
72
|
+
</He>
|
|
73
73
|
</C>}
|
|
74
74
|
</C>
|
|
75
75
|
|
|
76
76
|
<C style={b.toolbarRight}>
|
|
77
|
-
<O style={[b.toolbarBtn,{borderColor:`${
|
|
78
|
-
<
|
|
79
|
-
{
|
|
80
|
-
<
|
|
81
|
-
{
|
|
82
|
-
</
|
|
77
|
+
<O style={[b.toolbarBtn,{borderColor:`${o.errorColor}38`,backgroundColor:`${o.errorColor}0F`}]}onPress={Ie}hitSlop={6}>
|
|
78
|
+
<So color={o.errorColor}size={15}/>
|
|
79
|
+
{X.size>0&&<C style={b.trashBadge}>
|
|
80
|
+
<V style={b.trashBadgeText}>
|
|
81
|
+
{X.size}
|
|
82
|
+
</V>
|
|
83
83
|
</C>}
|
|
84
84
|
</O>
|
|
85
85
|
|
|
86
|
-
<O style={b.toolbarBtn}onPress={()=>
|
|
87
|
-
<
|
|
86
|
+
<O style={[b.toolbarBtn,k&&{borderColor:o.purple,backgroundColor:`${o.purple}15`}]}onPress={()=>ke(e=>!e)}hitSlop={6}accessibilityLabel={k?"Page Accordion Grouping Enabled (Tap for Plain List)":"Plain List Enabled (Tap for Page Accordion)"}accessibilityRole="button">
|
|
87
|
+
<Ve color={k?o.purple:o.grayTextStrong}size={16}/>
|
|
88
|
+
{k&&<C style={b.activeFilterDot}/>}
|
|
88
89
|
</O>
|
|
89
90
|
|
|
90
|
-
<O style={
|
|
91
|
-
<
|
|
92
|
-
{(x.size>0||V.size>0)&&<C style={b.activeFilterDot}/>}
|
|
91
|
+
<O style={b.toolbarBtn}onPress={()=>J(e=>e==="newest"?"oldest":"newest")}hitSlop={10}>
|
|
92
|
+
<To direction={Fe==="newest"?"down":"up"}color={o.grayTextStrong}size={18}/>
|
|
93
93
|
</O>
|
|
94
94
|
</C>
|
|
95
95
|
</C>
|
|
96
96
|
|
|
97
97
|
|
|
98
98
|
<C style={{flexDirection:"row",alignItems:"center",marginBottom:8,paddingHorizontal:12,gap:6}}>
|
|
99
|
-
<
|
|
100
|
-
{
|
|
101
|
-
<C style={{flexDirection:"row",alignItems:"center",paddingHorizontal:9,paddingVertical:4.5,borderRadius:8,backgroundColor:z
|
|
102
|
-
{
|
|
103
|
-
{
|
|
104
|
-
{
|
|
105
|
-
{
|
|
106
|
-
{
|
|
107
|
-
{
|
|
108
|
-
{
|
|
109
|
-
<
|
|
110
|
-
{
|
|
111
|
-
</
|
|
112
|
-
<C style={{backgroundColor:
|
|
113
|
-
<
|
|
114
|
-
{
|
|
115
|
-
</
|
|
99
|
+
<We horizontal showsHorizontalScrollIndicator={!1}style={{flex:1}}contentContainerStyle={{flexDirection:"row",alignItems:"center",gap:6,paddingRight:6}}>
|
|
100
|
+
{Oe.map(e=>{const T=K===e.id,z=e.color||o.purple,x=T?o.white:z;return<O key={e.id}onPress={()=>{le(T?"all":e.id)}}>
|
|
101
|
+
<C style={{flexDirection:"row",alignItems:"center",paddingHorizontal:9,paddingVertical:4.5,borderRadius:8,backgroundColor:T?z:`${z}12`,borderWidth:1,borderColor:T?z:`${z}30`,gap:5}}>
|
|
102
|
+
{e.id==="all"&&<Ve size={11}color={x}/>}
|
|
103
|
+
{e.id==="errors"&&<Lo size={11}color={x}/>}
|
|
104
|
+
{e.id==="success"&&<Ro size={11}color={x}/>}
|
|
105
|
+
{e.id==="slow"&&<Bo size={11}color={x}/>}
|
|
106
|
+
{e.id==="POST"&&<Po size={11}color={x}/>}
|
|
107
|
+
{e.id==="GET"&&<Eo size={11}color={x}/>}
|
|
108
|
+
{e.id==="graphql"&&<Mo size={11}color={x}/>}
|
|
109
|
+
<V style={{fontFamily:I.interBold,fontSize:10.5,color:T?o.white:o.primaryBlack}}>
|
|
110
|
+
{e.label}
|
|
111
|
+
</V>
|
|
112
|
+
<C style={{backgroundColor:T?"rgba(255,255,255,0.25)":`${z}20`,paddingHorizontal:5,paddingVertical:1,borderRadius:8}}>
|
|
113
|
+
<V style={{fontFamily:I.interBold,fontSize:9,color:T?o.white:z}}>
|
|
114
|
+
{e.count}
|
|
115
|
+
</V>
|
|
116
116
|
</C>
|
|
117
117
|
</C>
|
|
118
118
|
</O>})}
|
|
119
|
-
</
|
|
119
|
+
</We>
|
|
120
120
|
|
|
121
|
-
<O onPress={()=>
|
|
122
|
-
<C style={{flexDirection:"row",alignItems:"center",paddingHorizontal:10,paddingVertical:4.5,borderRadius:8,backgroundColor:
|
|
123
|
-
<
|
|
124
|
-
<
|
|
125
|
-
More Filters
|
|
126
|
-
</
|
|
127
|
-
{
|
|
128
|
-
<
|
|
129
|
-
{
|
|
130
|
-
</
|
|
121
|
+
<O onPress={()=>fe(!0)}style={{flexShrink:0}}>
|
|
122
|
+
<C style={{flexDirection:"row",alignItems:"center",paddingHorizontal:10,paddingVertical:4.5,borderRadius:8,backgroundColor:M?`${o.purple}20`:o.grayBackground,borderWidth:1,borderColor:M?o.purple:o.grayBorderSecondary,gap:5,shadowColor:o.black,shadowOpacity:.04,shadowRadius:2,shadowOffset:{width:0,height:1},elevation:1}}>
|
|
123
|
+
<Vo size={11}color={M?o.purple:o.grayText}/>
|
|
124
|
+
<V style={{fontFamily:I.interBold,fontSize:10.5,color:M?o.purple:o.grayText}}>
|
|
125
|
+
{oe("network.moreFilters","More Filters")}
|
|
126
|
+
</V>
|
|
127
|
+
{M&&<C style={{backgroundColor:o.purple,paddingHorizontal:4.5,paddingVertical:1,borderRadius:6}}>
|
|
128
|
+
<V style={{fontFamily:I.interBold,fontSize:8.5,color:o.white}}>
|
|
129
|
+
{Ee}
|
|
130
|
+
</V>
|
|
131
131
|
</C>}
|
|
132
132
|
</C>
|
|
133
133
|
</O>
|
|
134
134
|
</C>
|
|
135
135
|
|
|
136
136
|
|
|
137
|
-
{(
|
|
138
|
-
<
|
|
139
|
-
Showing {
|
|
140
|
-
</
|
|
141
|
-
<O onPress={()=>{
|
|
142
|
-
<
|
|
137
|
+
{(K!=="all"||F.trim().length>0||M||B.length!==G.length)&&<C style={{flexDirection:"row",alignItems:"center",justifyContent:"space-between",marginHorizontal:12,marginBottom:8,paddingHorizontal:10,paddingVertical:5.5,backgroundColor:`${o.purple}10`,borderRadius:8,borderWidth:1,borderColor:`${o.purple}25`}}>
|
|
138
|
+
<V style={{fontFamily:I.interMedium,fontSize:10.5,color:o.purple}}>
|
|
139
|
+
Showing {B.length} of {G.length} requests
|
|
140
|
+
</V>
|
|
141
|
+
<O onPress={()=>{U(""),le("all"),v(new Set),W(new Set),Y("all"),Z("all"),ee("time_desc"),de("all")}}>
|
|
142
|
+
<V style={{fontFamily:I.interBold,fontSize:10.5,color:o.errorColor}}>
|
|
143
143
|
Clear All Filters
|
|
144
|
-
</
|
|
144
|
+
</V>
|
|
145
145
|
</O>
|
|
146
146
|
</C>}
|
|
147
147
|
</C>
|
|
148
148
|
|
|
149
|
-
|
|
149
|
+
<De ref={Re}data={Be}keyExtractor={Pe}renderItem={$e}initialNumToRender={10}maxToRenderPerBatch={8}windowSize={5}updateCellsBatchingPeriod={40}removeClippedSubviews={!0}renderToHardwareTextureAndroid={!0}showsVerticalScrollIndicator={!1}ListEmptyComponent={<Ke isSearch={F.length>0||M||K!=="all"}searchQuery={F}customTitle={F.length>0?"No matching API requests":"No network activity"}onClearSearch={()=>{U(""),v(new Set),W(new Set),Y("all"),Z("all"),ee("time_desc"),le("all"),de("all")}}/>}ListFooterComponent={Q.length>0?<Xe count={k?B.length:Math.min(te,B.length)}totalCount={B.length}label="requests"hasMore={!k&&B.length>te}loadMoreStep={30}onLoadMore={()=>Se(e=>e+30)}/>:null}contentContainerStyle={[b.listContent,B.length===0&&{flexGrow:1}]}keyboardShouldPersistTaps="handled"/>
|
|
150
150
|
|
|
151
151
|
|
|
152
|
-
<
|
|
153
|
-
</C>});export default
|
|
152
|
+
<Je visible={Le}onClose={()=>fe(!1)}filters={Me}onApply={Ne}searchQuery={F}/>
|
|
153
|
+
</C>});export default No;
|