mirror of
https://github.com/matt-fidd/stratos.git
synced 2026-01-01 22:59:28 +00:00
Added initial class skeletons
This commit is contained in:
31
lib/Account.js
Normal file
31
lib/Account.js
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
|
const User = require('./User');
|
||||||
|
|
||||||
|
class Account extends User {
|
||||||
|
constructor() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
get classes() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
get testTemplates() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
createTestTemplate() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
createClass() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
static createAccount() {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = Account;
|
||||||
41
lib/Class.js
Normal file
41
lib/Class.js
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
|
class Class {
|
||||||
|
classId;
|
||||||
|
subjectId;
|
||||||
|
name;
|
||||||
|
|
||||||
|
get subject() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
get tests() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
get teachers() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
get students() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
addTeacher() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
removeTeacher() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
calculateAverageMovement() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
static createClass() {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = Class;
|
||||||
19
lib/Parent.js
Normal file
19
lib/Parent.js
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
|
const User = require('./User');
|
||||||
|
|
||||||
|
class Parent extends User {
|
||||||
|
constructor() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
get children() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
static createParent() {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = Parent;
|
||||||
26
lib/PasswordReset.js
Normal file
26
lib/PasswordReset.js
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
|
class PasswordReset {
|
||||||
|
userId;
|
||||||
|
token;
|
||||||
|
nonce;
|
||||||
|
expires;
|
||||||
|
|
||||||
|
constructor() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
get user() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
static hashToken(password) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
static generatePasswordReset() {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = PasswordReset;
|
||||||
27
lib/Student.js
Normal file
27
lib/Student.js
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
|
const User = require('./User');
|
||||||
|
|
||||||
|
class Student extends User {
|
||||||
|
constructor() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
get classes() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
get tests() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
get parents() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
static createStudent() {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = Student;
|
||||||
12
lib/Subject.js
Normal file
12
lib/Subject.js
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
|
class Subject {
|
||||||
|
subjectId;
|
||||||
|
name;
|
||||||
|
|
||||||
|
constructor() {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = Subject;
|
||||||
34
lib/Test.js
Normal file
34
lib/Test.js
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
|
class Test {
|
||||||
|
testId;
|
||||||
|
testTemplateId;
|
||||||
|
classId;
|
||||||
|
testDate;
|
||||||
|
|
||||||
|
constructor () {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
get class() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
get students() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
get testTemplate() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
calculateAverageScore() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
calculateGradeBoundaries() {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = Test;
|
||||||
41
lib/TestResult.js
Normal file
41
lib/TestResult.js
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
|
class TestResult {
|
||||||
|
studentId;
|
||||||
|
accountId;
|
||||||
|
testId;
|
||||||
|
|
||||||
|
constructor() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
set mark() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
get mark() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
get percentage() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
get grade() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
get student() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
get account() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
get test {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = TestResult;
|
||||||
26
lib/TestTemplate.js
Normal file
26
lib/TestTemplate.js
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
|
class TestTemplate {
|
||||||
|
testTemplateId;
|
||||||
|
accountId;
|
||||||
|
name;
|
||||||
|
maxMark;
|
||||||
|
|
||||||
|
constructor() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
assignClass() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
get classes() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
static createTestTemplate() {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = TestTemplate;
|
||||||
53
lib/User.js
Normal file
53
lib/User.js
Normal file
@@ -0,0 +1,53 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
|
class User {
|
||||||
|
id;
|
||||||
|
firstName;
|
||||||
|
otherNames;
|
||||||
|
lastName;
|
||||||
|
email;
|
||||||
|
#password;
|
||||||
|
type = null;
|
||||||
|
|
||||||
|
constructor(type, userId) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
get fullName() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
verifyPassword(hash) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
changePassword(password) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
getPasswordReset() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
generatePasswordReset() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
login() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
static hashPassword(password) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
static createUser() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
static getUserByEmail() {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = User;
|
||||||
Reference in New Issue
Block a user