From ea77747ff69f8cc3208e07b1874db3651f1e1e51 Mon Sep 17 00:00:00 2001
From: innerpeacez <innerpeace.zhai@gmail.com>
Date: Mon, 10 Mar 2025 14:46:33 +0800
Subject: [PATCH] fix lint

---
 server/notification-providers/yzj.js | 13 ++++++++-----
 src/components/notifications/YZJ.vue | 16 ++++------------
 2 files changed, 12 insertions(+), 17 deletions(-)

diff --git a/server/notification-providers/yzj.js b/server/notification-providers/yzj.js
index 829528184..775d71525 100644
--- a/server/notification-providers/yzj.js
+++ b/server/notification-providers/yzj.js
@@ -1,10 +1,13 @@
 const NotificationProvider = require("./notification-provider");
-const {DOWN, UP} = require("../../src/util");
-const {default: axios} = require("axios");
+const { DOWN, UP } = require("../../src/util");
+const { default: axios } = require("axios");
 
 class YZJ extends NotificationProvider {
     name = "YZJ";
 
+    /**
+     * @inheritdoc
+     */
     async send(notification, msg, monitorJSON = null, heartbeatJSON = null) {
         let okMsg = "Sent Successfully.";
 
@@ -31,8 +34,8 @@ class YZJ extends NotificationProvider {
 
     /**
      * Send message to YZJ
-     * @param {BeanModel} notification
-     * @param {Object} params Parameters of message
+     * @param {object} notification Notification
+     * @param {object} params Parameters of message
      * @returns {boolean} True if successful else false
      */
     async sendToYZJ(notification, params) {
@@ -56,7 +59,7 @@ class YZJ extends NotificationProvider {
     /**
      * Convert status constant to string
      * @param {string} status The status constant
-     * @returns {string}
+     * @returns {string} status
      */
     statusToString(status) {
         switch (status) {
diff --git a/src/components/notifications/YZJ.vue b/src/components/notifications/YZJ.vue
index ff49a2bc7..a598dd60d 100644
--- a/src/components/notifications/YZJ.vue
+++ b/src/components/notifications/YZJ.vue
@@ -1,21 +1,13 @@
 <template>
     <div class="mb-3">
         <label for="yzjWebHookUrl" class="form-label">{{ $t("YZJ Webhook URL") }}<span style="color: red;"><sup>*</sup></span></label>
-        <input id="yzjWebHookUrl" v-model="$parent.notification.yzjWebHookUrl" type="text" class="form-control"
-               required>
-
+        <input id="yzjWebHookUrl" v-model="$parent.notification.yzjWebHookUrl" type="text" class="form-control" required />
         <label for="yzjType" class="form-label">{{ $t("YZJ Robot Type") }}<span style="color: red;"><sup>*</sup></span></label>
-        <input id="yzjType" v-model="$parent.notification.yzjType" type="text" class="form-control" required>
-
-        <label for="yzjToken" class="form-label">{{ $t("YZJ Robot Token") }}<span
-            style="color: red;"><sup>*</sup></span></label>
+        <input id="yzjType" v-model="$parent.notification.yzjType" type="text" class="form-control" required />
+        <label for="yzjToken" class="form-label">{{ $t("YZJ Robot Token") }}<span style="color: red;"><sup>*</sup></span></label>
         <hidden-input id="yzjToken" v-model="$parent.notification.yzjToken" type="text" class="form-control" required />
-
         <i18n-t class="form-text" keypath="wayToGetTeamsURL">
-            <a
-                href="https://www.yunzhijia.com/opendocs/docs.html#/tutorial/index/robot" target="_blank">
-                {{ $t("here") }}
-            </a>
+            <a href="https://www.yunzhijia.com/opendocs/docs.html#/tutorial/index/robot" target="_blank">{{ $t("here") }}</a>
         </i18n-t>
     </div>
 </template>