Coder Social home page Coder Social logo

spencerwooo / onedrive-vercel-index Goto Github PK

View Code? Open in Web Editor NEW
3.0K 3.0K 3.5K 6.97 MB

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

Home Page: https://drive.swo.moe

License: MIT License

JavaScript 3.93% TypeScript 86.02% CSS 10.05%
nextjs onedrive react redis tailwindcss upstash vercel

onedrive-vercel-index's Introduction

onedrive-vercel-index

Get started · What's new? · Sponsoring

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

OneDrive Next.js Vercel Documentation GitHub Discussions

TL;DR

Showcase, share, preview, and download files inside your OneDrive with onedrive-vercel-index -

  • Completely free to host 💸
  • Super fast ⚡ and responsive 💦
  • Takes less than 15 minutes to setup ⏱️
  • Highly customisable ⚒️

🍌 More importantly, we are pretty (●'◡'●)

Quick start

🚀 Quick start: Getting started.

Discussion

Please go to our discussion forum for general questions and FAQs, issues are for bug reports and bug reports only. Feature requests may or may not be ignored, as I (@spencerwooo) am the only one maintaining the project, so I only prioritise features that I use.

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 💰

Demo

Live demo at Spencer's OneDrive.

demo

Features

👀 File preview 💠 List / Grid layouts 🎥 Video and audio
PDF, EPUB, markdown, code, plain text For previewing images and documents with thumbnails mp4, mp3, ..., play online or with IINA, PotPlayer ... with subtitles!
📄 Office preview 📝 README.md preview 📑 Pagination
docx, pptx, xlsx, ... Also renders code blocks, images with relative links, ... For folders with 200 or more items
🔒 Protected folders ⏬ Multi-file download 🔎 Native Search
Password protected routes and files. Details here Compress and download multiple files or folders. Details here Searching through your shared OneDrive files (with some caveats 🥺). Details here

... and more:

  • Streamlined deployment, without having to get your tokens manually anymore!
  • Direct raw-file serving and hosting ...
  • Full dark mode support, style and website customisations ...

Note: This project is focused on showcasing and providing a way for others to download files from your OneDrive. Emphasis on free and serverless. If you have your own server / need WebDAV / use cloud providers other than OneDrive, checkout alist.

Documentation

Documentation is hosted at ovi.swo.moe.

Server-less (free)?

