Skip to content

add githubpages #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
filePreview

node_modules
dist
dist-ssr
Expand All @@ -17,6 +17,7 @@ dist-ssr
!.vscode/extensions.json
.idea
.DS_Store

*.suo
*.ntvs*
*.njsproj
Expand Down
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,19 @@ FilePreview 是一个使用Vite+ React 和 PDF.js 技术构建的 Git 项目,

同时支持移动端和PC端

## 支持pdf,office图片等格式预览

实例如下:

> [文件预览 -pdf](https://sweetwisdom.github.io/react-filePreview/filePreview/?type=pdf&url=https://sweetwisdom.github.io/react-filePreview/filePreview/00.pdf)
>
> [文件预览 -word]( https://sweetwisdom.github.io/react-filePreview/filePreview/?type=doc&url=https://sweetwisdom.github.io/react-filePreview/filePreview/00.docx)
>
>[文件预览 -excel](https://sweetwisdom.github.io/react-filePreview/filePreview/?type=doc&url=https://sweetwisdom.github.io/react-filePreview/filePreview/00.xlsx)
>
> [文件预览 -ppt](https://sweetwisdom.github.io/react-filePreview/filePreview/?type=doc&url=https://sweetwisdom.github.io/react-filePreview/filePreview/00.pptx)
>
> [文件预览 -img](https://sweetwisdom.github.io/react-filePreview/filePreview/?type=img&url=https://shp.qpic.cn/ishow/2735050916/1683619418_1265602313_17762_sProdImgNo_2.jpg/0)


## 效果预览
Expand Down
Binary file added filePreview/00.docx
Binary file not shown.
Binary file added filePreview/00.pdf
Binary file not shown.
Binary file added filePreview/00.pptx
Binary file not shown.
Binary file added filePreview/00.xlsx
Binary file not shown.
Binary file added filePreview/404.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 31 additions & 0 deletions filePreview/assets/index-legacy-9093ada9.js

Large diffs are not rendered by default.

Binary file added filePreview/assets/index-legacy-9093ada9.js.gz
Binary file not shown.
9 changes: 9 additions & 0 deletions filePreview/assets/index.0ad4b2c7.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading