mirror of
https://github.com/Grasscutters/GrassClipper.git
synced 2024-11-16 04:45:34 +00:00
translation section for update notification
This commit is contained in:
parent
db522bf82c
commit
f8c75c0adc
@ -61,5 +61,7 @@
|
|||||||
"alertUserTaken": "Username is taken",
|
"alertUserTaken": "Username is taken",
|
||||||
"alertPassMismatch": "Password and password confirmation do not match",
|
"alertPassMismatch": "Password and password confirmation do not match",
|
||||||
"alertAuthNoRegister": "Authentication is disabled, no need to register!",
|
"alertAuthNoRegister": "Authentication is disabled, no need to register!",
|
||||||
"alertRegisterSuccess": "Registration successful!"
|
"alertRegisterSuccess": "Registration successful!",
|
||||||
|
|
||||||
|
"updateNotifText": "A new update is available! Newest version: "
|
||||||
}
|
}
|
||||||
|
@ -66,12 +66,12 @@ async function checkForUpdates() {
|
|||||||
return latest
|
return latest
|
||||||
}
|
}
|
||||||
|
|
||||||
async function displayUpdate(version) {
|
async function displayUpdate() {
|
||||||
const latest = await checkForUpdates()
|
const latest = await checkForUpdates()
|
||||||
const versionDisplay = document.querySelector('#newestVersion')
|
const versionDisplay = document.querySelector('#newestVersion')
|
||||||
const notif = document.querySelector('#downloadNotif')
|
const notif = document.querySelector('#downloadNotif')
|
||||||
|
|
||||||
//if (latest === `v${NL_APPVERSION}`) return
|
if (latest === `v${NL_APPVERSION}`) return
|
||||||
|
|
||||||
versionDisplay.innerText = latest
|
versionDisplay.innerText = latest
|
||||||
|
|
||||||
|
@ -89,4 +89,7 @@ async function doTranslation() {
|
|||||||
set('loginPopupContentBodyBtnLogin', 'authLoginBtn')
|
set('loginPopupContentBodyBtnLogin', 'authLoginBtn')
|
||||||
set('loginPopupContentBodyBtnRegister', 'authRegisterBtn')
|
set('loginPopupContentBodyBtnRegister', 'authRegisterBtn')
|
||||||
set('noLoginBtn', 'launchWithoutAuth')
|
set('noLoginBtn', 'launchWithoutAuth')
|
||||||
|
|
||||||
|
// update notification
|
||||||
|
set('updateNotifText', 'updateNotifText')
|
||||||
}
|
}
|
@ -551,13 +551,13 @@ a {
|
|||||||
|
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
top: 80%;
|
top: 80%;
|
||||||
left: 110%;
|
left: 120%;
|
||||||
width: 20%;
|
width: 20%;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
transition: left 0.4s ease-in-out;
|
transition: left 0.5s ease-in-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
#downloadNotif:hover {
|
#downloadNotif:hover {
|
||||||
|
Loading…
Reference in New Issue
Block a user