moved guards and service from profile folder to core folder
parent
f54ad7be14
commit
d8308172c7
|
@ -7,7 +7,7 @@ import {
|
|||
import { Observable } from 'rxjs';
|
||||
|
||||
import { Account } from '@account/models/account.model';
|
||||
import { ProfileService } from './profile.service';
|
||||
import { ProfileService } from '../http/profile.service';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
|
@ -7,7 +7,7 @@ import {
|
|||
import { Observable } from 'rxjs';
|
||||
|
||||
import { MembershipType } from '@account/models/membership.model';
|
||||
import { ProfileService } from './profile.service';
|
||||
import { ProfileService } from '../http/profile.service';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
|
@ -6,11 +6,11 @@ import { MatSnackBar } from '@angular/material';
|
|||
import { Observable, Subject, throwError } from 'rxjs';
|
||||
import { catchError } from 'rxjs/operators';
|
||||
|
||||
import { environment } from '../../environments/environment';
|
||||
import { Account } from '@account/models/account.model';
|
||||
import { AccountMembership } from '@account/models/account-membership.model';
|
||||
import { Agreement } from '@account/models/agreement.model';
|
||||
import { MembershipType } from '@account/models/membership.model';
|
||||
import { environment } from '../../../environments/environment';
|
||||
import { Account } from '../../shared/models/account.model';
|
||||
import { AccountMembership } from '../../shared/models/account-membership.model';
|
||||
import { Agreement } from '../../shared/models/agreement.model';
|
||||
import { MembershipType } from '../../shared/models/membership.model';
|
||||
|
||||
|
||||
// URLs for the http requests
|
|
@ -3,7 +3,7 @@ import { ActivatedRoute } from '@angular/router';
|
|||
|
||||
import { Account } from '@account/models/account.model';
|
||||
import { MembershipType } from '@account/models/membership.model';
|
||||
import { ProfileService } from '../profile.service';
|
||||
import { ProfileService } from '../../core/http/profile.service';
|
||||
|
||||
@Component({
|
||||
selector: 'account-profile-edit',
|
||||
|
|
|
@ -5,7 +5,7 @@ import { Subscription } from 'rxjs';
|
|||
|
||||
import { AccountMembership } from '@account/models/account-membership.model';
|
||||
import { MembershipType } from '@account/models/membership.model';
|
||||
import { ProfileService } from '../../profile.service';
|
||||
import { ProfileService } from '../../../core/http/profile.service';
|
||||
import { PaymentComponent } from '../../payment/payment.component';
|
||||
|
||||
@Component({
|
||||
|
|
|
@ -6,7 +6,7 @@ import { Subscription } from 'rxjs';
|
|||
|
||||
import { AccountMembership } from '@account/models/account-membership.model';
|
||||
import { MembershipType } from '@account/models/membership.model';
|
||||
import { ProfileService } from '../profile.service';
|
||||
import { ProfileService } from '../../core/http/profile.service';
|
||||
|
||||
|
||||
@Component({
|
||||
|
|
|
@ -4,7 +4,7 @@ import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
|||
|
||||
import { faCheck } from '@fortawesome/free-solid-svg-icons';
|
||||
|
||||
import { ProfileService } from '../../profile.service';
|
||||
import { ProfileService } from '../../../core/http/profile.service';
|
||||
|
||||
|
||||
@Component({
|
||||
|
|
|
@ -17,7 +17,7 @@ import {
|
|||
navigateToLogin,
|
||||
ProfileService,
|
||||
storeRedirect
|
||||
} from '../profile.service';
|
||||
} from '../../core/http/profile.service';
|
||||
|
||||
const noDelay = 0;
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ import { FormGroup } from '@angular/forms';
|
|||
import { MatBottomSheet } from '@angular/material';
|
||||
|
||||
import { MembershipType } from '@account/models/membership.model';
|
||||
import { ProfileService } from '../../profile.service';
|
||||
import { ProfileService } from '../../../core/http/profile.service';
|
||||
import { PaymentComponent } from '../../payment/payment.component';
|
||||
|
||||
@Component({
|
||||
|
|
|
@ -8,7 +8,7 @@ import {
|
|||
|
||||
import { ElementOptions, StripeCardComponent, StripeService } from 'ngx-stripe';
|
||||
|
||||
import { ProfileService } from '../profile.service';
|
||||
import { ProfileService } from '../../core/http/profile.service';
|
||||
import { VerifyCardDialogComponent } from './verify-card-dialog.component';
|
||||
|
||||
const twoSeconds = 2000;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import { NgModule } from '@angular/core';
|
||||
import { RouterModule, Routes } from '@angular/router';
|
||||
|
||||
import { AccountResolverService } from './account-resolver.service';
|
||||
import { MembershipResolverService } from './membership-resolver.service';
|
||||
import { AccountResolverService } from '../core/guards/account-resolver.service';
|
||||
import { MembershipResolverService } from '../core/guards/membership-resolver.service';
|
||||
import { EditComponent } from './edit/edit.component';
|
||||
import { NewComponent } from './new/new.component';
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ import { MembershipComponent } from './edit/membership/membership.component';
|
|||
import { MembershipOptionsComponent } from './membership-options/membership-options.component';
|
||||
import { NewComponent } from './new/new.component';
|
||||
import { PaymentComponent } from './payment/payment.component';
|
||||
import { ProfileService } from './profile.service';
|
||||
import { ProfileService } from '../core/http/profile.service';
|
||||
import { ProfileRoutingModule } from './profile-routing.module';
|
||||
import { SharedModule } from 'shared';
|
||||
import { SupportStepComponent } from './new/support-step/support-step.component';
|
||||
|
|
Loading…
Reference in New Issue