1
0
Fork 0
forked from lthn/blockchain

Compiled html (#38)

* test details & close btn

* compiled
This commit is contained in:
zetov 2019-07-19 21:09:20 +03:00 committed by cryptozoidberg
parent 6c70ce110f
commit 5f3406f4f8
17 changed files with 243 additions and 91 deletions

View file

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 23.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 34 34" style="enable-background:new 0 0 34 34;" xml:space="preserve">
<style type="text/css">
.st0{fill:#FFFFFF;}
</style>
<polygon class="st0" points="31.9,4.9 29.1,2.1 17,14.2 4.9,2.1 2.1,4.9 14.2,17 2.1,29.1 4.9,31.9 17,19.8 29.1,31.9 31.9,29.1
19.8,17 "/>
</svg>

After

Width:  |  Height:  |  Size: 545 B

View file

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 23.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 34 34" style="enable-background:new 0 0 34 34;" xml:space="preserve">
<style type="text/css">
.st0{fill:#FFFFFF;}
</style>
<g>
<path class="st0" d="M15.6,3C14.8,1.2,13,0,11,0S7.2,1.2,6.4,3H0v4h6.4C7.2,8.8,9,10,11,10s3.8-1.2,4.6-3H34V3H15.6z M11,6
c-0.6,0-1-0.4-1-1s0.4-1,1-1s1,0.4,1,1S11.6,6,11,6z"/>
<path class="st0" d="M23,12c-2,0-3.8,1.2-4.6,3H0v4h18.4c0.8,1.8,2.5,3,4.6,3s3.8-1.2,4.6-3H34v-4h-6.4C26.8,13.2,25,12,23,12z
M23,18c-0.6,0-1-0.4-1-1s0.4-1,1-1s1,0.4,1,1S23.6,18,23,18z"/>
<path class="st0" d="M11,24c-2,0-3.8,1.2-4.6,3H0v4h6.4c0.8,1.8,2.5,3,4.6,3s3.8-1.2,4.6-3H34v-4H15.6C14.8,25.2,13,24,11,24z
M11,30c-0.6,0-1-0.4-1-1s0.4-1,1-1s1,0.4,1,1S11.6,30,11,30z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 971 B

View file

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 23.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 34 34" style="enable-background:new 0 0 34 34;" xml:space="preserve">
<style type="text/css">
.st0{fill:#FFFFFF;}
</style>
<polygon class="st0" points="31.9,4.9 29.1,2.1 17,14.2 4.9,2.1 2.1,4.9 14.2,17 2.1,29.1 4.9,31.9 17,19.8 29.1,31.9 31.9,29.1
19.8,17 "/>
</svg>

After

Width:  |  Height:  |  Size: 545 B

View file

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 23.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 34 34" style="enable-background:new 0 0 34 34;" xml:space="preserve">
<style type="text/css">
.st0{fill:#FFFFFF;}
</style>
<g>
<path class="st0" d="M15.6,3C14.8,1.2,13,0,11,0S7.2,1.2,6.4,3H0v4h6.4C7.2,8.8,9,10,11,10s3.8-1.2,4.6-3H34V3H15.6z M11,6
c-0.6,0-1-0.4-1-1s0.4-1,1-1s1,0.4,1,1S11.6,6,11,6z"/>
<path class="st0" d="M23,12c-2,0-3.8,1.2-4.6,3H0v4h18.4c0.8,1.8,2.5,3,4.6,3s3.8-1.2,4.6-3H34v-4h-6.4C26.8,13.2,25,12,23,12z
M23,18c-0.6,0-1-0.4-1-1s0.4-1,1-1s1,0.4,1,1S23.6,18,23,18z"/>
<path class="st0" d="M11,24c-2,0-3.8,1.2-4.6,3H0v4h6.4c0.8,1.8,2.5,3,4.6,3s3.8-1.2,4.6-3H34v-4H15.6C14.8,25.2,13,24,11,24z
M11,30c-0.6,0-1-0.4-1-1s0.4-1,1-1s1,0.4,1,1S11.6,30,11,30z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 971 B

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -5800,8 +5800,8 @@ __webpack_require__.r(__webpack_exports__);
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(/*! /Users/apple/Documents/zano/src/gui/qt-daemon/html_source/src/polyfills.ts */"./src/polyfills.ts");
module.exports = __webpack_require__(/*! /Users/apple/Documents/zano/src/gui/qt-daemon/html_source/node_modules/@angular-devkit/build-angular/src/angular-cli-files/models/jit-polyfills.js */"./node_modules/@angular-devkit/build-angular/src/angular-cli-files/models/jit-polyfills.js");
__webpack_require__(/*! D:\Projects\zano\src\gui\qt-daemon\html_source\src\polyfills.ts */"./src/polyfills.ts");
module.exports = __webpack_require__(/*! D:\Projects\zano\src\gui\qt-daemon\html_source\node_modules\@angular-devkit\build-angular\src\angular-cli-files\models\jit-polyfills.js */"./node_modules/@angular-devkit/build-angular/src/angular-cli-files/models/jit-polyfills.js");
/***/ })

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -16,7 +16,9 @@
<div>
<button [routerLink]="['/details']" routerLinkActive="active">
<i class="icon details"></i>
<span>{{ 'WALLET.DETAILS' | translate }}</span>
</button>
<button type="button" (click)="closeWallet()">
<i class="icon close-wallet"></i>
</button>
</div>
</div>

View file

@ -53,13 +53,19 @@
mask: url(../../assets/icons/account.svg) no-repeat center;
}
&.details {
mask: url(../../assets/icons/details.svg) no-repeat center;
}
&.lock {
mask: url(../../assets/icons/lock.svg) no-repeat center;
}
&.details {
mask: url(../../assets/icons/details-settings.svg) no-repeat center;
margin-right: 0;
}
&.close-wallet {
mask: url(../../assets/icons/close-wallet.svg) no-repeat center;
margin-right: 0;
}
}
}

