OpenListTeam / OpenListTeam/OpenList-Frontend

[Feature] 建议office文件使用File Viewer进行前端预览

Open
#578 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
100
Forks
240
Avg merge
22h 42m
Merged PRs (30d)
17

Description

请确认以下事项
  • 我已确认阅读并同意 AGPL-3.0 第15条
    本程序不提供任何明示或暗示的担保,使用风险由您自行承担。

  • 我已确认阅读并同意 AGPL-3.0 第16条
    无论何种情况,版权持有人或其他分发者均不对使用本程序所造成的任何损失承担责任。

  • 我确认我的描述清晰,语法礼貌,能帮助开发者快速定位问题,并符合社区规则。

  • 我已确认阅读了OpenList文档

  • 我已确认没有重复的问题或讨论。

  • 我认为此问题必须由OpenList处理,而非第三方。

  • 我已确认此功能尚未被实现。

  • 我已确认此功能是合理的,且有普遍需求,并非我个人需要。

  • 我没有阅读这个清单,只是闭眼选中了所有的复选框,请关闭这个 Issue 。

需求描述

目前office文件在线预览体验不太好,特别ppt/pptx经常出现问题,建议考虑使用https://github.com/flyfish-dev/file-viewer 进行预览,支持格式多,目前看体验也不错,前端资源支持打包到构建产物或使用CDN。

实现思路

统一使用https://github.com/flyfish-dev/file-viewer 实现前端office类文件预览,同时若File Viewer支持的格式也可以一并使用,减少不同文件预览库引入使用成本,目前看File Viewer支持格式挺多的:
Image

附加信息

No response

AI生成内容(可选)

No response

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the existing frontend office-file preview flow and the proposed flyfish-dev/file-viewer project to determine where preview handling is selected. Confirm how its assets can be bundled or loaded from a CDN, then compare supported formats and test representative office files, especially PPT/PPTX. Done means office previews use the selected viewer reliably without breaking other supported formats.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.