1046 lines
41 KiB
HTML
1046 lines
41 KiB
HTML
<!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
|
|
>
|
|
ProfileComponent</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/profile.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-profile</code></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="col-md-3">styleUrls</td>
|
|
<td class="col-md-9"><code>./profile.component.scss</code></td>
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
<td class="col-md-3">templateUrl</td>
|
|
<td class="col-md-9"><code>./profile.component.html</code></td>
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
</section>
|
|
|
|
<section>
|
|
<h3 id="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="#dialog" >dialog</a>
|
|
</li>
|
|
<li>
|
|
<a href="#form" >form</a>
|
|
</li>
|
|
<li>
|
|
<a href="#passwordFormControl" >passwordFormControl</a>
|
|
</li>
|
|
<li>
|
|
<a href="#telegramIdFormControl" >telegramIdFormControl</a>
|
|
</li>
|
|
<li>
|
|
<a href="#userId" >userId</a>
|
|
</li>
|
|
<li>
|
|
<a href="#userNameFormControl" >userNameFormControl</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="#openDialog" >openDialog</a>
|
|
</li>
|
|
<li>
|
|
<a href="#openHelp" >openHelp</a>
|
|
</li>
|
|
<li>
|
|
<a href="#updateUser" >updateUser</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(profileService: <a href="../injectables/ProfileService.html" target="_self">ProfileService</a>, dialog: MatDialog)</code>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <a href="" data-line="27" class="link-to-prism">src/app/Views/profile/profile.component.ts:27</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>profileService</td>
|
|
|
|
<td>
|
|
<code><a href="../injectables/ProfileService.html" target="_self" >ProfileService</a></code>
|
|
</td>
|
|
|
|
<td>
|
|
No
|
|
</td>
|
|
|
|
</tr>
|
|
<tr>
|
|
<td>dialog</td>
|
|
|
|
<td>
|
|
<code>MatDialog</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="34"
|
|
class="link-to-prism">src/app/Views/profile/profile.component.ts:34</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="45"
|
|
class="link-to-prism">src/app/Views/profile/profile.component.ts:45</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="openDialog"></a>
|
|
<span class="name">
|
|
<span ><b>openDialog</b></span>
|
|
<a href="#openDialog"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<code>openDialog(action: <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">
|
|
<div class="io-line">Defined in <a href="" data-line="63"
|
|
class="link-to-prism">src/app/Views/profile/profile.component.ts:63</a></div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
|
|
<div class="io-description">
|
|
<b>Parameters :</b>
|
|
|
|
<table class="params">
|
|
<thead>
|
|
<tr>
|
|
<td>Name</td>
|
|
<td>Type</td>
|
|
<td>Optional</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>action</td>
|
|
<td>
|
|
<code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
</td>
|
|
|
|
<td>
|
|
No
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div>
|
|
</div>
|
|
<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>
|
|
<div class="io-description">
|
|
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="openHelp"></a>
|
|
<span class="name">
|
|
<span ><b>openHelp</b></span>
|
|
<a href="#openHelp"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<code>openHelp()</code>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <a href="" data-line="80"
|
|
class="link-to-prism">src/app/Views/profile/profile.component.ts:80</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="updateUser"></a>
|
|
<span class="name">
|
|
<span ><b>updateUser</b></span>
|
|
<a href="#updateUser"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<code>updateUser()</code>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <a href="" data-line="54"
|
|
class="link-to-prism">src/app/Views/profile/profile.component.ts:54</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="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="31" class="link-to-prism">src/app/Views/profile/profile.component.ts:31</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>{
|
|
username: null,
|
|
email: 'example@web.com',
|
|
password: 'password',
|
|
}</code>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <a href="" data-line="23" class="link-to-prism">src/app/Views/profile/profile.component.ts:23</a></div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="passwordFormControl"></a>
|
|
<span class="name">
|
|
<span ><b>passwordFormControl</b></span>
|
|
<a href="#passwordFormControl"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Default value : </i><code>new FormControl('', [
|
|
Validators.required,
|
|
Validators.minLength(6),
|
|
])</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/Views/profile/profile.component.ts:15</a></div>
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
|
</table>
|
|
<table class="table table-sm table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<a name="telegramIdFormControl"></a>
|
|
<span class="name">
|
|
<span ><b>telegramIdFormControl</b></span>
|
|
<a href="#telegramIdFormControl"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Default value : </i><code>new FormControl('', [Validators.required])</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/profile/profile.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="userId"></a>
|
|
<span class="name">
|
|
<span ><b>userId</b></span>
|
|
<a href="#userId"><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>''</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/profile/profile.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="userNameFormControl"></a>
|
|
<span class="name">
|
|
<span ><b>userNameFormControl</b></span>
|
|
<a href="#userNameFormControl"><span class="icon ion-ios-link"></span></a>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<i>Default value : </i><code>new FormControl('', [Validators.required])</code>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="col-md-4">
|
|
<div class="io-line">Defined in <a href="" data-line="14" class="link-to-prism">src/app/Views/profile/profile.component.ts:14</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 '@angular/core';
|
|
import { FormControl, Validators } from '@angular/forms';
|
|
import { MatDialog } from '@angular/material/dialog';
|
|
import { ProfileService } from 'src/app/Services/profile.service';
|
|
import { ConfirmationDialogComponent } from './confirmation-dialog/confirmation-dialog.component';
|
|
import { HelpDialogComponent } from './help-dialog/help-dialog.component';
|
|
|
|
@Component({
|
|
selector: 'app-profile',
|
|
templateUrl: './profile.component.html',
|
|
styleUrls: ['./profile.component.scss'],
|
|
})
|
|
export class ProfileComponent implements OnInit {
|
|
userNameFormControl = new FormControl('', [Validators.required]);
|
|
passwordFormControl = new FormControl('', [
|
|
Validators.required,
|
|
Validators.minLength(6),
|
|
]);
|
|
telegramIdFormControl = new FormControl('', [Validators.required]);
|
|
|
|
userId = '';
|
|
|
|
form: any = {
|
|
username: null,
|
|
email: 'example@web.com',
|
|
password: 'password',
|
|
};
|
|
|
|
constructor(
|
|
private profileService: ProfileService,
|
|
public dialog: MatDialog
|
|
) {}
|
|
|
|
ngOnInit(): void {
|
|
this.profileService.getUserData().subscribe((result) => {
|
|
console.log(result);
|
|
result = JSON.parse(result);
|
|
this.form.username = result.data.username;
|
|
this.form.password = result.data.password;
|
|
this.form.email = result.data.email;
|
|
this.userId = result.data.telegram_user_id;
|
|
});
|
|
}
|
|
|
|
onSubmit() {
|
|
if (this.userId != '') {
|
|
console.log(this.userId);
|
|
this.profileService.addTelegramId(this.userId).subscribe((result) => {
|
|
console.log(result);
|
|
});
|
|
}
|
|
}
|
|
|
|
updateUser() {
|
|
const { username, email, password } = this.form;
|
|
this.profileService
|
|
.updateProfile(this.form.username, this.form.password)
|
|
.subscribe((result) => {
|
|
console.log(result);
|
|
});
|
|
}
|
|
|
|
openDialog(action: string) {
|
|
const dialogRef = this.dialog.open(ConfirmationDialogComponent, {
|
|
width: '50vw',
|
|
height: '20vh',
|
|
});
|
|
|
|
dialogRef.afterClosed().subscribe((result) => {
|
|
if (result === true) {
|
|
if (action === 'addTelegram') {
|
|
this.onSubmit();
|
|
} else if (action === 'updateUser') {
|
|
this.updateUser();
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
openHelp() {
|
|
const dialogRef = this.dialog.open(HelpDialogComponent, {
|
|
width: '50vw',
|
|
height: '20vh',
|
|
});
|
|
}
|
|
}
|
|
</code></pre>
|
|
</div>
|
|
|
|
<div class="tab-pane fade " id="c-templateData">
|
|
<pre class="line-numbers"><code class="language-html"><mat-grid-list cols="2" rowHeight="45%">
|
|
<mat-grid-tile colspan="1" rowspan="2">
|
|
<mat-card class="card placeholder">
|
|
<mat-card-title class="card-title">Profile Information</mat-card-title>
|
|
<mat-card-content>
|
|
<form
|
|
class="example-form form"
|
|
name="form"
|
|
(ngSubmit)="f.form.valid && openDialog('updateUser')"
|
|
#f="ngForm"
|
|
novalidate
|
|
>
|
|
<mat-form-field class="example-full-width" appearance="fill">
|
|
<mat-label>Username</mat-label>
|
|
<input
|
|
type="text"
|
|
name="username"
|
|
matInput
|
|
[formControl]="userNameFormControl"
|
|
placeholder="Ex. patrick-bateman"
|
|
[(ngModel)]="form.username"
|
|
#username
|
|
/>
|
|
<mat-error *ngIf="userNameFormControl.hasError('required')">
|
|
Username is <strong>required</strong>
|
|
</mat-error>
|
|
</mat-form-field>
|
|
<mat-form-field class="example-full-width" appearance="fill">
|
|
<mat-label>{{ form.email }}</mat-label>
|
|
<input
|
|
type="email"
|
|
matInput
|
|
name="email"
|
|
disabled
|
|
placeholder="Ex. patrickbateman@example.com"
|
|
/>
|
|
</mat-form-field>
|
|
<mat-form-field class="example-full-width" appearance="fill">
|
|
<mat-label>Password</mat-label>
|
|
<input
|
|
type="password"
|
|
matInput
|
|
name="password"
|
|
[formControl]="passwordFormControl"
|
|
placeholder="Password"
|
|
minlength="6"
|
|
[(ngModel)]="form.password"
|
|
#password
|
|
/>
|
|
<mat-error
|
|
*ngIf="
|
|
passwordFormControl.hasError('minlength') &&
|
|
!passwordFormControl.hasError('required')
|
|
"
|
|
>
|
|
Please enter a valid password
|
|
</mat-error>
|
|
<mat-error *ngIf="passwordFormControl.hasError('required')">
|
|
Password is <strong>required</strong>
|
|
</mat-error>
|
|
</mat-form-field>
|
|
<mat-form-field class="example-full-width" appearance="fill">
|
|
<mat-label>Repeat Password</mat-label>
|
|
<input
|
|
type="password"
|
|
matInput
|
|
[formControl]="passwordFormControl"
|
|
placeholder="Ex. pat@example.com"
|
|
/>
|
|
<mat-error
|
|
*ngIf="
|
|
passwordFormControl.hasError('minLength') &&
|
|
!passwordFormControl.hasError('required')
|
|
"
|
|
>
|
|
Please enter a valid password
|
|
</mat-error>
|
|
<mat-error *ngIf="passwordFormControl.hasError('required')">
|
|
Password is <strong>required</strong>
|
|
</mat-error>
|
|
</mat-form-field>
|
|
<div class="form-group footer-buttons">
|
|
<button
|
|
class="btn btn-primary btn-block"
|
|
[disabled]="
|
|
passwordFormControl.hasError('required') ||
|
|
passwordFormControl.hasError('minLength') ||
|
|
userNameFormControl.hasError('required')
|
|
"
|
|
>
|
|
Update
|
|
</button>
|
|
</div>
|
|
</form>
|
|
</mat-card-content>
|
|
</mat-card>
|
|
</mat-grid-tile>
|
|
<mat-grid-tile colspan="1" rowspan="2">
|
|
<mat-card class="card placeholder">
|
|
<mat-card-title class="card-title">
|
|
<span>Connect Telegram Account</span>
|
|
</mat-card-title>
|
|
<mat-card-content>
|
|
<form
|
|
name="form"
|
|
(ngSubmit)="f.form.valid && openDialog('addTelegram')"
|
|
#f="ngForm"
|
|
novalidate
|
|
class="backgorund form"
|
|
>
|
|
<mat-form-field class="example-full-width" appearance="fill">
|
|
<mat-label>Telegram UserId</mat-label>
|
|
<input
|
|
type="text"
|
|
matInput
|
|
[formControl]="telegramIdFormControl"
|
|
[(ngModel)]="userId"
|
|
required
|
|
#telegramId
|
|
/>
|
|
<mat-error *ngIf="telegramIdFormControl.hasError('required')">
|
|
Id is <strong>required</strong>
|
|
</mat-error>
|
|
</mat-form-field>
|
|
<div class="form-group footer-buttons">
|
|
<button
|
|
class="btn btn-primary btn-block"
|
|
[disabled]="telegramIdFormControl.hasError('required')"
|
|
>
|
|
Add
|
|
</button>
|
|
</div>
|
|
</form>
|
|
<button class="btn btn-secondary btn-block" (click)="openHelp()">
|
|
Help
|
|
</button>
|
|
</mat-card-content>
|
|
</mat-card>
|
|
</mat-grid-tile>
|
|
</mat-grid-list>
|
|
</code></pre>
|
|
</div>
|
|
|
|
<div class="tab-pane fade " id="c-styleData">
|
|
<p class="comment">
|
|
<code>./profile.component.scss</code>
|
|
</p>
|
|
<pre class="line-numbers"><code class="language-scss">.form {
|
|
width: 100%;
|
|
}
|
|
|
|
.card {
|
|
width: 90%;
|
|
height: 90%;
|
|
margin: 5%;
|
|
}
|
|
|
|
.example-full-width {
|
|
width: 100%;
|
|
}
|
|
|
|
.card-title {
|
|
padding-bottom: 2.5vh;
|
|
}
|
|
|
|
mat-grid {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.placeholder {
|
|
height: 95%;
|
|
}
|
|
|
|
.placeholderRHS {
|
|
height: 90%;
|
|
}
|
|
|
|
.cron-content {
|
|
height: 70%;
|
|
overflow: auto;
|
|
}
|
|
</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-grid-list cols="2" rowHeight="45%"> <mat-grid-tile colspan="1" rowspan="2"> <mat-card class="card placeholder"> <mat-card-title class="card-title">Profile Information</mat-card-title> <mat-card-content> <form class="example-form form" name="form" (ngSubmit)="f.form.valid && openDialog(\'updateUser\')" #f="ngForm" novalidate > <mat-form-field class="example-full-width" appearance="fill"> <mat-label>Username</mat-label> <input type="text" name="username" matInput [formControl]="userNameFormControl" placeholder="Ex. patrick-bateman" [(ngModel)]="form.username" #username /> <mat-error *ngIf="userNameFormControl.hasError(\'required\')"> Username is <strong>required</strong> </mat-error> </mat-form-field> <mat-form-field class="example-full-width" appearance="fill"> <mat-label>{{ form.email }}</mat-label> <input type="email" matInput name="email" disabled placeholder="Ex. patrickbateman@example.com" /> </mat-form-field> <mat-form-field class="example-full-width" appearance="fill"> <mat-label>Password</mat-label> <input type="password" matInput name="password" [formControl]="passwordFormControl" placeholder="Password" minlength="6" [(ngModel)]="form.password" #password /> <mat-error *ngIf=" passwordFormControl.hasError(\'minlength\') && !passwordFormControl.hasError(\'required\') " > Please enter a valid password </mat-error> <mat-error *ngIf="passwordFormControl.hasError(\'required\')"> Password is <strong>required</strong> </mat-error> </mat-form-field> <mat-form-field class="example-full-width" appearance="fill"> <mat-label>Repeat Password</mat-label> <input type="password" matInput [formControl]="passwordFormControl" placeholder="Ex. pat@example.com" /> <mat-error *ngIf=" passwordFormControl.hasError(\'minLength\') && !passwordFormControl.hasError(\'required\') " > Please enter a valid password </mat-error> <mat-error *ngIf="passwordFormControl.hasError(\'required\')"> Password is <strong>required</strong> </mat-error> </mat-form-field> <div class="form-group footer-buttons"> <button class="btn btn-primary btn-block" [disabled]=" passwordFormControl.hasError(\'required\') || passwordFormControl.hasError(\'minLength\') || userNameFormControl.hasError(\'required\') " > Update </button> </div> </form> </mat-card-content> </mat-card> </mat-grid-tile> <mat-grid-tile colspan="1" rowspan="2"> <mat-card class="card placeholder"> <mat-card-title class="card-title"> <span>Connect Telegram Account</span> </mat-card-title> <mat-card-content> <form name="form" (ngSubmit)="f.form.valid && openDialog(\'addTelegram\')" #f="ngForm" novalidate class="backgorund form" > <mat-form-field class="example-full-width" appearance="fill"> <mat-label>Telegram UserId</mat-label> <input type="text" matInput [formControl]="telegramIdFormControl" [(ngModel)]="userId" required #telegramId /> <mat-error *ngIf="telegramIdFormControl.hasError(\'required\')"> Id is <strong>required</strong> </mat-error> </mat-form-field> <div class="form-group footer-buttons"> <button class="btn btn-primary btn-block" [disabled]="telegramIdFormControl.hasError(\'required\')" > Add </button> </div> </form> <button class="btn btn-secondary btn-block" (click)="openHelp()"> Help </button> </mat-card-content> </mat-card> </mat-grid-tile></mat-grid-list></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': 'ProfileComponent'};
|
|
</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 = 'ProfileComponent.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>
|