View file

@ -154,6 +154,27 @@ export class WalletComponent implements OnInit, OnDestroy {
this.backend.openUrlInBrowser(link);
}
closeWallet() {
this.backend.closeWallet(this.variablesService.currentWallet.wallet_id, () => {
for (let i = this.variablesService.wallets.length - 1; i >= 0; i--) {
if (this.variablesService.wallets[i].wallet_id === this.variablesService.currentWallet.wallet_id) {
this.variablesService.wallets.splice(i, 1);
}
}
this.ngZone.run(() => {
if (this.variablesService.wallets.length) {
this.variablesService.currentWallet = this.variablesService.wallets[0];
this.router.navigate(['/wallet/' + this.variablesService.currentWallet.wallet_id]);
} else {
this.router.navigate(['/']);
}
});
if (this.variablesService.appPass) {
this.backend.storeSecureAppData();
}
});
}
ngOnDestroy() {
this.subRouting1.unsubscribe();
this.subRouting2.unsubscribe();

View file

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 23.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 34 34" style="enable-background:new 0 0 34 34;" xml:space="preserve">
<style type="text/css">
.st0{fill:#FFFFFF;}
</style>
<polygon class="st0" points="31.9,4.9 29.1,2.1 17,14.2 4.9,2.1 2.1,4.9 14.2,17 2.1,29.1 4.9,31.9 17,19.8 29.1,31.9 31.9,29.1
19.8,17 "/>
</svg>

After

Width:  |  Height:  |  Size: 545 B

View file

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 23.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 34 34" style="enable-background:new 0 0 34 34;" xml:space="preserve">
<style type="text/css">
.st0{fill:#FFFFFF;}
</style>
<g>
<path class="st0" d="M15.6,3C14.8,1.2,13,0,11,0S7.2,1.2,6.4,3H0v4h6.4C7.2,8.8,9,10,11,10s3.8-1.2,4.6-3H34V3H15.6z M11,6
c-0.6,0-1-0.4-1-1s0.4-1,1-1s1,0.4,1,1S11.6,6,11,6z"/>
<path class="st0" d="M23,12c-2,0-3.8,1.2-4.6,3H0v4h18.4c0.8,1.8,2.5,3,4.6,3s3.8-1.2,4.6-3H34v-4h-6.4C26.8,13.2,25,12,23,12z
M23,18c-0.6,0-1-0.4-1-1s0.4-1,1-1s1,0.4,1,1S23.6,18,23,18z"/>
<path class="st0" d="M11,24c-2,0-3.8,1.2-4.6,3H0v4h6.4c0.8,1.8,2.5,3,4.6,3s3.8-1.2,4.6-3H34v-4H15.6C14.8,25.2,13,24,11,24z
M11,30c-0.6,0-1-0.4-1-1s0.4-1,1-1s1,0.4,1,1S11.6,30,11,30z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 971 B