Extends the Chrome Developer Tools, adding a new Network Panel in the Developer Tools window with better searching and response previews. https://leviolson.com/posts/chrome-ext-better-network-panel
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

424 lines
9.6 KiB

  1. [ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak {
  2. display: none !important;
  3. }
  4. * {
  5. -webkit-box-sizing: border-box;
  6. -moz-box-sizing: border-box;
  7. box-sizing: border-box;
  8. }
  9. body {
  10. background: #fff;
  11. margin: 0;
  12. position: relative;
  13. }
  14. div.wrap {
  15. margin: 0px;
  16. background-color: #EFEFEF;
  17. input {
  18. border: 1px solid darkgray;
  19. width: 260px;
  20. border-radius: 0px;
  21. margin: 0;
  22. padding: 2px 8px;
  23. }
  24. span.label {
  25. margin: 0 10px;
  26. }
  27. span.searchterm {
  28. background-color: hsl(111, 100%, 73%); // #bfb;
  29. border-radius: 3px;
  30. padding: 3px 6px;
  31. margin: 1px 0;
  32. display: inline-block;
  33. &.neg {
  34. background-color: hsl(1, 75%, 70%);
  35. }
  36. }
  37. span.operator {
  38. font: normal normal bold 11px/25px sans-serif;
  39. cursor: pointer;
  40. display: inline-block;
  41. width: 25px;
  42. text-align: center;
  43. }
  44. span.recent {
  45. padding-left: 75px;
  46. }
  47. div#recent-searches {
  48. display: inline;
  49. }
  50. span.recents {
  51. background-color: hsl(111, 100%, 80%); // #efe;
  52. border-radius: 3px;
  53. padding: 3px 6px;
  54. margin: 1px 10px 2px 0px;
  55. display: inline-block;
  56. color: hsl(1, 0%, 50%);
  57. &.neg {
  58. background-color: hsl(0, 100%, 87%);
  59. }
  60. }
  61. }
  62. table.styled th,
  63. table.styled td {
  64. text-align: left;
  65. }
  66. .toolbar {
  67. padding: 2px 4px;
  68. text-align: right;
  69. a {
  70. color: rgb(105, 105, 105);
  71. cursor: default;
  72. font-size: 15px;
  73. padding: 0 5px;
  74. text-decoration: none;
  75. &:hover {
  76. color: rgb(59, 59, 59);
  77. text-decoration: none;
  78. }
  79. &.selected {
  80. color: rgb(62, 130, 240);
  81. text-decoration: none;
  82. &:hover {
  83. color: rgb(25, 108, 251);
  84. text-decoration: none;
  85. }
  86. }
  87. }
  88. }
  89. .top-border {
  90. border-top: 1px solid #ddd;
  91. }
  92. .split-view {
  93. position: fixed;
  94. top: 0;
  95. right: 0;
  96. bottom: 0;
  97. left: 0;
  98. &-contents {
  99. position: fixed;
  100. top: 0;
  101. right: 0;
  102. bottom: 0;
  103. left: 0;
  104. &-details {
  105. top: 34%;
  106. }
  107. }
  108. }
  109. @media screen and (max-width: 1200px) {
  110. div.wrap {
  111. span.recent {
  112. display: inline-block;
  113. padding: 0px 10px 0 273px;
  114. margin: 8px 0 0 0;
  115. }
  116. }
  117. .split-view-contents-requests {
  118. bottom: 66%;
  119. }
  120. }
  121. @media screen and (min-width: 1200px) {
  122. .split-view-contents {
  123. width: 50%;
  124. &-requests {
  125. right: unset;
  126. }
  127. &-details {
  128. top: 0;
  129. left: unset;
  130. border-left: 1px solid #555;
  131. }
  132. }
  133. br.mobile {
  134. display: none;
  135. }
  136. }
  137. .data-grid {
  138. border: none;
  139. height: 100%;
  140. table.styled {
  141. border-collapse: collapse;
  142. border-spacing: 0;
  143. font-size: 11px;
  144. table-layout: fixed;
  145. width: 100%;
  146. th {
  147. border-bottom: 1px solid rgb(205, 205, 205);
  148. border-right: 1px solid rgb(205, 205, 205);
  149. height: 25px;
  150. padding: 0 4px;
  151. white-space: nowrap;
  152. }
  153. td {
  154. border-right: 1px solid rgb(205, 205, 205);
  155. overflow: hidden;
  156. padding: 0px 5px;
  157. vertical-align: middle;
  158. white-space: nowrap;
  159. }
  160. tr:first-child td {
  161. border-top: 1px solid rgb(205, 205, 205);
  162. }
  163. }
  164. &-requests {
  165. cursor: unset;
  166. table.styled {
  167. line-height: 1.4;
  168. th {
  169. font-weight: normal;
  170. overflow: hidden;
  171. }
  172. td.duration {
  173. text-align: right;
  174. }
  175. td.method,
  176. td.time,
  177. td.datetime,
  178. td.format,
  179. td.status,
  180. td.duration {
  181. background: rgb(241, 241, 241);
  182. }
  183. tr:nth-child(even):not(.filler) {
  184. background: rgb(243, 243, 243);
  185. }
  186. tr:nth-child(even) td.method,
  187. tr:nth-child(even) td.time,
  188. tr:nth-child(even) td.datetime,
  189. tr:nth-child(even) td.format,
  190. tr:nth-child(even) td.status,
  191. tr:nth-child(even) td.duration {
  192. background: rgb(241, 241, 241);
  193. }
  194. tr.selected td {
  195. background: #3883fa !important;
  196. color: white;
  197. small {
  198. color: white;
  199. }
  200. }
  201. tr.separator {
  202. cursor: pointer;
  203. max-height: 6px;
  204. height: 6px;
  205. line-height: 6px;
  206. td {
  207. background-color: hsl(217, 100%, 92%) !important;
  208. color: hsl(217, 100%, 92%) !important;
  209. border-right: 1px solid hsl(217, 100%, 92%) !important;
  210. }
  211. }
  212. }
  213. small {
  214. color: rgb(128, 128, 128);
  215. font-size: 100%;
  216. }
  217. .apextype {
  218. width: 15%;
  219. }
  220. .apexmethod {
  221. width: 12%;
  222. }
  223. .method,
  224. .time,
  225. .format,
  226. .status {
  227. text-align: center;
  228. width: 6%;
  229. }
  230. .datetime {
  231. text-align: center;
  232. width: 9%;
  233. }
  234. .duration {
  235. width: 80px;
  236. }
  237. .notificationsCount {
  238. background: rgba(255, 255, 255, 0.8);
  239. float: right;
  240. height: 100%;
  241. letter-spacing: -0.5px;
  242. line-height: 29px;
  243. padding-left: 4px;
  244. padding-right: 4px;
  245. position: relative;
  246. right: -4px;
  247. .errorsCount i {
  248. color: rgb(205, 73, 46);
  249. margin-left: 2px;
  250. }
  251. .warningsCount i {
  252. color: rgb(244, 189, 0);
  253. margin-left: 2px;
  254. }
  255. }
  256. .selected .notificationsCount {
  257. background: inherit;
  258. .errorsCount i {
  259. color: #fff;
  260. }
  261. .warningsCount i {
  262. color: #fff;
  263. }
  264. }
  265. .data .saml {
  266. font-weight: bold;
  267. }
  268. }
  269. &-details table.styled {
  270. font-size: 12px;
  271. margin-bottom: 6px;
  272. table-layout: fixed;
  273. border: 1px solid rgb(205, 205, 205);
  274. tr:nth-child(even) {
  275. background: rgb(234, 243, 255);
  276. }
  277. th {
  278. border-bottom: none;
  279. border-right: none;
  280. font-size: 12px;
  281. font-weight: bold;
  282. height: 18px;
  283. padding: 0 4px;
  284. white-space: nowrap;
  285. }
  286. td {
  287. border-right: 1px solid #e5e5e5;
  288. border-top: 1px solid #e5e5e5;
  289. height: auto;
  290. line-height: 16px;
  291. vertical-align: top;
  292. white-space: normal;
  293. word-wrap: break-word;
  294. }
  295. th:last-child,
  296. td:last-child {
  297. border-right: none;
  298. }
  299. }
  300. &-details .key {
  301. font-size: 12px;
  302. font-weight: bold;
  303. white-space: nowrap;
  304. }
  305. }
  306. .data-container {
  307. overflow-x: hidden;
  308. overflow-y: overlay;
  309. height: calc(100% - 25px);
  310. table.styled {
  311. height: 100%;
  312. tr {
  313. height: 20px;
  314. &.sizing {
  315. height: 0;
  316. td {
  317. padding: 0;
  318. }
  319. }
  320. &.filler {
  321. display: table-row;
  322. height: auto;
  323. td {
  324. padding: 0;
  325. }
  326. }
  327. }
  328. }
  329. .data .saml {
  330. font-weight: bold;
  331. }
  332. }
  333. .clickable {
  334. cursor: pointer;
  335. }
  336. .tabbed-pane {
  337. -webkit-box-orient: vertical;
  338. -moz-box-orient: vertical;
  339. -ms-box-orient: vertical;
  340. box-orient: vertical;
  341. display: -webkit-box;
  342. display: -moz-box;
  343. display: -ms-box;
  344. display: box;
  345. height: 100%;
  346. width: 100%;
  347. &-header {
  348. border-bottom: 1px solid rgb(205, 205, 205);
  349. padding-left: 0;
  350. padding-top: 1px;
  351. white-space: nowrap;
  352. height: 26px;
  353. background: #efefef;
  354. &-contents {
  355. margin: 0 10px;
  356. }
  357. &-tabs {
  358. margin: 0;
  359. min-width: 300px;
  360. padding: 0;
  361. position: relative;
  362. top: 1px;
  363. }
  364. &-tab {
  365. border: 1px solid transparent;
  366. border-bottom: none;
  367. float: left;
  368. font-size: 11px;
  369. height: 21px;
  370. margin-top: 2px;
  371. overflow: hidden;
  372. padding: 1px 6px 1px 6px;
  373. text-overflow: ellipsis;
  374. vertical-align: middle;
  375. white-space: nowrap;
  376. &-title {
  377. color: #000;
  378. display: block;
  379. font-size: 12px;
  380. min-width: 40px;
  381. text-align: center;
  382. text-decoration: none;
  383. white-space: nowrap;
  384. }
  385. }
  386. .ui-tabs-active {
  387. background-color: white;
  388. border: 1px solid rgb(205, 205, 205);
  389. border-bottom: none;
  390. }
  391. &-tab,
  392. &-tab a,
  393. &-tab a:active {
  394. outline: none;
  395. }
  396. }
  397. &-content {
  398. -webkit-box-flex: 1;
  399. -moz-box-flex: 1;
  400. -ms-box-flex: 1;
  401. box-flex: 1;
  402. overflow: auto;
  403. padding: 0px;
  404. position: relative;
  405. height: calc(100% - 24px);
  406. }
  407. }
  408. #tab-request-stats,
  409. #tab-response-stats {
  410. padding: 10px;
  411. }
  412. th.request {
  413. position: relative;
  414. }
  415. #tab-response table.styled {
  416. margin-bottom: 20px;
  417. }
  418. input[type="file"] {
  419. display: none;
  420. }
  421. .CodeMirror {
  422. height: calc(100% - 26px);
  423. }