This repository has been archived by the owner on Jul 26, 2023. It is now read-only.
What's new? - Updated 2022/2/16 #325
spencerwooo
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
🎉 This is a constantly updating page of new updates for this project. Also available at: Blog - What's new?.
2022/2/16
plyr
:)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):
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. (Check: Docs - Protected folders).2022/2/10
🚀 A few performance boosts:
stale-while-revalidate
options, so you should experience extremely faster load speed for folder listings.) Cache are valid for a hour on the edge. Check: #407 and Docs - Cache.👨💻 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).🎸 Audio preview (music player) now shows the thumbnail of the album if available.
2022/2/8
🇨🇳/🇬🇧 - Project is i18n-ed
(Happy now?). Enjoy. 🥱🎥
.flv
videos are now supported.🔗 Links copied to your clipboards are now formatted in a human-readable way.
📅 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:
💬 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.⚡️ 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:pnpm build
pnpm install
2022/1/30
2022/1/29
.json
to.config.js
, relevant comments added. You can now moveuserPrincipleName
to Vercel's environment variables (to avoid exposing your email address publicly).?raw=true
routes for OneDrive raw file links.2022/1/22
♻️ More changelogs.
2022/1/11
2022/1/10
2022/1/1
Beta Was this translation helpful? Give feedback.
All reactions