работаем бля работаем
This commit is contained in:
30
new-client/src/app/Updater.vue
Normal file
30
new-client/src/app/Updater.vue
Normal file
@@ -0,0 +1,30 @@
|
||||
<template>
|
||||
<div class="updater-app">
|
||||
<p v-if="checking">
|
||||
Checking updates...
|
||||
</p>
|
||||
<p v-else-if="!!lastUpdate">
|
||||
Update available: {{ lastUpdate.version }}
|
||||
</p>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { useUpdater } from '@shared/composables/use-updater'
|
||||
|
||||
const { checking, lastUpdate } = useUpdater()
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.updater-app {
|
||||
display: flex;
|
||||
height: 100%;
|
||||
|
||||
> p {
|
||||
margin: auto;
|
||||
padding: 8px 16px;
|
||||
border-radius: 16px;
|
||||
background-color: var(--bg-light);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user