dj3500 / hightail

MIT License
271 stars 144 forks source link

Add HTTPServer #107

Closed jmerle closed 6 years ago

jmerle commented 6 years ago

I've recently been putting time in extending my own CHelper-compatible extension so that it works with other tools aswell. More information about that can be found here. At the moment the extension (on the feature/universal branch) has 21 problem parsers and 13 contest parsers (the supported websites are listed here).

I've added the necessary functionality to Hightail so that it can receive problem data via HTTP POST requests, which my extension can send to a running Hightail instance. I have added the org.json library to parse the JSON data that is sent by my extension.

Here is a little demo: YouTube.

dj3500 commented 6 years ago

Extremely interesting! Please give me a longer while to review it though, I'm a bit short on time these days. :)

jmerle commented 6 years ago

No worries, there's no deadline to this :)

jmerle commented 6 years ago

The latest commit adds a link to the extension in the project's readme and brings the window to the front when a problem or a contest is parsed.

If you want to try it yourself, install the extension for Chrome or Firefox, run the project from my fork and go to a problem page like this one. In Chrome the little plus icon should go green and on Firefox a green plus button will be added to the top-right of the url bar. Just click on it and see the magic happen.

jmerle commented 6 years ago

Some weeks has passed, do you have an estimate of when you might have some time to look at it?

dj3500 commented 6 years ago

Okay, I've finally inspected and tested it. Sorry for the delay. It's pretty amazing, actually. Thanks a lot!

dj3500 commented 6 years ago

I made a new release with this functionality, including some comments in README, About dialog, and a pop-up at the beginning (see the latest commits for details). Also made it only listen to localhost (for security reasons and to suppress a prompt from the Windows Firewall).

Thanks again!