diff --git a/src/app/discoteca-i.ts b/src/app/interfaces/discoteca-i.ts similarity index 100% rename from src/app/discoteca-i.ts rename to src/app/interfaces/discoteca-i.ts diff --git a/src/app/interfaces/eventoi.ts b/src/app/interfaces/eventoi.ts new file mode 100644 index 0000000..961d4e7 --- /dev/null +++ b/src/app/interfaces/eventoi.ts @@ -0,0 +1,2 @@ +export interface Eventoi { +} diff --git a/src/app/user-login.ts b/src/app/interfaces/user-login.ts similarity index 100% rename from src/app/user-login.ts rename to src/app/interfaces/user-login.ts diff --git a/src/app/user.ts b/src/app/interfaces/user.ts similarity index 100% rename from src/app/user.ts rename to src/app/interfaces/user.ts diff --git a/src/app/login/login.page.ts b/src/app/login/login.page.ts index 3016ca9..c33e6a8 100644 --- a/src/app/login/login.page.ts +++ b/src/app/login/login.page.ts @@ -1,7 +1,7 @@ import { Component, OnInit } from '@angular/core'; import { Router } from '@angular/router'; -import { LoginService } from '../login.service'; -import { User } from '../user'; +import { LoginService } from '../services/login.service'; +import { User } from '../interfaces/user'; @Component({ selector: 'app-login', diff --git a/src/app/api.service.spec.ts b/src/app/services/api.service.spec.ts similarity index 100% rename from src/app/api.service.spec.ts rename to src/app/services/api.service.spec.ts diff --git a/src/app/api.service.ts b/src/app/services/api.service.ts similarity index 77% rename from src/app/api.service.ts rename to src/app/services/api.service.ts index 58e806e..cf30afc 100644 --- a/src/app/api.service.ts +++ b/src/app/services/api.service.ts @@ -2,10 +2,10 @@ import { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { Observable, throwError, BehaviorSubject } from 'rxjs'; import { catchError, retry, map, tap } from 'rxjs/operators'; -import { User } from './user'; -import { Discoteca } from './discoteca'; -import { UserLogin } from './user-login'; -import { DiscotecaI } from './discoteca-i'; +import { User } from '../interfaces/user'; +import { Discoteca } from '../discoteca'; +import { UserLogin } from '../interfaces/user-login'; +import { DiscotecaI } from '../interfaces/discoteca-i'; @Injectable({ diff --git a/src/app/login.service.spec.ts b/src/app/services/login.service.spec.ts similarity index 100% rename from src/app/login.service.spec.ts rename to src/app/services/login.service.spec.ts diff --git a/src/app/login.service.ts b/src/app/services/login.service.ts similarity index 85% rename from src/app/login.service.ts rename to src/app/services/login.service.ts index 8652c71..977a8b3 100644 --- a/src/app/login.service.ts +++ b/src/app/services/login.service.ts @@ -2,9 +2,9 @@ import { Injectable } from '@angular/core'; import { Router } from '@angular/router'; import { VirtualTimeScheduler } from 'rxjs'; import { ApiService } from './api.service'; -import { Tab1Service } from './tab1/tab1.service'; -import { User } from './user'; -import { UserLogin } from './user-login'; +import { Tab1Service } from '../tab1/tab1.service'; +import { User } from '../interfaces/user'; +import { UserLogin } from '../interfaces/user-login'; @Injectable({ diff --git a/src/app/tab1/tab1.service.ts b/src/app/tab1/tab1.service.ts index 1b98cd3..7df4ad2 100644 --- a/src/app/tab1/tab1.service.ts +++ b/src/app/tab1/tab1.service.ts @@ -5,8 +5,8 @@ import { Discoteca } from '../discoteca' import { Evento } from '../evento'; import { FormControl, FormGroup } from '@angular/forms'; import { NumericValueAccessor } from '@ionic/angular'; -import { DiscotecaI } from '../discoteca-i'; -import { ApiService } from '../api.service'; +import { DiscotecaI } from '../interfaces/discoteca-i'; +import { ApiService } from '../services/api.service'; import { Router } from '@angular/router';