Hastic standalone
https://hastic.io
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
565 B
29 lines
565 B
<template> |
|
<div class="analytic-status"> |
|
analytic status: <strong> {{ status }} </strong> |
|
</div> |
|
</template> |
|
|
|
<script lang="ts"> |
|
import { defineComponent } from 'vue'; |
|
import { getStatusGenerator } from '@/services/analytics.service'; |
|
|
|
|
|
|
|
export default defineComponent({ |
|
name: 'AnalyticStatus', |
|
components: { |
|
}, |
|
data: function name() { |
|
return { |
|
status: "loading..." |
|
} |
|
}, |
|
mounted: async function() { |
|
let g = getStatusGenerator(); |
|
for await (const data of g) { |
|
this.status = data.toLowerCase(); |
|
} |
|
} |
|
}); |
|
</script>
|
|
|