fyne-io / fyne

Cross platform GUI toolkit in Go inspired by Material Design
https://fyne.io/
Other
24.39k stars 1.36k forks source link

Implement storage APIs for web driver #4634

Open dweymouth opened 6 months ago

dweymouth commented 6 months ago

Checklist

Is your feature request related to a problem?

The storage APIs are currently unimplemented for web.

Related: #2734

Is it possible to construct a solution with the existing API?

No response

Describe the solution you'd like to see.

Storage APIs implemented for web. Local storage will probably not be usable here due to size limitations.

dweymouth commented 6 months ago

This could probably be done with the IndexedDB API which is suitable for storing larger amounts of data than the 5MB-10MB limit of localStorage

andydotxyz commented 6 months ago

$250 is currently allocated for eligible contributors completing this work (see Contributing: Membership). (split from the original ticket #2734)

dweymouth commented 6 months ago

This comment from @kkoreilly may be relevant here

dweymouth commented 6 months ago

It's probably more heavyweight (eg we don't need unix permissions, etc) and pulls in more dependencies than we want, but could be a good guide for how to build our own filesystem-like abstraction on indexeddb

kkoreilly commented 6 months ago

Yep, if you're not trying to implement the stdlib os API, you should need a lot less code. Most of the logic in jsfs is implementing different os functions that aren't needed for simple file storage.

bilalshaikh292 commented 1 month ago

Hey, I am new to this Org . I just wanted to know that is this issue open and if anyone is already working on this.

andydotxyz commented 1 month ago

Nobody was working on this - however it is part of the upcoming 2.5 release which is due imminently. So we are looking for a quick turnaround (i.e. days remaining) - is that possible?

bilalshaikh292 commented 1 month ago

@andydotxyz just got a need to work on a university Project. Sorry won't be able to do this. Thanks for support.

andydotxyz commented 1 month ago

Let's not push it that far. No new APIs required so we should be able to pull it into 2.5.x (hopefully the .1 at the latest, but who knows...)