Commit Graph
109 Commits
Author SHA1 Message Date
spencerwooo aa9df292f8 feat: upgrade next and i18n 2023-01-26 13:35:41 +08:00
spencerwooo d7dea68f05 update react, nextjs and friends 2022-10-08 14:47:39 +08:00
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
spencerwooo 918724e05c remove prismjs, close #432 2022-02-14 21:01:22 +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 c6abeeb8aa customise embed link menu, close #314 2022-02-12 22:09:54 +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 45f6158e7d switch locale component 2022-02-08 23:30:12 +08:00
spencerwooo 6aca0473ae fix some confusing zh-CN locales 2022-02-08 22:12:40 +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
spencerwooo 3773a3a2cf some housekeeping 2022-02-08 16:49:34 +08:00
Spencer Woo 2b5a91537b Merge branch 'main' into i18n 2022-02-08 16:42:32 +08:00
myl7 b3ffeb9635 add translations for oauth guide pages 2022-02-07 16:50:05 +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
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
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 c66c61bfee switch layout dropdown and layout store 2022-02-04 22:20:53 +08:00
spencerwooo c16d0ab2db new breadcrumb that scrolls to the end automatically 2022-02-04 17:22:40 +08:00
spencerwooo e4f3ea7b05 formatting tailwind classes with prettier 2022-02-04 16:05:28 +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