Commit Graph
64 Commits
Author SHA1 Message Date
spencerwooo 250b5e683c fix protectedRoutes type error, close #736 2022-08-04 21:51:42 +08:00
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 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 18107590d2 ensure .password file response body is string from axios 2022-07-15 17:37:43 +08:00
浅秋枫影andspencerwooo 7df0453269 Enable raw file content proxy for files up to 4MB (#546)
Co-authored-by: spencerwooo <spencer.woo@outlook.com>
2022-03-16 16:56:32 +08:00
spencerwooo 049be5d841 fix onedrive international version failing raw redirect 2022-02-14 23:35:32 +08:00
Spencer Woo 9493ce9f3d Standalone raw file redirects (#428) 2022-02-14 19:33:19 +08:00
spencerwooo aea8a4d029 Merge branch 'main' of github.com:spencerwooo/onedrive-vercel-index into stale-while-revalidate-59 2022-02-13 19:17:04 +08:00
spencerwooo 3254bfad35 stop serving cache for protected routes, close #425 2022-02-13 19:09:47 +08:00
spencerwooo a8ea73c564 change cache control header (stale-while-revalidate) 2022-02-12 19:37:00 +08:00
spencerwooo 03163e9d32 reduce cache maxage 2022-02-10 23:06:11 +08:00
spencerwooo 2686197b4a setup edge caching 2022-02-10 22:55:59 +08:00
spencerwooo cf97983063 request all thumbnail on separate route instead 2022-02-10 10:47:58 +08:00
myl7 197336d42d add thumbnail api and update grid view thumbnail fetching 2022-02-09 15:19:54 +08:00
spencerwooo 96b3c92df9 some housekeeping 2022-02-06 16:01:21 +08:00
Ovler d4998466de Update search.ts 2022-02-06 15:27:06 +08:00
Ovler 234d826d3a fix typo 2022-02-05 23:36:49 +08:00
Ovler 20990fcf08 Try to fix CJK search 2022-02-05 23:07:08 +08:00
spencerwooo 2c22c17ddd grid layout with thumbnails 2022-02-05 17:25:46 +08:00
spencerwooo 91236a123f drop react player, use dplayer and react-audio-player 2022-02-02 21:36:12 +08:00
spencerwooo d95f8d540b return width and height for images 2022-02-02 17:07:33 +08:00
spencerwooo 7d39a998e1 use .config.js for configuration files, close #301 2022-01-29 15:40:50 +08:00
spencerwooo 46844c30ed extract cors middleware outside function scope 2022-01-29 14:47:04 +08:00
myl7 39022be478 add cors for raw file link 2022-01-26 20:42:57 +08:00
Spencer Woo 7e3c073c98 Merge pull request #306 from myl7/notion 2022-01-26 15:54:12 +08:00
Spencer Woo 03353ed6dc Merge branch 'main' into ts 2022-01-26 15:42:41 +08:00
myl7 b86893fed2 clean path param earlier 2022-01-25 00:51:42 +08:00
spencerwooo b47dd88d1a useSWR instead of custom useAxiosGet hook for cache reuse 2022-01-24 20:50:43 +08:00
myl7 b63b374666 catch any name to index api for notion 2022-01-24 17:18:21 +08:00
spencerwooo bfbe4eb042 search support for od business 2022-01-24 16:18:55 +08:00
myl7 d3d69849c9 add flags to help to decide preview type 2022-01-24 15:52:45 +08:00
spencerwooo c3daf370ec layout stuff for mobile and desktop 2022-01-21 22:12:07 +08:00
spencerwooo 1b658b6a98 search with onedrive graph api 2022-01-21 21:42:21 +08:00
spencerwooo 03e1772d38 match direct link with regex, close #248 #251 2022-01-10 19:21:28 +08:00
spencerwooo 02f03b41bf better error handling 2022-01-10 16:36:45 +08:00
Spencer Woo 312bcff515 proxied download match direct link, fix #225 and #222 2022-01-02 16:13:21 +00:00
spencerwooo 13f5c2c79f use ioredis instead of keyv 2021-12-31 20:30:29 +08:00
spencerwooo 115b550cb5 store tokens in redis with upstash 2021-12-31 20:03:17 +08:00
spencerwooo 2e6c652ea1 lets try storing as tmp file again 2021-12-31 16:56:18 +08:00
spencerwooo 71ba7ff67c post obfuscated as application/json 2021-12-31 15:55:38 +08:00
spencerwooo 72153cc852 store access token and refresh token in serverless mem 2021-12-31 15:17:39 +08:00
spencerwooo 45ef22f34a store access token and refresh token in the file system /tmp 2021-12-31 12:17:00 +08:00
spencerwooo 38d24146fa oauth inside main project, with public client id and secret 2021-12-31 03:44:03 +08:00
Spencer Woo 8658b480ed remove unused console logs 2021-12-29 23:31:43 +08:00
spencerwooo 0e8629e935 file download proxied stream from vercel 2021-12-29 02:11:52 +08:00
spencerwooo 93376e071e refactor new file download functions to new file 2021-12-17 21:21:25 +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