Commit graph

133 commits

Author SHA1 Message Date
Haishan
e68f4ce966 fix(streaming): split and join JSON string chunks correctly
for #13

Sometimes in Safari, in one "pump" you can get the content below(decoded
text string):

'{"up":0,"down":38589}\n{"up":0,"down":59928}'

and then JSON.parse will throw
2019-04-19 00:17:06 +08:00
Haishan
7dac1d44c7 refactor: replace sass with postcss 2019-04-14 22:56:14 +08:00
Haishan
68a38e7359 fix(ToggleSwitch): selected option slider left offset 2019-04-12 23:03:12 +08:00
Haishan
732367e65c APIConfig: make whole content element full screen fixed 2019-04-09 20:51:02 +08:00
Haishan
ce4967e1ab APIConfig: update style
also added input and button focus style
2019-04-06 21:40:24 +08:00
Haishan
b401a7b78f sidebar: add a logo hover animation 2019-03-31 00:21:11 +08:00
Haishan
2a9de5ea10 icon: using svg component for the logo 2019-03-31 00:21:10 +08:00
Haishan
132158e3b8 chart: add another color combo 2019-03-31 00:21:10 +08:00
Haishan
f5a16279d0 tooling: update eslint config 2019-03-31 00:21:10 +08:00
Haishan
5812bed54a chore: upgrade deps 2019-03-31 00:21:09 +08:00
Haishan
5b51781ee7 sidebar: using svg component as icon 2019-03-02 20:38:16 +08:00
Haishan
788b6286dc feat: support LoadBalance group 2019-02-18 22:41:54 +08:00
Haishan
03e46d9096 style: new layout for proxy item
also:

- speed up proxy item on hover scale up animation
- reduce icons stroke width
2019-02-11 22:38:20 +08:00
Haishan
f364975545 chore: upgrade deps
also, log message on build ready with webpack dev middleware hook
2019-02-09 23:29:51 +08:00
Haishan
2ee638b9ca chore: make eslint happy 2019-01-14 00:30:47 +08:00
Haishan
fd07fae633 feat(logs): support search/filter logs 2019-01-14 00:24:23 +08:00
Haishan
eb76f7c194 style(logs): optimize logs placeholder container style 2019-01-13 23:44:35 +08:00
Haishan
29048908df perf(logs): optimize with windowed scrolling 2019-01-13 23:37:22 +08:00
Haishan
fa7e03b926 hooks: extract element remaining view port height logic into a hook 2019-01-13 23:15:54 +08:00
Haishan
61dd81d488 refactor(logs): move logs state into redux store 2019-01-13 22:25:15 +08:00
Haishan
0e7877ad62 build: optimize js chunk splitting 2019-01-05 23:25:46 +08:00
Haishan
0cf6a17e2d style(proxies): make "Test Latency" a fab like button 2019-01-05 22:03:35 +08:00
Haishan
aab37ea7d4 feat(rules): add fab to refetch rules 2019-01-05 22:03:34 +08:00
Haishan
3207045e29 perf(rules): optimize with windowed scrolling 2019-01-05 22:03:34 +08:00
Haishan
57b353387a feat(rules): support search 2019-01-05 22:03:29 +08:00
Haishan
6987f4f25b feat: support view rules 2019-01-05 00:09:55 +08:00
Haishan
761e25f1ea style(proxies): tweak proxy hover style 2019-01-02 22:33:05 +08:00
Haishan
be029ded16 fix(proxies): only allow switch proxy for Selector group 2019-01-02 22:11:29 +08:00
Haishan
cbac4154f3 chore: add icon for selector type 2018-12-29 13:57:23 +08:00
Haishan
5c4a7da719 feat: support parse port and secret in query string 2018-12-29 13:09:42 +08:00
Haishan
4be0aca6c1 style: log container placeholder and nav icon label style tweak 2018-12-28 22:38:52 +08:00
Haishan
f342857c8c style: a bite of responsive yo 2018-12-28 21:43:36 +08:00
Haishan
6326af3d6c chore: re-enable react-hot-loader 2018-12-25 00:01:58 +08:00
Yonghui Zhang
2b5820a56a use new configs PATCH API 2018-12-24 23:39:47 +08:00
Haishan
38e5b480c0 feat: add a customized ErrorBoundaryFallback 2018-12-23 23:36:17 +08:00
Haishan
a72115067a feat: integrate sentry 2018-12-23 21:42:42 +08:00
Haishan
eb564f06fe feat: add svg icons for direct and http 2018-12-23 16:29:01 +08:00
Haishan
852c91b44f fix: remove built-in proxy type filtering
closes #4
2018-12-23 15:20:17 +08:00
Haishan
00d90f49de chore: rename useComponentState to useStoreState 2018-12-20 23:35:17 +08:00
Haishan
12624f6463 style(button): scale down a bit on touching down 2018-12-18 22:13:30 +08:00
Haishan
a21cd2a258 chore: add noopener to _blank targeted a tag rel 2018-12-18 22:00:19 +08:00
Haishan
ce049e2745 chore: github repo url as logo onclick link 2018-12-18 21:57:19 +08:00
Haishan
289dd01cbf chore: fix linting errors 2018-12-07 00:23:36 +08:00
Haishan
7abbdb6477 feat: theming support 2018-12-07 00:20:11 +08:00
Haishan
fdf69dbfe2 change: add logging level 'silent' 2018-12-07 00:19:56 +08:00
Haishan
8c5ef3e276 change: use PATCH for config update API 2018-12-07 00:19:55 +08:00
Haishan
3584ff6179 feat: initial theming support 2018-12-07 00:19:49 +08:00
Haishan
9517d02996 style(config): external controller config modal style tweak 2018-11-09 00:17:06 +08:00
haishanh
91ecdaa5dd update: convert more components to function ones
includes Input, Config, SideBard.

