Comments (13)
@chensce Not all MIME types are currently handled, but PDFs and images look good to me in the viewer. What types were you looking for?
from drive.
ppt,docs,excel
from drive.
mp4,mp3
from drive.
thank you!😄
from drive.
@chensce there are no immediate plans, but do we do plan on adding these some time in the future.
from drive.
@krantheman Akash, I'd like to propose a plan to prioritize preview elements (edit: as in which ones to contribute first) and a pattern to add custom viewers (and possibly MIMEType icons). There's a large group of file types that makes sense to incorporate viewers for, but there will be others that are going to be industry specific. I think that an API that allows you to extend Drive by offering a custom preview could be really valuable. I can rough out a design for this, but want to understand your level of interest first.
from drive.
@agritheory sure, what file types are you thinking?
from drive.
@krantheman What I am thinking is going for the most surface area (file types by percentage) while also keeping dependencies to a minimum.
First round, I'd like to propose previews for five MIME types: markdown, CSV, XLS, XLSX and ODT. Markdown can be handled with existing dependencies, The others are handled by the same package: https://www.npmjs.com/package/excel-viewer
Second round seems like DOC, DOCX and the Open Office / Libre office format, but there isn't a clear shortcut there like there is with the spreadsheet category: https://www.npmjs.com/search?q=docx
Slides / PowerPoint after that, I haven't looked into dependencies for these.
Then video and audio, where there are lots of options but it makes sense to use the same deps as the Frappe framework's A/V stack.
We don't need to solve for all files, we need to solve for the most encountered ones. There's always going to be some file type that is specific and common to one use case and would never be used in another. A manufacturer might often need to share drawings (DXF is one of the most common) but that's something a software development business would like never need to deal with. Providing an API where Drive can be extended to support arbitrary previews would be an excellent feature, but getting some of the most common previews built in should be the first step.
from drive.
@agritheory Hmm, sounds good to me. Are you willing to contribute to the development of this?
from drive.
@krantheman Yes. I'll try my hand at the markdown previewer first and then the spreadsheets. That will give enough of a body of work to know if there should be a design change.
from drive.
@agritheory Cool! Also, I think I should let you know that there are plans to implement the frappe-ui text editor for simple text editing. I haven't dabbled enough to know about its usage though.
from drive.
@krantheman Yes. I'll try my hand at the markdown previewer first and then the spreadsheets. That will give enough of a body of work to know if there should be a design change.
my frappe drive will not open why?
from drive.
Initial implementations of Docx, xlsx, txt (json,py,js basically any text file) are done.
from drive.
Related Issues (20)
- Display a pop-up notification when the user performs an action on a file. HOT 2
- The search filters on the search bar HOT 1
- Sort does not work with files located in Shared.
- User storage overview HOT 1
- I no longer see the duplicate option HOT 1
- Enhancing Group Functionality HOT 2
- Add the Location field to the list view interface in Home, Recent, Favourites, and Trash HOT 3
- Last Access date is not displaying the correct time
- I can no longer see the tag feature. Develop a feature to filter documents by tags HOT 1
- Not able to upload and create files and filder. HOT 7
- Unshare function is not working. HOT 3
- Transfer ownership HOT 2
- Optimizing the Group Creation Flow HOT 5
- Improving the search bar HOT 1
- Why can't users with the role of Drive User create a group? HOT 2
- Allow opening the file and directly jump to to the file location when uploading a file to Drive
- Improve "Import docx" Functionality HOT 1
- Add date group headers to Recent. HOT 3
- bug: typing page title overrides name
- Move file / folder to home HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from drive.