Faithful-Resource-Pack / API

A public API for Faithful Resource Pack textures, add-ons and more
https://api.faithfulpack.net
GNU Affero General Public License v3.0
0 stars 0 forks source link

[Long-term] Firestorm pack collections #37

Closed 3vorp closed 7 months ago

3vorp commented 8 months ago

Currently, settings.json stores a bunch of information about various resource packs. I was thinking that consolidating all that stuff into a single packs collection would make a lot more sense, since it's already structured data with known keys (the submission pack interface is usable as-is, it's basically a collection within a collection as it stands).

Existing information that could be combined would include:

16x packs could be stored in addition to Faithful packs here by simply having a boolean flag to enable submissions for a given listed pack. This way, one could support an arbitrary number of packs simply by registering a new one in the packs collection and modifying a few TypeScript interfaces.

3vorp commented 8 months ago

After a lot more thinking, I've decided this can function as three separate JSON files, much like how textures work.

packs.json would simply have basic information about each pack — GitHub urls, display names, pack tags, etc submissions.json would have submission-related information, using a similar interface to the current submission setup in settings.json projects.json (no idea what to call this) would have the syntax specified in https://github.com/Faithful-Resource-Pack/API/issues/40

TheRolfFR commented 8 months ago

Like this, projects.json to be defined

3vorp commented 8 months ago

Cool, my thinking with having submissions.json separately stored is that the submission bot would have minimal breaking changes since the interface wouldn't change.

3vorp commented 8 months ago

Decided to simplify my life and move projects.json into the actual texture db itself, see #39 for more info on that