mirror of
https://github.com/Ride-The-Lightning/RTL.git
synced 2024-11-19 18:00:44 +01:00
e00834521a
API resolution fix
3071 lines
205 KiB
JavaScript
3071 lines
205 KiB
JavaScript
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["main"],{
|
|
|
|
/***/ "./src/$$_lazy_route_resource lazy recursive":
|
|
/*!**********************************************************!*\
|
|
!*** ./src/$$_lazy_route_resource lazy namespace object ***!
|
|
\**********************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports) {
|
|
|
|
function webpackEmptyAsyncContext(req) {
|
|
// Here Promise.resolve().then() is used instead of new Promise() to prevent
|
|
// uncaught exception popping up in devtools
|
|
return Promise.resolve().then(function() {
|
|
var e = new Error('Cannot find module "' + req + '".');
|
|
e.code = 'MODULE_NOT_FOUND';
|
|
throw e;
|
|
});
|
|
}
|
|
webpackEmptyAsyncContext.keys = function() { return []; };
|
|
webpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;
|
|
module.exports = webpackEmptyAsyncContext;
|
|
webpackEmptyAsyncContext.id = "./src/$$_lazy_route_resource lazy recursive";
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/app.component.html":
|
|
/*!************************************!*\
|
|
!*** ./src/app/app.component.html ***!
|
|
\************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = "<div id=\"app\" class=\"app\" [dir]=\"(settings.rtl) ? 'rtl' : 'ltr'\" [ngClass]=\"settings.theme\" [class.fixed-header]=\"settings.fixedHeader\"\r\n [class.horizontal-menu]=\"settings.menu == 'horizontal'\" [class.compact]=\"settings.menuType == 'compact'\" [class.mini]=\"settings.menuType == 'mini'\">\r\n <router-outlet></router-outlet>\r\n <div id=\"rtl-spinner\" [class.hide]=\"!settings.loadingSpinner\">\r\n <mat-spinner color=\"primary\"></mat-spinner>\r\n <h4>loading...</h4>\r\n </div>\r\n</div>"
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/app.component.scss":
|
|
/*!************************************!*\
|
|
!*** ./src/app/app.component.scss ***!
|
|
\************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = ".app {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0; }\n\n#rtl-spinner {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n height: 100%;\n width: 100%;\n position: fixed;\n top: 0;\n background: #fff;\n z-index: 999999;\n visibility: visible;\n opacity: 1;\n transition: visibility 0.5s, opacity 0.3s linear; }\n\n#rtl-spinner.hide {\n visibility: hidden;\n opacity: 0; }\n\n#rtl-spinner h4 {\n margin-top: 10px;\n letter-spacing: 0.02em;\n opacity: 0;\n text-transform: uppercase;\n -webkit-animation: loading-text-opacity 2s linear 0s infinite normal;\n animation: loading-text-opacity 2s linear 0s infinite normal; }\n\n@keyframes loading-text-opacity {\n 0% {\n opacity: 0; }\n 20% {\n opacity: 0; }\n 50% {\n opacity: 1; }\n 100% {\n opacity: 0; } }\n\n@-webkit-keyframes loading-text-opacity {\n 0% {\n opacity: 0; }\n 20% {\n opacity: 0; }\n 50% {\n opacity: 1; }\n 100% {\n opacity: 0; } }\n"
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/app.component.ts":
|
|
/*!**********************************!*\
|
|
!*** ./src/app/app.component.ts ***!
|
|
\**********************************/
|
|
/*! exports provided: AppComponent */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AppComponent", function() { return AppComponent; });
|
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
|
|
/* harmony import */ var _shared_services_rtl_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./shared/services/rtl.service */ "./src/app/shared/services/rtl.service.ts");
|
|
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js");
|
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
};
|
|
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
|
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
};
|
|
|
|
|
|
|
|
var AppComponent = /** @class */ (function () {
|
|
function AppComponent(rtlService) {
|
|
this.rtlService = rtlService;
|
|
this.unsubscribe = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
|
|
this.rtlService.fetchUISettings();
|
|
this.settings = this.rtlService.getUISettings();
|
|
}
|
|
AppComponent.prototype.ngOnInit = function () {
|
|
var _this = this;
|
|
this.rtlService.UIsettingsUpdated
|
|
.takeUntil(this.unsubscribe)
|
|
.subscribe(function (settings) {
|
|
_this.settings = settings;
|
|
});
|
|
};
|
|
AppComponent.prototype.ngOnDestroy = function () {
|
|
this.unsubscribe.next();
|
|
this.unsubscribe.complete();
|
|
};
|
|
AppComponent = __decorate([
|
|
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
|
|
selector: 'rtl-root',
|
|
template: __webpack_require__(/*! ./app.component.html */ "./src/app/app.component.html"),
|
|
styles: [__webpack_require__(/*! ./app.component.scss */ "./src/app/app.component.scss")]
|
|
}),
|
|
__metadata("design:paramtypes", [_shared_services_rtl_service__WEBPACK_IMPORTED_MODULE_1__["RTLService"]])
|
|
], AppComponent);
|
|
return AppComponent;
|
|
}());
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/app.module.ts":
|
|
/*!*******************************!*\
|
|
!*** ./src/app/app.module.ts ***!
|
|
\*******************************/
|
|
/*! exports provided: AppModule */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AppModule", function() { return AppModule; });
|
|
/* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/platform-browser */ "./node_modules/@angular/platform-browser/fesm5/platform-browser.js");
|
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
|
|
/* harmony import */ var _angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/platform-browser/animations */ "./node_modules/@angular/platform-browser/fesm5/animations.js");
|
|
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/fesm5/forms.js");
|
|
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
|
|
/* harmony import */ var _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/cdk/overlay */ "./node_modules/@angular/cdk/esm5/overlay.es5.js");
|
|
/* harmony import */ var _theme_utils_custom_overlay_container__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./theme/utils/custom-overlay-container */ "./src/app/theme/utils/custom-overlay-container.ts");
|
|
/* harmony import */ var _agm_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @agm/core */ "./node_modules/@agm/core/index.js");
|
|
/* harmony import */ var ngx_perfect_scrollbar__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ngx-perfect-scrollbar */ "./node_modules/ngx-perfect-scrollbar/dist/ngx-perfect-scrollbar.es5.js");
|
|
/* harmony import */ var _shared_shared_module__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./shared/shared.module */ "./src/app/shared/shared.module.ts");
|
|
/* harmony import */ var _theme_pipes_pipes_module__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./theme/pipes/pipes.module */ "./src/app/theme/pipes/pipes.module.ts");
|
|
/* harmony import */ var _app_routing__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./app.routing */ "./src/app/app.routing.ts");
|
|
/* harmony import */ var _app_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./app.component */ "./src/app/app.component.ts");
|
|
/* harmony import */ var _pages_pages_component__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./pages/pages.component */ "./src/app/pages/pages.component.ts");
|
|
/* harmony import */ var _pages_errors_not_found_not_found_component__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./pages/errors/not-found/not-found.component */ "./src/app/pages/errors/not-found/not-found.component.ts");
|
|
/* harmony import */ var _pages_errors_error_error_component__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./pages/errors/error/error.component */ "./src/app/pages/errors/error/error.component.ts");
|
|
/* harmony import */ var _theme_components_sidenav_sidenav_component__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./theme/components/sidenav/sidenav.component */ "./src/app/theme/components/sidenav/sidenav.component.ts");
|
|
/* harmony import */ var _theme_components_menu_vertical_menu_vertical_menu_component__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./theme/components/menu/vertical-menu/vertical-menu.component */ "./src/app/theme/components/menu/vertical-menu/vertical-menu.component.ts");
|
|
/* harmony import */ var _theme_components_menu_horizontal_menu_horizontal_menu_component__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./theme/components/menu/horizontal-menu/horizontal-menu.component */ "./src/app/theme/components/menu/horizontal-menu/horizontal-menu.component.ts");
|
|
/* harmony import */ var _theme_components_breadcrumb_breadcrumb_component__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./theme/components/breadcrumb/breadcrumb.component */ "./src/app/theme/components/breadcrumb/breadcrumb.component.ts");
|
|
/* harmony import */ var _theme_components_fullscreen_fullscreen_component__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./theme/components/fullscreen/fullscreen.component */ "./src/app/theme/components/fullscreen/fullscreen.component.ts");
|
|
/* harmony import */ var _theme_components_user_menu_user_menu_component__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./theme/components/user-menu/user-menu.component */ "./src/app/theme/components/user-menu/user-menu.component.ts");
|
|
/* harmony import */ var _pages_home_home_component__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./pages/home/home.component */ "./src/app/pages/home/home.component.ts");
|
|
/* harmony import */ var _pages_channels_channels_component__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./pages/channels/channels.component */ "./src/app/pages/channels/channels.component.ts");
|
|
/* harmony import */ var _pages_peers_peers_component__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./pages/peers/peers.component */ "./src/app/pages/peers/peers.component.ts");
|
|
/* harmony import */ var _pages_wallet_wallet_component__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./pages/wallet/wallet.component */ "./src/app/pages/wallet/wallet.component.ts");
|
|
/* harmony import */ var _pages_invoices_invoices_component__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./pages/invoices/invoices.component */ "./src/app/pages/invoices/invoices.component.ts");
|
|
/* harmony import */ var _shared_services_rtl_service__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./shared/services/rtl.service */ "./src/app/shared/services/rtl.service.ts");
|
|
/* harmony import */ var _shared_services_logger_service__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./shared/services/logger.service */ "./src/app/shared/services/logger.service.ts");
|
|
/* harmony import */ var _pages_server_config_server_config_component__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./pages/server-config/server-config.component */ "./src/app/pages/server-config/server-config.component.ts");
|
|
/* harmony import */ var _pages_help_help_component__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./pages/help/help.component */ "./src/app/pages/help/help.component.ts");
|
|
/* harmony import */ var _pages_get_started_get_started_component__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./pages/get-started/get-started.component */ "./src/app/pages/get-started/get-started.component.ts");
|
|
/* harmony import */ var _theme_components_alert_message_alert_message_component__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./theme/components/alert-message/alert-message.component */ "./src/app/theme/components/alert-message/alert-message.component.ts");
|
|
/* harmony import */ var _theme_components_spinner_dialog_spinner_dialog_component__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./theme/components/spinner-dialog/spinner-dialog.component */ "./src/app/theme/components/spinner-dialog/spinner-dialog.component.ts");
|
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var DEFAULT_PERFECT_SCROLLBAR_CONFIG = {
|
|
wheelPropagation: true,
|
|
suppressScrollX: true
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var AppModule = /** @class */ (function () {
|
|
function AppModule() {
|
|
}
|
|
AppModule = __decorate([
|
|
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
|
|
imports: [
|
|
_angular_platform_browser__WEBPACK_IMPORTED_MODULE_0__["BrowserModule"],
|
|
_angular_platform_browser_animations__WEBPACK_IMPORTED_MODULE_2__["BrowserAnimationsModule"],
|
|
_angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormsModule"],
|
|
_angular_forms__WEBPACK_IMPORTED_MODULE_3__["ReactiveFormsModule"],
|
|
_angular_common_http__WEBPACK_IMPORTED_MODULE_4__["HttpClientModule"],
|
|
_agm_core__WEBPACK_IMPORTED_MODULE_7__["AgmCoreModule"].forRoot({
|
|
apiKey: 'AIzaSyDe_oVpi9eRSN99G4o6TwVjJbFBNr58NxE'
|
|
}),
|
|
ngx_perfect_scrollbar__WEBPACK_IMPORTED_MODULE_8__["PerfectScrollbarModule"],
|
|
_shared_shared_module__WEBPACK_IMPORTED_MODULE_9__["SharedModule"],
|
|
_theme_pipes_pipes_module__WEBPACK_IMPORTED_MODULE_10__["PipesModule"],
|
|
_app_routing__WEBPACK_IMPORTED_MODULE_11__["routing"]
|
|
],
|
|
declarations: [
|
|
_app_component__WEBPACK_IMPORTED_MODULE_12__["AppComponent"],
|
|
_pages_pages_component__WEBPACK_IMPORTED_MODULE_13__["PagesComponent"],
|
|
_pages_errors_not_found_not_found_component__WEBPACK_IMPORTED_MODULE_14__["NotFoundComponent"],
|
|
_pages_errors_error_error_component__WEBPACK_IMPORTED_MODULE_15__["ErrorComponent"],
|
|
_theme_components_sidenav_sidenav_component__WEBPACK_IMPORTED_MODULE_16__["SidenavComponent"],
|
|
_theme_components_menu_vertical_menu_vertical_menu_component__WEBPACK_IMPORTED_MODULE_17__["VerticalMenuComponent"],
|
|
_theme_components_menu_horizontal_menu_horizontal_menu_component__WEBPACK_IMPORTED_MODULE_18__["HorizontalMenuComponent"],
|
|
_theme_components_breadcrumb_breadcrumb_component__WEBPACK_IMPORTED_MODULE_19__["BreadcrumbComponent"],
|
|
_theme_components_fullscreen_fullscreen_component__WEBPACK_IMPORTED_MODULE_20__["FullScreenComponent"],
|
|
_theme_components_user_menu_user_menu_component__WEBPACK_IMPORTED_MODULE_21__["UserMenuComponent"],
|
|
_pages_home_home_component__WEBPACK_IMPORTED_MODULE_22__["HomeComponent"],
|
|
_pages_channels_channels_component__WEBPACK_IMPORTED_MODULE_23__["ChannelsComponent"],
|
|
_pages_peers_peers_component__WEBPACK_IMPORTED_MODULE_24__["PeersComponent"],
|
|
_pages_wallet_wallet_component__WEBPACK_IMPORTED_MODULE_25__["WalletComponent"],
|
|
_pages_invoices_invoices_component__WEBPACK_IMPORTED_MODULE_26__["InvoicesComponent"],
|
|
_pages_server_config_server_config_component__WEBPACK_IMPORTED_MODULE_29__["ServerConfigComponent"],
|
|
_pages_help_help_component__WEBPACK_IMPORTED_MODULE_30__["HelpComponent"],
|
|
_pages_get_started_get_started_component__WEBPACK_IMPORTED_MODULE_31__["GetStartedComponent"],
|
|
_theme_components_alert_message_alert_message_component__WEBPACK_IMPORTED_MODULE_32__["AlertMessageComponent"],
|
|
_theme_components_spinner_dialog_spinner_dialog_component__WEBPACK_IMPORTED_MODULE_33__["SpinnerDialogComponent"]
|
|
],
|
|
entryComponents: [
|
|
_theme_components_menu_vertical_menu_vertical_menu_component__WEBPACK_IMPORTED_MODULE_17__["VerticalMenuComponent"],
|
|
_theme_components_alert_message_alert_message_component__WEBPACK_IMPORTED_MODULE_32__["AlertMessageComponent"],
|
|
_theme_components_spinner_dialog_spinner_dialog_component__WEBPACK_IMPORTED_MODULE_33__["SpinnerDialogComponent"]
|
|
],
|
|
providers: [
|
|
_shared_services_rtl_service__WEBPACK_IMPORTED_MODULE_27__["RTLService"],
|
|
{ provide: _shared_services_logger_service__WEBPACK_IMPORTED_MODULE_28__["LoggerService"], useClass: _shared_services_logger_service__WEBPACK_IMPORTED_MODULE_28__["ConsoleLoggerService"] },
|
|
{ provide: ngx_perfect_scrollbar__WEBPACK_IMPORTED_MODULE_8__["PERFECT_SCROLLBAR_CONFIG"], useValue: DEFAULT_PERFECT_SCROLLBAR_CONFIG },
|
|
{ provide: _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_5__["OverlayContainer"], useClass: _theme_utils_custom_overlay_container__WEBPACK_IMPORTED_MODULE_6__["CustomOverlayContainer"] }
|
|
],
|
|
bootstrap: [_app_component__WEBPACK_IMPORTED_MODULE_12__["AppComponent"]]
|
|
})
|
|
], AppModule);
|
|
return AppModule;
|
|
}());
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/app.routing.ts":
|
|
/*!********************************!*\
|
|
!*** ./src/app/app.routing.ts ***!
|
|
\********************************/
|
|
/*! exports provided: routes, routing */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "routes", function() { return routes; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "routing", function() { return routing; });
|
|
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
|
|
/* harmony import */ var _pages_pages_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./pages/pages.component */ "./src/app/pages/pages.component.ts");
|
|
/* harmony import */ var _pages_errors_not_found_not_found_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./pages/errors/not-found/not-found.component */ "./src/app/pages/errors/not-found/not-found.component.ts");
|
|
/* harmony import */ var _pages_errors_error_error_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./pages/errors/error/error.component */ "./src/app/pages/errors/error/error.component.ts");
|
|
/* harmony import */ var _pages_home_home_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./pages/home/home.component */ "./src/app/pages/home/home.component.ts");
|
|
/* harmony import */ var _pages_get_started_get_started_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./pages/get-started/get-started.component */ "./src/app/pages/get-started/get-started.component.ts");
|
|
/* harmony import */ var _pages_channels_channels_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./pages/channels/channels.component */ "./src/app/pages/channels/channels.component.ts");
|
|
/* harmony import */ var _pages_peers_peers_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./pages/peers/peers.component */ "./src/app/pages/peers/peers.component.ts");
|
|
/* harmony import */ var _pages_help_help_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./pages/help/help.component */ "./src/app/pages/help/help.component.ts");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var routes = [
|
|
{ path: '', component: _pages_pages_component__WEBPACK_IMPORTED_MODULE_1__["PagesComponent"],
|
|
children: [
|
|
{ path: '', redirectTo: '/home', pathMatch: 'full' },
|
|
{ path: 'start', component: _pages_get_started_get_started_component__WEBPACK_IMPORTED_MODULE_5__["GetStartedComponent"] },
|
|
{ path: 'home', component: _pages_home_home_component__WEBPACK_IMPORTED_MODULE_4__["HomeComponent"] },
|
|
{ path: 'peers', component: _pages_peers_peers_component__WEBPACK_IMPORTED_MODULE_7__["PeersComponent"] },
|
|
{ path: 'channels', component: _pages_channels_channels_component__WEBPACK_IMPORTED_MODULE_6__["ChannelsComponent"] },
|
|
// { path: 'wallet', component: WalletComponent },
|
|
// { path: 'invoices', component: InvoicesComponent },
|
|
// { path: 'sconfig', component: ServerConfigComponent },
|
|
{ path: 'help', component: _pages_help_help_component__WEBPACK_IMPORTED_MODULE_8__["HelpComponent"] }
|
|
]
|
|
},
|
|
{ path: 'error', component: _pages_errors_error_error_component__WEBPACK_IMPORTED_MODULE_3__["ErrorComponent"], data: { breadcrumb: 'Error' } },
|
|
{ path: '**', component: _pages_errors_not_found_not_found_component__WEBPACK_IMPORTED_MODULE_2__["NotFoundComponent"] }
|
|
];
|
|
var routing = _angular_router__WEBPACK_IMPORTED_MODULE_0__["RouterModule"].forRoot(routes, {});
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/pages/channels/channels.component.css":
|
|
/*!*******************************************************!*\
|
|
!*** ./src/app/pages/channels/channels.component.css ***!
|
|
\*******************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = ".mat-column-capacity, .mat-column-local_balance, .mat-column-remote_balance, .mat-column-total_satoshis_sent, .mat-column-total_satoshis_received {\r\n flex: 0 0 90px;\r\n}\r\n\r\n.mat-column-active, .mat-column-commit_fee {\r\n flex: 0 0 70px;\r\n}\r\n\r\n.mat-column-chan_id {\r\n flex: 0 0 180px;\r\n}\r\n\r\n.mat-column-remote_pubkey {\r\n margin-right: 30px;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n display: table-cell;\r\n padding-top: 5px;\r\n line-height: 25px;\r\n min-height: 25px;\r\n}\r\n\r\n.mx-14 {\r\n margin: 0 14%;\r\n}\r\n\r\n.size-40 {\r\n font-size: 40px;\r\n}\r\n\r\n.mat-button-text {\r\n font-size: 24px;\r\n padding-left: 16px;\r\n padding-bottom: 20px;\r\n}\r\n\r\n.wide-tooltip {\r\n width: 360px;\r\n min-width: 360px;\r\n}\r\n"
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/pages/channels/channels.component.html":
|
|
/*!********************************************************!*\
|
|
!*** ./src/app/pages/channels/channels.component.html ***!
|
|
\********************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = "<div fxLayout=\"column\">\r\n <div class=\"flex-p\">\r\n <mat-card>\r\n <mat-card-header>\r\n <mat-card-subtitle>\r\n <h2>Channel Status</h2>\r\n </mat-card-subtitle>\r\n </mat-card-header>\r\n <mat-card-content>\r\n <div fxLayout=\"row\">\r\n <button mat-icon-button class=\"mx-14 green\" matTooltip=\"Active Channels\" [matTooltipPosition]=\"position\">\r\n <mat-icon class=\"size-40\">check_circle</mat-icon>\r\n </button>\r\n <button mat-icon-button class=\"mx-14 red\" matTooltip=\"Inactive Channels\" [matTooltipPosition]=\"position\">\r\n <mat-icon class=\"size-40\">cancel</mat-icon>\r\n </button>\r\n <button mat-icon-button class=\"mx-14 yellow\" matTooltip=\"Pending Channels\" [matTooltipPosition]=\"position\">\r\n <mat-icon class=\"size-40\">error</mat-icon>\r\n </button>\r\n </div>\r\n <div fxLayout=\"row\">\r\n <button mat-icon-button class=\"mx-14\" color=\"green\">\r\n <p fxLayoutAlign=\"center\" class=\"mat-button-text\">{{activeChannels}}</p>\r\n </button>\r\n <button mat-icon-button class=\"mx-14\" color=\"red\">\r\n <p fxLayoutAlign=\"center\" class=\"mat-button-text\">{{inactiveChannels}}</p>\r\n </button>\r\n <button mat-icon-button class=\"mx-14\" color=\"yellow\">\r\n <p fxLayoutAlign=\"center\" class=\"mat-button-text\">{{pendingChannels}}</p>\r\n </button>\r\n </div>\r\n </mat-card-content>\r\n </mat-card>\r\n </div>\r\n <div class=\"flex-p\">\r\n <mat-card>\r\n <mat-card-header>\r\n <mat-card-subtitle>\r\n <h2>Add Channel</h2>\r\n </mat-card-subtitle>\r\n </mat-card-header>\r\n <mat-card-content>\r\n <div fxLayout=\"row\">\r\n <mat-select fxFlex=\"50\" fxLayoutAlign=\"center center\" [(ngModel)]=\"selectedPeer\" placeholder=\"Public Key\" name=\"peer_pubkey\">\r\n <mat-option *ngFor=\"let peer of peers\" [value]=\"peer.pub_key\">\r\n {{peer.pub_key}}\r\n </mat-option>\r\n </mat-select>\r\n <mat-form-field fxFlex=\"35\" fxLayoutAlign=\"center center\">\r\n <input matInput type=\"number\" [(ngModel)]=\"fundingAmount\" placeholder=\"Amount (Sats)\">\r\n </mat-form-field>\r\n <button fxFlex=\"10\" fxLayoutAlign=\"center center\" mat-raised-button color=\"primary\" [disabled]=\"selectedPeer === '' || fundingAmount == null\" (click)=\"onAddChannel()\">Open</button>\r\n </div>\r\n </mat-card-content>\r\n </mat-card>\r\n </div>\r\n <div class=\"flex-p\">\r\n <mat-table #table [dataSource]=\"channels\" matSort class=\"mat-elevation-z8\">\r\n <ng-container matColumnDef=\"active\">\r\n <mat-header-cell *matHeaderCellDef mat-sort-header> Status </mat-header-cell>\r\n <mat-cell *matCellDef=\"let channel\"> {{channel.active}} </mat-cell>\r\n </ng-container>\r\n <ng-container matColumnDef=\"chan_id\">\r\n <mat-header-cell *matHeaderCellDef mat-sort-header> ID </mat-header-cell>\r\n <mat-cell *matCellDef=\"let channel\"> {{channel.chan_id}} </mat-cell>\r\n </ng-container>\r\n <ng-container matColumnDef=\"remote_pubkey\">\r\n <mat-header-cell *matHeaderCellDef mat-sort-header> Pub Key </mat-header-cell>\r\n <mat-cell *matCellDef=\"let channel\" matTooltip=\"{{channel.remote_pubkey}}\" [matTooltipPosition]=\"position\" matTooltipClass=\"wide-tooltip\">\r\n {{channel.remote_pubkey}} </mat-cell>\r\n </ng-container>\r\n <ng-container matColumnDef=\"capacity\">\r\n <mat-header-cell *matHeaderCellDef mat-sort-header> Capacity </mat-header-cell>\r\n <mat-cell *matCellDef=\"let channel\"> {{channel.capacity}} </mat-cell>\r\n </ng-container>\r\n <ng-container matColumnDef=\"local_balance\">\r\n <mat-header-cell *matHeaderCellDef mat-sort-header> Local Bal </mat-header-cell>\r\n <mat-cell *matCellDef=\"let channel\"> {{channel.local_balance}} </mat-cell>\r\n </ng-container>\r\n <ng-container matColumnDef=\"remote_balance\">\r\n <mat-header-cell *matHeaderCellDef mat-sort-header> Remote Bal </mat-header-cell>\r\n <mat-cell *matCellDef=\"let channel\"> {{channel.remote_balance}} </mat-cell>\r\n </ng-container>\r\n <ng-container matColumnDef=\"total_satoshis_sent\">\r\n <mat-header-cell *matHeaderCellDef mat-sort-header> Sats Sent </mat-header-cell>\r\n <mat-cell *matCellDef=\"let channel\"> {{channel.total_satoshis_sent}} </mat-cell>\r\n </ng-container>\r\n <ng-container matColumnDef=\"total_satoshis_received\">\r\n <mat-header-cell *matHeaderCellDef mat-sort-header> Sats Recv </mat-header-cell>\r\n <mat-cell *matCellDef=\"let channel\"> {{channel.total_satoshis_received}} </mat-cell>\r\n </ng-container>\r\n <ng-container matColumnDef=\"commit_fee\">\r\n <mat-header-cell *matHeaderCellDef mat-sort-header> Fee </mat-header-cell>\r\n <mat-cell *matCellDef=\"let channel\"> {{channel.commit_fee}} </mat-cell>\r\n </ng-container>\r\n <mat-header-row *matHeaderRowDef=\"displayedColumns\"></mat-header-row>\r\n <mat-row *matRowDef=\"let row; columns: displayedColumns;\"></mat-row>\r\n </mat-table>\r\n </div>\r\n</div>"
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/pages/channels/channels.component.ts":
|
|
/*!******************************************************!*\
|
|
!*** ./src/app/pages/channels/channels.component.ts ***!
|
|
\******************************************************/
|
|
/*! exports provided: ChannelsComponent */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChannelsComponent", function() { return ChannelsComponent; });
|
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
|
|
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js");
|
|
/* harmony import */ var _angular_material__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/material */ "./node_modules/@angular/material/esm5/material.es5.js");
|
|
/* harmony import */ var _shared_services_rtl_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../shared/services/rtl.service */ "./src/app/shared/services/rtl.service.ts");
|
|
/* harmony import */ var _shared_services_logger_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../shared/services/logger.service */ "./src/app/shared/services/logger.service.ts");
|
|
/* harmony import */ var _theme_components_alert_message_alert_message_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../theme/components/alert-message/alert-message.component */ "./src/app/theme/components/alert-message/alert-message.component.ts");
|
|
/* harmony import */ var _theme_components_spinner_dialog_spinner_dialog_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../theme/components/spinner-dialog/spinner-dialog.component */ "./src/app/theme/components/spinner-dialog/spinner-dialog.component.ts");
|
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
};
|
|
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
|
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var ChannelsComponent = /** @class */ (function () {
|
|
function ChannelsComponent(rtlService, logger, dialog) {
|
|
this.rtlService = rtlService;
|
|
this.logger = logger;
|
|
this.dialog = dialog;
|
|
this.position = 'below';
|
|
this.selectedPeer = '';
|
|
this.displayedColumns = [
|
|
'active', 'chan_id', 'remote_pubkey', 'capacity', 'local_balance', 'remote_balance',
|
|
'total_satoshis_sent', 'total_satoshis_received', 'commit_fee'
|
|
];
|
|
this.activeChannels = 0;
|
|
this.inactiveChannels = 0;
|
|
this.pendingChannels = 0;
|
|
this.peers = [];
|
|
this.channelSub = new rxjs__WEBPACK_IMPORTED_MODULE_1__["Subject"]();
|
|
this.pendingCSub = new rxjs__WEBPACK_IMPORTED_MODULE_1__["Subject"]();
|
|
this.peersSub = new rxjs__WEBPACK_IMPORTED_MODULE_1__["Subject"]();
|
|
}
|
|
ChannelsComponent.prototype.ngOnInit = function () {
|
|
var _this = this;
|
|
this.rtlService.getPeers()
|
|
.takeUntil(this.peersSub)
|
|
.subscribe(function (data) {
|
|
_this.peers = data;
|
|
});
|
|
this.rtlService.getChannels('all', '')
|
|
.takeUntil(this.channelSub)
|
|
.subscribe(function (data) {
|
|
if (undefined === data.channels) {
|
|
data.channels = [];
|
|
}
|
|
data.channels.sort(function (a, b) {
|
|
return (a.active === b.active) ? 0 : ((a.active) ? -1 : 1);
|
|
});
|
|
data.channels.filter(function (channel) {
|
|
if (channel.active === true) {
|
|
channel.active = 'Active';
|
|
_this.activeChannels++;
|
|
}
|
|
else {
|
|
channel.active = 'Inactive';
|
|
_this.inactiveChannels++;
|
|
}
|
|
});
|
|
_this.channels = new _angular_material__WEBPACK_IMPORTED_MODULE_2__["MatTableDataSource"](data.channels.slice());
|
|
_this.channels.sort = _this.sort;
|
|
_this.logger.info(_this.channels);
|
|
});
|
|
this.rtlService.getChannels('pending', '')
|
|
.takeUntil(this.pendingCSub)
|
|
.subscribe(function (data) {
|
|
_this.pendingChannels = (undefined === data.pending_open_channels) ? 0 : data.pending_open_channels.length;
|
|
_this.logger.info(_this.pendingChannels);
|
|
});
|
|
};
|
|
ChannelsComponent.prototype.onAddChannel = function () {
|
|
var _this = this;
|
|
var dialogRef = this.dialog.open(_theme_components_spinner_dialog_spinner_dialog_component__WEBPACK_IMPORTED_MODULE_6__["SpinnerDialogComponent"], { data: { message: 'Opening Channel...' } });
|
|
this.rtlService.addChannel(this.selectedPeer, this.fundingAmount)
|
|
.subscribe(function (data) {
|
|
dialogRef.close();
|
|
_this.selectedPeer = '';
|
|
_this.fundingAmount = null;
|
|
_this.logger.info(data);
|
|
_this.dialog.open(_theme_components_alert_message_alert_message_component__WEBPACK_IMPORTED_MODULE_5__["AlertMessageComponent"], { width: '700px', data: { type: 'SUCCESS', message: 'Channel Added Successfully!' } });
|
|
_this.rtlService.getChannels('pending', '')
|
|
.takeUntil(_this.pendingCSub)
|
|
.subscribe(function (data) {
|
|
_this.pendingChannels = (undefined === data.pending_open_channels) ? 0 : data.pending_open_channels.length;
|
|
_this.logger.info(_this.pendingChannels);
|
|
});
|
|
}, function (err) {
|
|
dialogRef.close();
|
|
_this.dialog.open(_theme_components_alert_message_alert_message_component__WEBPACK_IMPORTED_MODULE_5__["AlertMessageComponent"], { width: '700px', data: { type: 'ERROR', message: err.error.error } });
|
|
_this.logger.error(err);
|
|
});
|
|
};
|
|
ChannelsComponent.prototype.ngOnDestroy = function () {
|
|
this.channelSub.next();
|
|
this.channelSub.complete();
|
|
this.pendingCSub.next();
|
|
this.pendingCSub.complete();
|
|
this.peersSub.next();
|
|
this.peersSub.complete();
|
|
};
|
|
__decorate([
|
|
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_angular_material__WEBPACK_IMPORTED_MODULE_2__["MatSort"]),
|
|
__metadata("design:type", _angular_material__WEBPACK_IMPORTED_MODULE_2__["MatSort"])
|
|
], ChannelsComponent.prototype, "sort", void 0);
|
|
ChannelsComponent = __decorate([
|
|
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
|
|
selector: 'rtl-channels',
|
|
template: __webpack_require__(/*! ./channels.component.html */ "./src/app/pages/channels/channels.component.html"),
|
|
styles: [__webpack_require__(/*! ./channels.component.css */ "./src/app/pages/channels/channels.component.css")],
|
|
encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
|
|
}),
|
|
__metadata("design:paramtypes", [_shared_services_rtl_service__WEBPACK_IMPORTED_MODULE_3__["RTLService"], _shared_services_logger_service__WEBPACK_IMPORTED_MODULE_4__["LoggerService"], _angular_material__WEBPACK_IMPORTED_MODULE_2__["MatDialog"]])
|
|
], ChannelsComponent);
|
|
return ChannelsComponent;
|
|
}());
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/pages/errors/error/error.component.html":
|
|
/*!*********************************************************!*\
|
|
!*** ./src/app/pages/errors/error/error.component.html ***!
|
|
\*********************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = "<mat-sidenav-container>\r\n <div fxLayout=\"row\" fxLayoutAlign=\"center center\" class=\"h-100\">\r\n <div fxFlex=\"80\" fxFlex.gt-sm=\"30\" fxFlex.sm=\"60\">\r\n <mat-card class=\"p-0 mat-elevation-z24 box\">\r\n <div fxLayout=\"column\" fxLayoutAlign=\"center center\" class=\"bg-primary box-header\">\r\n <button mat-fab color=\"accent\" class=\"mat-elevation-z12\">\r\n <mat-icon>warning</mat-icon>\r\n </button>\r\n <h1 class=\"error\">500</h1>\r\n </div>\r\n <mat-card-content fxLayout=\"column\" fxLayoutAlign=\"end center\" class=\"box-content\">\r\n <mat-card fxLayout=\"column\" fxLayoutAlign=\"center center\" class=\"mat-elevation-z12 box-content-inner\">\r\n <span class=\"box-content-header server-error\">Internal server error</span>\r\n <p class=\"box-text\">Opps, something went wrong. You can go to home page.</p>\r\n <button mat-raised-button color=\"primary\" class=\"mat-elevation-z12\" type=\"button\" (click)=\"goHome()\">HOME</button>\r\n </mat-card>\r\n </mat-card-content>\r\n </mat-card>\r\n </div>\r\n </div>\r\n</mat-sidenav-container>"
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/pages/errors/error/error.component.ts":
|
|
/*!*******************************************************!*\
|
|
!*** ./src/app/pages/errors/error/error.component.ts ***!
|
|
\*******************************************************/
|
|
/*! exports provided: ErrorComponent */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ErrorComponent", function() { return ErrorComponent; });
|
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
|
|
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
|
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
};
|
|
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
|
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
};
|
|
|
|
|
|
var ErrorComponent = /** @class */ (function () {
|
|
function ErrorComponent(router) {
|
|
this.router = router;
|
|
}
|
|
ErrorComponent.prototype.goHome = function () {
|
|
this.router.navigate(['/']);
|
|
};
|
|
ErrorComponent = __decorate([
|
|
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
|
|
selector: 'rtl-error',
|
|
template: __webpack_require__(/*! ./error.component.html */ "./src/app/pages/errors/error/error.component.html")
|
|
}),
|
|
__metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"]])
|
|
], ErrorComponent);
|
|
return ErrorComponent;
|
|
}());
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/pages/errors/not-found/not-found.component.html":
|
|
/*!*****************************************************************!*\
|
|
!*** ./src/app/pages/errors/not-found/not-found.component.html ***!
|
|
\*****************************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = "<mat-sidenav-container>\r\n <div fxLayout=\"row\" fxLayoutAlign=\"center center\" class=\"h-100\">\r\n <div fxFlex=\"80\" fxFlex.gt-sm=\"30\" fxFlex.sm=\"60\">\r\n <mat-card class=\"p-0 mat-elevation-z24 box\">\r\n <div fxLayout=\"column\" fxLayoutAlign=\"center center\" class=\"bg-primary box-header\">\r\n <button mat-fab color=\"accent\" class=\"mat-elevation-z12\">\r\n <mat-icon>error</mat-icon>\r\n </button>\r\n <h1 class=\"error\">404</h1>\r\n </div>\r\n <mat-card-content fxLayout=\"row\" fxLayoutAlign=\"center center\" class=\"box-content\">\r\n <mat-card fxLayout=\"column\" fxLayoutAlign=\"center center\" class=\"mat-elevation-z12 box-content-inner\">\r\n <div class=\"box-text\">Opps, it seems that this page does not exist.</div>\r\n </mat-card>\r\n <button fxFlex=\"40\" mat-raised-button color=\"primary\" class=\"mat-elevation-z12\" type=\"button\" (click)=\"goHome()\">HOME</button>\r\n </mat-card-content>\r\n </mat-card>\r\n </div>\r\n </div>\r\n</mat-sidenav-container>"
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/pages/errors/not-found/not-found.component.ts":
|
|
/*!***************************************************************!*\
|
|
!*** ./src/app/pages/errors/not-found/not-found.component.ts ***!
|
|
\***************************************************************/
|
|
/*! exports provided: NotFoundComponent */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotFoundComponent", function() { return NotFoundComponent; });
|
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
|
|
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
|
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
};
|
|
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
|
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
};
|
|
|
|
|
|
var NotFoundComponent = /** @class */ (function () {
|
|
function NotFoundComponent(router) {
|
|
this.router = router;
|
|
}
|
|
NotFoundComponent.prototype.goHome = function () {
|
|
this.router.navigate(['/']);
|
|
};
|
|
NotFoundComponent = __decorate([
|
|
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
|
|
selector: 'rtl-not-found',
|
|
template: __webpack_require__(/*! ./not-found.component.html */ "./src/app/pages/errors/not-found/not-found.component.html")
|
|
}),
|
|
__metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"]])
|
|
], NotFoundComponent);
|
|
return NotFoundComponent;
|
|
}());
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/pages/get-started/get-started.component.html":
|
|
/*!**************************************************************!*\
|
|
!*** ./src/app/pages/get-started/get-started.component.html ***!
|
|
\**************************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = "<div fxLayout=\"column\">\r\n <div class=\"flex-p\">\r\n <mat-card>\r\n <mat-card-header>\r\n <mat-card-subtitle>\r\n <h2>Get Started</h2>\r\n </mat-card-subtitle>\r\n </mat-card-header>\r\n <mat-card-content>\r\n <form fxLayout=\"row\" fxLayoutAlign=\"start\">\r\n <mat-form-field fxFlex=\"50\" fxLayoutAlign=\"start\">\r\n <input matInput type=\"password\" placeholder=\"Wallet Password\" name=\"walletPassword\" [(ngModel)]=\"walletPassword\" tabindex=\"1\">\r\n </mat-form-field>\r\n <button mat-raised-button color=\"primary\" [disabled]=\"walletPassword == ''\" (click)=\"onOperateWallet('unlock')\" tabindex=\"2\">Unlock Wallet</button>\r\n </form> \r\n </mat-card-content>\r\n </mat-card>\r\n </div>\r\n</div>\r\n"
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/pages/get-started/get-started.component.scss":
|
|
/*!**************************************************************!*\
|
|
!*** ./src/app/pages/get-started/get-started.component.scss ***!
|
|
\**************************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = ""
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/pages/get-started/get-started.component.ts":
|
|
/*!************************************************************!*\
|
|
!*** ./src/app/pages/get-started/get-started.component.ts ***!
|
|
\************************************************************/
|
|
/*! exports provided: GetStartedComponent */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GetStartedComponent", function() { return GetStartedComponent; });
|
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
|
|
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
|
|
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js");
|
|
/* harmony import */ var _angular_material__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/material */ "./node_modules/@angular/material/esm5/material.es5.js");
|
|
/* harmony import */ var _shared_services_rtl_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../shared/services/rtl.service */ "./src/app/shared/services/rtl.service.ts");
|
|
/* harmony import */ var _shared_services_logger_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../shared/services/logger.service */ "./src/app/shared/services/logger.service.ts");
|
|
/* harmony import */ var _theme_components_alert_message_alert_message_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../theme/components/alert-message/alert-message.component */ "./src/app/theme/components/alert-message/alert-message.component.ts");
|
|
/* harmony import */ var _theme_components_spinner_dialog_spinner_dialog_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../theme/components/spinner-dialog/spinner-dialog.component */ "./src/app/theme/components/spinner-dialog/spinner-dialog.component.ts");
|
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
};
|
|
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
|
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var GetStartedComponent = /** @class */ (function () {
|
|
function GetStartedComponent(rtlService, logger, router, dialog) {
|
|
this.rtlService = rtlService;
|
|
this.logger = logger;
|
|
this.router = router;
|
|
this.dialog = dialog;
|
|
this.walletPassword = '';
|
|
this.unsub = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
|
|
}
|
|
GetStartedComponent.prototype.ngOnInit = function () {
|
|
this.walletPassword = '';
|
|
};
|
|
GetStartedComponent.prototype.onOperateWallet = function (operation) {
|
|
var _this = this;
|
|
var dialogRefUnlock = this.dialog.open(_theme_components_spinner_dialog_spinner_dialog_component__WEBPACK_IMPORTED_MODULE_7__["SpinnerDialogComponent"], { data: { message: 'Unlocking...' } });
|
|
this.rtlService.operateWallet(operation, this.walletPassword)
|
|
.takeUntil(this.unsub)
|
|
.subscribe(function (data) {
|
|
var dialogRefInit = _this.dialog.open(_theme_components_spinner_dialog_spinner_dialog_component__WEBPACK_IMPORTED_MODULE_7__["SpinnerDialogComponent"], { data: { message: 'Initializing Node...' } });
|
|
dialogRefUnlock.close();
|
|
_this.logger.info('Successfully Unlocked!');
|
|
setTimeout(function () {
|
|
_this.walletPassword = '';
|
|
_this.logger.info('Successfully Initialized!');
|
|
_this.router.navigate(['/home']);
|
|
dialogRefInit.close();
|
|
}, 1000 * 90);
|
|
}, function (err) {
|
|
_this.walletPassword = '';
|
|
dialogRefUnlock.close();
|
|
_this.dialog.open(_theme_components_alert_message_alert_message_component__WEBPACK_IMPORTED_MODULE_6__["AlertMessageComponent"], { width: '700px', data: { type: 'ERROR', message: err.error.error } });
|
|
_this.logger.error(err.error.error);
|
|
});
|
|
};
|
|
GetStartedComponent.prototype.ngOnDestroy = function () {
|
|
this.unsub.next();
|
|
this.unsub.complete();
|
|
};
|
|
GetStartedComponent = __decorate([
|
|
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
|
|
selector: 'rtl-get-started',
|
|
template: __webpack_require__(/*! ./get-started.component.html */ "./src/app/pages/get-started/get-started.component.html"),
|
|
styles: [__webpack_require__(/*! ./get-started.component.scss */ "./src/app/pages/get-started/get-started.component.scss")]
|
|
}),
|
|
__metadata("design:paramtypes", [_shared_services_rtl_service__WEBPACK_IMPORTED_MODULE_4__["RTLService"], _shared_services_logger_service__WEBPACK_IMPORTED_MODULE_5__["LoggerService"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"], _angular_material__WEBPACK_IMPORTED_MODULE_3__["MatDialog"]])
|
|
], GetStartedComponent);
|
|
return GetStartedComponent;
|
|
}());
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/pages/help/help.component.css":
|
|
/*!***********************************************!*\
|
|
!*** ./src/app/pages/help/help.component.css ***!
|
|
\***********************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = ".mat-card-content {\r\n margin-bottom: 4px;\r\n}\r\n"
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/pages/help/help.component.html":
|
|
/*!************************************************!*\
|
|
!*** ./src/app/pages/help/help.component.html ***!
|
|
\************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = "<div fxLayout=\"column\">\r\n <div class=\"flex-p\">\r\n <mat-card>\r\n <mat-card-header>\r\n <mat-card-subtitle>\r\n <h2>Help</h2>\r\n </mat-card-subtitle>\r\n </mat-card-header>\r\n <mat-card-content *ngFor=\"let helpTopic of helpTopics\">\r\n <mat-expansion-panel>\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>{{helpTopic.question}}</mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <mat-panel-description>{{helpTopic.answer}}</mat-panel-description>\r\n </mat-expansion-panel>\r\n <div class=\"divider\"></div>\r\n </mat-card-content>\r\n </mat-card>\r\n </div>\r\n</div>"
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/pages/help/help.component.ts":
|
|
/*!**********************************************!*\
|
|
!*** ./src/app/pages/help/help.component.ts ***!
|
|
\**********************************************/
|
|
/*! exports provided: HelpTopic, HelpComponent */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HelpTopic", function() { return HelpTopic; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HelpComponent", function() { return HelpComponent; });
|
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
|
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
};
|
|
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
|
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
};
|
|
|
|
var HelpTopic = /** @class */ (function () {
|
|
function HelpTopic(ques, ans) {
|
|
this.question = ques;
|
|
this.answer = ans;
|
|
}
|
|
return HelpTopic;
|
|
}());
|
|
|
|
var HelpComponent = /** @class */ (function () {
|
|
function HelpComponent() {
|
|
this.helpTopics = [];
|
|
}
|
|
HelpComponent.prototype.ngOnInit = function () {
|
|
// this.helpTopics.push(new HelpTopic('Set LND home directory?',
|
|
// 'Pass the directroy information while getting the server up with --lndir "local-lnd-path".<br>Example: node rtl --lndir C:\lnd\dir\path'));
|
|
this.helpTopics.push(new HelpTopic('Change theme?', 'Click on rotating setting icon on the right side of the screen and choose from the given options.'));
|
|
};
|
|
HelpComponent = __decorate([
|
|
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
|
|
selector: 'rtl-help',
|
|
template: __webpack_require__(/*! ./help.component.html */ "./src/app/pages/help/help.component.html"),
|
|
styles: [__webpack_require__(/*! ./help.component.css */ "./src/app/pages/help/help.component.css")]
|
|
}),
|
|
__metadata("design:paramtypes", [])
|
|
], HelpComponent);
|
|
return HelpComponent;
|
|
}());
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/pages/home/home.component.css":
|
|
/*!***********************************************!*\
|
|
!*** ./src/app/pages/home/home.component.css ***!
|
|
\***********************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = ".mat-card-header {\r\n padding: 18px 18px 10px 18px;\r\n}\r\n\r\n.icon-large {\r\n font-size: 70px;\r\n display: inline;\r\n}\r\n\r\n.size-40 {\r\n font-size: 30px;\r\n}\r\n"
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/pages/home/home.component.html":
|
|
/*!************************************************!*\
|
|
!*** ./src/app/pages/home/home.component.html ***!
|
|
\************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = "<div fxLayout=\"column\" fxLayout.gt-sm=\"row wrap\">\r\n <div fxFlex=\"20\" class=\"flex-p\">\r\n <mat-card class=\"custom-card\">\r\n <mat-card-header class=\"bg-primary p-1\" fxLayoutAlign=\"center center\">\r\n <mat-card-title class=\"m-0\">\r\n <h3>Wallet Balance</h3>\r\n </mat-card-title>\r\n </mat-card-header>\r\n <mat-card-content fxLayout=\"column\" fxLayoutAlign=\"center center\" class=\"p-1\">\r\n <mat-card-content>\r\n <mat-icon class=\"icon-large\">account_balance_wallet</mat-icon>\r\n </mat-card-content>\r\n <h3>{{totalBalance}} Sats</h3>\r\n </mat-card-content>\r\n <mat-divider></mat-divider>\r\n </mat-card>\r\n </div>\r\n <div fxFlex=\"20\" class=\"flex-p\">\r\n <mat-card class=\"custom-card\">\r\n <mat-card-header class=\"bg-primary p-1\" fxLayoutAlign=\"center center\">\r\n <mat-card-title class=\"m-0\">\r\n <h3>Peers</h3>\r\n </mat-card-title>\r\n </mat-card-header>\r\n <mat-card-content fxLayout=\"column\" fxLayoutAlign=\"center center\" class=\"p-1\">\r\n <mat-card-content>\r\n <mat-icon class=\"icon-large\">group</mat-icon>\r\n </mat-card-content>\r\n <h3 *ngIf=\"information.num_peers; else zeroPeers\">{{information?.num_peers}}</h3>\r\n <ng-template #zeroPeers><h3>0</h3></ng-template>\r\n </mat-card-content>\r\n <mat-divider></mat-divider>\r\n </mat-card>\r\n </div>\r\n <div fxFlex=\"20\" class=\"flex-p\">\r\n <mat-card class=\"custom-card\">\r\n <mat-card-header class=\"bg-primary p-1\" fxLayoutAlign=\"center center\">\r\n <mat-card-title class=\"m-0\">\r\n <h3>Active Channels</h3>\r\n </mat-card-title>\r\n </mat-card-header>\r\n <mat-card-content fxLayout=\"column\" fxLayoutAlign=\"center center\" class=\"p-1\">\r\n <mat-card-content>\r\n <mat-icon class=\"icon-large\">settings_ethernet</mat-icon>\r\n </mat-card-content>\r\n <h3 *ngIf=\"information.num_active_channels; else zeroChannel\">{{information?.num_active_channels}}</h3>\r\n <ng-template #zeroChannel><h3>0</h3></ng-template>\r\n </mat-card-content>\r\n <mat-divider></mat-divider>\r\n </mat-card>\r\n </div>\r\n <div fxFlex=\"20\" class=\"flex-p\">\r\n <mat-card class=\"custom-card\">\r\n <mat-card-header class=\"bg-primary p-1\" fxLayoutAlign=\"center center\">\r\n <mat-card-title class=\"m-0\">\r\n <h3>Channel Balance</h3>\r\n </mat-card-title>\r\n </mat-card-header>\r\n <mat-card-content fxLayout=\"column\" fxLayoutAlign=\"center center\" class=\"p-1\">\r\n <mat-card-content>\r\n <mat-icon class=\"icon-large\">linear_scale</mat-icon>\r\n </mat-card-content>\r\n <h3>{{channelBalance}} Sats</h3>\r\n </mat-card-content>\r\n <mat-divider></mat-divider>\r\n </mat-card>\r\n </div>\r\n <div fxFlex=\"20\" class=\"flex-p\">\r\n <mat-card class=\"custom-card\">\r\n <mat-card-header class=\"bg-primary p-1\" fxLayoutAlign=\"center center\">\r\n <mat-card-title class=\"m-0\">\r\n <h3>Chain Sync Status</h3>\r\n </mat-card-title>\r\n </mat-card-header>\r\n <mat-card-content fxLayout=\"column\" fxLayoutAlign=\"center center\" class=\"p-1\">\r\n <mat-card-content>\r\n <mat-icon class=\"icon-large\">sync</mat-icon>\r\n </mat-card-content>\r\n <mat-icon *ngIf=\"information?.synced_to_chain; else notSynced\" class=\"size-40 green sync-to-chain\">check_circle</mat-icon>\r\n <ng-template #notSynced>\r\n <mat-icon class=\"size-40 red\">cancel</mat-icon>\r\n </ng-template>\r\n </mat-card-content>\r\n <mat-divider></mat-divider>\r\n </mat-card>\r\n </div>\r\n <div fxFlex=\"100\" class=\"flex-p\">\r\n <mat-card>\r\n <mat-card-header>\r\n <mat-card-subtitle>\r\n <h2>Fee Report</h2>\r\n </mat-card-subtitle>\r\n </mat-card-header>\r\n <mat-card-content>\r\n <mat-table #table [dataSource]=\"fees\" matSort class=\"mat-elevation-z8\">\r\n <ng-container matColumnDef=\"day_fee_sum\">\r\n <mat-header-cell *matHeaderCellDef mat-sort-header> Daily </mat-header-cell>\r\n <mat-cell *matCellDef=\"let fees\"> {{fees.day_fee_sum}} Sats</mat-cell>\r\n </ng-container>\r\n <ng-container matColumnDef=\"week_fee_sum\">\r\n <mat-header-cell *matHeaderCellDef mat-sort-header> Weekly </mat-header-cell>\r\n <mat-cell *matCellDef=\"let fees\"> {{fees.week_fee_sum}} Sats</mat-cell>\r\n </ng-container>\r\n <ng-container matColumnDef=\"month_fee_sum\">\r\n <mat-header-cell *matHeaderCellDef mat-sort-header> Monthly </mat-header-cell>\r\n <mat-cell *matCellDef=\"let fees\"> {{fees.month_fee_sum}} Sats</mat-cell>\r\n </ng-container>\r\n <mat-header-row *matHeaderRowDef=\"displayedColumns\"></mat-header-row>\r\n <mat-row *matRowDef=\"let row; columns: displayedColumns;\"></mat-row>\r\n </mat-table>\r\n </mat-card-content>\r\n </mat-card>\r\n </div>\r\n</div>"
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/pages/home/home.component.ts":
|
|
/*!**********************************************!*\
|
|
!*** ./src/app/pages/home/home.component.ts ***!
|
|
\**********************************************/
|
|
/*! exports provided: HomeComponent */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HomeComponent", function() { return HomeComponent; });
|
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
|
|
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
|
|
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js");
|
|
/* harmony import */ var _angular_material__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/material */ "./node_modules/@angular/material/esm5/material.es5.js");
|
|
/* harmony import */ var _shared_services_rtl_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../shared/services/rtl.service */ "./src/app/shared/services/rtl.service.ts");
|
|
/* harmony import */ var _shared_services_logger_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../shared/services/logger.service */ "./src/app/shared/services/logger.service.ts");
|
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
};
|
|
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
|
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var HomeComponent = /** @class */ (function () {
|
|
function HomeComponent(rtlService, logger, router) {
|
|
this.rtlService = rtlService;
|
|
this.logger = logger;
|
|
this.router = router;
|
|
this.displayedColumns = ['day_fee_sum', 'week_fee_sum', 'month_fee_sum'];
|
|
this.information = {};
|
|
this.activeChannels = 0;
|
|
this.totalBalance = '';
|
|
this.channelBalance = '';
|
|
this.unsubInfo = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
|
|
this.unsubFees = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
|
|
this.unsubBalBlock = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
|
|
this.unsubBalChannel = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
|
|
}
|
|
HomeComponent.prototype.ngOnInit = function () {
|
|
var _this = this;
|
|
this.rtlService.getInfo();
|
|
this.rtlService.informationUpdated
|
|
.takeUntil(this.unsubInfo)
|
|
.subscribe(function (data) {
|
|
if (data.error) {
|
|
_this.logger.info('Redirecting to Unlock');
|
|
_this.router.navigate(['/start']);
|
|
return;
|
|
}
|
|
_this.logger.info(data);
|
|
_this.information = data;
|
|
});
|
|
this.rtlService.getFees()
|
|
.takeUntil(this.unsubFees)
|
|
.subscribe(function (data) {
|
|
_this.logger.info(data);
|
|
_this.fees = (undefined === data) ? new _angular_material__WEBPACK_IMPORTED_MODULE_3__["MatTableDataSource"]([]) :
|
|
new _angular_material__WEBPACK_IMPORTED_MODULE_3__["MatTableDataSource"]([{ day_fee_sum: data.fees.day_fee_sum, week_fee_sum: data.fees.week_fee_sum, month_fee_sum: data.fees.month_fee_sum }]);
|
|
_this.logger.info(_this.fees);
|
|
});
|
|
this.rtlService.getBalance('blockchain')
|
|
.takeUntil(this.unsubBalBlock)
|
|
.subscribe(function (data) {
|
|
_this.totalBalance = (undefined === data.balance.total_balance) ? 0 : data.balance.total_balance;
|
|
_this.totalBalance = _this.totalBalance.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
|
|
_this.logger.info(_this.totalBalance);
|
|
});
|
|
this.rtlService.getBalance('channels')
|
|
.takeUntil(this.unsubBalChannel)
|
|
.subscribe(function (data) {
|
|
_this.channelBalance = (undefined === data.balance.balance) ? 0 : data.balance.balance;
|
|
_this.channelBalance = _this.channelBalance.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
|
|
_this.logger.info(_this.channelBalance);
|
|
});
|
|
};
|
|
HomeComponent.prototype.ngOnDestroy = function () {
|
|
this.unsubInfo.next();
|
|
this.unsubInfo.complete();
|
|
this.unsubFees.next();
|
|
this.unsubFees.complete();
|
|
this.unsubBalBlock.next();
|
|
this.unsubBalBlock.complete();
|
|
this.unsubBalChannel.next();
|
|
this.unsubBalChannel.complete();
|
|
};
|
|
HomeComponent = __decorate([
|
|
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
|
|
selector: 'rtl-home',
|
|
template: __webpack_require__(/*! ./home.component.html */ "./src/app/pages/home/home.component.html"),
|
|
styles: [__webpack_require__(/*! ./home.component.css */ "./src/app/pages/home/home.component.css")]
|
|
}),
|
|
__metadata("design:paramtypes", [_shared_services_rtl_service__WEBPACK_IMPORTED_MODULE_4__["RTLService"], _shared_services_logger_service__WEBPACK_IMPORTED_MODULE_5__["LoggerService"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"]])
|
|
], HomeComponent);
|
|
return HomeComponent;
|
|
}());
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/pages/invoices/invoices.component.html":
|
|
/*!********************************************************!*\
|
|
!*** ./src/app/pages/invoices/invoices.component.html ***!
|
|
\********************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = "<div fxLayout=\"column\">\r\n <div class=\"flex-p\">\r\n <mat-card>\r\n <mat-card-header>\r\n <mat-card-subtitle>\r\n <h2>Invoices</h2>\r\n </mat-card-subtitle>\r\n </mat-card-header>\r\n <mat-card-content>\r\n Work In Progress!\r\n </mat-card-content>\r\n </mat-card>\r\n </div>\r\n </div>"
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/pages/invoices/invoices.component.scss":
|
|
/*!********************************************************!*\
|
|
!*** ./src/app/pages/invoices/invoices.component.scss ***!
|
|
\********************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = ""
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/pages/invoices/invoices.component.ts":
|
|
/*!******************************************************!*\
|
|
!*** ./src/app/pages/invoices/invoices.component.ts ***!
|
|
\******************************************************/
|
|
/*! exports provided: InvoicesComponent */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "InvoicesComponent", function() { return InvoicesComponent; });
|
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
|
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
};
|
|
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
|
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
};
|
|
|
|
var InvoicesComponent = /** @class */ (function () {
|
|
function InvoicesComponent() {
|
|
}
|
|
InvoicesComponent.prototype.ngOnInit = function () {
|
|
};
|
|
InvoicesComponent = __decorate([
|
|
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
|
|
selector: 'rtl-invoices',
|
|
template: __webpack_require__(/*! ./invoices.component.html */ "./src/app/pages/invoices/invoices.component.html"),
|
|
styles: [__webpack_require__(/*! ./invoices.component.scss */ "./src/app/pages/invoices/invoices.component.scss")]
|
|
}),
|
|
__metadata("design:paramtypes", [])
|
|
], InvoicesComponent);
|
|
return InvoicesComponent;
|
|
}());
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/pages/pages.component.html":
|
|
/*!********************************************!*\
|
|
!*** ./src/app/pages/pages.component.html ***!
|
|
\********************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = "<mat-sidenav-container>\r\n <mat-sidenav *ngIf=\"settings.menu == 'vertical'\" [opened]=\"settings.sidenavIsOpened\" [mode]=\"(settings.sidenavIsPinned) ? 'side' : 'over'\"\r\n #sidenav class=\"sidenav mat-elevation-z6\">\r\n <rtl-sidenav></rtl-sidenav>\r\n </mat-sidenav>\r\n <mat-sidenav-content perfectScrollbar [disabled]=\"settings.fixedHeader\" (psScrollY)=\"onPsScrollY($event)\">\r\n <mat-toolbar color=\"primary\" class=\"flex-p-x\">\r\n <div fxLayout=\"row\" fxLayoutAlign=\"space-between center\" class=\"w-100\">\r\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\">\r\n <button *ngIf=\"settings.menu == 'vertical'\" mat-icon-button (click)=\"toggleSidenav()\">\r\n <mat-icon>menu</mat-icon>\r\n </button>\r\n <button fxShow=\"false\" fxShow.gt-xs *ngIf=\"settings.menu == 'vertical'\" mat-icon-button (click)=\"settings.sidenavUserBlock = !settings.sidenavUserBlock\">\r\n <mat-icon>person</mat-icon>\r\n </button>\r\n <a *ngIf=\"settings.menu == 'horizontal' && settings.menuType == 'mini'\" mat-raised-button color=\"accent\" routerLink=\"/home\" (click)=\"closeSubMenus()\" class=\"small-logo\">R</a>\r\n <a *ngIf=\"settings.menu == 'horizontal' && settings.menuType != 'mini'\" class=\"logo\" routerLink=\"/home\" (click)=\"closeSubMenus()\">RTL</a>\r\n </div>\r\n <div fxLayout=\"row\" fxLayoutAlign=\"center center\">\r\n <h2>Ride The Lightning</h2>\r\n </div>\r\n <div fxLayout=\"row\" fxLayoutAlign=\"end center\">\r\n <rtl-fullscreen></rtl-fullscreen>\r\n <rtl-user-menu></rtl-user-menu>\r\n </div>\r\n </div>\r\n </mat-toolbar>\r\n <mat-toolbar color=\"primary\" *ngIf=\"settings.menu == 'horizontal'\" class=\"horizontal-menu flex-p-x transition-2\" [class.sticky]=\"isStickyMenu\"\r\n [class.fixed-top]=\"!settings.fixedHeader\">\r\n <div fxLayout=\"row\" fxLayoutAlign=\"center center\" class=\"w-100\">\r\n <rtl-horizontal-menu [menuParentId]=\"0\"></rtl-horizontal-menu>\r\n </div>\r\n </mat-toolbar>\r\n <div id=\"main-content\" class=\"inner-sidenav-content transition-2\" perfectScrollbar [disabled]=\"!settings.fixedHeader\" (psScrollY)=\"onPsScrollY($event)\"\r\n [class.horizontal-menu-hidden]=\"isStickyMenu\">\r\n <!-- <rtl-breadcrumb></rtl-breadcrumb> -->\r\n <router-outlet></router-outlet>\r\n </div>\r\n <div fxLayout=\"row\" fxLayoutAlign=\"center center\" class=\"options-icon\" (click)=\"options.toggle()\">\r\n <mat-icon>settings</mat-icon>\r\n </div>\r\n <div *ngIf=\"showBackToTop\" fxLayout=\"row\" fxLayoutAlign=\"center center\" class=\"back-to-top transition-2\" (click)=\"scrollToTop();\">\r\n <mat-icon>arrow_upward</mat-icon>\r\n </div>\r\n </mat-sidenav-content>\r\n <mat-sidenav #options position=\"end\" class=\"options\">\r\n <div fxLayout=\"row\" fxLayoutAlign=\"center center\" class=\"control mat-elevation-z1\">\r\n <h2>Settings</h2>\r\n </div>\r\n <div perfectScrollbar>\r\n <div fxLayout=\"column\" class=\"control\">\r\n <h4>Layout</h4>\r\n <div fxLayout=\"row\" fxLayoutAlign=\"space-between center\">\r\n <span>Fixed header</span>\r\n <mat-slide-toggle [checked]=\"settings.fixedHeader\" (change)=\"toggleSettings('fixedHeader')\" labelPosition=\"before\"></mat-slide-toggle>\r\n </div>\r\n <div fxLayout=\"row\" fxLayoutAlign=\"space-between center\">\r\n <span>Align Left</span>\r\n <mat-slide-toggle [checked]=\"settings.rtl\" (change)=\"toggleSettings('rtl')\" labelPosition=\"before\"></mat-slide-toggle>\r\n </div>\r\n </div>\r\n <div fxLayout=\"column\" class=\"control\">\r\n <h4>Choose menu</h4>\r\n <mat-radio-group [(ngModel)]=\"menuOption\" (change)=\"chooseMenu()\">\r\n <mat-radio-button *ngFor=\"let menu of menus\" [value]=\"menu\">{{menu}}</mat-radio-button>\r\n </mat-radio-group>\r\n </div>\r\n <div fxLayout=\"column\" class=\"control\">\r\n <h4>Choose menu type</h4>\r\n <mat-radio-group [(ngModel)]=\"menuTypeOption\" (change)=\"chooseMenuType()\">\r\n <mat-radio-button *ngFor=\"let menuType of menuTypes\" [value]=\"menuType\">{{menuType}}</mat-radio-button>\r\n </mat-radio-group>\r\n </div>\r\n <div fxLayout=\"column\" class=\"control\">\r\n <h4>Choose theme skin</h4>\r\n <div fxLayout=\"row\" fxLayoutAlign=\"space-around center\">\r\n <div class=\"skin-primary indigo-light\" (click)=\"changeTheme('indigo-light')\">\r\n <div class=\"skin-secondary\"></div>\r\n </div>\r\n <div class=\"skin-primary teal-light\" (click)=\"changeTheme('teal-light')\">\r\n <div class=\"skin-secondary\"></div>\r\n </div>\r\n <div class=\"skin-primary red-light\" (click)=\"changeTheme('red-light')\">\r\n <div class=\"skin-secondary\"></div>\r\n </div>\r\n <div class=\"skin-primary blue-dark\" (click)=\"changeTheme('blue-dark')\">\r\n <div class=\"skin-secondary\"></div>\r\n </div>\r\n <div class=\"skin-primary green-dark\" (click)=\"changeTheme('green-dark')\">\r\n <div class=\"skin-secondary\"></div>\r\n </div>\r\n <div class=\"skin-primary pink-dark\" (click)=\"changeTheme('pink-dark')\">\r\n <div class=\"skin-secondary\"></div>\r\n </div>\r\n </div>\r\n </div>\r\n <div fxLayout=\"column\" class=\"control\">\r\n <h4>Sidenav options</h4>\r\n <div fxLayout=\"row\" fxLayoutAlign=\"space-between center\">\r\n <span>Opened sidenav</span>\r\n <mat-slide-toggle [checked]=\"settings.sidenavIsOpened\" (change)=\"toggleSettings('sidenavIsOpened')\" labelPosition=\"before\"></mat-slide-toggle>\r\n </div>\r\n <div fxLayout=\"row\" fxLayoutAlign=\"space-between center\">\r\n <span>Pinned sidenav</span>\r\n <mat-slide-toggle [checked]=\"settings.sidenavIsPinned\" (change)=\"toggleSettings('sidenavIsPinned')\" labelPosition=\"before\"></mat-slide-toggle>\r\n </div>\r\n <div fxLayout=\"row\" fxLayoutAlign=\"space-between center\">\r\n <span>Sidenav user info</span>\r\n <mat-slide-toggle [checked]=\"settings.sidenavUserBlock\" (change)=\"toggleSettings('sidenavUserBlock')\"\r\n labelPosition=\"before\"></mat-slide-toggle>\r\n </div>\r\n </div>\r\n </div>\r\n </mat-sidenav>\r\n</mat-sidenav-container>"
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/pages/pages.component.scss":
|
|
/*!********************************************!*\
|
|
!*** ./src/app/pages/pages.component.scss ***!
|
|
\********************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = ".sidenav {\n width: 250px;\n overflow: hidden; }\n\n.horizontal-menu {\n padding: 0;\n position: relative;\n z-index: 9;\n height: 0; }\n\n.horizontal-menu.sticky {\n height: 0;\n min-height: 0;\n overflow: hidden; }\n\n.horizontal-menu.sticky.fixed-top {\n position: fixed;\n top: 0;\n height: 56px;\n overflow: visible; }\n\n.inner-sidenav-content {\n position: absolute;\n top: 56px;\n bottom: 0;\n left: 0;\n right: 0;\n padding: 8px;\n min-height: calc(100% - (56px + 8px*2)); }\n\n.options {\n position: fixed;\n width: 250px;\n overflow: hidden; }\n\n.options .control {\n padding: 6px 14px; }\n\n.options .control div {\n padding: 6px 0; }\n\n.options .control h4 {\n border-bottom: 1px solid #ccc;\n margin: 12px 0 6px 0; }\n\n.options .control .skin-primary {\n width: 32px;\n height: 32px;\n padding: 0;\n overflow: hidden;\n cursor: pointer; }\n\n.options .control .skin-primary .skin-secondary {\n width: 0;\n height: 0;\n padding: 0;\n border-bottom: 32px solid;\n border-left: 32px solid transparent; }\n\n.options .control .skin-primary.indigo-light {\n background-color: #3F51B5;\n border: 1px solid #3F51B5; }\n\n.options .control .skin-primary.indigo-light .skin-secondary {\n border-bottom-color: #ececec; }\n\n.options .control .skin-primary.teal-light {\n background-color: #009688;\n border: 1px solid #009688; }\n\n.options .control .skin-primary.teal-light .skin-secondary {\n border-bottom-color: #ececec; }\n\n.options .control .skin-primary.red-light {\n background-color: #F44336;\n border: 1px solid #F44336; }\n\n.options .control .skin-primary.red-light .skin-secondary {\n border-bottom-color: #ececec; }\n\n.options .control .skin-primary.blue-dark {\n background-color: #0277bd;\n border: 1px solid #0277bd; }\n\n.options .control .skin-primary.blue-dark .skin-secondary {\n border-bottom-color: #262626; }\n\n.options .control .skin-primary.green-dark {\n background-color: #388E3C;\n border: 1px solid #388E3C; }\n\n.options .control .skin-primary.green-dark .skin-secondary {\n border-bottom-color: #262626; }\n\n.options .control .skin-primary.pink-dark {\n background-color: #D81B60;\n border: 1px solid #D81B60; }\n\n.options .control .skin-primary.pink-dark .skin-secondary {\n border-bottom-color: #262626; }\n\n.options .mat-radio-group {\n display: inline-flex;\n flex-direction: column; }\n\n.options .mat-radio-group .mat-radio-button {\n margin: 2px 0; }\n\n.options .mat-slide-toggle {\n height: auto; }\n\n.options .ps {\n height: calc(100% - 48px); }\n\n.op-image {\n box-shadow: 0 0 2px #ccc;\n border: 2px solid;\n border-color: transparent;\n cursor: pointer;\n transition: 0.2s; }\n\n.options-icon {\n position: fixed;\n top: 110px;\n right: 0;\n width: 40px;\n height: 40px;\n background: rgba(0, 0, 0, 0.7);\n color: #fff;\n cursor: pointer;\n z-index: 999999; }\n\n.options-icon .mat-icon {\n -webkit-animation: spin 8s linear infinite;\n animation: spin 8s linear infinite; }\n\n@-webkit-keyframes spin {\n 100% {\n -webkit-transform: rotate(360deg); } }\n\n@keyframes spin {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg); } }\n\n.back-to-top {\n position: fixed;\n width: 40px;\n height: 40px;\n cursor: pointer;\n z-index: 999999;\n right: 20px;\n bottom: 20px;\n opacity: .5;\n color: #fff;\n background-color: rgba(0, 0, 0, 0.75);\n border-radius: 4px; }\n\n.back-to-top:hover {\n opacity: 0.9; }\n\n.search-bar form input {\n height: 28px;\n border: none;\n padding: 0;\n border-radius: 15px;\n outline: none;\n color: #444;\n width: 0;\n overflow: hidden;\n transition: 0.3s; }\n\n.search-bar form input.show {\n padding: 0 8px;\n width: 250px; }\n"
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/pages/pages.component.ts":
|
|
/*!******************************************!*\
|
|
!*** ./src/app/pages/pages.component.ts ***!
|
|
\******************************************/
|
|
/*! exports provided: PagesComponent */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PagesComponent", function() { return PagesComponent; });
|
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
|
|
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
|
|
/* harmony import */ var _shared_services_rtl_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../shared/services/rtl.service */ "./src/app/shared/services/rtl.service.ts");
|
|
/* harmony import */ var _theme_components_menu_menu_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../theme/components/menu/menu.service */ "./src/app/theme/components/menu/menu.service.ts");
|
|
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js");
|
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
};
|
|
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
|
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
var PagesComponent = /** @class */ (function () {
|
|
function PagesComponent(router, menuService, rtlService) {
|
|
this.router = router;
|
|
this.menuService = menuService;
|
|
this.rtlService = rtlService;
|
|
this.menus = ['vertical', 'horizontal'];
|
|
this.menuTypes = ['default', 'compact', 'mini'];
|
|
this.isStickyMenu = false;
|
|
this.lastScrollTop = 0;
|
|
this.showBackToTop = false;
|
|
this.toggleSearchBar = false;
|
|
this.unsubSettings = new rxjs__WEBPACK_IMPORTED_MODULE_4__["Subject"]();
|
|
this.settings = this.rtlService.getUISettings();
|
|
if (window.innerWidth <= 768) {
|
|
this.settings.menu = 'vertical';
|
|
this.settings.sidenavIsOpened = false;
|
|
this.settings.sidenavIsPinned = false;
|
|
}
|
|
this.menuOption = this.settings.menu;
|
|
this.menuTypeOption = this.settings.menuType;
|
|
this.defaultMenu = this.settings.menu;
|
|
}
|
|
PagesComponent.prototype.ngOnInit = function () {
|
|
var _this = this;
|
|
this.rtlService.UIsettingsUpdated
|
|
.takeUntil(this.unsubSettings)
|
|
.subscribe(function (settings) {
|
|
_this.settings = settings;
|
|
if (window.innerWidth <= 768) {
|
|
_this.settings.menu = 'vertical';
|
|
_this.settings.sidenavIsOpened = false;
|
|
_this.settings.sidenavIsPinned = false;
|
|
}
|
|
_this.menuOption = _this.settings.menu;
|
|
_this.menuTypeOption = _this.settings.menuType;
|
|
_this.defaultMenu = _this.settings.menu;
|
|
});
|
|
};
|
|
PagesComponent.prototype.ngAfterViewInit = function () {
|
|
var _this = this;
|
|
setTimeout(function () { _this.settings.loadingSpinner = false; }, 100);
|
|
this.router.events.subscribe(function (event) {
|
|
if (event instanceof _angular_router__WEBPACK_IMPORTED_MODULE_1__["NavigationEnd"]) {
|
|
if (!_this.settings.sidenavIsPinned) {
|
|
_this.sidenav.close();
|
|
}
|
|
if (window.innerWidth <= 768) {
|
|
_this.sidenav.close();
|
|
}
|
|
}
|
|
});
|
|
if (this.settings.menu === 'vertical') {
|
|
this.menuService.expandActiveSubMenu(this.menuService.getVerticalMenuItems());
|
|
}
|
|
};
|
|
PagesComponent.prototype.chooseMenu = function () {
|
|
this.defaultMenu = this.menuOption;
|
|
this.settings.menu = this.menuOption;
|
|
this.rtlService.updateUISettings(this.settings);
|
|
this.router.navigate(['/']);
|
|
};
|
|
PagesComponent.prototype.chooseMenuType = function () {
|
|
this.settings.menuType = this.menuTypeOption;
|
|
this.rtlService.updateUISettings(this.settings);
|
|
};
|
|
PagesComponent.prototype.changeTheme = function (theme) {
|
|
this.settings.theme = theme;
|
|
this.rtlService.updateUISettings(this.settings);
|
|
};
|
|
PagesComponent.prototype.toggleSettings = function (toggleField) {
|
|
this.settings[toggleField] = !this.settings[toggleField];
|
|
this.rtlService.updateUISettings(this.settings);
|
|
};
|
|
PagesComponent.prototype.toggleSidenav = function () {
|
|
this.sidenav.toggle();
|
|
};
|
|
PagesComponent.prototype.onPsScrollY = function (event) {
|
|
this.scrolledContent = event.target;
|
|
(this.scrolledContent.scrollTop > 300) ? this.showBackToTop = true : this.showBackToTop = false;
|
|
if (this.settings.menu === 'horizontal') {
|
|
if (this.settings.fixedHeader) {
|
|
var currentScrollTop = (this.scrolledContent.scrollTop > 56) ? this.scrolledContent.scrollTop : 0;
|
|
(currentScrollTop > this.lastScrollTop) ? this.isStickyMenu = true : this.isStickyMenu = false;
|
|
this.lastScrollTop = currentScrollTop;
|
|
}
|
|
else {
|
|
(this.scrolledContent.scrollTop > 56) ? this.isStickyMenu = true : this.isStickyMenu = false;
|
|
}
|
|
}
|
|
};
|
|
PagesComponent.prototype.scrollToTop = function () {
|
|
var _this = this;
|
|
var scrollDuration = 200;
|
|
var scrollStep = -this.scrolledContent.scrollTop / (scrollDuration / 20);
|
|
var scrollInterval = setInterval(function () {
|
|
if (_this.scrolledContent.scrollTop !== 0) {
|
|
_this.scrolledContent.scrollBy(0, scrollStep);
|
|
}
|
|
else {
|
|
clearInterval(scrollInterval);
|
|
}
|
|
}, 10);
|
|
if (window.innerWidth <= 768) {
|
|
this.scrolledContent.scrollTop = 0;
|
|
}
|
|
};
|
|
PagesComponent.prototype.onWindowResize = function () {
|
|
if (window.innerWidth <= 768) {
|
|
this.settings.sidenavIsOpened = false;
|
|
this.settings.sidenavIsPinned = false;
|
|
this.settings.menu = 'vertical';
|
|
}
|
|
else {
|
|
(this.defaultMenu === 'horizontal') ? this.settings.menu = 'horizontal' : this.settings.menu = 'vertical';
|
|
this.settings.sidenavIsOpened = true;
|
|
this.settings.sidenavIsPinned = true;
|
|
}
|
|
};
|
|
PagesComponent.prototype.closeSubMenus = function () {
|
|
var menu = document.querySelector('.sidenav-menu-outer');
|
|
if (menu) {
|
|
for (var i = 0; i < menu.children[0].children.length; i++) {
|
|
var child = menu.children[0].children[i];
|
|
if (child) {
|
|
if (child.children[0].classList.contains('expanded')) {
|
|
child.children[0].classList.remove('expanded');
|
|
child.children[1].classList.remove('show');
|
|
}
|
|
}
|
|
}
|
|
}
|
|
};
|
|
PagesComponent.prototype.ngOnDestroy = function () {
|
|
this.unsubSettings.next();
|
|
this.unsubSettings.complete();
|
|
};
|
|
__decorate([
|
|
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])('sidenav'),
|
|
__metadata("design:type", Object)
|
|
], PagesComponent.prototype, "sidenav", void 0);
|
|
__decorate([
|
|
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["HostListener"])('window:resize'),
|
|
__metadata("design:type", Function),
|
|
__metadata("design:paramtypes", []),
|
|
__metadata("design:returntype", void 0)
|
|
], PagesComponent.prototype, "onWindowResize", null);
|
|
PagesComponent = __decorate([
|
|
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
|
|
selector: 'rtl-pages',
|
|
template: __webpack_require__(/*! ./pages.component.html */ "./src/app/pages/pages.component.html"),
|
|
styles: [__webpack_require__(/*! ./pages.component.scss */ "./src/app/pages/pages.component.scss")],
|
|
providers: [_theme_components_menu_menu_service__WEBPACK_IMPORTED_MODULE_3__["MenuService"]]
|
|
}),
|
|
__metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"], _theme_components_menu_menu_service__WEBPACK_IMPORTED_MODULE_3__["MenuService"], _shared_services_rtl_service__WEBPACK_IMPORTED_MODULE_2__["RTLService"]])
|
|
], PagesComponent);
|
|
return PagesComponent;
|
|
}());
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/pages/peers/peers.component.css":
|
|
/*!*************************************************!*\
|
|
!*** ./src/app/pages/peers/peers.component.css ***!
|
|
\*************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = ".mat-column-address {\r\n flex: 0 0 150px;\r\n}\r\n\r\n.mat-column-alias, .mat-column-bytes_sent, .mat-column-bytes_recv, .mat-column-sat_sent, .mat-column-sat_recv, .mat-column-inbound, .mat-column-ping_time {\r\n flex: 0 0 80px;\r\n}\r\n\r\n.mat-column-pub_key {\r\n margin-right: 30px;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n display: table-cell;\r\n padding-top: 5px;\r\n line-height: 25px;\r\n min-height: 25px;\r\n}\r\n\r\n.wide-tooltip {\r\n width: 360px;\r\n min-width: 360px;\r\n}\r\n"
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/pages/peers/peers.component.html":
|
|
/*!**************************************************!*\
|
|
!*** ./src/app/pages/peers/peers.component.html ***!
|
|
\**************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = "<div fxLayout=\"column\">\r\n <div class=\"flex-p\">\r\n <mat-card>\r\n <mat-card-header>\r\n <mat-card-subtitle>\r\n <h2>Add Peer</h2>\r\n </mat-card-subtitle>\r\n </mat-card-header>\r\n <mat-card-content>\r\n <form fxLayout=\"row\" fxLayoutAlign=\"start\">\r\n <mat-form-field fxFlex=\"80\" fxLayoutAlign=\"start\">\r\n <input matInput placeholder=\"Lightning Address (Pubkey@IPaddress:Port)\" name=\"peerAddress\" [(ngModel)]=\"peerAddress\" (keyup)=\"validateAddress()\">\r\n </mat-form-field>\r\n <button fxFlex=\"10\" fxLayoutAlign=\"center center\" mat-raised-button color=\"primary\" [disabled]=\"invalidAddress\" (click)=\"onAddPeer()\">\r\n <p *ngIf=\"invalidAddress && peerAddress!==''; else addText\">Invalid Address</p>\r\n <ng-template #addText><p>Add</p></ng-template>\r\n </button>\r\n </form> \r\n </mat-card-content>\r\n </mat-card>\r\n </div>\r\n <div class=\"flex-p\">\r\n <mat-table #table [dataSource]=\"peers\" matSort class=\"mat-elevation-z8\">\r\n <ng-container matColumnDef=\"pub_key\">\r\n <mat-header-cell *matHeaderCellDef mat-sort-header> Pub Key </mat-header-cell>\r\n <mat-cell *matCellDef=\"let peer\" matTooltip=\"{{peer.pub_key}}\" [matTooltipPosition]=\"position\" matTooltipClass=\"wide-tooltip\"> {{peer.pub_key}} </mat-cell>\r\n </ng-container>\r\n <ng-container matColumnDef=\"alias\">\r\n <mat-header-cell *matHeaderCellDef mat-sort-header> Alias </mat-header-cell>\r\n <mat-cell *matCellDef=\"let peer\"> {{peer.alias}} </mat-cell>\r\n </ng-container>\r\n <ng-container matColumnDef=\"address\">\r\n <mat-header-cell *matHeaderCellDef mat-sort-header> Address </mat-header-cell>\r\n <mat-cell *matCellDef=\"let peer\"> {{peer.address}} </mat-cell>\r\n </ng-container>\r\n <ng-container matColumnDef=\"bytes_sent\">\r\n <mat-header-cell *matHeaderCellDef mat-sort-header> Bytes Sent </mat-header-cell>\r\n <mat-cell *matCellDef=\"let peer\"> {{peer.bytes_sent}} </mat-cell>\r\n </ng-container>\r\n <ng-container matColumnDef=\"bytes_recv\">\r\n <mat-header-cell *matHeaderCellDef mat-sort-header> Bytes Recv </mat-header-cell>\r\n <mat-cell *matCellDef=\"let peer\"> {{peer.bytes_recv}} </mat-cell>\r\n </ng-container>\r\n <ng-container matColumnDef=\"sat_sent\">\r\n <mat-header-cell *matHeaderCellDef mat-sort-header> Sats Sent </mat-header-cell>\r\n <mat-cell *matCellDef=\"let peer\"> {{peer.sat_sent}} </mat-cell>\r\n </ng-container>\r\n <ng-container matColumnDef=\"sat_recv\">\r\n <mat-header-cell *matHeaderCellDef mat-sort-header> Sats Recv </mat-header-cell>\r\n <mat-cell *matCellDef=\"let peer\"> {{peer.sat_recv}} </mat-cell>\r\n </ng-container>\r\n <ng-container matColumnDef=\"inbound\">\r\n <mat-header-cell *matHeaderCellDef mat-sort-header> Inbound </mat-header-cell>\r\n <mat-cell *matCellDef=\"let peer\"> {{peer.inbound}} </mat-cell>\r\n </ng-container>\r\n <ng-container matColumnDef=\"ping_time\">\r\n <mat-header-cell *matHeaderCellDef mat-sort-header> Ping </mat-header-cell>\r\n <mat-cell *matCellDef=\"let peer\"> {{peer.ping_time}} </mat-cell>\r\n </ng-container>\r\n <mat-header-row *matHeaderRowDef=\"displayedColumns\"></mat-header-row>\r\n <mat-row *matRowDef=\"let row; columns: displayedColumns;\"></mat-row>\r\n </mat-table>\r\n </div>\r\n </div>"
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/pages/peers/peers.component.ts":
|
|
/*!************************************************!*\
|
|
!*** ./src/app/pages/peers/peers.component.ts ***!
|
|
\************************************************/
|
|
/*! exports provided: PeersComponent */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PeersComponent", function() { return PeersComponent; });
|
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
|
|
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js");
|
|
/* harmony import */ var _angular_material__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/material */ "./node_modules/@angular/material/esm5/material.es5.js");
|
|
/* harmony import */ var _shared_services_rtl_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../shared/services/rtl.service */ "./src/app/shared/services/rtl.service.ts");
|
|
/* harmony import */ var _shared_services_logger_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../shared/services/logger.service */ "./src/app/shared/services/logger.service.ts");
|
|
/* harmony import */ var _theme_components_alert_message_alert_message_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../theme/components/alert-message/alert-message.component */ "./src/app/theme/components/alert-message/alert-message.component.ts");
|
|
/* harmony import */ var _theme_components_spinner_dialog_spinner_dialog_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../theme/components/spinner-dialog/spinner-dialog.component */ "./src/app/theme/components/spinner-dialog/spinner-dialog.component.ts");
|
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
};
|
|
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
|
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var PeersComponent = /** @class */ (function () {
|
|
function PeersComponent(rtlService, logger, dialog) {
|
|
this.rtlService = rtlService;
|
|
this.logger = logger;
|
|
this.dialog = dialog;
|
|
this.position = 'above';
|
|
this.displayedColumns = ['pub_key', 'alias', 'address', 'bytes_sent', 'bytes_recv', 'sat_sent', 'sat_recv', 'inbound', 'ping_time'];
|
|
this.peerAddress = '';
|
|
this.invalidAddress = true;
|
|
this.peersJSONArr = [];
|
|
this.peersSub = new rxjs__WEBPACK_IMPORTED_MODULE_1__["Subject"]();
|
|
}
|
|
PeersComponent.prototype.ngOnInit = function () {
|
|
var _this = this;
|
|
this.rtlService.getPeers()
|
|
.takeUntil(this.peersSub)
|
|
.subscribe(function (peers) {
|
|
_this.peersJSONArr = peers;
|
|
_this.peers = (undefined === peers) ? new _angular_material__WEBPACK_IMPORTED_MODULE_2__["MatTableDataSource"]([]) : new _angular_material__WEBPACK_IMPORTED_MODULE_2__["MatTableDataSource"](_this.peersJSONArr.slice());
|
|
_this.peers.data = _this.peersJSONArr;
|
|
_this.peers.sort = _this.sort;
|
|
_this.logger.info(_this.peers);
|
|
});
|
|
};
|
|
PeersComponent.prototype.onAddPeer = function () {
|
|
var _this = this;
|
|
var dialogRef = this.dialog.open(_theme_components_spinner_dialog_spinner_dialog_component__WEBPACK_IMPORTED_MODULE_6__["SpinnerDialogComponent"], { data: { message: 'Adding Peer...' } });
|
|
var deviderIndex = this.peerAddress.search('@');
|
|
var pubkey = this.peerAddress.substring(0, deviderIndex);
|
|
var host = this.peerAddress.substring(deviderIndex + 1);
|
|
this.rtlService.addPeer(pubkey, host)
|
|
.subscribe(function (data) {
|
|
dialogRef.close();
|
|
_this.peersJSONArr.push({ pub_key: pubkey, address: host });
|
|
_this.peers.data = _this.peersJSONArr;
|
|
_this.peerAddress = '';
|
|
_this.logger.info(data);
|
|
_this.dialog.open(_theme_components_alert_message_alert_message_component__WEBPACK_IMPORTED_MODULE_5__["AlertMessageComponent"], { width: '700px', data: { type: 'SUCCESS', message: 'Peer Added Successfully!' } });
|
|
}, function (err) {
|
|
dialogRef.close();
|
|
_this.dialog.open(_theme_components_alert_message_alert_message_component__WEBPACK_IMPORTED_MODULE_5__["AlertMessageComponent"], { width: '700px', data: { type: 'ERROR', message: err.error.error } });
|
|
_this.logger.error(err);
|
|
});
|
|
};
|
|
PeersComponent.prototype.validateAddress = function () {
|
|
var address_regex = '^([a-zA-Z0-9]){1,66}@(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]):[0-9]+$';
|
|
this.invalidAddress = (this.peerAddress.search(address_regex) > -1) ? false : true;
|
|
};
|
|
PeersComponent.prototype.ngOnDestroy = function () {
|
|
this.peersSub.next();
|
|
this.peersSub.complete();
|
|
};
|
|
__decorate([
|
|
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_angular_material__WEBPACK_IMPORTED_MODULE_2__["MatSort"]),
|
|
__metadata("design:type", _angular_material__WEBPACK_IMPORTED_MODULE_2__["MatSort"])
|
|
], PeersComponent.prototype, "sort", void 0);
|
|
PeersComponent = __decorate([
|
|
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
|
|
selector: 'rtl-peers',
|
|
template: __webpack_require__(/*! ./peers.component.html */ "./src/app/pages/peers/peers.component.html"),
|
|
styles: [__webpack_require__(/*! ./peers.component.css */ "./src/app/pages/peers/peers.component.css")],
|
|
encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None
|
|
}),
|
|
__metadata("design:paramtypes", [_shared_services_rtl_service__WEBPACK_IMPORTED_MODULE_3__["RTLService"], _shared_services_logger_service__WEBPACK_IMPORTED_MODULE_4__["LoggerService"], _angular_material__WEBPACK_IMPORTED_MODULE_2__["MatDialog"]])
|
|
], PeersComponent);
|
|
return PeersComponent;
|
|
}());
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/pages/server-config/server-config.component.html":
|
|
/*!******************************************************************!*\
|
|
!*** ./src/app/pages/server-config/server-config.component.html ***!
|
|
\******************************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = "<div fxLayout=\"column\">\r\n <div class=\"flex-p\">\r\n <mat-card>\r\n <mat-card-header>\r\n <mat-card-subtitle>\r\n <h2>Server Configuration</h2>\r\n </mat-card-subtitle>\r\n </mat-card-header>\r\n <mat-card-content>\r\n Work In Progress!\r\n </mat-card-content>\r\n </mat-card>\r\n </div>\r\n</div>"
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/pages/server-config/server-config.component.scss":
|
|
/*!******************************************************************!*\
|
|
!*** ./src/app/pages/server-config/server-config.component.scss ***!
|
|
\******************************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = ""
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/pages/server-config/server-config.component.ts":
|
|
/*!****************************************************************!*\
|
|
!*** ./src/app/pages/server-config/server-config.component.ts ***!
|
|
\****************************************************************/
|
|
/*! exports provided: ServerConfigComponent */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ServerConfigComponent", function() { return ServerConfigComponent; });
|
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
|
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
};
|
|
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
|
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
};
|
|
|
|
var ServerConfigComponent = /** @class */ (function () {
|
|
function ServerConfigComponent() {
|
|
}
|
|
ServerConfigComponent.prototype.ngOnInit = function () {
|
|
};
|
|
ServerConfigComponent = __decorate([
|
|
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
|
|
selector: 'rtl-server-config',
|
|
template: __webpack_require__(/*! ./server-config.component.html */ "./src/app/pages/server-config/server-config.component.html"),
|
|
styles: [__webpack_require__(/*! ./server-config.component.scss */ "./src/app/pages/server-config/server-config.component.scss")]
|
|
}),
|
|
__metadata("design:paramtypes", [])
|
|
], ServerConfigComponent);
|
|
return ServerConfigComponent;
|
|
}());
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/pages/wallet/wallet.component.html":
|
|
/*!****************************************************!*\
|
|
!*** ./src/app/pages/wallet/wallet.component.html ***!
|
|
\****************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = "<div fxLayout=\"column\">\r\n <div class=\"flex-p\">\r\n <mat-card>\r\n <mat-card-header>\r\n <mat-card-subtitle>\r\n <h2>Wallet</h2>\r\n </mat-card-subtitle>\r\n </mat-card-header>\r\n <mat-card-content>\r\n Work In Progress!\r\n </mat-card-content>\r\n </mat-card>\r\n </div>\r\n</div>"
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/pages/wallet/wallet.component.scss":
|
|
/*!****************************************************!*\
|
|
!*** ./src/app/pages/wallet/wallet.component.scss ***!
|
|
\****************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = ""
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/pages/wallet/wallet.component.ts":
|
|
/*!**************************************************!*\
|
|
!*** ./src/app/pages/wallet/wallet.component.ts ***!
|
|
\**************************************************/
|
|
/*! exports provided: WalletComponent */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "WalletComponent", function() { return WalletComponent; });
|
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
|
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
};
|
|
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
|
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
};
|
|
|
|
var WalletComponent = /** @class */ (function () {
|
|
function WalletComponent() {
|
|
}
|
|
WalletComponent.prototype.ngOnInit = function () {
|
|
};
|
|
WalletComponent = __decorate([
|
|
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
|
|
selector: 'rtl-wallet',
|
|
template: __webpack_require__(/*! ./wallet.component.html */ "./src/app/pages/wallet/wallet.component.html"),
|
|
styles: [__webpack_require__(/*! ./wallet.component.scss */ "./src/app/pages/wallet/wallet.component.scss")]
|
|
}),
|
|
__metadata("design:paramtypes", [])
|
|
], WalletComponent);
|
|
return WalletComponent;
|
|
}());
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/shared/models/app.settings.ts":
|
|
/*!***********************************************!*\
|
|
!*** ./src/app/shared/models/app.settings.ts ***!
|
|
\***********************************************/
|
|
/*! exports provided: Settings */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Settings", function() { return Settings; });
|
|
var Settings = /** @class */ (function () {
|
|
function Settings(name, loadingSpinner, fixedHeader, sidenavIsOpened, sidenavIsPinned, sidenavUserBlock, menu, menuType, theme, rtl) {
|
|
this.name = name;
|
|
this.loadingSpinner = loadingSpinner;
|
|
this.fixedHeader = fixedHeader;
|
|
this.sidenavIsOpened = sidenavIsOpened;
|
|
this.sidenavIsPinned = sidenavIsPinned;
|
|
this.sidenavUserBlock = sidenavUserBlock;
|
|
this.menu = menu;
|
|
this.menuType = menuType;
|
|
this.theme = theme;
|
|
this.rtl = rtl;
|
|
}
|
|
return Settings;
|
|
}());
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/shared/services/logger.service.ts":
|
|
/*!***************************************************!*\
|
|
!*** ./src/app/shared/services/logger.service.ts ***!
|
|
\***************************************************/
|
|
/*! exports provided: isDebugMode, Logger, LoggerService, ConsoleLoggerService */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isDebugMode", function() { return isDebugMode; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Logger", function() { return Logger; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LoggerService", function() { return LoggerService; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConsoleLoggerService", function() { return ConsoleLoggerService; });
|
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
|
|
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../environments/environment */ "./src/environments/environment.ts");
|
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
};
|
|
|
|
|
|
var isDebugMode = _environments_environment__WEBPACK_IMPORTED_MODULE_1__["environment"].isDebugMode;
|
|
var noop = function () { return undefined; };
|
|
var Logger = /** @class */ (function () {
|
|
function Logger() {
|
|
}
|
|
return Logger;
|
|
}());
|
|
|
|
var LoggerService = /** @class */ (function () {
|
|
function LoggerService() {
|
|
}
|
|
LoggerService.prototype.invokeConsoleMethod = function (type, args) { };
|
|
LoggerService = __decorate([
|
|
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])()
|
|
], LoggerService);
|
|
return LoggerService;
|
|
}());
|
|
|
|
var ConsoleLoggerService = /** @class */ (function () {
|
|
function ConsoleLoggerService() {
|
|
}
|
|
Object.defineProperty(ConsoleLoggerService.prototype, "info", {
|
|
get: function () {
|
|
if (isDebugMode) {
|
|
return console.info.bind(console);
|
|
}
|
|
else {
|
|
return noop;
|
|
}
|
|
},
|
|
enumerable: true,
|
|
configurable: true
|
|
});
|
|
Object.defineProperty(ConsoleLoggerService.prototype, "warn", {
|
|
get: function () {
|
|
if (isDebugMode) {
|
|
return console.warn.bind(console);
|
|
}
|
|
else {
|
|
return noop;
|
|
}
|
|
},
|
|
enumerable: true,
|
|
configurable: true
|
|
});
|
|
Object.defineProperty(ConsoleLoggerService.prototype, "error", {
|
|
get: function () {
|
|
if (isDebugMode) {
|
|
return console.error.bind(console);
|
|
}
|
|
else {
|
|
return noop;
|
|
}
|
|
},
|
|
enumerable: true,
|
|
configurable: true
|
|
});
|
|
ConsoleLoggerService.prototype.invokeConsoleMethod = function (type, args) {
|
|
var logFn = (console)[type] || console.log || noop;
|
|
logFn.apply(console, [args]);
|
|
};
|
|
ConsoleLoggerService = __decorate([
|
|
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])()
|
|
], ConsoleLoggerService);
|
|
return ConsoleLoggerService;
|
|
}());
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/shared/services/rtl.service.ts":
|
|
/*!************************************************!*\
|
|
!*** ./src/app/shared/services/rtl.service.ts ***!
|
|
\************************************************/
|
|
/*! exports provided: RTLService */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RTLService", function() { return RTLService; });
|
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
|
|
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/fesm5/http.js");
|
|
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js");
|
|
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../environments/environment */ "./src/environments/environment.ts");
|
|
/* harmony import */ var _logger_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./logger.service */ "./src/app/shared/services/logger.service.ts");
|
|
/* harmony import */ var _models_app_settings__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../models/app.settings */ "./src/app/shared/models/app.settings.ts");
|
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
};
|
|
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
|
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var RTLService = /** @class */ (function () {
|
|
function RTLService(http, logger) {
|
|
this.http = http;
|
|
this.logger = logger;
|
|
this.settings = new _models_app_settings__WEBPACK_IMPORTED_MODULE_5__["Settings"]('RTL', true, true, true, true, true, 'horizontal', 'default', 'blue-dark', false); // Dafault Setting if reading file fails
|
|
this.information = {};
|
|
this.peers = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Observable"]();
|
|
this.UIsettingsUpdated = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
|
|
this.informationUpdated = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
|
|
this.peersUpdated = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
|
|
}
|
|
RTLService.prototype.readInformation = function () {
|
|
return this.information;
|
|
};
|
|
RTLService.prototype.getInfo = function () {
|
|
var _this = this;
|
|
this.http.get(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].GETINFO_API)
|
|
.subscribe(function (data) {
|
|
_this.information = data;
|
|
if (undefined !== _this.information.chains) {
|
|
_this.information.chains.forEach(function (chain, i) {
|
|
_this.information.chains[i] = _this.toCapitalCase(chain);
|
|
});
|
|
}
|
|
_this.logger.info(_this.information);
|
|
_this.informationUpdated.next(_this.information);
|
|
}, function (err) {
|
|
_this.informationUpdated.next(err);
|
|
});
|
|
};
|
|
RTLService.prototype.getChannels = function (routeParam, channelStatus) {
|
|
var options = (undefined === channelStatus || channelStatus === '') ? {} : { params: new _angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpParams"]().set(channelStatus, 'true') };
|
|
return this.http.get(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].CHANNELS_API + '/' + routeParam, options);
|
|
};
|
|
RTLService.prototype.addChannel = function (pubkey, fundingAmt) {
|
|
return this.http.post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].CHANNELS_API, { node_pubkey: pubkey, local_funding_amount: fundingAmt });
|
|
};
|
|
RTLService.prototype.readPeers = function () {
|
|
return this.peers;
|
|
};
|
|
RTLService.prototype.getPeers = function () {
|
|
return this.peers = this.http.get(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].PEERS_API);
|
|
};
|
|
RTLService.prototype.addPeer = function (pubkey, host) {
|
|
return this.http.post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].PEERS_API, { pubkey: pubkey, host: host, perm: false });
|
|
};
|
|
RTLService.prototype.getFees = function () {
|
|
return this.http.get(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].FEES_API);
|
|
};
|
|
RTLService.prototype.getBalance = function (routeParam) {
|
|
if (undefined === routeParam || null === routeParam) {
|
|
routeParam = '';
|
|
}
|
|
return this.http.get(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].BALANCE_API + '/' + routeParam);
|
|
};
|
|
RTLService.prototype.operateWallet = function (operation, pwd) {
|
|
return this.http.post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].WALLET_API + '/' + operation, { wallet_password: pwd });
|
|
};
|
|
RTLService.prototype.getUISettings = function () {
|
|
return this.settings;
|
|
};
|
|
RTLService.prototype.fetchUISettings = function () {
|
|
var _this = this;
|
|
this.http.get(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].UI_SETTINGS_API)
|
|
.subscribe(function (data) {
|
|
_this.settings = data.settings;
|
|
_this.logger.info(_this.settings);
|
|
_this.UIsettingsUpdated.next(_this.settings);
|
|
});
|
|
};
|
|
RTLService.prototype.updateUISettings = function (settings) {
|
|
var _this = this;
|
|
this.logger.info('Updated Settings:');
|
|
this.logger.info(settings);
|
|
this.http.post(_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].UI_SETTINGS_API, { updatedSettings: settings })
|
|
.subscribe(function (data) {
|
|
_this.logger.info(data);
|
|
_this.UIsettingsUpdated.next(settings);
|
|
}, function (err) {
|
|
_this.logger.error('UI Settings Updation Failed!');
|
|
});
|
|
};
|
|
RTLService.prototype.toCapitalCase = function (str) {
|
|
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
};
|
|
RTLService = __decorate([
|
|
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])(),
|
|
__metadata("design:paramtypes", [_angular_common_http__WEBPACK_IMPORTED_MODULE_1__["HttpClient"], _logger_service__WEBPACK_IMPORTED_MODULE_4__["LoggerService"]])
|
|
], RTLService);
|
|
return RTLService;
|
|
}());
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/shared/shared.module.ts":
|
|
/*!*****************************************!*\
|
|
!*** ./src/app/shared/shared.module.ts ***!
|
|
\*****************************************/
|
|
/*! exports provided: SharedModule */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SharedModule", function() { return SharedModule; });
|
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
|
|
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/fesm5/common.js");
|
|
/* harmony import */ var _angular_flex_layout__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/flex-layout */ "./node_modules/@angular/flex-layout/esm5/flex-layout.es5.js");
|
|
/* harmony import */ var _angular_material__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/material */ "./node_modules/@angular/material/esm5/material.es5.js");
|
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
};
|
|
|
|
|
|
|
|
|
|
var SharedModule = /** @class */ (function () {
|
|
function SharedModule() {
|
|
}
|
|
SharedModule = __decorate([
|
|
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
|
|
imports: [
|
|
_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"],
|
|
_angular_flex_layout__WEBPACK_IMPORTED_MODULE_2__["FlexLayoutModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatAutocompleteModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatButtonModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatButtonToggleModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatCardModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatCheckboxModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatChipsModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatDatepickerModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatDialogModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatExpansionModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatGridListModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatIconModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatInputModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatListModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatMenuModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatNativeDateModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatPaginatorModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatProgressBarModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatProgressSpinnerModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatRadioModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatRippleModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatSelectModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatSidenavModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatSliderModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatSlideToggleModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatSnackBarModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatSortModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatTableModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatTabsModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatToolbarModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatTooltipModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatStepperModule"]
|
|
],
|
|
exports: [
|
|
_angular_flex_layout__WEBPACK_IMPORTED_MODULE_2__["FlexLayoutModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatAutocompleteModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatButtonModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatButtonToggleModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatCardModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatCheckboxModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatChipsModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatDatepickerModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatDialogModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatExpansionModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatGridListModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatIconModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatInputModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatListModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatMenuModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatNativeDateModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatPaginatorModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatProgressBarModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatProgressSpinnerModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatRadioModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatRippleModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatSelectModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatSidenavModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatSliderModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatSlideToggleModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatSnackBarModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatSortModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatTableModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatTabsModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatToolbarModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatTooltipModule"],
|
|
_angular_material__WEBPACK_IMPORTED_MODULE_3__["MatStepperModule"]
|
|
],
|
|
declarations: []
|
|
})
|
|
], SharedModule);
|
|
return SharedModule;
|
|
}());
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/theme/components/alert-message/alert-message.component.html":
|
|
/*!*****************************************************************************!*\
|
|
!*** ./src/app/theme/components/alert-message/alert-message.component.html ***!
|
|
\*****************************************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = "<div fxLayout=\"row\">\n <div class=\"w-100\">\n <mat-card-header class=\"bg-primary p-1\">\n <h2 fxFlex=\"93\">{{data.type}}</h2>\n <mat-icon fxFlex=\"7\" fxLayoutAlign=\"end\" type=\"button\" (click)=\"onClose()\">close</mat-icon>\n </mat-card-header>\n <mat-card-content class=\"m-0\">\n <p class=\"pb-2 p-2\">{{data.message}}</p>\n <mat-divider class=\"pb-1\"></mat-divider>\n <div fxLayoutAlign=\"center\">\n <button mat-raised-button color=\"primary\" class=\"mb-1\" type=\"button\" (click)=\"onClose()\">Close</button>\n </div>\n </mat-card-content>\n </div>\n</div>\n"
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/theme/components/alert-message/alert-message.component.scss":
|
|
/*!*****************************************************************************!*\
|
|
!*** ./src/app/theme/components/alert-message/alert-message.component.scss ***!
|
|
\*****************************************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = ".p-2 {\n padding: 1rem; }\n\n.pb-1 {\n padding-bottom: 0.3rem; }\n\n.pb-2 {\n padding-bottom: 1rem; }\n\n.mb-1 {\n margin-bottom: 0.5rem; }\n\n.mat-icon[type=\"button\"] {\n cursor: pointer; }\n"
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/theme/components/alert-message/alert-message.component.ts":
|
|
/*!***************************************************************************!*\
|
|
!*** ./src/app/theme/components/alert-message/alert-message.component.ts ***!
|
|
\***************************************************************************/
|
|
/*! exports provided: AlertMessageComponent */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AlertMessageComponent", function() { return AlertMessageComponent; });
|
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
|
|
/* harmony import */ var _angular_material__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/material */ "./node_modules/@angular/material/esm5/material.es5.js");
|
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
};
|
|
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
|
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
};
|
|
var __param = (undefined && undefined.__param) || function (paramIndex, decorator) {
|
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
};
|
|
|
|
|
|
var AlertMessageComponent = /** @class */ (function () {
|
|
function AlertMessageComponent(dialogRef, data) {
|
|
this.dialogRef = dialogRef;
|
|
this.data = data;
|
|
}
|
|
AlertMessageComponent.prototype.ngOnInit = function () {
|
|
};
|
|
AlertMessageComponent.prototype.onClose = function () {
|
|
this.dialogRef.close();
|
|
};
|
|
AlertMessageComponent = __decorate([
|
|
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
|
|
selector: 'rtl-alert-message',
|
|
template: __webpack_require__(/*! ./alert-message.component.html */ "./src/app/theme/components/alert-message/alert-message.component.html"),
|
|
styles: [__webpack_require__(/*! ./alert-message.component.scss */ "./src/app/theme/components/alert-message/alert-message.component.scss")]
|
|
}),
|
|
__param(1, Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"])(_angular_material__WEBPACK_IMPORTED_MODULE_1__["MAT_DIALOG_DATA"])),
|
|
__metadata("design:paramtypes", [_angular_material__WEBPACK_IMPORTED_MODULE_1__["MatDialogRef"], Object])
|
|
], AlertMessageComponent);
|
|
return AlertMessageComponent;
|
|
}());
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/theme/components/breadcrumb/breadcrumb.component.html":
|
|
/*!***********************************************************************!*\
|
|
!*** ./src/app/theme/components/breadcrumb/breadcrumb.component.html ***!
|
|
\***********************************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = "<div fxLayout=\"row wrap\" *ngIf=\"router.url != '/'\">\r\n <div fxFlex=\"100\" class=\"flex-p\">\r\n <mat-card fxLayout=\"row\" class=\"breadcrumb\">\r\n <a *ngIf=\"router.url != '/'\" routerLink=\"/home\" class=\"breadcrumb-item\" fxLayout=\"row\" fxLayoutAlign=\"start center\" (click)=\"closeSubMenus()\">\r\n <mat-icon>home</mat-icon>\r\n <span class=\"breadcrumb-title\">Home</span>\r\n </a>\r\n <div *ngFor=\"let breadcrumb of breadcrumbs; let i = index;\" class=\"breadcrumb-item\" fxLayout=\"row\" fxLayoutAlign=\"start center\">\r\n <a [hidden]=\"i == (breadcrumbs.length - 1)\" [routerLink]=\"[breadcrumb.url]\">{{breadcrumb.name}}</a>\r\n <span [hidden]=\"i != (breadcrumbs.length - 1)\" class=\"breadcrumb-title active\">{{breadcrumb.name}}</span>\r\n </div>\r\n </mat-card>\r\n </div>\r\n</div>"
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/theme/components/breadcrumb/breadcrumb.component.scss":
|
|
/*!***********************************************************************!*\
|
|
!*** ./src/app/theme/components/breadcrumb/breadcrumb.component.scss ***!
|
|
\***********************************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = ".breadcrumb {\n padding: 8px; }\n .breadcrumb .mat-icon {\n font-size: 20px;\n height: 20px;\n width: 20px;\n padding: 0 6px; }\n .breadcrumb .breadcrumb-title.active {\n text-transform: uppercase;\n font-weight: 500; }\n .breadcrumb .breadcrumb-item + .breadcrumb-item:before {\n display: inline-block;\n padding-right: .5rem;\n padding-left: .5rem;\n content: \"/\"; }\n"
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/theme/components/breadcrumb/breadcrumb.component.ts":
|
|
/*!*********************************************************************!*\
|
|
!*** ./src/app/theme/components/breadcrumb/breadcrumb.component.ts ***!
|
|
\*********************************************************************/
|
|
/*! exports provided: BreadcrumbComponent */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BreadcrumbComponent", function() { return BreadcrumbComponent; });
|
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
|
|
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
|
|
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js");
|
|
/* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/platform-browser */ "./node_modules/@angular/platform-browser/fesm5/platform-browser.js");
|
|
/* harmony import */ var _shared_services_rtl_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../shared/services/rtl.service */ "./src/app/shared/services/rtl.service.ts");
|
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
};
|
|
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
|
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
var BreadcrumbComponent = /** @class */ (function () {
|
|
function BreadcrumbComponent(router, activatedRoute, title, rtlService) {
|
|
this.router = router;
|
|
this.activatedRoute = activatedRoute;
|
|
this.title = title;
|
|
this.rtlService = rtlService;
|
|
this.unsubSettings = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
|
|
this.breadcrumbs = [];
|
|
this.settings = this.rtlService.getUISettings();
|
|
}
|
|
BreadcrumbComponent.prototype.ngOnInit = function () {
|
|
var _this = this;
|
|
this.router.events.subscribe(function (event) {
|
|
if (event instanceof _angular_router__WEBPACK_IMPORTED_MODULE_1__["NavigationEnd"]) {
|
|
_this.breadcrumbs = [];
|
|
_this.parseRoute(_this.router.routerState.snapshot.root);
|
|
_this.pageTitle = '';
|
|
_this.breadcrumbs.forEach(function (breadcrumb) {
|
|
_this.pageTitle += ' > ' + breadcrumb.name;
|
|
});
|
|
_this.title.setTitle(_this.settings.name + _this.pageTitle);
|
|
}
|
|
});
|
|
this.rtlService.UIsettingsUpdated
|
|
.takeUntil(this.unsubSettings)
|
|
.subscribe(function (settings) {
|
|
_this.settings = settings;
|
|
if (window.innerWidth <= 768) {
|
|
_this.settings.menu = 'vertical';
|
|
_this.settings.sidenavIsOpened = false;
|
|
_this.settings.sidenavIsPinned = false;
|
|
}
|
|
});
|
|
};
|
|
BreadcrumbComponent.prototype.parseRoute = function (node) {
|
|
if (node.data['breadcrumb']) {
|
|
if (node.url.length) {
|
|
var urlSegments_1 = [];
|
|
node.pathFromRoot.forEach(function (routerState) {
|
|
urlSegments_1 = urlSegments_1.concat(routerState.url);
|
|
});
|
|
var url = urlSegments_1.map(function (urlSegment) {
|
|
return urlSegment.path;
|
|
}).join('/');
|
|
this.breadcrumbs.push({
|
|
name: node.data['breadcrumb'],
|
|
url: '/' + url
|
|
});
|
|
}
|
|
}
|
|
if (node.firstChild) {
|
|
this.parseRoute(node.firstChild);
|
|
}
|
|
};
|
|
BreadcrumbComponent.prototype.closeSubMenus = function () {
|
|
var menu = document.querySelector('.sidenav-menu-outer');
|
|
if (menu) {
|
|
for (var i = 0; i < menu.children[0].children.length; i++) {
|
|
var child = menu.children[0].children[i];
|
|
if (child) {
|
|
if (child.children[0].classList.contains('expanded')) {
|
|
child.children[0].classList.remove('expanded');
|
|
child.children[1].classList.remove('show');
|
|
}
|
|
}
|
|
}
|
|
}
|
|
};
|
|
BreadcrumbComponent.prototype.ngOnDestroy = function () {
|
|
this.unsubSettings.next();
|
|
this.unsubSettings.complete();
|
|
};
|
|
BreadcrumbComponent = __decorate([
|
|
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
|
|
selector: 'rtl-breadcrumb',
|
|
template: __webpack_require__(/*! ./breadcrumb.component.html */ "./src/app/theme/components/breadcrumb/breadcrumb.component.html"),
|
|
styles: [__webpack_require__(/*! ./breadcrumb.component.scss */ "./src/app/theme/components/breadcrumb/breadcrumb.component.scss")]
|
|
}),
|
|
__metadata("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"], _angular_platform_browser__WEBPACK_IMPORTED_MODULE_3__["Title"], _shared_services_rtl_service__WEBPACK_IMPORTED_MODULE_4__["RTLService"]])
|
|
], BreadcrumbComponent);
|
|
return BreadcrumbComponent;
|
|
}());
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/theme/components/fullscreen/fullscreen.component.ts":
|
|
/*!*********************************************************************!*\
|
|
!*** ./src/app/theme/components/fullscreen/fullscreen.component.ts ***!
|
|
\*********************************************************************/
|
|
/*! exports provided: FullScreenComponent */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "FullScreenComponent", function() { return FullScreenComponent; });
|
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
|
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
};
|
|
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
|
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
};
|
|
|
|
var FullScreenComponent = /** @class */ (function () {
|
|
function FullScreenComponent() {
|
|
this.toggle = false;
|
|
}
|
|
FullScreenComponent.prototype.requestFullscreen = function (elem) {
|
|
if (elem.requestFullscreen) {
|
|
elem.requestFullscreen();
|
|
}
|
|
else if (elem.webkitRequestFullscreen) {
|
|
elem.webkitRequestFullscreen();
|
|
}
|
|
else if (elem.mozRequestFullScreen) {
|
|
elem.mozRequestFullScreen();
|
|
}
|
|
else if (elem.msRequestFullscreen) {
|
|
elem.msRequestFullscreen();
|
|
}
|
|
else {
|
|
console.log('Fullscreen API is not supported.');
|
|
}
|
|
};
|
|
FullScreenComponent.prototype.exitFullscreen = function () {
|
|
if (document.exitFullscreen) {
|
|
document.exitFullscreen();
|
|
}
|
|
else if (document.webkitExitFullscreen) {
|
|
document.webkitExitFullscreen();
|
|
}
|
|
else if (document.mozCancelFullScreen) {
|
|
document.mozCancelFullScreen();
|
|
}
|
|
else if (document.msExitFullscreen) {
|
|
document.msExitFullscreen();
|
|
}
|
|
else {
|
|
console.log('Fullscreen API is not supported.');
|
|
}
|
|
};
|
|
FullScreenComponent.prototype.getFullscreen = function () {
|
|
if (this.expand) {
|
|
this.requestFullscreen(document.documentElement);
|
|
}
|
|
if (this.compress) {
|
|
this.exitFullscreen();
|
|
}
|
|
};
|
|
FullScreenComponent.prototype.onFullScreenChange = function () {
|
|
var fullscreenElement = document.fullscreenElement || document.mozFullScreenElement ||
|
|
document.webkitFullscreenElement || document.msFullscreenElement;
|
|
if (fullscreenElement != null) {
|
|
this.toggle = true;
|
|
}
|
|
else {
|
|
this.toggle = false;
|
|
}
|
|
};
|
|
__decorate([
|
|
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])('expand'),
|
|
__metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"])
|
|
], FullScreenComponent.prototype, "expand", void 0);
|
|
__decorate([
|
|
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])('compress'),
|
|
__metadata("design:type", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ElementRef"])
|
|
], FullScreenComponent.prototype, "compress", void 0);
|
|
__decorate([
|
|
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["HostListener"])('click'),
|
|
__metadata("design:type", Function),
|
|
__metadata("design:paramtypes", []),
|
|
__metadata("design:returntype", void 0)
|
|
], FullScreenComponent.prototype, "getFullscreen", null);
|
|
__decorate([
|
|
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["HostListener"])('window:resize'),
|
|
__metadata("design:type", Function),
|
|
__metadata("design:paramtypes", []),
|
|
__metadata("design:returntype", void 0)
|
|
], FullScreenComponent.prototype, "onFullScreenChange", null);
|
|
FullScreenComponent = __decorate([
|
|
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
|
|
selector: 'rtl-fullscreen',
|
|
encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
|
|
template: "\n <button mat-icon-button class=\"full-screen\">\n <mat-icon *ngIf=\"!toggle\" #expand>fullscreen</mat-icon>\n <mat-icon *ngIf=\"toggle\" #compress>fullscreen_exit</mat-icon>\n </button>"
|
|
})
|
|
], FullScreenComponent);
|
|
return FullScreenComponent;
|
|
}());
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/theme/components/menu/horizontal-menu/horizontal-menu.component.html":
|
|
/*!**************************************************************************************!*\
|
|
!*** ./src/app/theme/components/menu/horizontal-menu/horizontal-menu.component.html ***!
|
|
\**************************************************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = "<div [fxLayout]=\"(menuParentId == 0) ? 'row' : 'column'\" fxLayoutAlign=\"start center\">\r\n <div *ngFor=\"let menu of menuItems\" class=\"horizontal-menu-item w-100\">\r\n <a *ngIf=\"menu.routerLink && !menu.hasSubMenu\" mat-button fxLayout=\"row\" [fxLayoutAlign]=\"(settings.menuType=='default') ? 'start center' : 'center center'\"\r\n [routerLink]=\"[menu.routerLink]\" routerLinkActive=\"active-link\" [routerLinkActiveOptions]=\"{exact:true}\" [matTooltip]=\"menu.title\"\r\n matTooltipPosition=\"above\" [matTooltipDisabled]=\"(settings.menuType=='mini') ? 'false' : 'true'\" [id]=\"'horizontal-menu-item-'+menu.id\">\r\n <mat-icon class=\"horizontal-menu-icon\">{{menu.icon}}</mat-icon>\r\n <span class=\"horizontal-menu-title\">{{menu.title}}</span>\r\n </a>\r\n <a *ngIf=\"menu.href && !menu.subMenu\" mat-button fxLayout=\"row\" [fxLayoutAlign]=\"(settings.menuType=='default') ? 'start center' : 'center center'\"\r\n [attr.href]=\"menu.href || ''\" [attr.target]=\"menu.target || ''\" [matTooltip]=\"menu.title\" matTooltipPosition=\"above\"\r\n [matTooltipDisabled]=\"(settings.menuType=='mini') ? 'false' : 'true'\" [id]=\"'horizontal-menu-item-'+menu.id\">\r\n <mat-icon class=\"horizontal-menu-icon\">{{menu.icon}}</mat-icon>\r\n <span class=\"horizontal-menu-title\">{{menu.title}}</span>\r\n </a>\r\n <a *ngIf=\"menu.hasSubMenu\" mat-button fxLayout=\"row\" [fxLayoutAlign]=\"(settings.menuType=='default') ? 'start center' : 'center center'\"\r\n [matTooltip]=\"menu.title\" matTooltipPosition=\"above\" [matTooltipDisabled]=\"(settings.menuType=='mini') ? 'false' : 'true'\"\r\n [id]=\"'horizontal-menu-item-'+menu.id\">\r\n <mat-icon class=\"horizontal-menu-icon\">{{menu.icon}}</mat-icon>\r\n <span class=\"horizontal-menu-title\">{{menu.title}}</span>\r\n </a>\r\n <div *ngIf=\"menu.hasSubMenu\" class=\"horizontal-sub-menu\" [id]=\"'horizontal-sub-menu-'+menu.id\">\r\n <rtl-horizontal-menu [menuParentId]=\"menu.id\"></rtl-horizontal-menu>\r\n </div>\r\n </div>\r\n</div>"
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/theme/components/menu/horizontal-menu/horizontal-menu.component.scss":
|
|
/*!**************************************************************************************!*\
|
|
!*** ./src/app/theme/components/menu/horizontal-menu/horizontal-menu.component.scss ***!
|
|
\**************************************************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = ".horizontal-menu-item {\n position: relative; }\n .horizontal-menu-item .mat-button {\n height: 56px;\n font-weight: 400; }\n .horizontal-menu-item .horizontal-menu-icon {\n margin-right: 5px; }\n .horizontal-menu-item .horizontal-sub-menu {\n position: absolute;\n width: 190px;\n max-height: 0;\n overflow: hidden;\n transition: max-height 0.25s ease-out; }\n .horizontal-menu-item .horizontal-sub-menu .mat-button {\n width: 100%;\n height: 36px; }\n .horizontal-menu-item:hover > .horizontal-sub-menu {\n max-height: 500px;\n overflow: visible; }\n .horizontal-sub-menu .horizontal-sub-menu {\n left: 100%;\n top: 0; }\n"
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/theme/components/menu/horizontal-menu/horizontal-menu.component.ts":
|
|
/*!************************************************************************************!*\
|
|
!*** ./src/app/theme/components/menu/horizontal-menu/horizontal-menu.component.ts ***!
|
|
\************************************************************************************/
|
|
/*! exports provided: HorizontalMenuComponent */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HorizontalMenuComponent", function() { return HorizontalMenuComponent; });
|
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
|
|
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
|
|
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js");
|
|
/* harmony import */ var _menu_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../menu.service */ "./src/app/theme/components/menu/menu.service.ts");
|
|
/* harmony import */ var _angular_material__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/material */ "./node_modules/@angular/material/esm5/material.es5.js");
|
|
/* harmony import */ var _shared_services_rtl_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/services/rtl.service */ "./src/app/shared/services/rtl.service.ts");
|
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
};
|
|
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
|
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var HorizontalMenuComponent = /** @class */ (function () {
|
|
function HorizontalMenuComponent(menuService, router, rtlService) {
|
|
this.menuService = menuService;
|
|
this.router = router;
|
|
this.rtlService = rtlService;
|
|
this.unsubSettings = new rxjs__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
|
|
this.settings = this.rtlService.getUISettings();
|
|
}
|
|
HorizontalMenuComponent.prototype.ngOnInit = function () {
|
|
var _this = this;
|
|
this.rtlService.UIsettingsUpdated
|
|
.takeUntil(this.unsubSettings)
|
|
.subscribe(function (settings) {
|
|
_this.settings = settings;
|
|
if (window.innerWidth <= 768) {
|
|
_this.settings.menu = 'vertical';
|
|
_this.settings.sidenavIsOpened = false;
|
|
_this.settings.sidenavIsPinned = false;
|
|
}
|
|
});
|
|
this.menuItems = this.menuService.getHorizontalMenuItems();
|
|
this.menuItems = this.menuItems.filter(function (item) { return item.parentId === _this.menuParentId; });
|
|
};
|
|
HorizontalMenuComponent.prototype.ngAfterViewInit = function () {
|
|
var _this = this;
|
|
this.router.events.subscribe(function (event) {
|
|
if (event instanceof _angular_router__WEBPACK_IMPORTED_MODULE_1__["NavigationEnd"]) {
|
|
if (_this.settings.fixedHeader) {
|
|
var mainContent = document.getElementById('main-content');
|
|
if (mainContent) {
|
|
mainContent.scrollTop = 0;
|
|
}
|
|
}
|
|
else {
|
|
document.getElementsByClassName('mat-drawer-content')[0].scrollTop = 0;
|
|
}
|
|
}
|
|
});
|
|
};
|
|
HorizontalMenuComponent.prototype.ngOnDestroy = function () {
|
|
this.unsubSettings.next();
|
|
this.unsubSettings.complete();
|
|
};
|
|
__decorate([
|
|
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
|
|
__metadata("design:type", Object)
|
|
], HorizontalMenuComponent.prototype, "menuParentId", void 0);
|
|
__decorate([
|
|
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewChild"])(_angular_material__WEBPACK_IMPORTED_MODULE_4__["MatMenuTrigger"]),
|
|
__metadata("design:type", _angular_material__WEBPACK_IMPORTED_MODULE_4__["MatMenuTrigger"])
|
|
], HorizontalMenuComponent.prototype, "trigger", void 0);
|
|
HorizontalMenuComponent = __decorate([
|
|
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
|
|
selector: 'rtl-horizontal-menu',
|
|
template: __webpack_require__(/*! ./horizontal-menu.component.html */ "./src/app/theme/components/menu/horizontal-menu/horizontal-menu.component.html"),
|
|
styles: [__webpack_require__(/*! ./horizontal-menu.component.scss */ "./src/app/theme/components/menu/horizontal-menu/horizontal-menu.component.scss")],
|
|
encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
|
|
providers: [_menu_service__WEBPACK_IMPORTED_MODULE_3__["MenuService"]]
|
|
}),
|
|
__metadata("design:paramtypes", [_menu_service__WEBPACK_IMPORTED_MODULE_3__["MenuService"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"], _shared_services_rtl_service__WEBPACK_IMPORTED_MODULE_5__["RTLService"]])
|
|
], HorizontalMenuComponent);
|
|
return HorizontalMenuComponent;
|
|
}());
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/theme/components/menu/menu.service.ts":
|
|
/*!*******************************************************!*\
|
|
!*** ./src/app/theme/components/menu/menu.service.ts ***!
|
|
\*******************************************************/
|
|
/*! exports provided: MenuService */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MenuService", function() { return MenuService; });
|
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
|
|
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
|
|
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/fesm5/common.js");
|
|
/* harmony import */ var _menu__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./menu */ "./src/app/theme/components/menu/menu.ts");
|
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
};
|
|
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
|
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
};
|
|
|
|
|
|
|
|
|
|
var MenuService = /** @class */ (function () {
|
|
function MenuService(location, router) {
|
|
this.location = location;
|
|
this.router = router;
|
|
}
|
|
MenuService.prototype.getVerticalMenuItems = function () {
|
|
return _menu__WEBPACK_IMPORTED_MODULE_3__["verticalMenuItems"];
|
|
};
|
|
MenuService.prototype.getHorizontalMenuItems = function () {
|
|
return _menu__WEBPACK_IMPORTED_MODULE_3__["horizontalMenuItems"];
|
|
};
|
|
MenuService.prototype.expandActiveSubMenu = function (menu) {
|
|
var url = this.location.path();
|
|
var routerLink = url; // url.substring(1, url.length);
|
|
var activeMenuItem = menu.filter(function (item) { return item.routerLink === routerLink; });
|
|
if (activeMenuItem[0]) {
|
|
var menuItem_1 = activeMenuItem[0];
|
|
while (menuItem_1.parentId !== 0) {
|
|
var parentMenuItem = menu.filter(function (item) { return item.id === menuItem_1.parentId; })[0];
|
|
menuItem_1 = parentMenuItem;
|
|
this.toggleMenuItem(menuItem_1.id);
|
|
}
|
|
}
|
|
};
|
|
MenuService.prototype.toggleMenuItem = function (menuId) {
|
|
var menuItem = document.getElementById('menu-item-' + menuId);
|
|
var subMenu = document.getElementById('sub-menu-' + menuId);
|
|
if (subMenu) {
|
|
if (subMenu.classList.contains('show')) {
|
|
subMenu.classList.remove('show');
|
|
menuItem.classList.remove('expanded');
|
|
}
|
|
else {
|
|
subMenu.classList.add('show');
|
|
menuItem.classList.add('expanded');
|
|
}
|
|
}
|
|
};
|
|
MenuService.prototype.closeOtherSubMenus = function (menu, menuId) {
|
|
var currentMenuItem = menu.filter(function (item) { return item.id === menuId; })[0];
|
|
if (currentMenuItem.parentId === 0 && !currentMenuItem.target) {
|
|
menu.forEach(function (item) {
|
|
if (item.id !== menuId) {
|
|
var subMenu = document.getElementById('sub-menu-' + item.id);
|
|
var menuItem = document.getElementById('menu-item-' + item.id);
|
|
if (subMenu) {
|
|
if (subMenu.classList.contains('show')) {
|
|
subMenu.classList.remove('show');
|
|
menuItem.classList.remove('expanded');
|
|
}
|
|
}
|
|
}
|
|
});
|
|
}
|
|
};
|
|
MenuService = __decorate([
|
|
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])(),
|
|
__metadata("design:paramtypes", [_angular_common__WEBPACK_IMPORTED_MODULE_2__["Location"],
|
|
_angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"]])
|
|
], MenuService);
|
|
return MenuService;
|
|
}());
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/theme/components/menu/menu.ts":
|
|
/*!***********************************************!*\
|
|
!*** ./src/app/theme/components/menu/menu.ts ***!
|
|
\***********************************************/
|
|
/*! exports provided: Menu, verticalMenuItems, horizontalMenuItems */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Menu", function() { return Menu; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "verticalMenuItems", function() { return verticalMenuItems; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "horizontalMenuItems", function() { return horizontalMenuItems; });
|
|
var Menu = /** @class */ (function () {
|
|
function Menu(id, title, routerLink, href, icon, target, hasSubMenu, parentId) {
|
|
this.id = id;
|
|
this.title = title;
|
|
this.routerLink = routerLink;
|
|
this.href = href;
|
|
this.icon = icon;
|
|
this.target = target;
|
|
this.hasSubMenu = hasSubMenu;
|
|
this.parentId = parentId;
|
|
}
|
|
return Menu;
|
|
}());
|
|
|
|
var verticalMenuItems = [
|
|
new Menu(1, 'Home', '/home', null, 'home', null, false, 0),
|
|
new Menu(2, 'Peers', '/peers', null, 'group', null, false, 0),
|
|
new Menu(3, 'Channels', '/channels', null, 'settings_ethernet', null, false, 0),
|
|
// new Menu(4, 'Wallet', '/wallet', null, 'account_balance_wallet', null, false, 0),
|
|
// new Menu(5, 'Invoices', '/invoices', null, 'receipt', null, false, 0),
|
|
// new Menu(50, 'Server Config', '/sconfig', null, 'settings', null, false, 0),
|
|
new Menu(51, 'Help', '/help', null, 'help', null, false, 0)
|
|
];
|
|
var horizontalMenuItems = [
|
|
new Menu(1, 'Home', '/home', null, 'home', null, false, 0),
|
|
new Menu(2, 'Peers', '/peers', null, 'group', null, false, 0),
|
|
new Menu(3, 'Channels', '/channels', null, 'settings_ethernet', null, false, 0)
|
|
// new Menu(4, 'Wallet', '/wallet', null, 'account_balance_wallet', null, false, 0),
|
|
// new Menu(5, 'Invoices', '/invoices', null, 'receipt', null, false, 0)
|
|
];
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/theme/components/menu/vertical-menu/vertical-menu.component.html":
|
|
/*!**********************************************************************************!*\
|
|
!*** ./src/app/theme/components/menu/vertical-menu/vertical-menu.component.html ***!
|
|
\**********************************************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = "<div *ngFor=\"let menu of parentMenu\" class=\"menu-item\">\r\n <a *ngIf=\"menu.routerLink && !menu.hasSubMenu\" mat-button fxLayout=\"row\" [fxLayoutAlign]=\"(settings.menuType=='default') ? 'start center' : 'center center'\"\r\n [routerLink]=\"[menu.routerLink]\" routerLinkActive=\"active-link\" [routerLinkActiveOptions]=\"{exact:true}\" [matTooltip]=\"menu.title\"\r\n matTooltipPosition=\"after\" [matTooltipDisabled]=\"(settings.menuType=='mini') ? 'false' : 'true'\" (click)=\"onClick(menu.id)\"\r\n [id]=\"'menu-item-'+menu.id\">\r\n <mat-icon class=\"menu-icon\">{{menu.icon}}</mat-icon>\r\n <span class=\"menu-title\">{{menu.title}}</span>\r\n </a>\r\n <a *ngIf=\"menu.href && !menu.subMenu\" mat-button fxLayout=\"row\" [fxLayoutAlign]=\"(settings.menuType=='default') ? 'start center' : 'center center'\"\r\n [attr.href]=\"menu.href || ''\" [attr.target]=\"menu.target || ''\" [matTooltip]=\"menu.title\" matTooltipPosition=\"after\" [matTooltipDisabled]=\"(settings.menuType=='mini') ? 'false' : 'true'\"\r\n (click)=\"onClick(menu.id)\" [id]=\"'menu-item-'+menu.id\">\r\n <mat-icon class=\"menu-icon\">{{menu.icon}}</mat-icon>\r\n <span class=\"menu-title\">{{menu.title}}</span>\r\n </a>\r\n <a *ngIf=\"menu.hasSubMenu\" mat-button fxLayout=\"row\" [fxLayoutAlign]=\"(settings.menuType=='default') ? 'start center' : 'center center'\"\r\n [matTooltip]=\"menu.title\" matTooltipPosition=\"after\" [matTooltipDisabled]=\"(settings.menuType=='mini') ? 'false' : 'true'\"\r\n (click)=\"onClick(menu.id)\" [id]=\"'menu-item-'+menu.id\">\r\n <mat-icon class=\"menu-icon\">{{menu.icon}}</mat-icon>\r\n <span class=\"menu-title\">{{menu.title}}</span>\r\n <mat-icon class=\"menu-expand-icon transition-2\">arrow_drop_down</mat-icon>\r\n </a>\r\n <div *ngIf=\"menu.hasSubMenu\" class=\"sub-menu\" [id]=\"'sub-menu-'+menu.id\">\r\n <rtl-vertical-menu [menuItems]=\"menuItems\" [menuParentId]=\"menu.id\"></rtl-vertical-menu>\r\n </div>\r\n</div>"
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/theme/components/menu/vertical-menu/vertical-menu.component.scss":
|
|
/*!**********************************************************************************!*\
|
|
!*** ./src/app/theme/components/menu/vertical-menu/vertical-menu.component.scss ***!
|
|
\**********************************************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = ".menu-icon {\n margin-right: 12px; }\n\n.menu-expand-icon {\n position: absolute;\n right: 10px;\n top: 10px; }\n\n.menu-item .mat-button {\n padding: 0;\n padding-top: 3px;\n padding-bottom: 3px;\n width: 100%;\n font-weight: 400; }\n\n.menu-item .mat-button.expanded .menu-expand-icon {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg); }\n\n.menu-item .mat-button-wrapper {\n padding-left: 16px; }\n\n.sub-menu {\n max-height: 0;\n overflow: hidden;\n transition: max-height 0.25s ease-out; }\n\n.sub-menu .sub-menu .mat-button {\n padding-left: 40px; }\n\n.sub-menu .sub-menu .sub-menu .mat-button {\n padding-left: 60px; }\n\n.sub-menu .sub-menu .sub-menu .sub-menu .mat-button {\n padding-left: 80px; }\n\n.sub-menu .sub-menu .sub-menu .sub-menu .sub-menu .mat-button {\n padding-left: 100px; }\n\n.sub-menu .sub-menu .sub-menu .sub-menu .sub-menu .sub-menu .mat-button {\n padding-left: 120px; }\n\n.sub-menu .sub-menu .sub-menu .sub-menu .sub-menu .sub-menu .sub-menu .mat-button {\n padding-left: 140px; }\n\n.sub-menu .sub-menu .sub-menu .sub-menu .sub-menu .sub-menu .sub-menu .sub-menu .mat-button {\n padding-left: 160px; }\n\n.sub-menu .sub-menu .sub-menu .sub-menu .sub-menu .sub-menu .sub-menu .sub-menu .sub-menu .mat-button {\n padding-left: 180px; }\n\n.sub-menu .sub-menu .sub-menu .sub-menu .sub-menu .sub-menu .sub-menu .sub-menu .sub-menu .sub-menu .mat-button {\n padding-left: 200px; }\n\n.sub-menu .mat-button {\n padding-left: 20px; }\n\n.sub-menu.show {\n max-height: 500px;\n transition: max-height 0.25s ease-in; }\n"
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/theme/components/menu/vertical-menu/vertical-menu.component.ts":
|
|
/*!********************************************************************************!*\
|
|
!*** ./src/app/theme/components/menu/vertical-menu/vertical-menu.component.ts ***!
|
|
\********************************************************************************/
|
|
/*! exports provided: VerticalMenuComponent */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "VerticalMenuComponent", function() { return VerticalMenuComponent; });
|
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
|
|
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
|
|
/* harmony import */ var _menu_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../menu.service */ "./src/app/theme/components/menu/menu.service.ts");
|
|
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs */ "./node_modules/rxjs/_esm5/index.js");
|
|
/* harmony import */ var _shared_services_rtl_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../shared/services/rtl.service */ "./src/app/shared/services/rtl.service.ts");
|
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
};
|
|
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
|
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
var VerticalMenuComponent = /** @class */ (function () {
|
|
function VerticalMenuComponent(menuService, router, rtlService) {
|
|
this.menuService = menuService;
|
|
this.router = router;
|
|
this.rtlService = rtlService;
|
|
this.unsubSettings = new rxjs__WEBPACK_IMPORTED_MODULE_3__["Subject"]();
|
|
this.settings = this.rtlService.getUISettings();
|
|
}
|
|
VerticalMenuComponent.prototype.ngOnInit = function () {
|
|
var _this = this;
|
|
this.rtlService.UIsettingsUpdated
|
|
.takeUntil(this.unsubSettings)
|
|
.subscribe(function (settings) {
|
|
_this.settings = settings;
|
|
if (window.innerWidth <= 768) {
|
|
_this.settings.menu = 'vertical';
|
|
_this.settings.sidenavIsOpened = false;
|
|
_this.settings.sidenavIsPinned = false;
|
|
}
|
|
});
|
|
this.parentMenu = this.menuItems.filter(function (item) { return item.parentId === _this.menuParentId; });
|
|
};
|
|
VerticalMenuComponent.prototype.ngAfterViewInit = function () {
|
|
var _this = this;
|
|
this.router.events.subscribe(function (event) {
|
|
if (event instanceof _angular_router__WEBPACK_IMPORTED_MODULE_1__["NavigationEnd"]) {
|
|
if (_this.settings.fixedHeader) {
|
|
var mainContent = document.getElementById('main-content');
|
|
if (mainContent) {
|
|
mainContent.scrollTop = 0;
|
|
}
|
|
}
|
|
else {
|
|
document.getElementsByClassName('mat-drawer-content')[0].scrollTop = 0;
|
|
}
|
|
}
|
|
});
|
|
};
|
|
VerticalMenuComponent.prototype.onClick = function (menuId) {
|
|
this.menuService.toggleMenuItem(menuId);
|
|
this.menuService.closeOtherSubMenus(this.menuItems, menuId);
|
|
};
|
|
VerticalMenuComponent.prototype.ngOnDestroy = function () {
|
|
this.unsubSettings.next();
|
|
this.unsubSettings.complete();
|
|
};
|
|
__decorate([
|
|
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
|
|
__metadata("design:type", Object)
|
|
], VerticalMenuComponent.prototype, "menuItems", void 0);
|
|
__decorate([
|
|
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
|
|
__metadata("design:type", Object)
|
|
], VerticalMenuComponent.prototype, "menuParentId", void 0);
|
|
VerticalMenuComponent = __decorate([
|
|
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
|
|
selector: 'rtl-vertical-menu',
|
|
template: __webpack_require__(/*! ./vertical-menu.component.html */ "./src/app/theme/components/menu/vertical-menu/vertical-menu.component.html"),
|
|
styles: [__webpack_require__(/*! ./vertical-menu.component.scss */ "./src/app/theme/components/menu/vertical-menu/vertical-menu.component.scss")],
|
|
encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
|
|
providers: [_menu_service__WEBPACK_IMPORTED_MODULE_2__["MenuService"]]
|
|
}),
|
|
__metadata("design:paramtypes", [_menu_service__WEBPACK_IMPORTED_MODULE_2__["MenuService"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"], _shared_services_rtl_service__WEBPACK_IMPORTED_MODULE_4__["RTLService"]])
|
|
], VerticalMenuComponent);
|
|
return VerticalMenuComponent;
|
|
}());
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/theme/components/sidenav/sidenav.component.html":
|
|
/*!*****************************************************************!*\
|
|
!*** ./src/app/theme/components/sidenav/sidenav.component.html ***!
|
|
\*****************************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = "<mat-toolbar color=\"primary\" [fxLayoutAlign]=\"(settings.menuType != 'mini') ? 'space-between center' : 'center center'\" class=\"sidenav-header\">\r\n <a *ngIf=\"settings.menuType == 'mini'\" mat-raised-button color=\"accent\" routerLink=\"/home\" (click)=\"closeSubMenus()\" class=\"small-logo\">R</a>\r\n <a *ngIf=\"settings.menuType != 'mini'\" class=\"logo\" routerLink=\"/home\" (click)=\"closeSubMenus()\">RTL</a>\r\n <svg *ngIf=\"settings.menuType != 'mini'\" class=\"pin\" (click)=\"settings.sidenavIsPinned = !settings.sidenavIsPinned\">\r\n <path *ngIf=\"!settings.sidenavIsPinned\" d=\"M16,12V4H17V2H7V4H8V12L6,14V16H11.2V22H12.8V16H18V14L16,12Z\" />\r\n <path *ngIf=\"settings.sidenavIsPinned\" d=\"M2,5.27L3.28,4L20,20.72L18.73,22L12.8,16.07V22H11.2V16H6V14L8,12V11.27L2,5.27M16,12L18,14V16H17.82L8,6.18V4H7V2H17V4H16V12Z\"\r\n />\r\n </svg>\r\n</mat-toolbar>\r\n<div fxLayout=\"column\" fxLayoutAlign=\"center center\" class=\"user-block transition-2\" [class.show]=\"settings.sidenavUserBlock\">\r\n <div [fxLayout]=\"(settings.menuType != 'default') ? 'column' : 'row'\" [fxLayoutAlign]=\"(settings.menuType != 'default') ? 'center center' : 'space-around center'\"\r\n class=\"user-info-wrapper\">\r\n <div class=\"user-info\">\r\n <!-- <img [src]=\"userImage\" alt=\"user-image\"><br> -->\r\n <p class=\"name\">Alias: <br>{{information?.alias}}</p>\r\n <p *ngIf=\"information.testnet; else mainnet\">Chain: <br>{{information?.chains}}<span *ngIf=\"information.testnet\"> [Testnet]</span></p>\r\n <ng-template #mainnet>Chain: {{information?.chains}}<span *ngIf=\"information.testnet\"> [Mainnet]</span></ng-template>\r\n </div>\r\n </div>\r\n</div>\r\n<div id=\"sidenav-menu-outer\" class=\"sidenav-menu-outer\" perfectScrollbar [class.user-block-show]=\"settings.sidenavUserBlock\">\r\n <span *ngIf=\"!menuItems\">loading....</span>\r\n <rtl-vertical-menu [menuItems]=\"menuItems\" [menuParentId]=\"0\"></rtl-vertical-menu>\r\n</div>"
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/theme/components/sidenav/sidenav.component.scss":
|
|
/*!*****************************************************************!*\
|
|
!*** ./src/app/theme/components/sidenav/sidenav.component.scss ***!
|
|
\*****************************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = ".pin {\n width: 24px;\n height: 24px;\n cursor: pointer;\n fill: currentColor; }\n\n.sidenav-header {\n padding: 0 10px !important; }\n\n.user-block {\n height: 0;\n position: relative;\n z-index: 1;\n overflow: hidden; }\n\n.user-block img {\n width: 80px;\n border: 1px solid rgba(0, 0, 0, 0.2); }\n\n.user-block .user-info-wrapper {\n padding: 0 6px;\n margin: 6px 0;\n width: 100%; }\n\n.user-block .user-info-wrapper .user-info {\n text-align: center; }\n\n.user-block .user-info-wrapper .user-info .name {\n font-size: 15px; }\n\n.user-block .user-info-wrapper .user-info .position {\n font-size: 13px; }\n\n.user-block.show {\n height: 156px; }\n\n.sidenav-menu-outer {\n height: calc(100% - 56px); }\n\n.sidenav-menu-outer.user-block-show {\n height: calc(100% - 212px); }\n"
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/theme/components/sidenav/sidenav.component.ts":
|
|
/*!***************************************************************!*\
|
|
!*** ./src/app/theme/components/sidenav/sidenav.component.ts ***!
|
|
\***************************************************************/
|
|
/*! exports provided: SidenavComponent */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SidenavComponent", function() { return SidenavComponent; });
|
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
|
|
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
|
|
/* harmony import */ var rxjs_Subject__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/Subject */ "./node_modules/rxjs-compat/_esm5/Subject.js");
|
|
/* harmony import */ var rxjs_add_operator_takeUntil__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/add/operator/takeUntil */ "./node_modules/rxjs-compat/_esm5/add/operator/takeUntil.js");
|
|
/* harmony import */ var _menu_menu_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../menu/menu.service */ "./src/app/theme/components/menu/menu.service.ts");
|
|
/* harmony import */ var _shared_services_logger_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../shared/services/logger.service */ "./src/app/shared/services/logger.service.ts");
|
|
/* harmony import */ var _shared_services_rtl_service__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../shared/services/rtl.service */ "./src/app/shared/services/rtl.service.ts");
|
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
};
|
|
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
|
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var SidenavComponent = /** @class */ (function () {
|
|
function SidenavComponent(menuService, rtlService, logger, router, activateRoute) {
|
|
this.menuService = menuService;
|
|
this.rtlService = rtlService;
|
|
this.logger = logger;
|
|
this.router = router;
|
|
this.activateRoute = activateRoute;
|
|
this.userImage = '../assets/img/RTL1.jpg';
|
|
this.infoSub = new rxjs_Subject__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
|
|
this.settingsSub = new rxjs_Subject__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
|
|
this.information = {};
|
|
this.settings = this.rtlService.getUISettings();
|
|
}
|
|
SidenavComponent.prototype.ngOnInit = function () {
|
|
var _this = this;
|
|
this.menuItems = this.menuService.getVerticalMenuItems();
|
|
this.information = this.rtlService.readInformation();
|
|
this.rtlService.informationUpdated
|
|
.takeUntil(this.infoSub)
|
|
.subscribe(function (data) {
|
|
_this.information = data;
|
|
_this.logger.info('Server Information Updated');
|
|
_this.logger.info(_this.information);
|
|
});
|
|
this.rtlService.UIsettingsUpdated
|
|
.takeUntil(this.settingsSub)
|
|
.subscribe(function (settings) {
|
|
_this.settings = settings;
|
|
});
|
|
};
|
|
SidenavComponent.prototype.ngOnDestroy = function () {
|
|
this.infoSub.next();
|
|
this.infoSub.complete();
|
|
this.settingsSub.next();
|
|
this.settingsSub.complete();
|
|
};
|
|
SidenavComponent.prototype.closeSubMenus = function () {
|
|
var menu = document.querySelector('.sidenav-menu-outer');
|
|
if (menu) {
|
|
for (var i = 0; i < menu.children[0].children.length; i++) {
|
|
var child = menu.children[0].children[i];
|
|
if (child) {
|
|
if (child.children[0].classList.contains('expanded')) {
|
|
child.children[0].classList.remove('expanded');
|
|
child.children[1].classList.remove('show');
|
|
}
|
|
}
|
|
}
|
|
}
|
|
};
|
|
SidenavComponent = __decorate([
|
|
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
|
|
selector: 'rtl-sidenav',
|
|
template: __webpack_require__(/*! ./sidenav.component.html */ "./src/app/theme/components/sidenav/sidenav.component.html"),
|
|
styles: [__webpack_require__(/*! ./sidenav.component.scss */ "./src/app/theme/components/sidenav/sidenav.component.scss")],
|
|
encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
|
|
providers: [_menu_menu_service__WEBPACK_IMPORTED_MODULE_4__["MenuService"]]
|
|
}),
|
|
__metadata("design:paramtypes", [_menu_menu_service__WEBPACK_IMPORTED_MODULE_4__["MenuService"], _shared_services_rtl_service__WEBPACK_IMPORTED_MODULE_6__["RTLService"], _shared_services_logger_service__WEBPACK_IMPORTED_MODULE_5__["LoggerService"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["ActivatedRoute"]])
|
|
], SidenavComponent);
|
|
return SidenavComponent;
|
|
}());
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/theme/components/spinner-dialog/spinner-dialog.component.html":
|
|
/*!*******************************************************************************!*\
|
|
!*** ./src/app/theme/components/spinner-dialog/spinner-dialog.component.html ***!
|
|
\*******************************************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = "<div class=\"spinner-container\">\n <div class=\"spinner-circle\">\n <mat-spinner color=\"primary\"></mat-spinner>\n <h4 fxLayoutAlign=\"center\">{{data.message}}</h4>\n </div>\n</div>\n"
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/theme/components/spinner-dialog/spinner-dialog.component.scss":
|
|
/*!*******************************************************************************!*\
|
|
!*** ./src/app/theme/components/spinner-dialog/spinner-dialog.component.scss ***!
|
|
\*******************************************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = ".spinner-container {\n position: absolute; }\n\n.spinner-circle {\n position: relative;\n top: -100px;\n left: -100px; }\n"
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/theme/components/spinner-dialog/spinner-dialog.component.ts":
|
|
/*!*****************************************************************************!*\
|
|
!*** ./src/app/theme/components/spinner-dialog/spinner-dialog.component.ts ***!
|
|
\*****************************************************************************/
|
|
/*! exports provided: SpinnerDialogComponent */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SpinnerDialogComponent", function() { return SpinnerDialogComponent; });
|
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
|
|
/* harmony import */ var _angular_material__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/material */ "./node_modules/@angular/material/esm5/material.es5.js");
|
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
};
|
|
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
|
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
};
|
|
var __param = (undefined && undefined.__param) || function (paramIndex, decorator) {
|
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
};
|
|
|
|
|
|
var SpinnerDialogComponent = /** @class */ (function () {
|
|
function SpinnerDialogComponent(dialogRef, data) {
|
|
this.dialogRef = dialogRef;
|
|
this.data = data;
|
|
}
|
|
SpinnerDialogComponent.prototype.ngOnInit = function () {
|
|
};
|
|
SpinnerDialogComponent = __decorate([
|
|
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
|
|
selector: 'rtl-spinner-dialog',
|
|
template: __webpack_require__(/*! ./spinner-dialog.component.html */ "./src/app/theme/components/spinner-dialog/spinner-dialog.component.html"),
|
|
styles: [__webpack_require__(/*! ./spinner-dialog.component.scss */ "./src/app/theme/components/spinner-dialog/spinner-dialog.component.scss")]
|
|
}),
|
|
__param(1, Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Inject"])(_angular_material__WEBPACK_IMPORTED_MODULE_1__["MAT_DIALOG_DATA"])),
|
|
__metadata("design:paramtypes", [_angular_material__WEBPACK_IMPORTED_MODULE_1__["MatDialogRef"], Object])
|
|
], SpinnerDialogComponent);
|
|
return SpinnerDialogComponent;
|
|
}());
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/theme/components/user-menu/user-menu.component.html":
|
|
/*!*********************************************************************!*\
|
|
!*** ./src/app/theme/components/user-menu/user-menu.component.html ***!
|
|
\*********************************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = "<button mat-icon-button [matMenuTriggerFor]=\"userMenu\" #userMenuTrigger=\"matMenuTrigger\">\r\n <mat-icon>account_circle</mat-icon>\r\n</button>\r\n<mat-menu #userMenu=\"matMenu\" [overlapTrigger]=\"false\" class=\"toolbar-dropdown-menu user-menu\">\r\n <mat-toolbar color=\"primary\">\r\n <div fxLayout=\"row\" fxLayoutAlign=\"start start\" class=\"user-info\">\r\n <p class=\"name\">Alias: {{information?.alias}}\r\n <br>\r\n <span fxLayoutAlign=\"start start\" *ngIf=\"information.testnet; else mainnet\">Chain: {{information?.chains}}<span *ngIf=\"information.testnet\"> [Testnet]</span></span>\r\n <ng-template #mainnet>Chain: {{information?.chains}}<span *ngIf=\"information.testnet\"> [Mainnet]</span></ng-template>\r\n </p>\r\n </div>\r\n </mat-toolbar>\r\n <a mat-menu-item routerLink=\"/start\">\r\n <mat-icon>lock_open</mat-icon>\r\n <span routerLink=\"/start\">Unlock Wallet</span>\r\n </a>\r\n <!-- <a mat-menu-item routerLink=\"settings\">\r\n <mat-icon>settings</mat-icon>\r\n <span routerLink=\"/sconfig\">Server Config</span>\r\n </a> -->\r\n <a mat-menu-item routerLink=\"/help\">\r\n <mat-icon>help</mat-icon>\r\n <span routerLink=\"/help\">Help</span>\r\n </a>\r\n</mat-menu>"
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/theme/components/user-menu/user-menu.component.scss":
|
|
/*!*********************************************************************!*\
|
|
!*** ./src/app/theme/components/user-menu/user-menu.component.scss ***!
|
|
\*********************************************************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports) {
|
|
|
|
module.exports = ".user-menu .mat-toolbar, .user-menu .mat-toolbar-row {\n height: 100px !important;\n padding: 0 16px !important; }\n\n.user-menu .user-info {\n width: 230px; }\n\n.user-menu .user-info p {\n font-size: 16px;\n line-height: 22px;\n text-align: center; }\n\n.user-menu .mat-menu-item {\n height: 36px;\n line-height: 36px; }\n"
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/theme/components/user-menu/user-menu.component.ts":
|
|
/*!*******************************************************************!*\
|
|
!*** ./src/app/theme/components/user-menu/user-menu.component.ts ***!
|
|
\*******************************************************************/
|
|
/*! exports provided: UserMenuComponent */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UserMenuComponent", function() { return UserMenuComponent; });
|
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
|
|
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
|
|
/* harmony import */ var rxjs_Subject__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! rxjs/Subject */ "./node_modules/rxjs-compat/_esm5/Subject.js");
|
|
/* harmony import */ var rxjs_add_operator_takeUntil__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rxjs/add/operator/takeUntil */ "./node_modules/rxjs-compat/_esm5/add/operator/takeUntil.js");
|
|
/* harmony import */ var _shared_services_logger_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../shared/services/logger.service */ "./src/app/shared/services/logger.service.ts");
|
|
/* harmony import */ var _shared_services_rtl_service__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../shared/services/rtl.service */ "./src/app/shared/services/rtl.service.ts");
|
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
};
|
|
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
|
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var UserMenuComponent = /** @class */ (function () {
|
|
function UserMenuComponent(rtlService, logger, router) {
|
|
this.rtlService = rtlService;
|
|
this.logger = logger;
|
|
this.router = router;
|
|
this.settingsSub = new rxjs_Subject__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
|
|
this.infoSub = new rxjs_Subject__WEBPACK_IMPORTED_MODULE_2__["Subject"]();
|
|
this.information = {};
|
|
}
|
|
UserMenuComponent.prototype.ngOnInit = function () {
|
|
var _this = this;
|
|
this.information = this.rtlService.readInformation();
|
|
this.rtlService.informationUpdated
|
|
.takeUntil(this.infoSub)
|
|
.subscribe(function (data) {
|
|
_this.information = data;
|
|
_this.logger.info('Server Information Updated');
|
|
_this.logger.info(_this.information);
|
|
});
|
|
this.rtlService.UIsettingsUpdated
|
|
.takeUntil(this.settingsSub)
|
|
.subscribe(function (settings) {
|
|
_this.settings = settings;
|
|
});
|
|
};
|
|
UserMenuComponent.prototype.ngOnDestroy = function () {
|
|
this.infoSub.next();
|
|
this.infoSub.complete();
|
|
};
|
|
UserMenuComponent = __decorate([
|
|
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
|
|
selector: 'rtl-user-menu',
|
|
template: __webpack_require__(/*! ./user-menu.component.html */ "./src/app/theme/components/user-menu/user-menu.component.html"),
|
|
styles: [__webpack_require__(/*! ./user-menu.component.scss */ "./src/app/theme/components/user-menu/user-menu.component.scss")],
|
|
encapsulation: _angular_core__WEBPACK_IMPORTED_MODULE_0__["ViewEncapsulation"].None,
|
|
}),
|
|
__metadata("design:paramtypes", [_shared_services_rtl_service__WEBPACK_IMPORTED_MODULE_5__["RTLService"], _shared_services_logger_service__WEBPACK_IMPORTED_MODULE_4__["LoggerService"], _angular_router__WEBPACK_IMPORTED_MODULE_1__["Router"]])
|
|
], UserMenuComponent);
|
|
return UserMenuComponent;
|
|
}());
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/theme/pipes/pagination/pagination.pipe.ts":
|
|
/*!***********************************************************!*\
|
|
!*** ./src/app/theme/pipes/pagination/pagination.pipe.ts ***!
|
|
\***********************************************************/
|
|
/*! exports provided: PaginationPipe */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PaginationPipe", function() { return PaginationPipe; });
|
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
|
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
};
|
|
|
|
var PaginationPipe = /** @class */ (function () {
|
|
function PaginationPipe() {
|
|
}
|
|
PaginationPipe.prototype.transform = function (data, args) {
|
|
if (!args) {
|
|
args = {
|
|
pageIndex: 0,
|
|
pageSize: 6,
|
|
length: data.length
|
|
};
|
|
}
|
|
return this.paginate(data, args.pageSize, args.pageIndex);
|
|
};
|
|
PaginationPipe.prototype.paginate = function (array, page_size, page_number) {
|
|
return array.slice(page_number * page_size, (page_number + 1) * page_size);
|
|
};
|
|
PaginationPipe = __decorate([
|
|
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Pipe"])({
|
|
name: 'pagination'
|
|
})
|
|
], PaginationPipe);
|
|
return PaginationPipe;
|
|
}());
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/theme/pipes/pipes.module.ts":
|
|
/*!*********************************************!*\
|
|
!*** ./src/app/theme/pipes/pipes.module.ts ***!
|
|
\*********************************************/
|
|
/*! exports provided: PipesModule */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PipesModule", function() { return PipesModule; });
|
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
|
|
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/fesm5/common.js");
|
|
/* harmony import */ var _pagination_pagination_pipe__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./pagination/pagination.pipe */ "./src/app/theme/pipes/pagination/pagination.pipe.ts");
|
|
/* harmony import */ var _profilePicture_profilePicture_pipe__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./profilePicture/profilePicture.pipe */ "./src/app/theme/pipes/profilePicture/profilePicture.pipe.ts");
|
|
/* harmony import */ var _truncate_truncate_pipe__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./truncate/truncate.pipe */ "./src/app/theme/pipes/truncate/truncate.pipe.ts");
|
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
var PipesModule = /** @class */ (function () {
|
|
function PipesModule() {
|
|
}
|
|
PipesModule = __decorate([
|
|
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
|
|
imports: [
|
|
_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"]
|
|
],
|
|
declarations: [
|
|
_pagination_pagination_pipe__WEBPACK_IMPORTED_MODULE_2__["PaginationPipe"],
|
|
_profilePicture_profilePicture_pipe__WEBPACK_IMPORTED_MODULE_3__["ProfilePicturePipe"],
|
|
_truncate_truncate_pipe__WEBPACK_IMPORTED_MODULE_4__["TruncatePipe"]
|
|
],
|
|
exports: [
|
|
_pagination_pagination_pipe__WEBPACK_IMPORTED_MODULE_2__["PaginationPipe"],
|
|
_profilePicture_profilePicture_pipe__WEBPACK_IMPORTED_MODULE_3__["ProfilePicturePipe"],
|
|
_truncate_truncate_pipe__WEBPACK_IMPORTED_MODULE_4__["TruncatePipe"]
|
|
]
|
|
})
|
|
], PipesModule);
|
|
return PipesModule;
|
|
}());
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/theme/pipes/profilePicture/profilePicture.pipe.ts":
|
|
/*!*******************************************************************!*\
|
|
!*** ./src/app/theme/pipes/profilePicture/profilePicture.pipe.ts ***!
|
|
\*******************************************************************/
|
|
/*! exports provided: ProfilePicturePipe */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProfilePicturePipe", function() { return ProfilePicturePipe; });
|
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
|
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
};
|
|
|
|
var ProfilePicturePipe = /** @class */ (function () {
|
|
function ProfilePicturePipe() {
|
|
}
|
|
ProfilePicturePipe.prototype.transform = function (input, ext) {
|
|
if (ext === void 0) { ext = 'jpg'; }
|
|
return '../assets/img/profile/' + input + '.' + ext;
|
|
};
|
|
ProfilePicturePipe = __decorate([
|
|
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Pipe"])({ name: 'profilePicture' })
|
|
], ProfilePicturePipe);
|
|
return ProfilePicturePipe;
|
|
}());
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/theme/pipes/truncate/truncate.pipe.ts":
|
|
/*!*******************************************************!*\
|
|
!*** ./src/app/theme/pipes/truncate/truncate.pipe.ts ***!
|
|
\*******************************************************/
|
|
/*! exports provided: TruncatePipe */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TruncatePipe", function() { return TruncatePipe; });
|
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
|
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
};
|
|
|
|
var TruncatePipe = /** @class */ (function () {
|
|
function TruncatePipe() {
|
|
}
|
|
TruncatePipe.prototype.transform = function (value, args) {
|
|
var limit = args > 0 ? parseInt(args, 0) : 10;
|
|
return value.length > limit ? value.substring(0, limit) + '...' : value;
|
|
};
|
|
TruncatePipe = __decorate([
|
|
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Pipe"])({
|
|
name: 'truncate'
|
|
})
|
|
], TruncatePipe);
|
|
return TruncatePipe;
|
|
}());
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/app/theme/utils/custom-overlay-container.ts":
|
|
/*!*********************************************************!*\
|
|
!*** ./src/app/theme/utils/custom-overlay-container.ts ***!
|
|
\*********************************************************/
|
|
/*! exports provided: CustomOverlayContainer */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CustomOverlayContainer", function() { return CustomOverlayContainer; });
|
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
|
|
/* harmony import */ var _angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/cdk/overlay */ "./node_modules/@angular/cdk/esm5/overlay.es5.js");
|
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
var extendStatics = Object.setPrototypeOf ||
|
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
return function (d, b) {
|
|
extendStatics(d, b);
|
|
function __() { this.constructor = d; }
|
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
};
|
|
})();
|
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
};
|
|
|
|
|
|
var CustomOverlayContainer = /** @class */ (function (_super) {
|
|
__extends(CustomOverlayContainer, _super);
|
|
function CustomOverlayContainer() {
|
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
}
|
|
CustomOverlayContainer.prototype._createContainer = function () {
|
|
var container = document.createElement('div');
|
|
container.classList.add('cdk-overlay-container');
|
|
document.getElementById('app').appendChild(container);
|
|
this._containerElement = container;
|
|
};
|
|
CustomOverlayContainer = __decorate([
|
|
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Injectable"])()
|
|
], CustomOverlayContainer);
|
|
return CustomOverlayContainer;
|
|
}(_angular_cdk_overlay__WEBPACK_IMPORTED_MODULE_1__["OverlayContainer"]));
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/environments/environment.ts":
|
|
/*!*****************************************!*\
|
|
!*** ./src/environments/environment.ts ***!
|
|
\*****************************************/
|
|
/*! exports provided: API_URL, environment */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "API_URL", function() { return API_URL; });
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "environment", function() { return environment; });
|
|
var API_URL = '/api';
|
|
var environment = {
|
|
production: false,
|
|
isDebugMode: true,
|
|
BALANCE_API: API_URL + '/balance',
|
|
FEES_API: API_URL + '/fees',
|
|
PEERS_API: API_URL + '/peers',
|
|
CHANNELS_API: API_URL + '/channels',
|
|
GETINFO_API: API_URL + '/getinfo',
|
|
WALLET_API: API_URL + '/wallet',
|
|
UI_SETTINGS_API: API_URL + '/uisettings'
|
|
};
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ "./src/main.ts":
|
|
/*!*********************!*\
|
|
!*** ./src/main.ts ***!
|
|
\*********************/
|
|
/*! no exports provided */
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
"use strict";
|
|
__webpack_require__.r(__webpack_exports__);
|
|
/* harmony import */ var hammerjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! hammerjs */ "./node_modules/hammerjs/hammer.js");
|
|
/* harmony import */ var hammerjs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(hammerjs__WEBPACK_IMPORTED_MODULE_0__);
|
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
|
|
/* harmony import */ var _angular_platform_browser_dynamic__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/platform-browser-dynamic */ "./node_modules/@angular/platform-browser-dynamic/fesm5/platform-browser-dynamic.js");
|
|
/* harmony import */ var _app_app_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./app/app.module */ "./src/app/app.module.ts");
|
|
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./environments/environment */ "./src/environments/environment.ts");
|
|
|
|
|
|
|
|
|
|
|
|
if (_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].production) {
|
|
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["enableProdMode"])();
|
|
}
|
|
Object(_angular_platform_browser_dynamic__WEBPACK_IMPORTED_MODULE_2__["platformBrowserDynamic"])().bootstrapModule(_app_app_module__WEBPACK_IMPORTED_MODULE_3__["AppModule"]);
|
|
|
|
|
|
/***/ }),
|
|
|
|
/***/ 0:
|
|
/*!***************************!*\
|
|
!*** multi ./src/main.ts ***!
|
|
\***************************/
|
|
/*! no static exports found */
|
|
/***/ (function(module, exports, __webpack_require__) {
|
|
|
|
module.exports = __webpack_require__(/*! C:\Workspace\RTLFullApplication\src\main.ts */"./src/main.ts");
|
|
|
|
|
|
/***/ })
|
|
|
|
},[[0,"runtime","vendor"]]]);
|
|
//# sourceMappingURL=main.js.map
|