Skip to content
This repository has been archived by the owner on Oct 8, 2023. It is now read-only.

Create simple server-rendered html endpoints/lists/search without Javascript usage #50

Closed
davidhedlund opened this issue Feb 12, 2018 · 8 comments
Labels
enhancement New feature or request

Comments

@davidhedlund
Copy link

I will make sure radio-browser.info is listed the Free Software Directory if you can make it fully compatible with LibreJS.

screenshot from 2018-02-12 15 42 36

@davidhedlund
Copy link
Author

@segler-alex This is the only issue that I really care about for 100% right now. Nonfree JS is taken serious in the free software community since a few years back. I suggest that you install LibreJS and read the error messages it displays for radio-browser.info.

You said that you are rewriting this project in Rust, this is a golden opportunity to get rid of nonfree JS.

What do you think what I just said?

@davidhedlund davidhedlund changed the title Please make radio-browser.info LibreJS compatible TOP PRIORITY: Please make radio-browser.info LibreJS compatible Feb 19, 2018
@segler-alex
Copy link
Owner

segler-alex commented Feb 19, 2018

what is non free javascript? i did not know what librejs is. so i looked at the homepage. i tried the firefox extension they offer. it would not install on newest firefox. i still don't know :( could you point me in the right direction?

@davidhedlund
Copy link
Author

davidhedlund commented Feb 19, 2018

Please try to install LibreJS from addons.mozilla.org.

https://addons.mozilla.org/en-US/firefox/addon/librejs/ says:

For explanation of the issue, see The JavaScript Trap.

LibreJS in inbuilt in GNU IceCat. IceCat is a freedom focused browser based on Firefox ESR. Please read the IceCat Free Software Directory page that I maintain to understand the differences between Firefox ESR and IceCat and why this project is important.

@davidhedlund
Copy link
Author

davidhedlund commented Feb 22, 2018

@segler-alex The official web page for LibreJS mentions this:

Releasing Your JavaScript as Free Software

If you administer a website, please read instructions on how to set your JavaScript free so that it respects your users' freedom. This is also documented in this section of the LibreJS manual.

@davidhedlund
Copy link
Author

I strongly recommend that you don't use any JS at all to list the radio stations at all to make the site compatible with text base radio browsers, and that you use free JS for the media player that's inbuilt in radio-browser.info.

@segler-alex
Copy link
Owner

segler-alex commented Mar 21, 2018

it is not possible to not use JS. i split the program in to parts:

  • the server part: only give a public API who anybody can use
  • a client part: html+js that does check the public API

you need at least some kind of program that does check the API, and JS can do that.
i do not want to go back to that bad PHP all in one solution, that did not nead JS but also was a mess and hard to manage.

@davidhedlund
Copy link
Author

@segler-alex Please have a look at this issue again.

it is not possible to not use JS. i split the program in to parts:

* the server part: only give a public API who anybody can use

* a client part: html+js that does check the public API

you need at least some kind of program that does check the API, and JS can do that.
i do not want to go back to that bad PHP all in one solution, that did not nead JS but also was a mess and hard to manage.

Then it is possible to do without JS but not convenient with PHP. I thought you were going to rewrite the site in Rust, is it convenient enough to solve this issue?

@segler-alex segler-alex transferred this issue from segler-alex/radiobrowser Jan 28, 2020
@segler-alex segler-alex changed the title TOP PRIORITY: Please make radio-browser.info LibreJS compatible Create simple server-rendered html endpoints/lists/search without Javascript usage Jan 28, 2020
@segler-alex segler-alex added the enhancement New feature or request label Jan 28, 2020
@davidhedlund
Copy link
Author

Thanks for the merge and title change.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants