mirror of
https://github.com/elk-zone/elk
synced 2024-11-27 14:28:10 +09:00
ui: pwa prompt
This commit is contained in:
parent
7c1baf0f0a
commit
aa9b5d2cb1
@ -15,25 +15,29 @@ const { close, needRefresh, updateServiceWorker } = usePWA()
|
|||||||
z11
|
z11
|
||||||
fixed
|
fixed
|
||||||
bottom-14 md:bottom-0 right-0
|
bottom-14 md:bottom-0 right-0
|
||||||
m-2 p-4
|
m-2 p-4 w-100
|
||||||
bg-base border="~ base"
|
bg-base border="~ base"
|
||||||
rounded
|
rounded
|
||||||
text-left
|
text-left
|
||||||
shadow
|
shadow
|
||||||
|
flex="~ gap-4"
|
||||||
>
|
>
|
||||||
<h2 id="pwa-toast-title" sr-only>
|
<img src="/logo.svg" w-12 h-12 height="10" width="10" ma alt="logo">
|
||||||
{{ $t('pwa.title') }}
|
<div>
|
||||||
</h2>
|
<h2 id="pwa-toast-title" sr-only>
|
||||||
<div id="pwa-toast-message">
|
{{ $t('pwa.title') }}
|
||||||
{{ $t('pwa.message') }}
|
</h2>
|
||||||
</div>
|
<div id="pwa-toast-message">
|
||||||
<div m-t4 flex="~ colum" gap-x="4">
|
{{ $t('pwa.message') }}
|
||||||
<button type="button" btn-solid text-sm px-2 py-1 text-center @click="updateServiceWorker()">
|
</div>
|
||||||
{{ $t('pwa.reload') }}
|
<div mt2 flex="~ gap-4">
|
||||||
</button>
|
<button type="button" btn-solid px-4 py-1 text-center text-sm @click="updateServiceWorker()">
|
||||||
<button type="button" btn-outline px-2 py-1 text-sm text-center @click="close">
|
{{ $t('pwa.reload') }}
|
||||||
{{ $t('pwa.close') }}
|
</button>
|
||||||
</button>
|
<button type="button" btn-outline filter-saturate-0 px-4 py-1 text-center text-sm @click="close">
|
||||||
|
{{ $t('pwa.dismiss') }}
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -191,10 +191,10 @@
|
|||||||
"the_thread": "the thread"
|
"the_thread": "the thread"
|
||||||
},
|
},
|
||||||
"pwa": {
|
"pwa": {
|
||||||
"close": "Close",
|
"dismiss": "Dismiss",
|
||||||
"message": "@:pwa.title{','} click on @:pwa.reload button to update.",
|
"message": "@:pwa.title{','} click on the @:pwa.reload button to update.",
|
||||||
"reload": "Reload",
|
"reload": "Reload",
|
||||||
"title": "New Elk version available"
|
"title": "New Elk update available"
|
||||||
},
|
},
|
||||||
"search": {
|
"search": {
|
||||||
"search_desc": "Search for people & hashtags"
|
"search_desc": "Search for people & hashtags"
|
||||||
|
@ -188,7 +188,6 @@
|
|||||||
"the_thread": "el hilo"
|
"the_thread": "el hilo"
|
||||||
},
|
},
|
||||||
"pwa": {
|
"pwa": {
|
||||||
"close": "Cerrar",
|
|
||||||
"message": "@:pwa.title{','} haz click en el botón @:pwa.reload para actualizar.",
|
"message": "@:pwa.title{','} haz click en el botón @:pwa.reload para actualizar.",
|
||||||
"reload": "Recargar",
|
"reload": "Recargar",
|
||||||
"title": "Nueva versión de Elk disponible"
|
"title": "Nueva versión de Elk disponible"
|
||||||
|
Loading…
Reference in New Issue
Block a user