sfss icon indicating copy to clipboard operation
sfss copied to clipboard

Frontend for the site

Open nyxkrage opened this issue 2 years ago • 2 comments

It would be nice to dedicate the current basic no-css frontend as just a lightweight option and also get rid of all JS on it. The frontend should already be really well decoupled from the main server.

To get started with a local development copy of the server clone https://github.com/nyxiative/sfss and https://github.com/nyxiative/hljs-server, build the hljs-server Docker image with the name hljs-server, and build the sfss Docker image with the name sfss adjust parameters in Environment accordingly

as for the endpoints to use, /upload/api?json gives back the response as json and /languages gives back the supported highlighting languages in json

nyxkrage avatar Oct 11 '21 17:10 nyxkrage

I will gladly take multiple submission and implement most as different options.

So please, keep your code selfcontained in a frontend/<yourname>/<identifier>/ directory

nyxkrage avatar Oct 11 '21 17:10 nyxkrage

Code probably won't run on Windows, but should work fine under WSL. If you do want to work in a Windows environment, let me know and I'll make sure it runs.

nyxkrage avatar Oct 11 '21 17:10 nyxkrage