Skip to content

Commit 4c8990d

Browse files
committed
bump version to v1.1.1
1 parent c937367 commit 4c8990d

File tree

17 files changed

+95
-136
lines changed

17 files changed

+95
-136
lines changed

main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function createWindow() {
4848

4949
if (isDevMode) {
5050
require('electron-reload')(__dirname, {
51-
electron: require(`${__dirname}/node_modules/electron`)
51+
electron: require(`${__dirname}/node_modules/electron`),
5252
});
5353
win.loadURL('http://localhost:4200');
5454
} else {

package-lock.json

Lines changed: 39 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@
4444
"build:mac-release": "npm run build:prod && npx electron-builder build --mac",
4545
"test": "npm run postinstall:web && ng test",
4646
"e2e": "npm run postinstall:web && ng e2e",
47-
"fix:tslint": "tslint --fix --project . && tslint --fix '{test,electron,src}/**/*.ts'",
47+
"tslint-check": "tslint-config-prettier-check ./tslint.json",
48+
"fix:tslint": "tslint --fix --project . && tslint --fix '{src}/**/*.ts'",
4849
"fix:prettier": "prettier --write '{*,**/*}.{js,ts,md,json,scss}'",
4950
"extract": "ngx-translate-extract -i ./src -o ./src/assets/i18n/{ru,en}.json",
5051
"env:prod": "rm -f src/environments/index.ts && cp src/environments/prod.ts src/environments/index.ts \n\n# Environment set to: prod\n\n",
@@ -143,6 +144,7 @@
143144
"ts-node": "~7.0.1",
144145
"tslint": "~5.12.0",
145146
"tslint-config-prettier": "^1.17.0",
147+
"tslint-plugin-prettier": "^2.0.1",
146148
"typescript": "~3.2.2",
147149
"wait-on": "^3.2.0"
148150
},

src/pipes/keys/keys.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export class KeysPipe implements PipeTransform {
1616
* Simple: *ngFor="let item of giftCards | keys"
1717
* With an object with objects: *ngFor="let item of (itemsObject | keys : 'date') | orderBy : ['-order']"
1818
*/
19-
transform(value, orderBy?: string) {
19+
transform(value: any[], orderBy?: string) {
2020
const keys = [];
2121
for (const key in value) {
2222
keys.push({
@@ -28,4 +28,3 @@ export class KeysPipe implements PipeTransform {
2828
return keys;
2929
}
3030
}
31-

src/pipes/order-by/order-by.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ export class OrderByPipe implements PipeTransform {
4444
!Array.isArray(config) ||
4545
(Array.isArray(config) && config.length == 1)
4646
) {
47-
let propertyToCheck: string = !Array.isArray(config) ? config : config[0];
48-
let desc = propertyToCheck.substr(0, 1) == '-';
47+
const propertyToCheck: string = !Array.isArray(config) ? config : config[0];
48+
const desc = propertyToCheck.substr(0, 1) == '-';
4949

5050
// Basic array
5151
if (
@@ -55,7 +55,7 @@ export class OrderByPipe implements PipeTransform {
5555
) {
5656
return !desc ? input.sort() : input.sort().reverse();
5757
} else {
58-
let property: string =
58+
const property: string =
5959
propertyToCheck.substr(0, 1) == '+' ||
6060
propertyToCheck.substr(0, 1) == '-'
6161
? propertyToCheck.substr(1)
@@ -71,13 +71,13 @@ export class OrderByPipe implements PipeTransform {
7171
// Loop over property of the array in order and sort
7272
return input.sort((a, b) => {
7373
for (let i = 0; i < config.length; i++) {
74-
let desc = config[i].substr(0, 1) == '-';
75-
let property =
74+
const desc = config[i].substr(0, 1) == '-';
75+
const property =
7676
config[i].substr(0, 1) == '+' || config[i].substr(0, 1) == '-'
7777
? config[i].substr(1)
7878
: config[i];
7979

80-
let comparison = !desc
80+
const comparison = !desc
8181
? OrderByPipe._orderByComparator(a[property], b[property])
8282
: -OrderByPipe._orderByComparator(a[property], b[property]);
8383

src/polyfills.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@
1818
* BROWSER POLYFILLS
1919
*/
2020

21-
/** IE9, IE10 and IE11 requires all of the following polyfills. **/
22-
import 'core-js/es6/array';
21+
/**
22+
* IE9, IE10 and IE11 requires all of the following polyfills.
23+
*/
24+
// import 'core-js/es6/array';
2325
import 'core-js/es6/date';
2426
import 'core-js/es6/function';
2527
import 'core-js/es6/map';
@@ -38,7 +40,7 @@ import 'core-js/es6/weak-map';
3840
* If the application will be indexed by Google Search, the following is required.
3941
* Googlebot uses a renderer based on Chrome 41.
4042
* https://developers.google.com/search/docs/guides/rendering
41-
**/
43+
*/
4244
import 'core-js/es6/array';
4345

4446
/** IE10 and IE11 requires the following for NgClass support on SVG elements */
@@ -51,7 +53,7 @@ import 'core-js/es6/reflect';
5153
* Web Animations `@angular/platform-browser/animations`
5254
* Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
5355
* Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
54-
**/
56+
*/
5557
// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
5658

5759
/**
@@ -79,4 +81,3 @@ import 'zone.js/dist/zone'; // Included with Angular CLI.
7981
* APPLICATION IMPORTS
8082
*/
8183
import 'core-js/es7/reflect';
82-
import 'zone.js/dist/zone';

src/providers/address/address.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,17 @@
66
*/
77

88
import {Injectable} from '@angular/core';
9+
910
// Providers
10-
import {Logger} from '@providers/logger/logger';
11-
import {TronProvider} from '@providers/tron/tron';
12-
import {ec} from 'elliptic';
11+
import { Logger } from '@providers/logger/logger';
12+
import { TronProvider } from '@providers/tron/tron';
13+
14+
import { ec } from 'elliptic';
15+
import { keccak256 } from 'js-sha3'
1316

1417
// ec plugin
1518
const secp256k1: any = new ec('secp256k1');
16-
const keccak256 = require('js-sha3').keccak256;
19+
1720

1821
// declare buffer
1922
declare const Buffer;

src/providers/config/storage/file-storage.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export class FileStorage {
2424
*
2525
* @param dir - local directory project
2626
* @param storeName - file name
27-
* */
27+
*/
2828
constructor(
2929
public dir: string,
3030
@Inject('storeName') storeName: string
@@ -57,7 +57,7 @@ export class FileStorage {
5757
* Set an item.
5858
*
5959
* @return void
60-
* */
60+
*/
6161
set(key: any, value?: any ): void {
6262
if (typeof(key) == 'object') {
6363
return this.store.set(key);

src/providers/external-link/external-link.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ export class ExternalLinkProvider {
2828
public open(url: string): void {
2929
const old = (window as any).handleOpenURL;
3030

31-
(window as any).handleOpenURL = url => {
31+
(window as any).handleOpenURL = (u: any) => {
3232
// Ignore external URLs
33-
this.logger.debug('Skip: ' + url);
33+
this.logger.debug('Skip: ' + u);
3434
};
3535

3636
this.electronProvider.openExternalLink(url);

src/providers/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ export { FilterProvider } from '@providers/filter/filter';
1818
export { LanguageProvider } from '@providers/language/language';
1919
export { Logger } from '@providers/logger/logger';
2020
export { RateProvider } from '@providers/rate/rate';
21-
export { ReplaceParametersProvider } from '@providers/replace-parameters/replace-parameters';
2221
export { TimeProvider } from '@providers/time/time';
2322
export { TronProvider } from '@providers/tron/tron';
2423
export { WalletProvider } from '@providers/wallet/wallet';

0 commit comments

Comments
 (0)