Yes! Completely free with no backend server what-so-ever. (Well, we use Redis, but that's free to some extent also.)

Sponsors and donations

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 - 微信/支付宝 · Patreon · 爱发电

License

MIT

made with ❤️ by spencer woo

onedrive-vercel-index's People

Contributors

aidenlx avatar airwsw avatar android-kitkat avatar chisaato avatar cubercsl avatar dogtorrent avatar hans362 avatar hfzrk avatar mahoo12138 avatar myl7 avatar nabarunkar avatar naicfeng avatar opoet avatar ovler-young avatar pokobunhsu avatar renovate[bot] avatar rinrinx2 avatar shoucandanghehe avatar spencerwooo avatar starsbysea avatar sudoalx avatar symant233 avatar therockstarind avatar vulcanraven91 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

onedrive-vercel-index's Issues

File direct download icon

Download files directly via download button in the listing view.

Discussed in #49

Originally posted by cgmark101 August 15, 2021
Hi man, thanks for this awesome tool. Is there a way to direct download a video without redirecting to the embeded player?

尝试部署后发现的bug

Discussed in #17.

Originally posted by aozaki-kuro July 8, 2021
感谢作者一直坚持不懈开发新的onedrive-index项目!
目前我也尝试性地部署了项目,发现bug和样式想要修改的地方仍然较多。
测试页面:https://beta.suisei.cc/%E2%9C%A83D%20Live

发现的Bug

  • readme.md加载时无法识别html代码,以及fontawesome似乎无法加载的样子。期望:readme.md内的html代码正确加载,且正确引入fontawesome。
  • onedrive-cf-index遗留的问题仍然存在:文件夹带#时无法获取正确路径。期望:带#的文件路径可以被自动替换为%23
  • 尽管我已经指定使用monospace字体,在标题超长时会出现这样未对齐的情况。期望:图标以及标题对齐。(预览界面使用的字体为更纱黑体)

image

文件夹列表读取最多只能到200项么?

谢谢作者做出这么棒又简单的作品。

昨天分别在 Vercel 和 Netlify 部署了,几个onedrive 中有个文件夹有 1000+文件,发现如下:

  • Vercel 的单个文件夹里只能读取到197项 ;
  • Netlify 的单个文件夹则能读取到200项(两个不同 onedrive 复现)。

请问如何能列表至1000或1000+ ?或者可能 是这个 issue 提到。不过我这里可能单页列表的数量会更大……

感谢

👀 Preview functionalities

  • Preview images (also gallery mode!)
  • Preview videos and audio with react player.
  • Preview PDF files with pdf.js.
    • Fix PDF viewer width responsive design. Probably need to use window width hooks.
  • Preview code with highlighting.
  • Preview markdown files with remarkjs/react-markdown
  • Preview pure text files.
  • Investigate possibility of previewing Office files.

请问E5的是不是搭建不成功?

大佬你好,用E5的搭建完显示Error: Request failed with status code 500.不知道为什么。
Vercel中显示的error为
[GET] /api?path=/
12:50:12:43
AAAAD--DLA3VO7QrddgJg7WevrAgDs_wQA9P9vMoeGIJz0OZdWzXpb34tvqW50cREH8ef_duBLVxq_Q9swV3hDte8GuQxGGAPa64karLjCrYVFFtKPPLHzbLRDkTA_QZfRRE9EmqRWSRGzRfLXkKgKJxUlsuULmv-djw3ytMDlMnegtUTJGga0mpMDZYUT1b6hxSuSmNkJIxFztOl_DbLVn4CQjC4IGLiy9nsQEpl5GRwgIpXYSJOcIRSDRwz4Yhbh3mEZ72AS57ih9UNLGwO9XtUlxH2a-jMRSdTAMGqtXCt8oiOlMDZuICX9hBHf_e0fZYv9qKImZt_TEL9wc5Vc1ytT2_b0jvrnTqKL0zH02Ex8CrlLz6ODr1T4glyb0LvPuw2BEFjTBYLN3m8s7x6Oy9QorENv8hqoGKOli2pO_V7FweP29DkW_Q_2X6a7MirSSySBxLdhfvY3ULG_TTOF5532ojZqOnViaujTz23vaN-WcnzigKpY85Un0BMkD6O7aA28HmxXpo5vebLH9rC2TS4-2KHV96V6VuhRSMXfobBqyjmJJa-jdwA0E10HdXa51WIC93MtoPPxA0rGZV1QAWU88e1F2XgPyfn3M7iUDNdMQPCW_hJnzdtF-F7yUUMZuNSmZqF5o7v0EsbAcmGzn7zHRaX57SYi5ZkA2gSb_P2_j0o7nBy5oQ8jeNgax6qb-Trmkq3TCh52R1pGEu-KNWGlXNkUeIeQ0uUwmq6ZH9nUUpOCaTJhRJ84SlBwmshaS7Ln2FKfkFER9dvrbiKw0em-tGDznNnjTzMux42W9yN-Gqi1otcLKaHUk1g8nwxl1H6knbf9d18m-VBXCVPeOoT7BnZna0rXzqWQ5uwQg7b4A2fwFfOt6A1-TabDqj7Go3pUtWihlLeCoFWMQshHecjW4tJ0qIgkNtn4SePe8i1Ng32uS-afLSyI7j0hkUfA4G3Dw_0PAk_kPbBs9MNv0HM&grant_type=refresh_token',
headers: [Object],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
adapter: [Function: httpAdapter],
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
validateStatus: [Function: validateStatus]
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
_contentLength: null,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
socket: [TLSSocket],
_header: 'POST /common/oauth2/v2.0/token HTTP/1.1\r\n' +
'Accept: application/json, text/plain, /\r\n' +
'Content-Type: application/x-www-form-urlencoded\r\n' +
'User-Agent: axios/0.21.1\r\n' +
'Content-Length: 1216\r\n' +
'Host: login.microsoftonline.com\r\n' +
'Connection: close\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: noopPendingOutput],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
path: '/common/oauth2/v2.0/token',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'login.microsoftonline.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype]
},
data: {
error: 'invalid_client',
error_description: "AADSTS50011: The reply URL specified in the request does not match the reply URLs configured for the application: '54789609-d25f-450b-b312-3de409813c18'.\r\n" +
'Trace ID: 2ecb3204-dc82-4048-ac8d-1b21beb7a300\r\n' +
'Correlation ID: c10dcc94-2de4-47b2-ad53-1b6a1635ca46\r\n' +
'Timestamp: 2021-08-31 04:50:13Z',
error_codes: [Array],
timestamp: '2021-08-31 04:50:13Z',
trace_id: '2ecb3204-dc82-4048-ac8d-1b21beb7a300',
correlation_id: 'c10dcc94-2de4-47b2-ad53-1b6a1635ca46',
error_uri: 'https://login.microsoftonline.com/error?code=50011'
}
},
isAxiosError: true,
toJSON: [Function: toJSON]
}
RequestId: 9a531056-b30f-4adb-9e2d-f002de21ade4 Error: Runtime exited with error: exit status 1
Runtime.ExitError

