DonPAPI icon indicating copy to clipboard operation
DonPAPI copied to clipboard

Show More Cookie Information in the Frontend

Open m10x opened this issue 1 year ago • 1 comments

Add Creation Date and Status columns to Cookies table

Changes

  • Added "Creation Date" column showing the cookie creation date in YYYY-MM-DD format
  • Added "Status" column showing whether a cookie is "Active" or "Expired"
  • Added status filter dropdown with options "All", "Active", and "Expired"

Technical Details

  • Frontend:

    • Added new columns to the cookies table
    • Implemented formatDate method to convert Unix timestamps to YYYY-MM-DD format
    • Added isCookieExpired method to determine cookie status
    • Added status filter dropdown with proper styling
  • Backend:

    • Updated get_cookies method to handle status filtering
    • Added date handling for creation dates

Notes

  • Cookies without an expiration date are considered active
  • Creation dates are displayed in YYYY-MM-DD format
  • Status filter allows easy filtering of active and expired cookies
  • Serverside creation date filtering is currently not possible, because it is stored as unix timestamp. However clientside filtering would be possible

Screenshot

image

m10x avatar Mar 20 '25 08:03 m10x

Thank you for your PRs, testing ASAP :)

zblurx avatar Mar 24 '25 10:03 zblurx