This repository has been archived on 2024-03-13. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
timekeeper/pages/index.vue

36 lines
990 B
Vue
Raw Normal View History

2022-01-03 18:53:38 -05:00
<template>
2022-01-09 19:28:09 -08:00
<div class="tab-content grid flex-col">
<template v-for="(process, index) in $store.state.processes">
<button :key="index" class="text-right font-semibold">
{{ process.instrument }}
</button>
<div :key="index" class="progress-bar relative">
<progress
max="100"
:value="process.completion"
class="w-full h-full"
></progress>
<span
class="absolute top-0 bottom-0 left-0 right-0 text-center text-white"
2022-01-08 14:04:05 -08:00
>
2022-01-09 19:28:09 -08:00
{{
(process.workerCount * process.workerRate * process.reward) / 100.0
}}
<span class="fas fa-hourglass-half text-sm" /> / sec
<!-- {{ $store.state.incremental.currency[process.produces] }} {{ process.produces }} -->
</span>
2022-01-06 02:18:46 -08:00
</div>
2022-01-09 19:28:09 -08:00
</template>
2022-01-04 17:41:36 -05:00
</div>
2022-01-03 18:53:38 -05:00
</template>
<script>
2022-01-09 19:28:09 -08:00
export default {}
2022-01-03 18:53:38 -05:00
</script>
2022-01-04 17:41:36 -05:00
<style scoped>
2022-01-09 19:28:09 -08:00
.tab-content {
grid-template-columns: auto 1fr;
grid-gap: 1rem 1rem;
2022-01-08 14:04:05 -08:00
}
2022-01-04 17:41:36 -05:00
</style>