File tree Expand file tree Collapse file tree 10 files changed +35
-42
lines changed Expand file tree Collapse file tree 10 files changed +35
-42
lines changed Original file line number Diff line number Diff line change @@ -118,8 +118,10 @@ export default function ComponentMap({
118
118
minWidth : 60 ,
119
119
maxWidth : 250 ,
120
120
lineHeight : '18px' ,
121
- zIndex : 100 ,
122
121
pointerEvents : 'all !important' ,
122
+ margin : 0 ,
123
+ padding : 0 ,
124
+ borderRadius : '8px' ,
123
125
} ;
124
126
125
127
const scrollStyle : { } = {
Original file line number Diff line number Diff line change @@ -33,9 +33,9 @@ const tooltipStyles = {
33
33
...defaultStyles ,
34
34
minWidth : 60 ,
35
35
lineHeight : '18px' ,
36
- zIndex : 100 ,
37
36
pointerEvents : 'all !important' ,
38
- padding : '12px' ,
37
+ padding : '8px' ,
38
+ borderRadius : '8px' ,
39
39
} ;
40
40
41
41
const BarGraph = ( props : BarGraphProps ) : JSX . Element => {
Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ const radialGraph = (props) => {
30
30
margin : 0 ,
31
31
size : '75%' ,
32
32
background : 'transparent' ,
33
- // background: '#242529',
34
33
image : props . overLimit
35
34
? 'https://static.vecteezy.com/system/resources/thumbnails/012/042/301/small/warning-sign-icon-transparent-background-free-png.png'
36
35
: undefined ,
@@ -51,7 +50,7 @@ const radialGraph = (props) => {
51
50
track : {
52
51
background : '#161617' ,
53
52
strokeWidth : '3%' ,
54
- margin : 0 , // margin is in pixels
53
+ margin : 0 ,
55
54
dropShadow : {
56
55
enabled : true ,
57
56
top : - 3 ,
@@ -111,18 +110,18 @@ const radialGraph = (props) => {
111
110
< div className = 'metric' >
112
111
< ReactHover options = { optionsCursorTrueWithMargin } >
113
112
< Trigger type = 'trigger' >
114
- < div id = 'chart' >
113
+ < div id = 'chart' className = 'chart-container' >
115
114
< Charts
116
115
options = { state . options }
117
116
series = { state . series }
118
117
type = 'radialBar'
119
- height = { 350 }
120
- width = { 350 }
118
+ height = { 250 }
119
+ width = { 250 }
121
120
/>
122
121
</ div >
123
122
</ Trigger >
124
123
< Hover type = 'hover' >
125
- < div style = { { zIndex : 1 , position : 'relative' , padding : '0.5rem 1rem' } } id = 'hover-box' >
124
+ < div className = 'metric-tooltip' id = 'hover-box' >
126
125
< p >
127
126
< strong > { props . name } </ strong >
128
127
</ p >
Original file line number Diff line number Diff line change 113
113
height : 44px ;
114
114
display : flex ;
115
115
align-items : center ;
116
- border-bottom : 1px solid #e5e7eb ;
117
116
background-color : white ;
118
117
}
119
118
Original file line number Diff line number Diff line change 7
7
background-color : white ;
8
8
max-width : 1200px ;
9
9
justify-content : space-around ;
10
+ border-bottom : 1px solid #e5e7eb ;
10
11
}
11
12
12
13
.routesForm {
68
69
69
70
// bar graph background
70
71
.perf-rect {
71
- fill : white ;
72
+ fill : #f9fafb ;
73
+ }
74
+
75
+ .bargraph-position {
76
+ background-color : #f9fafb ;
72
77
}
Original file line number Diff line number Diff line change 61
61
.main-navbar-container {
62
62
border-bottom : 1px solid #e5e7eb ;
63
63
background : white ;
64
- padding : 5px 24px ;
64
+ padding : 4. 5px 24px ;
65
65
}
66
66
}
67
67
68
68
// tool tip styles
69
69
.tooltip-header {
70
- padding : 12px ;
70
+ padding : 8 px 8 px 8 px 12px ;
71
71
background-color : #14b8a6 ;
72
+ border : 1px solid #0d9488 ;
72
73
border-radius : 8px ;
73
- border-bottom : 1px solid #e5e7eb ;
74
74
}
75
75
76
76
.tooltip-title {
77
77
margin : 0 ;
78
- font-size : 16 px ;
78
+ font-size : 14 px ;
79
79
font-weight : 500 ;
80
80
color : #f3f4f6 ;
81
81
}
89
89
}
90
90
91
91
.tooltip-section {
92
- padding : 12px ;
92
+ padding : 8 px 12px ;
93
93
border-bottom : 1px solid #e5e7eb ;
94
94
transition : background-color 150ms ease ;
95
95
}
152
152
// Web Metrics Container
153
153
.web-metrics-container {
154
154
display : grid ;
155
- grid-template-columns : auto auto ;
156
- justify-content : center ;
155
+ grid-template-columns : repeat (3 , 1fr );
157
156
}
158
157
159
- // container for metrics
160
158
.metric {
161
- min-height : 200px ;
162
- min-width : 200px ;
163
- }
164
-
165
- .bargraph {
166
- position : relative ;
167
- margin-top : 1rem ;
168
- }
169
-
170
- .bar-graph-axis {
171
- stroke : cornflowerblue ;
159
+ width : 100% ;
160
+ display : flex ;
161
+ justify-content : center ;
162
+ align-items : center ;
172
163
}
173
164
174
165
#hover-box {
175
- max-width : 230 px ;
166
+ max-width : 250 px ;
176
167
background-color : #51565e ;
177
- border-radius : 5 px ;
168
+ border-radius : 8 px ;
178
169
color : white ;
179
170
}
180
171
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ const metrics = {};
19
19
function setupKeepAlive ( ) {
20
20
//ellie
21
21
// Create an alarm that triggers every 4.9 minutes (under the 5-minute limit)
22
- chrome . alarms . create ( 'keepAlive' , { periodInMinutes : 4.9 } ) ;
22
+ chrome . alarms . create ( 'keepAlive' , { periodInMinutes : 1 } ) ;
23
23
24
24
chrome . alarms . onAlarm . addListener ( ( alarm ) => {
25
25
if ( alarm . name === 'keepAlive' ) {
@@ -30,12 +30,9 @@ function setupKeepAlive() {
30
30
}
31
31
// Ping the service worker to keep it alive
32
32
function pingServiceWorker ( ) {
33
- chrome . runtime . getBackgroundPage ( ( bgPage ) => {
34
- if ( bgPage ) {
35
- console . log ( 'Service worker is alive' ) ;
36
- } else {
37
- console . warn ( 'Failed to ping the service worker.' ) ;
38
- }
33
+ // Use a lightweight API call to keep the service worker active
34
+ chrome . runtime . getPlatformInfo ( ( ) => {
35
+ console . log ( 'Service worker pinged successfully' ) ;
39
36
} ) ;
40
37
}
41
38
Original file line number Diff line number Diff line change 4
4
< meta charset ="UTF-8 " />
5
5
< meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
6
6
< meta http-equiv ="X-UA-Compatible " content ="ie=edge " />
7
- < title > Reactime v26</ title >
7
+ < title > Reactime v26.0 </ title >
8
8
</ head >
9
9
10
10
< body >
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " Reactime" ,
3
- "version" : " 26.0.0 " ,
3
+ "version" : " 26.0" ,
4
4
"devtools_page" : " devtools.html" ,
5
5
"description" : " A Chrome extension that helps debug React applications by memorizing the state of components with every render." ,
6
6
"manifest_version" : 3 ,
Original file line number Diff line number Diff line change 4
4
< meta charset ="UTF-8 " />
5
5
< meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
6
6
< meta http-equiv ="X-UA-Compatible " content ="ie=edge " />
7
- < title style ="color: #ffffff "> Reactime 26 .0</ title >
7
+ < title style ="color: #ffffff "> Reactime v26 .0</ title >
8
8
</ head >
9
9
10
10
< body >
You can’t perform that action at this time.
0 commit comments