mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-01 21:13:09 +00:00
download output
This commit is contained in:
committed by
Aiden McClelland
parent
8f7075de34
commit
ba402d018a
@@ -6,7 +6,7 @@
|
|||||||
<div style="padding-bottom: 32px;">
|
<div style="padding-bottom: 32px;">
|
||||||
<img src="assets/png/logo.png" style="max-width: 240px;" />
|
<img src="assets/png/logo.png" style="max-width: 240px;" />
|
||||||
</div>
|
</div>
|
||||||
<success></success>
|
<success (dl)="download($event)"></success>
|
||||||
<ion-card *ngIf="!stateService.embassyLoaded" color="dark">
|
<ion-card *ngIf="!stateService.embassyLoaded" color="dark">
|
||||||
<ion-card-header>
|
<ion-card-header>
|
||||||
<ion-card-title style="font-size: 40px;">Initializing Embassy</ion-card-title>
|
<ion-card-title style="font-size: 40px;">Initializing Embassy</ion-card-title>
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
import { Component } from '@angular/core'
|
import { Component } from '@angular/core'
|
||||||
import { NavController } from '@ionic/angular'
|
|
||||||
import { interval, Observable } from 'rxjs'
|
import { interval, Observable } from 'rxjs'
|
||||||
import { finalize, take } from 'rxjs/operators'
|
import { finalize, take } from 'rxjs/operators'
|
||||||
import { StateService } from 'src/app/services/state.service'
|
import { StateService } from 'src/app/services/state.service'
|
||||||
@@ -18,7 +17,7 @@ export class InitPage {
|
|||||||
) { }
|
) { }
|
||||||
|
|
||||||
ngOnInit () {
|
ngOnInit () {
|
||||||
this.progress = interval(500)
|
this.progress = interval(130)
|
||||||
.pipe(
|
.pipe(
|
||||||
take(101),
|
take(101),
|
||||||
finalize(() => {
|
finalize(() => {
|
||||||
|
|||||||
@@ -29,5 +29,5 @@ a {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.hiddenPage {
|
.hiddenPage {
|
||||||
max-height: 0px;
|
display: none;
|
||||||
}
|
}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component } from '@angular/core'
|
import { Component, EventEmitter, Output } from '@angular/core'
|
||||||
import { ToastController } from '@ionic/angular'
|
import { ToastController } from '@ionic/angular'
|
||||||
import { StateService } from 'src/app/services/state.service'
|
import { StateService } from 'src/app/services/state.service'
|
||||||
|
|
||||||
@@ -8,6 +8,7 @@ import { StateService } from 'src/app/services/state.service'
|
|||||||
styleUrls: ['success.page.scss'],
|
styleUrls: ['success.page.scss'],
|
||||||
})
|
})
|
||||||
export class SuccessPage {
|
export class SuccessPage {
|
||||||
|
@Output() dl = new EventEmitter()
|
||||||
torOpen = true
|
torOpen = true
|
||||||
lanOpen = false
|
lanOpen = false
|
||||||
|
|
||||||
@@ -40,6 +41,10 @@ export class SuccessPage {
|
|||||||
document.getElementById('install-cert').click()
|
document.getElementById('install-cert').click()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
download () {
|
||||||
|
this.dl.emit(null)
|
||||||
|
}
|
||||||
|
|
||||||
private async copyToClipboard (str: string): Promise<boolean> {
|
private async copyToClipboard (str: string): Promise<boolean> {
|
||||||
const el = document.createElement('textarea')
|
const el = document.createElement('textarea')
|
||||||
el.value = str
|
el.value = str
|
||||||
|
|||||||
Reference in New Issue
Block a user