What's new?
π This is a constantly updating page of new updates for this project. Also available at What's new? #325.
2022/2/14 π
-
Other than password protected routes, and raw file link redirect API, all other API routes are using Vercel edge caching mechanisms (fresh for 60 seconds):
Cache-Control: max-age=0, s-maxage=60, stale-while-revalidate
-
Raw file link redirect API changed from
/api?path=<file>&raw=true
to/api/raw?path=<file>
, no cache applied. -
Raw file link redirect API accepts the URL parameter
&odpt=<hashed_token>
for password authentication.
2022/2/10
-
π A few performance boosts:
- Thumbnails are now requested separately after files are initially loaded. This improves file load performance as we are requesting fewer items from OneDrive's API on initial request. (However your thumbnails may load slower for half a second or so.)
- Edge caching is now in use: we are now leveraging Vercel's edge function caching and
stale-while-revalidate
options, so you should experience extremely faster load speed for all API routes.) Cache is valid for 60 seconds on the edge. Check: π Edge caching #407.
-
π¨βπ» Code highlighting: we dropped dependency
Prism.js
, syntax highlighting is now performed byreact-syntax-highlighter
(usinghighlight.js
under-the-hood. Support for different languages are imported asynchronous (so you may see a slight delay before the code is actually highlighted).Light Dark -
πΈ Audio preview (music player) now shows the thumbnail of the album if available.
2022/2/8
-
π¨π³/π¬π§ - Project is i18n-ed, enjoy. π₯±
-
π₯
.flv
videos are now supported. -
π Links copied to your clipboards are now formatted in a human-readable way.
- before: /api?path=/%F0%9F%8E%BB%20Genshin%20playlist/%E3%80%90%E5%8E%9F%E7%A5%9E%E3%80%91%E8%83%A1%E6%A1%83%EF%BC%9A%E5%95%8A%E5%AF%B9%E5%AF%B9%E5%AF%B9%E5%AF%B9.mp4&raw=true + after: /api?path=/π»%20Genshin%20playlist/γεη₯γθ‘ζ‘οΌεε―Ήε―Ήε―Ήε―Ή.mp4&raw=true
-
π You can now customise your date formats in
site.config.js
underdatetimeFormat
.
2022/2/5
-
π Layout switching is now supported! Grid layouts with thumbnail previews are now available.
-
π We have dropped usage of
react-viewer
which is unperformant and causes high CPU usages.
2022/2/2
-
π₯ We have dropped usage of
react-player
and is now usingreact-dplayer
andreact-audio-player
as video and audio players respectively. -
π We added thumbnail rendering for videos, see the difference:
Before After -
π¬ We added support for subtitles (closed captions), which are auto referenced if a valid subtitle file with the same name as the video and in
.vtt
webvtt format is present.Before After -
β‘οΈ We have migrated from
npm
topnpm
as project's package manager for faster build speed and more efficient cache usage. You may need to update your Vercel's build commands:- Build command:
pnpm build
- Install command:
pnpm install
- Build command:
2022/1/29
- βBreaking - Config files changed from
.json
to.config.js
, relevant comments added. You can now moveuserPrincipleName
to Vercel's environment variables (to avoid exposing your email address publicly). - CORS headers are now present in
?raw=true
/api/raw
routes for OneDrive raw file links.
2022/1/22
2022/1/11
2022/1/10
- π« Removed support for proxied download because of Vercel restrictions: Proxied download not working - ζ ζ³δ½Ώη¨δ»£ηδΈθ½½ #251.
2022/1/1
- π We now no longer need extra deployment tokens/secret setups: New version update: No extra deployment setup is required anymore! #215