自动刷新 Token

因为某些原因,我只能使用rclone来获取access_token以及refresh_token,但是这些token有效期仅为一个小时。
所以我有一个想法,用户需要Import此项目并设置为Private,将Client ID与Client Secret写入到项目的Secret中,然后通过GitHub Actions自动通过Secret刷新token并且把token push到Repo的配置文件中,同时Vercel通过新push的token重新部署。这样可以同时解决Vercel 4KB限制以及token过期的问题。

继续部署后报bug 😂

大佬您好,我又来了,继续报bug

这次问题主要集中在README.md

font awesome无法使用

目前尽管可以解析HTML代码,但是font awesome仍然没有办法正确引入。

期望:能够在README.md中使用font awesome。
测试页面:https://beta.suisei.cc/%E2%9C%A83D%20Live

image

img标签占位不正常

README.md中插入图片后,会占满一整栏,同一行插入的第二张图片会被挤到第二行去。
连带使用的超链接也会在图片之外的区域被触发。

期望:元素不会占满一整行,超链接只在图片区域被触发。可以并排插入第二张图片。
测试页面:https://beta.suisei.cc/%F0%9F%8E%ACMV

image

意外重载

README.md在加载完成后,可能在切换文件夹时触发重载。首次进入该文件夹时不会触发。

复现方法:

  1. 进入文件夹A,等待加载完成。
  2. 从文件夹B后再回到文件夹A,触发README.md重载

这个bug尽管不影响功能,但是那么大面积内容进行闪烁和重载在观感上非常难受。
上一个版本似乎是没有的,希望能看一下问题出在哪里😂

3

OneDrive for Business 加载缓慢

使用 OneDrive for Business,即使目录中只放了一个文件,加载时间也长达 2.53 s。而OneDrive个人版,一个有20多个文件的目录,加载时间才773 ms。而且每次商业版都比个人版加载速度慢很多。似乎是 API 的问题。

OneDrive 个人版

加载时间:735 ms
image

OneDrive for Business

加载时间:4.53 s
image

图片直连出现 500:Internal Server Error.

图片在网页内可预览,复制直连到地址栏出现500:Internal Server Error.
视频文件未发现此问题。

应该与文件夹层级无关,同层数的视频可以激活下载,并且链接长度也大于图片。

PDF Previews does not work.

image

一开始以为是文件太大的缘故,但上传了一个较小文件(如上图大小为119KB的文件)之后,在线预览还是失效。并显示Failed to load PDF file.如下图:

image

request for google drive

