diff --git a/README.md b/README.md index fd2cf8f..bf8c429 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,13 @@
onedrive-vercel-index

onedrive-vercel-index

-

Get startedWhat's new?Sponsoring

+

Get startedWhat's new?Sponsoring

OneDrive public directory listing, powered by Vercel and Next.js

OneDrive Next.js Vercel - Documentation + Documentation GitHub Discussions
@@ -24,7 +24,7 @@ Showcase, share, preview, and download files inside *your* OneDrive with onedriv ## Quick start -馃殌 Quick start: [Getting started](https://onedrive-vercel-index.spencerwoo.com/docs/getting-started). +馃殌 Quick start: [Getting started](https://ovi.swo.moe/docs/getting-started). ## Discussion @@ -32,7 +32,7 @@ Please go to our [discussion forum](https://github.com/spencerwooo/onedrive-verc *If you happen to like this project, please give it a star!* :3 -*If you really, really like this project, please send money! -> [Sponsors 馃 and donations 馃挵](https://onedrive-vercel-index.spencerwoo.com/sponsor)* +*If you really, really like this project, please send money! -> [Sponsors 馃 and donations 馃挵](https://ovi.swo.moe/sponsor)* ## Demo @@ -90,14 +90,14 @@ Live demo at [Spencer's OneDrive](https://drive.swo.moe). 馃攷 Native Search - Password protected routes and files. Details here + Password protected routes and files. Details here Compress and download multiple files or folders. - Details here + Details here Searching through your shared OneDrive files (with some caveats 馃ズ). - Details here + Details here @@ -111,19 +111,19 @@ Live demo at [Spencer's OneDrive](https://drive.swo.moe). ## Documentation -Documentation is hosted at [onedrive-vercel-index.spencerwoo.com](https://onedrive-vercel-index.spencerwoo.com/). +Documentation is hosted at [onedrive-vercel-index.spencerwoo.com](https://ovi.swo.moe/). -- How can I get started and deploy? - [Docs - Getting started](https://onedrive-vercel-index.spencerwoo.com/docs/getting-started). -- How can I configure ... ? - [Docs - Custom configs](https://onedrive-vercel-index.spencerwoo.com/docs/custom-configs). +- How can I get started and deploy? - [Docs - Getting started](https://ovi.swo.moe/docs/getting-started). +- How can I configure ... ? - [Docs - Custom configs](https://ovi.swo.moe/docs/custom-configs). - Where is feature ... ? - - [Docs - Password protected folders](https://onedrive-vercel-index.spencerwoo.com/docs/features/protected-folders) - - [Docs - Multi-file and folder download](https://onedrive-vercel-index.spencerwoo.com/docs/features/multi-file-folder-download) - - [Docs - Hosting files (images) directly](https://onedrive-vercel-index.spencerwoo.com/docs/features/hosting-images-directly) - - [Docs - Search for files and folders](https://onedrive-vercel-index.spencerwoo.com/docs/features/search-for-files-and-folders) - - [Docs - Load video subtitles](https://onedrive-vercel-index.spencerwoo.com/docs/features/load-video-subtitles) -- I deployed this before, how can I upgrade to the latest version? - [Docs - Updating to the latest version](https://onedrive-vercel-index.spencerwoo.com/docs/migration/updating-to-latest-version) -- I was here before 2022, how can I migrate to the new version? - [Docs - Migrating from versions before 2022](https://onedrive-vercel-index.spencerwoo.com/docs/migration/if-you-deployed-before-2022). -- I got a problem during deployment ... - [Docs - FAQ](https://onedrive-vercel-index.spencerwoo.com/docs/faqs/error-on-deployment) + - [Docs - Password protected folders](https://ovi.swo.moe/docs/features/protected-folders) + - [Docs - Multi-file and folder download](https://ovi.swo.moe/docs/features/multi-file-folder-download) + - [Docs - Hosting files (images) directly](https://ovi.swo.moe/docs/features/hosting-images-directly) + - [Docs - Search for files and folders](https://ovi.swo.moe/docs/features/search-for-files-and-folders) + - [Docs - Load video subtitles](https://ovi.swo.moe/docs/features/load-video-subtitles) +- I deployed this before, how can I upgrade to the latest version? - [Docs - Updating to the latest version](https://ovi.swo.moe/docs/migration/updating-to-latest-version) +- I was here before 2022, how can I migrate to the new version? - [Docs - Migrating from versions before 2022](https://ovi.swo.moe/docs/migration/if-you-deployed-before-2022). +- I got a problem during deployment ... - [Docs - FAQ](https://ovi.swo.moe/docs/faqs/error-on-deployment) - I didn't find a solution / My problem is unique - [Find help in discussion forum](https://github.com/spencerwooo/onedrive-vercel-index/discussions). ## Server-*less* (free)? @@ -134,7 +134,7 @@ Yes! Completely free with no backend server what-so-ever. (Well, we use Redis, b Open-source is hard! If you happen to like this project and want me to keep going, please consider sponsoring me or providing a single donation! Thanks for all the love and support! -[馃Ц Please donate - 寰俊/鏀粯瀹漖(https://onedrive-vercel-index.spencerwoo.com/sponsor) 路 [Patreon](https://www.patreon.com/spencerwoo) 路 [鐖卞彂鐢礭(https://afdian.net/@spencerwoo) +[馃Ц Please donate - 寰俊/鏀粯瀹漖(https://ovi.swo.moe/sponsor) 路 [Patreon](https://www.patreon.com/spencerwoo) 路 [鐖卞彂鐢礭(https://afdian.net/@spencerwoo) ### Sponsors diff --git a/components/CustomEmbedLinkMenu.tsx b/components/CustomEmbedLinkMenu.tsx index b53fb2c..a7ed49e 100644 --- a/components/CustomEmbedLinkMenu.tsx +++ b/components/CustomEmbedLinkMenu.tsx @@ -66,7 +66,7 @@ export default function CustomEmbedLinkMenu({ {t('Change the raw file direct link to a URL ending with the extension of the file.')}{' '} setName(e.target.value)} />

{t('Default')}

-
+
{`${getBaseUrl()}/api/raw/?path=${getReadablePath(path)}${hashedToken ? `&odpt=${hashedToken}` : ''}`}

{t('Customised')}

-
+
{`${getBaseUrl()}/api/name/`} {name} {`/?path=${getReadablePath(path)}${hashedToken ? `&odpt=${hashedToken}` : ''}`} diff --git a/components/FourOhFour.tsx b/components/FourOhFour.tsx index 4b854ef..a664608 100644 --- a/components/FourOhFour.tsx +++ b/components/FourOhFour.tsx @@ -14,7 +14,7 @@ const FourOhFour: React.FC<{ errorMsg: string }> = ({ errorMsg }) => { Oops, that's a four-oh-four.
-
+
{errorMsg}