Add documentation

This commit is contained in:
kevinpauer
2022-05-03 10:59:36 +02:00
parent cf6f1714b4
commit 6f8f0679bd
118 changed files with 27113 additions and 1325 deletions

View File

@@ -0,0 +1,501 @@
<!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">
<link rel="stylesheet" href="../styles/dark.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 ion-ios-menu" 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> <compodoc-menu></compodoc-menu>
</div>
<div class="container-fluid main">
<div class="row main">
<div class="hidden-xs menu">
<compodoc-menu mode="normal"></compodoc-menu>
</div>
<!-- START CONTENT -->
<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="#info" role="tab" id="info-tab" data-toggle="tab" data-link="info">Info</a>
</li>
<li >
<a href="#source" role="tab" id="source-tab" data-toggle="tab" data-link="source">Source</a>
</li>
<li >
<a href="#templateData" role="tab" id="templateData-tab" data-toggle="tab" data-link="template">Template</a>
</li>
<li >
<a href="#styleData" role="tab" id="styleData-tab" data-toggle="tab" data-link="style">Styles</a>
</li>
<li >
<a href="#tree" role="tab" id="tree-tab" data-toggle="tab" data-link="dom-tree">DOM Tree</a>
</li>
</ul>
<div class="tab-content">
<div class="tab-pane fade active in" id="c-info"><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 metadata">
<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="index">Index</h3>
<table class="table table-sm table-bordered index-table">
<tbody>
<tr>
<td class="col-md-4">
<h6><b>Properties</b></h6>
</td>
</tr>
<tr>
<td class="col-md-4">
<ul class="index-list">
<li>
<a href="#isLoggedIn" >isLoggedIn</a>
</li>
<li>
<a href="#showHeader" >showHeader</a>
</li>
<li>
<a href="#title" >title</a>
</li>
</ul>
</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/api/router/Router" target="_blank">Router</a>, tokenStorage: <a href="../injectables/TokenStorageService.html" target="_self">TokenStorageService</a>)</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="18" class="link-to-prism">src/app/app.component.ts:18</a></div>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-description"><p>Router import to show router-outlet.</p>
</div>
<div>
<b>Parameters :</b>
<table class="params">
<thead>
<tr>
<td>Name</td>
<td>Type</td>
<td>Optional</td>
<td>Description</td>
</tr>
</thead>
<tbody>
<tr>
<td>router</td>
<td>
<code><a href="https://angular.io/api/router/Router" target="_blank" >Router</a></code>
</td>
<td>
No
</td>
<td>
<p>Router</p>
</td>
</tr>
<tr>
<td>tokenStorage</td>
<td>
<code><a href="../injectables/TokenStorageService.html" target="_self" >TokenStorageService</a></code>
</td>
<td>
No
</td>
<td>
</td>
</tr>
</tbody>
</table>
</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">
<a name="isLoggedIn"></a>
<span class="name">
<span ><b>isLoggedIn</b></span>
<a href="#isLoggedIn"><span class="icon ion-ios-link"></span></a>
</span>
</td>
</tr>
<tr>
<td class="col-md-4">
<i>Default value : </i><code>false</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="18" class="link-to-prism">src/app/app.component.ts:18</a></div>
</td>
</tr>
</tbody>
</table>
<table class="table table-sm table-bordered">
<tbody>
<tr>
<td class="col-md-4">
<a name="showHeader"></a>
<span class="name">
<span ><b>showHeader</b></span>
<a href="#showHeader"><span class="icon ion-ios-link"></span></a>
</span>
</td>
</tr>
<tr>
<td class="col-md-4">
<i>Default value : </i><code>false</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="17" class="link-to-prism">src/app/app.component.ts:17</a></div>
</td>
</tr>
</tbody>
</table>
<table class="table table-sm table-bordered">
<tbody>
<tr>
<td class="col-md-4">
<a name="title"></a>
<span class="name">
<span ><b>title</b></span>
<a href="#title"><span class="icon ion-ios-link"></span></a>
</span>
</td>
</tr>
<tr>
<td class="col-md-4">
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
</td>
</tr>
<tr>
<td class="col-md-4">
<i>Default value : </i><code>&#x27;Aktienbot&#x27;</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="15" class="link-to-prism">src/app/app.component.ts:15</a></div>
</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="c-source">
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { Component } from &#x27;@angular/core&#x27;;
import { NavigationEnd, Router } from &#x27;@angular/router&#x27;;
import { TokenStorageService } from &#x27;./Services/token.service&#x27;;
import { filter } from &#x27;rxjs/operators&#x27;;
@Component({
selector: &#x27;app-root&#x27;,
templateUrl: &#x27;./app.component.html&#x27;,
styleUrls: [&#x27;./app.component.scss&#x27;],
})
export class AppComponent {
/**
* Application title.
*/
title &#x3D; &#x27;Aktienbot&#x27;;
showHeader &#x3D; false;
isLoggedIn &#x3D; 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) &#x3D;&gt; event instanceof NavigationEnd))
.subscribe((event) &#x3D;&gt; {
this.showHeader &#x3D; !(
(event as NavigationEnd).url &#x3D;&#x3D;&#x3D; &#x27;/login&#x27; ||
(event as NavigationEnd).url &#x3D;&#x3D;&#x3D; &#x27;/register&#x27;
);
//check if token already exists from past login
if (this.tokenStorage.getToken()) {
this.isLoggedIn &#x3D; true;
} else {
this.isLoggedIn &#x3D; false;
}
//prevent user from accessing dashboard if not logged in
if (
this.isLoggedIn &#x3D;&#x3D;&#x3D; false &amp;&amp;
(event as NavigationEnd).url !&#x3D; &#x27;/register&#x27;
) {
this.router.navigate([&#x27;/login&#x27;]);
}
});
}
}
</code></pre>
</div>
<div class="tab-pane fade " id="c-templateData">
<pre class="line-numbers"><code class="language-html">&lt;app-header *ngIf&#x3D;&quot;showHeader&quot;&gt;&lt;/app-header&gt;
&lt;router-outlet&gt;&lt;/router-outlet&gt;
</code></pre>
</div>
<div class="tab-pane fade " id="c-styleData">
<p class="comment">
<code>./app.component.scss</code>
</p>
<pre class="line-numbers"><code class="language-scss"></code></pre>
</div>
<div class="tab-pane fade " id="c-tree">
<div id="tree-container"></div>
<div class="tree-legend">
<div class="title">
<b>Legend</b>
</div>
<div>
<div class="color htmlelement"></div><span>Html element</span>
</div>
<div>
<div class="color component"></div><span>Component</span>
</div>
<div>
<div class="color directive"></div><span>Html element with directive</span>
</div>
</div>
</div>
</div>
<script src="../js/libs/vis.min.js"></script>
<script src="../js/libs/htmlparser.js"></script>
<script src="../js/libs/deep-iterator.js"></script>
<script>
var COMPONENT_TEMPLATE = '<div><app-header *ngIf="showHeader"></app-header><router-outlet></router-outlet></div>'
var COMPONENTS = [{'name': 'AppComponent', 'selector': 'app-root'},{'name': 'BotSettingsComponent', 'selector': 'app-bot-settings'},{'name': 'ConfirmationDialogComponent', 'selector': 'app-confirmation-dialog'},{'name': 'DashboardComponent', 'selector': 'app-dashboard'},{'name': 'HeaderComponent', 'selector': 'app-header'},{'name': 'HelpDialogComponent', 'selector': 'app-help-dialog'},{'name': 'LoginComponent', 'selector': 'app-login'},{'name': 'ProfileComponent', 'selector': 'app-profile'},{'name': 'RegisterComponent', 'selector': 'app-register'},{'name': 'UserDialogComponent', 'selector': 'app-user-dialog'}];
var DIRECTIVES = [];
var ACTUAL_COMPONENT = {'name': 'AppComponent'};
</script>
<script src="../js/tree.js"></script>
</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>
<!-- END CONTENT -->
</div>
</div>
<label class="dark-mode-switch">
<input type="checkbox">
<span class="slider">
<svg class="slider-icon" viewBox="0 0 24 24" fill="none" height="20" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" width="20" xmlns="http://www.w3.org/2000/svg">
<path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"></path>
</svg>
</span>
</label>
<script>
var COMPODOC_CURRENT_PAGE_DEPTH = 1;
var COMPODOC_CURRENT_PAGE_CONTEXT = 'component';
var COMPODOC_CURRENT_PAGE_URL = 'AppComponent.html';
var MAX_SEARCH_RESULTS = 15;
</script>
<script src="../js/libs/custom-elements.min.js"></script>
<script src="../js/libs/lit-html.js"></script>
<script src="../js/menu-wc.js" defer></script>
<script nomodule src="../js/menu-wc_es5.js" defer></script>
<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/tabs.js"></script>
<script src="../js/menu.js"></script>
<script src="../js/libs/clipboard.min.js"></script>
<script src="../js/libs/prism.js"></script>
<script src="../js/sourceCode.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/search/search_index.js"></script>
<script src="../js/lazy-load-graphs.js"></script>
</body>
</html>

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,437 @@
<!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">
<link rel="stylesheet" href="../styles/dark.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 ion-ios-menu" 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> <compodoc-menu></compodoc-menu>
</div>
<div class="container-fluid main">
<div class="row main">
<div class="hidden-xs menu">
<compodoc-menu mode="normal"></compodoc-menu>
</div>
<!-- START CONTENT -->
<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="#info" role="tab" id="info-tab" data-toggle="tab" data-link="info">Info</a>
</li>
<li >
<a href="#source" role="tab" id="source-tab" data-toggle="tab" data-link="source">Source</a>
</li>
<li >
<a href="#templateData" role="tab" id="templateData-tab" data-toggle="tab" data-link="template">Template</a>
</li>
<li >
<a href="#styleData" role="tab" id="styleData-tab" data-toggle="tab" data-link="style">Styles</a>
</li>
<li >
<a href="#tree" role="tab" id="tree-tab" data-toggle="tab" data-link="dom-tree">DOM Tree</a>
</li>
</ul>
<div class="tab-content">
<div class="tab-pane fade active in" id="c-info"><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 metadata">
<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="index">Index</h3>
<table class="table table-sm table-bordered index-table">
<tbody>
<tr>
<td class="col-md-4">
<h6><b>Methods</b></h6>
</td>
</tr>
<tr>
<td class="col-md-4">
<ul class="index-list">
<li>
<a href="#confirm" >confirm</a>
</li>
<li>
<a href="#returnBack" >returnBack</a>
</li>
</ul>
</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>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="8" class="link-to-prism">src/app/Views/profile/confirmation-dialog/confirmation-dialog.component.ts:8</a></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">
<a name="confirm"></a>
<span class="name">
<span ><b>confirm</b></span>
<a href="#confirm"><span class="icon ion-ios-link"></span></a>
</span>
</td>
</tr>
<tr>
<td class="col-md-4">
<code>confirm()</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="11"
class="link-to-prism">src/app/Views/profile/confirmation-dialog/confirmation-dialog.component.ts:11</a></div>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-description">
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
</div>
</td>
</tr>
</tbody>
</table>
<table class="table table-sm table-bordered">
<tbody>
<tr>
<td class="col-md-4">
<a name="returnBack"></a>
<span class="name">
<span ><b>returnBack</b></span>
<a href="#returnBack"><span class="icon ion-ios-link"></span></a>
</span>
</td>
</tr>
<tr>
<td class="col-md-4">
<code>returnBack()</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="13"
class="link-to-prism">src/app/Views/profile/confirmation-dialog/confirmation-dialog.component.ts:13</a></div>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-description">
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
</div>
</td>
</tr>
</tbody>
</table>
</section>
</div>
<div class="tab-pane fade tab-source-code" id="c-source">
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { Component, OnInit } from &#x27;@angular/core&#x27;;
@Component({
selector: &#x27;app-confirmation-dialog&#x27;,
templateUrl: &#x27;./confirmation-dialog.component.html&#x27;,
styleUrls: [&#x27;./confirmation-dialog.component.scss&#x27;],
})
export class ConfirmationDialogComponent {
constructor() {}
confirm() {}
returnBack() {}
}
</code></pre>
</div>
<div class="tab-pane fade " id="c-templateData">
<pre class="line-numbers"><code class="language-html">&lt;div class&#x3D;&quot;containeer&quot;&gt;
&lt;h1 mat-dialog-title&gt;Confirm Action&lt;/h1&gt;
&lt;div mat-dialog-content class&#x3D;&quot;content&quot;&gt;
&lt;span&gt;Are you sure, that you want to continue?&lt;/span&gt;
&lt;/div&gt;
&lt;div mat-dialog-actions class&#x3D;&quot;form-group footer-buttons&quot;&gt;
&lt;div class&#x3D;&quot;inner&quot;&gt;
&lt;button
id&#x3D;&quot;cancelButton&quot;
class&#x3D;&quot;btn btn-primary btn-block&quot;
(click)&#x3D;&quot;returnBack()&quot;
[mat-dialog-close]&#x3D;&quot;false&quot;
&gt;
Cancel
&lt;/button&gt;
&lt;/div&gt;
&lt;div class&#x3D;&quot;inner&quot;&gt;
&lt;button
id&#x3D;&quot;okButton&quot;
class&#x3D;&quot;btn btn-danger btn-block&quot;
(click)&#x3D;&quot;confirm()&quot;
[mat-dialog-close]&#x3D;&quot;true&quot;
&gt;
Yes
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</code></pre>
</div>
<div class="tab-pane fade " id="c-styleData">
<p class="comment">
<code>./confirmation-dialog.component.scss</code>
</p>
<pre class="line-numbers"><code class="language-scss">.footer-buttons {
width: 100%;
text-align: center;
}
.spacer {
flex-grow: 1;
width: 5%;
}
.inner {
display: inline-block;
width: 50%;
}
.content {
height: 80%;
}
</code></pre>
</div>
<div class="tab-pane fade " id="c-tree">
<div id="tree-container"></div>
<div class="tree-legend">
<div class="title">
<b>Legend</b>
</div>
<div>
<div class="color htmlelement"></div><span>Html element</span>
</div>
<div>
<div class="color component"></div><span>Component</span>
</div>
<div>
<div class="color directive"></div><span>Html element with directive</span>
</div>
</div>
</div>
</div>
<script src="../js/libs/vis.min.js"></script>
<script src="../js/libs/htmlparser.js"></script>
<script src="../js/libs/deep-iterator.js"></script>
<script>
var COMPONENT_TEMPLATE = '<div><div class="containeer"> <h1 mat-dialog-title>Confirm Action</h1> <div mat-dialog-content class="content"> <span>Are you sure, that you want to continue?</span> </div> <div mat-dialog-actions class="form-group footer-buttons"> <div class="inner"> <button id="cancelButton" class="btn btn-primary btn-block" (click)="returnBack()" [mat-dialog-close]="false" > Cancel </button> </div> <div class="inner"> <button id="okButton" class="btn btn-danger btn-block" (click)="confirm()" [mat-dialog-close]="true" > Yes </button> </div> </div></div></div>'
var COMPONENTS = [{'name': 'AppComponent', 'selector': 'app-root'},{'name': 'BotSettingsComponent', 'selector': 'app-bot-settings'},{'name': 'ConfirmationDialogComponent', 'selector': 'app-confirmation-dialog'},{'name': 'DashboardComponent', 'selector': 'app-dashboard'},{'name': 'HeaderComponent', 'selector': 'app-header'},{'name': 'HelpDialogComponent', 'selector': 'app-help-dialog'},{'name': 'LoginComponent', 'selector': 'app-login'},{'name': 'ProfileComponent', 'selector': 'app-profile'},{'name': 'RegisterComponent', 'selector': 'app-register'},{'name': 'UserDialogComponent', 'selector': 'app-user-dialog'}];
var DIRECTIVES = [];
var ACTUAL_COMPONENT = {'name': 'ConfirmationDialogComponent'};
</script>
<script src="../js/tree.js"></script>
</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>
<!-- END CONTENT -->
</div>
</div>
<label class="dark-mode-switch">
<input type="checkbox">
<span class="slider">
<svg class="slider-icon" viewBox="0 0 24 24" fill="none" height="20" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" width="20" xmlns="http://www.w3.org/2000/svg">
<path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"></path>
</svg>
</span>
</label>
<script>
var COMPODOC_CURRENT_PAGE_DEPTH = 1;
var COMPODOC_CURRENT_PAGE_CONTEXT = 'component';
var COMPODOC_CURRENT_PAGE_URL = 'ConfirmationDialogComponent.html';
var MAX_SEARCH_RESULTS = 15;
</script>
<script src="../js/libs/custom-elements.min.js"></script>
<script src="../js/libs/lit-html.js"></script>
<script src="../js/menu-wc.js" defer></script>
<script nomodule src="../js/menu-wc_es5.js" defer></script>
<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/tabs.js"></script>
<script src="../js/menu.js"></script>
<script src="../js/libs/clipboard.min.js"></script>
<script src="../js/libs/prism.js"></script>
<script src="../js/sourceCode.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/search/search_index.js"></script>
<script src="../js/lazy-load-graphs.js"></script>
</body>
</html>

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,420 @@
<!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">
<link rel="stylesheet" href="../styles/dark.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 ion-ios-menu" 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> <compodoc-menu></compodoc-menu>
</div>
<div class="container-fluid main">
<div class="row main">
<div class="hidden-xs menu">
<compodoc-menu mode="normal"></compodoc-menu>
</div>
<!-- START CONTENT -->
<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="#info" role="tab" id="info-tab" data-toggle="tab" data-link="info">Info</a>
</li>
<li >
<a href="#source" role="tab" id="source-tab" data-toggle="tab" data-link="source">Source</a>
</li>
<li >
<a href="#templateData" role="tab" id="templateData-tab" data-toggle="tab" data-link="template">Template</a>
</li>
<li >
<a href="#styleData" role="tab" id="styleData-tab" data-toggle="tab" data-link="style">Styles</a>
</li>
<li >
<a href="#tree" role="tab" id="tree-tab" data-toggle="tab" data-link="dom-tree">DOM Tree</a>
</li>
</ul>
<div class="tab-content">
<div class="tab-pane fade active in" id="c-info"><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 metadata">
<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="index">Index</h3>
<table class="table table-sm table-bordered index-table">
<tbody>
<tr>
<td class="col-md-4">
<h6><b>Methods</b></h6>
</td>
</tr>
<tr>
<td class="col-md-4">
<ul class="index-list">
<li>
<a href="#logout" >logout</a>
</li>
</ul>
</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: <a href="../injectables/TokenStorageService.html" target="_self">TokenStorageService</a>)</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="9" class="link-to-prism">src/app/Views/header/header.component.ts:9</a></div>
</td>
</tr>
<tr>
<td class="col-md-4">
<div>
<b>Parameters :</b>
<table class="params">
<thead>
<tr>
<td>Name</td>
<td>Type</td>
<td>Optional</td>
</tr>
</thead>
<tbody>
<tr>
<td>tokenStorage</td>
<td>
<code><a href="../injectables/TokenStorageService.html" target="_self" >TokenStorageService</a></code>
</td>
<td>
No
</td>
</tr>
</tbody>
</table>
</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">
<a name="logout"></a>
<span class="name">
<span ><b>logout</b></span>
<a href="#logout"><span class="icon ion-ios-link"></span></a>
</span>
</td>
</tr>
<tr>
<td class="col-md-4">
<code>logout()</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="16"
class="link-to-prism">src/app/Views/header/header.component.ts:16</a></div>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-description">
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
</div>
</td>
</tr>
</tbody>
</table>
</section>
</div>
<div class="tab-pane fade tab-source-code" id="c-source">
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { Component, OnInit } from &#x27;@angular/core&#x27;;
import { TokenStorageService } from &#x27;src/app/Services/token.service&#x27;;
@Component({
selector: &#x27;app-header&#x27;,
templateUrl: &#x27;./header.component.html&#x27;,
styleUrls: [&#x27;./header.component.scss&#x27;],
})
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 class="tab-pane fade " id="c-templateData">
<pre class="line-numbers"><code class="language-html">&lt;mat-toolbar&gt;
&lt;a href&#x3D;&quot;&quot;&gt;&lt;span&gt;Aktienbot&lt;/span&gt;&lt;/a&gt;
&lt;span class&#x3D;&quot;example-spacer&quot;&gt;&lt;/span&gt;
&lt;button
mat-icon-button
aria-label&#x3D;&quot;Example icon-button with heart icon&quot;
routerLink&#x3D;&quot;/profile&quot;
&gt;
&lt;mat-icon&gt;account_circle&lt;/mat-icon&gt;
&lt;/button&gt;
&lt;button
mat-icon-button
class&#x3D;&quot;example-icon favorite-icon&quot;
routerLink&#x3D;&quot;/settings&quot;
&gt;
&lt;mat-icon&gt;ballot&lt;/mat-icon&gt;
&lt;/button&gt;
&lt;button
mat-icon-button
aria-label&#x3D;&quot;Example icon-button with heart icon&quot;
(click)&#x3D;&quot;logout()&quot;
&gt;
&lt;mat-icon&gt;logout&lt;/mat-icon&gt;
&lt;/button&gt;
&lt;/mat-toolbar&gt;
</code></pre>
</div>
<div class="tab-pane fade " id="c-styleData">
<p class="comment">
<code>./header.component.scss</code>
</p>
<pre class="line-numbers"><code class="language-scss">.example-spacer {
flex: 1 1 auto;
}
a {
color: white;
text-decoration: none; /* no underline */
}
</code></pre>
</div>
<div class="tab-pane fade " id="c-tree">
<div id="tree-container"></div>
<div class="tree-legend">
<div class="title">
<b>Legend</b>
</div>
<div>
<div class="color htmlelement"></div><span>Html element</span>
</div>
<div>
<div class="color component"></div><span>Component</span>
</div>
<div>
<div class="color directive"></div><span>Html element with directive</span>
</div>
</div>
</div>
</div>
<script src="../js/libs/vis.min.js"></script>
<script src="../js/libs/htmlparser.js"></script>
<script src="../js/libs/deep-iterator.js"></script>
<script>
var COMPONENT_TEMPLATE = '<div><mat-toolbar> <a href=""><span>Aktienbot</span></a> <span class="example-spacer"></span> <button mat-icon-button aria-label="Example icon-button with heart icon" routerLink="/profile" > <mat-icon>account_circle</mat-icon> </button> <button mat-icon-button class="example-icon favorite-icon" routerLink="/settings" > <mat-icon>ballot</mat-icon> </button> <button mat-icon-button aria-label="Example icon-button with heart icon" (click)="logout()" > <mat-icon>logout</mat-icon> </button></mat-toolbar></div>'
var COMPONENTS = [{'name': 'AppComponent', 'selector': 'app-root'},{'name': 'BotSettingsComponent', 'selector': 'app-bot-settings'},{'name': 'ConfirmationDialogComponent', 'selector': 'app-confirmation-dialog'},{'name': 'DashboardComponent', 'selector': 'app-dashboard'},{'name': 'HeaderComponent', 'selector': 'app-header'},{'name': 'HelpDialogComponent', 'selector': 'app-help-dialog'},{'name': 'LoginComponent', 'selector': 'app-login'},{'name': 'ProfileComponent', 'selector': 'app-profile'},{'name': 'RegisterComponent', 'selector': 'app-register'},{'name': 'UserDialogComponent', 'selector': 'app-user-dialog'}];
var DIRECTIVES = [];
var ACTUAL_COMPONENT = {'name': 'HeaderComponent'};
</script>
<script src="../js/tree.js"></script>
</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>
<!-- END CONTENT -->
</div>
</div>
<label class="dark-mode-switch">
<input type="checkbox">
<span class="slider">
<svg class="slider-icon" viewBox="0 0 24 24" fill="none" height="20" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" width="20" xmlns="http://www.w3.org/2000/svg">
<path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"></path>
</svg>
</span>
</label>
<script>
var COMPODOC_CURRENT_PAGE_DEPTH = 1;
var COMPODOC_CURRENT_PAGE_CONTEXT = 'component';
var COMPODOC_CURRENT_PAGE_URL = 'HeaderComponent.html';
var MAX_SEARCH_RESULTS = 15;
</script>
<script src="../js/libs/custom-elements.min.js"></script>
<script src="../js/libs/lit-html.js"></script>
<script src="../js/menu-wc.js" defer></script>
<script nomodule src="../js/menu-wc_es5.js" defer></script>
<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/tabs.js"></script>
<script src="../js/menu.js"></script>
<script src="../js/libs/clipboard.min.js"></script>
<script src="../js/libs/prism.js"></script>
<script src="../js/sourceCode.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/search/search_index.js"></script>
<script src="../js/lazy-load-graphs.js"></script>
</body>
</html>

View File

@@ -0,0 +1,390 @@
<!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">
<link rel="stylesheet" href="../styles/dark.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 ion-ios-menu" 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> <compodoc-menu></compodoc-menu>
</div>
<div class="container-fluid main">
<div class="row main">
<div class="hidden-xs menu">
<compodoc-menu mode="normal"></compodoc-menu>
</div>
<!-- START CONTENT -->
<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="#info" role="tab" id="info-tab" data-toggle="tab" data-link="info">Info</a>
</li>
<li >
<a href="#source" role="tab" id="source-tab" data-toggle="tab" data-link="source">Source</a>
</li>
<li >
<a href="#templateData" role="tab" id="templateData-tab" data-toggle="tab" data-link="template">Template</a>
</li>
<li >
<a href="#styleData" role="tab" id="styleData-tab" data-toggle="tab" data-link="style">Styles</a>
</li>
<li >
<a href="#tree" role="tab" id="tree-tab" data-toggle="tab" data-link="dom-tree">DOM Tree</a>
</li>
</ul>
<div class="tab-content">
<div class="tab-pane fade active in" id="c-info"><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 metadata">
<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="index">Index</h3>
<table class="table table-sm table-bordered index-table">
<tbody>
<tr>
<td class="col-md-4">
<h6><b>Methods</b></h6>
</td>
</tr>
<tr>
<td class="col-md-4">
<ul class="index-list">
<li>
<a href="#close" >close</a>
</li>
</ul>
</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>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="8" class="link-to-prism">src/app/Views/profile/help-dialog/help-dialog.component.ts:8</a></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">
<a name="close"></a>
<span class="name">
<span ><b>close</b></span>
<a href="#close"><span class="icon ion-ios-link"></span></a>
</span>
</td>
</tr>
<tr>
<td class="col-md-4">
<code>close()</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="11"
class="link-to-prism">src/app/Views/profile/help-dialog/help-dialog.component.ts:11</a></div>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-description">
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
</div>
</td>
</tr>
</tbody>
</table>
</section>
</div>
<div class="tab-pane fade tab-source-code" id="c-source">
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { Component, OnInit } from &#x27;@angular/core&#x27;;
@Component({
selector: &#x27;app-help-dialog&#x27;,
templateUrl: &#x27;./help-dialog.component.html&#x27;,
styleUrls: [&#x27;./help-dialog.component.scss&#x27;],
})
export class HelpDialogComponent {
constructor() {}
close() {}
}
</code></pre>
</div>
<div class="tab-pane fade " id="c-templateData">
<pre class="line-numbers"><code class="language-html">&lt;div class&#x3D;&quot;containeer&quot;&gt;
&lt;h1 mat-dialog-title&gt;How to add your Telegram account&lt;/h1&gt;
&lt;div mat-dialog-content class&#x3D;&quot;content&quot;&gt;
&lt;span
&gt;To get your UserId, you have to write &quot;/id&quot; or &quot;/auth&quot; to the bot on
Telegram. (&lt;a href&#x3D;&quot;https://t.me/projektaktienbot)&quot;
&gt;https://t.me/projektaktienbot)&lt;/a
&gt;)&lt;/span
&gt;
&lt;/div&gt;
&lt;div mat-dialog-actions class&#x3D;&quot;form-group footer-buttons&quot;&gt;
&lt;div class&#x3D;&quot;inner&quot;&gt;
&lt;button
id&#x3D;&quot;okButton&quot;
class&#x3D;&quot;btn btn-secondary btn-block&quot;
(click)&#x3D;&quot;close()&quot;
[mat-dialog-close]&#x3D;&quot;true&quot;
&gt;
Ok
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</code></pre>
</div>
<div class="tab-pane fade " id="c-styleData">
<p class="comment">
<code>./help-dialog.component.scss</code>
</p>
<pre class="line-numbers"><code class="language-scss">.footer-buttons {
width: 100%;
text-align: center;
}
.spacer {
flex-grow: 1;
width: 5%;
}
.inner {
display: inline-block;
width: 100%;
}
.content {
height: 80%;
}
</code></pre>
</div>
<div class="tab-pane fade " id="c-tree">
<div id="tree-container"></div>
<div class="tree-legend">
<div class="title">
<b>Legend</b>
</div>
<div>
<div class="color htmlelement"></div><span>Html element</span>
</div>
<div>
<div class="color component"></div><span>Component</span>
</div>
<div>
<div class="color directive"></div><span>Html element with directive</span>
</div>
</div>
</div>
</div>
<script src="../js/libs/vis.min.js"></script>
<script src="../js/libs/htmlparser.js"></script>
<script src="../js/libs/deep-iterator.js"></script>
<script>
var COMPONENT_TEMPLATE = '<div><div class="containeer"> <h1 mat-dialog-title>How to add your Telegram account</h1> <div mat-dialog-content class="content"> <span >To get your UserId, you have to write "/id" or "/auth" to the bot on Telegram. (<a href="https://t.me/projektaktienbot)" >https://t.me/projektaktienbot)</a >)</span > </div> <div mat-dialog-actions class="form-group footer-buttons"> <div class="inner"> <button id="okButton" class="btn btn-secondary btn-block" (click)="close()" [mat-dialog-close]="true" > Ok </button> </div> </div></div></div>'
var COMPONENTS = [{'name': 'AppComponent', 'selector': 'app-root'},{'name': 'BotSettingsComponent', 'selector': 'app-bot-settings'},{'name': 'ConfirmationDialogComponent', 'selector': 'app-confirmation-dialog'},{'name': 'DashboardComponent', 'selector': 'app-dashboard'},{'name': 'HeaderComponent', 'selector': 'app-header'},{'name': 'HelpDialogComponent', 'selector': 'app-help-dialog'},{'name': 'LoginComponent', 'selector': 'app-login'},{'name': 'ProfileComponent', 'selector': 'app-profile'},{'name': 'RegisterComponent', 'selector': 'app-register'},{'name': 'UserDialogComponent', 'selector': 'app-user-dialog'}];
var DIRECTIVES = [];
var ACTUAL_COMPONENT = {'name': 'HelpDialogComponent'};
</script>
<script src="../js/tree.js"></script>
</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>
<!-- END CONTENT -->
</div>
</div>
<label class="dark-mode-switch">
<input type="checkbox">
<span class="slider">
<svg class="slider-icon" viewBox="0 0 24 24" fill="none" height="20" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" width="20" xmlns="http://www.w3.org/2000/svg">
<path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"></path>
</svg>
</span>
</label>
<script>
var COMPODOC_CURRENT_PAGE_DEPTH = 1;
var COMPODOC_CURRENT_PAGE_CONTEXT = 'component';
var COMPODOC_CURRENT_PAGE_URL = 'HelpDialogComponent.html';
var MAX_SEARCH_RESULTS = 15;
</script>
<script src="../js/libs/custom-elements.min.js"></script>
<script src="../js/libs/lit-html.js"></script>
<script src="../js/menu-wc.js" defer></script>
<script nomodule src="../js/menu-wc_es5.js" defer></script>
<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/tabs.js"></script>
<script src="../js/menu.js"></script>
<script src="../js/libs/clipboard.min.js"></script>
<script src="../js/libs/prism.js"></script>
<script src="../js/sourceCode.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/search/search_index.js"></script>
<script src="../js/lazy-load-graphs.js"></script>
</body>
</html>

View File

@@ -0,0 +1,809 @@
<!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">
<link rel="stylesheet" href="../styles/dark.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 ion-ios-menu" 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> <compodoc-menu></compodoc-menu>
</div>
<div class="container-fluid main">
<div class="row main">
<div class="hidden-xs menu">
<compodoc-menu mode="normal"></compodoc-menu>
</div>
<!-- START CONTENT -->
<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="#info" role="tab" id="info-tab" data-toggle="tab" data-link="info">Info</a>
</li>
<li >
<a href="#source" role="tab" id="source-tab" data-toggle="tab" data-link="source">Source</a>
</li>
<li >
<a href="#templateData" role="tab" id="templateData-tab" data-toggle="tab" data-link="template">Template</a>
</li>
<li >
<a href="#styleData" role="tab" id="styleData-tab" data-toggle="tab" data-link="style">Styles</a>
</li>
<li >
<a href="#tree" role="tab" id="tree-tab" data-toggle="tab" data-link="dom-tree">DOM Tree</a>
</li>
</ul>
<div class="tab-content">
<div class="tab-pane fade active in" id="c-info"><p class="comment">
<h3>File</h3>
</p>
<p class="comment">
<code>src/app/Views/login/login.component.ts</code>
</p>
<p class="comment">
<h3>Implements</h3>
</p>
<p class="comment">
<code><a href="https://angular.io/api/core/OnInit" target="_blank" >OnInit</a></code>
</p>
<section>
<h3>Metadata</h3>
<table class="table table-sm table-hover metadata">
<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="index">Index</h3>
<table class="table table-sm table-bordered index-table">
<tbody>
<tr>
<td class="col-md-4">
<h6><b>Properties</b></h6>
</td>
</tr>
<tr>
<td class="col-md-4">
<ul class="index-list">
<li>
<a href="#accountName" >accountName</a>
</li>
<li>
<a href="#errorMessage" >errorMessage</a>
</li>
<li>
<a href="#form" >form</a>
</li>
<li>
<a href="#isLoggedIn" >isLoggedIn</a>
</li>
<li>
<a href="#isLoginFailed" >isLoginFailed</a>
</li>
</ul>
</td>
</tr>
<tr>
<td class="col-md-4">
<h6><b>Methods</b></h6>
</td>
</tr>
<tr>
<td class="col-md-4">
<ul class="index-list">
<li>
<a href="#ngOnInit" >ngOnInit</a>
</li>
<li>
<a href="#onSubmit" >onSubmit</a>
</li>
<li>
<a href="#reloadPage" >reloadPage</a>
</li>
</ul>
</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" target="_self">AuthService</a>, tokenStorage: <a href="../injectables/TokenStorageService.html" target="_self">TokenStorageService</a>, router: <a href="https://angular.io/api/router/Router" target="_blank">Router</a>)</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="19" class="link-to-prism">src/app/Views/login/login.component.ts:19</a></div>
</td>
</tr>
<tr>
<td class="col-md-4">
<div>
<b>Parameters :</b>
<table class="params">
<thead>
<tr>
<td>Name</td>
<td>Type</td>
<td>Optional</td>
</tr>
</thead>
<tbody>
<tr>
<td>authService</td>
<td>
<code><a href="../injectables/AuthService.html" target="_self" >AuthService</a></code>
</td>
<td>
No
</td>
</tr>
<tr>
<td>tokenStorage</td>
<td>
<code><a href="../injectables/TokenStorageService.html" target="_self" >TokenStorageService</a></code>
</td>
<td>
No
</td>
</tr>
<tr>
<td>router</td>
<td>
<code><a href="https://angular.io/api/router/Router" target="_blank" >Router</a></code>
</td>
<td>
No
</td>
</tr>
</tbody>
</table>
</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">
<a name="ngOnInit"></a>
<span class="name">
<span ><b>ngOnInit</b></span>
<a href="#ngOnInit"><span class="icon ion-ios-link"></span></a>
</span>
</td>
</tr>
<tr>
<td class="col-md-4">
<code>ngOnInit()</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="33"
class="link-to-prism">src/app/Views/login/login.component.ts:33</a></div>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-description">
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
</div>
</td>
</tr>
</tbody>
</table>
<table class="table table-sm table-bordered">
<tbody>
<tr>
<td class="col-md-4">
<a name="onSubmit"></a>
<span class="name">
<span ><b>onSubmit</b></span>
<a href="#onSubmit"><span class="icon ion-ios-link"></span></a>
</span>
</td>
</tr>
<tr>
<td class="col-md-4">
<code>onSubmit()</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="41"
class="link-to-prism">src/app/Views/login/login.component.ts:41</a></div>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-description">
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
</div>
</td>
</tr>
</tbody>
</table>
<table class="table table-sm table-bordered">
<tbody>
<tr>
<td class="col-md-4">
<a name="reloadPage"></a>
<span class="name">
<span ><b>reloadPage</b></span>
<a href="#reloadPage"><span class="icon ion-ios-link"></span></a>
</span>
</td>
</tr>
<tr>
<td class="col-md-4">
<code>reloadPage()</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="61"
class="link-to-prism">src/app/Views/login/login.component.ts:61</a></div>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-description">
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></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">
<a name="accountName"></a>
<span class="name">
<span ><b>accountName</b></span>
<a href="#accountName"><span class="icon ion-ios-link"></span></a>
</span>
</td>
</tr>
<tr>
<td class="col-md-4">
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
</td>
</tr>
<tr>
<td class="col-md-4">
<i>Default value : </i><code>&#x27;&#x27;</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="19" class="link-to-prism">src/app/Views/login/login.component.ts:19</a></div>
</td>
</tr>
</tbody>
</table>
<table class="table table-sm table-bordered">
<tbody>
<tr>
<td class="col-md-4">
<a name="errorMessage"></a>
<span class="name">
<span ><b>errorMessage</b></span>
<a href="#errorMessage"><span class="icon ion-ios-link"></span></a>
</span>
</td>
</tr>
<tr>
<td class="col-md-4">
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
</td>
</tr>
<tr>
<td class="col-md-4">
<i>Default value : </i><code>&#x27;&#x27;</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="18" class="link-to-prism">src/app/Views/login/login.component.ts:18</a></div>
</td>
</tr>
</tbody>
</table>
<table class="table table-sm table-bordered">
<tbody>
<tr>
<td class="col-md-4">
<a name="form"></a>
<span class="name">
<span ><b>form</b></span>
<a href="#form"><span class="icon ion-ios-link"></span></a>
</span>
</td>
</tr>
<tr>
<td class="col-md-4">
<i>Type : </i> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >any</a></code>
</td>
</tr>
<tr>
<td class="col-md-4">
<i>Default value : </i><code>{
email: null,
password: null,
}</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="12" class="link-to-prism">src/app/Views/login/login.component.ts:12</a></div>
</td>
</tr>
</tbody>
</table>
<table class="table table-sm table-bordered">
<tbody>
<tr>
<td class="col-md-4">
<a name="isLoggedIn"></a>
<span class="name">
<span ><b>isLoggedIn</b></span>
<a href="#isLoggedIn"><span class="icon ion-ios-link"></span></a>
</span>
</td>
</tr>
<tr>
<td class="col-md-4">
<i>Default value : </i><code>false</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="16" class="link-to-prism">src/app/Views/login/login.component.ts:16</a></div>
</td>
</tr>
</tbody>
</table>
<table class="table table-sm table-bordered">
<tbody>
<tr>
<td class="col-md-4">
<a name="isLoginFailed"></a>
<span class="name">
<span ><b>isLoginFailed</b></span>
<a href="#isLoginFailed"><span class="icon ion-ios-link"></span></a>
</span>
</td>
</tr>
<tr>
<td class="col-md-4">
<i>Default value : </i><code>false</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="17" class="link-to-prism">src/app/Views/login/login.component.ts:17</a></div>
</td>
</tr>
</tbody>
</table>
</section>
</div>
<div class="tab-pane fade tab-source-code" id="c-source">
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { Component, OnInit } from &#x27;@angular/core&#x27;;
import { AuthService } from &#x27;../../Services/auth.service&#x27;;
import { TokenStorageService } from &#x27;../../Services/token.service&#x27;;
import { Router } from &#x27;@angular/router&#x27;;
@Component({
selector: &#x27;app-login&#x27;,
templateUrl: &#x27;./login.component.html&#x27;,
styleUrls: [&#x27;./login.component.scss&#x27;],
})
export class LoginComponent implements OnInit {
form: any &#x3D; {
email: null,
password: null,
};
isLoggedIn &#x3D; false;
isLoginFailed &#x3D; false;
errorMessage &#x3D; &#x27;&#x27;;
accountName &#x3D; &#x27;&#x27;;
/**
* @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 &#x3D; true;
}
}
//onSubmit() saves valuable information in session storage
onSubmit(): void {
const { email, password } &#x3D; this.form;
this.authService.login(email, password).subscribe(
(data) &#x3D;&gt; {
this.tokenStorage.saveToken(data.data.token);
this.tokenStorage.saveUser(data.data);
this.isLoginFailed &#x3D; false;
this.isLoggedIn &#x3D; true;
this.accountName &#x3D; email;
this.router.navigate([&#x27;&#x27;]);
},
(err) &#x3D;&gt; {
this.errorMessage &#x3D; err.error.message;
this.isLoginFailed &#x3D; true;
}
);
}
//reloadPage() reloads the page
reloadPage(): void {
window.location.reload();
}
}
</code></pre>
</div>
<div class="tab-pane fade " id="c-templateData">
<pre class="line-numbers"><code class="language-html">&lt;div class&#x3D;&quot;col-md-4 login-container&quot;&gt;
&lt;div class&#x3D;&quot;card card-container no-border&quot;&gt;
&lt;img
id&#x3D;&quot;profile-img&quot;
src&#x3D;&quot;https://i.kym-cdn.com/entries/icons/mobile/000/029/959/Screen_Shot_2019-06-05_at_1.26.32_PM.jpg&quot;
class&#x3D;&quot;profile-img-card&quot;
/&gt;
&lt;form
*ngIf&#x3D;&quot;!isLoggedIn&quot;
name&#x3D;&quot;form&quot;
(ngSubmit)&#x3D;&quot;f.form.valid &amp;&amp; onSubmit()&quot;
#f&#x3D;&quot;ngForm&quot;
novalidate
class&#x3D;&quot;backgorund&quot;
&gt;
&lt;div class&#x3D;&quot;form-group&quot;&gt;
&lt;label for&#x3D;&quot;email&quot;&gt;Email&lt;/label&gt;
&lt;input
type&#x3D;&quot;email&quot;
class&#x3D;&quot;form-control&quot;
name&#x3D;&quot;email&quot;
[(ngModel)]&#x3D;&quot;form.email&quot;
required
email
#email&#x3D;&quot;ngModel&quot;
/&gt;
&lt;div class&#x3D;&quot;alert-danger&quot; *ngIf&#x3D;&quot;email.errors &amp;&amp; f.submitted&quot;&gt;
&lt;div *ngIf&#x3D;&quot;email.errors?.[&#x27;required&#x27;]&quot;&gt;Email is required&lt;/div&gt;
&lt;div *ngIf&#x3D;&quot;email.errors?.[&#x27;email&#x27;]&quot;&gt;
Email must be a valid email address
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class&#x3D;&quot;form-group&quot;&gt;
&lt;label for&#x3D;&quot;password&quot;&gt;Password&lt;/label&gt;
&lt;input
type&#x3D;&quot;password&quot;
class&#x3D;&quot;form-control&quot;
name&#x3D;&quot;password&quot;
[(ngModel)]&#x3D;&quot;form.password&quot;
required
minlength&#x3D;&quot;6&quot;
#password&#x3D;&quot;ngModel&quot;
/&gt;
&lt;div
class&#x3D;&quot;alert alert-danger&quot;
role&#x3D;&quot;alert&quot;
*ngIf&#x3D;&quot;password.errors &amp;&amp; f.submitted&quot;
&gt;
&lt;div *ngIf&#x3D;&quot;password.errors?.[&#x27;required&#x27;]&quot;&gt;Password is required&lt;/div&gt;
&lt;div *ngIf&#x3D;&quot;password.errors?.[&#x27;minlength&#x27;]&quot;&gt;
Password must be at least 6 characters
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class&#x3D;&quot;form-group&quot;&gt;
&lt;button class&#x3D;&quot;btn btn-primary btn-block&quot;&gt;Login&lt;/button&gt;
&lt;/div&gt;
&lt;div class&#x3D;&quot;form-group&quot;&gt;
&lt;div
class&#x3D;&quot;alert alert-danger&quot;
role&#x3D;&quot;alert&quot;
*ngIf&#x3D;&quot;f.submitted &amp;&amp; isLoginFailed&quot;
&gt;
Login failed: {{ errorMessage }}
&lt;/div&gt;
&lt;/div&gt;
&lt;/form&gt;
&lt;div class&#x3D;&quot;alert alert-success&quot; *ngIf&#x3D;&quot;isLoggedIn&quot;&gt;
Logged in as {{ accountName }}.
&lt;/div&gt;
&lt;button class&#x3D;&quot;btn btn-secondary btn-block&quot; routerLink&#x3D;&quot;/register&quot;&gt;
Sign up
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
</code></pre>
</div>
<div class="tab-pane fade " id="c-styleData">
<p class="comment">
<code>./login.component.scss</code>
</p>
<pre class="line-numbers"><code class="language-scss">.login-container {
margin: auto;
width: 60vh;
padding-top: 10vh;
}
.no-border {
border: none;
}
.backgorund {
background-color: #181a1b;
color: white;
}
</code></pre>
</div>
<div class="tab-pane fade " id="c-tree">
<div id="tree-container"></div>
<div class="tree-legend">
<div class="title">
<b>Legend</b>
</div>
<div>
<div class="color htmlelement"></div><span>Html element</span>
</div>
<div>
<div class="color component"></div><span>Component</span>
</div>
<div>
<div class="color directive"></div><span>Html element with directive</span>
</div>
</div>
</div>
</div>
<script src="../js/libs/vis.min.js"></script>
<script src="../js/libs/htmlparser.js"></script>
<script src="../js/libs/deep-iterator.js"></script>
<script>
var COMPONENT_TEMPLATE = '<div><div class="col-md-4 login-container"> <div class="card card-container no-border"> <img id="profile-img" src="https://i.kym-cdn.com/entries/icons/mobile/000/029/959/Screen_Shot_2019-06-05_at_1.26.32_PM.jpg" class="profile-img-card" /> <form *ngIf="!isLoggedIn" name="form" (ngSubmit)="f.form.valid && onSubmit()" #f="ngForm" novalidate class="backgorund" > <div class="form-group"> <label for="email">Email</label> <input type="email" class="form-control" name="email" [(ngModel)]="form.email" required email #email="ngModel" /> <div class="alert-danger" *ngIf="email.errors && f.submitted"> <div *ngIf="email.errors?.[\'required\']">Email is required</div> <div *ngIf="email.errors?.[\'email\']"> Email must be a valid email address </div> </div> </div> <div class="form-group"> <label for="password">Password</label> <input type="password" class="form-control" name="password" [(ngModel)]="form.password" required minlength="6" #password="ngModel" /> <div class="alert alert-danger" role="alert" *ngIf="password.errors && f.submitted" > <div *ngIf="password.errors?.[\'required\']">Password is required</div> <div *ngIf="password.errors?.[\'minlength\']"> Password must be at least 6 characters </div> </div> </div> <div class="form-group"> <button class="btn btn-primary btn-block">Login</button> </div> <div class="form-group"> <div class="alert alert-danger" role="alert" *ngIf="f.submitted && isLoginFailed" > Login failed: {{ errorMessage }} </div> </div> </form> <div class="alert alert-success" *ngIf="isLoggedIn"> Logged in as {{ accountName }}. </div> <button class="btn btn-secondary btn-block" routerLink="/register"> Sign up </button> </div></div></div>'
var COMPONENTS = [{'name': 'AppComponent', 'selector': 'app-root'},{'name': 'BotSettingsComponent', 'selector': 'app-bot-settings'},{'name': 'ConfirmationDialogComponent', 'selector': 'app-confirmation-dialog'},{'name': 'DashboardComponent', 'selector': 'app-dashboard'},{'name': 'HeaderComponent', 'selector': 'app-header'},{'name': 'HelpDialogComponent', 'selector': 'app-help-dialog'},{'name': 'LoginComponent', 'selector': 'app-login'},{'name': 'ProfileComponent', 'selector': 'app-profile'},{'name': 'RegisterComponent', 'selector': 'app-register'},{'name': 'UserDialogComponent', 'selector': 'app-user-dialog'}];
var DIRECTIVES = [];
var ACTUAL_COMPONENT = {'name': 'LoginComponent'};
</script>
<script src="../js/tree.js"></script>
</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>
<!-- END CONTENT -->
</div>
</div>
<label class="dark-mode-switch">
<input type="checkbox">
<span class="slider">
<svg class="slider-icon" viewBox="0 0 24 24" fill="none" height="20" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" width="20" xmlns="http://www.w3.org/2000/svg">
<path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"></path>
</svg>
</span>
</label>
<script>
var COMPODOC_CURRENT_PAGE_DEPTH = 1;
var COMPODOC_CURRENT_PAGE_CONTEXT = 'component';
var COMPODOC_CURRENT_PAGE_URL = 'LoginComponent.html';
var MAX_SEARCH_RESULTS = 15;
</script>
<script src="../js/libs/custom-elements.min.js"></script>
<script src="../js/libs/lit-html.js"></script>
<script src="../js/menu-wc.js" defer></script>
<script nomodule src="../js/menu-wc_es5.js" defer></script>
<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/tabs.js"></script>
<script src="../js/menu.js"></script>
<script src="../js/libs/clipboard.min.js"></script>
<script src="../js/libs/prism.js"></script>
<script src="../js/sourceCode.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/search/search_index.js"></script>
<script src="../js/lazy-load-graphs.js"></script>
</body>
</html>

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,682 @@
<!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">
<link rel="stylesheet" href="../styles/dark.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 ion-ios-menu" 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> <compodoc-menu></compodoc-menu>
</div>
<div class="container-fluid main">
<div class="row main">
<div class="hidden-xs menu">
<compodoc-menu mode="normal"></compodoc-menu>
</div>
<!-- START CONTENT -->
<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="#info" role="tab" id="info-tab" data-toggle="tab" data-link="info">Info</a>
</li>
<li >
<a href="#source" role="tab" id="source-tab" data-toggle="tab" data-link="source">Source</a>
</li>
<li >
<a href="#templateData" role="tab" id="templateData-tab" data-toggle="tab" data-link="template">Template</a>
</li>
<li >
<a href="#styleData" role="tab" id="styleData-tab" data-toggle="tab" data-link="style">Styles</a>
</li>
<li >
<a href="#tree" role="tab" id="tree-tab" data-toggle="tab" data-link="dom-tree">DOM Tree</a>
</li>
</ul>
<div class="tab-content">
<div class="tab-pane fade active in" id="c-info"><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 metadata">
<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="index">Index</h3>
<table class="table table-sm table-bordered index-table">
<tbody>
<tr>
<td class="col-md-4">
<h6><b>Properties</b></h6>
</td>
</tr>
<tr>
<td class="col-md-4">
<ul class="index-list">
<li>
<a href="#errorMessage" >errorMessage</a>
</li>
<li>
<a href="#form" >form</a>
</li>
<li>
<a href="#isSignUpFailed" >isSignUpFailed</a>
</li>
<li>
<a href="#isSuccessful" >isSuccessful</a>
</li>
</ul>
</td>
</tr>
<tr>
<td class="col-md-4">
<h6><b>Methods</b></h6>
</td>
</tr>
<tr>
<td class="col-md-4">
<ul class="index-list">
<li>
<a href="#onSubmit" >onSubmit</a>
</li>
</ul>
</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" target="_self">AuthService</a>, router: <a href="https://angular.io/api/router/Router" target="_blank">Router</a>)</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="18" class="link-to-prism">src/app/Views/register/register.component.ts:18</a></div>
</td>
</tr>
<tr>
<td class="col-md-4">
<div>
<b>Parameters :</b>
<table class="params">
<thead>
<tr>
<td>Name</td>
<td>Type</td>
<td>Optional</td>
</tr>
</thead>
<tbody>
<tr>
<td>authService</td>
<td>
<code><a href="../injectables/AuthService.html" target="_self" >AuthService</a></code>
</td>
<td>
No
</td>
</tr>
<tr>
<td>router</td>
<td>
<code><a href="https://angular.io/api/router/Router" target="_blank" >Router</a></code>
</td>
<td>
No
</td>
</tr>
</tbody>
</table>
</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">
<a name="onSubmit"></a>
<span class="name">
<span ><b>onSubmit</b></span>
<a href="#onSubmit"><span class="icon ion-ios-link"></span></a>
</span>
</td>
</tr>
<tr>
<td class="col-md-4">
<code>onSubmit()</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="25"
class="link-to-prism">src/app/Views/register/register.component.ts:25</a></div>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-description">
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></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">
<a name="errorMessage"></a>
<span class="name">
<span ><b>errorMessage</b></span>
<a href="#errorMessage"><span class="icon ion-ios-link"></span></a>
</span>
</td>
</tr>
<tr>
<td class="col-md-4">
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
</td>
</tr>
<tr>
<td class="col-md-4">
<i>Default value : </i><code>&#x27;&#x27;</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="18" class="link-to-prism">src/app/Views/register/register.component.ts:18</a></div>
</td>
</tr>
</tbody>
</table>
<table class="table table-sm table-bordered">
<tbody>
<tr>
<td class="col-md-4">
<a name="form"></a>
<span class="name">
<span ><b>form</b></span>
<a href="#form"><span class="icon ion-ios-link"></span></a>
</span>
</td>
</tr>
<tr>
<td class="col-md-4">
<i>Type : </i> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >any</a></code>
</td>
</tr>
<tr>
<td class="col-md-4">
<i>Default value : </i><code>{
email: null,
password: null,
username: null,
}</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="11" class="link-to-prism">src/app/Views/register/register.component.ts:11</a></div>
</td>
</tr>
</tbody>
</table>
<table class="table table-sm table-bordered">
<tbody>
<tr>
<td class="col-md-4">
<a name="isSignUpFailed"></a>
<span class="name">
<span ><b>isSignUpFailed</b></span>
<a href="#isSignUpFailed"><span class="icon ion-ios-link"></span></a>
</span>
</td>
</tr>
<tr>
<td class="col-md-4">
<i>Default value : </i><code>false</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="17" class="link-to-prism">src/app/Views/register/register.component.ts:17</a></div>
</td>
</tr>
</tbody>
</table>
<table class="table table-sm table-bordered">
<tbody>
<tr>
<td class="col-md-4">
<a name="isSuccessful"></a>
<span class="name">
<span ><b>isSuccessful</b></span>
<a href="#isSuccessful"><span class="icon ion-ios-link"></span></a>
</span>
</td>
</tr>
<tr>
<td class="col-md-4">
<i>Default value : </i><code>false</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="16" class="link-to-prism">src/app/Views/register/register.component.ts:16</a></div>
</td>
</tr>
</tbody>
</table>
</section>
</div>
<div class="tab-pane fade tab-source-code" id="c-source">
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { Component, OnInit } from &#x27;@angular/core&#x27;;
import { Router } from &#x27;@angular/router&#x27;;
import { AuthService } from &#x27;../../Services/auth.service&#x27;;
@Component({
selector: &#x27;app-register&#x27;,
templateUrl: &#x27;./register.component.html&#x27;,
styleUrls: [&#x27;./register.component.scss&#x27;],
})
export class RegisterComponent {
form: any &#x3D; {
email: null,
password: null,
username: null,
};
isSuccessful &#x3D; false;
isSignUpFailed &#x3D; false;
errorMessage &#x3D; &#x27;&#x27;;
/**
* @param {AuthService} privateauthService
* @param {Router} privaterouter
*/
constructor(private authService: AuthService, private router: Router) {}
onSubmit(): void {
const { email, username, password } &#x3D; this.form;
this.authService.register(email, username, password).subscribe(
(data) &#x3D;&gt; {
this.isSuccessful &#x3D; true;
this.isSignUpFailed &#x3D; false;
this.router.navigate([&#x27;/login&#x27;]);
},
(err) &#x3D;&gt; {
this.errorMessage &#x3D; err.error.message;
this.isSignUpFailed &#x3D; true;
}
);
}
}
</code></pre>
</div>
<div class="tab-pane fade " id="c-templateData">
<pre class="line-numbers"><code class="language-html">&lt;div class&#x3D;&quot;col-md-4 login-container&quot;&gt;
&lt;div class&#x3D;&quot;card card-container no-border&quot;&gt;
&lt;img
id&#x3D;&quot;profile-img&quot;
src&#x3D;&quot;https://i.kym-cdn.com/entries/icons/mobile/000/029/959/Screen_Shot_2019-06-05_at_1.26.32_PM.jpg&quot;
class&#x3D;&quot;profile-img-card&quot;
/&gt;
&lt;form
*ngIf&#x3D;&quot;!isSuccessful&quot;
name&#x3D;&quot;form&quot;
(ngSubmit)&#x3D;&quot;f.form.valid &amp;&amp; onSubmit()&quot;
#f&#x3D;&quot;ngForm&quot;
novalidate
class&#x3D;&quot;backgorund&quot;
&gt;
&lt;div class&#x3D;&quot;form-group&quot;&gt;
&lt;label for&#x3D;&quot;username&quot;&gt;Username&lt;/label&gt;
&lt;input
type&#x3D;&quot;text&quot;
class&#x3D;&quot;form-control&quot;
name&#x3D;&quot;username&quot;
[(ngModel)]&#x3D;&quot;form.username&quot;
required
minlength&#x3D;&quot;3&quot;
maxlength&#x3D;&quot;20&quot;
#username&#x3D;&quot;ngModel&quot;
/&gt;
&lt;div class&#x3D;&quot;alert-danger&quot; *ngIf&#x3D;&quot;username.errors &amp;&amp; f.submitted&quot;&gt;
&lt;div *ngIf&#x3D;&quot;username.errors?.[&#x27;required&#x27;]&quot;&gt;Username is required&lt;/div&gt;
&lt;div *ngIf&#x3D;&quot;username.errors?.[&#x27;minlength&#x27;]&quot;&gt;
Username must be at least 3 characters
&lt;/div&gt;
&lt;div *ngIf&#x3D;&quot;username.errors?.[&#x27;maxlength&#x27;]&quot;&gt;
Username must be at most 20 characters
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class&#x3D;&quot;form-group&quot;&gt;
&lt;label for&#x3D;&quot;email&quot;&gt;Email&lt;/label&gt;
&lt;input
type&#x3D;&quot;email&quot;
class&#x3D;&quot;form-control&quot;
name&#x3D;&quot;email&quot;
[(ngModel)]&#x3D;&quot;form.email&quot;
required
email
#email&#x3D;&quot;ngModel&quot;
/&gt;
&lt;div class&#x3D;&quot;alert-danger&quot; *ngIf&#x3D;&quot;email.errors &amp;&amp; f.submitted&quot;&gt;
&lt;div *ngIf&#x3D;&quot;email.errors?.[&#x27;required&#x27;]&quot;&gt;Email is required&lt;/div&gt;
&lt;div *ngIf&#x3D;&quot;email.errors?.[&#x27;email&#x27;]&quot;&gt;
Email must be a valid email address
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class&#x3D;&quot;form-group&quot;&gt;
&lt;label for&#x3D;&quot;password&quot;&gt;Password&lt;/label&gt;
&lt;input
type&#x3D;&quot;password&quot;
class&#x3D;&quot;form-control&quot;
name&#x3D;&quot;password&quot;
[(ngModel)]&#x3D;&quot;form.password&quot;
required
minlength&#x3D;&quot;6&quot;
#password&#x3D;&quot;ngModel&quot;
/&gt;
&lt;div class&#x3D;&quot;alert-danger&quot; *ngIf&#x3D;&quot;password.errors &amp;&amp; f.submitted&quot;&gt;
&lt;div *ngIf&#x3D;&quot;password.errors?.[&#x27;required&#x27;]&quot;&gt;Password is required&lt;/div&gt;
&lt;div *ngIf&#x3D;&quot;password.errors?.[&#x27;minlength&#x27;]&quot;&gt;
Password must be at least 6 characters
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class&#x3D;&quot;form-group&quot;&gt;
&lt;label for&#x3D;&quot;password&quot;&gt;Confirm Password&lt;/label&gt;
&lt;input
type&#x3D;&quot;password&quot;
class&#x3D;&quot;form-control&quot;
name&#x3D;&quot;passwordRepeat&quot;
[(ngModel)]&#x3D;&quot;form.password&quot;
required
minlength&#x3D;&quot;6&quot;
#passwordRepeat&#x3D;&quot;ngModel&quot;
/&gt;
&lt;div class&#x3D;&quot;alert-danger&quot; *ngIf&#x3D;&quot;password.errors &amp;&amp; f.submitted&quot;&gt;
&lt;div *ngIf&#x3D;&quot;passwordRepeat.errors?.[&#x27;required&#x27;]&quot;&gt;
Confirmation is required
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class&#x3D;&quot;form-group&quot;&gt;
&lt;button class&#x3D;&quot;btn btn-primary btn-block&quot;&gt;Sign Up&lt;/button&gt;
&lt;/div&gt;
&lt;div class&#x3D;&quot;alert alert-warning&quot; *ngIf&#x3D;&quot;f.submitted &amp;&amp; isSignUpFailed&quot;&gt;
Signup failed!&lt;br /&gt;{{ errorMessage }}
&lt;/div&gt;
&lt;/form&gt;
&lt;div class&#x3D;&quot;alert alert-success&quot; *ngIf&#x3D;&quot;isSuccessful&quot;&gt;
Your registration is successful!
&lt;/div&gt;
&lt;button class&#x3D;&quot;btn btn-secondary btn-block&quot; routerLink&#x3D;&quot;/login&quot;&gt;
Go Back
&lt;/button&gt;
&lt;/div&gt;
&lt;/div&gt;
</code></pre>
</div>
<div class="tab-pane fade " id="c-styleData">
<p class="comment">
<code>./register.component.scss</code>
</p>
<pre class="line-numbers"><code class="language-scss">.login-container {
margin: auto;
width: 60vh;
padding-top: 10vh;
}
.no-border {
border: none;
}
.backgorund {
background-color: #181a1b;
color: white;
}
</code></pre>
</div>
<div class="tab-pane fade " id="c-tree">
<div id="tree-container"></div>
<div class="tree-legend">
<div class="title">
<b>Legend</b>
</div>
<div>
<div class="color htmlelement"></div><span>Html element</span>
</div>
<div>
<div class="color component"></div><span>Component</span>
</div>
<div>
<div class="color directive"></div><span>Html element with directive</span>
</div>
</div>
</div>
</div>
<script src="../js/libs/vis.min.js"></script>
<script src="../js/libs/htmlparser.js"></script>
<script src="../js/libs/deep-iterator.js"></script>
<script>
var COMPONENT_TEMPLATE = '<div><div class="col-md-4 login-container"> <div class="card card-container no-border"> <img id="profile-img" src="https://i.kym-cdn.com/entries/icons/mobile/000/029/959/Screen_Shot_2019-06-05_at_1.26.32_PM.jpg" class="profile-img-card" /> <form *ngIf="!isSuccessful" name="form" (ngSubmit)="f.form.valid && onSubmit()" #f="ngForm" novalidate class="backgorund" > <div class="form-group"> <label for="username">Username</label> <input type="text" class="form-control" name="username" [(ngModel)]="form.username" required minlength="3" maxlength="20" #username="ngModel" /> <div class="alert-danger" *ngIf="username.errors && f.submitted"> <div *ngIf="username.errors?.[\'required\']">Username is required</div> <div *ngIf="username.errors?.[\'minlength\']"> Username must be at least 3 characters </div> <div *ngIf="username.errors?.[\'maxlength\']"> Username must be at most 20 characters </div> </div> </div> <div class="form-group"> <label for="email">Email</label> <input type="email" class="form-control" name="email" [(ngModel)]="form.email" required email #email="ngModel" /> <div class="alert-danger" *ngIf="email.errors && f.submitted"> <div *ngIf="email.errors?.[\'required\']">Email is required</div> <div *ngIf="email.errors?.[\'email\']"> Email must be a valid email address </div> </div> </div> <div class="form-group"> <label for="password">Password</label> <input type="password" class="form-control" name="password" [(ngModel)]="form.password" required minlength="6" #password="ngModel" /> <div class="alert-danger" *ngIf="password.errors && f.submitted"> <div *ngIf="password.errors?.[\'required\']">Password is required</div> <div *ngIf="password.errors?.[\'minlength\']"> Password must be at least 6 characters </div> </div> </div> <div class="form-group"> <label for="password">Confirm Password</label> <input type="password" class="form-control" name="passwordRepeat" [(ngModel)]="form.password" required minlength="6" #passwordRepeat="ngModel" /> <div class="alert-danger" *ngIf="password.errors && f.submitted"> <div *ngIf="passwordRepeat.errors?.[\'required\']"> Confirmation is required </div> </div> </div> <div class="form-group"> <button class="btn btn-primary btn-block">Sign Up</button> </div> <div class="alert alert-warning" *ngIf="f.submitted && isSignUpFailed"> Signup failed!<br />{{ errorMessage }} </div> </form> <div class="alert alert-success" *ngIf="isSuccessful"> Your registration is successful! </div> <button class="btn btn-secondary btn-block" routerLink="/login"> Go Back </button> </div></div></div>'
var COMPONENTS = [{'name': 'AppComponent', 'selector': 'app-root'},{'name': 'BotSettingsComponent', 'selector': 'app-bot-settings'},{'name': 'ConfirmationDialogComponent', 'selector': 'app-confirmation-dialog'},{'name': 'DashboardComponent', 'selector': 'app-dashboard'},{'name': 'HeaderComponent', 'selector': 'app-header'},{'name': 'HelpDialogComponent', 'selector': 'app-help-dialog'},{'name': 'LoginComponent', 'selector': 'app-login'},{'name': 'ProfileComponent', 'selector': 'app-profile'},{'name': 'RegisterComponent', 'selector': 'app-register'},{'name': 'UserDialogComponent', 'selector': 'app-user-dialog'}];
var DIRECTIVES = [];
var ACTUAL_COMPONENT = {'name': 'RegisterComponent'};
</script>
<script src="../js/tree.js"></script>
</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>
<!-- END CONTENT -->
</div>
</div>
<label class="dark-mode-switch">
<input type="checkbox">
<span class="slider">
<svg class="slider-icon" viewBox="0 0 24 24" fill="none" height="20" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" width="20" xmlns="http://www.w3.org/2000/svg">
<path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"></path>
</svg>
</span>
</label>
<script>
var COMPODOC_CURRENT_PAGE_DEPTH = 1;
var COMPODOC_CURRENT_PAGE_CONTEXT = 'component';
var COMPODOC_CURRENT_PAGE_URL = 'RegisterComponent.html';
var MAX_SEARCH_RESULTS = 15;
</script>
<script src="../js/libs/custom-elements.min.js"></script>
<script src="../js/libs/lit-html.js"></script>
<script src="../js/menu-wc.js" defer></script>
<script nomodule src="../js/menu-wc_es5.js" defer></script>
<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/tabs.js"></script>
<script src="../js/menu.js"></script>
<script src="../js/libs/clipboard.min.js"></script>
<script src="../js/libs/prism.js"></script>
<script src="../js/sourceCode.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/search/search_index.js"></script>
<script src="../js/lazy-load-graphs.js"></script>
</body>
</html>

View File

@@ -0,0 +1,645 @@
<!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">
<link rel="stylesheet" href="../styles/dark.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 ion-ios-menu" 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> <compodoc-menu></compodoc-menu>
</div>
<div class="container-fluid main">
<div class="row main">
<div class="hidden-xs menu">
<compodoc-menu mode="normal"></compodoc-menu>
</div>
<!-- START CONTENT -->
<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="#info" role="tab" id="info-tab" data-toggle="tab" data-link="info">Info</a>
</li>
<li >
<a href="#source" role="tab" id="source-tab" data-toggle="tab" data-link="source">Source</a>
</li>
<li >
<a href="#templateData" role="tab" id="templateData-tab" data-toggle="tab" data-link="template">Template</a>
</li>
<li >
<a href="#styleData" role="tab" id="styleData-tab" data-toggle="tab" data-link="style">Styles</a>
</li>
<li >
<a href="#tree" role="tab" id="tree-tab" data-toggle="tab" data-link="dom-tree">DOM Tree</a>
</li>
</ul>
<div class="tab-content">
<div class="tab-pane fade active in" id="c-info"><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 metadata">
<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="index">Index</h3>
<table class="table table-sm table-bordered index-table">
<tbody>
<tr>
<td class="col-md-4">
<h6><b>Properties</b></h6>
</td>
</tr>
<tr>
<td class="col-md-4">
<ul class="index-list">
<li>
<span class="modifier">Public</span>
<a href="#data" >data</a>
</li>
<li>
<span class="modifier">Public</span>
<a href="#dialog" >dialog</a>
</li>
<li>
<span class="modifier">Public</span>
<a href="#dialogRef" >dialogRef</a>
</li>
</ul>
</td>
</tr>
<tr>
<td class="col-md-4">
<h6><b>Methods</b></h6>
</td>
</tr>
<tr>
<td class="col-md-4">
<ul class="index-list">
<li>
<a href="#onSubmit" >onSubmit</a>
</li>
</ul>
</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: <a href="../injectables/DataService.html" target="_self">DataService</a>, dialog: MatDialog, dialogRef: <a href="../components/UserDialogComponent.html" target="_self">MatDialogRef&lt;UserDialogComponent&gt;</a>, data: <a href="../interfaces/TransactionData.html" target="_self">TransactionData</a>)</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="16" class="link-to-prism">src/app/Views/dashboard/user-dialog/user-dialog.component.ts:16</a></div>
</td>
</tr>
<tr>
<td class="col-md-4">
<div>
<b>Parameters :</b>
<table class="params">
<thead>
<tr>
<td>Name</td>
<td>Type</td>
<td>Optional</td>
</tr>
</thead>
<tbody>
<tr>
<td>dataService</td>
<td>
<code><a href="../injectables/DataService.html" target="_self" >DataService</a></code>
</td>
<td>
No
</td>
</tr>
<tr>
<td>dialog</td>
<td>
<code>MatDialog</code>
</td>
<td>
No
</td>
</tr>
<tr>
<td>dialogRef</td>
<td>
<code><a href="../components/UserDialogComponent.html" target="_self" >MatDialogRef&lt;UserDialogComponent&gt;</a></code>
</td>
<td>
No
</td>
</tr>
<tr>
<td>data</td>
<td>
<code><a href="../interfaces/TransactionData.html" target="_self" >TransactionData</a></code>
</td>
<td>
No
</td>
</tr>
</tbody>
</table>
</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">
<a name="onSubmit"></a>
<span class="name">
<span ><b>onSubmit</b></span>
<a href="#onSubmit"><span class="icon ion-ios-link"></span></a>
</span>
</td>
</tr>
<tr>
<td class="col-md-4">
<code>onSubmit()</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="24"
class="link-to-prism">src/app/Views/dashboard/user-dialog/user-dialog.component.ts:24</a></div>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-description">
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></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">
<a name="data"></a>
<span class="name">
<span class="modifier">Public</span>
<span ><b>data</b></span>
<a href="#data"><span class="icon ion-ios-link"></span></a>
</span>
</td>
</tr>
<tr>
<td class="col-md-4">
<i>Type : </i> <code><a href="../interfaces/TransactionData.html" target="_self" >TransactionData</a></code>
</td>
</tr>
<tr>
<td class="col-md-4">
<b>Decorators : </b>
<br />
<code>
@Inject(MAT_DIALOG_DATA)<br />
</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="21" class="link-to-prism">src/app/Views/dashboard/user-dialog/user-dialog.component.ts:21</a></div>
</td>
</tr>
</tbody>
</table>
<table class="table table-sm table-bordered">
<tbody>
<tr>
<td class="col-md-4">
<a name="dialog"></a>
<span class="name">
<span class="modifier">Public</span>
<span ><b>dialog</b></span>
<a href="#dialog"><span class="icon ion-ios-link"></span></a>
</span>
</td>
</tr>
<tr>
<td class="col-md-4">
<i>Type : </i> <code>MatDialog</code>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="19" class="link-to-prism">src/app/Views/dashboard/user-dialog/user-dialog.component.ts:19</a></div>
</td>
</tr>
</tbody>
</table>
<table class="table table-sm table-bordered">
<tbody>
<tr>
<td class="col-md-4">
<a name="dialogRef"></a>
<span class="name">
<span class="modifier">Public</span>
<span ><b>dialogRef</b></span>
<a href="#dialogRef"><span class="icon ion-ios-link"></span></a>
</span>
</td>
</tr>
<tr>
<td class="col-md-4">
<i>Type : </i> <code><a href="../components/UserDialogComponent.html" target="_self" >MatDialogRef&lt;UserDialogComponent&gt;</a></code>
</td>
</tr>
<tr>
<td class="col-md-4">
<div class="io-line">Defined in <a href="" data-line="20" class="link-to-prism">src/app/Views/dashboard/user-dialog/user-dialog.component.ts:20</a></div>
</td>
</tr>
</tbody>
</table>
</section>
</div>
<div class="tab-pane fade tab-source-code" id="c-source">
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { Component, Inject, OnInit } from &#x27;@angular/core&#x27;;
import {
MatDialog,
MatDialogRef,
MAT_DIALOG_DATA,
} from &#x27;@angular/material/dialog&#x27;;
import { DataService } from &#x27;src/app/Services/data.service&#x27;;
import { TransactionData } from &#x27;../dashboard.component&#x27;;
@Component({
selector: &#x27;app-user-dialog&#x27;,
templateUrl: &#x27;./user-dialog.component.html&#x27;,
styleUrls: [&#x27;./user-dialog.component.scss&#x27;],
})
export class UserDialogComponent {
constructor(
private dataService: DataService,
public dialog: MatDialog,
public dialogRef: MatDialogRef&lt;UserDialogComponent&gt;,
@Inject(MAT_DIALOG_DATA) public data: TransactionData
) {}
onSubmit() {
//TODO check that price is decimal
console.log(
this.dataService
.createTransaction(
this.data.comment,
this.data.isin,
this.data.time,
+this.data.count,
+this.data.price.toFixed(2)
)
.subscribe((data) &#x3D;&gt; {
console.log(data);
})
);
this.dialog.closeAll();
}
}
</code></pre>
</div>
<div class="tab-pane fade " id="c-templateData">
<pre class="line-numbers"><code class="language-html">&lt;h1 mat-dialog-title&gt;Neue Transaktion hinzufügen&lt;/h1&gt;
&lt;form
name&#x3D;&quot;form&quot;
(ngSubmit)&#x3D;&quot;f.form.valid &amp;&amp; onSubmit()&quot;
#f&#x3D;&quot;ngForm&quot;
novalidate
class&#x3D;&quot;backgorund&quot;
&gt;
&lt;div class&#x3D;&quot;form-group&quot;&gt;
&lt;label for&#x3D;&quot;comment&quot;&gt;Comment&lt;/label&gt;
&lt;input
type&#x3D;&quot;comment&quot;
class&#x3D;&quot;form-control&quot;
name&#x3D;&quot;comment&quot;
[(ngModel)]&#x3D;&quot;data.comment&quot;
required
comment
#comment&#x3D;&quot;ngModel&quot;
/&gt;
&lt;/div&gt;
&lt;div class&#x3D;&quot;form-group&quot;&gt;
&lt;label for&#x3D;&quot;isin&quot;&gt;isin&lt;/label&gt;
&lt;input
type&#x3D;&quot;isin&quot;
class&#x3D;&quot;form-control&quot;
name&#x3D;&quot;isin&quot;
[(ngModel)]&#x3D;&quot;data.isin&quot;
required
isin
#isin&#x3D;&quot;ngModel&quot;
/&gt;
&lt;/div&gt;
&lt;div class&#x3D;&quot;form-group&quot;&gt;
&lt;label for&#x3D;&quot;time&quot;&gt;Time&lt;/label&gt;
&lt;input
type&#x3D;&quot;date&quot;
class&#x3D;&quot;form-control&quot;
name&#x3D;&quot;time&quot;
[(ngModel)]&#x3D;&quot;data.time&quot;
required
time
#time&#x3D;&quot;ngModel&quot;
/&gt;
&lt;/div&gt;
&lt;div class&#x3D;&quot;form-group&quot;&gt;
&lt;label for&#x3D;&quot;count&quot;&gt;Count&lt;/label&gt;
&lt;input
type&#x3D;&quot;count&quot;
class&#x3D;&quot;form-control&quot;
name&#x3D;&quot;count&quot;
[(ngModel)]&#x3D;&quot;data.count&quot;
required
count
#count&#x3D;&quot;ngModel&quot;
/&gt;
&lt;/div&gt;
&lt;div class&#x3D;&quot;form-group&quot;&gt;
&lt;label for&#x3D;&quot;price&quot;&gt;Price&lt;/label&gt;
&lt;input
class&#x3D;&quot;form-control&quot;
name&#x3D;&quot;price&quot;
[(ngModel)]&#x3D;&quot;data.price&quot;
required
#price&#x3D;&quot;ngModel&quot;
type&#x3D;&quot;number&quot;
/&gt;
&lt;/div&gt;
&lt;div class&#x3D;&quot;form-group footer-buttons&quot;&gt;
&lt;button class&#x3D;&quot;btn btn-danger btn-block&quot; mat-dialog-close&gt;Cancel&lt;/button&gt;
&lt;span class&#x3D;&quot;spacer&quot;&gt;&lt;/span&gt;
&lt;button class&#x3D;&quot;btn btn-primary btn-block&quot;&gt;Confirm&lt;/button&gt;
&lt;/div&gt;
&lt;/form&gt;
</code></pre>
</div>
<div class="tab-pane fade " id="c-styleData">
<p class="comment">
<code>./user-dialog.component.scss</code>
</p>
<pre class="line-numbers"><code class="language-scss">.spacer {
flex-grow: 1;
width: 5%;
}
.footer-buttons {
display: flex;
width: 100%;
}
</code></pre>
</div>
<div class="tab-pane fade " id="c-tree">
<div id="tree-container"></div>
<div class="tree-legend">
<div class="title">
<b>Legend</b>
</div>
<div>
<div class="color htmlelement"></div><span>Html element</span>
</div>
<div>
<div class="color component"></div><span>Component</span>
</div>
<div>
<div class="color directive"></div><span>Html element with directive</span>
</div>
</div>
</div>
</div>
<script src="../js/libs/vis.min.js"></script>
<script src="../js/libs/htmlparser.js"></script>
<script src="../js/libs/deep-iterator.js"></script>
<script>
var COMPONENT_TEMPLATE = '<div><h1 mat-dialog-title>Neue Transaktion hinzufügen</h1><form name="form" (ngSubmit)="f.form.valid && onSubmit()" #f="ngForm" novalidate class="backgorund"> <div class="form-group"> <label for="comment">Comment</label> <input type="comment" class="form-control" name="comment" [(ngModel)]="data.comment" required comment #comment="ngModel" /> </div> <div class="form-group"> <label for="isin">isin</label> <input type="isin" class="form-control" name="isin" [(ngModel)]="data.isin" required isin #isin="ngModel" /> </div> <div class="form-group"> <label for="time">Time</label> <input type="date" class="form-control" name="time" [(ngModel)]="data.time" required time #time="ngModel" /> </div> <div class="form-group"> <label for="count">Count</label> <input type="count" class="form-control" name="count" [(ngModel)]="data.count" required count #count="ngModel" /> </div> <div class="form-group"> <label for="price">Price</label> <input class="form-control" name="price" [(ngModel)]="data.price" required #price="ngModel" type="number" /> </div> <div class="form-group footer-buttons"> <button class="btn btn-danger btn-block" mat-dialog-close>Cancel</button> <span class="spacer"></span> <button class="btn btn-primary btn-block">Confirm</button> </div></form></div>'
var COMPONENTS = [{'name': 'AppComponent', 'selector': 'app-root'},{'name': 'BotSettingsComponent', 'selector': 'app-bot-settings'},{'name': 'ConfirmationDialogComponent', 'selector': 'app-confirmation-dialog'},{'name': 'DashboardComponent', 'selector': 'app-dashboard'},{'name': 'HeaderComponent', 'selector': 'app-header'},{'name': 'HelpDialogComponent', 'selector': 'app-help-dialog'},{'name': 'LoginComponent', 'selector': 'app-login'},{'name': 'ProfileComponent', 'selector': 'app-profile'},{'name': 'RegisterComponent', 'selector': 'app-register'},{'name': 'UserDialogComponent', 'selector': 'app-user-dialog'}];
var DIRECTIVES = [];
var ACTUAL_COMPONENT = {'name': 'UserDialogComponent'};
</script>
<script src="../js/tree.js"></script>
</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>
<!-- END CONTENT -->
</div>
</div>
<label class="dark-mode-switch">
<input type="checkbox">
<span class="slider">
<svg class="slider-icon" viewBox="0 0 24 24" fill="none" height="20" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" width="20" xmlns="http://www.w3.org/2000/svg">
<path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"></path>
</svg>
</span>
</label>
<script>
var COMPODOC_CURRENT_PAGE_DEPTH = 1;
var COMPODOC_CURRENT_PAGE_CONTEXT = 'component';
var COMPODOC_CURRENT_PAGE_URL = 'UserDialogComponent.html';
var MAX_SEARCH_RESULTS = 15;
</script>
<script src="../js/libs/custom-elements.min.js"></script>
<script src="../js/libs/lit-html.js"></script>
<script src="../js/menu-wc.js" defer></script>
<script nomodule src="../js/menu-wc_es5.js" defer></script>
<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/tabs.js"></script>
<script src="../js/menu.js"></script>
<script src="../js/libs/clipboard.min.js"></script>
<script src="../js/libs/prism.js"></script>
<script src="../js/sourceCode.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/search/search_index.js"></script>
<script src="../js/lazy-load-graphs.js"></script>
</body>
</html>