@@ -42,18 +42,16 @@ export default {
data() {
return {
file: null,
- data: null,
info: null,
- }
- },
- created() {
- this.$worker.onmessage = (e) => {
- this.info = e.data;
+ tabIndex: 0,
}
},
methods: {
onFile(event) {
- this.data = null;
+ this.tabIndex = 0;
+ this.$worker.onmessage = (e) => {
+ this.info = e.data;
+ }
const file = event.dataTransfer ? event.dataTransfer.files[0] : event.target.files[0];
this.$worker.postMessage([ 'get_file_info', file ]);
}
diff --git a/www/src/components/Frames.vue b/www/src/components/Frames.vue
index 7380f9a..e6f2104 100644
--- a/www/src/components/Frames.vue
+++ b/www/src/components/Frames.vue
@@ -3,6 +3,7 @@
Frames
Loading...
+
GOP Size: {{ data.gop_size }}
Total: {{ data.nb_frames }}
+
+ {{ data.value + 1 }}
+
{{ String.fromCharCode(data.value) }}
@@ -43,11 +47,13 @@ export default {
return {
data: null,
currentPage: 1,
- perPage: 48,
isBusy: false,
};
},
computed: {
+ perPage() {
+ return this.data.gop_size;
+ },
pages() {
return this.data.nb_frames;
},