Skip to content
This repository has been archived by the owner on Jul 26, 2023. It is now read-only.

功能建议:搜索文件、预览 EPUB #41

Closed
hmsjy2017 opened this issue Aug 5, 2021 · 3 comments
Closed

功能建议:搜索文件、预览 EPUB #41

hmsjy2017 opened this issue Aug 5, 2021 · 3 comments
Labels
feature request New feature or request

Comments

@hmsjy2017
Copy link

hmsjy2017 commented Aug 5, 2021

搜索功能应该可以通过 OneDrive 的 API 来实现
官方文档:https://docs.microsoft.com/zh-cn/onedrive/developer/rest-api/api/driveitem_search?view=odsp-graph-online#searching-for-items-a-user-can-access
EPUB 预览功能可以用这两个开源库来实现
https://github.com/futurepress/epub.js
https://github.com/gerhardsletten/react-reader

@spencerwooo spencerwooo added the feature request New feature or request label Aug 5, 2021
@aozaki-kuro
Copy link
Contributor

aozaki-kuro commented Aug 22, 2021

OneDrive的官方搜索API…
它几乎只能搜索英文和数字,而且准确性有时要打一个挺大的问号。
而一旦涉及到CJK那几乎是废的。这个功能我觉得要做也属于优先级相对低一些的。

之前看过OLAINDEX用户自己弄了一个Google Search的搜索框,不知道是如何实现外部搜索引擎搜索的。

@hmsjy2017
Copy link
Author

hmsjy2017 commented Aug 22, 2021

@aozaki-kuro 可以在谷歌搜索框里输入site:域名 关键词进行搜索,但要谷歌收录才行(我用的OneManager谷歌有收录,但不全)。嵌入搜索框其实也不难实现。比如我的域名是pan.iamsjy.com,搜索框搜索关键词跳转到https://www.google.com/search?q=site%3Apan.iamsjy.com%20${关键词}就行了。其他搜索引擎同理。
注:链接中的${关键词}替换为嵌入搜索框中输入的内容。

@spencerwooo
Copy link
Owner

搜索估计暂时不会考虑了,不过 .epub 的预览倒是支持上了(via #133)。

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants