2018-03-23 12:53:54 +01:00
|
|
|
<template>
|
|
|
|
<v-container fluid grid-list-md text-xs-center id="hook">
|
|
|
|
<v-layout row wrap id="hook-navigation">
|
|
|
|
<v-flex xs4>
|
|
|
|
<router-link exact to="/">
|
2018-04-17 12:24:56 +02:00
|
|
|
<v-btn color="grey lighten-1" fab>1</v-btn>
|
2018-03-23 12:53:54 +01:00
|
|
|
Resolve a claim
|
|
|
|
</router-link>
|
|
|
|
</v-flex>
|
|
|
|
<v-flex xs4>
|
|
|
|
<router-link to="/step-2">
|
2018-04-17 12:24:56 +02:00
|
|
|
<v-btn color="grey lighten-1" fab>2</v-btn>
|
2018-03-23 12:53:54 +01:00
|
|
|
Publish content
|
|
|
|
</router-link>
|
|
|
|
</v-flex>
|
|
|
|
<v-flex xs4>
|
|
|
|
<router-link to="/step-3">
|
2018-04-17 12:24:56 +02:00
|
|
|
<v-btn color="grey lighten-1" fab>3</v-btn>
|
2018-03-23 12:53:54 +01:00
|
|
|
Support with LBC
|
|
|
|
</router-link>
|
|
|
|
</v-flex>
|
|
|
|
</v-layout>
|
|
|
|
<router-view></router-view>
|
|
|
|
<v-dialog v-model="uploadDialog" hide-overlay persistent width="30rem">
|
|
|
|
<v-card>
|
|
|
|
<template v-if="confirmed">
|
|
|
|
<v-card-title class="headline">Your image has been published!</v-card-title>
|
|
|
|
<v-card-text><a v-bind:href="'https://explorer.lbry.io/tx/' + txhash" target="_blank">Check out your content on the LBRY blockchain explorer</a></v-card-text>
|
|
|
|
<v-card-actions>
|
|
|
|
<v-btn v-on:click="uploadDialog = false" flat>Dismiss this dialog</v-btn>
|
|
|
|
</v-card-actions>
|
|
|
|
</template>
|
|
|
|
<template v-else>
|
|
|
|
<v-card-title class="headline"><v-progress-circular indeterminate color="primary"></v-progress-circular> Waiting for confirmations...</v-card-title>
|
|
|
|
<v-card-text>Your image was uploaded to the LBRY network but we are currently waiting for the first confirmation. This should take just a few minutes. In the mean time, go ahead and try the other steps!</v-card-text>
|
|
|
|
</template>
|
|
|
|
</v-card>
|
|
|
|
</v-dialog>
|
|
|
|
</v-container>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
|
|
import EventBus from '@/event-bus';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
data () {
|
|
|
|
return {
|
|
|
|
uploadDialog: false,
|
|
|
|
txhash: '',
|
|
|
|
confirmed: false
|
|
|
|
}
|
|
|
|
},
|
|
|
|
watch: {
|
|
|
|
uploadDialog: function() {
|
|
|
|
var component = this;
|
|
|
|
if(this.uploadDialog) {
|
|
|
|
// Simulate confirmation
|
|
|
|
setTimeout(function() {
|
|
|
|
component.confirmed = true;
|
|
|
|
}, 10000)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
created () {
|
|
|
|
var component = this;
|
|
|
|
EventBus.$on('file-uploaded', function(txhash) {
|
|
|
|
component.txhash = txhash;
|
|
|
|
component.uploadDialog = true;
|
|
|
|
});
|
|
|
|
},
|
|
|
|
name: 'Hook'
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
|
|
|
|
@import '../../scss/variables';
|
|
|
|
|
|
|
|
@import '../../../node_modules/highlight.js/styles/monokai-sublime';
|
|
|
|
|
|
|
|
.dialog__content {
|
|
|
|
align-items: flex-end !important;
|
|
|
|
justify-content: right !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
#hook {
|
2018-04-17 12:24:56 +02:00
|
|
|
background: url(https://lbry.io/img/youtube/hero@2x.jpg) no-repeat center center;
|
|
|
|
background-size: cover;
|
2018-03-23 12:53:54 +01:00
|
|
|
color: $text-color;
|
2018-04-17 12:24:56 +02:00
|
|
|
.display-2,
|
|
|
|
.subheading {
|
|
|
|
color: white;
|
|
|
|
text-shadow: 0px 0px 1rem rgba(0,0,0,0.5);
|
|
|
|
a {
|
|
|
|
color: white;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.flex {
|
|
|
|
margin-bottom: 2rem;
|
|
|
|
}
|
2018-03-23 12:53:54 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#hook-navigation {
|
2018-04-17 12:24:56 +02:00
|
|
|
margin-bottom: 1.5rem;
|
2018-03-23 12:53:54 +01:00
|
|
|
a {
|
|
|
|
text-decoration: none;
|
|
|
|
color: $text-color;
|
|
|
|
}
|
|
|
|
.router-link-active {
|
|
|
|
font-weight: bold;
|
|
|
|
.btn {
|
|
|
|
background: $primary-color !important;
|
|
|
|
color: white !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
</style>
|