mirror of
https://github.com/Ride-The-Lightning/RTL.git
synced 2024-11-19 01:40:29 +01:00
Service Directory Structure Update
Service Directory Structure Update
This commit is contained in:
parent
96d1ebaa5a
commit
b4f1b47cf1
@ -129,3 +129,4 @@ services:
|
|||||||
BITCOIND_CONFIG_PATH: ''
|
BITCOIND_CONFIG_PATH: ''
|
||||||
CHANNEL_BACKUP_PATH: /shared/lnd/backup
|
CHANNEL_BACKUP_PATH: /shared/lnd/backup
|
||||||
ENABLE_OFFERS: false
|
ENABLE_OFFERS: false
|
||||||
|
ENABLE_PEERSWAP: false
|
||||||
|
File diff suppressed because one or more lines are too long
@ -13,6 +13,6 @@
|
|||||||
<style>@font-face{font-family:Roboto;src:url(Roboto-Thin.f7a95c9c5999532c.woff2) format("woff2"),url(Roboto-Thin.c13c157cb81e8ebb.woff) format("woff");font-weight:100;font-style:normal}@font-face{font-family:Roboto;src:url(Roboto-ThinItalic.b0e084abf689f393.woff2) format("woff2"),url(Roboto-ThinItalic.1111028df6cea564.woff) format("woff");font-weight:100;font-style:italic}@font-face{font-family:Roboto;src:url(Roboto-Light.0e01b6cd13b3857f.woff2) format("woff2"),url(Roboto-Light.603ca9a537b88428.woff) format("woff");font-weight:300;font-style:normal}@font-face{font-family:Roboto;src:url(Roboto-LightItalic.232ef4b20215f720.woff2) format("woff2"),url(Roboto-LightItalic.1b5e142f787151c8.woff) format("woff");font-weight:300;font-style:italic}@font-face{font-family:Roboto;src:url(Roboto-Regular.475ba9e4e2d63456.woff2) format("woff2"),url(Roboto-Regular.bcefbfee882bc1cb.woff) format("woff");font-weight:400;font-style:normal}@font-face{font-family:Roboto;src:url(Roboto-RegularItalic.e3a9ebdaac06bbc4.woff2) format("woff2"),url(Roboto-RegularItalic.0668fae6af0cf8c2.woff) format("woff");font-weight:400;font-style:italic}@font-face{font-family:Roboto;src:url(Roboto-Medium.457532032ceb0168.woff2) format("woff2"),url(Roboto-Medium.6e1ae5f0b324a0aa.woff) format("woff");font-weight:500;font-style:normal}@font-face{font-family:Roboto;src:url(Roboto-MediumItalic.872f7060602d55d2.woff2) format("woff2"),url(Roboto-MediumItalic.e06fb533801cbb08.woff) format("woff");font-weight:500;font-style:italic}@font-face{font-family:Roboto;src:url(Roboto-Bold.447291a88c067396.woff2) format("woff2"),url(Roboto-Bold.fc482e6133cf5e26.woff) format("woff");font-weight:700;font-style:normal}@font-face{font-family:Roboto;src:url(Roboto-BoldItalic.1b15168ef6fa4e16.woff2) format("woff2"),url(Roboto-BoldItalic.e26ba339b06f09f7.woff) format("woff");font-weight:700;font-style:italic}@font-face{font-family:Roboto;src:url(Roboto-Black.2eaa390d458c877d.woff2) format("woff2"),url(Roboto-Black.b25f67ad8583da68.woff) format("woff");font-weight:900;font-style:normal}@font-face{font-family:Roboto;src:url(Roboto-BlackItalic.7dc03ee444552bc5.woff2) format("woff2"),url(Roboto-BlackItalic.c8dc642467cb3099.woff) format("woff");font-weight:900;font-style:italic}html{width:100%;height:99%;line-height:1.5;overflow-x:hidden;font-family:Roboto,sans-serif!important;font-size:62.5%}body{box-sizing:border-box;height:100%;margin:0;overflow:hidden}*{margin:0;padding:0}</style><link rel="stylesheet" href="styles.43515fc39338348b.css" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="styles.43515fc39338348b.css"></noscript></head>
|
<style>@font-face{font-family:Roboto;src:url(Roboto-Thin.f7a95c9c5999532c.woff2) format("woff2"),url(Roboto-Thin.c13c157cb81e8ebb.woff) format("woff");font-weight:100;font-style:normal}@font-face{font-family:Roboto;src:url(Roboto-ThinItalic.b0e084abf689f393.woff2) format("woff2"),url(Roboto-ThinItalic.1111028df6cea564.woff) format("woff");font-weight:100;font-style:italic}@font-face{font-family:Roboto;src:url(Roboto-Light.0e01b6cd13b3857f.woff2) format("woff2"),url(Roboto-Light.603ca9a537b88428.woff) format("woff");font-weight:300;font-style:normal}@font-face{font-family:Roboto;src:url(Roboto-LightItalic.232ef4b20215f720.woff2) format("woff2"),url(Roboto-LightItalic.1b5e142f787151c8.woff) format("woff");font-weight:300;font-style:italic}@font-face{font-family:Roboto;src:url(Roboto-Regular.475ba9e4e2d63456.woff2) format("woff2"),url(Roboto-Regular.bcefbfee882bc1cb.woff) format("woff");font-weight:400;font-style:normal}@font-face{font-family:Roboto;src:url(Roboto-RegularItalic.e3a9ebdaac06bbc4.woff2) format("woff2"),url(Roboto-RegularItalic.0668fae6af0cf8c2.woff) format("woff");font-weight:400;font-style:italic}@font-face{font-family:Roboto;src:url(Roboto-Medium.457532032ceb0168.woff2) format("woff2"),url(Roboto-Medium.6e1ae5f0b324a0aa.woff) format("woff");font-weight:500;font-style:normal}@font-face{font-family:Roboto;src:url(Roboto-MediumItalic.872f7060602d55d2.woff2) format("woff2"),url(Roboto-MediumItalic.e06fb533801cbb08.woff) format("woff");font-weight:500;font-style:italic}@font-face{font-family:Roboto;src:url(Roboto-Bold.447291a88c067396.woff2) format("woff2"),url(Roboto-Bold.fc482e6133cf5e26.woff) format("woff");font-weight:700;font-style:normal}@font-face{font-family:Roboto;src:url(Roboto-BoldItalic.1b15168ef6fa4e16.woff2) format("woff2"),url(Roboto-BoldItalic.e26ba339b06f09f7.woff) format("woff");font-weight:700;font-style:italic}@font-face{font-family:Roboto;src:url(Roboto-Black.2eaa390d458c877d.woff2) format("woff2"),url(Roboto-Black.b25f67ad8583da68.woff) format("woff");font-weight:900;font-style:normal}@font-face{font-family:Roboto;src:url(Roboto-BlackItalic.7dc03ee444552bc5.woff2) format("woff2"),url(Roboto-BlackItalic.c8dc642467cb3099.woff) format("woff");font-weight:900;font-style:italic}html{width:100%;height:99%;line-height:1.5;overflow-x:hidden;font-family:Roboto,sans-serif!important;font-size:62.5%}body{box-sizing:border-box;height:100%;margin:0;overflow:hidden}*{margin:0;padding:0}</style><link rel="stylesheet" href="styles.43515fc39338348b.css" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="styles.43515fc39338348b.css"></noscript></head>
|
||||||
<body>
|
<body>
|
||||||
<rtl-app></rtl-app>
|
<rtl-app></rtl-app>
|
||||||
<script src="runtime.b2f592475a75f0a0.js" type="module"></script><script src="polyfills.eddc63f1737a019a.js" type="module"></script><script src="main.03ecb72643e40983.js" type="module"></script>
|
<script src="runtime.340d96b403855bde.js" type="module"></script><script src="polyfills.eddc63f1737a019a.js" type="module"></script><script src="main.39b99f2612129aae.js" type="module"></script>
|
||||||
|
|
||||||
</body></html>
|
</body></html>
|
File diff suppressed because one or more lines are too long
1
frontend/main.39b99f2612129aae.js
Normal file
1
frontend/main.39b99f2612129aae.js
Normal file
File diff suppressed because one or more lines are too long
1
frontend/runtime.340d96b403855bde.js
Normal file
1
frontend/runtime.340d96b403855bde.js
Normal file
@ -0,0 +1 @@
|
|||||||
|
(()=>{"use strict";var e,v={},g={};function r(e){var n=g[e];if(void 0!==n)return n.exports;var t=g[e]={id:e,loaded:!1,exports:{}};return v[e].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}r.m=v,e=[],r.O=(n,t,f,d)=>{if(!t){var a=1/0;for(i=0;i<e.length;i++){for(var[t,f,d]=e[i],c=!0,o=0;o<t.length;o++)(!1&d||a>=d)&&Object.keys(r.O).every(b=>r.O[b](t[o]))?t.splice(o--,1):(c=!1,d<a&&(a=d));if(c){e.splice(i--,1);var l=f();void 0!==l&&(n=l)}}return n}d=d||0;for(var i=e.length;i>0&&e[i-1][2]>d;i--)e[i]=e[i-1];e[i]=[t,f,d]},r.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return r.d(n,{a:n}),n},r.d=(e,n)=>{for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((n,t)=>(r.f[t](e,n),n),[])),r.u=e=>e+"."+{564:"9c466ff107a4d969",636:"95c8ae357b1ed820",893:"9a615c46b89a5a79",924:"1c1eb885f1f101d2"}[e]+".js",r.miniCssF=e=>{},r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="RTLApp:";r.l=(t,f,d,i)=>{if(e[t])e[t].push(f);else{var a,c;if(void 0!==d)for(var o=document.getElementsByTagName("script"),l=0;l<o.length;l++){var u=o[l];if(u.getAttribute("src")==t||u.getAttribute("data-webpack")==n+d){a=u;break}}a||(c=!0,(a=document.createElement("script")).type="module",a.charset="utf-8",a.timeout=120,r.nc&&a.setAttribute("nonce",r.nc),a.setAttribute("data-webpack",n+d),a.src=r.tu(t)),e[t]=[f];var s=(m,b)=>{a.onerror=a.onload=null,clearTimeout(p);var h=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),h&&h.forEach(_=>_(b)),m)return m(b)},p=setTimeout(s.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=s.bind(null,a.onerror),a.onload=s.bind(null,a.onload),c&&document.head.appendChild(a)}}})(),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:n=>n},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={666:0};r.f.j=(f,d)=>{var i=r.o(e,f)?e[f]:void 0;if(0!==i)if(i)d.push(i[2]);else if(666!=f){var a=new Promise((u,s)=>i=e[f]=[u,s]);d.push(i[2]=a);var c=r.p+r.u(f),o=new Error;r.l(c,u=>{if(r.o(e,f)&&(0!==(i=e[f])&&(e[f]=void 0),i)){var s=u&&("load"===u.type?"missing":u.type),p=u&&u.target&&u.target.src;o.message="Loading chunk "+f+" failed.\n("+s+": "+p+")",o.name="ChunkLoadError",o.type=s,o.request=p,i[1](o)}},"chunk-"+f,f)}else e[f]=0},r.O.j=f=>0===e[f];var n=(f,d)=>{var o,l,[i,a,c]=d,u=0;if(i.some(p=>0!==e[p])){for(o in a)r.o(a,o)&&(r.m[o]=a[o]);if(c)var s=c(r)}for(f&&f(d);u<i.length;u++)r.o(e,l=i[u])&&e[l]&&e[l][0](),e[l]=0;return r.O(s)},t=self.webpackChunkRTLApp=self.webpackChunkRTLApp||[];t.forEach(n.bind(null,0)),t.push=n.bind(null,t.push.bind(t))})()})();
|
@ -1 +0,0 @@
|
|||||||
(()=>{"use strict";var e,v={},g={};function r(e){var n=g[e];if(void 0!==n)return n.exports;var t=g[e]={id:e,loaded:!1,exports:{}};return v[e].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}r.m=v,e=[],r.O=(n,t,f,o)=>{if(!t){var a=1/0;for(i=0;i<e.length;i++){for(var[t,f,o]=e[i],s=!0,u=0;u<t.length;u++)(!1&o||a>=o)&&Object.keys(r.O).every(b=>r.O[b](t[u]))?t.splice(u--,1):(s=!1,o<a&&(a=o));if(s){e.splice(i--,1);var d=f();void 0!==d&&(n=d)}}return n}o=o||0;for(var i=e.length;i>0&&e[i-1][2]>o;i--)e[i]=e[i-1];e[i]=[t,f,o]},r.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return r.d(n,{a:n}),n},r.d=(e,n)=>{for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((n,t)=>(r.f[t](e,n),n),[])),r.u=e=>e+"."+{564:"9c466ff107a4d969",636:"f006527ee1d33a67",893:"9a615c46b89a5a79",924:"1c1eb885f1f101d2"}[e]+".js",r.miniCssF=e=>{},r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="RTLApp:";r.l=(t,f,o,i)=>{if(e[t])e[t].push(f);else{var a,s;if(void 0!==o)for(var u=document.getElementsByTagName("script"),d=0;d<u.length;d++){var l=u[d];if(l.getAttribute("src")==t||l.getAttribute("data-webpack")==n+o){a=l;break}}a||(s=!0,(a=document.createElement("script")).type="module",a.charset="utf-8",a.timeout=120,r.nc&&a.setAttribute("nonce",r.nc),a.setAttribute("data-webpack",n+o),a.src=r.tu(t)),e[t]=[f];var c=(m,b)=>{a.onerror=a.onload=null,clearTimeout(p);var h=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),h&&h.forEach(_=>_(b)),m)return m(b)},p=setTimeout(c.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=c.bind(null,a.onerror),a.onload=c.bind(null,a.onload),s&&document.head.appendChild(a)}}})(),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:n=>n},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={666:0};r.f.j=(f,o)=>{var i=r.o(e,f)?e[f]:void 0;if(0!==i)if(i)o.push(i[2]);else if(666!=f){var a=new Promise((l,c)=>i=e[f]=[l,c]);o.push(i[2]=a);var s=r.p+r.u(f),u=new Error;r.l(s,l=>{if(r.o(e,f)&&(0!==(i=e[f])&&(e[f]=void 0),i)){var c=l&&("load"===l.type?"missing":l.type),p=l&&l.target&&l.target.src;u.message="Loading chunk "+f+" failed.\n("+c+": "+p+")",u.name="ChunkLoadError",u.type=c,u.request=p,i[1](u)}},"chunk-"+f,f)}else e[f]=0},r.O.j=f=>0===e[f];var n=(f,o)=>{var u,d,[i,a,s]=o,l=0;if(i.some(p=>0!==e[p])){for(u in a)r.o(a,u)&&(r.m[u]=a[u]);if(s)var c=s(r)}for(f&&f(o);l<i.length;l++)r.o(e,d=i[l])&&e[d]&&e[d][0](),e[d]=0;return r.O(c)},t=self.webpackChunkRTLApp=self.webpackChunkRTLApp||[];t.forEach(n.bind(null,0)),t.push=n.bind(null,t.push.bind(t))})()})();
|
|
@ -6,7 +6,7 @@ import { Store } from '@ngrx/store';
|
|||||||
|
|
||||||
import { ScreenSizeEnum, LoopTypeEnum } from '../../../shared/services/consts-enums-functions';
|
import { ScreenSizeEnum, LoopTypeEnum } from '../../../shared/services/consts-enums-functions';
|
||||||
import { Channel } from '../../../shared/models/lndModels';
|
import { Channel } from '../../../shared/models/lndModels';
|
||||||
import { LoopModalComponent } from '../../../shared/components/services/loop/loop-modal/loop-modal.component';
|
import { LoopModalComponent } from '../../../shared/components/ln-services/loop/loop-modal/loop-modal.component';
|
||||||
import { LoopService } from '../../../shared/services/loop.service';
|
import { LoopService } from '../../../shared/services/loop.service';
|
||||||
import { CommonService } from '../../../shared/services/common.service';
|
import { CommonService } from '../../../shared/services/common.service';
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ import { LoopService } from '../../../../../shared/services/loop.service';
|
|||||||
import { CommonService } from '../../../../../shared/services/common.service';
|
import { CommonService } from '../../../../../shared/services/common.service';
|
||||||
import { ChannelRebalanceComponent } from '../../channel-rebalance-modal/channel-rebalance.component';
|
import { ChannelRebalanceComponent } from '../../channel-rebalance-modal/channel-rebalance.component';
|
||||||
import { CloseChannelComponent } from '../../close-channel-modal/close-channel.component';
|
import { CloseChannelComponent } from '../../close-channel-modal/close-channel.component';
|
||||||
import { LoopModalComponent } from '../../../../../shared/components/services/loop/loop-modal/loop-modal.component';
|
import { LoopModalComponent } from '../../../../../shared/components/ln-services/loop/loop-modal/loop-modal.component';
|
||||||
|
|
||||||
import { LNDEffects } from '../../../../store/lnd.effects';
|
import { LNDEffects } from '../../../../store/lnd.effects';
|
||||||
import { RTLEffects } from '../../../../../store/rtl.effects';
|
import { RTLEffects } from '../../../../../store/rtl.effects';
|
||||||
|
@ -19,7 +19,7 @@ export class HelpComponent implements OnInit, OnDestroy {
|
|||||||
|
|
||||||
public helpTopics: Array<HelpTopic> = [];
|
public helpTopics: Array<HelpTopic> = [];
|
||||||
public faQuestion = faQuestion;
|
public faQuestion = faQuestion;
|
||||||
public selNode: ConfigSettingsNode;
|
public selNode: ConfigSettingsNode | any;
|
||||||
public LNPLink = '/lnd/';
|
public LNPLink = '/lnd/';
|
||||||
public flgLoggedIn = false;
|
public flgLoggedIn = false;
|
||||||
private unSubs = [new Subject(), new Subject(), new Subject(), new Subject()];
|
private unSubs = [new Subject(), new Subject(), new Subject(), new Subject()];
|
||||||
|
0
src/app/shared/components/services/services.component.html → src/app/shared/components/ln-services/ln-services.component.html
Normal file → Executable file
0
src/app/shared/components/services/services.component.html → src/app/shared/components/ln-services/ln-services.component.html
Normal file → Executable file
12
src/app/shared/components/services/services.component.spec.ts → src/app/shared/components/ln-services/ln-services.component.spec.ts
Normal file → Executable file
12
src/app/shared/components/services/services.component.spec.ts → src/app/shared/components/ln-services/ln-services.component.spec.ts
Normal file → Executable file
@ -7,15 +7,15 @@ import { LNDReducer } from '../../../lnd/store/lnd.reducers';
|
|||||||
import { CLNReducer } from '../../../cln/store/cln.reducers';
|
import { CLNReducer } from '../../../cln/store/cln.reducers';
|
||||||
import { ECLReducer } from '../../../eclair/store/ecl.reducers';
|
import { ECLReducer } from '../../../eclair/store/ecl.reducers';
|
||||||
import { SharedModule } from '../../shared.module';
|
import { SharedModule } from '../../shared.module';
|
||||||
import { ServicesComponent } from './services.component';
|
import { LNServicesComponent } from './ln-services.component';
|
||||||
|
|
||||||
describe('ServicesComponent', () => {
|
describe('LNServicesComponent', () => {
|
||||||
let component: ServicesComponent;
|
let component: LNServicesComponent;
|
||||||
let fixture: ComponentFixture<ServicesComponent>;
|
let fixture: ComponentFixture<LNServicesComponent>;
|
||||||
|
|
||||||
beforeEach(waitForAsync(() => {
|
beforeEach(waitForAsync(() => {
|
||||||
TestBed.configureTestingModule({
|
TestBed.configureTestingModule({
|
||||||
declarations: [ServicesComponent],
|
declarations: [LNServicesComponent],
|
||||||
imports: [
|
imports: [
|
||||||
SharedModule,
|
SharedModule,
|
||||||
RouterTestingModule,
|
RouterTestingModule,
|
||||||
@ -26,7 +26,7 @@ describe('ServicesComponent', () => {
|
|||||||
}));
|
}));
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
fixture = TestBed.createComponent(ServicesComponent);
|
fixture = TestBed.createComponent(LNServicesComponent);
|
||||||
component = fixture.componentInstance;
|
component = fixture.componentInstance;
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
});
|
});
|
16
src/app/shared/components/ln-services/ln-services.component.ts
Executable file
16
src/app/shared/components/ln-services/ln-services.component.ts
Executable file
@ -0,0 +1,16 @@
|
|||||||
|
import { Component, OnInit, OnDestroy } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'rtl-ln-services',
|
||||||
|
templateUrl: './ln-services.component.html',
|
||||||
|
styleUrls: ['./ln-services.component.scss']
|
||||||
|
})
|
||||||
|
export class LNServicesComponent implements OnInit, OnDestroy {
|
||||||
|
|
||||||
|
constructor() {}
|
||||||
|
|
||||||
|
ngOnInit() {}
|
||||||
|
|
||||||
|
ngOnDestroy() {}
|
||||||
|
|
||||||
|
}
|
0
src/app/shared/components/services/loop/loop.component.html → src/app/shared/components/ln-services/loop/loop.component.html
Normal file → Executable file
0
src/app/shared/components/services/loop/loop.component.html → src/app/shared/components/ln-services/loop/loop.component.html
Normal file → Executable file
0
src/app/shared/components/services/services.component.scss → src/app/shared/components/ln-services/loop/loop.component.scss
Normal file → Executable file
0
src/app/shared/components/services/services.component.scss → src/app/shared/components/ln-services/loop/loop.component.scss
Normal file → Executable file
0
src/app/shared/components/services/loop/loop.component.ts → src/app/shared/components/ln-services/loop/loop.component.ts
Normal file → Executable file
0
src/app/shared/components/services/loop/loop.component.ts → src/app/shared/components/ln-services/loop/loop.component.ts
Normal file → Executable file
@ -26,7 +26,7 @@ export class NodeSettingsComponent implements OnInit, OnDestroy {
|
|||||||
public faMoneyBillAlt = faMoneyBillAlt;
|
public faMoneyBillAlt = faMoneyBillAlt;
|
||||||
public faPaintBrush = faPaintBrush;
|
public faPaintBrush = faPaintBrush;
|
||||||
public faInfoCircle = faInfoCircle;
|
public faInfoCircle = faInfoCircle;
|
||||||
public selNode: ConfigSettingsNode;
|
public selNode: ConfigSettingsNode | any;
|
||||||
public userPersonas = [UserPersonaEnum.OPERATOR, UserPersonaEnum.MERCHANT];
|
public userPersonas = [UserPersonaEnum.OPERATOR, UserPersonaEnum.MERCHANT];
|
||||||
public currencyUnits = FIAT_CURRENCY_UNITS;
|
public currencyUnits = FIAT_CURRENCY_UNITS;
|
||||||
public themeModes = NODE_SETTINGS.modes;
|
public themeModes = NODE_SETTINGS.modes;
|
||||||
|
@ -23,8 +23,8 @@ export class BoltzServiceSettingsComponent implements OnInit, OnDestroy {
|
|||||||
|
|
||||||
@ViewChild('form', { static: true }) form: any;
|
@ViewChild('form', { static: true }) form: any;
|
||||||
public faInfoCircle = faInfoCircle;
|
public faInfoCircle = faInfoCircle;
|
||||||
public selNode: ConfigSettingsNode;
|
public selNode: ConfigSettingsNode | any;
|
||||||
public previousSelNode: ConfigSettingsNode;
|
public previousSelNode: ConfigSettingsNode | any;
|
||||||
public enableBoltz = false;
|
public enableBoltz = false;
|
||||||
public serverUrl = '';
|
public serverUrl = '';
|
||||||
public macaroonPath = '';
|
public macaroonPath = '';
|
||||||
|
@ -23,8 +23,8 @@ export class LoopServiceSettingsComponent implements OnInit, OnDestroy {
|
|||||||
|
|
||||||
@ViewChild('form', { static: true }) form: any;
|
@ViewChild('form', { static: true }) form: any;
|
||||||
public faInfoCircle = faInfoCircle;
|
public faInfoCircle = faInfoCircle;
|
||||||
public selNode: ConfigSettingsNode;
|
public selNode: ConfigSettingsNode | any;
|
||||||
public previousSelNode: ConfigSettingsNode;
|
public previousSelNode: ConfigSettingsNode | any;
|
||||||
public enableLoop = false;
|
public enableLoop = false;
|
||||||
unSubs: Array<Subject<void>> = [new Subject(), new Subject()];
|
unSubs: Array<Subject<void>> = [new Subject(), new Subject()];
|
||||||
|
|
||||||
|
@ -1,75 +0,0 @@
|
|||||||
import { Component, OnInit, OnDestroy } from '@angular/core';
|
|
||||||
import { Router, ResolveEnd, Event } from '@angular/router';
|
|
||||||
import { Subject } from 'rxjs';
|
|
||||||
import { takeUntil, filter } from 'rxjs/operators';
|
|
||||||
import { Store } from '@ngrx/store';
|
|
||||||
import { faLayerGroup } from '@fortawesome/free-solid-svg-icons';
|
|
||||||
|
|
||||||
import { ConfigSettingsNode } from '../../models/RTLconfig';
|
|
||||||
import { RTLState } from '../../../store/rtl.state';
|
|
||||||
import { rootSelectedNode } from '../../../store/rtl.selector';
|
|
||||||
|
|
||||||
@Component({
|
|
||||||
selector: 'rtl-services',
|
|
||||||
templateUrl: './services.component.html',
|
|
||||||
styleUrls: ['./services.component.scss']
|
|
||||||
})
|
|
||||||
export class ServicesComponent implements OnInit, OnDestroy {
|
|
||||||
|
|
||||||
public faLayerGroup = faLayerGroup;
|
|
||||||
public showLnConfig = false;
|
|
||||||
public showBitcoind = false;
|
|
||||||
public selNode: ConfigSettingsNode;
|
|
||||||
public lnImplementationStr = '';
|
|
||||||
public links = [{ link: 'layout', name: 'Layout' }, { link: 'auth', name: 'Authentication' }, { link: 'lnconfig', name: this.lnImplementationStr }, { link: 'bconfig', name: 'BitcoinD Config' }];
|
|
||||||
public activeLink = '';
|
|
||||||
private unSubs: Array<Subject<void>> = [new Subject(), new Subject(), new Subject()];
|
|
||||||
|
|
||||||
constructor(private store: Store<RTLState>, private router: Router) { }
|
|
||||||
|
|
||||||
ngOnInit() {
|
|
||||||
const linkFound = this.links.find((link) => this.router.url.includes(link.link));
|
|
||||||
this.activeLink = linkFound ? linkFound.link : this.links[0].link;
|
|
||||||
this.router.events.pipe(takeUntil(this.unSubs[0]), filter((e) => e instanceof ResolveEnd)).
|
|
||||||
subscribe({
|
|
||||||
next: (value: ResolveEnd | Event) => {
|
|
||||||
const linkFound = this.links.find((link) => (<ResolveEnd>value).urlAfterRedirects.includes(link.link));
|
|
||||||
this.activeLink = linkFound ? linkFound.link : this.links[0].link;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
this.store.select(rootSelectedNode).pipe(takeUntil(this.unSubs[1])).
|
|
||||||
subscribe((selNode) => {
|
|
||||||
this.showLnConfig = false;
|
|
||||||
this.showBitcoind = false;
|
|
||||||
this.selNode = selNode;
|
|
||||||
switch (this.selNode.lnImplementation?.toUpperCase()) {
|
|
||||||
case 'CLN':
|
|
||||||
this.lnImplementationStr = 'Core Lightning Config';
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 'ECL':
|
|
||||||
this.lnImplementationStr = 'Eclair Config';
|
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
|
||||||
this.lnImplementationStr = 'LND Config';
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
if (this.selNode.authentication && this.selNode.authentication.configPath && this.selNode.authentication.configPath.trim() !== '') {
|
|
||||||
this.links[2].name = this.lnImplementationStr;
|
|
||||||
this.showLnConfig = true;
|
|
||||||
}
|
|
||||||
if (this.selNode.settings && this.selNode.settings.bitcoindConfigPath && this.selNode.settings.bitcoindConfigPath.trim() !== '') {
|
|
||||||
this.showBitcoind = true;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
ngOnDestroy() {
|
|
||||||
this.unSubs.forEach((completeSub) => {
|
|
||||||
completeSub.next(<any>null);
|
|
||||||
completeSub.complete();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
@ -36,7 +36,7 @@ export class AuthSettingsComponent implements OnInit, OnDestroy {
|
|||||||
public errorConfirmMsg = '';
|
public errorConfirmMsg = '';
|
||||||
public initializeNodeData = false;
|
public initializeNodeData = false;
|
||||||
public appConfig: RTLConfiguration;
|
public appConfig: RTLConfiguration;
|
||||||
public selNode: ConfigSettingsNode;
|
public selNode: ConfigSettingsNode | any;
|
||||||
unSubs: Array<Subject<void>> = [new Subject(), new Subject(), new Subject()];
|
unSubs: Array<Subject<void>> = [new Subject(), new Subject(), new Subject()];
|
||||||
|
|
||||||
constructor(private logger: LoggerService, private store: Store<RTLState>, private actions: Actions, private router: Router, private sessionService: SessionService) { }
|
constructor(private logger: LoggerService, private store: Store<RTLState>, private actions: Actions, private router: Router, private sessionService: SessionService) { }
|
||||||
|
@ -18,7 +18,7 @@ export class SettingsComponent implements OnInit, OnDestroy {
|
|||||||
|
|
||||||
public faUserCog = faUserCog;
|
public faUserCog = faUserCog;
|
||||||
public showBitcoind = false;
|
public showBitcoind = false;
|
||||||
public selNode: ConfigSettingsNode;
|
public selNode: ConfigSettingsNode | any;
|
||||||
public appConfig: RTLConfiguration;
|
public appConfig: RTLConfiguration;
|
||||||
public links = [{ link: 'app', name: 'Application' }, { link: 'auth', name: 'Authentication' }, { link: 'bconfig', name: 'BitcoinD Config' }];
|
public links = [{ link: 'app', name: 'Application' }, { link: 'auth', name: 'Authentication' }, { link: 'bconfig', name: 'BitcoinD Config' }];
|
||||||
public activeLink = '';
|
public activeLink = '';
|
||||||
|
Loading…
Reference in New Issue
Block a user