Skip to content

Commit a18c25d

Browse files
Development: Move client course and layouts module to core and assessment-dasboard to assessment (#10532)
1 parent de5ce74 commit a18c25d

File tree

559 files changed

+745
-748
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

559 files changed

+745
-748
lines changed

src/main/webapp/app/app.component.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
import { Component, OnDestroy, OnInit, Renderer2, inject } from '@angular/core';
22
import { ActivatedRouteSnapshot, NavigationEnd, NavigationError, NavigationStart, Router, RouterOutlet } from '@angular/router';
33
import { JhiLanguageHelper } from 'app/core/language/shared/language.helper';
4-
import { ProfileService } from 'app/shared/layouts/profiles/profile.service';
54
import { SentryErrorHandler } from 'app/core/sentry/sentry.error-handler';
65
import { ThemeService } from 'app/core/theme/shared/theme.service';
76
import { DOCUMENT, NgClass, NgStyle } from '@angular/common';
87
import { Subscription } from 'rxjs';
98
import { ExamParticipationService } from 'app/exam/overview/exam-participation.service';
10-
import { CourseManagementService } from 'app/course/manage/course-management.service';
9+
import { CourseManagementService } from 'app/core/course/manage/course-management.service';
1110
import { LtiService } from 'app/shared/service/lti.service';
1211
import { AlertOverlayComponent } from 'app/core/alert/alert-overlay.component';
1312
import { CdkScrollable } from '@angular/cdk/scrolling';
14-
import { PageRibbonComponent } from './shared/layouts/profiles/page-ribbon.component';
15-
import { NotificationPopupComponent } from './shared/notification/notification-popup/notification-popup.component';
16-
import { FooterComponent } from './shared/layouts/footer/footer.component';
13+
import { PageRibbonComponent } from 'app/shared/layouts/profiles/page-ribbon.component';
14+
import { ProfileService } from 'app/shared/layouts/profiles/profile.service';
15+
import { NotificationPopupComponent } from 'app/shared/notification/notification-popup/notification-popup.component';
16+
import { FooterComponent } from 'app/shared/layouts/footer/footer.component';
1717

1818
@Component({
1919
selector: 'jhi-app',

src/main/webapp/app/app.config.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,11 @@ import { ErrorHandlerInterceptor } from 'app/core/interceptor/errorhandler.inter
2525
import { NotificationInterceptor } from 'app/core/interceptor/notification.interceptor';
2626
import { SentryErrorHandler } from 'app/core/sentry/sentry.error-handler';
2727

28-
import { LoadingNotificationInterceptor } from 'app/shared/notification/loading-notification/loading-notification.interceptor';
29-
30-
import { ArtemisNavigationUtilService } from 'app/utils/navigation.utils';
28+
import { ArtemisNavigationUtilService } from 'app/shared/util/navigation.utils';
3129
import { provideNgxWebstorage, withLocalStorage, withNgxWebstorageConfig, withSessionStorage } from 'ngx-webstorage';
3230
import { OwlNativeDateTimeModule } from '@danielmoncada/angular-datetime-picker';
3331
import { ArtemisTranslatePipe } from 'app/shared/pipes/artemis-translate.pipe';
32+
import { LoadingNotificationInterceptor } from 'app/shared/notification/loading-notification/loading-notification.interceptor';
3433

3534
export const appConfig: ApplicationConfig = {
3635
providers: [

src/main/webapp/app/app.main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { appConfig } from 'app/app.config';
33
import { MonacoConfig } from 'app/core/config/monaco.config';
44
import { ProdConfig } from 'app/core/config/prod.config';
55
import { JhiLanguageHelper } from 'app/core/language/shared/language.helper';
6-
import { artemisIconPack } from 'app/icons/icons';
76
import { AppComponent } from './app.component';
87
import { FaIconLibrary } from '@fortawesome/angular-fontawesome';
98
import isMobile from 'ismobilejs-es5';
@@ -13,6 +12,7 @@ import dayjs from 'dayjs/esm';
1312
import { NgbDatepickerConfig, NgbTooltipConfig } from '@ng-bootstrap/ng-bootstrap';
1413
import { TranslateService } from '@ngx-translate/core';
1514
import { SessionStorageService } from 'ngx-webstorage';
15+
import { artemisIconPack } from 'app/icons/icons';
1616

1717
ProdConfig();
1818
MonacoConfig();

src/main/webapp/app/app.routes.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { UserRouteAccessService } from 'app/core/auth/user-route-access-service'
33
import { Authority } from 'app/shared/constants/authority.constants';
44
import { navbarRoute } from 'app/shared/layouts/navbar/navbar.route';
55
import { errorRoute } from 'app/shared/layouts/error/error.route';
6-
76
const LAYOUT_ROUTES: Routes = [navbarRoute, ...errorRoute];
87

98
const routes: Routes = [
@@ -17,7 +16,7 @@ const routes: Routes = [
1716
},
1817
{
1918
path: '',
20-
loadChildren: () => import('./shared/user-settings/user-settings.route').then((m) => m.routes),
19+
loadChildren: () => import('app/shared/user-settings/user-settings.route').then((m) => m.routes),
2120
},
2221
{
2322
path: 'admin',
@@ -134,7 +133,7 @@ const routes: Routes = [
134133
// ===== COURSE MANAGEMENT =====
135134
{
136135
path: 'course-management',
137-
loadChildren: () => import('./course/manage/course-management.route').then((m) => m.courseManagementState),
136+
loadChildren: () => import('./core/course/manage/course-management.route').then((m) => m.courseManagementState),
138137
},
139138
{
140139
path: 'course-management/:courseId/programming-exercises/:exerciseId/code-editor',
@@ -143,7 +142,7 @@ const routes: Routes = [
143142

144143
{
145144
path: 'courses',
146-
loadChildren: () => import('app/course/overview/courses.route').then((m) => m.routes),
145+
loadChildren: () => import('app/core/course/overview/courses.route').then((m) => m.routes),
147146
},
148147
{
149148
path: 'course-management/:courseId/lectures/:lectureId/attachments/:attachmentId',
@@ -159,12 +158,12 @@ const routes: Routes = [
159158
{
160159
path: 'courses/:courseId/exercises/:exerciseId/problem-statement',
161160
pathMatch: 'full',
162-
loadComponent: () => import('app/course/overview/exercise-details/problem-statement/problem-statement.component').then((m) => m.ProblemStatementComponent),
161+
loadComponent: () => import('app/core/course/overview/exercise-details/problem-statement/problem-statement.component').then((m) => m.ProblemStatementComponent),
163162
},
164163
{
165164
pathMatch: 'full',
166165
path: 'courses/:courseId/exercises/:exerciseId/problem-statement/:participationId',
167-
loadComponent: () => import('app/course/overview/exercise-details/problem-statement/problem-statement.component').then((m) => m.ProblemStatementComponent),
166+
loadComponent: () => import('app/core/course/overview/exercise-details/problem-statement/problem-statement.component').then((m) => m.ProblemStatementComponent),
168167
},
169168
{
170169
path: 'courses/:courseId/exercises/:exerciseId/participations/:participationId/results/:resultId/feedback',

src/main/webapp/app/assessment/manage/assessment-instructions/assessment-instructions/assessment-instructions.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ import { ProgrammingExerciseStudentParticipation } from 'app/entities/participat
1212
import { ExpandableSectionComponent } from '../expandable-section/expandable-section.component';
1313
import { StructuredGradingInstructionsAssessmentLayoutComponent } from 'app/assessment/manage/structured-grading-instructions-assessment-layout/structured-grading-instructions-assessment-layout.component';
1414
import { ProgrammingExerciseInstructionComponent } from 'app/programming/shared/instructions-render/programming-exercise-instruction.component';
15-
import { SecureLinkDirective } from 'app/shared/http/secure-link.directive';
1615
import { ButtonComponent } from 'app/shared/components/button.component';
1716
import { TranslateDirective } from 'app/shared/language/translate.directive';
1817
import { ModelingEditorComponent } from 'app/modeling/shared/modeling-editor.component';
18+
import { SecureLinkDirective } from 'app/shared/http/secure-link.directive';
1919

2020
@Component({
2121
selector: 'jhi-assessment-instructions',

src/main/webapp/app/assessment/manage/assessment-locks/assessment-locks.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { ActivatedRoute, RouterLink } from '@angular/router';
33
import { FileUploadAssessmentService } from 'app/fileupload/manage/assess/file-upload-assessment.service';
44
import { TranslateService } from '@ngx-translate/core';
55
import { Submission, SubmissionExerciseType } from 'app/entities/submission.model';
6-
import { CourseManagementService } from 'app/course/manage/course-management.service';
6+
import { CourseManagementService } from 'app/core/course/manage/course-management.service';
77
import { HttpResponse } from '@angular/common/http';
88
import { Course } from 'app/entities/course.model';
99
import { Exercise, ExerciseType, getIcon, getIconTooltip } from 'app/entities/exercise.model';

src/main/webapp/app/assessment/manage/assessment-locks/assessment-locks.route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Routes } from '@angular/router';
22
import { UserRouteAccessService } from 'app/core/auth/user-route-access-service';
33

44
import { Authority } from 'app/shared/constants/authority.constants';
5-
import { CourseManagementResolve } from 'app/course/manage/course-management-resolve.service';
5+
import { CourseManagementResolve } from 'app/core/course/manage/course-management-resolve.service';
66

77
export const assessmentLocksRoute: Routes = [
88
{

src/main/webapp/app/assessment/manage/complaint-response.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { map } from 'rxjs/operators';
55
import { ComplaintResponse } from 'app/entities/complaint-response.model';
66
import { AccountService } from 'app/core/auth/account.service';
77
import { Exercise } from 'app/entities/exercise.model';
8-
import { convertDateFromServer } from 'app/utils/date.utils';
8+
import { convertDateFromServer } from 'app/shared/util/date.utils';
99
import { ComplaintResponseUpdateDTO } from 'app/entities/complaint-response-dto.model';
1010

1111
type EntityResponseType = HttpResponse<ComplaintResponse>;

src/main/webapp/app/assessment/manage/grading-system/base-grading-system/base-grading-system.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { catchError, finalize } from 'rxjs/operators';
1010
import { TranslateService } from '@ngx-translate/core';
1111
import { Course } from 'app/entities/course.model';
1212
import { Exam } from 'app/entities/exam/exam.model';
13-
import { CourseManagementService } from 'app/course/manage/course-management.service';
13+
import { CourseManagementService } from 'app/core/course/manage/course-management.service';
1414
import { ExamManagementService } from 'app/exam/manage/exam-management.service';
1515
import { download, generateCsv, mkConfig } from 'export-to-csv';
1616
import { faExclamationTriangle, faInfo, faPlus, faSave, faTimes } from '@fortawesome/free-solid-svg-icons';

src/main/webapp/app/assessment/manage/grading-system/grading-key-overview/grading-key-helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { findParamInRouteHierarchy } from 'app/utils/navigation.utils';
1+
import { findParamInRouteHierarchy } from 'app/shared/util/navigation.utils';
22
import { ActivatedRoute } from '@angular/router';
33

44
export type GradingKeyUrlParams = {

0 commit comments

Comments
 (0)