Skip to content
Snippets Groups Projects
Commit 005b50d1 authored by Blockchain Federal Argentina's avatar Blockchain Federal Argentina
Browse files

Cambios timer/waiting1block

parent b52f8886
No related branches found
No related tags found
No related merge requests found
<!DOCTYPE html><html lang=es><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=favicon.ico><link href="https://fonts.googleapis.com/css?family=Raleway:400,400i,700,700i" rel=stylesheet><link rel=stylesheet href=static/css/bootstrap.min.css><link rel=stylesheet href=static/css/style.css><link rel=stylesheet href=static/css/tsa2.css><title>Sello de Tiempo - Blockchain Federal Argentina</title><link href=tsa2.js rel=preload as=script></head><body><noscript><b>Lo sentimos pero el sello de tiempo no funciona sin JavaScript. Por favor, habilitalo para continuar.</b></noscript><nav id=navbar role=banner class="navbar navbar-default"><div class=container><div class=navbar-header><a class="logo navbar-btn pull-left" href=/ rel=home><img id=logo src=static/images/logo.svg alt="Blockchain Federal Argentina"></a></div></div></nav><main><div class=container><div class=tsa2><h1>Sello de Tiempo</h1><p>El servicio de Sello de Tiempo de BFA permite demostrar que el contenido de cualquier documento digital existió en un momento y que desde entonces, no ha cambiado. Al sellar un archivo, cualquiera podrá verificar el día y la hora en que su hash fue almacenado en Blockchain Federal Argentina. Tené en cuenta que el documento seleccionado nunca se sube a la red, garantizando su privacidad.</p><p class=font_small><a href=https://bfa.ar/sello>Si tenés un archivo con Recibo Digital (.rd) verificalo aquí</a></p><div id=app apiurl=http://200.108.146.180:3000 timer=5 lb_00=" El archivo " lb_01=" fue enviado con éxito para ser sellado" lb_02="Se ha producido un error al intentar sellar " lb_03=" se encuentra sellado por: " lb_04=" en el bloque " lb_05="No se ha podido verificar el archivo " lb_06="Volver a Sellar o Verificar" lb_07=Cargando lb_08="Arrastrá un archivo aquí<br>ó" lb_09="Seleccioná un archivo <span class='sr-only'>para Sellar o Verificar</span>" lb_10="Nombre del archivo: " lb_11="Hash del archivo: " lb_12=Sellar lb_13=Verificar lb_14="Seleccionar otro archivo"></div></div></div><script src=tsa2.js></script></main></body></html> <!DOCTYPE html><html lang=es><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=favicon.ico><link href="https://fonts.googleapis.com/css?family=Raleway:400,400i,700,700i" rel=stylesheet><link rel=stylesheet href=static/css/bootstrap.min.css><link rel=stylesheet href=static/css/style.css><link rel=stylesheet href=static/css/tsa2.css><title>Sello de Tiempo - Blockchain Federal Argentina</title><link href=tsa2.js rel=preload as=script></head><body><noscript><b>Lo sentimos pero el sello de tiempo no funciona sin JavaScript. Por favor, habilitalo para continuar.</b></noscript><nav id=navbar role=banner class="navbar navbar-default"><div class=container><div class=navbar-header><a class="logo navbar-btn pull-left" href=/ rel=home><img id=logo src=static/images/logo.svg alt="Blockchain Federal Argentina"></a></div></div></nav><main><div class=container><div class=tsa2><h1>Sello de Tiempo</h1><p>El servicio de Sello de Tiempo de BFA permite demostrar que el contenido de cualquier documento digital existió en un momento y que desde entonces, no ha cambiado. Al sellar un archivo, cualquiera podrá verificar el día y la hora en que su hash fue almacenado en Blockchain Federal Argentina. Tené en cuenta que el documento seleccionado nunca se sube a la red, garantizando su privacidad.</p><p class=font_small><a href=https://bfa.ar/sello>Si tenés un archivo con Recibo Digital (.rd) verificalo aquí</a></p><div id=app apiurl=http://200.108.146.180:3000 lb_00=" El archivo " lb_01=" fue enviado con éxito para ser sellado" lb_02="Se ha producido un error al intentar sellar " lb_03=" se encuentra sellado por: " lb_04=" en el bloque " lb_05="No se ha podido verificar el archivo " lb_06="Volver a Sellar o Verificar" lb_07=Cargando lb_08="Arrastrá un archivo aquí<br>ó" lb_09="Seleccioná un archivo <span class='sr-only'>para Sellar o Verificar</span>" lb_10="Nombre del archivo: " lb_11="Hash del archivo: " lb_12=Sellar lb_13=Verificar lb_14="Seleccionar otro archivo"></div></div></div><script src=tsa2.js></script></main></body></html>
\ No newline at end of file \ No newline at end of file
source diff could not be displayed: it is too large. Options to address this: view the blob.
source diff could not be displayed: it is too large. Options to address this: view the blob.
...@@ -33,7 +33,6 @@ ...@@ -33,7 +33,6 @@
<p class="font_small"><a href="https://bfa.ar/sello">Si tenés un archivo con Recibo Digital (.rd) verificalo aquí</a></p> <p class="font_small"><a href="https://bfa.ar/sello">Si tenés un archivo con Recibo Digital (.rd) verificalo aquí</a></p>
<div id="app" <div id="app"
apiurl="http://200.108.146.180:3000" apiurl="http://200.108.146.180:3000"
timer="5"
lb_00=" El archivo " lb_00=" El archivo "
lb_01=" fue enviado con éxito para ser sellado" lb_01=" fue enviado con éxito para ser sellado"
lb_02="Se ha producido un error al intentar sellar " lb_02="Se ha producido un error al intentar sellar "
...@@ -53,4 +52,4 @@ ...@@ -53,4 +52,4 @@
</div> </div>
</div> </div>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
<div v-if="state=='verified'" class="success-verify alert alert-success" role="alert"> <div v-if="state=='verified'" class="success-verify alert alert-success" role="alert">
<p><span class="glyphicon glyphicon-ok" aria-hidden="true"></span> <span v-html="this.lb_00"></span> <b>{{archivo}}</b> <span v-html="this.lb_03"></span></p> <p><span class="glyphicon glyphicon-ok" aria-hidden="true"></span> <span v-html="this.lb_00"></span> <b>{{archivo}}</b> <span v-html="this.lb_03"></span></p>
<ul> <ul>
<li v-for="stamp in stamps" v-bind:key="stamp.stamper"> <li v-for="stamp in stamps" v-bind:key="stamp.whostamped">
<b>{{ stamp.stamper }}</b> <span v-html="lb_04"></span> <b>{{ stamp.block }}</b> {{ convertTime(stamp.blocktimestamp) }} <b>{{ stamp.whostamped }}</b> <span v-html="lb_04"></span> <b>{{ stamp.blocknumber }}</b> {{ convertTime(stamp.blocktimestamp) }}
</li> </li>
</ul> </ul>
</div> </div>
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
</div> </div>
<DropFile <DropFile
:apiurl="apiurl" :apiurl="apiurl"
:timer="timer"
:lb_07="lb_07" :lb_07="lb_07"
:lb_08="lb_08" :lb_08="lb_08"
:lb_09="lb_09" :lb_09="lb_09"
...@@ -50,7 +49,6 @@ ...@@ -50,7 +49,6 @@
export default { export default {
name: 'app', name: 'app',
props: ['apiurl', props: ['apiurl',
'timer',
'lb_00', 'lb_00',
'lb_01', 'lb_01',
'lb_02', 'lb_02',
......
...@@ -57,7 +57,6 @@ export default { ...@@ -57,7 +57,6 @@ export default {
/* eslint-disable */ /* eslint-disable */
name: 'DropFile', name: 'DropFile',
props: ['apiurl', props: ['apiurl',
'timer',
'lb_07', 'lb_07',
'lb_08', 'lb_08',
'lb_09', 'lb_09',
...@@ -126,20 +125,17 @@ export default { ...@@ -126,20 +125,17 @@ export default {
self.loading = true self.loading = true
axios.post(stampUrl, { axios.post(stampUrl, {
hashes: [self.uploadedFiles[0].hash] hashes: [self.uploadedFiles[0].hash]
}).then((res) => { }).then(
self.waitToVerify(); axios.get(`${this.apiurl}/wait1block`)
//self.$emit('stamp', self.uploadedFiles[0].hash); .then(() => {
//this.verify(self.uploadedFiles[0].hash); //self.$emit('stamp', self.uploadedFiles[0].hash);
}).catch((e) => { this.verify(self.uploadedFiles[0].hash);
})
).catch((e) => {
//console.error(e) //console.error(e)
self.$emit('failed-stamp') self.$emit('failed-stamp')
}) })
}, },
waitToVerify(){
var self = this;
var t = this.timer * 1000;
setTimeout(function(){ self.verify(self.uploadedFiles[0].hash) }, t);
},
uploadFiles: function(f) { uploadFiles: function(f) {
var self = this; var self = this;
this.loading = true this.loading = true
......
...@@ -23,7 +23,6 @@ new Vue({ ...@@ -23,7 +23,6 @@ new Vue({
return h(App, { return h(App, {
props: { props: {
apiurl: this.$el.attributes.apiurl.value, apiurl: this.$el.attributes.apiurl.value,
timer: this.$el.attributes.timer.value,
lb_00: this.$el.attributes.lb_00.value, lb_00: this.$el.attributes.lb_00.value,
lb_01: this.$el.attributes.lb_01.value, lb_01: this.$el.attributes.lb_01.value,
lb_02: this.$el.attributes.lb_02.value, lb_02: this.$el.attributes.lb_02.value,
...@@ -42,4 +41,4 @@ new Vue({ ...@@ -42,4 +41,4 @@ new Vue({
} }
}) })
} }
}).$mount('#app') }).$mount('#app')
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment