Commit Graph
86 Commits
Author SHA1 Message Date
myl7 99d1a1efbd remove duplicate slashes for auth token path 2022-08-04 05:24:30 +00:00
myl7 677287d3e2 ignore case in protected route matching to fit OneDrive preference
Close #734
2022-08-04 05:14:57 +00:00
myl7 9af1ef4f47 handle trailing slashes in protected routes 2022-08-04 05:10:02 +00:00
myl7 7853fce887 suppress a type error of a common use 2022-07-23 15:27:47 +00:00
myl7 dd8a2ba50f rollup caniuse-lite
Suggested by Browserslist
2022-07-23 14:46:22 +00:00
myl7 303bea15fd add $ prefix for top param
Suggested by OneDrive API doc:
> be consistent throughout the request with your usage of
> the $ character on these arguments
2022-07-23 14:38:33 +00:00
myl7 2d2beadbba add sort param for index api 2022-07-23 13:41:19 +00:00
myl7 9e887b2b38 update pnpm lock file version 2022-07-23 13:34:03 +00:00
myl7 30e0e00ed9 Remove connector between prefix and name
Make backward compatible
2022-07-20 00:40:18 +08:00
myl7 cbb643ff0e reformat code 2022-07-15 18:19:39 +08:00
myl7 65ac2d2cf6 Merge pull request #697 from pokobunhsu/translate
Add Traditional Chinese translate
2022-07-15 18:17:44 +08:00
myl7 d3ce54d51e Merge branch 'main' into translate 2022-07-15 18:15:20 +08:00
myl7 9b53e6dc01 enable Turkish translation 2022-07-15 18:10:33 +08:00
myl7 afbbcb0142 enable Hindi translation 2022-07-15 18:05:23 +08:00
myl7 891291bc06 reformat code 2022-07-15 17:57:52 +08:00
myl7 f18005d05f fix wrong url param name
close #659
2022-07-15 17:53:56 +08:00
myl7 07f0314d43 fix error report for search result item req 2022-07-15 17:45:33 +08:00
myl7 ecb0e6a59d fix imports from fontawesome-common-types 2022-07-15 17:38:34 +08:00
myl7 18107590d2 ensure .password file response body is string from axios 2022-07-15 17:37:43 +08:00
myl7 e7cf44b52a fix missing filename urlencoding in multidownload 2022-07-15 17:36:37 +08:00
myl7 bd5dbfef4f Make filename inputbox default value in custom link menu readable (#484) 2022-02-22 11:31:39 +08:00
myl7 a2d45788e1 Fix a zh-CN translation error (#480) 2022-02-22 11:28:42 +08:00
myl7 ded9818e23 Fix readable URL character filtering (#465) 2022-02-18 12:13:28 +08:00
myl7 81d0cad71c Preserve original ext and skip folders when extracting extensions (#448) 2022-02-15 19:27:47 +08:00
myl7 37ce14f16c remember language preference 2022-02-12 22:26:25 +08:00
myl7 4e490a007c display extension still when space for filename is not enough 2022-02-10 23:22:40 +08:00
myl7 8c654253bb handle pagination in traversing 2022-02-10 15:10:25 +08:00
myl7 4f2f50adcf improve traversing concurrency via Promise.race 2022-02-10 14:01:49 +08:00
myl7 b68396bef8 turn DownloadingToast into component to fix hook use in it 2022-02-09 23:18:40 +08:00
myl7 9b03d97d2c handle thumbnails length 0 2022-02-09 16:16:13 +08:00
myl7 197336d42d add thumbnail api and update grid view thumbnail fetching 2022-02-09 15:19:54 +08:00
myl7 223e7e3d6a allow to customize datetime format via dayjs 2022-02-08 20:06:02 +08:00
myl7 b3aed1d162 translate newly added messages about flv 2022-02-08 19:29:01 +08:00
myl7 1a8f145ed7 suppress eslint to use single quote in jsx other than using string literal 2022-02-08 19:11:47 +08:00
myl7 da0fdec142 put single quote in jsx into string literal 2022-02-08 18:08:51 +08:00
myl7 09c67f4870 format code and fix i18n prop passing in oauth guide step 3 2022-02-08 17:53:15 +08:00
myl7 207a90e6e2 fix entity encoding problem in i18n
the extracter we use, i18next-parser, can not handle entity encoding in
keys while using <Trans>
2022-02-08 17:48:25 +08:00
myl7 ed6dcc926f pass locale related info into oauth guide page props 2022-02-08 17:17:21 +08:00
myl7 73651e4f50 add getReadablePath util to make copied url readable 2022-02-08 02:54:48 +08:00
myl7 34fb665eb9 remove wired duplicated code line 2022-02-07 19:19:12 +08:00
myl7 343eb15dd2 fix type error by modifying useHotKeys hook directly 2022-02-07 17:15:37 +08:00
myl7 54846eecd4 prevent ctrl+k default
avoid opening browser search box in chrome when pressing ctrl+k
2022-02-07 17:01:33 +08:00
myl7 b3ffeb9635 add translations for oauth guide pages 2022-02-07 16:50:05 +08:00
myl7 9faa2849eb add flv video support
with flv.js which is dynamicly imported
2022-02-07 01:51:28 +08:00
myl7 49a601446d add translations for preview components
also fix ellipsis in zh-CN
2022-02-06 20:34:03 +08:00
myl7 04e333aa36 fix double plurals with context 2022-02-06 20:09:59 +08:00
myl7 c0353b5455 migrate from i18next-scanner to i18next-parser
i18next-scanner does not support i18next JSON v4 format
2022-02-06 19:47:36 +08:00
myl7 24507cbbb9 add translation json and fix some missed hooks 2022-02-06 19:26:11 +08:00
myl7 2df258f791 add trans support and hook all compnents excluding preview dir 2022-02-06 18:35:03 +08:00
myl7 aa848c92f8 add trailing slash config to fix i18n with api routes 2022-02-06 17:26:46 +08:00
myl7 85b51fe5c1 add some zh-CN translations 2022-02-06 06:55:38 +08:00
myl7 5bd04045b1 fix pages get props 2022-02-06 06:54:52 +08:00
myl7 e28ce30987 add next-i18next as i18n framework 2022-02-06 06:18:26 +08:00
myl7 39022be478 add cors for raw file link 2022-01-26 20:42:57 +08:00
myl7 b86893fed2 clean path param earlier 2022-01-25 00:51:42 +08:00
myl7 6df1447d33 update error inner structure 2022-01-24 23:16:10 +08:00
myl7 9bde9bdab0 report handleable error in downloading 2022-01-24 22:01:35 +08:00
myl7 007e412630 handle errors when traversing 2022-01-24 22:01:35 +08:00
myl7 b63b374666 catch any name to index api for notion 2022-01-24 17:18:21 +08:00
myl7 a53c0ab985 add flags to help to decide file icon 2022-01-24 16:03:35 +08:00
myl7 d3d69849c9 add flags to help to decide preview type 2022-01-24 15:52:45 +08:00
myl7 8dcb881917 update traversing method
change DFS to BFS with same level folders fetched concurrently.
merge helper class into traversing func.
2021-12-16 23:54:45 +08:00
myl7 f550a08e37 update function names and comments according to upstream 2021-12-16 21:57:04 +08:00
myl7 afcd6abd0e add folder download notification 2021-12-16 21:28:37 +08:00
myl7 5a8bb2acda add folder meta in dfs traversing 2021-12-16 21:28:37 +08:00
myl7 4a7398bf59 add loading state for folder download 2021-12-16 21:28:36 +08:00
myl7 a35a7a790b refactor to get LoadingIcon and Downloading for later folder loading 2021-12-16 21:28:33 +08:00
myl7 fb1520c944 finish folder download 2021-12-16 21:21:52 +08:00
myl7 f6d44b7ee5 add folder download utils 2021-12-16 21:17:10 +08:00
myl7 1b74a378e9 add selected download notification 2021-11-28 21:27:11 +08:00
myl7 e706051238 fix duplicated click event for wrapped checkbox 2021-11-27 19:04:21 +08:00
myl7 66edd3034f remove meaningless console log 2021-11-27 17:00:32 +08:00
myl7 1d6c40affe update download function
Rename it and turn it into async other than using callback
2021-11-27 16:31:02 +08:00
myl7 6c63aa90be fix code style problem 2021-11-27 16:31:02 +08:00
myl7 2071cdea32 add urlencoding for one lost c.name 2021-11-22 23:50:13 +08:00
myl7 d7dd74772e hide selecting checkbox for .password
.password is still downloadable via per-file download button, but it is completely excluded from selecting downloading
2021-11-19 21:37:14 +08:00
myl7 c4c31e0dda exclude .password from downloading 2021-11-19 21:31:07 +08:00
myl7 54de2651ce exclude selecting only one file from multi file download 2021-11-19 16:38:00 +08:00
myl7 c1454db48f add spinner when downloading selected files 2021-11-19 16:21:42 +08:00
myl7 f8777682cc exclude folders from selection 2021-11-19 07:56:11 +08:00
myl7 61dd08c1aa add download button style and action
Add jszip to dependencies
2021-11-19 07:28:05 +08:00
myl7 d1b7022127 add file selection checkbox behavior 2021-11-19 06:36:23 +08:00
myl7 1868d4b3dc alloc 1 col in file listing for file selection 2021-11-19 04:13:19 +08:00
myl7 9ad71b2675 fix 500 when setting root as public root
When listing root children, the path should omit a colon

Ref https://docs.microsoft.com/en-us/onedrive/developer/rest-api/api/driveitem_list_children?view=odsp-graph-online#list-children-in-the-root-of-the-current-users-drive
2021-11-01 18:35:34 +08:00
myl7 0479b7868c add EPUB preview 2021-10-06 05:28:40 +08:00
myl7 f3d1b01ccb fix index page 500 error
By removing trailing slash for drive api
2021-09-10 04:48:41 +08:00