ogame-infinity / web-extension

Repository for the web extension code (coming)
https://ogameinfinity.com
Other
34 stars 48 forks source link

Feature: Universe Expiration request and universe storage with TTL #298

Closed SergioFloresG closed 6 months ago

SergioFloresG commented 7 months ago
  1. A new service was added to request data from the OGame server, which contains information about the game universe.

  2. Add expiry utility for fetch requests: A private field is introduced for the fetch utility to store the expiry timestamp, initially set to -1. This private field is populated based on the 'Expires' header if available.

  3. *Adds functionality to handle JSON with advanced types: Introduces a new file containing functionality to transform advanced data types to JSON and vice versa.

  4. *Adds functionality to manage universe storage: Introduces new functionality to save and retrieve data associated with a universe and a key in Chrome storage.

  5. Adds functionality to manage universe expirations: Introduces new functions to set an expiry date for a universe key, to check if a universe has expired its key and to set the Time To Live (TTL) for a universe's expiry key.