Skip to content

Commit

Permalink
More refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
belsman committed Jan 10, 2024
1 parent 50beb07 commit b398e75
Show file tree
Hide file tree
Showing 96 changed files with 13 additions and 16 deletions.
3 changes: 0 additions & 3 deletions src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { ProfileComponent } from './user-profile/pages/profile/profile.component';
import { PrivacyPolicyComponent } from './privacy-policy/pages/privacy-policy/privacy-policy.component';
import { ImprintComponent } from './imprint/pages/imprint/imprint.component';

const routes: Routes = [
// {
Expand Down
4 changes: 2 additions & 2 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ import { MenuLayerContentComponent } from './components/top-bar/menu-layer-conte
import { MenuLayerTitleComponent } from './components/top-bar/menu-layer-title/menu-layer-title.component';
import { HoverColorPickerDirective } from './directives/hover-color-picker-directive.service';
import { GraphQLModule } from './graphql.module';
import { ProductsModule } from './products/products.module';
import { ProductsModule } from './features/products/products.module';
import { SharedModule } from './shared/shared.module';
import { CheckoutModule } from './checkout/checkout.module';
import { CheckoutModule } from './features/checkout/checkout.module';

export function HttpLoaderFactory(http: HttpClient) {
return new TranslateHttpLoader(http, './assets/i18n/', '.json');
Expand Down
2 changes: 1 addition & 1 deletion src/app/directives/hover-color-picker-directive.service.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Directive, ElementRef, HostListener, Input } from '@angular/core';
import { ProductService } from '../products/services/product.service';
import { ProductService } from '../features/products/services/product.service';

@Directive({
selector: '[appHoverColorPicker]',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { CheckoutFormsComponent } from './pages/checkout-forms/checkout-forms.co
import { CheckoutComponent } from './pages/checkout/checkout.component';
import { CheckoutPageGuard } from './services/checkout-page-guard.service';
import { OrderOverviewComponent } from './components/order-overview/order-overview.component';
import { SharedModule } from '../shared/shared.module';
import {
VCLFlipSwitchModule,
VCLFormControlGroupModule,
Expand All @@ -16,6 +15,7 @@ import {
VCLTabNavModule,
} from '@vcl/ng-vcl';
import { ReactiveFormsModule } from '@angular/forms';
import { SharedModule } from 'src/app/shared/shared.module';

const routes: Routes = [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
UrlTree,
} from '@angular/router';
import { Observable } from 'rxjs';
import { CartService } from '../../services/cart.service';
import { CartService } from 'src/app/services/cart.service';

@Injectable({
providedIn: 'root',
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Component } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { map, switchMap } from 'rxjs';

import { ProductService } from 'src/app/products/services/product.service';
import { ProductService } from 'src/app/features/products/services/product.service';

@Component({
selector: 'app-product-variants',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Component, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { ScreenService } from 'src/app/services/screen.service';
import { ProductService } from 'src/app/products/services/product.service';
import { ProductService } from 'src/app/features/products/services/product.service';
import { combineLatest, map, switchMap } from 'rxjs';

@Component({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component, OnInit } from '@angular/core';
import { ProductService } from 'src/app/products/services/product.service';
import { ProductService } from 'src/app/features/products/services/product.service';

@Component({
selector: 'app-shoes-products',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { ShoesComponent } from './components/shoes/shoes.component';
import { ShoesProductsComponent } from './components/shoes-products/shoes-products.component';
import { ProductComponent } from './components/product/product.component';
import { ProductVariantsComponent } from './components/product-variants/product-variants.component';
import { ProductsTemplateComponent } from '../templates/products-template/products-template.component';
import { ProductsTemplateComponent } from '../../templates/products-template/products-template.component';
import { ProductCardComponent } from './components/product-card/product-card.component';
import { ProductColorPickerComponent } from './components/product-color-picker/product-color-picker.component';
import { ProductInterestComponent } from './components/product-interest/product-interest.component';
Expand All @@ -16,7 +16,7 @@ import { ProductNavigationComponent } from './components/product-navigation/prod
import { ProductMainComponent } from './components/product-main/product-main.component';
import { ProductRecommendComponent } from './components/product-recommend/product-recommend.component';
import { ProductSizePickerComponent } from './components/product-size-picker/product-size-picker.component';
import { SharedModule } from '../shared/shared.module';
import { SharedModule } from '../../shared/shared.module';
import { ProductsComponent } from './components/products/products.component';
import {
VCLGalleryModule,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { Injectable, EventEmitter, OnDestroy } from '@angular/core';
import { HttpClient } from '@angular/common/http';

import { Product } from '../../models/product';
import { Product } from '../../../models/product';
import { Product as ProductCard } from '../components/products/products.component';
import { Subject, Subscription, map, catchError, of, tap } from 'rxjs';
import {
IoRestorecommerceProductProduct,
IoRestorecommerceResourcebaseFilterOperation,
ProductsQueryGQL,
} from '../../generated/graphql';
} from '../../../generated/graphql';

@Injectable({
providedIn: 'root',
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
VCLPasswordInputModule,
VCLRadioButtonModule,
} from '@vcl/ng-vcl';
import { SharedModule } from '../shared/shared.module';
import { SharedModule } from '../../shared/shared.module';

const routes: Routes = [
{
Expand Down

0 comments on commit b398e75

Please sign in to comment.