Commit graph

475 commits

Author SHA1 Message Date
EnixCoda
968a5a46f3
feat: toggle expand on hover&leave 2021-05-24 23:09:59 +08:00
EnixCoda
87f40565f0
feat: more precise sidebar position when float and hidden 2021-05-24 22:38:23 +08:00
EnixCoda
aa0f59c90b
chore: move containers 2021-05-24 22:16:17 +08:00
EnixCoda
ab82cf783e
refactor: destruct config helper 2021-05-24 22:16:17 +08:00
EnixCoda
31c45781a0
feat: core toggle mode switch 2021-05-24 22:16:17 +08:00
EnixCoda
8ff78b0caa
refactor: better types of SimpleToggleField 2021-05-24 22:16:16 +08:00
EnixCoda
14478e5757
chore: rename sidebar body wrapper 2021-05-24 22:16:16 +08:00
EnixCoda
45828116fe
refactor: configify Icon 2021-05-23 02:01:58 +08:00
EnixCoda
43fd645c7c
refactor: minor enhancements on file comments 2021-05-18 23:07:07 +08:00
Enix
7e7d25f756
Merge pull request #136 from flowforfrank/develop
Add support for showing comments associated with files
2021-05-18 22:08:17 +08:00
EnixCoda
4e680401ac
refactor: simplify hooks 2021-05-17 00:06:50 +08:00
EnixCoda
f75e76c447
chore: update hooks file ext 2021-05-16 23:14:13 +08:00
EnixCoda
a6884b981d
fix: skip access token related state if not necessary 2021-05-14 09:42:37 +08:00
EnixCoda
95a2efb6ac
feat: show progress when getting access token 2021-05-12 23:23:05 +08:00
EnixCoda
8573f5025e
chore: code clean 2021-05-12 22:52:09 +08:00
EnixCoda
659274256a
chore: UX details on error 2021-05-12 22:31:31 +08:00
EnixCoda
e03566aa73
fix: set state on network error 2021-05-10 01:27:50 +08:00
EnixCoda
c43a5c2311
feat: resolve OAuth token before sending request 2021-05-10 01:27:50 +08:00
EnixCoda
79644fba82
refactor: deprecate driven sidebar 2021-05-10 01:27:49 +08:00
EnixCoda
3cfc5bc166
refactor: catch network errors 2021-05-10 01:27:49 +08:00
EnixCoda
72f825db2e
refactor: control the flow using react 2021-05-10 01:27:48 +08:00
EnixCoda
5c25d9d0d8
chore: code clean 2021-05-03 21:44:55 +08:00
EnixCoda
5ddd6c6948
fix: handle scope change 2021-05-02 22:04:19 +08:00
EnixCoda
69614104ec
chore: status vs state 2021-05-02 20:57:56 +08:00
EnixCoda
e9f7ee2f91
refactor: status mapping 2021-05-02 20:57:55 +08:00
flowforfrank
50283e0cea Add support for showing comments associated with files 2021-04-23 08:30:54 +02:00
EnixCoda
ee472899ae
refactor: hide metabar on auth error 2021-04-18 00:22:06 +08:00
EnixCoda
70981ed72a
feature: support new GitHub token format 2021-04-13 22:28:48 +08:00
EnixCoda
4b96e01845
fix: catch unexpected PJAX with scope 2021-04-13 22:28:48 +08:00
EnixCoda
f026a7dfd2
feature: hide sidebar when auth failed but token is set 2021-04-13 22:28:48 +08:00
EnixCoda
7dd0f4d191
refactor: support path mode in Safari 2021-03-08 14:25:47 +08:00
EnixCoda
1588a903c2
refactor: drop shrink GitHub header 2021-02-06 01:23:13 +08:00
EnixCoda
f38d093147
fix: detect case in search key 2021-02-06 01:00:09 +08:00
EnixCoda
50731bb461
feat: more tweaks on search modes 2021-02-06 00:03:46 +08:00
EnixCoda
69a8436e7b
docs: search mode 2021-02-05 12:10:50 +08:00
EnixCoda
66312dbc0f
fix: go to file, highlighting 2021-02-04 21:09:09 +08:00
EnixCoda
bb4593fc25
feat: show loading indicator when fetching meta 2021-02-04 14:46:03 +08:00
EnixCoda
e1d0742de8
feat: search modes 2021-02-04 14:46:03 +08:00
EnixCoda
e87fec8f30
feat: search modes 2021-02-03 00:38:51 +08:00
EnixCoda
eb6343a1ff
refactor: opt-out get default branch request for faster loading 2021-02-01 17:50:01 +08:00
EnixCoda
8f675f5c5b
chore: update IO field names 2021-02-01 14:14:26 +08:00
EnixCoda
4be1d2d44d
refactor: check meta data usages 2021-02-01 14:07:06 +08:00
EnixCoda
f32dfd0722
chore: change the position to fixed 2021-02-01 14:07:06 +08:00
EnixCoda
2a9ab02fda
chore: simplify logics about access token 2021-01-31 23:57:43 +08:00
EnixCoda
2fe39a90c3
refactor: simplify code 2021-01-31 23:08:28 +08:00
EnixCoda
d0dba1975d
refactor: fix the access token casing 2021-01-23 22:13:37 +08:00
EnixCoda
51a200c034
chore: disable OAuth for Gitea 2021-01-05 23:24:47 +08:00
EnixCoda
9987c0374f
feat: color of file tree text 2020-12-16 22:55:33 +08:00
EnixCoda
79c4049300
feat: watch media update 2020-12-10 23:11:21 +08:00
EnixCoda
4c9ebc414b
feat: tune colors and add dark theme 2020-12-10 23:11:21 +08:00
EnixCoda
7e8e6b6987
chore: align file explorer item height to GitHub's 2020-12-10 15:51:58 +08:00
EnixCoda
0f654996b2
fix: detect linux 2020-11-28 15:05:19 +08:00
EnixCoda
49df251ed6
refactor: move event bindings 2020-11-28 15:05:18 +08:00
EnixCoda
3dd182460b
feat: use GitHub native progress bar 2020-11-28 15:05:17 +08:00
EnixCoda
2c09a4308e
refactor: use pjax:end for better compatibility 2020-11-28 00:46:43 +08:00
EnixCoda
db0de416dc
fix: emit pjax end 2020-11-28 00:46:42 +08:00
EnixCoda
17c4becff2
fix: pjax messed history up 2020-11-24 20:51:28 +08:00
EnixCoda
e6cba2c7e6
refactor: on PJAX end 2020-11-13 15:58:32 +08:00
EnixCoda
3323477b07
feat: help 2020-11-13 13:56:02 +08:00
EnixCoda
d818e5ccc2
fix: copy code and snippet 2020-11-11 17:44:26 +08:00
EnixCoda
6c433f1f17
refactor: simpler logic for resize observer 2020-11-11 17:14:23 +08:00
EnixCoda
b2150b9212
fix: prevent collapse to too narrow 2020-11-11 17:14:23 +08:00
EnixCoda
59fffaf004
fix: jump to items from search result
This doesn't cause the previous redirect bug :)
2020-10-28 18:14:51 +08:00
EnixCoda
72ddfefb19
docs: update help for invalid token 2020-10-28 00:35:07 +08:00
EnixCoda
396af20fa4
Revert "feat: better experience with correct focus"
This reverts commit 3203f9426e.
2020-10-28 00:20:08 +08:00
EnixCoda
8c970d7fb4
feat: hint lazy mode 2020-10-28 00:14:32 +08:00
EnixCoda
391c3e457c
fix: prevent unnecessary unmount 2020-10-27 01:58:12 +08:00
EnixCoda
b0bcb7130c
refactor: prevent rendering multiple times on search 2020-10-26 22:27:21 +08:00
EnixCoda
3203f9426e
feat: better experience with correct focus 2020-10-26 20:53:33 +08:00
EnixCoda
2227039bbf
refactor: performance++ 2020-10-26 19:01:49 +08:00
EnixCoda
24ae8a0353
refactor: memoize regexp of search key 2020-10-26 19:01:05 +08:00
EnixCoda
d683777c34
fix: update focus properly 2020-10-26 02:40:34 +08:00
EnixCoda
453ed1d588
refactor: enhance code 2020-10-26 02:12:33 +08:00
EnixCoda
42737a6cd5
refactor: deprecate execAfterRender pattern
Also extracted regex logic into view component
2020-10-25 22:46:59 +08:00
EnixCoda
2e6c7606c8
feat: async mode 2020-10-25 02:56:19 +08:00
EnixCoda
0515d3cb2d
chore: show dots when loading meta data 2020-08-31 20:51:44 +08:00
EnixCoda
ff876a261f
feat: enhance styles and add settings for recursive toggling 2020-08-31 20:50:46 +08:00
EnixCoda
95fafcbfac
chore: enhance details 2020-08-09 23:57:56 +08:00
EnixCoda
cd7b5087b1
feat: variations of toggle button content 2020-08-09 23:44:42 +08:00
EnixCoda
f5eda6090a
feat: extract select input 2020-08-09 23:44:20 +08:00
EnixCoda
2711ead05c
chore: edit toggle button title 2020-08-03 00:35:32 +08:00
EnixCoda
db25110fa9
fix: display error message properly 2020-08-03 00:32:24 +08:00
EnixCoda
5271af7d91
feat: shrink GitHub header option 2020-08-03 00:17:54 +08:00
EnixCoda
42d9ef4725
feat: enhance settings button 2020-08-03 00:17:37 +08:00
EnixCoda
6d7610349e
feat: redesign toggle show button 2020-08-03 00:17:34 +08:00
EnixCoda
02e3337037
refactor: use CSS variable 2020-08-02 17:32:38 +08:00
EnixCoda
09a97f30ed
fix: handle long pr title 2020-06-27 15:46:02 +08:00
EnixCoda
91954268ba
feat: update meta bar 2020-06-21 15:21:14 +08:00
EnixCoda
a6a4acb792
build: use stable octicons 2020-06-21 10:55:30 +08:00
EnixCoda
328a04f9bb
refactor: handle hash links natively 2020-06-21 01:56:30 +08:00
EnixCoda
9050313ad1
chore: remove unused method 2020-06-20 19:17:23 +08:00
EnixCoda
8ae4834d67
fix: simplify detection of code page 2020-06-19 00:03:05 +08:00
EnixCoda
89e3f24e29
feat: select all text when focus search bar 2020-05-29 22:44:58 +08:00
EnixCoda
9f4e0d80ce
feat: use hourglass icon for loading 2020-05-29 22:28:33 +08:00
EnixCoda
fa54ea314f
feat: use octoicon v2 2020-05-28 23:20:16 +08:00
EnixCoda
6e1bef7a6f
feat: use pjax-api 2020-05-26 20:58:48 +08:00
EnixCoda
726b6a7814
chore: disallow OAuth for enterprise 2020-05-18 23:52:28 +08:00
EnixCoda
859948c443
feat: search performance boost
Prevent recreating child component of virtual list
2020-04-15 22:35:25 +08:00
EnixCoda
0da52bee9e
chore: minor fixes 2020-04-15 21:33:21 +08:00
EnixCoda
46a01711e9
feat: compress search result and boost performance 2020-04-15 15:10:09 +08:00
EnixCoda
a215b0a686
fix: wiki link 2020-04-09 21:22:58 +08:00
EnixCoda
73396cffd6
Merge branch 'feature/oauth-server' into develop 2020-04-09 20:47:42 +08:00
EnixCoda
9e0831d8ed
chore: deprecate baseSize state 2020-04-09 17:10:40 +08:00
EnixCoda
6355ef677d
refactor: use server for oauth 2020-04-09 16:46:39 +08:00
EnixCoda
a34489d8c9
chore: use replace state when omitting OAuth code 2020-04-09 14:23:47 +08:00
EnixCoda
b9d4bfd07d
fix: disable transition when resizing 2020-04-08 22:28:50 +08:00
EnixCoda
b3cde841f4
feat: centralize page content when gitako is open
This simplifies layout logic
2020-04-08 17:21:55 +08:00
EnixCoda
7e6feb621c
revert: use old pjax for Firefox compatibility
This reverts commit 8aaf55be59 and 0a4ee27
2020-04-06 19:16:36 +08:00
EnixCoda
05d002e470
refactor: sync platform resolution 2020-04-04 17:03:22 +08:00
EnixCoda
130f42f8a8
fix: prevent generate empty regex 2020-04-03 13:34:46 +08:00
EnixCoda
86e0569250
feat: use pjax-api 2020-04-02 23:44:42 +08:00
EnixCoda
c69b750730
feat: highlight search results 2020-04-02 22:20:47 +08:00
EnixCoda
30a976969f
feat: gave a try on Gitee OAuth and gave up 2020-03-29 18:12:12 +08:00
EnixCoda
b458e241fd
feat: show sidebar depends on meta data 2020-03-29 16:52:26 +08:00
EnixCoda
efedfc786f
refactor: move copy file button 2020-03-29 16:52:26 +08:00
EnixCoda
ed3b117d30
refactor: reuse access denied description 2020-03-29 16:52:26 +08:00
EnixCoda
f379d0ebe6
feat: platform context 2020-03-29 15:49:12 +08:00
EnixCoda
5e5b54132e
feat: platform getOAuthLink 2020-03-29 15:48:23 +08:00
EnixCoda
6a55eb3dc2
refactor: differ resizing by platforms 2020-03-29 01:13:15 +08:00
EnixCoda
85736300d8
refactor: platforms 2020-03-28 22:00:20 +08:00
EnixCoda
282d2b9455
chore: enhance layout 2020-03-19 21:47:50 +08:00
EnixCoda
1a91bdc2e9
refactor: use more react-use 2020-03-15 02:42:35 +08:00
EnixCoda
e3ffc8f82b
chore: abandon useLayoutEffect 2020-03-15 02:28:59 +08:00
EnixCoda
712c56cbb8
fix: memorize callback to reduce event registrations 2020-03-15 02:26:26 +08:00
EnixCoda
58a63bc77b
refactor: use react-use
simplify imports as tree shaking works
2020-03-15 02:26:26 +08:00
EnixCoda
f430c7bc26
refactor: use primer 2020-03-14 20:42:04 +08:00
EnixCoda
68dc0f77b5
refactor: remove safe-touch 2020-03-11 00:39:55 +08:00
EnixCoda
6b40ad2ef7
feat: enhance settings UI 2020-03-10 22:03:54 +08:00
EnixCoda
05f670bb90
chore: reorganize utility files 2020-03-08 14:59:11 +08:00
EnixCoda
4c4b28afa6
build: manual tree shaking for react-use 2020-02-08 00:17:44 +08:00
EnixCoda
667831888b
chore: remove unused component 2020-02-08 00:09:47 +08:00
EnixCoda
6a16d5f5b8
fix: prevent duplicated requests 2019-12-26 16:52:16 +08:00
EnixCoda
aedf3b295c
fix: align submodule items in tree 2019-12-26 16:40:52 +08:00
EnixCoda
e33f270f1a
refactor(Icon): simplify return value 2019-12-26 16:40:35 +08:00
EnixCoda
6b4e961afe
fix: consistent revoke hook time 2019-12-26 00:08:20 +08:00
EnixCoda
6f86fd5b2d
feat: focus item on redirect 2019-12-19 21:55:22 +08:00
EnixCoda
4419d02815
refactor: extract useOnLocationChange 2019-12-19 21:52:35 +08:00
EnixCoda
982ad39ef3
fix: icon alignments 2019-12-02 19:46:46 +08:00
EnixCoda
2127afba4b
docs: update contact text 2019-12-02 19:30:15 +08:00
EnixCoda
b5d9275e63
feat: settings for icons 2019-12-01 22:40:23 +08:00
EnixCoda
eab2790d03
refactor: destruct settings bar 2019-12-01 22:01:24 +08:00
EnixCoda
255aa7eb1d
refactor: align item with icon 2019-12-01 21:41:38 +08:00
EnixCoda
4ac447be2e
feat: rich icons 2019-12-01 21:41:38 +08:00
EnixCoda
b71a97e11f
fix: intelligent toggle 2019-11-21 14:36:28 +08:00
EnixCoda
73fea83d20
Merge branch 'feature/access-token-help' into develop 2019-11-20 11:07:56 +08:00
EnixCoda
a0f1882799
fix: did not listen to config changes 2019-11-19 22:10:20 +08:00
EnixCoda
83c3b3e0e8
refactor: pjax events occur after document state change 2019-11-19 18:29:26 +08:00
EnixCoda
1ac5189c6f
fix: adopt simpler pjax events and elements 2019-11-19 17:16:29 +08:00
EnixCoda
84f95e0ac8
Revert "Revert "chore: remove "pjax-link"""
This reverts commit 6a7c3a6a78.
2019-11-19 10:51:35 +08:00
EnixCoda
23cb285d4a
Revert "Revert "refactor: remove pjax listener""
This reverts commit 53906be1b1.
2019-11-19 10:51:31 +08:00
EnixCoda
53906be1b1
Revert "refactor: remove pjax listener"
This reverts commit aca84b3b2b.
2019-11-19 10:13:27 +08:00
EnixCoda
6a7c3a6a78
Revert "chore: remove "pjax-link""
This reverts commit cb2bfaee59.
2019-11-19 10:13:20 +08:00
EnixCoda
4a08a0ec92
feat: handle OAuth token expiration error 2019-11-18 19:30:53 +08:00
EnixCoda
cb2bfaee59
chore: remove "pjax-link" 2019-11-18 18:14:07 +08:00
EnixCoda
aca84b3b2b
refactor: remove pjax listener 2019-11-18 18:11:47 +08:00
EnixCoda
8e5761bffb
fix: attach useEvent target and event 2019-11-18 18:01:26 +08:00
EnixCoda
d84f7f07fc
fix: detach button 2019-11-16 14:48:22 +08:00
EnixCoda
a642a701d0
refactor: useEvent 2019-11-16 14:48:00 +08:00
EnixCoda
e09935230d
feat: onPJAXComplete 2019-11-15 17:33:31 +08:00
EnixCoda
dd9cc2d0c0
fix: prevent reset file tree on pjax 2019-11-15 16:28:38 +08:00
EnixCoda
d830741968
feat: ErrorBoundary 2019-11-15 16:26:15 +08:00
EnixCoda
26d0b189bc
fix: resolve return value for effects 2019-11-13 16:23:23 +08:00
EnixCoda
6f4c26d36b
feat: apply settings updates instantly 2019-11-13 16:20:03 +08:00
EnixCoda
0f884e26dd
refactor: cancel add buttons 2019-11-13 15:45:36 +08:00
EnixCoda
2c4af43485
refactor: extract onPJAXEnd 2019-11-13 15:07:49 +08:00
EnixCoda
be6d95355c
fix: deprecate hacky did-update 2019-11-13 14:57:03 +08:00
EnixCoda
d4e4f77777
refactor: extract useListener 2019-11-13 14:51:53 +08:00
EnixCoda
7bee13c6c3
feat: make clippy button react 2019-11-13 13:45:33 +08:00
EnixCoda
819fc17faf
refactor: access token and intelligent toggle 2019-11-12 23:36:17 +08:00
EnixCoda
ddb86fa4ef
changes are out of control 2019-11-12 00:40:55 +08:00
EnixCoda
5c2842702c
docs: better access token help 2019-11-11 10:50:22 +08:00
EnixCoda
f677d7df5a
refactor: use more config 2019-11-10 20:25:51 +08:00
EnixCoda
db23b69d7f
feat: configs context 2019-11-10 17:37:16 +08:00
EnixCoda
9cff1a2985
Merge branch 'feature/makefile' into develop 2019-11-10 15:09:03 +08:00
EnixCoda
79c1c82b65
refactor: remove warnings 2019-11-10 15:06:53 +08:00
EnixCoda
570ab3915e
refactor: move Props 2019-11-09 13:28:51 +08:00
EnixCoda
8ed78e2a98
refactor: abandon default export 2019-11-09 01:53:59 +08:00
EnixCoda
d9aaf72b03
build: deprecate default export 2019-11-09 01:08:12 +08:00
EnixCoda
54d7c675d7
feat: CopyFileButton 2019-11-09 01:07:38 +08:00
EnixCoda
405d863913
build: sanitize build scope, pass version through env 2019-11-08 17:01:39 +08:00
Enix
aae82fbd2e
fix: catch oauth error 2019-11-05 14:27:52 +08:00
EnixCoda
83690816cf
refactor: eject platform env, extract oauth 2019-11-04 20:19:47 +08:00
EnixCoda
53796dec97
feat: adapt to FireFox 2019-11-03 23:24:52 +08:00
Enix
dbd608b1bd fix: octicon names was lost in production mode 2019-11-01 14:44:36 +08:00
EnixCoda
80dd061cce
refactor: use octicons-react 2019-10-25 00:19:56 +08:00
Enix
cda88d3956
feat: search with vanilla regexp 2019-10-10 12:21:25 +08:00
EnixCoda
27fe8bf8ef
feat: enhance node item style
* always show go-to button in search result, even if file name is long
* show go-to button only when hovered
2019-10-09 23:46:10 +08:00
EnixCoda
1514c3e7fe
feat: intelligent toggle 2019-09-22 12:41:59 +08:00
Enix
685edbf7db
fix: saveToken 2019-09-06 20:14:47 +08:00
Enix
00f5217f87
refactor: remove extra children 2019-09-05 09:47:12 +08:00
EnixCoda
9251b2a3ac
refactor: sync get state 2019-08-27 22:38:07 +08:00
EnixCoda
b96a4f388f
chore: better user instructions 2019-08-24 22:14:43 +08:00
EnixCoda
e133c998ac
feat: redirect to oauth with js 2019-08-24 22:08:30 +08:00
EnixCoda
333898d677
feat: init sequence, conditional reload hint 2019-08-24 22:03:09 +08:00
EnixCoda
ed821c7959
feat: create token with oauth 2019-08-24 17:56:14 +08:00
EnixCoda
9622cfc86e
feat: feature detection and disable resize when necessary 2019-08-20 21:09:46 +08:00
EnixCoda
5ea59c3d5f
fix: "ResizeObserver loop limit exceeded" 2019-08-12 20:59:49 +08:00
EnixCoda
9d50e1393b
chore: remove log 2019-08-11 22:47:50 +08:00
EnixCoda
d5241e2f1c
feat: scroll to top when search key changes 2019-08-11 21:47:46 +08:00
EnixCoda
5f6feeff00
feat: scroll to node 2019-08-11 21:47:46 +08:00