37 lines
940 B
Vue
37 lines
940 B
Vue
<template>
|
|
<section class="settings">
|
|
<TopNav />
|
|
</section>
|
|
</template>
|
|
|
|
<style lang="scss" scoped></style>
|
|
|
|
<script lang="ts">
|
|
import { Component, Vue } from "vue-property-decorator";
|
|
import TopNav from "@/components/Navigation/TopNav.vue";
|
|
import { TaskRunner } from "@/workers";
|
|
|
|
@Component({
|
|
components: { TopNav }
|
|
})
|
|
export default class SettingsView extends Vue {
|
|
private downloadSets() {
|
|
const worker = new TaskRunner("downloadCardImages");
|
|
worker.on("dl-progress", progress => {
|
|
console.log(
|
|
`Download progress: ${progress.progress}/${
|
|
progress.total
|
|
}b (${Math.round((progress.progress * 100) / progress.total)}%)`
|
|
);
|
|
});
|
|
worker.on("ex-progress", progress => {
|
|
console.log(
|
|
`Extraction progress: ${progress.progress}/${
|
|
progress.total
|
|
}b (${Math.round((progress.progress * 100) / progress.total)}%)`
|
|
);
|
|
});
|
|
}
|
|
}
|
|
</script>
|