Skip to content

Open source personal finance application

chore: remove UpdateAppModal

ilkome4ab10f429595
diff --git a/components/app/UpdateAppModal.vue b/components/app/UpdateAppModal.vue
deleted file mode 100644
index 722ed7e9..00000000
--- a/components/app/UpdateAppModal.vue
+++ /dev/null
@@ -1,51 +0,0 @@
-<script setup lang="ts">
-import { random, updateEmo } from '~/assets/js/emo'
-const emo = computed(() => random(updateEmo))
-</script>
-
-<template lang="pug">
-TrnFormModal(@closed="$emit('onClose')")
- .py-5.lg_py-8.text-center
- .emo {{ emo }}
- .header {{ $t('title') }}
- .pb-10 {{ $t('text') }}
-
- SharedButton(
- className="_blue2 _text-center _maxWidth"
- :title="$t('button')"
- @onClick="$emit('onClose')"
- )
-</template>
-
-<style lang="stylus" scoped>
-.header
- padding-bottom $m6
- color var(--c-font-3)
- font-size 22px
- font-weight 700
- fontFamilyNunito()
-
- /.light &
- color var(--c-font-4)
-
-.emo
- padding-top $m8
- padding-bottom $m9
- font-size 86px
-</style>
-
-<i18n lang="json5">
-{
- "en": {
- "title": "New version available",
- "text": "Reload the app to use new futures.",
- "button": "Wow, great!"
- },
-
- "ru": {
- "title": "Доступа новая версия",
- "text": "Перезагрузите приложение, чтобы использовать все новые фишки.",
- "button": "Оки, Ура!"
- }
-}
-</i18n>
diff --git a/layouts/default.vue b/layouts/default.vue
index 5f7376b2..2c0caa1c 100644
--- a/layouts/default.vue
+++ b/layouts/default.vue
@@ -5,7 +5,7 @@ import useUIView from '~/components/layout/useUIView'
const { $store } = useNuxtApp()
-useLazyAsyncData('', async() => {
+useLazyAsyncData('', async () => {
const { initUI } = useUIView()
await initUI()
})
@@ -20,7 +20,7 @@ const keepAliveInclude = [
* Update modal
*/
const isShowUpdateApp = ref(false)
-onMounted(async() => {
+onMounted(async () => {
const workbox = await window.$workbox
if (workbox) {
workbox.addEventListener('installed', (event) => {
@@ -67,11 +67,6 @@ onMounted(() => {
name="modal"
)
- //- LazyAppUpdateAppModal(
- //- v-if="isShowUpdateApp"
- //- @onClose="isShowUpdateApp = false"
- //- )
-
.h-full.grid(
class="lg_grid-cols-[auto_1fr]"
)
diff --git a/layouts/welcome.vue b/layouts/welcome.vue
index 5d1fb92d..3b56b241 100644
--- a/layouts/welcome.vue
+++ b/layouts/welcome.vue
@@ -5,7 +5,7 @@ import useUIView from '~/components/layout/useUIView'
const { $store } = useNuxtApp()
-useLazyAsyncData('posts', async() => {
+useLazyAsyncData('posts', async () => {
const { initUI } = useUIView()
await initUI()
})
@@ -16,7 +16,7 @@ const keepAliveInclude = ['PagesIndex, PagesWallets', 'PagesCategories', 'PagesH
* Update modal
*/
const isShowUpdateApp = ref(false)
-onMounted(async() => {
+onMounted(async () => {
const workbox = await window.$workbox
if (workbox) {
workbox.addEventListener('installed', (event) => {
@@ -63,11 +63,6 @@ onMounted(() => {
name="modal"
)
- //- LazyAppUpdateAppModal(
- //- v-if="isShowUpdateApp"
- //- @onClose="isShowUpdateApp = false"
- //- )
-
.layout__wrap.overflow-hidden.flex-grow.h-full.flex
transition(name="fadeIn" appear)
Nuxt(keep-alive :keep-alive-props="{ include: keepAliveInclude }")