reworked style import

This commit is contained in:
Timo Bejan 2020-09-22 16:19:02 +03:00
parent c3f7d74c7a
commit 0c1c6b937b
14 changed files with 7 additions and 15 deletions

View File

@ -1,7 +1,7 @@
import {HttpEvent, HttpHandler, HttpInterceptor, HttpRequest} from '@angular/common/http'; import {HttpEvent, HttpHandler, HttpInterceptor, HttpRequest} from '@angular/common/http';
import {Injectable} from '@angular/core'; import {Injectable} from '@angular/core';
import {Observable} from 'rxjs'; import {Observable} from 'rxjs';
import {AppConfigKey, AppConfigService} from "../app-config/app-config.service"; import {AppConfigService} from "../app-config/app-config.service";
@Injectable() @Injectable()
export class ApiPathInterceptorService implements HttpInterceptor { export class ApiPathInterceptorService implements HttpInterceptor {
@ -10,14 +10,6 @@ export class ApiPathInterceptorService implements HttpInterceptor {
} }
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> { intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> {
return next.handle(req);
// if (!req.url.startsWith('/assets')) {
// const updatedRequest = req.clone({
// url: this._appConfigService.getConfig(AppConfigKey.API_URL) + req.url
// })
// return next.handle(updatedRequest);
// } else {
return next.handle(req);
// }
} }
} }

View File

@ -1,4 +1,4 @@
@import "../../../../../../assets/styles/red-variables"; @import "../../../assets/styles/red-variables";
.red-top-bar { .red-top-bar {
height: 61px; height: 61px;

View File

@ -1,2 +1,2 @@
@import "../../../../../../../../assets/styles/red-variables"; @import "../../../../../assets/styles/red-variables";

View File

@ -1,2 +1,2 @@
@import "../../../../../../assets/styles/red-mixins"; @import "../../../assets/styles/red-mixins";

View File

@ -2,7 +2,7 @@
@import url('https://fonts.googleapis.com/css2?family=Inconsolata:wght@300;400;500;700&display=swap'); @import url('https://fonts.googleapis.com/css2?family=Inconsolata:wght@300;400;500;700&display=swap');
@import '~ngx-toastr/toastr'; @import '~ngx-toastr/toastr';
@import "red-material-theme"; @import "red-material-theme";
@import "page-layout"; @import "red-page-layout";
@import "red-text-styles"; @import "red-text-styles";
@import "red-dialog"; @import "red-dialog";
@import "red-input"; @import "red-input";

View File

@ -1,2 +1,2 @@
/* You can add global styles to this file, and also import other style files */ /* You can add global styles to this file, and also import other style files */
@import "../../../assets/styles/red-theme"; @import "./assets/styles/red-theme";