1
0
mirror of https://github.com/matt-fidd/stratos.git synced 2026-01-01 15:59:25 +00:00

Commit Graph

  • 9e1894fe27 Added styling for test page matt 2022-03-06 20:42:38 +00:00
  • a32a8062f8 Add test page view matt 2022-03-06 20:42:22 +00:00
  • 97c62b9d73 Generalise currently class page specific components for use on the test page matt 2022-03-06 20:39:14 +00:00
  • e94f8ef94c Added class stat data, and amended pluralisation logic matt 2022-03-06 20:36:21 +00:00
  • fcd37ed1fd Fix typo matt 2022-03-06 00:47:39 +00:00
  • ec87a77dd2 Added Class.hasAccess to validate user input and add security matt 2022-03-04 22:39:56 +00:00
  • df1c572e14 Added title to class test tables matt 2022-03-04 10:36:37 +00:00
  • c9e826d016 Lint cleanup with new rules matt 2022-03-03 09:14:09 +00:00
  • 80291efc6d NPM updates matt 2022-03-03 02:21:43 +00:00
  • 805d870755 Added validation for individual class page matt 2022-03-03 02:18:09 +00:00
  • 959576585d Added class route, contains mostly real data but some test data too matt 2022-03-03 02:17:53 +00:00
  • 2eafa45b9d Added styling for individual class page matt 2022-03-03 02:08:44 +00:00
  • 246363a128 Added individual class page view matt 2022-03-03 02:08:23 +00:00
  • 6fcb275aaf Add components for class page matt 2022-03-03 02:08:04 +00:00
  • e98f8c5026 Generalise test onclick handler matt 2022-03-03 02:06:16 +00:00
  • b3942491d2 Make dashboard use new testTable component matt 2022-03-03 02:05:00 +00:00
  • f8982af977 Turn a table of tests into a component matt 2022-03-03 02:04:41 +00:00
  • 9c66a50973 Add User.shortName matt 2022-03-03 01:58:47 +00:00
  • dd5778e872 Class should fetch class members too matt 2022-03-03 01:58:26 +00:00
  • 63e6fde021 Generalise getTeacher to getUser matt 2022-03-03 01:57:49 +00:00
  • 6879622bea Add adminItem__title component matt 2022-03-03 01:52:26 +00:00
  • fbb4b7bccd Add space-contents mixin matt 2022-03-03 01:51:47 +00:00
  • 74bc82e5a3 Made admin header on desktop sticky matt 2022-03-03 01:51:30 +00:00
  • e641ff0796 Admin section headers should be more prominent matt 2022-02-28 11:51:26 +00:00
  • b214c7858a Added Class.getTests() matt 2022-02-28 11:49:02 +00:00
  • 7474d3d9b7 NPM updates matt 2022-02-28 09:26:55 +00:00
  • 6ed7f09ce8 Lint cleanup matt 2022-02-28 02:50:26 +00:00
  • cca155aa4a Added my own npm package for eslint config matt 2022-02-28 02:50:17 +00:00
  • 59467b8bde Split db utility modules down into individual parts matt 2022-02-27 01:12:55 +00:00
  • e1b5b3261e Added gulp tasks for cleaning config dir, cloning sample ones and allowing user edits matt 2022-02-26 23:25:37 +00:00
  • c90d9168f4 Added gulp tasks for initialising db and inserting test data matt 2022-02-26 23:24:37 +00:00
  • 98170277a9 Add gulp-rename and prompt-sync packages matt 2022-02-26 23:18:34 +00:00
  • ae9339e80d Move db utility modules from self-contained to importable matt 2022-02-26 23:17:56 +00:00
  • cc353694b6 Updated gulpfile to use modern syntax matt 2022-02-26 22:30:40 +00:00
  • f299ecd727 Close database connection when finished with it matt 2022-02-25 19:52:46 +00:00
  • 0ac1b1bb73 Fixed bug where handlebars can't access getters matt 2022-02-25 19:52:46 +00:00
  • 3b5b9f7d88 Populate tests and classes pages matt 2022-02-25 19:52:46 +00:00
  • 28f8b8dae8 Add ability to extract TestTemplate from Test matt 2022-02-25 19:52:46 +00:00
  • 85d25439fd Add ability to extract Class from Test matt 2022-02-25 19:52:45 +00:00
  • 7f6b1cfb97 Add ability to extract creator Account from TestTemplate matt 2022-02-25 19:52:45 +00:00
  • 67e34e2c93 Add ability to extract teachers Accounts from Class matt 2022-02-25 19:52:45 +00:00
  • d5bc5a9619 Add ability to extract Subject from Class matt 2022-02-25 19:52:45 +00:00
  • 6ee3e90f9b Added Subject constructor matt 2022-02-25 19:52:45 +00:00
  • 28e95b8cc3 Prepare views for data injection matt 2022-02-25 19:52:45 +00:00
  • c6433f4594 Fix bug where tests on the current day weren't selected in recent or upcoming filters matt 2022-02-25 16:47:13 +00:00
  • 0ad2741884 Changed a test date to fall on today and fixed bug caused by sql styling matt 2022-02-25 16:46:41 +00:00
  • 32c83cd308 Populate dashboard screen with real data matt 2022-02-25 16:30:21 +00:00
  • 8063cad2f4 Don't fetch unneccasary records from db matt 2022-02-25 15:52:56 +00:00
  • 73bf0f699c Added User.getClasses matt 2022-02-25 15:52:33 +00:00
  • f6efa74a89 Added Class constructor matt 2022-02-25 15:52:07 +00:00
  • 57af81cc98 Consistent SQL query formatting matt 2022-02-25 14:44:35 +00:00
  • 2fac6e7aba Add sessions table to cleanDb in test data matt 2022-02-25 14:24:43 +00:00
  • 440587b57e Removed unneccasary Student method matt 2022-02-25 13:18:06 +00:00
  • 98e7b125c4 Added User.getTests matt 2022-02-25 13:17:07 +00:00
  • f16cab9f8b Added Test constructor matt 2022-02-25 13:16:34 +00:00
  • 48176a28fe Added TestDate class to help format dates correctly matt 2022-02-25 13:15:36 +00:00
  • 747d7f8e77 Added TestTemplate constructor matt 2022-02-25 13:07:21 +00:00
  • f0e865803e User constructor should return the correct child class is type is unspecified matt 2022-02-25 13:03:26 +00:00
  • 6c843731d1 Added Parent constructor and creator matt 2022-02-25 11:26:02 +00:00
  • 66a40cffce Added Student constructor and creator matt 2022-02-25 11:25:49 +00:00
  • 72b7a6fdb4 Fixed bug where User class assumed that it was an Account matt 2022-02-25 11:25:13 +00:00
  • 917ed26659 Fixed arrow direction and text in test data diagrams matt 2022-02-24 23:57:05 +00:00
  • b624e63e48 Added test test data matt 2022-02-24 23:17:17 +00:00
  • a4156615d0 Added testTemplate test data matt 2022-02-24 23:17:06 +00:00
  • 187c3a8b64 Rewrite cleanDb to be more dynamic matt 2022-02-24 23:16:24 +00:00
  • e6b260613e Migrate existing relationships over to new lookup structure matt 2022-02-24 23:16:00 +00:00
  • d6d314ad3b Added new lookup capability inside test data object matt 2022-02-24 23:06:21 +00:00
  • 5875d7bf1b Added new helper class to make insertion of dates easier into test data matt 2022-02-24 23:04:59 +00:00
  • 4a7b642b29 Added PlantUML files for test based test data matt 2022-02-24 17:52:39 +00:00
  • e709d74f74 Moved data from view to route in preparation of db integration matt 2022-02-24 15:47:24 +00:00
  • 31a244d439 Added new partial for test in dashboard table matt 2022-02-24 15:45:21 +00:00
  • 6e2f19fbda Removing obsolete code matt 2022-02-24 13:58:09 +00:00
  • 67d15db4ee Made auth middleware more readable matt 2022-02-24 13:52:38 +00:00
  • ced35b41ca Add middleware to prevent unauthorised user from accessing private pages matt 2022-02-21 22:45:38 +00:00
  • 8a783fe35c Add plantUML diagram file for Emailer classes matt 2022-02-21 22:40:01 +00:00
  • bcdc79e897 Refactored sanitisation function to allow more expandability and removed the need to clone the body matt 2022-02-19 21:11:16 +00:00
  • e1ae4f8b5f Document gulpfile for writeup matt 2022-02-16 14:10:30 +00:00
  • a0fb0cc5bb Use database NULL values instead of empty strings matt 2022-02-14 21:58:19 +00:00
  • 6cd2d9db4a Validator should add non-validated fields to the returned map too matt 2022-02-14 21:29:01 +00:00
  • f62187bf60 Remove unneccasary method User.getPasswordReset matt 2022-02-14 21:10:44 +00:00
  • bf8b99a0d1 Send a password reset email matt 2022-02-14 20:55:20 +00:00
  • 12090cefe8 Added method to return a nodemailer message object from EmailBuilder matt 2022-02-14 20:55:00 +00:00
  • 7bd34f3312 Fix error when otherNames is undefined matt 2022-02-14 20:54:19 +00:00
  • c85166a7a0 Make EmailBuilder fields private matt 2022-02-14 20:53:46 +00:00
  • 1c680b076a Added functionality to Emailer to create nodemailer transport in preparation for email sending matt 2022-02-14 20:24:43 +00:00
  • 1b7195caa7 Added nodemailer dependency for sending emails matt 2022-02-14 20:24:00 +00:00
  • 0aa0d11523 Implement new Emailer class in password-reset route matt 2022-02-14 17:29:11 +00:00
  • 3177653d60 Added Emailer class to send emails matt 2022-02-14 17:27:41 +00:00
  • 5aaaa6ad96 Add sample config for SMTP server settings matt 2022-02-14 17:27:27 +00:00
  • def29705c6 Added documentation for EmailBuilder class matt 2022-02-14 17:05:44 +00:00
  • 6612d6c7be Replaced placeholder log for testing with new EmailBuilder matt 2022-02-14 15:03:47 +00:00
  • 1ccc25f185 Added new EmailBuilder class matt 2022-02-14 15:02:37 +00:00
  • 6055a1e797 Implemented User getter for fullName matt 2022-02-14 15:01:33 +00:00
  • 1f1a150f9c Added route for POST change password matt 2022-02-14 10:33:50 +00:00
  • 51897544bf Added route for password reset link matt 2022-02-14 10:32:58 +00:00
  • b763ce893e Added placeholder for testing password reset matt 2022-02-14 10:32:19 +00:00
  • f88d00e192 Added view for the second page of password-reset matt 2022-02-14 10:31:48 +00:00
  • b955609399 Implemented User.changePassword matt 2022-02-14 10:29:58 +00:00
  • e38135cb6c Implemented User getter matt 2022-02-14 10:29:35 +00:00
  • 275c503d3c Removed licence from package.json and fixed entry point matt 2022-02-14 10:28:49 +00:00