dub
dub copied to clipboard
Toggle button for link
A toggle button, so you can temporally close the link
I'm not quite sure what you mean, can you elaborate? By "closing the link" do you mean temporarily deactivate it?
Yes, sorry I didn't express it clearly
Hey, @steven-tey I would like to work on this If it's still relevant.
Building on top of this, a "timer" functionality would be nice, to keep the link active for an X amount of time, since Redis is the base database, we could set TTLs on the links for that (just a guess as I haven't yet looked at the code)
@khaosdoctor unfortunately that wouldn't work with the current setup since we're using a hash to store links per custom domain.
I am thinking of switching to a more key-value based model though (and move the user-link relation to MySQL, right now we're using Redis sorted sets for that) so we could explore leveraging TTL very soon!
@khaosdoctor planning to switch over to a key-value-based model (with TTL) this weekend! Will keep all of y'all posted 😄
Here's the PR if you wanna follow along: https://github.com/steven-tey/dub/pull/78
Nice! I just got back home, scheduled some time to work on dub this weekend! I'll definitely follow along, also, if you want any help on that ping me on my telegram
Sneak peek of the new UI 👀 🙈
Hey guys! This feature is now live (under "Advanced options" > "Expiration Date")
Feel free to try it out and let me know if there are any bugs 😄
https://user-images.githubusercontent.com/28986134/197401940-067b4823-eca2-4503-b345-d6f3183bf4b3.mp4