fix(backend): .js aan alle imports toegevoegd
Dit was nodig om ervoor te zorgen dat de gebouwde applicatie ook haar dependencies vindt.
This commit is contained in:
		
							parent
							
								
									48c8ce7c57
								
							
						
					
					
						commit
						73a84fa3ef
					
				
					 31 changed files with 107 additions and 107 deletions
				
			
		|  | @ -6,9 +6,9 @@ import { | |||
|     PrimaryKey, | ||||
|     Property, | ||||
| } from '@mikro-orm/core'; | ||||
| import { Class } from '../classes/class.entity'; | ||||
| import { Group } from './group.entity'; | ||||
| import { Language } from '../content/language'; | ||||
| import { Class } from '../classes/class.entity.js'; | ||||
| import { Group } from './group.entity.js'; | ||||
| import { Language } from '../content/language.js'; | ||||
| 
 | ||||
| @Entity() | ||||
| export class Assignment { | ||||
|  |  | |||
|  | @ -1,6 +1,6 @@ | |||
| import { Entity, ManyToMany, ManyToOne, PrimaryKey } from '@mikro-orm/core'; | ||||
| import { Assignment } from './assignment.entity'; | ||||
| import { Student } from '../users/student.entity'; | ||||
| import { Assignment } from './assignment.entity.js'; | ||||
| import { Student } from '../users/student.entity.js'; | ||||
| 
 | ||||
| @Entity() | ||||
| export class Group { | ||||
|  |  | |||
|  | @ -1,7 +1,7 @@ | |||
| import { Student } from '../users/student.entity'; | ||||
| import { Group } from './group.entity'; | ||||
| import { Student } from '../users/student.entity.js'; | ||||
| import { Group } from './group.entity.js'; | ||||
| import { Entity, Enum, ManyToOne, PrimaryKey, Property } from '@mikro-orm/core'; | ||||
| import { Language } from '../content/language'; | ||||
| import { Language } from '../content/language.js'; | ||||
| 
 | ||||
| @Entity() | ||||
| export class Submission { | ||||
|  |  | |||
|  | @ -6,8 +6,8 @@ import { | |||
|     Property, | ||||
| } from '@mikro-orm/core'; | ||||
| import { v4 } from 'uuid'; | ||||
| import { Teacher } from '../users/teacher.entity'; | ||||
| import { Student } from '../users/student.entity'; | ||||
| import { Teacher } from '../users/teacher.entity.js'; | ||||
| import { Student } from '../users/student.entity.js'; | ||||
| 
 | ||||
| @Entity() | ||||
| export class Class { | ||||
|  |  | |||
|  | @ -1,6 +1,6 @@ | |||
| import { Entity, ManyToOne } from '@mikro-orm/core'; | ||||
| import { Teacher } from '../users/teacher.entity'; | ||||
| import { Class } from './class.entity'; | ||||
| import { Teacher } from '../users/teacher.entity.js'; | ||||
| import { Class } from './class.entity.js'; | ||||
| 
 | ||||
| /** | ||||
|  * Invitation of a teacher into a class (in order to teach it). | ||||
|  |  | |||
|  | @ -1,5 +1,5 @@ | |||
| import { Entity, ManyToOne, PrimaryKey, Property } from '@mikro-orm/core'; | ||||
| import { LearningObject } from './learning-object.entity'; | ||||
| import { LearningObject } from './learning-object.entity.js'; | ||||
| 
 | ||||
| @Entity() | ||||
| export class Attachment { | ||||
|  |  | |||
|  | @ -1,4 +1,4 @@ | |||
| import { Language } from './language'; | ||||
| import { Language } from './language.js'; | ||||
| 
 | ||||
| export class LearningObjectIdentifier { | ||||
|     constructor( | ||||
|  |  | |||
|  | @ -8,9 +8,9 @@ import { | |||
|     PrimaryKey, | ||||
|     Property, | ||||
| } from '@mikro-orm/core'; | ||||
| import { Language } from './language'; | ||||
| import { Attachment } from './attachment.entity'; | ||||
| import { Teacher } from '../users/teacher.entity'; | ||||
| import { Language } from './language.js'; | ||||
| import { Attachment } from './attachment.entity.js'; | ||||
| import { Teacher } from '../users/teacher.entity.js'; | ||||
| 
 | ||||
| @Entity() | ||||
| export class LearningObject { | ||||
|  |  | |||
|  | @ -8,8 +8,8 @@ import { | |||
|     PrimaryKey, | ||||
|     Property, | ||||
| } from '@mikro-orm/core'; | ||||
| import { Language } from './language'; | ||||
| import { Teacher } from '../users/teacher.entity'; | ||||
| import { Language } from './language.js'; | ||||
| import { Teacher } from '../users/teacher.entity.js'; | ||||
| 
 | ||||
| @Entity() | ||||
| export class LearningPath { | ||||
|  |  | |||
|  | @ -1,6 +1,6 @@ | |||
| import { Entity, Enum, ManyToOne, PrimaryKey, Property } from '@mikro-orm/core'; | ||||
| import { Language } from '../content/language'; | ||||
| import { Student } from '../users/student.entity'; | ||||
| import { Language } from '../content/language.js'; | ||||
| import { Student } from '../users/student.entity.js'; | ||||
| 
 | ||||
| @Entity() | ||||
| export class Question { | ||||
|  |  | |||
|  | @ -1,8 +1,8 @@ | |||
| import { User } from './user.entity'; | ||||
| import { User } from './user.entity.js'; | ||||
| import { Collection, Entity, ManyToMany } from '@mikro-orm/core'; | ||||
| import { Class } from '../classes/class.entity'; | ||||
| import { Group } from '../assignments/group.entity'; | ||||
| import { StudentRepository } from '../../data/users/student-repository'; | ||||
| import { Class } from '../classes/class.entity.js'; | ||||
| import { Group } from '../assignments/group.entity.js'; | ||||
| import { StudentRepository } from '../../data/users/student-repository.js'; | ||||
| 
 | ||||
| @Entity({ repository: () => StudentRepository }) | ||||
| export class Student extends User { | ||||
|  |  | |||
|  | @ -1,6 +1,6 @@ | |||
| import { Collection, Entity, ManyToMany } from '@mikro-orm/core'; | ||||
| import { User } from './user.entity'; | ||||
| import { Class } from '../classes/class.entity'; | ||||
| import { User } from './user.entity.js'; | ||||
| import { Class } from '../classes/class.entity.js'; | ||||
| 
 | ||||
| @Entity() | ||||
| export class Teacher extends User { | ||||
|  |  | |||
		Reference in a new issue
	
	 Gerald Schmittinger
						Gerald Schmittinger