Recommended updates.

This commit is contained in:
NeuralMiner 2021-10-18 13:25:53 -06:00
parent e1f1d4a959
commit 572a5300aa
4 changed files with 4 additions and 3 deletions

View file

@ -312,7 +312,7 @@ class Database {
*/ */
static backup(version) { static backup(version) {
if (! this.backupPath) { if (! this.backupPath) {
console.info("Backup the database"); console.info("Backing up the database");
this.backupPath = this.dataDir + "kuma.db.bak" + version; this.backupPath = this.dataDir + "kuma.db.bak" + version;
fs.copyFileSync(Database.path, this.backupPath); fs.copyFileSync(Database.path, this.backupPath);

View file

@ -452,7 +452,7 @@ exports.entryPage = "dashboard";
socket.on("setup", async (username, password, callback) => { socket.on("setup", async (username, password, callback) => {
try { try {
if ((await R.count("user")) !== 0) { if ((await R.count("user")) !== 0) {
throw new Error("Uptime Kuma has been set up. If you want to setup again, please delete the database."); throw new Error("Uptime Kuma has been initialized. If you want to run setup again, please delete the database.");
} }
let user = R.dispense("user"); let user = R.dispense("user");

View file

@ -301,6 +301,7 @@ export default {
BodyInvalidFormat: "The request body is not valid JSON: ", BodyInvalidFormat: "The request body is not valid JSON: ",
"Monitor History": "Monitor History:", "Monitor History": "Monitor History:",
clearDataOlderThan: "Keep monitor history data for {0} days.", clearDataOlderThan: "Keep monitor history data for {0} days.",
PasswordsDoNotMatch: "Passwords do not match.",
records: "records", records: "records",
"One record": "One record", "One record": "One record",
"Showing {from} to {to} of {count} records": "Showing {from} to {to} of {count} records", "Showing {from} to {to} of {count} records": "Showing {from} to {to} of {count} records",

View file

@ -75,7 +75,7 @@ export default {
this.processing = true; this.processing = true;
if (this.password !== this.repeatPassword) { if (this.password !== this.repeatPassword) {
toast.error("Passwords do not match."); toast.error(this.$t("PasswordsDoNotMatch"));
this.processing = false; this.processing = false;
return; return;
} }