Giter Club home page Giter Club logo

Comments (13)

agritheory avatar agritheory commented on August 11, 2024

@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?
Untitled

from drive.

chensce avatar chensce commented on August 11, 2024

ppt,docs,excel

from drive.

chensce avatar chensce commented on August 11, 2024

mp4,mp3

from drive.

chensce avatar chensce commented on August 11, 2024

thank you!😄

from drive.

krantheman avatar krantheman commented on August 11, 2024

@chensce there are no immediate plans, but do we do plan on adding these some time in the future.

from drive.

agritheory avatar agritheory commented on August 11, 2024

@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.

krantheman avatar krantheman commented on August 11, 2024

@agritheory sure, what file types are you thinking?

from drive.

agritheory avatar agritheory commented on August 11, 2024

@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.

krantheman avatar krantheman commented on August 11, 2024

@agritheory Hmm, sounds good to me. Are you willing to contribute to the development of this?

from drive.

agritheory avatar agritheory commented on August 11, 2024

@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.

krantheman avatar krantheman commented on August 11, 2024

@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.

RUTU143 avatar RUTU143 commented on August 11, 2024

@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?
Screenshot from 2023-01-28 11-43-12
Screenshot from 2023-01-28 11-42-58

from drive.

uhrjun avatar uhrjun commented on August 11, 2024

Initial implementations of Docx, xlsx, txt (json,py,js basically any text file) are done.

from drive.

Related Issues (20)

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.