also removed react-redux Provider
2018-11-06 22:37:21 +08:00
Haishan
1adaedcbc5 chore(style): reduce app min height 2018-11-04 00:28:20 +08:00
haishanh
e3afe5ff90 refactor(hooks): here be dragons! 2018-11-03 23:06:35 +08:00
Haishan
7f75345c03 refactor(chart): lazy load Chart.js with suspense
- chore: add ico favicon
- chore: lint
- chore: add react-hooks lint rules
2018-11-03 23:06:16 +08:00
Haishan
d247e37890 refactor: use react hooks 2018-10-30 22:29:36 +08:00
haishanh
59cee78621 fix(style): make log text overflow auto 2018-10-30 20:44:03 +08:00
haishanh
ddebbbf024 fix(logs): add random str to each log id to prevent key collision 2018-10-30 16:01:33 +08:00
haishanh
58d21fc3d9 react: start using Hooks! 2018-10-30 16:01:33 +08:00
Haishan
464a26e298 chore: upgrade and clean up deps 2018-10-30 16:01:33 +08:00
Haishan
00090fc51c chore: play around with customized scroll bar 2018-10-30 16:01:33 +08:00
Haishan
ae3fd6bcaf ci: add circleci config.yml 2018-10-30 16:01:33 +08:00
Haishan
abfab4f1ad ui(proxy): new UI for proxy page 2018-10-27 14:28:25 +08:00
Haishan
fb0092c927 style: make log text overflow scroll 2018-10-24 23:11:37 +08:00
haishanh
d0aadae198 chore: prefetch font if possible 2018-10-24 16:46:15 +08:00
Haishan
3aa50333dc react: using async react 2018-10-23 23:35:11 +08:00
Haishan
09c6bf12e9 deps: get rid of the deprecated react-router-redux 2018-10-23 22:43:12 +08:00
haishanh
2596096b8c chore: remove unused code in Logs.js 2018-10-23 17:47:17 +08:00
haishanh
61cde9957b log: fix potential log decode error 2018-10-23 13:27:14 +08:00
Haishan
5aa51ae925 chore: update html head og meta 2018-10-23 00:27:20 +08:00
Haishan
a7187d72b8 style: use roboto mono as log font family 2018-10-23 00:06:18 +08:00
Haishan
26e223c9cc style: tweak log styles 2018-10-23 00:06:17 +08:00
haishanh
515777e186 style: minor style polish
- make app max-height 580px
- enlarge logo top bottom padding
2018-10-23 00:05:27 +08:00
haishanh
62d389eab2 chore: make eslint happy 2018-10-22 11:38:28 +08:00
Haishan
f39133daf1 doc: update readme about http served site 2018-10-21 21:27:08 +08:00
Haishan
7f81b3baec proxy: hide builtin proxies 2018-10-21 19:59:38 +08:00
Haishan
ca5d887fd8 fix: resume traffic data streaming on recovery from prior API errors 2018-10-21 16:47:00 +08:00
Haishan
de9655fd99 build: add fetch polyfill and optimize chunk split 2018-10-21 15:24:38 +08:00
Haishan
9d81f9c045 fix: reset traffic fetched status on connection failure/shutdown 2018-10-21 01:13:53 +08:00
Haishan
4646c216a9 style: tweak proxy page layout style 2018-10-21 01:06:49 +08:00
Haishan
6071ac9381 fix: only request latency for server type proxy 2018-10-21 00:50:31 +08:00
Haishan
380f5ad582 feat: support authorization secret
* also make redux store the single truth store for API information
2018-10-21 00:38:13 +08:00
Haishan
0d5cc1e0ae style: minor UI tweak 2018-10-20 22:39:31 +08:00
Haishan
ab42517a59 chore: add open graph meta in html template <head> 2018-10-20 20:59:38 +08:00
Haishan
36681d318c style: remove width restriction around the traffic chart 2018-10-20 20:41:32 +08:00
Haishan
133b29c9da first commit 2018-10-20 20:32:02 +08:00