Skip to content

Commit dbf74f6

Browse files
committed
Rename files
To keep it consistent with main, I have renamed files that are not part of app from filename to "_filename" out of app. I also cleaned up the outdated user-service because it was renamed already.
1 parent 8be5003 commit dbf74f6

File tree

10 files changed

+11
-18
lines changed

10 files changed

+11
-18
lines changed
File renamed without changes.

frontend/src/app/helpers/interceptors/error.interceptor.ts renamed to frontend/src/_helpers/interceptors/error.interceptor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { HttpRequest, HttpHandler, HttpEvent, HttpInterceptor } from '@angular/c
33
import { Observable, throwError } from 'rxjs';
44
import { catchError } from 'rxjs/operators';
55

6-
import { AuthenticationService } from '../../services/authentication.service';
6+
import { AuthenticationService } from '../../_services/authentication.service';
77

88
@Injectable()
99
export class ErrorInterceptor implements HttpInterceptor {

frontend/src/app/helpers/interceptors/jwt.interceptor.spec.ts renamed to frontend/src/_helpers/interceptors/jwt.interceptor.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { TestBed } from '@angular/core/testing';
22
import { HttpTestingController, provideHttpClientTesting } from '@angular/common/http/testing';
33
import { HTTP_INTERCEPTORS, HttpClient } from '@angular/common/http';
44
import { JwtInterceptor } from './jwt.interceptor';
5-
import { AuthenticationService } from '../../services/authentication.service';
6-
import { environment } from '../../environments/environment';
5+
import { AuthenticationService } from '../../_services/authentication.service';
6+
import { environment } from '../../_environments/environment';
77

88
describe('JwtInterceptor', () => {
99
let httpMock: HttpTestingController;

frontend/src/app/helpers/interceptors/jwt.interceptor.ts renamed to frontend/src/_helpers/interceptors/jwt.interceptor.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { Injectable } from '@angular/core';
22
import { HttpRequest, HttpHandler, HttpEvent, HttpInterceptor } from '@angular/common/http';
33
import { Observable } from 'rxjs';
44

5-
import { environment } from '../../environments/environment';
6-
import { AuthenticationService } from '../../services/authentication.service';
5+
import { environment } from '../../_environments/environment';
6+
import { AuthenticationService } from '../../_services/authentication.service';
77

88
@Injectable()
99
export class JwtInterceptor implements HttpInterceptor {
File renamed without changes.

frontend/src/app/services/authentication.service.ts renamed to frontend/src/_services/authentication.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { Router } from '@angular/router';
33
import { HttpClient } from '@angular/common/http';
44
import { BehaviorSubject, Observable } from 'rxjs';
55
import { map, switchMap, tap } from 'rxjs/operators';
6-
import { environment } from '../environments/environment';
7-
import { User } from '../models/user.model';
6+
import { environment } from '../_environments/environment';
7+
import { User } from '../_models/user.model';
88

99
@Injectable({ providedIn: 'root' })
1010
export class AuthenticationService {

frontend/src/app/account/login.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { PasswordModule } from 'primeng/password';
77
import { ButtonModule } from 'primeng/button';
88
import { ToastModule } from 'primeng/toast';
99
import { MessageService } from 'primeng/api';
10-
import { AuthenticationService } from '../services/authentication.service';
10+
import { AuthenticationService } from '../../_services/authentication.service';
1111

1212
@Component({
1313
selector: 'app-login',

frontend/src/app/account/register.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { PASSWORD_WEAK, STRONG_PASSWORD_REGEX, weakPasswordValidator } from './_
1212
import { mismatchPasswordValidator, PASSWORD_MISMATCH } from './_validators/mismatch-password.validator';
1313
import { invalidUsernameValidator, USERNAME_INVALID } from './_validators/invalid-username.validator';
1414
import { invalidPasswordValidator, PASSWORD_INVALID } from './_validators/invalid-password.validator';
15-
import { AuthenticationService } from '../services/authentication.service';
15+
import { AuthenticationService } from '../../_services/authentication.service';
1616

1717
@Component({
1818
selector: 'app-register',

frontend/src/app/app.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { provideRouter } from '@angular/router';
33
import { HTTP_INTERCEPTORS, provideHttpClient } from '@angular/common/http';
44
import { routes } from './app.routes';
55
import { provideAnimationsAsync } from '@angular/platform-browser/animations/async';
6-
import { JwtInterceptor } from './helpers/interceptors/jwt.interceptor';
7-
import { ErrorInterceptor } from './helpers/interceptors/error.interceptor';
6+
import { JwtInterceptor } from '../_helpers/interceptors/jwt.interceptor';
7+
import { ErrorInterceptor } from '../_helpers/interceptors/error.interceptor';
88

99
export const appConfig: ApplicationConfig = {
1010
providers: [

services/user-service/.gitignore

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)