2023-01-26 00:26:51 +09:00
|
|
|
<template>
|
|
|
|
<div
|
2024-02-22 00:20:08 +09:00
|
|
|
v-if="useNuxtApp().$pwa?.showInstallPrompt && !useNuxtApp().$pwa?.needRefresh"
|
2023-01-26 00:26:51 +09:00
|
|
|
m-2 p5 bg="primary-fade" relative
|
|
|
|
rounded-lg of-hidden
|
|
|
|
flex="~ col gap-3"
|
|
|
|
v-bind="$attrs"
|
|
|
|
>
|
|
|
|
<h2 flex="~ gap-2" items-center>
|
|
|
|
{{ $t('pwa.install_title') }}
|
|
|
|
</h2>
|
|
|
|
<div flex="~ gap-1">
|
2024-02-22 00:20:08 +09:00
|
|
|
<button type="button" btn-solid px-4 py-1 text-center text-sm @click="useNuxtApp().$pwa?.install()">
|
2023-01-26 00:26:51 +09:00
|
|
|
{{ $t('pwa.install') }}
|
|
|
|
</button>
|
2024-02-22 00:20:08 +09:00
|
|
|
<button type="button" btn-text filter-saturate-0 px-4 py-1 text-center text-sm @click="useNuxtApp().$pwa?.cancelInstall()">
|
2023-01-26 00:26:51 +09:00
|
|
|
{{ $t('pwa.dismiss') }}
|
|
|
|
</button>
|
|
|
|
</div>
|
2023-01-26 01:06:16 +09:00
|
|
|
<div i-material-symbols:install-desktop-rounded absolute text-6em bottom--2 inset-ie--2 text-primary dark:text-white op10 class="-z-1 rtl-flip" />
|
2023-01-26 00:26:51 +09:00
|
|
|
</div>
|
|
|
|
</template>
|