51
51
52
52
<v-dialog
53
53
v-model =" downloadDialog"
54
- persistent
55
54
width =" 400px" >
56
55
<v-card
57
56
color =" primary"
58
57
dark >
59
58
<v-card-text class =" title font-weight-light pa-3" >Your download is ready!</v-card-text >
60
59
<v-divider ></v-divider >
61
- <v-card-text class =" subheading font-weight-bold" >Download your package < a class = " blue--text lighten-1 " href = " https://www.google.com/ " target = " _blank " >here</ a > .</v-card-text >
60
+ <v-card-text class =" subheading font-weight-bold" >Download the corresponding package given the target operating system below .</v-card-text >
62
61
63
62
<v-card-actions >
64
63
<v-spacer ></v-spacer >
65
64
<v-btn
66
- color =" blue"
67
- @click =" downloadDialog = false" >
68
- OK
65
+ v-for =" ospack in osinfo"
66
+ :key =" ospack.name"
67
+ :color =" ospack.color"
68
+ @click =" startDownload(ospack.name)" >
69
+ {{ ospack.name.toUpperCase() }}
69
70
</v-btn >
70
71
</v-card-actions >
71
72
</v-card >
@@ -147,7 +148,7 @@ import HistoryIcon from 'vue-material-design-icons/History';
147
148
import axios from ' axios' ;
148
149
149
150
const HTTP = axios .create ({
150
- baseURL: ` http://536be0e0 .ngrok.io/` ,
151
+ baseURL: ' http://8e075c03 .ngrok.io/' ,
151
152
cors: true ,
152
153
})
153
154
@@ -175,6 +176,11 @@ export default {
175
176
loadingDialog: false ,
176
177
receiptDialog: false ,
177
178
downloadDialog: false ,
179
+ osinfo: [
180
+ { color: ' blue' , name: ' windows' },
181
+ { color: ' red' , name: ' mac' },
182
+ { color: ' green' , name: ' linux' },
183
+ ]
178
184
}),
179
185
methods: {
180
186
showReceipt : function (event ) {
@@ -200,6 +206,9 @@ export default {
200
206
}
201
207
}
202
208
this .$forceUpdate ();
209
+ },
210
+ startDownload : function (osname ) {
211
+ window .open (` http://8e075c03.ngrok.io/download-${ osname} ` )
203
212
}
204
213
},
205
214
computed: {
0 commit comments