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.

388 lines
11 KiB

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