Skip to content

Commit c937367

Browse files
committed
bump version to v1.1.1 (v2)
1 parent 1409eb0 commit c937367

File tree

92 files changed

+994
-1180
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+994
-1180
lines changed

src/app/app.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { TestBed, async } from '@angular/core/testing';
1+
import { async, TestBed } from '@angular/core/testing';
22
import { RouterTestingModule } from '@angular/router/testing';
33
import { AppComponent } from './app.component';
44

src/app/app.component.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@
66
*/
77

88
import { Component, OnInit } from '@angular/core';
9-
import { Logger } from "@providers/logger/logger";
10-
import {Store} from "@ngrx/store";
11-
import * as os from "os";
9+
import {Store} from '@ngrx/store';
10+
import { Logger } from '@providers/logger/logger';
11+
import * as os from 'os';
1212

1313
// redux
14-
import {AppState} from "@redux/index";
15-
import * as SkinActions from "@redux/skins/skins.actions";
14+
import {AppState} from '@redux/index';
15+
import * as SkinActions from '@redux/skins/skins.actions';
1616

1717
// Providers
18-
import { AppProvider } from "@providers/app/app";
19-
import { ConfigProvider } from "@providers/config/config";
20-
import { TronProvider } from "@providers/tron/tron";
18+
import { AppProvider } from '@providers/app/app';
19+
import { ConfigProvider } from '@providers/config/config';
20+
import { TronProvider } from '@providers/tron/tron';
2121

2222
// As the handleOpenURL handler kicks in before the App is started,
2323
// declare the handler function at the top of app.component.ts (outside the class definition)
@@ -94,7 +94,7 @@ export class AppComponent implements OnInit {
9494
} catch (error) {
9595
message = 'Unknown error';
9696
}
97-
this.logger.error(message)
97+
this.logger.error(message);
9898
});
9999
}
100100

src/app/app.module.ts

Lines changed: 31 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -5,32 +5,32 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
import 'reflect-metadata';
98
import 'polyfills';
9+
import 'reflect-metadata';
1010

11-
import {BrowserModule, DomSanitizer} from '@angular/platform-browser';
1211
import {CUSTOM_ELEMENTS_SCHEMA, NgModule, NO_ERRORS_SCHEMA} from '@angular/core';
12+
import {BrowserModule, DomSanitizer} from '@angular/platform-browser';
1313

14-
import { AppRoutingModule } from './app-routing.module';
15-
import { AppComponent } from './app.component';
16-
import {SharedModule} from "@shared/shared.module";
17-
import {BrowserAnimationsModule} from "@angular/platform-browser/animations";
18-
import {NgxWebstorageModule} from "ngx-webstorage";
14+
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
1915
import {
2016
TranslateLoader,
2117
TranslateModule
2218
} from '@ngx-translate/core';
19+
import {SharedModule} from '@shared/shared.module';
20+
import {NgxWebstorageModule} from 'ngx-webstorage';
21+
import { AppRoutingModule } from './app-routing.module';
22+
import { AppComponent } from './app.component';
2323

24-
import {HttpClient, HttpClientModule} from "@angular/common/http";
25-
import {TranslateHttpLoader} from "@ngx-translate/http-loader";
26-
import {AuthGuardService} from "./auth-guard.service";
27-
import {appReducer, metaReducers} from "@redux/index";
28-
import {StoreModule} from "@ngrx/store";
24+
import {HttpClient, HttpClientModule} from '@angular/common/http';
25+
import {StoreModule} from '@ngrx/store';
2926
import { StoreDevtoolsModule } from '@ngrx/store-devtools';
27+
import {TranslateHttpLoader} from '@ngx-translate/http-loader';
28+
import {appReducer, metaReducers} from '@redux/index';
29+
import {AuthGuardService} from './auth-guard.service';
3030

31-
import {ProvidersModule} from "@providers/providers.module";
32-
import {MatIconRegistry} from "@angular/material";
33-
import env from "../environments";
31+
import {MatIconRegistry} from '@angular/material';
32+
import {ProvidersModule} from '@providers/providers.module';
33+
import env from '../environments';
3434

