dlsc-software-consulting-gmbh / jfxcentral2

Version 2 of JFXCentral.
72 stars 10 forks source link

Integrate the RSS feed. #224

Open dlemmermann opened 1 year ago

dlemmermann commented 1 year ago

There is now a method provided by Frank Delporte to generate an RSS feed in the DataRepository2 class. The method generates a String. Maybe that needs to be saved to a file periodically, maybe we can always create it on-the-fly.

There is an RSS button in the LinksOfTheWeekHeader. That one needs to point to the feed.

FDelporte commented 1 year ago

I propose to change this link to

LinkUtil.setLink(rssImageView, "/links/rss/lotw");

That way we can others if we want to later...

valnaumov commented 5 months ago

@dlemmermann where exactly can I find the RSS link? There's no mention of it in page sources (in https://www.jfx-central.com/links), I could not find it using Google either.

FDelporte commented 5 months ago

@FlorianKirmaier do we have a method to create a Response based on a String instead of one.jpro.platform.routing.View?

As the RSS String generation is available, we should be able to simply replace https://github.com/dlsc-software-consulting-gmbh/jfxcentral2/blob/develop/app/src/main/java/com/dlsc/jfxcentral2/app/JFXCentral2App.java#L282

Now:

.and(Route.get("/links/rss", r -> Response.view(new LinksOfTheWeekPage(size)))) // TODO: how to return raw data?

Should be replaced with:

.and(Route.get("/rss/lotw", r -> Response.view(RSSManager.createRSS())))

If this works, we could extend createRSS to generate feeds for links, components, tutorials, etc.

FlorianKirmaier commented 4 months ago

Hi everyone, Finally found time to implement the missing feature for JPro (Adding custom HTTP handlers, to create simple responses) And created a PR!