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",
|
||||
"alertPassMismatch": "Password and password confirmation do not match",
|
||||
"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
|
||||
}
|
||||
|
||||
async function displayUpdate(version) {
|
||||
async function displayUpdate() {
|
||||
const latest = await checkForUpdates()
|
||||
const versionDisplay = document.querySelector('#newestVersion')
|
||||
const notif = document.querySelector('#downloadNotif')
|
||||
|
||||
//if (latest === `v${NL_APPVERSION}`) return
|
||||
if (latest === `v${NL_APPVERSION}`) return
|
||||
|
||||
versionDisplay.innerText = latest
|
||||
|
||||
|
@ -89,4 +89,7 @@ async function doTranslation() {
|
||||
set('loginPopupContentBodyBtnLogin', 'authLoginBtn')
|
||||
set('loginPopupContentBodyBtnRegister', 'authRegisterBtn')
|
||||
set('noLoginBtn', 'launchWithoutAuth')
|
||||
|
||||
// update notification
|
||||
set('updateNotifText', 'updateNotifText')
|
||||
}
|
@ -551,13 +551,13 @@ a {
|
||||
|
||||
padding: 1em;
|
||||
top: 80%;
|
||||
left: 110%;
|
||||
left: 120%;
|
||||
width: 20%;
|
||||
border-radius: 5px;
|
||||
|
||||
text-align: center;
|
||||
|
||||
transition: left 0.4s ease-in-out;
|
||||
transition: left 0.5s ease-in-out;
|
||||
}
|
||||
|
||||
#downloadNotif:hover {
|
||||
|
Loading…
Reference in New Issue
Block a user