mirror of
https://github.com/Ride-The-Lightning/RTL.git
synced 2025-01-19 05:33:33 +01:00
Lint and test fixes
This commit is contained in:
parent
fed5cd9d38
commit
61d563e952
@ -1,4 +1,10 @@
|
||||
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { StoreModule } from '@ngrx/store';
|
||||
|
||||
import { RootReducer } from '../../../../store/rtl.reducers';
|
||||
import { LNDReducer } from '../../../../lnd/store/lnd.reducers';
|
||||
import { CLNReducer } from '../../../../cln/store/cln.reducers';
|
||||
import { ECLReducer } from '../../../../eclair/store/ecl.reducers';
|
||||
import { LoggerService } from '../../../../shared/services/logger.service';
|
||||
import { SharedModule } from '../../../../shared/shared.module';
|
||||
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
||||
@ -14,7 +20,8 @@ describe('CLNNodeLookupComponent', () => {
|
||||
declarations: [CLNNodeLookupComponent],
|
||||
imports: [
|
||||
SharedModule,
|
||||
BrowserAnimationsModule
|
||||
BrowserAnimationsModule,
|
||||
StoreModule.forRoot({ root: RootReducer, lnd: LNDReducer, cln: CLNReducer, ecl: ECLReducer })
|
||||
],
|
||||
providers: [LoggerService]
|
||||
}).
|
||||
|
@ -56,7 +56,7 @@ export class CLNNodeLookupComponent implements OnInit, OnDestroy {
|
||||
this.store.dispatch(openAlert({
|
||||
payload: {
|
||||
data: {
|
||||
message: { peer: {id: this.lookupResult.nodeid + '@' + address.address + ':' + address.port}, information: this.information, balance: this.availableBalance },
|
||||
message: { peer: { id: this.lookupResult.nodeid + '@' + address.address + ':' + address.port }, information: this.information, balance: this.availableBalance },
|
||||
component: CLNConnectPeerComponent
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,11 @@
|
||||
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
||||
import { StoreModule } from '@ngrx/store';
|
||||
|
||||
import { RootReducer } from '../../../../store/rtl.reducers';
|
||||
import { LNDReducer } from '../../../../lnd/store/lnd.reducers';
|
||||
import { CLNReducer } from '../../../../cln/store/cln.reducers';
|
||||
import { ECLReducer } from '../../../../eclair/store/ecl.reducers';
|
||||
import { LoggerService } from '../../../../shared/services/logger.service';
|
||||
import { SharedModule } from '../../../../shared/shared.module';
|
||||
|
||||
@ -15,7 +20,8 @@ describe('ECLNodeLookupComponent', () => {
|
||||
declarations: [ECLNodeLookupComponent],
|
||||
imports: [
|
||||
BrowserAnimationsModule,
|
||||
SharedModule
|
||||
SharedModule,
|
||||
StoreModule.forRoot({ root: RootReducer, lnd: LNDReducer, cln: CLNReducer, ecl: ECLReducer })
|
||||
],
|
||||
providers: [LoggerService]
|
||||
}).
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { Component, OnInit, Input, ViewChild } from '@angular/core';
|
||||
import { Component, OnInit, Input, ViewChild, OnDestroy } from '@angular/core';
|
||||
import { Subject } from 'rxjs';
|
||||
import { takeUntil } from 'rxjs/operators';
|
||||
import { Store } from '@ngrx/store';
|
||||
@ -21,7 +21,7 @@ import { openAlert } from '../../../../store/rtl.actions';
|
||||
templateUrl: './node-lookup.component.html',
|
||||
styleUrls: ['./node-lookup.component.scss']
|
||||
})
|
||||
export class ECLNodeLookupComponent implements OnInit {
|
||||
export class ECLNodeLookupComponent implements OnInit, OnDestroy {
|
||||
|
||||
@ViewChild(MatSort, { static: false }) sort: MatSort | undefined;
|
||||
@Input() lookupResult: LookupNode = {};
|
||||
@ -47,7 +47,6 @@ export class ECLNodeLookupComponent implements OnInit {
|
||||
subscribe((oCBalanceSelector: { onchainBalance: OnChainBalance, apiCallStatus: ApiCallStatusPayload }) => {
|
||||
this.availableBalance = oCBalanceSelector.onchainBalance.total || 0;
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
onConnectNode(address: string) {
|
||||
@ -55,7 +54,7 @@ export class ECLNodeLookupComponent implements OnInit {
|
||||
payload: {
|
||||
data: {
|
||||
message: {
|
||||
peer: this.lookupResult.nodeId ? {nodeId: this.lookupResult.nodeId, address: address } : null,
|
||||
peer: this.lookupResult.nodeId ? { nodeId: this.lookupResult.nodeId, address: address } : null,
|
||||
information: this.information,
|
||||
balance: this.availableBalance
|
||||
},
|
||||
@ -63,7 +62,6 @@ export class ECLNodeLookupComponent implements OnInit {
|
||||
}
|
||||
}
|
||||
}));
|
||||
|
||||
}
|
||||
|
||||
onCopyNodeURI(payload: string) {
|
||||
|
@ -1,5 +1,10 @@
|
||||
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { StoreModule } from '@ngrx/store';
|
||||
|
||||
import { RootReducer } from '../../../../store/rtl.reducers';
|
||||
import { LNDReducer } from '../../../../lnd/store/lnd.reducers';
|
||||
import { CLNReducer } from '../../../../cln/store/cln.reducers';
|
||||
import { ECLReducer } from '../../../../eclair/store/ecl.reducers';
|
||||
import { LoggerService } from '../../../../shared/services/logger.service';
|
||||
import { SharedModule } from '../../../../shared/shared.module';
|
||||
|
||||
@ -12,7 +17,10 @@ describe('NodeLookupComponent', () => {
|
||||
beforeEach(waitForAsync(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [NodeLookupComponent],
|
||||
imports: [SharedModule],
|
||||
imports: [
|
||||
SharedModule,
|
||||
StoreModule.forRoot({ root: RootReducer, lnd: LNDReducer, cln: CLNReducer, ecl: ECLReducer })
|
||||
],
|
||||
providers: [LoggerService]
|
||||
}).
|
||||
compileComponents();
|
||||
|
@ -43,7 +43,6 @@ export class NodeLookupComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
onConnectNode(address: NodeAddress) {
|
||||
console.warn(address.addr);
|
||||
this.store.dispatch(openAlert({
|
||||
payload: {
|
||||
data: {
|
||||
|
@ -1576,7 +1576,7 @@ mat-cell:last-of-type, .mdc-data-table__header-cell:last-of-type, mat-footer-cel
|
||||
|
||||
.mat-mdc-tooltip-panel {
|
||||
& .mdc-tooltip__surface {
|
||||
min-width: 15rem;
|
||||
min-width: 10rem;
|
||||
max-width: unset;
|
||||
text-align: start;
|
||||
}
|
||||
|
@ -168,6 +168,10 @@
|
||||
color: $foreground-base;
|
||||
background: $primary-color;
|
||||
}
|
||||
a {
|
||||
color: $primary-darker !important;
|
||||
cursor: pointer;
|
||||
}
|
||||
button.mdc-button.mat-mdc-button-base.mat-mdc-outlined-button{
|
||||
border-color: $foreground-disabled;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user