react-native-xenon 0.5.1 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +106 -11
- package/lib/commonjs/assets/icons/delete.png +0 -0
- package/lib/commonjs/theme/colors.js +5 -5
- package/lib/commonjs/ui/Xenon.js +26 -8
- package/lib/commonjs/ui/Xenon.js.map +1 -1
- package/lib/commonjs/ui/components/details/LogMessageDetails.js +1 -1
- package/lib/commonjs/ui/components/details/LogMessageDetails.js.map +1 -1
- package/lib/commonjs/ui/components/details/NetworkRequestDetails.js +1 -1
- package/lib/commonjs/ui/components/details/NetworkRequestDetails.js.map +1 -1
- package/lib/commonjs/ui/components/headers/DebuggerHeader.js +22 -7
- package/lib/commonjs/ui/components/headers/DebuggerHeader.js.map +1 -1
- package/lib/commonjs/ui/components/items/DebuggerHeaderItem.js +5 -4
- package/lib/commonjs/ui/components/items/DebuggerHeaderItem.js.map +1 -1
- package/lib/commonjs/ui/components/panels/ConsolePanel.js +1 -1
- package/lib/commonjs/ui/components/panels/ConsolePanel.js.map +1 -1
- package/lib/commonjs/ui/components/panels/NetworkPanel.js +8 -11
- package/lib/commonjs/ui/components/panels/NetworkPanel.js.map +1 -1
- package/lib/module/assets/icons/delete.png +0 -0
- package/lib/module/theme/colors.js +5 -5
- package/lib/module/ui/Xenon.js +26 -8
- package/lib/module/ui/Xenon.js.map +1 -1
- package/lib/module/ui/components/details/LogMessageDetails.js +1 -1
- package/lib/module/ui/components/details/LogMessageDetails.js.map +1 -1
- package/lib/module/ui/components/details/NetworkRequestDetails.js +1 -1
- package/lib/module/ui/components/details/NetworkRequestDetails.js.map +1 -1
- package/lib/module/ui/components/headers/DebuggerHeader.js +22 -7
- package/lib/module/ui/components/headers/DebuggerHeader.js.map +1 -1
- package/lib/module/ui/components/items/DebuggerHeaderItem.js +5 -4
- package/lib/module/ui/components/items/DebuggerHeaderItem.js.map +1 -1
- package/lib/module/ui/components/panels/ConsolePanel.js +1 -1
- package/lib/module/ui/components/panels/ConsolePanel.js.map +1 -1
- package/lib/module/ui/components/panels/NetworkPanel.js +8 -11
- package/lib/module/ui/components/panels/NetworkPanel.js.map +1 -1
- package/lib/typescript/commonjs/src/theme/colors.d.ts +5 -5
- package/lib/typescript/commonjs/src/types/common.d.ts +0 -1
- package/lib/typescript/commonjs/src/types/common.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/Xenon.d.ts +4 -1
- package/lib/typescript/commonjs/src/ui/Xenon.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/components/headers/DebuggerHeader.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ui/components/panels/NetworkPanel.d.ts.map +1 -1
- package/lib/typescript/module/src/theme/colors.d.ts +5 -5
- package/lib/typescript/module/src/types/common.d.ts +0 -1
- package/lib/typescript/module/src/types/common.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/Xenon.d.ts +4 -1
- package/lib/typescript/module/src/ui/Xenon.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/components/headers/DebuggerHeader.d.ts.map +1 -1
- package/lib/typescript/module/src/ui/components/panels/NetworkPanel.d.ts.map +1 -1
- package/package.json +5 -3
- package/src/assets/icons/delete.png +0 -0
- package/src/theme/colors.ts +5 -5
- package/src/types/common.ts +0 -2
- package/src/ui/Xenon.tsx +107 -91
- package/src/ui/components/details/LogMessageDetails.tsx +1 -1
- package/src/ui/components/details/NetworkRequestDetails.tsx +1 -1
- package/src/ui/components/headers/DebuggerHeader.tsx +29 -11
- package/src/ui/components/items/DebuggerHeaderItem.tsx +5 -4
- package/src/ui/components/panels/ConsolePanel.tsx +1 -1
- package/src/ui/components/panels/NetworkPanel.tsx +9 -13
- package/lib/commonjs/ui/components/headers/NetworkPanelHeader.js +0 -81
- package/lib/commonjs/ui/components/headers/NetworkPanelHeader.js.map +0 -1
- package/lib/module/ui/components/headers/NetworkPanelHeader.js +0 -81
- package/lib/module/ui/components/headers/NetworkPanelHeader.js.map +0 -1
- package/lib/typescript/commonjs/src/ui/components/headers/NetworkPanelHeader.d.ts +0 -2
- package/lib/typescript/commonjs/src/ui/components/headers/NetworkPanelHeader.d.ts.map +0 -1
- package/lib/typescript/module/src/ui/components/headers/NetworkPanelHeader.d.ts +0 -2
- package/lib/typescript/module/src/ui/components/headers/NetworkPanelHeader.d.ts.map +0 -1
- package/src/ui/components/headers/NetworkPanelHeader.tsx +0 -69
package/src/ui/Xenon.tsx
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { enableMapSet } from 'immer';
|
2
2
|
import { createRef, memo, useImperativeHandle, useMemo, useRef } from 'react';
|
3
|
-
import { Animated, StyleSheet, useWindowDimensions } from 'react-native';
|
3
|
+
import { Animated, Platform, StyleSheet, useWindowDimensions } from 'react-native';
|
4
4
|
import { SafeAreaProvider, SafeAreaView } from 'react-native-safe-area-context';
|
5
5
|
import { useImmer } from 'use-immer';
|
6
6
|
import MainContext from '../contexts/MainContext';
|
@@ -9,6 +9,7 @@ import { useConsoleInterceptor, useNetworkInterceptor } from '../hooks';
|
|
9
9
|
import colors from '../theme/colors';
|
10
10
|
import { DebuggerPanel, type DebuggerState } from '../types';
|
11
11
|
import { Bubble, ConsolePanel, DebuggerHeader, DetailsViewer, NetworkPanel } from './components';
|
12
|
+
import { FullWindowOverlay } from 'react-native-screens';
|
12
13
|
|
13
14
|
namespace Xenon {
|
14
15
|
interface Methods {
|
@@ -25,115 +26,130 @@ namespace Xenon {
|
|
25
26
|
}
|
26
27
|
|
27
28
|
enableMapSet();
|
28
|
-
|
29
29
|
const ref = createRef<Methods>();
|
30
30
|
|
31
31
|
const styles = StyleSheet.create({
|
32
32
|
container: {
|
33
33
|
flex: 1,
|
34
34
|
...StyleSheet.absoluteFillObject,
|
35
|
+
pointerEvents: 'box-none',
|
35
36
|
top: undefined,
|
36
37
|
bottom: undefined,
|
37
|
-
zIndex: 9999,
|
38
|
+
...(Platform.OS === 'android' ? { zIndex: 9999 } : {}),
|
38
39
|
backgroundColor: colors.lightGray,
|
40
|
+
borderBottomColor: colors.gray,
|
41
|
+
borderBottomWidth: StyleSheet.hairlineWidth,
|
39
42
|
},
|
40
43
|
safeArea: {
|
41
44
|
flex: 1,
|
42
45
|
},
|
43
46
|
});
|
44
47
|
|
45
|
-
const Debugger = ({
|
46
|
-
autoInspectNetworkEnabled = true,
|
47
|
-
autoInspectConsoleEnabled = true,
|
48
|
-
bubbleSize = 40,
|
49
|
-
idleBubbleOpacity = 0.5,
|
50
|
-
}: Props) => {
|
51
|
-
const { width, height } = useWindowDimensions();
|
52
|
-
const pan = useRef(new Animated.ValueXY({ x: 0, y: getVerticalSafeMargin(height) }));
|
53
|
-
|
54
|
-
const [debuggerState, setDebuggerState] = useImmer<DebuggerState>({
|
55
|
-
visibility: 'hidden',
|
56
|
-
position: 'bottom',
|
57
|
-
selectedPanel: DebuggerPanel.Network,
|
58
|
-
detailsData: null,
|
59
|
-
});
|
60
|
-
|
61
|
-
const detailsShown = useMemo(
|
62
|
-
() => !debuggerState.selectedPanel && !!debuggerState.detailsData,
|
63
|
-
[debuggerState.detailsData, debuggerState.selectedPanel],
|
64
|
-
);
|
65
|
-
|
66
|
-
const containerStyle = useMemo(
|
67
|
-
() => [
|
68
|
-
styles.container,
|
69
|
-
{ [debuggerState.position]: 0, height: Math.min(width, height) * 0.75 },
|
70
|
-
],
|
71
|
-
[debuggerState.position, height, width],
|
72
|
-
);
|
73
|
-
|
74
|
-
const networkInterceptor = useNetworkInterceptor({
|
75
|
-
autoEnabled: autoInspectNetworkEnabled,
|
76
|
-
});
|
77
|
-
|
78
|
-
const consoleInterceptor = useConsoleInterceptor({
|
79
|
-
autoEnabled: autoInspectConsoleEnabled,
|
80
|
-
});
|
81
|
-
|
82
|
-
useImperativeHandle(ref, () => {
|
83
|
-
const changeVisibility = (condition: boolean, value: DebuggerState['visibility']) => {
|
84
|
-
if (!condition) return;
|
85
|
-
|
86
|
-
setDebuggerState(draft => {
|
87
|
-
draft.visibility = value;
|
88
|
-
});
|
89
|
-
};
|
90
|
-
|
91
|
-
return {
|
92
|
-
isVisible() {
|
93
|
-
return debuggerState.visibility !== 'hidden';
|
94
|
-
},
|
95
|
-
show() {
|
96
|
-
changeVisibility(!this.isVisible(), 'bubble');
|
97
|
-
},
|
98
|
-
hide() {
|
99
|
-
changeVisibility(this.isVisible(), 'hidden');
|
100
|
-
},
|
101
|
-
};
|
102
|
-
}, [debuggerState.visibility, setDebuggerState]);
|
103
|
-
|
104
|
-
return (
|
105
|
-
<MainContext.Provider
|
106
|
-
value={{ debuggerState, setDebuggerState, networkInterceptor, consoleInterceptor }}
|
107
|
-
>
|
108
|
-
{debuggerState.visibility === 'bubble' && (
|
109
|
-
<Bubble
|
110
|
-
bubbleSize={bubbleSize}
|
111
|
-
idleBubbleOpacity={idleBubbleOpacity}
|
112
|
-
pan={pan}
|
113
|
-
screenWidth={width}
|
114
|
-
screenHeight={height}
|
115
|
-
/>
|
116
|
-
)}
|
117
|
-
|
118
|
-
{debuggerState.visibility === 'panel' && (
|
119
|
-
<SafeAreaProvider style={containerStyle}>
|
120
|
-
<SafeAreaView style={styles.safeArea}>
|
121
|
-
<DebuggerHeader />
|
122
|
-
{debuggerState.selectedPanel === DebuggerPanel.Network && <NetworkPanel />}
|
123
|
-
{debuggerState.selectedPanel === DebuggerPanel.Console && <ConsolePanel />}
|
124
|
-
{detailsShown && <DetailsViewer />}
|
125
|
-
</SafeAreaView>
|
126
|
-
</SafeAreaProvider>
|
127
|
-
)}
|
128
|
-
</MainContext.Provider>
|
129
|
-
);
|
130
|
-
};
|
131
|
-
|
132
48
|
export const isVisible = () => ref.current?.isVisible() ?? false;
|
133
49
|
export const show = (): void => ref.current?.show();
|
134
50
|
export const hide = (): void => ref.current?.hide();
|
135
51
|
|
136
|
-
|
52
|
+
const Debugger = memo(
|
53
|
+
({
|
54
|
+
autoInspectNetworkEnabled = true,
|
55
|
+
autoInspectConsoleEnabled = true,
|
56
|
+
bubbleSize = 40,
|
57
|
+
idleBubbleOpacity = 0.5,
|
58
|
+
}: Props) => {
|
59
|
+
const { width, height } = useWindowDimensions();
|
60
|
+
const pan = useRef(new Animated.ValueXY({ x: 0, y: getVerticalSafeMargin(height) }));
|
61
|
+
|
62
|
+
const [debuggerState, setDebuggerState] = useImmer<DebuggerState>({
|
63
|
+
visibility: 'hidden',
|
64
|
+
position: 'bottom',
|
65
|
+
selectedPanel: DebuggerPanel.Network,
|
66
|
+
detailsData: null,
|
67
|
+
});
|
68
|
+
|
69
|
+
const detailsShown = useMemo(
|
70
|
+
() => !debuggerState.selectedPanel && !!debuggerState.detailsData,
|
71
|
+
[debuggerState.detailsData, debuggerState.selectedPanel],
|
72
|
+
);
|
73
|
+
|
74
|
+
const containerStyle = useMemo(
|
75
|
+
() => [
|
76
|
+
styles.container,
|
77
|
+
{ [debuggerState.position]: 0, height: Math.min(width, height) * 0.75 },
|
78
|
+
],
|
79
|
+
[debuggerState.position, height, width],
|
80
|
+
);
|
81
|
+
|
82
|
+
const networkInterceptor = useNetworkInterceptor({
|
83
|
+
autoEnabled: autoInspectNetworkEnabled,
|
84
|
+
});
|
85
|
+
|
86
|
+
const consoleInterceptor = useConsoleInterceptor({
|
87
|
+
autoEnabled: autoInspectConsoleEnabled,
|
88
|
+
});
|
89
|
+
|
90
|
+
useImperativeHandle(ref, () => {
|
91
|
+
const changeVisibility = (condition: boolean, value: DebuggerState['visibility']) => {
|
92
|
+
if (!condition) return;
|
93
|
+
|
94
|
+
setDebuggerState(draft => {
|
95
|
+
draft.visibility = value;
|
96
|
+
});
|
97
|
+
};
|
98
|
+
|
99
|
+
return {
|
100
|
+
isVisible() {
|
101
|
+
return debuggerState.visibility !== 'hidden';
|
102
|
+
},
|
103
|
+
show() {
|
104
|
+
changeVisibility(!this.isVisible(), 'bubble');
|
105
|
+
},
|
106
|
+
hide() {
|
107
|
+
changeVisibility(this.isVisible(), 'hidden');
|
108
|
+
},
|
109
|
+
};
|
110
|
+
}, [debuggerState.visibility, setDebuggerState]);
|
111
|
+
|
112
|
+
return (
|
113
|
+
<MainContext.Provider
|
114
|
+
value={{ debuggerState, setDebuggerState, networkInterceptor, consoleInterceptor }}
|
115
|
+
>
|
116
|
+
{debuggerState.visibility === 'bubble' && (
|
117
|
+
<Bubble
|
118
|
+
bubbleSize={bubbleSize}
|
119
|
+
idleBubbleOpacity={idleBubbleOpacity}
|
120
|
+
pan={pan}
|
121
|
+
screenWidth={width}
|
122
|
+
screenHeight={height}
|
123
|
+
/>
|
124
|
+
)}
|
125
|
+
|
126
|
+
{debuggerState.visibility === 'panel' && (
|
127
|
+
<SafeAreaProvider style={containerStyle}>
|
128
|
+
<SafeAreaView style={styles.safeArea}>
|
129
|
+
<DebuggerHeader />
|
130
|
+
{debuggerState.selectedPanel === DebuggerPanel.Network && <NetworkPanel />}
|
131
|
+
{debuggerState.selectedPanel === DebuggerPanel.Console && <ConsolePanel />}
|
132
|
+
{detailsShown && <DetailsViewer />}
|
133
|
+
</SafeAreaView>
|
134
|
+
</SafeAreaProvider>
|
135
|
+
)}
|
136
|
+
</MainContext.Provider>
|
137
|
+
);
|
138
|
+
},
|
139
|
+
);
|
140
|
+
|
141
|
+
export function Component(props: Props) {
|
142
|
+
if (Platform.OS === 'ios') {
|
143
|
+
return (
|
144
|
+
<FullWindowOverlay>
|
145
|
+
<Debugger {...props} />
|
146
|
+
</FullWindowOverlay>
|
147
|
+
);
|
148
|
+
}
|
149
|
+
|
150
|
+
return <Debugger {...props} />;
|
151
|
+
}
|
152
|
+
|
137
153
|
Component.displayName = 'Xenon';
|
138
154
|
}
|
139
155
|
|
@@ -7,6 +7,8 @@ import icons from '../../../theme/icons';
|
|
7
7
|
import { DebuggerPanel, NetworkType, type DetailTab } from '../../../types';
|
8
8
|
import DebuggerHeaderItem from '../items/DebuggerHeaderItem';
|
9
9
|
|
10
|
+
let isSharing = false;
|
11
|
+
|
10
12
|
export default function DebuggerHeader() {
|
11
13
|
const {
|
12
14
|
debuggerState: { detailsData, selectedPanel },
|
@@ -62,16 +64,28 @@ export default function DebuggerHeader() {
|
|
62
64
|
<>
|
63
65
|
<DebuggerHeaderItem
|
64
66
|
content={icons.share}
|
65
|
-
onPress={() => {
|
66
|
-
if (detailsData.data.type === NetworkType.WS) return;
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
67
|
+
onPress={async () => {
|
68
|
+
if (isSharing || detailsData.data.type === NetworkType.WS) return;
|
69
|
+
|
70
|
+
try {
|
71
|
+
isSharing = true;
|
72
|
+
setDebuggerState(draft => {
|
73
|
+
draft.visibility = 'bubble';
|
74
|
+
});
|
75
|
+
|
76
|
+
await Share.share({
|
77
|
+
message: convertToCurl(
|
78
|
+
detailsData.data.method,
|
79
|
+
detailsData.data.url,
|
80
|
+
detailsData.data.requestHeaders,
|
81
|
+
detailsData.data.body,
|
82
|
+
),
|
83
|
+
});
|
84
|
+
} catch (error) {
|
85
|
+
// Handle error
|
86
|
+
} finally {
|
87
|
+
isSharing = false;
|
88
|
+
}
|
75
89
|
}}
|
76
90
|
/>
|
77
91
|
|
@@ -226,13 +240,17 @@ export default function DebuggerHeader() {
|
|
226
240
|
const styles = StyleSheet.create({
|
227
241
|
container: {
|
228
242
|
flexGrow: 0,
|
243
|
+
borderTopColor: colors.gray,
|
244
|
+
borderTopWidth: StyleSheet.hairlineWidth,
|
245
|
+
borderBottomColor: colors.gray,
|
246
|
+
borderBottomWidth: StyleSheet.hairlineWidth,
|
229
247
|
},
|
230
248
|
contentContainer: {
|
231
249
|
padding: 8,
|
232
250
|
columnGap: 8,
|
233
251
|
},
|
234
252
|
divider: {
|
235
|
-
width:
|
253
|
+
width: StyleSheet.hairlineWidth,
|
236
254
|
backgroundColor: colors.gray,
|
237
255
|
},
|
238
256
|
});
|
@@ -61,12 +61,13 @@ const styles = StyleSheet.create({
|
|
61
61
|
},
|
62
62
|
title: {
|
63
63
|
fontSize: 14,
|
64
|
-
lineHeight:
|
65
|
-
fontWeight: '
|
64
|
+
lineHeight: 18,
|
65
|
+
fontWeight: '600',
|
66
66
|
color: colors.black,
|
67
67
|
},
|
68
68
|
icon: {
|
69
|
-
width:
|
70
|
-
height:
|
69
|
+
width: 18,
|
70
|
+
height: 18,
|
71
|
+
tintColor: colors.black,
|
71
72
|
},
|
72
73
|
});
|
@@ -9,7 +9,6 @@ import {
|
|
9
9
|
type ID,
|
10
10
|
type WebSocketRequest,
|
11
11
|
} from '../../../types';
|
12
|
-
import NetworkPanelHeader from '../headers/NetworkPanelHeader';
|
13
12
|
import NetworkPanelItem from '../items/NetworkPanelItem';
|
14
13
|
|
15
14
|
const Separator = () => <View style={styles.divider} />;
|
@@ -46,17 +45,14 @@ export default function NetworkPanel() {
|
|
46
45
|
);
|
47
46
|
|
48
47
|
return (
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
style={styles.container}
|
58
|
-
/>
|
59
|
-
</>
|
48
|
+
<FlatList
|
49
|
+
inverted
|
50
|
+
data={data}
|
51
|
+
renderItem={renderItem}
|
52
|
+
keyExtractor={([key]) => key}
|
53
|
+
ItemSeparatorComponent={Separator}
|
54
|
+
style={styles.container}
|
55
|
+
/>
|
60
56
|
);
|
61
57
|
}
|
62
58
|
|
@@ -66,7 +62,7 @@ const styles = StyleSheet.create({
|
|
66
62
|
paddingHorizontal: 8,
|
67
63
|
},
|
68
64
|
divider: {
|
69
|
-
height:
|
65
|
+
height: StyleSheet.hairlineWidth,
|
70
66
|
backgroundColor: colors.gray,
|
71
67
|
},
|
72
68
|
});
|
@@ -1,81 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.default = NetworkPanelHeader;
|
7
|
-
var _reactNative = require("react-native");
|
8
|
-
var _colors = _interopRequireDefault(require("../../../theme/colors"));
|
9
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
10
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
11
|
-
function NetworkPanelHeader() {
|
12
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
13
|
-
style: styles.container,
|
14
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
15
|
-
style: styles.headerColumn,
|
16
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
17
|
-
numberOfLines: 1,
|
18
|
-
style: styles.itemText,
|
19
|
-
children: "Method"
|
20
|
-
})
|
21
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
22
|
-
style: styles.divider
|
23
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
24
|
-
style: [styles.headerColumn, styles.headerPathColumn],
|
25
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
26
|
-
numberOfLines: 1,
|
27
|
-
style: styles.itemText,
|
28
|
-
children: "Path"
|
29
|
-
})
|
30
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
31
|
-
style: styles.divider
|
32
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
33
|
-
style: [styles.headerColumn, styles.headerDurationColumn],
|
34
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
35
|
-
numberOfLines: 1,
|
36
|
-
style: styles.itemText,
|
37
|
-
children: "Duration"
|
38
|
-
})
|
39
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
40
|
-
style: styles.divider
|
41
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
42
|
-
style: styles.headerColumn,
|
43
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
44
|
-
numberOfLines: 1,
|
45
|
-
style: styles.itemText,
|
46
|
-
children: "Status"
|
47
|
-
})
|
48
|
-
})]
|
49
|
-
});
|
50
|
-
}
|
51
|
-
const styles = _reactNative.StyleSheet.create({
|
52
|
-
container: {
|
53
|
-
marginHorizontal: 8,
|
54
|
-
flexDirection: 'row',
|
55
|
-
alignItems: 'center',
|
56
|
-
backgroundColor: _colors.default.gray,
|
57
|
-
borderRadius: 4
|
58
|
-
},
|
59
|
-
headerPathColumn: {
|
60
|
-
flex: 5
|
61
|
-
},
|
62
|
-
headerDurationColumn: {
|
63
|
-
flex: 2
|
64
|
-
},
|
65
|
-
headerColumn: {
|
66
|
-
flex: 1.5,
|
67
|
-
flexShrink: 1,
|
68
|
-
paddingVertical: 4,
|
69
|
-
paddingLeft: 8
|
70
|
-
},
|
71
|
-
divider: {
|
72
|
-
height: 16,
|
73
|
-
width: 1,
|
74
|
-
backgroundColor: _colors.default.gray
|
75
|
-
},
|
76
|
-
itemText: {
|
77
|
-
fontSize: 14,
|
78
|
-
color: _colors.default.black
|
79
|
-
}
|
80
|
-
});
|
81
|
-
//# sourceMappingURL=NetworkPanelHeader.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_colors","_interopRequireDefault","_jsxRuntime","e","__esModule","default","NetworkPanelHeader","jsxs","View","style","styles","container","children","jsx","headerColumn","Text","numberOfLines","itemText","divider","headerPathColumn","headerDurationColumn","StyleSheet","create","marginHorizontal","flexDirection","alignItems","backgroundColor","colors","gray","borderRadius","flex","flexShrink","paddingVertical","paddingLeft","height","width","fontSize","color","black"],"sourceRoot":"../../../../../src","sources":["ui/components/headers/NetworkPanelHeader.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAC,sBAAA,CAAAF,OAAA;AAA2C,IAAAG,WAAA,GAAAH,OAAA;AAAA,SAAAE,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAA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-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.default = NetworkPanelHeader;
|
7
|
-
var _reactNative = require("react-native");
|
8
|
-
var _colors = _interopRequireDefault(require("../../../theme/colors"));
|
9
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
10
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
11
|
-
function NetworkPanelHeader() {
|
12
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
13
|
-
style: styles.container,
|
14
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
15
|
-
style: styles.headerColumn,
|
16
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
17
|
-
numberOfLines: 1,
|
18
|
-
style: styles.itemText,
|
19
|
-
children: "Method"
|
20
|
-
})
|
21
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
22
|
-
style: styles.divider
|
23
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
24
|
-
style: [styles.headerColumn, styles.headerPathColumn],
|
25
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
26
|
-
numberOfLines: 1,
|
27
|
-
style: styles.itemText,
|
28
|
-
children: "Path"
|
29
|
-
})
|
30
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
31
|
-
style: styles.divider
|
32
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
33
|
-
style: [styles.headerColumn, styles.headerDurationColumn],
|
34
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
35
|
-
numberOfLines: 1,
|
36
|
-
style: styles.itemText,
|
37
|
-
children: "Duration"
|
38
|
-
})
|
39
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
40
|
-
style: styles.divider
|
41
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
42
|
-
style: styles.headerColumn,
|
43
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
44
|
-
numberOfLines: 1,
|
45
|
-
style: styles.itemText,
|
46
|
-
children: "Status"
|
47
|
-
})
|
48
|
-
})]
|
49
|
-
});
|
50
|
-
}
|
51
|
-
const styles = _reactNative.StyleSheet.create({
|
52
|
-
container: {
|
53
|
-
marginHorizontal: 8,
|
54
|
-
flexDirection: 'row',
|
55
|
-
alignItems: 'center',
|
56
|
-
backgroundColor: _colors.default.gray,
|
57
|
-
borderRadius: 4
|
58
|
-
},
|
59
|
-
headerPathColumn: {
|
60
|
-
flex: 5
|
61
|
-
},
|
62
|
-
headerDurationColumn: {
|
63
|
-
flex: 2
|
64
|
-
},
|
65
|
-
headerColumn: {
|
66
|
-
flex: 1.5,
|
67
|
-
flexShrink: 1,
|
68
|
-
paddingVertical: 4,
|
69
|
-
paddingLeft: 8
|
70
|
-
},
|
71
|
-
divider: {
|
72
|
-
height: 16,
|
73
|
-
width: 1,
|
74
|
-
backgroundColor: _colors.default.gray
|
75
|
-
},
|
76
|
-
itemText: {
|
77
|
-
fontSize: 14,
|
78
|
-
color: _colors.default.black
|
79
|
-
}
|
80
|
-
});
|
81
|
-
//# sourceMappingURL=NetworkPanelHeader.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_colors","_interopRequireDefault","_jsxRuntime","e","__esModule","default","NetworkPanelHeader","jsxs","View","style","styles","container","children","jsx","headerColumn","Text","numberOfLines","itemText","divider","headerPathColumn","headerDurationColumn","StyleSheet","create","marginHorizontal","flexDirection","alignItems","backgroundColor","colors","gray","borderRadius","flex","flexShrink","paddingVertical","paddingLeft","height","width","fontSize","color","black"],"sourceRoot":"../../../../../src","sources":["ui/components/headers/NetworkPanelHeader.tsx"],"mappings":";;;;;;AAAA,IAAAA,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,CAAC;EACDX,QAAQ,EAAE;IACRmB,QAAQ,EAAE,EAAE;IACZC,KAAK,EAAEV,eAAM,CAACW;EAChB;AACF,CAAC,CAAC","ignoreList":[]}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"NetworkPanelHeader.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/headers/NetworkPanelHeader.tsx"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,UAAU,kBAAkB,4CAkCzC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"NetworkPanelHeader.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/components/headers/NetworkPanelHeader.tsx"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,UAAU,kBAAkB,4CAkCzC"}
|
@@ -1,69 +0,0 @@
|
|
1
|
-
import { StyleSheet, Text, View } from 'react-native';
|
2
|
-
import colors from '../../../theme/colors';
|
3
|
-
|
4
|
-
export default function NetworkPanelHeader() {
|
5
|
-
return (
|
6
|
-
<View style={styles.container}>
|
7
|
-
<View style={styles.headerColumn}>
|
8
|
-
<Text numberOfLines={1} style={styles.itemText}>
|
9
|
-
Method
|
10
|
-
</Text>
|
11
|
-
</View>
|
12
|
-
|
13
|
-
<View style={styles.divider} />
|
14
|
-
|
15
|
-
<View style={[styles.headerColumn, styles.headerPathColumn]}>
|
16
|
-
<Text numberOfLines={1} style={styles.itemText}>
|
17
|
-
Path
|
18
|
-
</Text>
|
19
|
-
</View>
|
20
|
-
|
21
|
-
<View style={styles.divider} />
|
22
|
-
|
23
|
-
<View style={[styles.headerColumn, styles.headerDurationColumn]}>
|
24
|
-
<Text numberOfLines={1} style={styles.itemText}>
|
25
|
-
Duration
|
26
|
-
</Text>
|
27
|
-
</View>
|
28
|
-
|
29
|
-
<View style={styles.divider} />
|
30
|
-
|
31
|
-
<View style={styles.headerColumn}>
|
32
|
-
<Text numberOfLines={1} style={styles.itemText}>
|
33
|
-
Status
|
34
|
-
</Text>
|
35
|
-
</View>
|
36
|
-
</View>
|
37
|
-
);
|
38
|
-
}
|
39
|
-
|
40
|
-
const styles = StyleSheet.create({
|
41
|
-
container: {
|
42
|
-
marginHorizontal: 8,
|
43
|
-
flexDirection: 'row',
|
44
|
-
alignItems: 'center',
|
45
|
-
backgroundColor: colors.gray,
|
46
|
-
borderRadius: 4,
|
47
|
-
},
|
48
|
-
headerPathColumn: {
|
49
|
-
flex: 5,
|
50
|
-
},
|
51
|
-
headerDurationColumn: {
|
52
|
-
flex: 2,
|
53
|
-
},
|
54
|
-
headerColumn: {
|
55
|
-
flex: 1.5,
|
56
|
-
flexShrink: 1,
|
57
|
-
paddingVertical: 4,
|
58
|
-
paddingLeft: 8,
|
59
|
-
},
|
60
|
-
divider: {
|
61
|
-
height: 16,
|
62
|
-
width: 1,
|
63
|
-
backgroundColor: colors.gray,
|
64
|
-
},
|
65
|
-
itemText: {
|
66
|
-
fontSize: 14,
|
67
|
-
color: colors.black,
|
68
|
-
},
|
69
|
-
});
|