update: bump to 3.5
This commit is contained in:
parent
1243dec6b9
commit
e193b257c7
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "knowyt",
|
"name": "knowyt",
|
||||||
"version": "3.4",
|
"version": "3.5",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"lint": "tsc-strict",
|
"lint": "tsc-strict",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="copyright-notice__version" @click="openInfoModal">
|
<div class="copyright-notice__version" @click="openInfoModal">
|
||||||
v{{ config.public.version }}, © 2021-2024, Settel
|
v{{ config.public.version }}, © 2021-2025, Settel
|
||||||
</div>
|
</div>
|
||||||
<InfoModal v-if="showInfoModal" @close="closeInfoModal" />
|
<InfoModal v-if="showInfoModal" @close="closeInfoModal" />
|
||||||
</template>
|
</template>
|
||||||
|
@ -81,17 +81,31 @@ export async function fetchUpdate(this: EngineContext) {
|
|||||||
const { status, statusText } = e.response
|
const { status, statusText } = e.response
|
||||||
if (status == 200) {
|
if (status == 200) {
|
||||||
delay = 1000
|
delay = 1000
|
||||||
} else {
|
} else if (status == 403) {
|
||||||
|
// credentials not valid any more
|
||||||
|
this.retry.value = -1
|
||||||
|
this.isActive = false
|
||||||
|
this.shouldStop = false
|
||||||
|
document.location.pathname = '/'
|
||||||
|
return
|
||||||
|
} else {
|
||||||
console.warn(`HTTP ${status} ${statusText}`)
|
console.warn(`HTTP ${status} ${statusText}`)
|
||||||
if (this.retry.value <= 15) {
|
if (this.retry.value > 30) {
|
||||||
delay = 1000
|
// after 90s give up
|
||||||
} else {
|
this.retry.value = -1
|
||||||
|
this.isActive = false
|
||||||
|
this.shouldStop = false
|
||||||
|
document.location.pathname = '/'
|
||||||
|
return
|
||||||
|
} else if (this.retry.value > 15) {
|
||||||
delay = 5000
|
delay = 5000
|
||||||
|
} else {
|
||||||
|
delay = 1000
|
||||||
}
|
}
|
||||||
this.version = -1
|
this.version = -1
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// request aborted or other causes
|
// request aborted or other causes, stop fetching
|
||||||
console.warn(e.message)
|
console.warn(e.message)
|
||||||
|
|
||||||
this.retry.value = -1
|
this.retry.value = -1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user