dat-ecosystem-archive / datBase

Open data sharing powered by Dat [ DEPRECATED - More info on active projects and modules at https://dat-ecosystem.org/ ]
http://datbase.org
244 stars 32 forks source link

Display only part of large text files #511

Open okdistribute opened 7 years ago

okdistribute commented 7 years ago

If the text file is really large, we can display only the first part of the files. Right now, files over 10MB just fail to render.

In csvs, we can display only 10 rows at a time, which would make file previews almost instant.

okdistribute commented 7 years ago

@yoshuawuyts didn't you say there's some cool demo with infinite scroll in choo v5 now? Can you point us to it? we could probably use it here for csv files at least (if not also text files)!!! :)

Maybe even could be a cool little element with a demo for dat compatibility!

yoshuawuyts commented 7 years ago

Yep, tim did some great work - https://github.com/timwis/hyperlist-component - there might be some bugs still (see https://github.com/yoshuawuyts/nanocomponent/issues/29) and the API might need some work to be closer to https://github.com/editdata/infinite-elements/issues/1 also. Oh, should probs also mention https://github.com/yoshuawuyts/nanomorph/pull/61 which should speed things up further. Hope this helps!

On Thu, Apr 27, 2017 at 3:32 AM Karissa McKelvey notifications@github.com wrote:

@yoshuawuyts https://github.com/yoshuawuyts didn't you say there's some cool demo with infinite scroll in choo v5 now? Can you point us to it? we could probably use it here!! :)

Maybe even could be a cool little element with a demo for dat compatibility!

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/datproject/datproject.org/issues/511#issuecomment-297586483, or mute the thread https://github.com/notifications/unsubscribe-auth/ACWlegVUXl5bNAylgeKX5cecf67WB_7bks5rz_AfgaJpZM4MyOp9 .