Silverfeelin / SkyGame-Planner

Sky:CotL unlock planner/tracker
Other
17 stars 3 forks source link

P/dropbox #90

Closed Silverfeelin closed 2 months ago

Silverfeelin commented 2 months ago

Adds the option to connect to Dropbox and use it for data storage. Storage is limited to:

This code is experimental and is available for preview at: https://p-dropbox.sky-planner.pages.dev/

Overview of changes:

For local storage, any steps that involve loading or saving will be (near) instant.

Todo:

Closes #60 Closes #87

cloudflare-pages[bot] commented 2 months ago

Deploying sky-planner with  Cloudflare Pages  Cloudflare Pages

Latest commit: a562687
Status: ✅  Deploy successful!
Preview URL: https://96f465d0.sky-planner.pages.dev
Branch Preview URL: https://p-dropbox.sky-planner.pages.dev

View logs

imnaiyar commented 2 months ago

Okay, so I tried this, and so far, I don’t see any issues with it. I think this is a viable option for saving data long-term. Also, I noticed you added many useful things. Kudos to you! Also, I was wondering if you plan to make it an installable app (on supported devices).

Silverfeelin commented 2 months ago

@imnaiyar Thanks for the update. I will still go around testing the site for a bit longer since a lot of changes were made to the code. Once this feature is released you can connect to the same Dropbox account and it'll work with any data you've saved on the preview site.

Right now I have zero plans for making an app. Even with these cloud storage options, the website data (items, spirits, etc) are static to keep it easy and free to host the site. Publishing an app for Android/iOS would, next to its own challenges, require me to maintain multiple versions of this project and add a server so I don't have to go through the app approval process every time I add new Sky data like event items.

I'm pretty sure even with the current site traffic it's already beyond what the free tiers of several options like Cloudflare support. Plus it's not scalable so I'd be reliant on donations or ad revenue to keep the site running. The current format just makes a lot more sense to me.

I do try to keep everything responsive so the website can be used on desktop and mobile and welcome any suggestions to make it easier to use on mobile (in new issues).

imnaiyar commented 2 months ago

Oh, sorry if I was confusing, I meant PWAs Installable web app (For supported Browsers). If that's something you'd be willing to add (I don't think it would take much effort, a manifest file, and a service worker). But I'd understand if you don't want to

Silverfeelin commented 2 months ago

I'll have a look at it some time in #91. I don't know much about PWA. If it's something I can include without changing the project too much then it could be an interesting project after cloud storage.