DonPAPI
DonPAPI copied to clipboard
Show More Cookie Information in the Frontend
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
formatDatemethod to convert Unix timestamps to YYYY-MM-DD format - Added
isCookieExpiredmethod to determine cookie status - Added status filter dropdown with proper styling
-
Backend:
- Updated
get_cookiesmethod to handle status filtering - Added date handling for creation dates
- Updated
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
Thank you for your PRs, testing ASAP :)