Phalcode / gamevault-app

Frontend for the self-hosted gaming platform for drm-free games
https://gamevau.lt
Other
402 stars 18 forks source link

Improvements for GameVault's Offline-Cache and Storage #340

Open Alfagun74 opened 10 months ago

Alfagun74 commented 10 months ago

Current Issues and Proposed Improvements:**

Proposed Data Structure

.
├── profiles.json                        # Contains profile information, app settings per profile and links users on a server to a specific profile
└── Servers                              # Contains numerical list of all servers this client has ever connected to
    ├── 1                                # Incremental ID
    │   ├── Games                        # Contains Metadata for each game on a server
    │   │   ├── 1                        # Serverside Game ID
    │   │   │   ├── background.png       # Clearly viewable background image
    │   │   │   ├── cover.png            # Clearly viewable cover image
    │   │   │   └── game.json            # Contains Game metadata and Time to Live
    │   │   ├── 2
    │   │   │   ├── background.png
    │   │   │   ├── cover.png
    │   │   │   └── game.json
    │   ├── server.json                  # Contains Server Metadata, like URL and so on
    │   └── Users                        # Contains Metadata for each user on a server
    │       ├── 1                        # Serverside User ID
    │       │   ├── avatar.png           # Clearly viewable avatar image
    │       │   ├── background.png       # Clearly viewable background image
    │       │   └── user.json            # Contains User metadata, like progresses, and information and a Time to Live
    │       ├── 2
    │       │   ├── avatar.png
    │       │   ├── background.png
    │       │   └── user.json
    └── 2
        ├── Games
        │   ├── 1
        │   │   ├── background.png
        │   │   ├── cover.png
        │   │   └── game.json
        │   ├── 2
        │   │   ├── background.png
        │   │   ├── cover.png
        │   │   └── game.json
        ├── server.json
        └── Users
            ├── 1
            │   ├── avatar.png
            │   ├── background.png
            │   └── user.json
            ├── 2
            │   ├── avatar.png                        
            │   └── user.json

Additional Information:

Alfagun74 commented 9 months ago

Needed for #339

Alfagun74 commented 1 month ago

Probably needed for the full functionality of #447