3535
export function httpLoaderFactory(http: HttpClient) {
3636
return new TranslateHttpLoader(http, 'assets/i18n/', '.json');
@@ -54,7 +54,7 @@ export function httpLoaderFactory(http: HttpClient) {
5454
NgxWebstorageModule.forRoot({
5555
prefix: 'tron-wallet',
5656
separator: '.',
57-
caseSensitive:true
57+
caseSensitive: true
5858
}),
5959
TranslateModule.forRoot({
6060
loader: {
@@ -72,40 +72,39 @@ export function httpLoaderFactory(http: HttpClient) {
7272
bootstrap: [AppComponent],
7373
schemas: [ CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA ],
7474
})
75-
export class AppModule
76-
{
75+
export class AppModule {
7776
constructor(
7877
private matIconRegistry: MatIconRegistry,
7978
private domSanitizer: DomSanitizer
8079
) {
8180
this.matIconRegistry.addSvgIcon(
82-
"c-refresh",
83-
this.domSanitizer.bypassSecurityTrustResourceUrl("assets/svg/mat-icon/refresh.svg")
81+
'c-refresh',
82+
this.domSanitizer.bypassSecurityTrustResourceUrl('assets/svg/mat-icon/refresh.svg')
8483
);
8584

8685
this.matIconRegistry.addSvgIcon(
87-
"trx-send",
88-
this.domSanitizer.bypassSecurityTrustResourceUrl("assets/svg/mat-icon/send.svg")
86+
'trx-send',
87+
this.domSanitizer.bypassSecurityTrustResourceUrl('assets/svg/mat-icon/send.svg')
8988
);
9089

9190
this.matIconRegistry.addSvgIcon(
92-
"trx-receive",
93-
this.domSanitizer.bypassSecurityTrustResourceUrl("assets/svg/mat-icon/receive.svg")
91+
'trx-receive',
92+
this.domSanitizer.bypassSecurityTrustResourceUrl('assets/svg/mat-icon/receive.svg')
9493
);
9594

9695
this.matIconRegistry.addSvgIcon(
97-
"trx-freeze",
98-
this.domSanitizer.bypassSecurityTrustResourceUrl("assets/svg/mat-icon/freeze.svg")
96+
'trx-freeze',
97+
this.domSanitizer.bypassSecurityTrustResourceUrl('assets/svg/mat-icon/freeze.svg')
9998
);
10099

101100
this.matIconRegistry.addSvgIcon(
102-
"trx-unfreeze",
103-
this.domSanitizer.bypassSecurityTrustResourceUrl("assets/svg/mat-icon/unfreeze.svg")
101+
'trx-unfreeze',
102+
this.domSanitizer.bypassSecurityTrustResourceUrl('assets/svg/mat-icon/unfreeze.svg')
104103
);
105104

106105
this.matIconRegistry.addSvgIcon(
107-
"trx-contract",
108-
this.domSanitizer.bypassSecurityTrustResourceUrl("assets/svg/mat-icon/contract.svg")
106+
'trx-contract',
107+
this.domSanitizer.bypassSecurityTrustResourceUrl('assets/svg/mat-icon/contract.svg')
109108
);
110109

111110
this.matIconRegistry.addSvgIcon(
@@ -114,8 +113,8 @@ export class AppModule
114113
);
115114

116115
this.matIconRegistry.addSvgIcon(
117-
"trx-copy",
118-
this.domSanitizer.bypassSecurityTrustResourceUrl("assets/svg/mat-icon/copy.svg")
116+
'trx-copy',
117+
this.domSanitizer.bypassSecurityTrustResourceUrl('assets/svg/mat-icon/copy.svg')
119118
);
120119

121120
this.matIconRegistry.addSvgIcon(

src/app/modules/dashboard/dashboard-routing.module.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
import {RouterModule, Routes} from "@angular/router";
9-
import {NgModule} from "@angular/core";
10-
import {DashboardPage} from "./pages/dashboard/dashboard.page";
8+
import {NgModule} from '@angular/core';
9+
import {RouterModule, Routes} from '@angular/router';
10+
import {DashboardPage} from './pages/dashboard/dashboard.page';
1111

1212
const dashboardRoutes: Routes = [{
1313
path: '',

src/app/modules/dashboard/dashboard.module.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
import {NgModule} from "@angular/core";
8+
import {NgModule} from '@angular/core';
99

10-
import { SharedModule } from "@shared/shared.module";
11-
import { ChartModule } from "angular-highcharts";
10+
import { SharedModule } from '@shared/shared.module';
11+
import { ChartModule } from 'angular-highcharts';
1212

1313
// Routing
14-
import { DashboardRoutingModule } from "./dashboard-routing.module";
14+
import { DashboardRoutingModule } from './dashboard-routing.module';
1515

1616
// Pages
17-
import { DashboardPage } from "./pages/dashboard/dashboard.page";
17+
import { DashboardPage } from './pages/dashboard/dashboard.page';
1818

1919
@NgModule({
2020
imports: [

src/app/modules/dashboard/pages/dashboard/dashboard.page.ts

Lines changed: 28 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,24 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
import {Component, OnInit} from "@angular/core";
9-
import { Chart } from "angular-highcharts";
10-
import { HttpClient } from "@angular/common/http";
11-
import env from "../../../../../environments";
12-
import * as _ from "lodash";
8+
import { HttpClient } from '@angular/common/http';
9+
import {Component, OnInit} from '@angular/core';
10+
import { Chart } from 'angular-highcharts';
11+
import * as _ from 'lodash';
12+
import env from '../../../../../environments';
1313

1414
@Component({
1515
selector: 'dashboard-page',
1616
templateUrl: './dashboard.page.html',
1717
styleUrls: ['./dashboard.page.scss'],
1818
})
19-
export class DashboardPage implements OnInit
20-
{
19+
export class DashboardPage implements OnInit {
2120
/**
2221
* Ad graphics for TRON
2322
*
2423
* @var Chart
2524
*/
26-
chart_trx:Chart;
25+
chart_trx: Chart;
2726

2827
/**
2928
* Options charts
@@ -38,14 +37,14 @@ export class DashboardPage implements OnInit
3837
* @var any
3938
*/
4039
public tronData: any = {
41-
rank: <number> 0,
42-
price:<number> 0,
43-
volume_24h: <number> 0,
44-
market_cap: <number> 0,
45-
circulating_supply: <number> 0
40+
rank: 0 as number,
41+
price: 0 as number,
42+
volume_24h: 0 as number,
43+
market_cap: 0 as number,
44+
circulating_supply: 0 as number
4645
};
4746

48-
public isLoadingChart: boolean = true;
47+
public isLoadingChart = true;
4948

5049
/**
5150
* Data to filters
@@ -68,7 +67,7 @@ export class DashboardPage implements OnInit
6867
*
6968
* @var string
7069
*/
71-
filterValue: string = '1Y';
70+
filterValue = '1Y';
7271

7372
/**
7473
* Create a new DashboardPage object
@@ -85,7 +84,7 @@ export class DashboardPage implements OnInit
8584
* @return void
8685
*/
8786
ngOnInit() {
88-
this.loading().then(() => {})
87+
this.loading().then(() => {});
8988
}
9089

9190
/**
@@ -103,16 +102,15 @@ export class DashboardPage implements OnInit
103102
*
104103
* @return Promise
105104
*/
106-
private async loadingTRXInfo(): Promise<any>
107-
{
105+
private async loadingTRXInfo(): Promise<any> {
108106
this.httpClient.get('https://api.coinmarketcap.com/v2/ticker/1958/').subscribe(tron => {
109107
this.tronData = {
110108
'rank': tron['data']['rank'],
111109
'price': tron['data']['quotes']['USD']['price'],
112110
'volume_24h': tron['data']['quotes']['USD']['volume_24h'],
113111
'market_cap': tron['data']['quotes']['USD']['market_cap'],
114112
'circulating_supply': tron['data']['circulating_supply'],
115-
}
113+
};
116114
});
117115
}
118116

@@ -122,20 +120,19 @@ export class DashboardPage implements OnInit
122120
* @param type - Filter type
123121
* @return void
124122
*/
125-
private _loadGraphData(type:string): void
126-
{
127-
let url = this.filterTimes.find(
123+
private _loadGraphData(type: string): void {
124+
const url = this.filterTimes.find(
128125
filter => filter.name == type
129126
);
130127

131128
this.httpClient.get(url['link'])
132129
.subscribe((result: any) => {
133-
if(_.isEmpty(result['Data'])) return;
130+
if (_.isEmpty(result['Data'])) { return; }
134131

135132
this.isLoadingChart = false;
136133
this.loadCharts((result['Data'])
137134
.map(data => {
138-
return [data.time * 1000, data.close]
135+
return [data.time * 1000, data.close];
139136
}));
140137
this.chart_trx = new Chart(this.highChartsOptions);
141138
});
@@ -147,7 +144,7 @@ export class DashboardPage implements OnInit
147144
* @var void
148145
*/
149146
setOptionSelected(type: string): void {
150-
if(type) this.filterValue = type;
147+
if (type) { this.filterValue = type; }
151148
this._loadGraphData(!type ? this.filterValue : type);
152149
}
153150

@@ -156,8 +153,7 @@ export class DashboardPage implements OnInit
156153
*
157154
* @var void
158155
*/
159-
private loadCharts(data: any): void
160-
{
156+
private loadCharts(data: any): void {
161157
this.highChartsOptions = {
162158
chart: {
163159
height: 300,
@@ -167,7 +163,7 @@ export class DashboardPage implements OnInit
167163
fontFamily: 'Roboto, self'
168164
}
169165
},
170-
series: [{ data: data }],
166+
series: [{ data }],
171167
colors: ['#1e88e5'],
172168
legend: {
173169
enabled: false
@@ -192,7 +188,7 @@ export class DashboardPage implements OnInit
192188
},
193189
yAxis: {
194190
labels: {
195-
enabled:false
191+
enabled: false
196192
},
197193
title: {
198194
text: null
@@ -203,7 +199,7 @@ export class DashboardPage implements OnInit
203199
credits: {
204200
enabled: false
205201
},
206-
plotOptions:<any> {
202+
plotOptions: {
207203
series: {
208204
fillColor: 'rgba(0, 0, 0, 0.35)'
209205
},
@@ -213,7 +209,7 @@ export class DashboardPage implements OnInit
213209
},
214210
enableMouseTracking: false
215211
}
216-
},
217-
}
212+
} as any,
213+
};
218214
}
219215
}

src/app/modules/help/help-routing.module.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
import {RouterModule, Routes} from "@angular/router";
9-
import {NgModule} from "@angular/core";
10-
import {HelpPage} from "./pages/help/help.page";
8+
import {NgModule} from '@angular/core';
9+
import {RouterModule, Routes} from '@angular/router';
10+
import {HelpPage} from './pages/help/help.page';
1111

1212
const helpRoutes: Routes = [
1313
{ path: '', component: HelpPage }

0 commit comments

Comments
 (0)