your index theme is just awesome industrial level, can you make this same theme for google drive also ?

修改.password文件后报500错误

原本已经设置好了密码,添加了密码保护路由,进去需要输入密码才能访问,但是之后我i修改了.password文件后清除cookie和localStorage再访问报500错误,修改为以前的密码就没问题

Index isn't working

I deployed the app and it's continuously showing Error 500.
Have even tried to redeply but still it doesn't work.

Here is the error shown in vercel:
[GET] /api?path=/ 15:13:49:65 otype], _eventsCount: 7, _maxListeners: undefined, outputData: [], outputSize: 0, writable: true, destroyed: false, _last: true, chunkedEncoding: false, shouldKeepAlive: false, _defaultKeepAlive: true, useChunkedEncodingByDefault: false, sendDate: false, _removedConnection: false, _removedContLen: false, _removedTE: false, _contentLength: 0, _hasBody: true, _trailer: '', finished: true, _headerSent: true, socket: [TLSSocket], _header: 'GET /v1.0/me/drive/root:%2FPublic%2F:/children?select=%40microsoft.graph.downloadUrl,name,size,id,lastModifiedDateTime,folder,file&top=100 HTTP/1.1\r\n' + 'Accept: application/json, text/plain, */*\r\n' + 'Authorization: Bearer PartialTokenJWMfTg7hqwtUU7Ue3lIWUWhiTKmMQyC2CajEVOZHtE38JxPu742TuEEIFL1KBE9C1sVEszbBSdtYMxlJlxNzP9LEonBjns1L2rXqmIqqHDblZgrBw1A9B7B9nxxSjWxcGMPP8aa7547dr4YfUHigZBvw3uIpOkiGeIFUmX9D2aB86xoylMabBd3vjlWHEQlgpOFxsjnt7jdkxtkCzhd41bfQXIFborw\r\n' + 'User-Agent: axios/0.21.1\r\n' + 'Host: graph.microsoft.com\r\n' + 'Connection: close\r\n' + '\r\n', _keepAliveTimeout: 0, _onPendingData: [Function: noopPendingOutput], agent: [Agent], socketPath: undefined, method: 'GET', maxHeaderSize: undefined, insecureHTTPParser: undefined, path: '/v1.0/me/drive/root:%2FPublic%2F:/children?select=%40microsoft.graph.downloadUrl,name,size,id,lastModifiedDateTime,folder,file&top=100', _ended: true, res: [IncomingMessage], aborted: false, timeoutCb: null, upgradeOrConnect: false, parser: null, maxHeadersCount: null, reusedSocket: false, host: 'graph.microsoft.com', protocol: 'https:', _redirectable: [Writable], [Symbol(kCapture)]: false, [Symbol(kNeedDrain)]: false, [Symbol(corked)]: 0, [Symbol(kOutHeaders)]: [Object: null prototype] }, data: { error: [Object] } }, isAxiosError: true, toJSON: [Function: toJSON] } RequestId: e057bf92-cc0b-4e2b-a597-acc7aff6d651 Error: Runtime exited with error: exit status 1 Runtime.ExitError

It was working fine on this commit:
97f4250

encodePath引入path末尾的`/`导致世纪互联Onedrive下无法获取目录

在当前版本e53716下,以默认base配置(api.json-> "base": "/Public",)运行,encodePath会以/Public/输出,导致发送的请求

curl --request GET \
  --url 'https://microsoftgraph.chinacloudapi.cn/v1.0/me/drive/root:/Public/:/children?select=%40microsoft.graph.downloadUrl%2Cname%2Csize%2Cid%2ClastModifiedDateTime%2Cfolder%2Cfile&top=100' \
  --header 'Authorization: Bearer ...'

