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

Commit Graph

  • 8dc8757fd3 Added husky pre-push hook matt 2022-04-19 00:53:02 +00:00
  • 0088786adc Add husky dependency matt 2022-04-19 00:52:48 +00:00
  • af3e4dee94 NPM updates matt 2022-04-19 00:51:05 +00:00
  • c3d3de7677 Remove dangling commas matt 2022-04-19 00:22:23 +00:00
  • 52c44f298e Added generalised handlebars context matt 2022-04-19 00:21:40 +00:00
  • 35b4030d27 TestResult.grade now returns real grade matt 2022-04-18 21:39:38 +00:00
  • e9d38b25b0 Implemented grade boundaries for TestTemplate matt 2022-04-18 21:38:48 +00:00
  • 1accae5851 Added GradeBoundaries class matt 2022-04-18 21:38:16 +00:00
  • 01c3f9ef06 Added gradeBoundaries field to testTemplate table matt 2022-04-18 21:37:41 +00:00
  • 68257f787b Added result/delete route matt 2022-04-18 20:22:55 +00:00
  • c634987e3a Added styling for deletion form matt 2022-04-18 20:22:43 +00:00
  • cec8350172 Added markup for deleting test result matt 2022-04-18 20:22:18 +00:00
  • bfdbcdd61a Add view for adding testResults matt 2022-04-18 20:21:45 +00:00
  • b98d9da464 Added route for creating testResults matt 2022-04-18 20:21:11 +00:00
  • 5256a67d26 Add 'Add result' button matt 2022-04-18 20:19:50 +00:00
  • d88a2b8fd7 Added Test.addResult matt 2022-04-18 20:18:36 +00:00
  • 0e7f0534b7 Added TestResult.delete matt 2022-04-18 20:17:54 +00:00
  • 326dd35b44 Added TestResult.create matt 2022-04-18 20:17:29 +00:00
  • 5def59357c Implement TestResult.setMark matt 2022-04-18 19:13:58 +00:00
  • facb9ba124 Fix locale in handlebars formatTime helper matt 2022-04-18 19:12:52 +00:00
  • 0b4be056c6 Generalise MySQLDate to lib matt 2022-04-18 19:12:08 +00:00
  • 6b409bca41 Added route functionality for testResults and testResults/edit matt 2022-04-18 15:53:31 +00:00
  • f1336d058f Added styling for testResult edit form matt 2022-04-18 15:53:06 +00:00
  • 82cf917d7c Added manage results button to test page matt 2022-04-18 15:52:48 +00:00
  • 61a7498682 Added testResults page matt 2022-04-18 15:52:35 +00:00
  • 5fdbffdd7e Added edit markup to testResult partial matt 2022-04-18 15:52:11 +00:00
  • cd462bfe94 Support additional classes for btn partial matt 2022-04-18 15:51:39 +00:00
  • e7f6843058 Split testResult into its own component matt 2022-04-18 15:01:43 +00:00
  • c8b1dba267 Fix styling issues on test page matt 2022-04-18 15:01:18 +00:00
  • 28ac0df520 Split out singleTest route and fix priorities for routes matt 2022-04-18 15:00:50 +00:00
  • 9f9354fcb1 Refactor loadRoutes matt 2022-04-18 14:59:41 +00:00
  • 5cbd2831d1 Added priority system for route loading matt 2022-04-18 14:49:35 +00:00
  • 58855dcfd1 Replace test data with live TestResult data matt 2022-04-18 13:00:19 +00:00
  • 3adf10ed6e Prepare test view for actual testResult format matt 2022-04-18 12:59:32 +00:00
  • ce00fd1835 Added handlebars format time helper matt 2022-04-18 12:58:55 +00:00
  • 3242b401d3 Added TestResult test data matt 2022-04-18 12:57:58 +00:00
  • ac1420a26e Added Test.getTestResults matt 2022-04-18 12:57:27 +00:00
  • 318bdd3b30 Implemented base TestResult functionality matt 2022-04-18 12:57:05 +00:00
  • d965405c8b Allow handlebars to use prototype properties and methods matt 2022-04-18 12:54:23 +00:00
  • 6406cd5a5c Added redirect_to to login page when auth forces re-authentication matt 2022-04-12 00:34:32 +00:00
  • 26f0a6e2cc Added time field to testResult schema matt 2022-04-12 00:13:34 +00:00
  • 3079de4692 Added testResultId field to schema matt 2022-04-12 00:13:10 +00:00
  • ad1a50d4f2 Reorder User constructor params matt 2022-04-07 13:38:41 +00:00
  • 95b1636288 Reduce overhead on calls to getStudents and getTeacher to not fetch objects when they're not required matt 2022-04-01 12:46:07 +00:00
  • 73b566f6ad NPM updates matt 2022-04-01 12:16:33 +00:00
  • 0b09a9a61e Should not allow teachers to remove the last teacher from class matt 2022-03-31 13:49:03 +00:00
  • 6a36fae78c Refactor Class.getTeachers and Class.getStudents into their own functions matt 2022-03-31 13:46:52 +00:00
  • e1bf0122f1 Only teachers should be able to remove users matt 2022-03-31 09:14:38 +00:00
  • 74cae8847d Added POST class/user/remove matt 2022-03-31 08:50:22 +00:00
  • dc95b64480 Fully implemented Class.removeUser matt 2022-03-31 08:50:09 +00:00
  • 9fb499bbe5 Added GET class/user/remove matt 2022-03-31 08:49:02 +00:00
  • 4840ddbcd6 Added removeClassUser view matt 2022-03-31 08:49:24 +00:00
  • 55722854b0 Added classUser styling component matt 2022-03-31 08:48:26 +00:00
  • a5c55955be Added click handlers for classUser remove icon matt 2022-03-31 08:48:06 +00:00
  • 7f18d3ba85 Added id and icon to classUser component matt 2022-03-31 08:47:46 +00:00
  • b489f055aa Fix multiple instantiation problem matt 2022-03-30 10:08:46 +00:00
  • a97c2e3dc5 Added routes for addClassUser matt 2022-03-29 10:25:46 +00:00
  • 7b8eafa1db Split class routes into two files matt 2022-03-29 10:13:05 +00:00
  • 3cb5929ea3 Add Class.addUser and scaffolding for Class.removeUser matt 2022-03-29 10:10:46 +00:00
  • 3568762778 User.createUser can now return Student/Parent types matt 2022-03-29 10:07:36 +00:00
  • e2ebaee9be DatabaseConnectionPool should bubble errors up matt 2022-03-29 10:06:57 +00:00
  • 2c2c6b602f Added views for addClassUser pages matt 2022-03-29 10:06:01 +00:00
  • 4c2a078530 Refactored database connection system to use a shared pool per-request matt 2022-03-23 23:29:55 +00:00
  • bd662661ee Fixed validation middlewares so they they run against all HTTP request types matt 2022-03-21 10:37:55 +00:00
  • a7808458f8 Added Account user to test data with no tests, classes or test templates matt 2022-03-21 09:18:51 +00:00
  • 31507e13fd Added delete test button and fixed link root matt 2022-03-21 09:18:29 +00:00
  • afbb7485dc Added route and validation for individual user matt 2022-03-21 09:17:15 +00:00
  • cd7f5de4b9 Added view for individual user matt 2022-03-21 09:16:07 +00:00
  • 8420bd9fd8 Added security validation for User class matt 2022-03-21 09:15:36 +00:00
  • bff42cdefa Add route for classUser pages matt 2022-03-21 09:15:14 +00:00
  • e6cdf94c14 Added views for classUser pages matt 2022-03-21 09:14:08 +00:00
  • e34016667f Catch database errors and prevent them from crashing the app matt 2022-03-21 09:12:48 +00:00
  • 0298c81f51 Make test and class validation more general matt 2022-03-14 09:42:33 +00:00
  • e1de67266c Cleanup extra newline matt 2022-03-14 09:40:34 +00:00
  • 609f50545c Fixed context in handlebars helpers matt 2022-03-14 09:40:10 +00:00
  • 8b3f8fa19d Added delete class button to class page matt 2022-03-14 09:38:29 +00:00
  • aaec1c0904 Add test route now actually adds test matt 2022-03-08 13:41:12 +00:00
  • 17193df826 Add TestTemplate.assignClass matt 2022-03-08 13:39:43 +00:00
  • b40624ce8f Add test template route now actually adds test template matt 2022-03-08 13:06:27 +00:00
  • 871cb36395 Add Account.createTestTemplate matt 2022-03-08 13:05:55 +00:00
  • ca5f7cc6e2 Add TestTemplate.createTestTemplate matt 2022-03-08 13:05:40 +00:00
  • 57def008c8 Add class route now actually adds class matt 2022-03-08 11:43:44 +00:00
  • 7b34e35fbc Add Account.createClass matt 2022-03-08 11:43:19 +00:00
  • db98c1d5ba Add Class.createClass matt 2022-03-08 11:43:05 +00:00
  • d49ec3d453 Fix class hover styling matt 2022-03-08 11:42:46 +00:00
  • 72891d0845 Added new date validation type to addTest post validator matt 2022-03-08 00:01:15 +00:00
  • 34c6478699 Added new validation type 'date' to validator module matt 2022-03-08 00:00:52 +00:00
  • be08c58afa Fixed failing DatabaseConnectionPool tests matt 2022-03-07 23:46:30 +00:00
  • c92181cbf2 Added routes and validation for testing add pages matt 2022-03-07 15:11:19 +00:00
  • 3047898fc2 Added route for GET test/add and testTemplate/add matt 2022-03-07 14:50:09 +00:00
  • f6909b06a9 Added route for GET class/add matt 2022-03-07 14:49:28 +00:00
  • 3731e5b09f Added addTestTemplate view matt 2022-03-07 14:48:56 +00:00
  • 062bb9059b Added addTest view matt 2022-03-07 14:48:30 +00:00
  • c5045ef0bd Added addClass view matt 2022-03-07 14:48:21 +00:00
  • 518e482ee7 Added Account.getTestTemplates method matt 2022-03-07 14:46:00 +00:00
  • 9dd5c1dd32 Added Subject.getAllSubjects method matt 2022-03-07 14:45:33 +00:00
  • 27a4ecd7c1 Generalised form styles matt 2022-03-07 14:45:09 +00:00
  • c6419cad8b Added add test and add class buttons to tests and classes pages matt 2022-03-06 22:46:32 +00:00
  • cface26bc9 Add test route matt 2022-03-06 20:51:20 +00:00
  • e19afeff73 Add Test.hasAccess for user validation matt 2022-03-06 20:42:58 +00:00