Diffs - JS library for rendering diffs
18 points by hauleth
18 points by hauleth
https://upd.dev/ is a fork of Forgejo that replaces the diff view with this Pierre diff library, in case you'd like more of a demo.
Random commit (well, latest commit of its own source code): https://upd.dev/upd/upd-forgejo/commit/16235b271b690f88ce15c9f7f2027f671bf532a0
The diff looks good, but does not work at all with JS disabled.
Looking at https://upd.dev/upd/upd-forgejo/commits/branch/main, it doesn't inspire confidence:
Disclaimer: I contribute sometimes to Forgejo
Sorry I didn't make it clear: I'm not the author. I've seen the author on Pierre's Discord (e.g. this thread, requires signing up for the discord linked to from diffs.com first), and upd.dev might have a way to contact them.
Otherwise, all valid points. I personally would treat upd.dev more like a demo.
I didn’t want to imply that you were the linked to upd in any way, sorry.
It is actually a good example to see how “real-world” diff look like, when rendered with this library.
(The lower part of my comment is somewhat off topic for this story, but I couldn’t resist digging a little after reading “fork of Forgejo” :)