返回404(The resource could not be found.

而将此行改为

return `:${encodeURIComponent(encodedPath.replace(/\/$/, ""))}`

即可发送正确的请求,即:

curl --request GET \
  --url 'https://microsoftgraph.chinacloudapi.cn/v1.0/me/drive/root:/Public:/children?select=%40microsoft.graph.downloadUrl%2Cname%2Csize%2Cid%2ClastModifiedDateTime%2Cfolder%2Cfile&top=100' \
  --header 'Authorization: Bearer ...'

README.md 切换页面闪动

之前修改useSWR选项后,主页到第一层文件夹的 README.md 在切换后不再闪动。

但是发现从第二层到第三层文件夹,再切换回第二层之后发现会闪动。
从更深层的文件夹往上一层切换也能复现出这个问题。
1

但是从第三层以及更深文件夹直接回主页不会闪动。

感觉是个bug,希望可以再排查一下😂

请问能支持排序吗?

可以支持修改时间、大小、文件(夹)名称的表头排序吗? 现在文件很多.. 找起来不方便,如果有排序会方便很多

Feature request: Folder and batch download

Discussed in #136

Originally posted by myl7 October 7, 2021
onedrive-vercel-index has preview support for many file formats, which encourages webmasters to serve the shared files in bulk other than in zip, making preview of the files possible.
However, onedrive API doesnot provide a way to download a folder or download files in batches. You actually can do them via onedrive share url, and onedrive just doesnot provide the api.
The fact makes visitors difficult to download the files stored (even hierarchically) in a folder.
To solve it and enhance the experience, I have come up with some solutions:

  1. ... just paste an onedrive share url in the index page. Users can go to the onedrive share page to download anything they want. No code change required.
  2. Provide a button to let the user download (even recursively) all items in the page. Seems not hard.
  3. Provide a button to copy all download urls in the page, and ask the user to use other tools to download these files. Even easier than 2.
  4. Provide a button to send all download urls to a paticular server, and the server fetches the files, zips them, and sends the zip files back to the user in stream. This additionally requires another backend project and makes onedrive-vercel-index not so serverless.
  5. Fetch the files, zip them, and download the zip files in stream, but in client side, in browser js. I am not sure if this is possible. But this will be the most comfortable solution for users.

Currently I would support 1 & 2.

-> Let's see what we can do about this.

密码功能无效

在config/site.json中定义了目录,在目录中加了.password. 还是可以直接打开文件夹不需要密码

Last Modified样式修改

image
现在这样长长短短说实话挺难看的

提议修改为

yyyy/MM/dd HH:mm

样式以使整栏对齐。

I hope you can add drive_id option.

Hi,
When there are multiple drives in business account, it select the only onedrive no matter what I tried.
When I tried to select second and added details of it, it still showing the first onedrive.
I tried doing alot but failed, if you can, please add drive_id option to solve this.

请问npm run build错误,是什么原因

在本地windows环境下运行
npm run dev正常,但执行npm run build报错

具体报错信息如下:

npm run build

> [email protected] build
> next build

info - Using webpack 5. Reason: Enabled by default https://nextjs.org/docs/messages/webpack5
info - Checking validity of types

warn - You have enabled the JIT engine which is currently in preview.
warn - Preview features are not covered by semver, may introduce breaking changes, and can change at any time.
info - Creating an optimized production build
info - Compiled successfully
info - Collecting page data ..(node:3500) ExperimentalWarning: The ESM module loader is experimental.
info - Collecting page data ...(node:13556) ExperimentalWarning: The ESM module loader is experimental.

> Build error occurred
Error: Build optimization failed: found pages without a React Component as default export in
pages/
pages/[...path]

关于夜间模式

夜间模式部署了大概看了一下想提一下这些小问题:

文件列表颜色过于刺眼

image

看了下目前的夜间模式,字体颜色是255,255,255,在大反差之下显得非常刺眼,尝试修改到200,200,200就已经非常柔和了,作为夜间模式至少不会晃眼。

.dark\:text-white {
    --tw-text-opacity: 1;
    color: rgba(200,200,200,var(--tw-text-opacity));
}

但我没发现这个应该在哪里调……只能先开个issue了

白色横条?

image

这个其实在最开始部署的就想问属于是bug还是feature了…目前夜间模式就这一条是非常突兀的灰色长条。不知道能不能干脆去掉。

文件列表栏和markdown preview的色差

image

目前上下色差挺明显的,下面的markdown preview配色似乎是跟着github主站的配色方案走了。想问下这是特意设计的差异吗?

Prepare for V1.0

Reaching V1.0 milestone.

  • New version, new README, new documentation
  • Polish up 404 page.

.ts视频文件被当作文本文件处理

.ts视频文件被当作文本文件处理

样本视频:https://pan.parksi.top/%E8%A7%86%E9%A2%91/%E6%B4%8B%E8%91%B1%E5%AD%A6%E5%9B%AD%EF%BC%9A%E6%95%B0%E5%AD%A6%EF%BC%9A%E6%96%B0%E5%8D%8E%E5%B8%88%E5%A4%A7/%E5%BF%85%E4%BF%AE%E4%B8%80/1.%E3%80%8A%E9%9B%86%E5%90%88%E4%B8%8E%E5%90%AB%E5%8F%82%E6%96%B9%E7%A8%8B%E3%80%8B%E4%B8%93%E9%A2%98%E8%AF%BE/0.%E4%BB%8B%E7%BB%8D%E8%A7%86%E9%A2%91.ts

渲染的部分内容:

G@��B�%���������H���FFmpeg	Service01w|C������������������������������������������������������������������������������������������������������������������������������������������������G@��
����*��������������������������������������������������������������������������������������������������������������������������������������������������������������������������GP����������������
�eng�����������������������������������������������������������������������������������������������������������������������������������������������������������GA0�P{~����
1	�����a�	��gd���@P�������� ��`�h���"��������E���H��,� �#��x264 - core 148 - H.264/MPEG-4 AVC codec - Copyleft 2003-2016 - http://www.videolan.orgG��/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 faG��st_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0G�� direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.4G��0 aq=1:1.00��e��;���N���T�*��W
�ʤ&Y�Rk������
[j(�i�ɽ4���u�U�&��
@2@���s��d��}����`�����������������������G���������������EV�XM��[�	�������etv��\�j�)C2���K}�]i����I�uZ|��(�o�L{�
��~�¤�E�5�Ĕ�!�j��&��'ʫpۢ������o&��O
��|T2^3�7�<F����sq��
��B��20
ٕ�0����W��v#:}q��=����G��ʮ���,�l1Y���8���?N�AKz�������1�-�����Qs�:����:*)$������ͮ�Ǒ
�j�������z��Rb�Do(sر�$�7`����B����X�IYe�%��|~�6�������}D��>97E�4����F<���q��¨�����'�@������c�'�E��;���j��\������cG���O�8l�������[
�CH�i�,��#��9�d*��g���ί���}K���K�T���D�&�J�9�	���ɯt��->�C`ݎ�����}��G:��+�B����+�S����׊�u��������^�%����FV׌�^$(��1�����k����~q����m��k����,',��#��Q)��;ޟIe��G����R⧳�p�"s�����}8#Sg��kK�E��ӝ�xe_{�M+���o[\>dڵM��@��������e�Ͽ�V̺8�3��q������`N��<<R���c��{��MHtIFF�#��9=��;"��y��1���jV���vm�q�����ؓ������.��u����v��#�JA���W]kH��|՜����5���G��a�o�ʸ����Y��%
gG^�J�;V�:�����?����j�_��-h4���d��UR�r�R㋬�O���ol��<l��?'����4�K,?�5�[*�f��5b��;���>\�Ș����Y|��߳������i��D�ۿ�6s�G;hg�pg1[~�4��Qĝ,�������N�s��~��@K��yx�oP����G��K��f������ۚocl�V���{���i���H��Eb���[�uMV�ol�~Xl̿��vӂ{f��֑t!���3��Ľ�0�~�5��t��(��E��&f�N����.>��FL%`⤹�{�e�Q�m���p�T�`�T�/!�HUA��͠�o�d&G%B��F#A�>���('q���c�������#��!�s�g:�G�G����9�#ʪ��04||������UO�'�KG�Q$���'�	��o��-��$ILo��v[���I�� j��?���
;�YJ�h&�XAȕ���e��������+�Z����v� �7�1F��^���h��9_�w�B���c���˜����������������;����O(���Md��:�����(�D�M%�7�"�z�5G�<������������������������������������������������������������������������������������������������������������������������������������������������������������������������5�:�����l����ջGA=s����������������������������������������������������������������������������������������������������������������������
1	�!����	��A�$lC������������A]�Q�GA>y���~����������������������������������������������������������������������������������������������������������������������
1	H��	���	��A�Bx�����������qGA?~����������������������������������������������������������������������������������������������������������������������������������!	,��	����atB���������&�GA0y��,~����������������������������������������������������������������������������������������������������������������������
1	e��	H��	����cjB���������&�GA1p�������������������������������������������������������������������������������������������������������������������
1	��	e��	��A�hI�Ah�L�g��������������GA2w��<~��������������������������������������������������������������������������������������������������������������������
1	�a�	�!�	��A��E�,/����������qGA3~����������������������������������������������������������������������������������������������������������������������������������!	�A�	�����tB���������&�GA4y��L~����������������������������������������������������������������������������������������������������������������������
1	Ձ�	�a�	�����jB���������&�GA5q��������������������������������������������������������������������������������������������������������������������
1�b!�	Ձ�	��A��I�Al�L�W��8@����������GA6w��\~��������������������������������������������������������������������������������������������������������������������
1�)��	��	��A��E�,/����������qGA7~����������������������������������������������������������������������������������������������������������������������������������!�
��	�����tB���������&�GA8y��l~����������������������������������������������������������������������������������������������������������������������
1�F���)��	�����jB���������&�GA�����
1�~A��F��	��A��K�B�['FQ%�U��KGo�."�0��9_�ӯ������(��o��Y�gCx�J��O����=����FC�B��D���xF����J'��,�����M�I�p,��%�5�%�e��͌Ob �V�kW����_8�]�Bd���M�K��v)]�c6Y�i�Vl@G��_�Oy�U�յ�\��=	2�j��?��tU�3�V{�O0�|����ش��T����qTt�cp�[8�I�U��i-�X�����Z-5���k���}�Hc��x��芇�{�v�����xPv��"�@�;���+�7v\�[�W����H�J�@n�L��J���=o�xh��ݖ.mn�ۗ����'����9��+(��O|��G�����ʞ�����ԋ�[�UoY������J)�GHG>��P|��Wr�^�����3Q�(�yc��4���"jŪ|���l(�����2���|���������D��5w���$>��~�9���najV=F5I٥���&0�P^3�b����ވ�Q��좆�B��J�_���![N�����q?fh�\ơ��������	��h�G��`�8ë�͌�ˬ�!"�Gn	��q��]¼v�����f�``�7Eh*��L*���J��!��l�0F�����vS���7���Mrg��}�D�0�uxn���`x�*��6��e��L����7��j���>t$��NI��C�N�*o��Uv.˦2�56��_N��p�0�!���}����?��c�q��U����t�j|���'�G�����6[�AӤ�8�� J��(銷/����}���5��x��4OT������=)l��૫5|}S
K��q\de��J���~	R+�i�.}�J�A����y���vtOk�=���i��c��L2���f�c�
��JyB�hmt����

部署后即显示500

部署了onedrive-vercel-index后,文件显示区域提示500.Console详细报错显示是/api?auth=/提示500。如cloud.caozm.tk所示。

image

我认为也许是config/api.json中的设置出了问题,我设置的其中内容如下:

{
  "clientId": "ebe86667-b22c-4ecf-babd-a2454669eda7",
  "redirectUri": "http://localhost:8000",
  "base": "/cao_cloud",
  "authApi": "https://login.microsoftonline.com/common/oauth2/v2.0",
  "driveApi": "https://graph.microsoft.com/v1.0"
}

恳请提供帮助或解决方案,深表感谢!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.