aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-11-03Made server update foods at monday morning instead of updating them just ↵Joel Kronqvist
randomly once a week.
2022-11-02Added faviconJoel Kronqvist
2022-10-25Changed null to undefined as it should was meant to be. TL; DR: a typo.Joel Kronqvist
2022-10-25Fixed bugs from last commitJoel Kronqvist
2022-10-25Fixed shift parsing when no teacher is supplied. Made server be run in a ↵Joel Kronqvist
loop in init.sh to bring it up again if it crashes.
2022-10-24Added removal of dumb header in shifts that crashed the parsingJoel Kronqvist
2022-10-20Made vegetarian food empty when not found. Had become visible in commit 'Bug ↵Joel Kronqvist
fixes & started setup.sh'
2022-10-18Enhanced robustness in retrieving the example input and in the init (at ↵Joel Kronqvist
reboot) script. The server errored out if the database was empty and there came a request, as it didn't check for empty arrays in dbparse.js in the function getRandomIndex. Fixed by adding handling & recursion limit. Added in init.sh a check to see if logging in to MySQL is possible to prevent errors at startup.
2022-10-18setup.sh: more robust, some other improvementsJoel Kronqvist
2022-10-18Merge new URL in index.html and setup.sh from branch 'master' to branch 'devel'Joel Kronqvist
2022-10-17Fixed setup.sh cloning url.Joel Kronqvist
2022-10-17Added instructions to start server at reboot. Doesn't neccessarily work. ↵Joel Kronqvist
Updated the init script. No server code updates for now.
2022-10-17Changed the link to the source code in Cont/index.htmlJoel Kronqvist
2022-10-17Imroved README.md, modified server to update on startJoel Kronqvist
Also minor changes to setup.sh and update.js. In update.js the updation function was changed to take a database connection (as in database.js) instead of a string with the credentials to the DB.
2022-10-16Finished setup.shJoel Kronqvist
It should work, even though it's kind of unstable if the user enters dumb things.
2022-10-16More changes to setup.sh. I have no clue how to write bash scripts.Joel Kronqvist
2022-10-16Modified setup script. No guarantees that it works.Joel Kronqvist
2022-10-15Bug fixes & started setup.shJoel Kronqvist
2022-05-13Merge branch 'development'Joel Kronqvist
2022-05-13Fixed big bad bug.Joel Kronqvist
2022-05-13Lol I just need to upload these changes to not loose them while testingJoel Kronqvist
2022-05-13Made init work as sudo so that the server gets permissions to lower portsJoel Kronqvist
2022-05-13Changed ports to 443 AND 80. Added improper error handling when there are ↵Joel Kronqvist
stats already for the day when adding them at exit.
2022-03-11Merge branch 'master' of https://github.com/JoelHMikael/FoodJSJoel Kronqvist
Updating remote changes
2022-03-11Food scraping updationJoel Kronqvist
2022-03-10Class parsing with any number of files with classesJoel Kronqvist
2022-03-09Shift updation rewriteJoel Kronqvist
The shift updation algorithm was a pain to debug, so I changed it to use regex. I hope it helps.
2022-03-05Updated README.mdJoel Kronqvist
2022-03-05Added node_modules for the updating to work properly.Joel Kronqvist
2022-02-13Added updating the server code to README.md instructionsJoelHMikael
2022-02-13Finished README.md instructionsJoelHMikael
2022-02-10Updated README.mdJoel Kronqvist
2022-02-09Merged all functions from the JoelHMikael/funcsJoel Kronqvist
Necessary, because we don't want to complicate our update script & its anyways better like this. They weren't any complicated functions.
2022-01-31Fixed bad footer behavior on mobile firefoxJoel Kronqvist
2022-01-23Exam info system addedJoel Kronqvist
It works only based on the current date. A better system would require good date functions, and right now if I want to make somethng for this project I should focus on either getting it working or making the code less messy (aka writing a big part of it again...). This was my first project of this scale, and the first one that seems to get finished & even published.
2022-01-22Fixed bug in day mechanics for the food searchJoel Kronqvist
Making monday first (0) instead of sunday was done twice, resulting with tuesday becoming first.
2022-01-19Tested on Linux Mint & some bug fixesJoel Kronqvist
2022-01-18Merge pull request #1 from JoelHMikael/MYSQLDBJoelHMikael
Mysqldb
2022-01-18Merge branch 'master' into MYSQLDBJoelHMikael
2022-01-18Updating separated from server, lightweight analytics addedJoelHMikael
2022-01-16I forgot to save server.js before commit...JoelHMikael
Yeah I know I know, I should try to learn git instead of messing around like this.
2022-01-16Actual class parsingJoelHMikael
Really messy, feel free to improve, or even rewrite.
2022-01-13Made the parsing more inclusiveJoelHMikael
2022-01-09Database implementedJoelHMikael
Some polishing wouldn't do bad though...
2022-01-08Parsing the shifts (not classes) to the database + some GUI improvementsJoelHMikael
2022-01-07Added the DB class & instructions to set up DBJoelHMikael
2022-01-04Minor GUI improvementsJoelHMikael
2022-01-01Clearer Anti-XSSJoelHMikael
2021-12-30FooterJoelHMikael
2021-12-30Example inputJoelHMikael