Use typescript path aliases for build time import path resolution
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { Component, Input } from '@angular/core';
|
||||
import { AddressTypeInfo } from '../../address-utils';
|
||||
import { AddressTypeInfo } from '@app/shared/address-utils';
|
||||
|
||||
@Component({
|
||||
selector: 'app-address-type',
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Component, Input, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
||||
import { Subscription } from 'rxjs';
|
||||
import { StateService } from '../../../services/state.service';
|
||||
import { StateService } from '@app/services/state.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-btc',
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Component, Input, OnInit } from '@angular/core';
|
||||
import { Observable } from 'rxjs';
|
||||
import { StateService } from '../../../services/state.service';
|
||||
import { StateService } from '@app/services/state.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-fee-rate',
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Component, Input, OnChanges } from '@angular/core';
|
||||
import { convertRegion, getFlagEmoji } from '../../common.utils';
|
||||
import { convertRegion, getFlagEmoji } from '@app/shared/common.utils';
|
||||
|
||||
export interface GeolocationData {
|
||||
country: string;
|
||||
|
||||
@@ -2,13 +2,13 @@ import { Input, ChangeDetectionStrategy, ChangeDetectorRef, Component, OnInit, O
|
||||
import { Router, ActivatedRoute } from '@angular/router';
|
||||
import { Observable, merge, of, Subject, Subscription } from 'rxjs';
|
||||
import { tap, takeUntil } from 'rxjs/operators';
|
||||
import { Env, StateService } from '../../../services/state.service';
|
||||
import { IBackendInfo } from '../../../interfaces/websocket.interface';
|
||||
import { LanguageService } from '../../../services/language.service';
|
||||
import { NavigationService } from '../../../services/navigation.service';
|
||||
import { StorageService } from '../../../services/storage.service';
|
||||
import { WebsocketService } from '../../../services/websocket.service';
|
||||
import { EnterpriseService } from '../../../services/enterprise.service';
|
||||
import { Env, StateService } from '@app/services/state.service';
|
||||
import { IBackendInfo } from '@app/interfaces/websocket.interface';
|
||||
import { LanguageService } from '@app/services/language.service';
|
||||
import { NavigationService } from '@app/services/navigation.service';
|
||||
import { StorageService } from '@app/services/storage.service';
|
||||
import { WebsocketService } from '@app/services/websocket.service';
|
||||
import { EnterpriseService } from '@app/services/enterprise.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-global-footer',
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Component, Input, OnInit } from '@angular/core';
|
||||
import { Subscription } from 'rxjs';
|
||||
import { StateService } from '../../../services/state.service';
|
||||
import { StateService } from '@app/services/state.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-sats',
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
||||
import { StorageService } from '../../../services/storage.service';
|
||||
import { StateService } from '../../../services/state.service';
|
||||
import { StorageService } from '@app/services/storage.service';
|
||||
import { StateService } from '@app/services/state.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-testnet-alert',
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Directive, OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core';
|
||||
import { Subscription } from 'rxjs';
|
||||
import { StateService } from '../../../services/state.service';
|
||||
import { StateService } from '@app/services/state.service';
|
||||
|
||||
function createRateUnitDirective(checkFn: (rateUnit: string) => boolean): any {
|
||||
@Directive()
|
||||
@@ -42,4 +42,4 @@ function createRateUnitDirective(checkFn: (rateUnit: string) => boolean): any {
|
||||
export class OnlyVsizeDirective extends createRateUnitDirective(rateUnit => rateUnit !== 'wu') {}
|
||||
|
||||
@Directive({ selector: '[only-weight]' })
|
||||
export class OnlyWeightDirective extends createRateUnitDirective(rateUnit => rateUnit === 'wu') {}
|
||||
export class OnlyWeightDirective extends createRateUnitDirective(rateUnit => rateUnit === 'wu') {}
|
||||
|
||||
Reference in New Issue
Block a user