Move documentation
This commit is contained in:
659
documentation/frontend/components/AppComponent.html
Normal file
659
documentation/frontend/components/AppComponent.html
Normal file
@@ -0,0 +1,659 @@
|
||||
<!doctype html>
|
||||
<html class="no-js" lang="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<title>aktienbot documentation</title>
|
||||
<meta name="description" content="">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<link rel="icon" type="image/x-icon" href="../images/favicon.ico">
|
||||
<link rel="stylesheet" href="../styles/style.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="navbar navbar-default navbar-fixed-top visible-xs">
|
||||
<a href="../" class="navbar-brand">aktienbot documentation</a>
|
||||
<button type="button" class="btn btn-default btn-menu fa fa-bars" id="btn-menu"></button>
|
||||
</div>
|
||||
|
||||
<div class="xs-menu menu" id="mobile-menu">
|
||||
<div id="book-search-input" role="search">
|
||||
<input type="text" placeholder="Type to search">
|
||||
</div>
|
||||
<nav>
|
||||
|
||||
<ul class="list">
|
||||
|
||||
<li class="title">
|
||||
<a href="../">aktienbot documentation</a>
|
||||
</li>
|
||||
|
||||
<li class="divider"></li>
|
||||
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../"><span class="fa fa-home"></span>Getting started</a>
|
||||
<ul class="links">
|
||||
<li class="link">
|
||||
<a href="../" ><span class="fa fa-file-text-o"></span>README</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a
|
||||
|
||||
href="../overview.html"
|
||||
href="../overview.html"
|
||||
>
|
||||
<span class="fa fa-th"></span>Overview
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="./modules.html" >
|
||||
<span class="fa fa-archive"></span>
|
||||
<span>Modules</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#xs-modules-links"
|
||||
></span>
|
||||
</a>
|
||||
<ul class="links collapse in"
|
||||
id="xs-modules-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../modules/AppModule.html" >AppModule</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-cogs"></span>
|
||||
<span>Components</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#xs-components-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="xs-components-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../components/AppComponent.html" class="active" >AppComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/BotSettingsComponent.html" >BotSettingsComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/ConfirmationDialogComponent.html" >ConfirmationDialogComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/DashboardComponent.html" >DashboardComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/HeaderComponent.html" >HeaderComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/HelpDialogComponent.html" >HelpDialogComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/LoginComponent.html" >LoginComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/ProfileComponent.html" >ProfileComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/RegisterComponent.html" >RegisterComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/UserDialogComponent.html" >UserDialogComponent</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-long-arrow-down"></span>
|
||||
<span>Injectables</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#xs-injectables-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="xs-injectables-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../injectables/AuthInterceptor.html" >AuthInterceptor</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/AuthService.html" >AuthService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/BotService.html" >BotService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/DataService.html" >DataService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/HelperService.html" >HelperService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/ProfileService.html" >ProfileService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/TokenStorageService.html" >TokenStorageService</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-info"></span>
|
||||
<span>Interfaces</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#xs-interfaces-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="xs-interfaces-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Keyword.html" >Keyword</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Share.html" >Share</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Stock.html" >Stock</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/TransactionData.html" >TransactionData</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../miscellaneous.html" ><span class="fa fa-cubes"></span>Miscellaneous</a>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../coverage.html" ><span class="fa fa-tasks"></span>Documentation coverage</a>
|
||||
</li>
|
||||
|
||||
<li class="divider"></li>
|
||||
<li class="copyright">
|
||||
Documentation generated using <a href="https://compodoc.github.io/compodoc/" target="_blank">
|
||||
<img src="..//images/compodoc-vectorise.svg" class="img-responsive">
|
||||
</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<div class="container-fluid main">
|
||||
<div class="row main">
|
||||
<div class="hidden-xs menu">
|
||||
<nav>
|
||||
|
||||
<ul class="list">
|
||||
|
||||
<li class="title">
|
||||
<a href="../">aktienbot documentation</a>
|
||||
</li>
|
||||
|
||||
<li class="divider"></li>
|
||||
|
||||
<div id="book-search-input" role="search">
|
||||
<input type="text" placeholder="Type to search">
|
||||
</div>
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../"><span class="fa fa-home"></span>Getting started</a>
|
||||
<ul class="links">
|
||||
<li class="link">
|
||||
<a href="../" ><span class="fa fa-file-text-o"></span>README</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a
|
||||
|
||||
href="../overview.html"
|
||||
href="../overview.html"
|
||||
>
|
||||
<span class="fa fa-th"></span>Overview
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="./modules.html" >
|
||||
<span class="fa fa-archive"></span>
|
||||
<span>Modules</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#modules-links"
|
||||
></span>
|
||||
</a>
|
||||
<ul class="links collapse in"
|
||||
id="modules-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../modules/AppModule.html" >AppModule</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-cogs"></span>
|
||||
<span>Components</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#components-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="components-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../components/AppComponent.html" class="active" >AppComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/BotSettingsComponent.html" >BotSettingsComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/ConfirmationDialogComponent.html" >ConfirmationDialogComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/DashboardComponent.html" >DashboardComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/HeaderComponent.html" >HeaderComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/HelpDialogComponent.html" >HelpDialogComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/LoginComponent.html" >LoginComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/ProfileComponent.html" >ProfileComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/RegisterComponent.html" >RegisterComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/UserDialogComponent.html" >UserDialogComponent</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-long-arrow-down"></span>
|
||||
<span>Injectables</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#injectables-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="injectables-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../injectables/AuthInterceptor.html" >AuthInterceptor</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/AuthService.html" >AuthService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/BotService.html" >BotService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/DataService.html" >DataService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/HelperService.html" >HelperService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/ProfileService.html" >ProfileService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/TokenStorageService.html" >TokenStorageService</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-info"></span>
|
||||
<span>Interfaces</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#interfaces-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="interfaces-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Keyword.html" >Keyword</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Share.html" >Share</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Stock.html" >Stock</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/TransactionData.html" >TransactionData</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../miscellaneous.html" ><span class="fa fa-cubes"></span>Miscellaneous</a>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../coverage.html" ><span class="fa fa-tasks"></span>Documentation coverage</a>
|
||||
</li>
|
||||
|
||||
<li class="divider"></li>
|
||||
<li class="copyright">
|
||||
Documentation generated using <a href="https://compodoc.github.io/compodoc/" target="_blank">
|
||||
<img src="..//images/compodoc-vectorise.svg" class="img-responsive">
|
||||
</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
</nav>
|
||||
</div>
|
||||
<div class="content component">
|
||||
<div class="content-data">
|
||||
|
||||
|
||||
<ol class="breadcrumb">
|
||||
<li>Components</li>
|
||||
<li>AppComponent</li>
|
||||
</ol>
|
||||
|
||||
|
||||
<ul class="nav nav-tabs" role="tablist">
|
||||
<li class="active">
|
||||
<a href="#infos" id="infos-tab" role="tab" data-toggle="tab">Infos</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#source" role="tab" id="source-tab" data-toggle="tab">Source</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane fade active in" id="infos"><p class="comment">
|
||||
<h3>File</h3>
|
||||
</p>
|
||||
<p class="comment">
|
||||
<code>src/app/app.component.ts</code>
|
||||
</p>
|
||||
|
||||
|
||||
|
||||
<section>
|
||||
<h3>Metadata</h3>
|
||||
<table class="table table-sm table-hover">
|
||||
<tbody>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td class="col-md-3">selector</td>
|
||||
<td class="col-md-9"><code>app-root</code></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="col-md-3">styleUrls</td>
|
||||
<td class="col-md-9"><code>app.component.scss</code></td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td class="col-md-3">templateUrl</td>
|
||||
<td class="col-md-9"><code>app.component.html</code></td>
|
||||
</tr>
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
<section>
|
||||
<h3 id="constructor">Constructor</h3>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>constructor(router: <a href="https://angular.io/docs/ts/latest/api/router/index/Router-class.html" target="_blank" >Router</a>, tokenStorage: <a href="../injectables/TokenStorageService.html" >TokenStorageService</a>)</code>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<div class="io-description"><p>Router import to show router-outlet.</p>
|
||||
</div>
|
||||
<div class="io-description">
|
||||
<b>Parameters :</b>
|
||||
<ul class="jsdoc-params">
|
||||
<li>
|
||||
<div>
|
||||
<b>router</b>
|
||||
</div>
|
||||
<div>
|
||||
<p>Router</p>
|
||||
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
|
||||
<section>
|
||||
<h3 id="inputs">Properties</h3>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b> isLoggedIn</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>isLoggedIn: <code>boolean</code>
|
||||
</bcode>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<i>Default value: </i><code>false</code>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b> showHeader</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>showHeader: <code>boolean</code>
|
||||
</bcode>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<i>Default value: </i><code>false</code>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b> title</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>title: <code>string</code>
|
||||
</bcode>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<i>Default value: </i><code>Aktienbot</code>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<div class="io-description"><p>Application title.</p>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
</div>
|
||||
<div class="tab-pane fade tab-source-code" id="source">
|
||||
<pre><code class="hljs javascript">import { Component } from '@angular/core';
|
||||
import { NavigationEnd, Router } from '@angular/router';
|
||||
import { TokenStorageService } from './Services/token.service';
|
||||
import { filter } from 'rxjs/operators';
|
||||
|
||||
@Component({
|
||||
selector: 'app-root',
|
||||
templateUrl: './app.component.html',
|
||||
styleUrls: ['./app.component.scss'],
|
||||
})
|
||||
export class AppComponent {
|
||||
/**
|
||||
* Application title.
|
||||
*/
|
||||
title = 'Aktienbot';
|
||||
|
||||
showHeader = false;
|
||||
isLoggedIn = false;
|
||||
|
||||
/**
|
||||
* Router import to show router-outlet.
|
||||
*
|
||||
* @param router Router
|
||||
*/
|
||||
constructor(
|
||||
private router: Router,
|
||||
private tokenStorage: TokenStorageService
|
||||
) {
|
||||
//check if it is login or registration page, header should not show there
|
||||
this.router.events
|
||||
.pipe(filter((event) => event instanceof NavigationEnd))
|
||||
.subscribe((event) => {
|
||||
this.showHeader = !(
|
||||
(event as NavigationEnd).url === '/login' ||
|
||||
(event as NavigationEnd).url === '/register'
|
||||
);
|
||||
|
||||
//check if token already exists from past login
|
||||
if (this.tokenStorage.getToken()) {
|
||||
this.isLoggedIn = true;
|
||||
} else {
|
||||
this.isLoggedIn = false;
|
||||
}
|
||||
|
||||
//prevent user from accessing dashboard if not logged in
|
||||
if (
|
||||
this.isLoggedIn === false &&
|
||||
(event as NavigationEnd).url != '/register'
|
||||
) {
|
||||
this.router.navigate(['/login']);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
</code></pre>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div><div class="search-results">
|
||||
<div class="has-results">
|
||||
<h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
|
||||
<ul class="search-results-list"></ul>
|
||||
</div>
|
||||
<div class="no-results">
|
||||
<h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="../js/libs/bootstrap-native.js"></script>
|
||||
|
||||
<script src="../js/libs/es6-shim.min.js"></script>
|
||||
<script src="../js/libs/EventDispatcher.js"></script>
|
||||
<script src="../js/libs/promise.min.js"></script>
|
||||
<script src="../js/libs/zepto.min.js"></script>
|
||||
|
||||
<script src="../js/compodoc.js"></script>
|
||||
|
||||
<script src="../js/search/search.js"></script>
|
||||
<script src="../js/search/lunr.min.js"></script>
|
||||
<script src="../js/search/search-lunr.js"></script>
|
||||
|
||||
<script src="../js/menu.js"></script>
|
||||
<script src="../js/libs/highlight.pack.js"></script>
|
||||
<script src="../js/libs/highlightjs-line-numbers.min.js"></script>
|
||||
<script src="../js/search/search_index.js"></script>
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
hljs.initHighlightingOnLoad();
|
||||
hljs.initLineNumbersOnLoad();
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
899
documentation/frontend/components/BotSettingsComponent.html
Normal file
899
documentation/frontend/components/BotSettingsComponent.html
Normal file
@@ -0,0 +1,899 @@
|
||||
<!doctype html>
|
||||
<html class="no-js" lang="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<title>aktienbot documentation</title>
|
||||
<meta name="description" content="">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<link rel="icon" type="image/x-icon" href="../images/favicon.ico">
|
||||
<link rel="stylesheet" href="../styles/style.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="navbar navbar-default navbar-fixed-top visible-xs">
|
||||
<a href="../" class="navbar-brand">aktienbot documentation</a>
|
||||
<button type="button" class="btn btn-default btn-menu fa fa-bars" id="btn-menu"></button>
|
||||
</div>
|
||||
|
||||
<div class="xs-menu menu" id="mobile-menu">
|
||||
<div id="book-search-input" role="search">
|
||||
<input type="text" placeholder="Type to search">
|
||||
</div>
|
||||
<nav>
|
||||
|
||||
<ul class="list">
|
||||
|
||||
<li class="title">
|
||||
<a href="../">aktienbot documentation</a>
|
||||
</li>
|
||||
|
||||
<li class="divider"></li>
|
||||
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../"><span class="fa fa-home"></span>Getting started</a>
|
||||
<ul class="links">
|
||||
<li class="link">
|
||||
<a href="../" ><span class="fa fa-file-text-o"></span>README</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a
|
||||
|
||||
href="../overview.html"
|
||||
href="../overview.html"
|
||||
>
|
||||
<span class="fa fa-th"></span>Overview
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="./modules.html" >
|
||||
<span class="fa fa-archive"></span>
|
||||
<span>Modules</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#xs-modules-links"
|
||||
></span>
|
||||
</a>
|
||||
<ul class="links collapse in"
|
||||
id="xs-modules-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../modules/AppModule.html" >AppModule</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-cogs"></span>
|
||||
<span>Components</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#xs-components-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="xs-components-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../components/AppComponent.html" >AppComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/BotSettingsComponent.html" class="active" >BotSettingsComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/ConfirmationDialogComponent.html" >ConfirmationDialogComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/DashboardComponent.html" >DashboardComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/HeaderComponent.html" >HeaderComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/HelpDialogComponent.html" >HelpDialogComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/LoginComponent.html" >LoginComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/ProfileComponent.html" >ProfileComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/RegisterComponent.html" >RegisterComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/UserDialogComponent.html" >UserDialogComponent</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-long-arrow-down"></span>
|
||||
<span>Injectables</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#xs-injectables-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="xs-injectables-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../injectables/AuthInterceptor.html" >AuthInterceptor</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/AuthService.html" >AuthService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/BotService.html" >BotService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/DataService.html" >DataService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/HelperService.html" >HelperService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/ProfileService.html" >ProfileService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/TokenStorageService.html" >TokenStorageService</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-info"></span>
|
||||
<span>Interfaces</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#xs-interfaces-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="xs-interfaces-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Keyword.html" >Keyword</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Share.html" >Share</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Stock.html" >Stock</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/TransactionData.html" >TransactionData</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../miscellaneous.html" ><span class="fa fa-cubes"></span>Miscellaneous</a>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../coverage.html" ><span class="fa fa-tasks"></span>Documentation coverage</a>
|
||||
</li>
|
||||
|
||||
<li class="divider"></li>
|
||||
<li class="copyright">
|
||||
Documentation generated using <a href="https://compodoc.github.io/compodoc/" target="_blank">
|
||||
<img src="..//images/compodoc-vectorise.svg" class="img-responsive">
|
||||
</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<div class="container-fluid main">
|
||||
<div class="row main">
|
||||
<div class="hidden-xs menu">
|
||||
<nav>
|
||||
|
||||
<ul class="list">
|
||||
|
||||
<li class="title">
|
||||
<a href="../">aktienbot documentation</a>
|
||||
</li>
|
||||
|
||||
<li class="divider"></li>
|
||||
|
||||
<div id="book-search-input" role="search">
|
||||
<input type="text" placeholder="Type to search">
|
||||
</div>
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../"><span class="fa fa-home"></span>Getting started</a>
|
||||
<ul class="links">
|
||||
<li class="link">
|
||||
<a href="../" ><span class="fa fa-file-text-o"></span>README</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a
|
||||
|
||||
href="../overview.html"
|
||||
href="../overview.html"
|
||||
>
|
||||
<span class="fa fa-th"></span>Overview
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="./modules.html" >
|
||||
<span class="fa fa-archive"></span>
|
||||
<span>Modules</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#modules-links"
|
||||
></span>
|
||||
</a>
|
||||
<ul class="links collapse in"
|
||||
id="modules-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../modules/AppModule.html" >AppModule</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-cogs"></span>
|
||||
<span>Components</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#components-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="components-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../components/AppComponent.html" >AppComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/BotSettingsComponent.html" class="active" >BotSettingsComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/ConfirmationDialogComponent.html" >ConfirmationDialogComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/DashboardComponent.html" >DashboardComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/HeaderComponent.html" >HeaderComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/HelpDialogComponent.html" >HelpDialogComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/LoginComponent.html" >LoginComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/ProfileComponent.html" >ProfileComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/RegisterComponent.html" >RegisterComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/UserDialogComponent.html" >UserDialogComponent</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-long-arrow-down"></span>
|
||||
<span>Injectables</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#injectables-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="injectables-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../injectables/AuthInterceptor.html" >AuthInterceptor</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/AuthService.html" >AuthService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/BotService.html" >BotService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/DataService.html" >DataService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/HelperService.html" >HelperService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/ProfileService.html" >ProfileService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/TokenStorageService.html" >TokenStorageService</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-info"></span>
|
||||
<span>Interfaces</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#interfaces-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="interfaces-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Keyword.html" >Keyword</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Share.html" >Share</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Stock.html" >Stock</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/TransactionData.html" >TransactionData</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../miscellaneous.html" ><span class="fa fa-cubes"></span>Miscellaneous</a>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../coverage.html" ><span class="fa fa-tasks"></span>Documentation coverage</a>
|
||||
</li>
|
||||
|
||||
<li class="divider"></li>
|
||||
<li class="copyright">
|
||||
Documentation generated using <a href="https://compodoc.github.io/compodoc/" target="_blank">
|
||||
<img src="..//images/compodoc-vectorise.svg" class="img-responsive">
|
||||
</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
</nav>
|
||||
</div>
|
||||
<div class="content component">
|
||||
<div class="content-data">
|
||||
|
||||
|
||||
<ol class="breadcrumb">
|
||||
<li>Components</li>
|
||||
<li>BotSettingsComponent</li>
|
||||
</ol>
|
||||
|
||||
|
||||
<ul class="nav nav-tabs" role="tablist">
|
||||
<li class="active">
|
||||
<a href="#infos" id="infos-tab" role="tab" data-toggle="tab">Infos</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#source" role="tab" id="source-tab" data-toggle="tab">Source</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane fade active in" id="infos"><p class="comment">
|
||||
<h3>File</h3>
|
||||
</p>
|
||||
<p class="comment">
|
||||
<code>src/app/Views/bot-settings/bot-settings.component.ts</code>
|
||||
</p>
|
||||
|
||||
|
||||
|
||||
<section>
|
||||
<h3>Metadata</h3>
|
||||
<table class="table table-sm table-hover">
|
||||
<tbody>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td class="col-md-3">selector</td>
|
||||
<td class="col-md-9"><code>app-bot-settings</code></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="col-md-3">styleUrls</td>
|
||||
<td class="col-md-9"><code>bot-settings.component.scss</code></td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td class="col-md-3">templateUrl</td>
|
||||
<td class="col-md-9"><code>bot-settings.component.html</code></td>
|
||||
</tr>
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
<section>
|
||||
<h3 id="constructor">Constructor</h3>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>constructor(botService: any, helper: any, profileService: any)</code>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h3 id="methods">Methods</h3>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b><span class="modifier"></span> addKeyword</b>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<span class="modifier-icon method fa fa-play ">
|
||||
<span class="fa fa-"></span>
|
||||
</span>
|
||||
<code>addKeyword(event: MatChipInputEvent)</code>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<div class="io-description">
|
||||
<b>Returns: </b> <code>any</code>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b><span class="modifier"></span> removeKeyword</b>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<span class="modifier-icon method fa fa-play ">
|
||||
<span class="fa fa-"></span>
|
||||
</span>
|
||||
<code>removeKeyword(keyword: Keyword)</code>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<div class="io-description">
|
||||
<b>Returns: </b> <code>any</code>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b><span class="modifier"></span> addShare</b>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<span class="modifier-icon method fa fa-play ">
|
||||
<span class="fa fa-"></span>
|
||||
</span>
|
||||
<code>addShare(event: MatChipInputEvent)</code>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<div class="io-description">
|
||||
<b>Returns: </b> <code>any</code>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b><span class="modifier"></span> removeShare</b>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<span class="modifier-icon method fa fa-play ">
|
||||
<span class="fa fa-"></span>
|
||||
</span>
|
||||
<code>removeShare(share: Share)</code>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<div class="io-description">
|
||||
<b>Returns: </b> <code>any</code>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b> setCronString</b>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>setCronString()</code>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<div class="io-description">
|
||||
<b>Returns: </b> <code>void</code>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h3 id="inputs">Properties</h3>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b> addOnBlur</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>addOnBlur: <code>boolean</code>
|
||||
</bcode>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<i>Default value: </i><code>true</code>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b> const</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>const: <code>any</code>
|
||||
</bcode>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b> cronForm</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>cronForm: <code><a href="https://angular.io/docs/ts/latest/api/forms/index/FormControl-class.html" target="_blank" >FormControl</a></code>
|
||||
</bcode>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b><span class="modifier">Public</span> cronOptions</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<span class="modifier-icon fa fa-circle"></span><code>cronOptions: <code>CronOptions</code>
|
||||
</bcode>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b> keywords</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>keywords: <code>Keyword[]</code>
|
||||
</bcode>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b><span class="modifier"></span> separatorKeysCodes</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<span class="modifier-icon fa fa-"></span><code>separatorKeysCodes: <code>any</code>
|
||||
</bcode>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b> shares</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>shares: <code>Share[]</code>
|
||||
</bcode>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
</div>
|
||||
<div class="tab-pane fade tab-source-code" id="source">
|
||||
<pre><code class="hljs javascript">import { Component, OnInit } from '@angular/core';
|
||||
import { C, COMMA, ENTER, F } from '@angular/cdk/keycodes';
|
||||
import { MatChipInputEvent } from '@angular/material/chips';
|
||||
|
||||
import { CronOptions } from 'ngx-cron-editor';
|
||||
|
||||
import { BotService } from 'src/app/Services/bot.service';
|
||||
import { HelperService } from 'src/app/Helpers/helper.service';
|
||||
import { ProfileService } from 'src/app/Services/profile.service';
|
||||
import { FormControl } from '@angular/forms';
|
||||
|
||||
export interface Share {
|
||||
isin: string;
|
||||
}
|
||||
|
||||
export interface Keyword {
|
||||
name: string;
|
||||
}
|
||||
|
||||
@Component({
|
||||
selector: 'app-bot-settings',
|
||||
templateUrl: './bot-settings.component.html',
|
||||
styleUrls: ['./bot-settings.component.scss'],
|
||||
})
|
||||
export class BotSettingsComponent implements OnInit {
|
||||
keywords: Keyword[] = [];
|
||||
shares: Share[] = [];
|
||||
|
||||
constructor(
|
||||
private botService: BotService,
|
||||
private helper: HelperService,
|
||||
private profileService: ProfileService
|
||||
) {}
|
||||
|
||||
ngOnInit(): void {
|
||||
this.shares = this.helper.formatShareData();
|
||||
this.keywords = this.helper.formatKeywordsData();
|
||||
}
|
||||
|
||||
addOnBlur = true;
|
||||
readonly separatorKeysCodes = [ENTER, COMMA] as const;
|
||||
|
||||
async addKeyword(event: MatChipInputEvent): Promise<void> {
|
||||
const value = (event.value || '').trim();
|
||||
|
||||
// Add keyword to database
|
||||
if (value && !this.keywords.includes({ name: value })) {
|
||||
console.log('Added: ' + value);
|
||||
this.botService.createKeyword(value.toLowerCase()).subscribe((result) => {
|
||||
console.log(result);
|
||||
});
|
||||
}
|
||||
|
||||
// Clear the input value
|
||||
event.chipInput!.clear();
|
||||
|
||||
if (value) {
|
||||
await this.helper.delay(1000);
|
||||
this.keywords = [];
|
||||
this.keywords = this.helper.formatKeywordsData();
|
||||
}
|
||||
}
|
||||
|
||||
async removeKeyword(keyword: Keyword): Promise<void> {
|
||||
this.botService.deleteKeyword(keyword.name).subscribe((result) => {
|
||||
console.log(result);
|
||||
});
|
||||
|
||||
await this.helper.delay(1000);
|
||||
|
||||
this.keywords = [];
|
||||
this.keywords = this.helper.formatKeywordsData();
|
||||
}
|
||||
|
||||
async addShare(event: MatChipInputEvent): Promise<void> {
|
||||
const value = (event.value || '').trim();
|
||||
|
||||
// Add share to database
|
||||
if (value && !this.shares.includes({ isin: value.toLowerCase() })) {
|
||||
console.log('Added: ' + value);
|
||||
this.botService.createShare(value, 'Comment').subscribe((result) => {
|
||||
console.log(result);
|
||||
});
|
||||
}
|
||||
|
||||
// Clear the input value
|
||||
event.chipInput!.clear();
|
||||
|
||||
if (value) {
|
||||
await this.helper.delay(1000);
|
||||
|
||||
this.shares = [];
|
||||
this.shares = this.helper.formatShareData();
|
||||
}
|
||||
}
|
||||
|
||||
async removeShare(share: Share): Promise<void> {
|
||||
this.botService.deleteShare(share.isin).subscribe((result) => {
|
||||
console.log(result);
|
||||
});
|
||||
|
||||
await this.helper.delay(1000);
|
||||
|
||||
this.shares = [];
|
||||
this.shares = this.helper.formatShareData();
|
||||
}
|
||||
|
||||
setCronString() {
|
||||
this.profileService
|
||||
.addCronString(this.cronForm.value)
|
||||
.subscribe((result) => {
|
||||
console.log(result);
|
||||
});
|
||||
}
|
||||
|
||||
cronForm = new FormControl('0 0 1/1 * *');
|
||||
public cronOptions: CronOptions = {
|
||||
defaultTime: '00:00:00',
|
||||
|
||||
hideMinutesTab: true,
|
||||
hideHourlyTab: true,
|
||||
hideDailyTab: false,
|
||||
hideWeeklyTab: true,
|
||||
hideMonthlyTab: true,
|
||||
hideYearlyTab: true,
|
||||
hideAdvancedTab: true,
|
||||
hideSpecificWeekDayTab: true,
|
||||
hideSpecificMonthWeekTab: true,
|
||||
|
||||
use24HourTime: true,
|
||||
hideSeconds: true,
|
||||
|
||||
cronFlavor: 'quartz', //standard or quartz
|
||||
};
|
||||
}
|
||||
</code></pre>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div><div class="search-results">
|
||||
<div class="has-results">
|
||||
<h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
|
||||
<ul class="search-results-list"></ul>
|
||||
</div>
|
||||
<div class="no-results">
|
||||
<h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="../js/libs/bootstrap-native.js"></script>
|
||||
|
||||
<script src="../js/libs/es6-shim.min.js"></script>
|
||||
<script src="../js/libs/EventDispatcher.js"></script>
|
||||
<script src="../js/libs/promise.min.js"></script>
|
||||
<script src="../js/libs/zepto.min.js"></script>
|
||||
|
||||
<script src="../js/compodoc.js"></script>
|
||||
|
||||
<script src="../js/search/search.js"></script>
|
||||
<script src="../js/search/lunr.min.js"></script>
|
||||
<script src="../js/search/search-lunr.js"></script>
|
||||
|
||||
<script src="../js/menu.js"></script>
|
||||
<script src="../js/libs/highlight.pack.js"></script>
|
||||
<script src="../js/libs/highlightjs-line-numbers.min.js"></script>
|
||||
<script src="../js/search/search_index.js"></script>
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
hljs.initHighlightingOnLoad();
|
||||
hljs.initLineNumbersOnLoad();
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
@@ -0,0 +1,581 @@
|
||||
<!doctype html>
|
||||
<html class="no-js" lang="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<title>aktienbot documentation</title>
|
||||
<meta name="description" content="">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<link rel="icon" type="image/x-icon" href="../images/favicon.ico">
|
||||
<link rel="stylesheet" href="../styles/style.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="navbar navbar-default navbar-fixed-top visible-xs">
|
||||
<a href="../" class="navbar-brand">aktienbot documentation</a>
|
||||
<button type="button" class="btn btn-default btn-menu fa fa-bars" id="btn-menu"></button>
|
||||
</div>
|
||||
|
||||
<div class="xs-menu menu" id="mobile-menu">
|
||||
<div id="book-search-input" role="search">
|
||||
<input type="text" placeholder="Type to search">
|
||||
</div>
|
||||
<nav>
|
||||
|
||||
<ul class="list">
|
||||
|
||||
<li class="title">
|
||||
<a href="../">aktienbot documentation</a>
|
||||
</li>
|
||||
|
||||
<li class="divider"></li>
|
||||
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../"><span class="fa fa-home"></span>Getting started</a>
|
||||
<ul class="links">
|
||||
<li class="link">
|
||||
<a href="../" ><span class="fa fa-file-text-o"></span>README</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a
|
||||
|
||||
href="../overview.html"
|
||||
href="../overview.html"
|
||||
>
|
||||
<span class="fa fa-th"></span>Overview
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="./modules.html" >
|
||||
<span class="fa fa-archive"></span>
|
||||
<span>Modules</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#xs-modules-links"
|
||||
></span>
|
||||
</a>
|
||||
<ul class="links collapse in"
|
||||
id="xs-modules-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../modules/AppModule.html" >AppModule</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-cogs"></span>
|
||||
<span>Components</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#xs-components-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="xs-components-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../components/AppComponent.html" >AppComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/BotSettingsComponent.html" >BotSettingsComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/ConfirmationDialogComponent.html" class="active" >ConfirmationDialogComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/DashboardComponent.html" >DashboardComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/HeaderComponent.html" >HeaderComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/HelpDialogComponent.html" >HelpDialogComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/LoginComponent.html" >LoginComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/ProfileComponent.html" >ProfileComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/RegisterComponent.html" >RegisterComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/UserDialogComponent.html" >UserDialogComponent</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-long-arrow-down"></span>
|
||||
<span>Injectables</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#xs-injectables-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="xs-injectables-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../injectables/AuthInterceptor.html" >AuthInterceptor</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/AuthService.html" >AuthService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/BotService.html" >BotService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/DataService.html" >DataService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/HelperService.html" >HelperService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/ProfileService.html" >ProfileService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/TokenStorageService.html" >TokenStorageService</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-info"></span>
|
||||
<span>Interfaces</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#xs-interfaces-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="xs-interfaces-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Keyword.html" >Keyword</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Share.html" >Share</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Stock.html" >Stock</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/TransactionData.html" >TransactionData</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../miscellaneous.html" ><span class="fa fa-cubes"></span>Miscellaneous</a>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../coverage.html" ><span class="fa fa-tasks"></span>Documentation coverage</a>
|
||||
</li>
|
||||
|
||||
<li class="divider"></li>
|
||||
<li class="copyright">
|
||||
Documentation generated using <a href="https://compodoc.github.io/compodoc/" target="_blank">
|
||||
<img src="..//images/compodoc-vectorise.svg" class="img-responsive">
|
||||
</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<div class="container-fluid main">
|
||||
<div class="row main">
|
||||
<div class="hidden-xs menu">
|
||||
<nav>
|
||||
|
||||
<ul class="list">
|
||||
|
||||
<li class="title">
|
||||
<a href="../">aktienbot documentation</a>
|
||||
</li>
|
||||
|
||||
<li class="divider"></li>
|
||||
|
||||
<div id="book-search-input" role="search">
|
||||
<input type="text" placeholder="Type to search">
|
||||
</div>
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../"><span class="fa fa-home"></span>Getting started</a>
|
||||
<ul class="links">
|
||||
<li class="link">
|
||||
<a href="../" ><span class="fa fa-file-text-o"></span>README</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a
|
||||
|
||||
href="../overview.html"
|
||||
href="../overview.html"
|
||||
>
|
||||
<span class="fa fa-th"></span>Overview
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="./modules.html" >
|
||||
<span class="fa fa-archive"></span>
|
||||
<span>Modules</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#modules-links"
|
||||
></span>
|
||||
</a>
|
||||
<ul class="links collapse in"
|
||||
id="modules-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../modules/AppModule.html" >AppModule</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-cogs"></span>
|
||||
<span>Components</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#components-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="components-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../components/AppComponent.html" >AppComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/BotSettingsComponent.html" >BotSettingsComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/ConfirmationDialogComponent.html" class="active" >ConfirmationDialogComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/DashboardComponent.html" >DashboardComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/HeaderComponent.html" >HeaderComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/HelpDialogComponent.html" >HelpDialogComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/LoginComponent.html" >LoginComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/ProfileComponent.html" >ProfileComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/RegisterComponent.html" >RegisterComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/UserDialogComponent.html" >UserDialogComponent</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-long-arrow-down"></span>
|
||||
<span>Injectables</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#injectables-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="injectables-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../injectables/AuthInterceptor.html" >AuthInterceptor</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/AuthService.html" >AuthService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/BotService.html" >BotService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/DataService.html" >DataService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/HelperService.html" >HelperService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/ProfileService.html" >ProfileService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/TokenStorageService.html" >TokenStorageService</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-info"></span>
|
||||
<span>Interfaces</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#interfaces-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="interfaces-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Keyword.html" >Keyword</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Share.html" >Share</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Stock.html" >Stock</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/TransactionData.html" >TransactionData</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../miscellaneous.html" ><span class="fa fa-cubes"></span>Miscellaneous</a>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../coverage.html" ><span class="fa fa-tasks"></span>Documentation coverage</a>
|
||||
</li>
|
||||
|
||||
<li class="divider"></li>
|
||||
<li class="copyright">
|
||||
Documentation generated using <a href="https://compodoc.github.io/compodoc/" target="_blank">
|
||||
<img src="..//images/compodoc-vectorise.svg" class="img-responsive">
|
||||
</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
</nav>
|
||||
</div>
|
||||
<div class="content component">
|
||||
<div class="content-data">
|
||||
|
||||
|
||||
<ol class="breadcrumb">
|
||||
<li>Components</li>
|
||||
<li>ConfirmationDialogComponent</li>
|
||||
</ol>
|
||||
|
||||
|
||||
<ul class="nav nav-tabs" role="tablist">
|
||||
<li class="active">
|
||||
<a href="#infos" id="infos-tab" role="tab" data-toggle="tab">Infos</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#source" role="tab" id="source-tab" data-toggle="tab">Source</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane fade active in" id="infos"><p class="comment">
|
||||
<h3>File</h3>
|
||||
</p>
|
||||
<p class="comment">
|
||||
<code>src/app/Views/profile/confirmation-dialog/confirmation-dialog.component.ts</code>
|
||||
</p>
|
||||
|
||||
|
||||
|
||||
<section>
|
||||
<h3>Metadata</h3>
|
||||
<table class="table table-sm table-hover">
|
||||
<tbody>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td class="col-md-3">selector</td>
|
||||
<td class="col-md-9"><code>app-confirmation-dialog</code></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="col-md-3">styleUrls</td>
|
||||
<td class="col-md-9"><code>confirmation-dialog.component.scss</code></td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td class="col-md-3">templateUrl</td>
|
||||
<td class="col-md-9"><code>confirmation-dialog.component.html</code></td>
|
||||
</tr>
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
<section>
|
||||
<h3 id="constructor">Constructor</h3>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>constructor()</code>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h3 id="methods">Methods</h3>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b> confirm</b>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>confirm()</code>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<div class="io-description">
|
||||
<b>Returns: </b> <code>void</code>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b> returnBack</b>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>returnBack()</code>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<div class="io-description">
|
||||
<b>Returns: </b> <code>void</code>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
<div class="tab-pane fade tab-source-code" id="source">
|
||||
<pre><code class="hljs javascript">import { Component, OnInit } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-confirmation-dialog',
|
||||
templateUrl: './confirmation-dialog.component.html',
|
||||
styleUrls: ['./confirmation-dialog.component.scss'],
|
||||
})
|
||||
export class ConfirmationDialogComponent {
|
||||
constructor() {}
|
||||
|
||||
confirm() {}
|
||||
|
||||
returnBack() {}
|
||||
}
|
||||
</code></pre>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div><div class="search-results">
|
||||
<div class="has-results">
|
||||
<h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
|
||||
<ul class="search-results-list"></ul>
|
||||
</div>
|
||||
<div class="no-results">
|
||||
<h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="../js/libs/bootstrap-native.js"></script>
|
||||
|
||||
<script src="../js/libs/es6-shim.min.js"></script>
|
||||
<script src="../js/libs/EventDispatcher.js"></script>
|
||||
<script src="../js/libs/promise.min.js"></script>
|
||||
<script src="../js/libs/zepto.min.js"></script>
|
||||
|
||||
<script src="../js/compodoc.js"></script>
|
||||
|
||||
<script src="../js/search/search.js"></script>
|
||||
<script src="../js/search/lunr.min.js"></script>
|
||||
<script src="../js/search/search-lunr.js"></script>
|
||||
|
||||
<script src="../js/menu.js"></script>
|
||||
<script src="../js/libs/highlight.pack.js"></script>
|
||||
<script src="../js/libs/highlightjs-line-numbers.min.js"></script>
|
||||
<script src="../js/search/search_index.js"></script>
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
hljs.initHighlightingOnLoad();
|
||||
hljs.initLineNumbersOnLoad();
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
943
documentation/frontend/components/DashboardComponent.html
Normal file
943
documentation/frontend/components/DashboardComponent.html
Normal file
@@ -0,0 +1,943 @@
|
||||
<!doctype html>
|
||||
<html class="no-js" lang="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<title>aktienbot documentation</title>
|
||||
<meta name="description" content="">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<link rel="icon" type="image/x-icon" href="../images/favicon.ico">
|
||||
<link rel="stylesheet" href="../styles/style.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="navbar navbar-default navbar-fixed-top visible-xs">
|
||||
<a href="../" class="navbar-brand">aktienbot documentation</a>
|
||||
<button type="button" class="btn btn-default btn-menu fa fa-bars" id="btn-menu"></button>
|
||||
</div>
|
||||
|
||||
<div class="xs-menu menu" id="mobile-menu">
|
||||
<div id="book-search-input" role="search">
|
||||
<input type="text" placeholder="Type to search">
|
||||
</div>
|
||||
<nav>
|
||||
|
||||
<ul class="list">
|
||||
|
||||
<li class="title">
|
||||
<a href="../">aktienbot documentation</a>
|
||||
</li>
|
||||
|
||||
<li class="divider"></li>
|
||||
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../"><span class="fa fa-home"></span>Getting started</a>
|
||||
<ul class="links">
|
||||
<li class="link">
|
||||
<a href="../" ><span class="fa fa-file-text-o"></span>README</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a
|
||||
|
||||
href="../overview.html"
|
||||
href="../overview.html"
|
||||
>
|
||||
<span class="fa fa-th"></span>Overview
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="./modules.html" >
|
||||
<span class="fa fa-archive"></span>
|
||||
<span>Modules</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#xs-modules-links"
|
||||
></span>
|
||||
</a>
|
||||
<ul class="links collapse in"
|
||||
id="xs-modules-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../modules/AppModule.html" >AppModule</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-cogs"></span>
|
||||
<span>Components</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#xs-components-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="xs-components-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../components/AppComponent.html" >AppComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/BotSettingsComponent.html" >BotSettingsComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/ConfirmationDialogComponent.html" >ConfirmationDialogComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/DashboardComponent.html" class="active" >DashboardComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/HeaderComponent.html" >HeaderComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/HelpDialogComponent.html" >HelpDialogComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/LoginComponent.html" >LoginComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/ProfileComponent.html" >ProfileComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/RegisterComponent.html" >RegisterComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/UserDialogComponent.html" >UserDialogComponent</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-long-arrow-down"></span>
|
||||
<span>Injectables</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#xs-injectables-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="xs-injectables-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../injectables/AuthInterceptor.html" >AuthInterceptor</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/AuthService.html" >AuthService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/BotService.html" >BotService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/DataService.html" >DataService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/HelperService.html" >HelperService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/ProfileService.html" >ProfileService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/TokenStorageService.html" >TokenStorageService</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-info"></span>
|
||||
<span>Interfaces</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#xs-interfaces-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="xs-interfaces-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Keyword.html" >Keyword</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Share.html" >Share</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Stock.html" >Stock</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/TransactionData.html" >TransactionData</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../miscellaneous.html" ><span class="fa fa-cubes"></span>Miscellaneous</a>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../coverage.html" ><span class="fa fa-tasks"></span>Documentation coverage</a>
|
||||
</li>
|
||||
|
||||
<li class="divider"></li>
|
||||
<li class="copyright">
|
||||
Documentation generated using <a href="https://compodoc.github.io/compodoc/" target="_blank">
|
||||
<img src="..//images/compodoc-vectorise.svg" class="img-responsive">
|
||||
</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<div class="container-fluid main">
|
||||
<div class="row main">
|
||||
<div class="hidden-xs menu">
|
||||
<nav>
|
||||
|
||||
<ul class="list">
|
||||
|
||||
<li class="title">
|
||||
<a href="../">aktienbot documentation</a>
|
||||
</li>
|
||||
|
||||
<li class="divider"></li>
|
||||
|
||||
<div id="book-search-input" role="search">
|
||||
<input type="text" placeholder="Type to search">
|
||||
</div>
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../"><span class="fa fa-home"></span>Getting started</a>
|
||||
<ul class="links">
|
||||
<li class="link">
|
||||
<a href="../" ><span class="fa fa-file-text-o"></span>README</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a
|
||||
|
||||
href="../overview.html"
|
||||
href="../overview.html"
|
||||
>
|
||||
<span class="fa fa-th"></span>Overview
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="./modules.html" >
|
||||
<span class="fa fa-archive"></span>
|
||||
<span>Modules</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#modules-links"
|
||||
></span>
|
||||
</a>
|
||||
<ul class="links collapse in"
|
||||
id="modules-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../modules/AppModule.html" >AppModule</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-cogs"></span>
|
||||
<span>Components</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#components-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="components-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../components/AppComponent.html" >AppComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/BotSettingsComponent.html" >BotSettingsComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/ConfirmationDialogComponent.html" >ConfirmationDialogComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/DashboardComponent.html" class="active" >DashboardComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/HeaderComponent.html" >HeaderComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/HelpDialogComponent.html" >HelpDialogComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/LoginComponent.html" >LoginComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/ProfileComponent.html" >ProfileComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/RegisterComponent.html" >RegisterComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/UserDialogComponent.html" >UserDialogComponent</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-long-arrow-down"></span>
|
||||
<span>Injectables</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#injectables-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="injectables-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../injectables/AuthInterceptor.html" >AuthInterceptor</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/AuthService.html" >AuthService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/BotService.html" >BotService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/DataService.html" >DataService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/HelperService.html" >HelperService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/ProfileService.html" >ProfileService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/TokenStorageService.html" >TokenStorageService</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-info"></span>
|
||||
<span>Interfaces</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#interfaces-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="interfaces-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Keyword.html" >Keyword</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Share.html" >Share</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Stock.html" >Stock</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/TransactionData.html" >TransactionData</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../miscellaneous.html" ><span class="fa fa-cubes"></span>Miscellaneous</a>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../coverage.html" ><span class="fa fa-tasks"></span>Documentation coverage</a>
|
||||
</li>
|
||||
|
||||
<li class="divider"></li>
|
||||
<li class="copyright">
|
||||
Documentation generated using <a href="https://compodoc.github.io/compodoc/" target="_blank">
|
||||
<img src="..//images/compodoc-vectorise.svg" class="img-responsive">
|
||||
</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
</nav>
|
||||
</div>
|
||||
<div class="content component">
|
||||
<div class="content-data">
|
||||
|
||||
|
||||
<ol class="breadcrumb">
|
||||
<li>Components</li>
|
||||
<li>DashboardComponent</li>
|
||||
</ol>
|
||||
|
||||
|
||||
<ul class="nav nav-tabs" role="tablist">
|
||||
<li class="active">
|
||||
<a href="#infos" id="infos-tab" role="tab" data-toggle="tab">Infos</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#source" role="tab" id="source-tab" data-toggle="tab">Source</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane fade active in" id="infos"><p class="comment">
|
||||
<h3>File</h3>
|
||||
</p>
|
||||
<p class="comment">
|
||||
<code>src/app/Views/dashboard/dashboard.component.ts</code>
|
||||
</p>
|
||||
|
||||
|
||||
|
||||
<section>
|
||||
<h3>Metadata</h3>
|
||||
<table class="table table-sm table-hover">
|
||||
<tbody>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td class="col-md-3">selector</td>
|
||||
<td class="col-md-9"><code>app-dashboard</code></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="col-md-3">styleUrls</td>
|
||||
<td class="col-md-9"><code>dashboard.component.scss</code></td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td class="col-md-3">templateUrl</td>
|
||||
<td class="col-md-9"><code>dashboard.component.html</code></td>
|
||||
</tr>
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
<section>
|
||||
<h3 id="constructor">Constructor</h3>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>constructor(dataService: any, helper: any, dialog: MatDialog)</code>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h3 id="methods">Methods</h3>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b> getTransactions</b>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>getTransactions()</code>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<div class="io-description">
|
||||
<b>Returns: </b> <code>void</code>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b> openDialog</b>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>openDialog()</code>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<div class="io-description">
|
||||
<b>Returns: </b> <code>void</code>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h3 id="inputs">Properties</h3>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b> comment</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>comment: <code>string</code>
|
||||
</bcode>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b> count</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>count: <code>number</code>
|
||||
</bcode>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<i>Default value: </i><code>0</code>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b> dataSourceStocks</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>dataSourceStocks: <code>Stock[]</code>
|
||||
</bcode>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b> dataSourceTransactions</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>dataSourceTransactions: <code>TransactionData[]</code>
|
||||
</bcode>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b> depotCost</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>depotCost: <code>number</code>
|
||||
</bcode>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<i>Default value: </i><code>0</code>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b> depotCurrentValue</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>depotCurrentValue: <code>number</code>
|
||||
</bcode>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<i>Default value: </i><code>0</code>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b> dialog</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>dialog: <code>MatDialog</code>
|
||||
</bcode>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b> displayedColumns</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>displayedColumns: <code>string[]</code>
|
||||
</bcode>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b> displayedColumnsStocks</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>displayedColumnsStocks: <code>string[]</code>
|
||||
</bcode>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b> isin</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>isin: <code>string</code>
|
||||
</bcode>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b> price</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>price: <code>number</code>
|
||||
</bcode>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<i>Default value: </i><code>0</code>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b> profit</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>profit: <code>number</code>
|
||||
</bcode>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<i>Default value: </i><code>0</code>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b> time</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>time: <code>Date</code>
|
||||
</bcode>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
</div>
|
||||
<div class="tab-pane fade tab-source-code" id="source">
|
||||
<pre><code class="hljs javascript">import { Component, OnInit } from '@angular/core';
|
||||
import { DataService } from 'src/app/Services/data.service';
|
||||
import { MatDialog } from '@angular/material/dialog';
|
||||
import { UserDialogComponent } from './user-dialog/user-dialog.component';
|
||||
import { HelperService } from 'src/app/Helpers/helper.service';
|
||||
|
||||
export interface Stock {
|
||||
count: number;
|
||||
comment: string;
|
||||
isin: string;
|
||||
last_transaction: string;
|
||||
current_price: number;
|
||||
}
|
||||
|
||||
var TRANSACTION_DATA: TransactionData[] = [];
|
||||
var STOCK_DATA: Stock[] = [];
|
||||
|
||||
export interface TransactionData {
|
||||
comment: string;
|
||||
isin: string;
|
||||
time: string;
|
||||
count: number;
|
||||
price: number;
|
||||
}
|
||||
|
||||
@Component({
|
||||
selector: 'app-dashboard',
|
||||
templateUrl: './dashboard.component.html',
|
||||
styleUrls: ['./dashboard.component.scss'],
|
||||
})
|
||||
export class DashboardComponent implements OnInit {
|
||||
constructor(
|
||||
private dataService: DataService,
|
||||
private helper: HelperService,
|
||||
public dialog: MatDialog
|
||||
) {}
|
||||
|
||||
dataSourceTransactions: TransactionData[] = [];
|
||||
dataSourceStocks: Stock[] = [];
|
||||
depotCurrentValue: number = 0;
|
||||
depotCost: number = 0;
|
||||
profit: number = 0;
|
||||
|
||||
comment: string = '';
|
||||
isin: string = '';
|
||||
time: Date = new Date();
|
||||
count: number = 0.0;
|
||||
price: number = 0.0;
|
||||
|
||||
getTransactions() {
|
||||
var TRANSACTION_DATA: TransactionData[] = [];
|
||||
this.dataService.getTransactionData().subscribe((response: any) => {
|
||||
var data = JSON.parse(response);
|
||||
this.depotCost = 0;
|
||||
for (let i = 0; i < data.data.length; i++) {
|
||||
this.depotCost += data.data[i].price;
|
||||
TRANSACTION_DATA.push({
|
||||
comment: data.data[i].comment,
|
||||
isin: data.data[i].isin,
|
||||
time: data.data[i].time,
|
||||
count: data.data[i].count,
|
||||
price: data.data[i].price,
|
||||
});
|
||||
}
|
||||
this.dataSourceTransactions = TRANSACTION_DATA;
|
||||
//TODO move to helper service
|
||||
|
||||
this.profit = this.depotCurrentValue - this.depotCost;
|
||||
});
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
/**
|
||||
* Function gets the stock data and pushes it in the temporary object array
|
||||
*/
|
||||
this.dataService.getStockData().subscribe((response: any) => {
|
||||
var data = JSON.parse(response);
|
||||
console.log(data);
|
||||
this.depotCurrentValue = 0;
|
||||
for (let i = 0; i < data.data.length; i++) {
|
||||
this.depotCurrentValue = data.data[i].current_price;
|
||||
STOCK_DATA.push({
|
||||
count: data.data[i].count,
|
||||
comment: data.data[i].comment,
|
||||
isin: data.data[i].isin,
|
||||
last_transaction: data.data[i].last_transaction,
|
||||
current_price: data.data[i].current_price,
|
||||
});
|
||||
}
|
||||
// assign data source
|
||||
this.dataSourceStocks = STOCK_DATA;
|
||||
this.profit += this.depotCurrentValue;
|
||||
});
|
||||
|
||||
/**
|
||||
* Function gets the transaction data and pushes it in the temporary object array
|
||||
*/
|
||||
this.dataService.getTransactionData().subscribe((response: any) => {
|
||||
var data = JSON.parse(response);
|
||||
this.depotCost = 0;
|
||||
for (let i = 0; i < data.data.length; i++) {
|
||||
this.depotCost += data.data[i].price;
|
||||
TRANSACTION_DATA.push({
|
||||
comment: data.data[i].comment,
|
||||
isin: data.data[i].isin,
|
||||
time: data.data[i].time,
|
||||
count: data.data[i].count,
|
||||
price: data.data[i].price,
|
||||
});
|
||||
}
|
||||
// assign data source
|
||||
this.dataSourceTransactions = TRANSACTION_DATA;
|
||||
this.profit += this.depotCost;
|
||||
});
|
||||
}
|
||||
|
||||
// function to open the user dialog to create a new transaction
|
||||
openDialog(): void {
|
||||
const dialogRef = this.dialog.open(UserDialogComponent, {
|
||||
width: '50vw',
|
||||
data: {
|
||||
comment: this.comment,
|
||||
isin: this.isin,
|
||||
time: this.time,
|
||||
count: this.count,
|
||||
price: this.price,
|
||||
},
|
||||
});
|
||||
|
||||
dialogRef.afterClosed().subscribe((result) => {
|
||||
this.helper.delay(1000);
|
||||
this.getTransactions();
|
||||
});
|
||||
}
|
||||
|
||||
// assign columns for transactions to display in html, you can change order and add/remove columns
|
||||
displayedColumns: string[] = [
|
||||
'comment',
|
||||
'weight',
|
||||
'position',
|
||||
'name',
|
||||
'symbol',
|
||||
];
|
||||
|
||||
// assign columns to display in html, you can change order and add/remove columns
|
||||
displayedColumnsStocks: string[] = [
|
||||
'count',
|
||||
'comment',
|
||||
'isin',
|
||||
'current_price',
|
||||
'last_transaction',
|
||||
];
|
||||
}
|
||||
</code></pre>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div><div class="search-results">
|
||||
<div class="has-results">
|
||||
<h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
|
||||
<ul class="search-results-list"></ul>
|
||||
</div>
|
||||
<div class="no-results">
|
||||
<h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="../js/libs/bootstrap-native.js"></script>
|
||||
|
||||
<script src="../js/libs/es6-shim.min.js"></script>
|
||||
<script src="../js/libs/EventDispatcher.js"></script>
|
||||
<script src="../js/libs/promise.min.js"></script>
|
||||
<script src="../js/libs/zepto.min.js"></script>
|
||||
|
||||
<script src="../js/compodoc.js"></script>
|
||||
|
||||
<script src="../js/search/search.js"></script>
|
||||
<script src="../js/search/lunr.min.js"></script>
|
||||
<script src="../js/search/search-lunr.js"></script>
|
||||
|
||||
<script src="../js/menu.js"></script>
|
||||
<script src="../js/libs/highlight.pack.js"></script>
|
||||
<script src="../js/libs/highlightjs-line-numbers.min.js"></script>
|
||||
<script src="../js/search/search_index.js"></script>
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
hljs.initHighlightingOnLoad();
|
||||
hljs.initLineNumbersOnLoad();
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
582
documentation/frontend/components/HeaderComponent.html
Normal file
582
documentation/frontend/components/HeaderComponent.html
Normal file
@@ -0,0 +1,582 @@
|
||||
<!doctype html>
|
||||
<html class="no-js" lang="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<title>aktienbot documentation</title>
|
||||
<meta name="description" content="">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<link rel="icon" type="image/x-icon" href="../images/favicon.ico">
|
||||
<link rel="stylesheet" href="../styles/style.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="navbar navbar-default navbar-fixed-top visible-xs">
|
||||
<a href="../" class="navbar-brand">aktienbot documentation</a>
|
||||
<button type="button" class="btn btn-default btn-menu fa fa-bars" id="btn-menu"></button>
|
||||
</div>
|
||||
|
||||
<div class="xs-menu menu" id="mobile-menu">
|
||||
<div id="book-search-input" role="search">
|
||||
<input type="text" placeholder="Type to search">
|
||||
</div>
|
||||
<nav>
|
||||
|
||||
<ul class="list">
|
||||
|
||||
<li class="title">
|
||||
<a href="../">aktienbot documentation</a>
|
||||
</li>
|
||||
|
||||
<li class="divider"></li>
|
||||
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../"><span class="fa fa-home"></span>Getting started</a>
|
||||
<ul class="links">
|
||||
<li class="link">
|
||||
<a href="../" ><span class="fa fa-file-text-o"></span>README</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a
|
||||
|
||||
href="../overview.html"
|
||||
href="../overview.html"
|
||||
>
|
||||
<span class="fa fa-th"></span>Overview
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="./modules.html" >
|
||||
<span class="fa fa-archive"></span>
|
||||
<span>Modules</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#xs-modules-links"
|
||||
></span>
|
||||
</a>
|
||||
<ul class="links collapse in"
|
||||
id="xs-modules-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../modules/AppModule.html" >AppModule</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-cogs"></span>
|
||||
<span>Components</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#xs-components-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="xs-components-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../components/AppComponent.html" >AppComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/BotSettingsComponent.html" >BotSettingsComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/ConfirmationDialogComponent.html" >ConfirmationDialogComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/DashboardComponent.html" >DashboardComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/HeaderComponent.html" class="active" >HeaderComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/HelpDialogComponent.html" >HelpDialogComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/LoginComponent.html" >LoginComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/ProfileComponent.html" >ProfileComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/RegisterComponent.html" >RegisterComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/UserDialogComponent.html" >UserDialogComponent</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-long-arrow-down"></span>
|
||||
<span>Injectables</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#xs-injectables-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="xs-injectables-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../injectables/AuthInterceptor.html" >AuthInterceptor</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/AuthService.html" >AuthService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/BotService.html" >BotService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/DataService.html" >DataService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/HelperService.html" >HelperService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/ProfileService.html" >ProfileService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/TokenStorageService.html" >TokenStorageService</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-info"></span>
|
||||
<span>Interfaces</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#xs-interfaces-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="xs-interfaces-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Keyword.html" >Keyword</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Share.html" >Share</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Stock.html" >Stock</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/TransactionData.html" >TransactionData</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../miscellaneous.html" ><span class="fa fa-cubes"></span>Miscellaneous</a>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../coverage.html" ><span class="fa fa-tasks"></span>Documentation coverage</a>
|
||||
</li>
|
||||
|
||||
<li class="divider"></li>
|
||||
<li class="copyright">
|
||||
Documentation generated using <a href="https://compodoc.github.io/compodoc/" target="_blank">
|
||||
<img src="..//images/compodoc-vectorise.svg" class="img-responsive">
|
||||
</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<div class="container-fluid main">
|
||||
<div class="row main">
|
||||
<div class="hidden-xs menu">
|
||||
<nav>
|
||||
|
||||
<ul class="list">
|
||||
|
||||
<li class="title">
|
||||
<a href="../">aktienbot documentation</a>
|
||||
</li>
|
||||
|
||||
<li class="divider"></li>
|
||||
|
||||
<div id="book-search-input" role="search">
|
||||
<input type="text" placeholder="Type to search">
|
||||
</div>
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../"><span class="fa fa-home"></span>Getting started</a>
|
||||
<ul class="links">
|
||||
<li class="link">
|
||||
<a href="../" ><span class="fa fa-file-text-o"></span>README</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a
|
||||
|
||||
href="../overview.html"
|
||||
href="../overview.html"
|
||||
>
|
||||
<span class="fa fa-th"></span>Overview
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="./modules.html" >
|
||||
<span class="fa fa-archive"></span>
|
||||
<span>Modules</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#modules-links"
|
||||
></span>
|
||||
</a>
|
||||
<ul class="links collapse in"
|
||||
id="modules-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../modules/AppModule.html" >AppModule</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-cogs"></span>
|
||||
<span>Components</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#components-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="components-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../components/AppComponent.html" >AppComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/BotSettingsComponent.html" >BotSettingsComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/ConfirmationDialogComponent.html" >ConfirmationDialogComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/DashboardComponent.html" >DashboardComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/HeaderComponent.html" class="active" >HeaderComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/HelpDialogComponent.html" >HelpDialogComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/LoginComponent.html" >LoginComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/ProfileComponent.html" >ProfileComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/RegisterComponent.html" >RegisterComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/UserDialogComponent.html" >UserDialogComponent</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-long-arrow-down"></span>
|
||||
<span>Injectables</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#injectables-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="injectables-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../injectables/AuthInterceptor.html" >AuthInterceptor</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/AuthService.html" >AuthService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/BotService.html" >BotService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/DataService.html" >DataService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/HelperService.html" >HelperService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/ProfileService.html" >ProfileService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/TokenStorageService.html" >TokenStorageService</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-info"></span>
|
||||
<span>Interfaces</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#interfaces-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="interfaces-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Keyword.html" >Keyword</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Share.html" >Share</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Stock.html" >Stock</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/TransactionData.html" >TransactionData</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../miscellaneous.html" ><span class="fa fa-cubes"></span>Miscellaneous</a>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../coverage.html" ><span class="fa fa-tasks"></span>Documentation coverage</a>
|
||||
</li>
|
||||
|
||||
<li class="divider"></li>
|
||||
<li class="copyright">
|
||||
Documentation generated using <a href="https://compodoc.github.io/compodoc/" target="_blank">
|
||||
<img src="..//images/compodoc-vectorise.svg" class="img-responsive">
|
||||
</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
</nav>
|
||||
</div>
|
||||
<div class="content component">
|
||||
<div class="content-data">
|
||||
|
||||
|
||||
<ol class="breadcrumb">
|
||||
<li>Components</li>
|
||||
<li>HeaderComponent</li>
|
||||
</ol>
|
||||
|
||||
|
||||
<ul class="nav nav-tabs" role="tablist">
|
||||
<li class="active">
|
||||
<a href="#infos" id="infos-tab" role="tab" data-toggle="tab">Infos</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#source" role="tab" id="source-tab" data-toggle="tab">Source</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane fade active in" id="infos"><p class="comment">
|
||||
<h3>File</h3>
|
||||
</p>
|
||||
<p class="comment">
|
||||
<code>src/app/Views/header/header.component.ts</code>
|
||||
</p>
|
||||
|
||||
|
||||
|
||||
<section>
|
||||
<h3>Metadata</h3>
|
||||
<table class="table table-sm table-hover">
|
||||
<tbody>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td class="col-md-3">selector</td>
|
||||
<td class="col-md-9"><code>app-header</code></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="col-md-3">styleUrls</td>
|
||||
<td class="col-md-9"><code>header.component.scss</code></td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td class="col-md-3">templateUrl</td>
|
||||
<td class="col-md-9"><code>header.component.html</code></td>
|
||||
</tr>
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
<section>
|
||||
<h3 id="constructor">Constructor</h3>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>constructor(tokenStorage: any)</code>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<div class="io-description">
|
||||
<b>Parameters :</b>
|
||||
<ul class="jsdoc-params">
|
||||
<li>
|
||||
<div>
|
||||
<b>privatetokenStorage</b>
|
||||
: <code><a href="../injectables/TokenStorageService.html" target="_self" >TokenStorageService</a></code>
|
||||
|
||||
</div>
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h3 id="methods">Methods</h3>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b> logout</b>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>logout()</code>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<div class="io-description">
|
||||
<b>Returns: </b> <code>void</code>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
<div class="tab-pane fade tab-source-code" id="source">
|
||||
<pre><code class="hljs javascript">import { Component, OnInit } from '@angular/core';
|
||||
import { TokenStorageService } from 'src/app/Services/token.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-header',
|
||||
templateUrl: './header.component.html',
|
||||
styleUrls: ['./header.component.scss'],
|
||||
})
|
||||
export class HeaderComponent {
|
||||
/**
|
||||
* @param {TokenStorageService} privatetokenStorage
|
||||
*/
|
||||
constructor(private tokenStorage: TokenStorageService) {}
|
||||
|
||||
//logout() clears session storage; All user data is eradicated from it and page is reloaded
|
||||
logout() {
|
||||
this.tokenStorage.signOut();
|
||||
location.reload();
|
||||
}
|
||||
}
|
||||
</code></pre>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div><div class="search-results">
|
||||
<div class="has-results">
|
||||
<h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
|
||||
<ul class="search-results-list"></ul>
|
||||
</div>
|
||||
<div class="no-results">
|
||||
<h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="../js/libs/bootstrap-native.js"></script>
|
||||
|
||||
<script src="../js/libs/es6-shim.min.js"></script>
|
||||
<script src="../js/libs/EventDispatcher.js"></script>
|
||||
<script src="../js/libs/promise.min.js"></script>
|
||||
<script src="../js/libs/zepto.min.js"></script>
|
||||
|
||||
<script src="../js/compodoc.js"></script>
|
||||
|
||||
<script src="../js/search/search.js"></script>
|
||||
<script src="../js/search/lunr.min.js"></script>
|
||||
<script src="../js/search/search-lunr.js"></script>
|
||||
|
||||
<script src="../js/menu.js"></script>
|
||||
<script src="../js/libs/highlight.pack.js"></script>
|
||||
<script src="../js/libs/highlightjs-line-numbers.min.js"></script>
|
||||
<script src="../js/search/search_index.js"></script>
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
hljs.initHighlightingOnLoad();
|
||||
hljs.initLineNumbersOnLoad();
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
555
documentation/frontend/components/HelpDialogComponent.html
Normal file
555
documentation/frontend/components/HelpDialogComponent.html
Normal file
@@ -0,0 +1,555 @@
|
||||
<!doctype html>
|
||||
<html class="no-js" lang="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<title>aktienbot documentation</title>
|
||||
<meta name="description" content="">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<link rel="icon" type="image/x-icon" href="../images/favicon.ico">
|
||||
<link rel="stylesheet" href="../styles/style.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="navbar navbar-default navbar-fixed-top visible-xs">
|
||||
<a href="../" class="navbar-brand">aktienbot documentation</a>
|
||||
<button type="button" class="btn btn-default btn-menu fa fa-bars" id="btn-menu"></button>
|
||||
</div>
|
||||
|
||||
<div class="xs-menu menu" id="mobile-menu">
|
||||
<div id="book-search-input" role="search">
|
||||
<input type="text" placeholder="Type to search">
|
||||
</div>
|
||||
<nav>
|
||||
|
||||
<ul class="list">
|
||||
|
||||
<li class="title">
|
||||
<a href="../">aktienbot documentation</a>
|
||||
</li>
|
||||
|
||||
<li class="divider"></li>
|
||||
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../"><span class="fa fa-home"></span>Getting started</a>
|
||||
<ul class="links">
|
||||
<li class="link">
|
||||
<a href="../" ><span class="fa fa-file-text-o"></span>README</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a
|
||||
|
||||
href="../overview.html"
|
||||
href="../overview.html"
|
||||
>
|
||||
<span class="fa fa-th"></span>Overview
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="./modules.html" >
|
||||
<span class="fa fa-archive"></span>
|
||||
<span>Modules</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#xs-modules-links"
|
||||
></span>
|
||||
</a>
|
||||
<ul class="links collapse in"
|
||||
id="xs-modules-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../modules/AppModule.html" >AppModule</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-cogs"></span>
|
||||
<span>Components</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#xs-components-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="xs-components-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../components/AppComponent.html" >AppComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/BotSettingsComponent.html" >BotSettingsComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/ConfirmationDialogComponent.html" >ConfirmationDialogComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/DashboardComponent.html" >DashboardComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/HeaderComponent.html" >HeaderComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/HelpDialogComponent.html" class="active" >HelpDialogComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/LoginComponent.html" >LoginComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/ProfileComponent.html" >ProfileComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/RegisterComponent.html" >RegisterComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/UserDialogComponent.html" >UserDialogComponent</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-long-arrow-down"></span>
|
||||
<span>Injectables</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#xs-injectables-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="xs-injectables-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../injectables/AuthInterceptor.html" >AuthInterceptor</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/AuthService.html" >AuthService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/BotService.html" >BotService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/DataService.html" >DataService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/HelperService.html" >HelperService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/ProfileService.html" >ProfileService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/TokenStorageService.html" >TokenStorageService</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-info"></span>
|
||||
<span>Interfaces</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#xs-interfaces-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="xs-interfaces-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Keyword.html" >Keyword</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Share.html" >Share</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Stock.html" >Stock</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/TransactionData.html" >TransactionData</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../miscellaneous.html" ><span class="fa fa-cubes"></span>Miscellaneous</a>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../coverage.html" ><span class="fa fa-tasks"></span>Documentation coverage</a>
|
||||
</li>
|
||||
|
||||
<li class="divider"></li>
|
||||
<li class="copyright">
|
||||
Documentation generated using <a href="https://compodoc.github.io/compodoc/" target="_blank">
|
||||
<img src="..//images/compodoc-vectorise.svg" class="img-responsive">
|
||||
</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<div class="container-fluid main">
|
||||
<div class="row main">
|
||||
<div class="hidden-xs menu">
|
||||
<nav>
|
||||
|
||||
<ul class="list">
|
||||
|
||||
<li class="title">
|
||||
<a href="../">aktienbot documentation</a>
|
||||
</li>
|
||||
|
||||
<li class="divider"></li>
|
||||
|
||||
<div id="book-search-input" role="search">
|
||||
<input type="text" placeholder="Type to search">
|
||||
</div>
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../"><span class="fa fa-home"></span>Getting started</a>
|
||||
<ul class="links">
|
||||
<li class="link">
|
||||
<a href="../" ><span class="fa fa-file-text-o"></span>README</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a
|
||||
|
||||
href="../overview.html"
|
||||
href="../overview.html"
|
||||
>
|
||||
<span class="fa fa-th"></span>Overview
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="./modules.html" >
|
||||
<span class="fa fa-archive"></span>
|
||||
<span>Modules</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#modules-links"
|
||||
></span>
|
||||
</a>
|
||||
<ul class="links collapse in"
|
||||
id="modules-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../modules/AppModule.html" >AppModule</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-cogs"></span>
|
||||
<span>Components</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#components-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="components-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../components/AppComponent.html" >AppComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/BotSettingsComponent.html" >BotSettingsComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/ConfirmationDialogComponent.html" >ConfirmationDialogComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/DashboardComponent.html" >DashboardComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/HeaderComponent.html" >HeaderComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/HelpDialogComponent.html" class="active" >HelpDialogComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/LoginComponent.html" >LoginComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/ProfileComponent.html" >ProfileComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/RegisterComponent.html" >RegisterComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/UserDialogComponent.html" >UserDialogComponent</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-long-arrow-down"></span>
|
||||
<span>Injectables</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#injectables-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="injectables-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../injectables/AuthInterceptor.html" >AuthInterceptor</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/AuthService.html" >AuthService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/BotService.html" >BotService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/DataService.html" >DataService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/HelperService.html" >HelperService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/ProfileService.html" >ProfileService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/TokenStorageService.html" >TokenStorageService</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-info"></span>
|
||||
<span>Interfaces</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#interfaces-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="interfaces-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Keyword.html" >Keyword</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Share.html" >Share</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Stock.html" >Stock</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/TransactionData.html" >TransactionData</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../miscellaneous.html" ><span class="fa fa-cubes"></span>Miscellaneous</a>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../coverage.html" ><span class="fa fa-tasks"></span>Documentation coverage</a>
|
||||
</li>
|
||||
|
||||
<li class="divider"></li>
|
||||
<li class="copyright">
|
||||
Documentation generated using <a href="https://compodoc.github.io/compodoc/" target="_blank">
|
||||
<img src="..//images/compodoc-vectorise.svg" class="img-responsive">
|
||||
</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
</nav>
|
||||
</div>
|
||||
<div class="content component">
|
||||
<div class="content-data">
|
||||
|
||||
|
||||
<ol class="breadcrumb">
|
||||
<li>Components</li>
|
||||
<li>HelpDialogComponent</li>
|
||||
</ol>
|
||||
|
||||
|
||||
<ul class="nav nav-tabs" role="tablist">
|
||||
<li class="active">
|
||||
<a href="#infos" id="infos-tab" role="tab" data-toggle="tab">Infos</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#source" role="tab" id="source-tab" data-toggle="tab">Source</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane fade active in" id="infos"><p class="comment">
|
||||
<h3>File</h3>
|
||||
</p>
|
||||
<p class="comment">
|
||||
<code>src/app/Views/profile/help-dialog/help-dialog.component.ts</code>
|
||||
</p>
|
||||
|
||||
|
||||
|
||||
<section>
|
||||
<h3>Metadata</h3>
|
||||
<table class="table table-sm table-hover">
|
||||
<tbody>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td class="col-md-3">selector</td>
|
||||
<td class="col-md-9"><code>app-help-dialog</code></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="col-md-3">styleUrls</td>
|
||||
<td class="col-md-9"><code>help-dialog.component.scss</code></td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td class="col-md-3">templateUrl</td>
|
||||
<td class="col-md-9"><code>help-dialog.component.html</code></td>
|
||||
</tr>
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
<section>
|
||||
<h3 id="constructor">Constructor</h3>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>constructor()</code>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h3 id="methods">Methods</h3>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b> close</b>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>close()</code>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<div class="io-description">
|
||||
<b>Returns: </b> <code>void</code>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
<div class="tab-pane fade tab-source-code" id="source">
|
||||
<pre><code class="hljs javascript">import { Component, OnInit } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-help-dialog',
|
||||
templateUrl: './help-dialog.component.html',
|
||||
styleUrls: ['./help-dialog.component.scss'],
|
||||
})
|
||||
export class HelpDialogComponent {
|
||||
constructor() {}
|
||||
|
||||
close() {}
|
||||
}
|
||||
</code></pre>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div><div class="search-results">
|
||||
<div class="has-results">
|
||||
<h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
|
||||
<ul class="search-results-list"></ul>
|
||||
</div>
|
||||
<div class="no-results">
|
||||
<h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="../js/libs/bootstrap-native.js"></script>
|
||||
|
||||
<script src="../js/libs/es6-shim.min.js"></script>
|
||||
<script src="../js/libs/EventDispatcher.js"></script>
|
||||
<script src="../js/libs/promise.min.js"></script>
|
||||
<script src="../js/libs/zepto.min.js"></script>
|
||||
|
||||
<script src="../js/compodoc.js"></script>
|
||||
|
||||
<script src="../js/search/search.js"></script>
|
||||
<script src="../js/search/lunr.min.js"></script>
|
||||
<script src="../js/search/search-lunr.js"></script>
|
||||
|
||||
<script src="../js/menu.js"></script>
|
||||
<script src="../js/libs/highlight.pack.js"></script>
|
||||
<script src="../js/libs/highlightjs-line-numbers.min.js"></script>
|
||||
<script src="../js/search/search_index.js"></script>
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
hljs.initHighlightingOnLoad();
|
||||
hljs.initLineNumbersOnLoad();
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
759
documentation/frontend/components/LoginComponent.html
Normal file
759
documentation/frontend/components/LoginComponent.html
Normal file
@@ -0,0 +1,759 @@
|
||||
<!doctype html>
|
||||
<html class="no-js" lang="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<title>aktienbot documentation</title>
|
||||
<meta name="description" content="">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<link rel="icon" type="image/x-icon" href="../images/favicon.ico">
|
||||
<link rel="stylesheet" href="../styles/style.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="navbar navbar-default navbar-fixed-top visible-xs">
|
||||
<a href="../" class="navbar-brand">aktienbot documentation</a>
|
||||
<button type="button" class="btn btn-default btn-menu fa fa-bars" id="btn-menu"></button>
|
||||
</div>
|
||||
|
||||
<div class="xs-menu menu" id="mobile-menu">
|
||||
<div id="book-search-input" role="search">
|
||||
<input type="text" placeholder="Type to search">
|
||||
</div>
|
||||
<nav>
|
||||
|
||||
<ul class="list">
|
||||
|
||||
<li class="title">
|
||||
<a href="../">aktienbot documentation</a>
|
||||
</li>
|
||||
|
||||
<li class="divider"></li>
|
||||
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../"><span class="fa fa-home"></span>Getting started</a>
|
||||
<ul class="links">
|
||||
<li class="link">
|
||||
<a href="../" ><span class="fa fa-file-text-o"></span>README</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a
|
||||
|
||||
href="../overview.html"
|
||||
href="../overview.html"
|
||||
>
|
||||
<span class="fa fa-th"></span>Overview
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="./modules.html" >
|
||||
<span class="fa fa-archive"></span>
|
||||
<span>Modules</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#xs-modules-links"
|
||||
></span>
|
||||
</a>
|
||||
<ul class="links collapse in"
|
||||
id="xs-modules-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../modules/AppModule.html" >AppModule</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-cogs"></span>
|
||||
<span>Components</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#xs-components-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="xs-components-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../components/AppComponent.html" >AppComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/BotSettingsComponent.html" >BotSettingsComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/ConfirmationDialogComponent.html" >ConfirmationDialogComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/DashboardComponent.html" >DashboardComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/HeaderComponent.html" >HeaderComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/HelpDialogComponent.html" >HelpDialogComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/LoginComponent.html" class="active" >LoginComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/ProfileComponent.html" >ProfileComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/RegisterComponent.html" >RegisterComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/UserDialogComponent.html" >UserDialogComponent</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-long-arrow-down"></span>
|
||||
<span>Injectables</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#xs-injectables-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="xs-injectables-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../injectables/AuthInterceptor.html" >AuthInterceptor</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/AuthService.html" >AuthService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/BotService.html" >BotService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/DataService.html" >DataService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/HelperService.html" >HelperService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/ProfileService.html" >ProfileService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/TokenStorageService.html" >TokenStorageService</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-info"></span>
|
||||
<span>Interfaces</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#xs-interfaces-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="xs-interfaces-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Keyword.html" >Keyword</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Share.html" >Share</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Stock.html" >Stock</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/TransactionData.html" >TransactionData</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../miscellaneous.html" ><span class="fa fa-cubes"></span>Miscellaneous</a>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../coverage.html" ><span class="fa fa-tasks"></span>Documentation coverage</a>
|
||||
</li>
|
||||
|
||||
<li class="divider"></li>
|
||||
<li class="copyright">
|
||||
Documentation generated using <a href="https://compodoc.github.io/compodoc/" target="_blank">
|
||||
<img src="..//images/compodoc-vectorise.svg" class="img-responsive">
|
||||
</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<div class="container-fluid main">
|
||||
<div class="row main">
|
||||
<div class="hidden-xs menu">
|
||||
<nav>
|
||||
|
||||
<ul class="list">
|
||||
|
||||
<li class="title">
|
||||
<a href="../">aktienbot documentation</a>
|
||||
</li>
|
||||
|
||||
<li class="divider"></li>
|
||||
|
||||
<div id="book-search-input" role="search">
|
||||
<input type="text" placeholder="Type to search">
|
||||
</div>
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../"><span class="fa fa-home"></span>Getting started</a>
|
||||
<ul class="links">
|
||||
<li class="link">
|
||||
<a href="../" ><span class="fa fa-file-text-o"></span>README</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a
|
||||
|
||||
href="../overview.html"
|
||||
href="../overview.html"
|
||||
>
|
||||
<span class="fa fa-th"></span>Overview
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="./modules.html" >
|
||||
<span class="fa fa-archive"></span>
|
||||
<span>Modules</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#modules-links"
|
||||
></span>
|
||||
</a>
|
||||
<ul class="links collapse in"
|
||||
id="modules-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../modules/AppModule.html" >AppModule</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-cogs"></span>
|
||||
<span>Components</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#components-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="components-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../components/AppComponent.html" >AppComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/BotSettingsComponent.html" >BotSettingsComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/ConfirmationDialogComponent.html" >ConfirmationDialogComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/DashboardComponent.html" >DashboardComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/HeaderComponent.html" >HeaderComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/HelpDialogComponent.html" >HelpDialogComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/LoginComponent.html" class="active" >LoginComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/ProfileComponent.html" >ProfileComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/RegisterComponent.html" >RegisterComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/UserDialogComponent.html" >UserDialogComponent</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-long-arrow-down"></span>
|
||||
<span>Injectables</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#injectables-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="injectables-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../injectables/AuthInterceptor.html" >AuthInterceptor</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/AuthService.html" >AuthService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/BotService.html" >BotService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/DataService.html" >DataService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/HelperService.html" >HelperService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/ProfileService.html" >ProfileService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/TokenStorageService.html" >TokenStorageService</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-info"></span>
|
||||
<span>Interfaces</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#interfaces-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="interfaces-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Keyword.html" >Keyword</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Share.html" >Share</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Stock.html" >Stock</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/TransactionData.html" >TransactionData</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../miscellaneous.html" ><span class="fa fa-cubes"></span>Miscellaneous</a>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../coverage.html" ><span class="fa fa-tasks"></span>Documentation coverage</a>
|
||||
</li>
|
||||
|
||||
<li class="divider"></li>
|
||||
<li class="copyright">
|
||||
Documentation generated using <a href="https://compodoc.github.io/compodoc/" target="_blank">
|
||||
<img src="..//images/compodoc-vectorise.svg" class="img-responsive">
|
||||
</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
</nav>
|
||||
</div>
|
||||
<div class="content component">
|
||||
<div class="content-data">
|
||||
|
||||
|
||||
<ol class="breadcrumb">
|
||||
<li>Components</li>
|
||||
<li>LoginComponent</li>
|
||||
</ol>
|
||||
|
||||
|
||||
<ul class="nav nav-tabs" role="tablist">
|
||||
<li class="active">
|
||||
<a href="#infos" id="infos-tab" role="tab" data-toggle="tab">Infos</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#source" role="tab" id="source-tab" data-toggle="tab">Source</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane fade active in" id="infos"><p class="comment">
|
||||
<h3>File</h3>
|
||||
</p>
|
||||
<p class="comment">
|
||||
<code>src/app/Views/login/login.component.ts</code>
|
||||
</p>
|
||||
|
||||
|
||||
|
||||
<section>
|
||||
<h3>Metadata</h3>
|
||||
<table class="table table-sm table-hover">
|
||||
<tbody>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td class="col-md-3">selector</td>
|
||||
<td class="col-md-9"><code>app-login</code></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="col-md-3">styleUrls</td>
|
||||
<td class="col-md-9"><code>login.component.scss</code></td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td class="col-md-3">templateUrl</td>
|
||||
<td class="col-md-9"><code>login.component.html</code></td>
|
||||
</tr>
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
<section>
|
||||
<h3 id="constructor">Constructor</h3>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>constructor(authService: <a href="../injectables/AuthService.html" >AuthService</a>, tokenStorage: <a href="../injectables/TokenStorageService.html" >TokenStorageService</a>, router: <a href="https://angular.io/docs/ts/latest/api/router/index/Router-class.html" target="_blank" >Router</a>)</code>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<div class="io-description">
|
||||
<b>Parameters :</b>
|
||||
<ul class="jsdoc-params">
|
||||
<li>
|
||||
<div>
|
||||
<b>privateauthService</b>
|
||||
: <code><a href="../injectables/AuthService.html" target="_self" >AuthService</a></code>
|
||||
|
||||
</div>
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<div>
|
||||
<b>privatetokenStorage</b>
|
||||
: <code><a href="../injectables/TokenStorageService.html" target="_self" >TokenStorageService</a></code>
|
||||
|
||||
</div>
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<div>
|
||||
<b>privaterouter</b>
|
||||
: <code><a href="https://angular.io/docs/ts/latest/api/router/index/Router-class.html" target="_blank" >Router</a></code>
|
||||
|
||||
</div>
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h3 id="methods">Methods</h3>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b> onSubmit</b>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>onSubmit()</code>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<div class="io-description">
|
||||
<b>Returns: </b> <code>void</code>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b> reloadPage</b>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>reloadPage()</code>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<div class="io-description">
|
||||
<b>Returns: </b> <code>void</code>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h3 id="inputs">Properties</h3>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b> accountName</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>accountName: <code>string</code>
|
||||
</bcode>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b> errorMessage</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>errorMessage: <code>string</code>
|
||||
</bcode>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b> form</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>form: <code>any</code>
|
||||
</bcode>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b> isLoggedIn</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>isLoggedIn: <code>boolean</code>
|
||||
</bcode>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<i>Default value: </i><code>false</code>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b> isLoginFailed</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>isLoginFailed: <code>boolean</code>
|
||||
</bcode>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<i>Default value: </i><code>false</code>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
</div>
|
||||
<div class="tab-pane fade tab-source-code" id="source">
|
||||
<pre><code class="hljs javascript">import { Component, OnInit } from '@angular/core';
|
||||
import { AuthService } from '../../Services/auth.service';
|
||||
import { TokenStorageService } from '../../Services/token.service';
|
||||
import { Router } from '@angular/router';
|
||||
|
||||
@Component({
|
||||
selector: 'app-login',
|
||||
templateUrl: './login.component.html',
|
||||
styleUrls: ['./login.component.scss'],
|
||||
})
|
||||
export class LoginComponent implements OnInit {
|
||||
form: any = {
|
||||
email: null,
|
||||
password: null,
|
||||
};
|
||||
|
||||
isLoggedIn = false;
|
||||
isLoginFailed = false;
|
||||
errorMessage = '';
|
||||
accountName = '';
|
||||
|
||||
/**
|
||||
* @param {AuthService} privateauthService
|
||||
* @param {TokenStorageService} privatetokenStorage
|
||||
* @param {Router} privaterouter
|
||||
*/
|
||||
constructor(
|
||||
private authService: AuthService,
|
||||
private tokenStorage: TokenStorageService,
|
||||
private router: Router
|
||||
) {}
|
||||
|
||||
//ngOnInit() checks if a user is logged in
|
||||
ngOnInit(): void {
|
||||
this.tokenStorage.signOut();
|
||||
if (this.tokenStorage.getToken()) {
|
||||
this.isLoggedIn = true;
|
||||
}
|
||||
}
|
||||
|
||||
//onSubmit() saves valuable information in session storage
|
||||
onSubmit(): void {
|
||||
const { email, password } = this.form;
|
||||
this.authService.login(email, password).subscribe(
|
||||
(data) => {
|
||||
this.tokenStorage.saveToken(data.data.token);
|
||||
this.tokenStorage.saveUser(data.data);
|
||||
|
||||
this.isLoginFailed = false;
|
||||
this.isLoggedIn = true;
|
||||
this.accountName = email;
|
||||
this.router.navigate(['']);
|
||||
},
|
||||
(err) => {
|
||||
this.errorMessage = err.error.message;
|
||||
this.isLoginFailed = true;
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
//reloadPage() reloads the page
|
||||
reloadPage(): void {
|
||||
window.location.reload();
|
||||
}
|
||||
}
|
||||
</code></pre>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div><div class="search-results">
|
||||
<div class="has-results">
|
||||
<h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
|
||||
<ul class="search-results-list"></ul>
|
||||
</div>
|
||||
<div class="no-results">
|
||||
<h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="../js/libs/bootstrap-native.js"></script>
|
||||
|
||||
<script src="../js/libs/es6-shim.min.js"></script>
|
||||
<script src="../js/libs/EventDispatcher.js"></script>
|
||||
<script src="../js/libs/promise.min.js"></script>
|
||||
<script src="../js/libs/zepto.min.js"></script>
|
||||
|
||||
<script src="../js/compodoc.js"></script>
|
||||
|
||||
<script src="../js/search/search.js"></script>
|
||||
<script src="../js/search/lunr.min.js"></script>
|
||||
<script src="../js/search/search-lunr.js"></script>
|
||||
|
||||
<script src="../js/menu.js"></script>
|
||||
<script src="../js/libs/highlight.pack.js"></script>
|
||||
<script src="../js/libs/highlightjs-line-numbers.min.js"></script>
|
||||
<script src="../js/search/search_index.js"></script>
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
hljs.initHighlightingOnLoad();
|
||||
hljs.initLineNumbersOnLoad();
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
799
documentation/frontend/components/ProfileComponent.html
Normal file
799
documentation/frontend/components/ProfileComponent.html
Normal file
@@ -0,0 +1,799 @@
|
||||
<!doctype html>
|
||||
<html class="no-js" lang="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<title>aktienbot documentation</title>
|
||||
<meta name="description" content="">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<link rel="icon" type="image/x-icon" href="../images/favicon.ico">
|
||||
<link rel="stylesheet" href="../styles/style.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="navbar navbar-default navbar-fixed-top visible-xs">
|
||||
<a href="../" class="navbar-brand">aktienbot documentation</a>
|
||||
<button type="button" class="btn btn-default btn-menu fa fa-bars" id="btn-menu"></button>
|
||||
</div>
|
||||
|
||||
<div class="xs-menu menu" id="mobile-menu">
|
||||
<div id="book-search-input" role="search">
|
||||
<input type="text" placeholder="Type to search">
|
||||
</div>
|
||||
<nav>
|
||||
|
||||
<ul class="list">
|
||||
|
||||
<li class="title">
|
||||
<a href="../">aktienbot documentation</a>
|
||||
</li>
|
||||
|
||||
<li class="divider"></li>
|
||||
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../"><span class="fa fa-home"></span>Getting started</a>
|
||||
<ul class="links">
|
||||
<li class="link">
|
||||
<a href="../" ><span class="fa fa-file-text-o"></span>README</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a
|
||||
|
||||
href="../overview.html"
|
||||
href="../overview.html"
|
||||
>
|
||||
<span class="fa fa-th"></span>Overview
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="./modules.html" >
|
||||
<span class="fa fa-archive"></span>
|
||||
<span>Modules</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#xs-modules-links"
|
||||
></span>
|
||||
</a>
|
||||
<ul class="links collapse in"
|
||||
id="xs-modules-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../modules/AppModule.html" >AppModule</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-cogs"></span>
|
||||
<span>Components</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#xs-components-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="xs-components-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../components/AppComponent.html" >AppComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/BotSettingsComponent.html" >BotSettingsComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/ConfirmationDialogComponent.html" >ConfirmationDialogComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/DashboardComponent.html" >DashboardComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/HeaderComponent.html" >HeaderComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/HelpDialogComponent.html" >HelpDialogComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/LoginComponent.html" >LoginComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/ProfileComponent.html" class="active" >ProfileComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/RegisterComponent.html" >RegisterComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/UserDialogComponent.html" >UserDialogComponent</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-long-arrow-down"></span>
|
||||
<span>Injectables</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#xs-injectables-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="xs-injectables-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../injectables/AuthInterceptor.html" >AuthInterceptor</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/AuthService.html" >AuthService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/BotService.html" >BotService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/DataService.html" >DataService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/HelperService.html" >HelperService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/ProfileService.html" >ProfileService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/TokenStorageService.html" >TokenStorageService</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-info"></span>
|
||||
<span>Interfaces</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#xs-interfaces-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="xs-interfaces-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Keyword.html" >Keyword</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Share.html" >Share</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Stock.html" >Stock</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/TransactionData.html" >TransactionData</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../miscellaneous.html" ><span class="fa fa-cubes"></span>Miscellaneous</a>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../coverage.html" ><span class="fa fa-tasks"></span>Documentation coverage</a>
|
||||
</li>
|
||||
|
||||
<li class="divider"></li>
|
||||
<li class="copyright">
|
||||
Documentation generated using <a href="https://compodoc.github.io/compodoc/" target="_blank">
|
||||
<img src="..//images/compodoc-vectorise.svg" class="img-responsive">
|
||||
</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<div class="container-fluid main">
|
||||
<div class="row main">
|
||||
<div class="hidden-xs menu">
|
||||
<nav>
|
||||
|
||||
<ul class="list">
|
||||
|
||||
<li class="title">
|
||||
<a href="../">aktienbot documentation</a>
|
||||
</li>
|
||||
|
||||
<li class="divider"></li>
|
||||
|
||||
<div id="book-search-input" role="search">
|
||||
<input type="text" placeholder="Type to search">
|
||||
</div>
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../"><span class="fa fa-home"></span>Getting started</a>
|
||||
<ul class="links">
|
||||
<li class="link">
|
||||
<a href="../" ><span class="fa fa-file-text-o"></span>README</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a
|
||||
|
||||
href="../overview.html"
|
||||
href="../overview.html"
|
||||
>
|
||||
<span class="fa fa-th"></span>Overview
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="./modules.html" >
|
||||
<span class="fa fa-archive"></span>
|
||||
<span>Modules</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#modules-links"
|
||||
></span>
|
||||
</a>
|
||||
<ul class="links collapse in"
|
||||
id="modules-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../modules/AppModule.html" >AppModule</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-cogs"></span>
|
||||
<span>Components</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#components-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="components-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../components/AppComponent.html" >AppComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/BotSettingsComponent.html" >BotSettingsComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/ConfirmationDialogComponent.html" >ConfirmationDialogComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/DashboardComponent.html" >DashboardComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/HeaderComponent.html" >HeaderComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/HelpDialogComponent.html" >HelpDialogComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/LoginComponent.html" >LoginComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/ProfileComponent.html" class="active" >ProfileComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/RegisterComponent.html" >RegisterComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/UserDialogComponent.html" >UserDialogComponent</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-long-arrow-down"></span>
|
||||
<span>Injectables</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#injectables-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="injectables-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../injectables/AuthInterceptor.html" >AuthInterceptor</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/AuthService.html" >AuthService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/BotService.html" >BotService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/DataService.html" >DataService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/HelperService.html" >HelperService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/ProfileService.html" >ProfileService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/TokenStorageService.html" >TokenStorageService</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-info"></span>
|
||||
<span>Interfaces</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#interfaces-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="interfaces-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Keyword.html" >Keyword</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Share.html" >Share</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Stock.html" >Stock</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/TransactionData.html" >TransactionData</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../miscellaneous.html" ><span class="fa fa-cubes"></span>Miscellaneous</a>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../coverage.html" ><span class="fa fa-tasks"></span>Documentation coverage</a>
|
||||
</li>
|
||||
|
||||
<li class="divider"></li>
|
||||
<li class="copyright">
|
||||
Documentation generated using <a href="https://compodoc.github.io/compodoc/" target="_blank">
|
||||
<img src="..//images/compodoc-vectorise.svg" class="img-responsive">
|
||||
</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
</nav>
|
||||
</div>
|
||||
<div class="content component">
|
||||
<div class="content-data">
|
||||
|
||||
|
||||
<ol class="breadcrumb">
|
||||
<li>Components</li>
|
||||
<li>ProfileComponent</li>
|
||||
</ol>
|
||||
|
||||
|
||||
<ul class="nav nav-tabs" role="tablist">
|
||||
<li class="active">
|
||||
<a href="#infos" id="infos-tab" role="tab" data-toggle="tab">Infos</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#source" role="tab" id="source-tab" data-toggle="tab">Source</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane fade active in" id="infos"><p class="comment">
|
||||
<h3>File</h3>
|
||||
</p>
|
||||
<p class="comment">
|
||||
<code>src/app/Views/profile/profile.component.ts</code>
|
||||
</p>
|
||||
|
||||
|
||||
|
||||
<section>
|
||||
<h3>Metadata</h3>
|
||||
<table class="table table-sm table-hover">
|
||||
<tbody>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td class="col-md-3">selector</td>
|
||||
<td class="col-md-9"><code>app-profile</code></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="col-md-3">styleUrls</td>
|
||||
<td class="col-md-9"><code>profile.component.scss</code></td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td class="col-md-3">templateUrl</td>
|
||||
<td class="col-md-9"><code>profile.component.html</code></td>
|
||||
</tr>
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
<section>
|
||||
<h3 id="constructor">Constructor</h3>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>constructor(profileService: any, dialog: MatDialog)</code>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h3 id="methods">Methods</h3>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b> onSubmit</b>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>onSubmit()</code>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<div class="io-description">
|
||||
<b>Returns: </b> <code>void</code>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b> updateUser</b>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>updateUser()</code>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<div class="io-description">
|
||||
<b>Returns: </b> <code>void</code>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b> openDialog</b>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>openDialog(action: string)</code>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<div class="io-description">
|
||||
<b>Returns: </b> <code>void</code>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b> openHelp</b>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>openHelp()</code>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<div class="io-description">
|
||||
<b>Returns: </b> <code>void</code>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h3 id="inputs">Properties</h3>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b> dialog</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>dialog: <code>MatDialog</code>
|
||||
</bcode>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b> form</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>form: <code>any</code>
|
||||
</bcode>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b> passwordFormControl</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>passwordFormControl: <code><a href="https://angular.io/docs/ts/latest/api/forms/index/FormControl-class.html" target="_blank" >FormControl</a></code>
|
||||
</bcode>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b> telegramIdFormControl</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>telegramIdFormControl: <code><a href="https://angular.io/docs/ts/latest/api/forms/index/FormControl-class.html" target="_blank" >FormControl</a></code>
|
||||
</bcode>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b> userId</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>userId: <code>string</code>
|
||||
</bcode>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b> userNameFormControl</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>userNameFormControl: <code><a href="https://angular.io/docs/ts/latest/api/forms/index/FormControl-class.html" target="_blank" >FormControl</a></code>
|
||||
</bcode>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
</div>
|
||||
<div class="tab-pane fade tab-source-code" id="source">
|
||||
<pre><code class="hljs javascript">import { Component, OnInit } from '@angular/core';
|
||||
import { FormControl, Validators } from '@angular/forms';
|
||||
import { MatDialog } from '@angular/material/dialog';
|
||||
import { ProfileService } from 'src/app/Services/profile.service';
|
||||
import { ConfirmationDialogComponent } from './confirmation-dialog/confirmation-dialog.component';
|
||||
import { HelpDialogComponent } from './help-dialog/help-dialog.component';
|
||||
|
||||
@Component({
|
||||
selector: 'app-profile',
|
||||
templateUrl: './profile.component.html',
|
||||
styleUrls: ['./profile.component.scss'],
|
||||
})
|
||||
export class ProfileComponent implements OnInit {
|
||||
userNameFormControl = new FormControl('', [Validators.required]);
|
||||
passwordFormControl = new FormControl('', [
|
||||
Validators.required,
|
||||
Validators.minLength(6),
|
||||
]);
|
||||
telegramIdFormControl = new FormControl('', [
|
||||
Validators.required,
|
||||
Validators.minLength(6),
|
||||
]);
|
||||
|
||||
userId = '';
|
||||
|
||||
form: any = {
|
||||
username: null,
|
||||
email: 'example@web.com',
|
||||
password: 'password',
|
||||
};
|
||||
|
||||
constructor(
|
||||
private profileService: ProfileService,
|
||||
public dialog: MatDialog
|
||||
) {}
|
||||
|
||||
ngOnInit(): void {
|
||||
this.profileService.getUserData().subscribe((result) => {
|
||||
console.log(result);
|
||||
result = JSON.parse(result);
|
||||
this.form.username = result.data.username;
|
||||
this.form.password = result.data.password;
|
||||
this.form.email = result.data.email;
|
||||
this.userId = result.data.telegram_user_id;
|
||||
});
|
||||
}
|
||||
|
||||
onSubmit() {
|
||||
if (this.userId != '') {
|
||||
console.log(this.userId);
|
||||
this.profileService
|
||||
.addTelegramId('' + this.userId)
|
||||
.subscribe((result) => {
|
||||
console.log(result);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
updateUser() {
|
||||
const { username, email, password } = this.form;
|
||||
this.profileService
|
||||
.updateProfile(this.form.username, this.form.password)
|
||||
.subscribe((result) => {
|
||||
console.log(result);
|
||||
});
|
||||
}
|
||||
|
||||
openDialog(action: string) {
|
||||
const dialogRef = this.dialog.open(ConfirmationDialogComponent, {
|
||||
width: '50vw',
|
||||
height: '20vh',
|
||||
});
|
||||
|
||||
dialogRef.afterClosed().subscribe((result) => {
|
||||
if (result === true) {
|
||||
if (action === 'addTelegram') {
|
||||
this.onSubmit();
|
||||
} else if (action === 'updateUser') {
|
||||
this.updateUser();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
openHelp() {
|
||||
const dialogRef = this.dialog.open(HelpDialogComponent, {
|
||||
width: '50vw',
|
||||
height: '20vh',
|
||||
});
|
||||
}
|
||||
}
|
||||
</code></pre>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div><div class="search-results">
|
||||
<div class="has-results">
|
||||
<h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
|
||||
<ul class="search-results-list"></ul>
|
||||
</div>
|
||||
<div class="no-results">
|
||||
<h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="../js/libs/bootstrap-native.js"></script>
|
||||
|
||||
<script src="../js/libs/es6-shim.min.js"></script>
|
||||
<script src="../js/libs/EventDispatcher.js"></script>
|
||||
<script src="../js/libs/promise.min.js"></script>
|
||||
<script src="../js/libs/zepto.min.js"></script>
|
||||
|
||||
<script src="../js/compodoc.js"></script>
|
||||
|
||||
<script src="../js/search/search.js"></script>
|
||||
<script src="../js/search/lunr.min.js"></script>
|
||||
<script src="../js/search/search-lunr.js"></script>
|
||||
|
||||
<script src="../js/menu.js"></script>
|
||||
<script src="../js/libs/highlight.pack.js"></script>
|
||||
<script src="../js/libs/highlightjs-line-numbers.min.js"></script>
|
||||
<script src="../js/search/search_index.js"></script>
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
hljs.initHighlightingOnLoad();
|
||||
hljs.initLineNumbersOnLoad();
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
719
documentation/frontend/components/RegisterComponent.html
Normal file
719
documentation/frontend/components/RegisterComponent.html
Normal file
@@ -0,0 +1,719 @@
|
||||
<!doctype html>
|
||||
<html class="no-js" lang="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<title>aktienbot documentation</title>
|
||||
<meta name="description" content="">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<link rel="icon" type="image/x-icon" href="../images/favicon.ico">
|
||||
<link rel="stylesheet" href="../styles/style.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="navbar navbar-default navbar-fixed-top visible-xs">
|
||||
<a href="../" class="navbar-brand">aktienbot documentation</a>
|
||||
<button type="button" class="btn btn-default btn-menu fa fa-bars" id="btn-menu"></button>
|
||||
</div>
|
||||
|
||||
<div class="xs-menu menu" id="mobile-menu">
|
||||
<div id="book-search-input" role="search">
|
||||
<input type="text" placeholder="Type to search">
|
||||
</div>
|
||||
<nav>
|
||||
|
||||
<ul class="list">
|
||||
|
||||
<li class="title">
|
||||
<a href="../">aktienbot documentation</a>
|
||||
</li>
|
||||
|
||||
<li class="divider"></li>
|
||||
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../"><span class="fa fa-home"></span>Getting started</a>
|
||||
<ul class="links">
|
||||
<li class="link">
|
||||
<a href="../" ><span class="fa fa-file-text-o"></span>README</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a
|
||||
|
||||
href="../overview.html"
|
||||
href="../overview.html"
|
||||
>
|
||||
<span class="fa fa-th"></span>Overview
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="./modules.html" >
|
||||
<span class="fa fa-archive"></span>
|
||||
<span>Modules</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#xs-modules-links"
|
||||
></span>
|
||||
</a>
|
||||
<ul class="links collapse in"
|
||||
id="xs-modules-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../modules/AppModule.html" >AppModule</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-cogs"></span>
|
||||
<span>Components</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#xs-components-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="xs-components-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../components/AppComponent.html" >AppComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/BotSettingsComponent.html" >BotSettingsComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/ConfirmationDialogComponent.html" >ConfirmationDialogComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/DashboardComponent.html" >DashboardComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/HeaderComponent.html" >HeaderComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/HelpDialogComponent.html" >HelpDialogComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/LoginComponent.html" >LoginComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/ProfileComponent.html" >ProfileComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/RegisterComponent.html" class="active" >RegisterComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/UserDialogComponent.html" >UserDialogComponent</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-long-arrow-down"></span>
|
||||
<span>Injectables</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#xs-injectables-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="xs-injectables-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../injectables/AuthInterceptor.html" >AuthInterceptor</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/AuthService.html" >AuthService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/BotService.html" >BotService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/DataService.html" >DataService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/HelperService.html" >HelperService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/ProfileService.html" >ProfileService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/TokenStorageService.html" >TokenStorageService</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-info"></span>
|
||||
<span>Interfaces</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#xs-interfaces-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="xs-interfaces-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Keyword.html" >Keyword</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Share.html" >Share</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Stock.html" >Stock</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/TransactionData.html" >TransactionData</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../miscellaneous.html" ><span class="fa fa-cubes"></span>Miscellaneous</a>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../coverage.html" ><span class="fa fa-tasks"></span>Documentation coverage</a>
|
||||
</li>
|
||||
|
||||
<li class="divider"></li>
|
||||
<li class="copyright">
|
||||
Documentation generated using <a href="https://compodoc.github.io/compodoc/" target="_blank">
|
||||
<img src="..//images/compodoc-vectorise.svg" class="img-responsive">
|
||||
</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<div class="container-fluid main">
|
||||
<div class="row main">
|
||||
<div class="hidden-xs menu">
|
||||
<nav>
|
||||
|
||||
<ul class="list">
|
||||
|
||||
<li class="title">
|
||||
<a href="../">aktienbot documentation</a>
|
||||
</li>
|
||||
|
||||
<li class="divider"></li>
|
||||
|
||||
<div id="book-search-input" role="search">
|
||||
<input type="text" placeholder="Type to search">
|
||||
</div>
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../"><span class="fa fa-home"></span>Getting started</a>
|
||||
<ul class="links">
|
||||
<li class="link">
|
||||
<a href="../" ><span class="fa fa-file-text-o"></span>README</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a
|
||||
|
||||
href="../overview.html"
|
||||
href="../overview.html"
|
||||
>
|
||||
<span class="fa fa-th"></span>Overview
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="./modules.html" >
|
||||
<span class="fa fa-archive"></span>
|
||||
<span>Modules</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#modules-links"
|
||||
></span>
|
||||
</a>
|
||||
<ul class="links collapse in"
|
||||
id="modules-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../modules/AppModule.html" >AppModule</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-cogs"></span>
|
||||
<span>Components</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#components-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="components-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../components/AppComponent.html" >AppComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/BotSettingsComponent.html" >BotSettingsComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/ConfirmationDialogComponent.html" >ConfirmationDialogComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/DashboardComponent.html" >DashboardComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/HeaderComponent.html" >HeaderComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/HelpDialogComponent.html" >HelpDialogComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/LoginComponent.html" >LoginComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/ProfileComponent.html" >ProfileComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/RegisterComponent.html" class="active" >RegisterComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/UserDialogComponent.html" >UserDialogComponent</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-long-arrow-down"></span>
|
||||
<span>Injectables</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#injectables-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="injectables-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../injectables/AuthInterceptor.html" >AuthInterceptor</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/AuthService.html" >AuthService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/BotService.html" >BotService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/DataService.html" >DataService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/HelperService.html" >HelperService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/ProfileService.html" >ProfileService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/TokenStorageService.html" >TokenStorageService</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-info"></span>
|
||||
<span>Interfaces</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#interfaces-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="interfaces-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Keyword.html" >Keyword</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Share.html" >Share</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Stock.html" >Stock</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/TransactionData.html" >TransactionData</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../miscellaneous.html" ><span class="fa fa-cubes"></span>Miscellaneous</a>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../coverage.html" ><span class="fa fa-tasks"></span>Documentation coverage</a>
|
||||
</li>
|
||||
|
||||
<li class="divider"></li>
|
||||
<li class="copyright">
|
||||
Documentation generated using <a href="https://compodoc.github.io/compodoc/" target="_blank">
|
||||
<img src="..//images/compodoc-vectorise.svg" class="img-responsive">
|
||||
</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
</nav>
|
||||
</div>
|
||||
<div class="content component">
|
||||
<div class="content-data">
|
||||
|
||||
|
||||
<ol class="breadcrumb">
|
||||
<li>Components</li>
|
||||
<li>RegisterComponent</li>
|
||||
</ol>
|
||||
|
||||
|
||||
<ul class="nav nav-tabs" role="tablist">
|
||||
<li class="active">
|
||||
<a href="#infos" id="infos-tab" role="tab" data-toggle="tab">Infos</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#source" role="tab" id="source-tab" data-toggle="tab">Source</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane fade active in" id="infos"><p class="comment">
|
||||
<h3>File</h3>
|
||||
</p>
|
||||
<p class="comment">
|
||||
<code>src/app/Views/register/register.component.ts</code>
|
||||
</p>
|
||||
|
||||
|
||||
|
||||
<section>
|
||||
<h3>Metadata</h3>
|
||||
<table class="table table-sm table-hover">
|
||||
<tbody>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td class="col-md-3">selector</td>
|
||||
<td class="col-md-9"><code>app-register</code></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="col-md-3">styleUrls</td>
|
||||
<td class="col-md-9"><code>register.component.scss</code></td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td class="col-md-3">templateUrl</td>
|
||||
<td class="col-md-9"><code>register.component.html</code></td>
|
||||
</tr>
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
<section>
|
||||
<h3 id="constructor">Constructor</h3>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>constructor(authService: <a href="../injectables/AuthService.html" >AuthService</a>, router: <a href="https://angular.io/docs/ts/latest/api/router/index/Router-class.html" target="_blank" >Router</a>)</code>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<div class="io-description">
|
||||
<b>Parameters :</b>
|
||||
<ul class="jsdoc-params">
|
||||
<li>
|
||||
<div>
|
||||
<b>privateauthService</b>
|
||||
: <code><a href="../injectables/AuthService.html" target="_self" >AuthService</a></code>
|
||||
|
||||
</div>
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<div>
|
||||
<b>privaterouter</b>
|
||||
: <code><a href="https://angular.io/docs/ts/latest/api/router/index/Router-class.html" target="_blank" >Router</a></code>
|
||||
|
||||
</div>
|
||||
<div>
|
||||
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h3 id="methods">Methods</h3>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b> onSubmit</b>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>onSubmit()</code>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<div class="io-description"><p>On submit, send user information to backend</p>
|
||||
</div>
|
||||
<div class="io-description">
|
||||
<b>Returns: </b> <code>void</code>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h3 id="inputs">Properties</h3>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b> checkPasswordFailed</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>checkPasswordFailed: <code>boolean</code>
|
||||
</bcode>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<i>Default value: </i><code>false</code>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b> errorMessage</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>errorMessage: <code>string</code>
|
||||
</bcode>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b> form</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>form: <code>any</code>
|
||||
</bcode>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b> isSignUpFailed</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>isSignUpFailed: <code>boolean</code>
|
||||
</bcode>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<i>Default value: </i><code>false</code>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b> isSuccessful</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>isSuccessful: <code>boolean</code>
|
||||
</bcode>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<i>Default value: </i><code>false</code>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
</div>
|
||||
<div class="tab-pane fade tab-source-code" id="source">
|
||||
<pre><code class="hljs javascript">import { Component, OnInit } from '@angular/core';
|
||||
import { Router } from '@angular/router';
|
||||
import { AuthService } from '../../Services/auth.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-register',
|
||||
templateUrl: './register.component.html',
|
||||
styleUrls: ['./register.component.scss'],
|
||||
})
|
||||
export class RegisterComponent {
|
||||
form: any = {
|
||||
email: null,
|
||||
password: null,
|
||||
passwordRepeat: null,
|
||||
username: null,
|
||||
};
|
||||
isSuccessful = false;
|
||||
isSignUpFailed = false;
|
||||
errorMessage = '';
|
||||
|
||||
checkPasswordFailed = false;
|
||||
|
||||
/**
|
||||
* @param {AuthService} privateauthService
|
||||
* @param {Router} privaterouter
|
||||
*/
|
||||
constructor(private authService: AuthService, private router: Router) {}
|
||||
|
||||
/**
|
||||
* On submit, send user information to backend
|
||||
*/
|
||||
onSubmit(): void {
|
||||
// validate that passwords match
|
||||
if (this.form.password === this.form.passwordRepeat) {
|
||||
this.checkPasswordFailed = false;
|
||||
const { email, username, password } = this.form;
|
||||
this.authService.register(email, username, password).subscribe(
|
||||
(data) => {
|
||||
this.isSuccessful = true;
|
||||
this.isSignUpFailed = false;
|
||||
this.router.navigate(['/login']);
|
||||
},
|
||||
(err) => {
|
||||
this.errorMessage = err.error.message;
|
||||
this.isSignUpFailed = true;
|
||||
}
|
||||
);
|
||||
} else {
|
||||
this.checkPasswordFailed = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
</code></pre>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div><div class="search-results">
|
||||
<div class="has-results">
|
||||
<h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
|
||||
<ul class="search-results-list"></ul>
|
||||
</div>
|
||||
<div class="no-results">
|
||||
<h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="../js/libs/bootstrap-native.js"></script>
|
||||
|
||||
<script src="../js/libs/es6-shim.min.js"></script>
|
||||
<script src="../js/libs/EventDispatcher.js"></script>
|
||||
<script src="../js/libs/promise.min.js"></script>
|
||||
<script src="../js/libs/zepto.min.js"></script>
|
||||
|
||||
<script src="../js/compodoc.js"></script>
|
||||
|
||||
<script src="../js/search/search.js"></script>
|
||||
<script src="../js/search/lunr.min.js"></script>
|
||||
<script src="../js/search/search-lunr.js"></script>
|
||||
|
||||
<script src="../js/menu.js"></script>
|
||||
<script src="../js/libs/highlight.pack.js"></script>
|
||||
<script src="../js/libs/highlightjs-line-numbers.min.js"></script>
|
||||
<script src="../js/search/search_index.js"></script>
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
hljs.initHighlightingOnLoad();
|
||||
hljs.initLineNumbersOnLoad();
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
689
documentation/frontend/components/UserDialogComponent.html
Normal file
689
documentation/frontend/components/UserDialogComponent.html
Normal file
@@ -0,0 +1,689 @@
|
||||
<!doctype html>
|
||||
<html class="no-js" lang="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<title>aktienbot documentation</title>
|
||||
<meta name="description" content="">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<link rel="icon" type="image/x-icon" href="../images/favicon.ico">
|
||||
<link rel="stylesheet" href="../styles/style.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="navbar navbar-default navbar-fixed-top visible-xs">
|
||||
<a href="../" class="navbar-brand">aktienbot documentation</a>
|
||||
<button type="button" class="btn btn-default btn-menu fa fa-bars" id="btn-menu"></button>
|
||||
</div>
|
||||
|
||||
<div class="xs-menu menu" id="mobile-menu">
|
||||
<div id="book-search-input" role="search">
|
||||
<input type="text" placeholder="Type to search">
|
||||
</div>
|
||||
<nav>
|
||||
|
||||
<ul class="list">
|
||||
|
||||
<li class="title">
|
||||
<a href="../">aktienbot documentation</a>
|
||||
</li>
|
||||
|
||||
<li class="divider"></li>
|
||||
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../"><span class="fa fa-home"></span>Getting started</a>
|
||||
<ul class="links">
|
||||
<li class="link">
|
||||
<a href="../" ><span class="fa fa-file-text-o"></span>README</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a
|
||||
|
||||
href="../overview.html"
|
||||
href="../overview.html"
|
||||
>
|
||||
<span class="fa fa-th"></span>Overview
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="./modules.html" >
|
||||
<span class="fa fa-archive"></span>
|
||||
<span>Modules</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#xs-modules-links"
|
||||
></span>
|
||||
</a>
|
||||
<ul class="links collapse in"
|
||||
id="xs-modules-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../modules/AppModule.html" >AppModule</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-cogs"></span>
|
||||
<span>Components</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#xs-components-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="xs-components-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../components/AppComponent.html" >AppComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/BotSettingsComponent.html" >BotSettingsComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/ConfirmationDialogComponent.html" >ConfirmationDialogComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/DashboardComponent.html" >DashboardComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/HeaderComponent.html" >HeaderComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/HelpDialogComponent.html" >HelpDialogComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/LoginComponent.html" >LoginComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/ProfileComponent.html" >ProfileComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/RegisterComponent.html" >RegisterComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/UserDialogComponent.html" class="active" >UserDialogComponent</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-long-arrow-down"></span>
|
||||
<span>Injectables</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#xs-injectables-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="xs-injectables-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../injectables/AuthInterceptor.html" >AuthInterceptor</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/AuthService.html" >AuthService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/BotService.html" >BotService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/DataService.html" >DataService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/HelperService.html" >HelperService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/ProfileService.html" >ProfileService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/TokenStorageService.html" >TokenStorageService</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-info"></span>
|
||||
<span>Interfaces</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#xs-interfaces-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="xs-interfaces-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Keyword.html" >Keyword</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Share.html" >Share</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Stock.html" >Stock</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/TransactionData.html" >TransactionData</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../miscellaneous.html" ><span class="fa fa-cubes"></span>Miscellaneous</a>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../coverage.html" ><span class="fa fa-tasks"></span>Documentation coverage</a>
|
||||
</li>
|
||||
|
||||
<li class="divider"></li>
|
||||
<li class="copyright">
|
||||
Documentation generated using <a href="https://compodoc.github.io/compodoc/" target="_blank">
|
||||
<img src="..//images/compodoc-vectorise.svg" class="img-responsive">
|
||||
</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<div class="container-fluid main">
|
||||
<div class="row main">
|
||||
<div class="hidden-xs menu">
|
||||
<nav>
|
||||
|
||||
<ul class="list">
|
||||
|
||||
<li class="title">
|
||||
<a href="../">aktienbot documentation</a>
|
||||
</li>
|
||||
|
||||
<li class="divider"></li>
|
||||
|
||||
<div id="book-search-input" role="search">
|
||||
<input type="text" placeholder="Type to search">
|
||||
</div>
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../"><span class="fa fa-home"></span>Getting started</a>
|
||||
<ul class="links">
|
||||
<li class="link">
|
||||
<a href="../" ><span class="fa fa-file-text-o"></span>README</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a
|
||||
|
||||
href="../overview.html"
|
||||
href="../overview.html"
|
||||
>
|
||||
<span class="fa fa-th"></span>Overview
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="./modules.html" >
|
||||
<span class="fa fa-archive"></span>
|
||||
<span>Modules</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#modules-links"
|
||||
></span>
|
||||
</a>
|
||||
<ul class="links collapse in"
|
||||
id="modules-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../modules/AppModule.html" >AppModule</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-cogs"></span>
|
||||
<span>Components</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#components-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="components-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../components/AppComponent.html" >AppComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/BotSettingsComponent.html" >BotSettingsComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/ConfirmationDialogComponent.html" >ConfirmationDialogComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/DashboardComponent.html" >DashboardComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/HeaderComponent.html" >HeaderComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/HelpDialogComponent.html" >HelpDialogComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/LoginComponent.html" >LoginComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/ProfileComponent.html" >ProfileComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/RegisterComponent.html" >RegisterComponent</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../components/UserDialogComponent.html" class="active" >UserDialogComponent</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-long-arrow-down"></span>
|
||||
<span>Injectables</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#injectables-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="injectables-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../injectables/AuthInterceptor.html" >AuthInterceptor</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/AuthService.html" >AuthService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/BotService.html" >BotService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/DataService.html" >DataService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/HelperService.html" >HelperService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/ProfileService.html" >ProfileService</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../injectables/TokenStorageService.html" >TokenStorageService</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<div class="simple">
|
||||
<span class="fa fa-info"></span>
|
||||
<span>Interfaces</span>
|
||||
<span class="menu-toggler fa fa-angle-up" data-toggle="collapse"
|
||||
data-target="#interfaces-links"
|
||||
></span>
|
||||
</div>
|
||||
<ul class="links collapse in"
|
||||
id="interfaces-links"
|
||||
>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Keyword.html" >Keyword</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Share.html" >Share</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/Stock.html" >Stock</a>
|
||||
</li>
|
||||
<li class="link">
|
||||
<a href="../interfaces/TransactionData.html" >TransactionData</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../miscellaneous.html" ><span class="fa fa-cubes"></span>Miscellaneous</a>
|
||||
</li>
|
||||
|
||||
<li class="chapter">
|
||||
<a data-type="chapter-link" href="../coverage.html" ><span class="fa fa-tasks"></span>Documentation coverage</a>
|
||||
</li>
|
||||
|
||||
<li class="divider"></li>
|
||||
<li class="copyright">
|
||||
Documentation generated using <a href="https://compodoc.github.io/compodoc/" target="_blank">
|
||||
<img src="..//images/compodoc-vectorise.svg" class="img-responsive">
|
||||
</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
</nav>
|
||||
</div>
|
||||
<div class="content component">
|
||||
<div class="content-data">
|
||||
|
||||
|
||||
<ol class="breadcrumb">
|
||||
<li>Components</li>
|
||||
<li>UserDialogComponent</li>
|
||||
</ol>
|
||||
|
||||
|
||||
<ul class="nav nav-tabs" role="tablist">
|
||||
<li class="active">
|
||||
<a href="#infos" id="infos-tab" role="tab" data-toggle="tab">Infos</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#source" role="tab" id="source-tab" data-toggle="tab">Source</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane fade active in" id="infos"><p class="comment">
|
||||
<h3>File</h3>
|
||||
</p>
|
||||
<p class="comment">
|
||||
<code>src/app/Views/dashboard/user-dialog/user-dialog.component.ts</code>
|
||||
</p>
|
||||
|
||||
|
||||
|
||||
<section>
|
||||
<h3>Metadata</h3>
|
||||
<table class="table table-sm table-hover">
|
||||
<tbody>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td class="col-md-3">selector</td>
|
||||
<td class="col-md-9"><code>app-user-dialog</code></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="col-md-3">styleUrls</td>
|
||||
<td class="col-md-9"><code>user-dialog.component.scss</code></td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td class="col-md-3">templateUrl</td>
|
||||
<td class="col-md-9"><code>user-dialog.component.html</code></td>
|
||||
</tr>
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
<section>
|
||||
<h3 id="constructor">Constructor</h3>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>constructor(dataService: any, dialog: MatDialog, dialogRef: any, data: TransactionData)</code>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h3 id="methods">Methods</h3>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b> onSubmit</b>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>onSubmit()</code>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<div class="io-description">
|
||||
<b>Returns: </b> <code>void</code>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h3 id="inputs">Properties</h3>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b> countValid</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>countValid: <code>boolean</code>
|
||||
</bcode>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<i>Default value: </i><code>true</code>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b> data</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>data: <code>TransactionData</code>
|
||||
</bcode>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b> dialog</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>dialog: <code>MatDialog</code>
|
||||
</bcode>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b> dialogRef</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>dialogRef: <code>any</code>
|
||||
</bcode>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<table class="table table-sm table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<b> priceValid</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<code>priceValid: <code>boolean</code>
|
||||
</bcode>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="col-md-4">
|
||||
<i>Default value: </i><code>true</code>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
</div>
|
||||
<div class="tab-pane fade tab-source-code" id="source">
|
||||
<pre><code class="hljs javascript">import { Component, Inject, OnInit } from '@angular/core';
|
||||
import { FormControl } from '@angular/forms';
|
||||
import {
|
||||
MatDialog,
|
||||
MatDialogRef,
|
||||
MAT_DIALOG_DATA,
|
||||
} from '@angular/material/dialog';
|
||||
import { DataService } from 'src/app/Services/data.service';
|
||||
|
||||
import { TransactionData } from '../dashboard.component';
|
||||
|
||||
@Component({
|
||||
selector: 'app-user-dialog',
|
||||
templateUrl: './user-dialog.component.html',
|
||||
styleUrls: ['./user-dialog.component.scss'],
|
||||
})
|
||||
export class UserDialogComponent {
|
||||
constructor(
|
||||
private dataService: DataService,
|
||||
public dialog: MatDialog,
|
||||
public dialogRef: MatDialogRef<UserDialogComponent>,
|
||||
@Inject(MAT_DIALOG_DATA) public data: TransactionData
|
||||
) {}
|
||||
|
||||
countValid = true;
|
||||
priceValid = true;
|
||||
|
||||
onSubmit() {
|
||||
console.log(!isNaN(this.data.count));
|
||||
if (!isNaN(this.data.count) && !isNaN(this.data.price)) {
|
||||
this.priceValid = true;
|
||||
this.countValid = true;
|
||||
console.log(
|
||||
this.dataService
|
||||
.createTransaction(
|
||||
this.data.comment,
|
||||
this.data.isin,
|
||||
this.data.time,
|
||||
+this.data.count,
|
||||
+this.data.price.toFixed(2) * -1
|
||||
)
|
||||
.subscribe((data) => {
|
||||
console.log(data);
|
||||
})
|
||||
);
|
||||
this.dialog.closeAll();
|
||||
} else if (isNaN(this.data.count) && !isNaN(this.data.price)) {
|
||||
this.priceValid = true;
|
||||
this.countValid = false;
|
||||
} else if (!isNaN(this.data.count) && isNaN(this.data.price)) {
|
||||
this.priceValid = false;
|
||||
this.countValid = true;
|
||||
} else {
|
||||
this.countValid = false;
|
||||
this.priceValid = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
</code></pre>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div><div class="search-results">
|
||||
<div class="has-results">
|
||||
<h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
|
||||
<ul class="search-results-list"></ul>
|
||||
</div>
|
||||
<div class="no-results">
|
||||
<h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="../js/libs/bootstrap-native.js"></script>
|
||||
|
||||
<script src="../js/libs/es6-shim.min.js"></script>
|
||||
<script src="../js/libs/EventDispatcher.js"></script>
|
||||
<script src="../js/libs/promise.min.js"></script>
|
||||
<script src="../js/libs/zepto.min.js"></script>
|
||||
|
||||
<script src="../js/compodoc.js"></script>
|
||||
|
||||
<script src="../js/search/search.js"></script>
|
||||
<script src="../js/search/lunr.min.js"></script>
|
||||
<script src="../js/search/search-lunr.js"></script>
|
||||
|
||||
<script src="../js/menu.js"></script>
|
||||
<script src="../js/libs/highlight.pack.js"></script>
|
||||
<script src="../js/libs/highlightjs-line-numbers.min.js"></script>
|
||||
<script src="../js/search/search_index.js"></script>
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
hljs.initHighlightingOnLoad();
|
||||
hljs.initLineNumbersOnLoad();
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user