Closed PadawanNico21 closed 7 months ago
Hi @PadawanNico21, I have some questions 😅
I'm really curious to know what your school requested. Was it "please contribute to open source" ? I understand if your school just want you to write stuff for the sake of it, but creating an issue to talk about it would have been much more productive !
In the future, please avoid creating massive PR like this to Open Source projects without asking first. PRs like this have a lot of changes that the maintainers have to review or at least consider, and it's work that could have been avoided on their end. I hope you can understand.
Bonjourr not saving user configs to a database is by design, and because of this reason alone I cannot accept your PR. Also the server would have been added to our already existing API and not use express and commonjs.
Having said all that, your PR is very detailed and easy to understand, and your code is readable enough for me to know what's going on just by looking at it !
I'm really curious to know what your school requested.
My school wanted this feature for their use in this project.
In the future, please avoid creating massive PR like this to Open Source projects without asking first.
Initially, I implemented the change for my school. Then, I considered whether this feature would be interesting for the project, so I submitted a PR.
Having said all that, your PR is very detailed and easy to understand, and your code is readable enough for me to know what's going on just by looking at it !
Thank you!
Wow, your school is actually using Bonjourr 😮 I'm wondering: what are you using to deploy your API ?
Initially, I implemented the change for my school. Then, I considered whether this feature would be interesting for the project, so I submitted a PR.
Understandable!
I'm wondering: what are you using to deploy your API ?
Currently, I don’t know. Maybe docker (on premise)
Right, Docker makes sense in this case. Good luck on your deploy !
Yes, this is a big PR...
Why I Implemented this feature?
Because it has been requested by my school, and I think it can be a good idea to add my job to the project. But I don't know if it's in the philosophy of the project.
Features
Added Endpoints
/api/config
Returns the current configuration./api/config
Sets the current configuration./api/login
The first time this endpoint is called, it creates the user with the provided credentials. Then it will verify that the credentials are correct.UI Changes
Shortcuts
Hash URL
#admin
hash URL to open the login UI.Technical Choices
express
body-parser
argon2id
better-sqlite3
Important note
Everything that I implemented is only effective on the new build
onlineServer
.Screenshots
Login Dialog
New Buttons in settings