mirror of
				https://github.com/louislam/uptime-kuma.git
				synced 2025-11-04 05:36:13 +08:00 
			
		
		
		
	Resolve lint errors
This commit is contained in:
		@@ -34,10 +34,11 @@ export default {
 | 
			
		||||
            const inputDate = new Date(value);
 | 
			
		||||
            const now = new Date(Date.now());
 | 
			
		||||
 | 
			
		||||
            if (inputDate.getFullYear() === now.getUTCFullYear() && inputDate.getMonth() === now.getUTCMonth() && inputDate.getDay() === now.getUTCDay())
 | 
			
		||||
            if (inputDate.getFullYear() === now.getUTCFullYear() && inputDate.getMonth() === now.getUTCMonth() && inputDate.getDay() === now.getUTCDay()) {
 | 
			
		||||
                return this.datetimeFormat(value, "HH:mm");
 | 
			
		||||
            else
 | 
			
		||||
            } else {
 | 
			
		||||
                return this.datetimeFormat(value, "YYYY-MM-DD HH:mm");
 | 
			
		||||
            }
 | 
			
		||||
        },
 | 
			
		||||
 | 
			
		||||
        date(value) {
 | 
			
		||||
 
 | 
			
		||||
@@ -464,8 +464,7 @@ export default {
 | 
			
		||||
                        text: this.$t("Maintenance"),
 | 
			
		||||
                        color: "maintenance",
 | 
			
		||||
                    };
 | 
			
		||||
                }
 | 
			
		||||
                else if (! lastHeartBeat) {
 | 
			
		||||
                } else if (! lastHeartBeat) {
 | 
			
		||||
                    result[monitorID] = unknown;
 | 
			
		||||
                } else if (lastHeartBeat.status === 1) {
 | 
			
		||||
                    result[monitorID] = {
 | 
			
		||||
@@ -505,8 +504,7 @@ export default {
 | 
			
		||||
 | 
			
		||||
                if (monitor && monitor.maintenance) {
 | 
			
		||||
                    result.maintenance++;
 | 
			
		||||
                }
 | 
			
		||||
                else if (monitor && ! monitor.active) {
 | 
			
		||||
                } else if (monitor && ! monitor.active) {
 | 
			
		||||
                    result.pause++;
 | 
			
		||||
                } else if (beat) {
 | 
			
		||||
                    if (beat.status === 1) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user