mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-22 03:30:11 +08:00
[test] add test for i18n currentLocale
This commit is contained in:
@@ -43,3 +43,9 @@ app.component("Editable", contenteditable);
|
||||
app.component("FontAwesomeIcon", FontAwesomeIcon);
|
||||
|
||||
app.mount("#app");
|
||||
|
||||
// Expose the vue instance for development
|
||||
if (process.env.NODE_ENV === "development") {
|
||||
console.log("Dev Only: window.app is the vue instance");
|
||||
window.app = app._instance;
|
||||
}
|
||||
|
@@ -74,7 +74,7 @@ class TimeLogger {
|
||||
this.startTime = dayjs().valueOf();
|
||||
}
|
||||
print(name) {
|
||||
if (exports.isDev && process && process.env.TIMELOGGER === "1") {
|
||||
if (exports.isDev && process.env.TIMELOGGER === "1") {
|
||||
console.log(name + ": " + (dayjs().valueOf() - this.startTime) + "ms");
|
||||
}
|
||||
}
|
||||
|
@@ -86,7 +86,7 @@ export class TimeLogger {
|
||||
}
|
||||
|
||||
print(name: string) {
|
||||
if (isDev && process && process.env.TIMELOGGER === "1") {
|
||||
if (isDev && process.env.TIMELOGGER === "1") {
|
||||
console.log(name + ": " + (dayjs().valueOf() - this.startTime) + "ms")
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user