1
0
mirror of https://github.com/matt-fidd/stratos.git synced 2026-01-01 20:39:28 +00:00
Commit Graph

184 Commits

Author SHA1 Message Date
c90d9168f4 Added gulp tasks for initialising db and inserting test data 2022-02-26 23:24:37 +00:00
98170277a9 Add gulp-rename and prompt-sync packages 2022-02-26 23:18:34 +00:00
ae9339e80d Move db utility modules from self-contained to importable 2022-02-26 23:17:56 +00:00
cc353694b6 Updated gulpfile to use modern syntax 2022-02-26 22:30:40 +00:00
f299ecd727 Close database connection when finished with it 2022-02-25 19:52:46 +00:00
0ac1b1bb73 Fixed bug where handlebars can't access getters 2022-02-25 19:52:46 +00:00
3b5b9f7d88 Populate tests and classes pages 2022-02-25 19:52:46 +00:00
28f8b8dae8 Add ability to extract TestTemplate from Test 2022-02-25 19:52:46 +00:00
85d25439fd Add ability to extract Class from Test 2022-02-25 19:52:46 +00:00
7f6b1cfb97 Add ability to extract creator Account from TestTemplate 2022-02-25 19:52:45 +00:00
67e34e2c93 Add ability to extract teachers Accounts from Class 2022-02-25 19:52:45 +00:00
d5bc5a9619 Add ability to extract Subject from Class 2022-02-25 19:52:45 +00:00
6ee3e90f9b Added Subject constructor 2022-02-25 19:52:45 +00:00
28e95b8cc3 Prepare views for data injection 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 2022-02-25 16:48:11 +00:00
0ad2741884 Changed a test date to fall on today and fixed bug caused by sql styling 2022-02-25 16:48:01 +00:00
32c83cd308 Populate dashboard screen with real data 2022-02-25 16:30:21 +00:00
8063cad2f4 Don't fetch unneccasary records from db 2022-02-25 15:52:56 +00:00
73bf0f699c Added User.getClasses 2022-02-25 15:52:33 +00:00
f6efa74a89 Added Class constructor 2022-02-25 15:52:07 +00:00
57af81cc98 Consistent SQL query formatting 2022-02-25 14:44:35 +00:00
2fac6e7aba Add sessions table to cleanDb in test data 2022-02-25 14:24:43 +00:00
440587b57e Removed unneccasary Student method 2022-02-25 13:18:06 +00:00
98e7b125c4 Added User.getTests 2022-02-25 13:17:07 +00:00
f16cab9f8b Added Test constructor 2022-02-25 13:16:34 +00:00
48176a28fe Added TestDate class to help format dates correctly 2022-02-25 13:15:36 +00:00
747d7f8e77 Added TestTemplate constructor 2022-02-25 13:11:41 +00:00
f0e865803e User constructor should return the correct child class is type is unspecified 2022-02-25 13:03:26 +00:00
6c843731d1 Added Parent constructor and creator 2022-02-25 11:26:02 +00:00
66a40cffce Added Student constructor and creator 2022-02-25 11:25:49 +00:00
72b7a6fdb4 Fixed bug where User class assumed that it was an Account 2022-02-25 11:25:13 +00:00
917ed26659 Fixed arrow direction and text in test data diagrams 2022-02-24 23:57:05 +00:00
b624e63e48 Added test test data 2022-02-24 23:17:17 +00:00
a4156615d0 Added testTemplate test data 2022-02-24 23:17:06 +00:00
187c3a8b64 Rewrite cleanDb to be more dynamic 2022-02-24 23:16:24 +00:00
e6b260613e Migrate existing relationships over to new lookup structure 2022-02-24 23:16:00 +00:00
d6d314ad3b Added new lookup capability inside test data object 2022-02-24 23:06:21 +00:00
5875d7bf1b Added new helper class to make insertion of dates easier into test data 2022-02-24 23:04:59 +00:00
4a7b642b29 Added PlantUML files for test based test data 2022-02-24 17:52:39 +00:00
e709d74f74 Moved data from view to route in preparation of db integration 2022-02-24 15:47:24 +00:00
31a244d439 Added new partial for test in dashboard table 2022-02-24 15:45:21 +00:00
6e2f19fbda Removing obsolete code 2022-02-24 13:58:09 +00:00
67d15db4ee Made auth middleware more readable 2022-02-24 13:52:38 +00:00
ced35b41ca Add middleware to prevent unauthorised user from accessing private pages 2022-02-24 13:33:13 +00:00
8a783fe35c Add plantUML diagram file for Emailer classes 2022-02-21 22:40:01 +00:00
bcdc79e897 Refactored sanitisation function to allow more expandability and removed the need to clone the body 2022-02-19 21:11:16 +00:00
e1ae4f8b5f Document gulpfile for writeup 2022-02-16 14:10:30 +00:00
a0fb0cc5bb Use database NULL values instead of empty strings 2022-02-14 21:58:19 +00:00
6cd2d9db4a Validator should add non-validated fields to the returned map too 2022-02-14 21:29:01 +00:00
f62187bf60 Remove unneccasary method User.getPasswordReset 2022-02-14 21:10:44 +00:00