mirror of
				https://github.com/louislam/uptime-kuma.git
				synced 2025-10-31 11:29:20 +08:00 
			
		
		
		
	🐛 fix(remote-browser): Remove unused test() function (#4155)
* fix * fix lint * Update Notifications.vue * Update ActionInput.vue
This commit is contained in:
		| @@ -1,5 +1,5 @@ | |||||||
| const { R } = require("redbean-node"); | const { R } = require("redbean-node"); | ||||||
| const { testRemoteBrowser } = require("./monitor-types/real-browser-monitor-type.js"); |  | ||||||
| class RemoteBrowser { | class RemoteBrowser { | ||||||
|  |  | ||||||
|     /** |     /** | ||||||
| @@ -67,16 +67,6 @@ class RemoteBrowser { | |||||||
|         await R.trash(bean); |         await R.trash(bean); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /** |  | ||||||
|      * Tests the connection to Remote Browser |  | ||||||
|      * @param {object} remoteBrowser Docker host to check for |  | ||||||
|      * @returns {boolean} Returns if connection worked |  | ||||||
|      */ |  | ||||||
|     static async test(remoteBrowser) { |  | ||||||
|         const testResult = await testRemoteBrowser(remoteBrowser.id, remoteBrowser.user_id); |  | ||||||
|         return testResult; |  | ||||||
|     } |  | ||||||
|  |  | ||||||
| } | } | ||||||
|  |  | ||||||
| module.exports = { | module.exports = { | ||||||
|   | |||||||
| @@ -8,7 +8,7 @@ | |||||||
|             :placeholder="placeholder" |             :placeholder="placeholder" | ||||||
|             :disabled="!enabled" |             :disabled="!enabled" | ||||||
|         > |         > | ||||||
|         <button class="btn btn-outline-primary" @click="action()" :aria-label="actionAriaLabel"> |         <button class="btn btn-outline-primary" :aria-label="actionAriaLabel" @click="action()"> | ||||||
|             <font-awesome-icon :icon="icon" /> |             <font-awesome-icon :icon="icon" /> | ||||||
|         </button> |         </button> | ||||||
|     </div> |     </div> | ||||||
|   | |||||||
| @@ -60,7 +60,7 @@ | |||||||
|             <div class="mt-1 mb-3 ps-2 cert-exp-days col-12 col-xl-6"> |             <div class="mt-1 mb-3 ps-2 cert-exp-days col-12 col-xl-6"> | ||||||
|                 <div v-for="day in settings.tlsExpiryNotifyDays" :key="day" class="d-flex align-items-center justify-content-between cert-exp-day-row py-2"> |                 <div v-for="day in settings.tlsExpiryNotifyDays" :key="day" class="d-flex align-items-center justify-content-between cert-exp-day-row py-2"> | ||||||
|                     <span>{{ day }} {{ $tc("day", day) }}</span> |                     <span>{{ day }} {{ $tc("day", day) }}</span> | ||||||
|                     <button type="button" class="btn-rm-expiry btn btn-outline-danger ms-2 py-1" @click="removeExpiryNotifDay(day)" :aria-label="$t('Remove the expiry notification')"> |                     <button type="button" class="btn-rm-expiry btn btn-outline-danger ms-2 py-1" :aria-label="$t('Remove the expiry notification')" @click="removeExpiryNotifDay(day)"> | ||||||
|                         <font-awesome-icon icon="times" /> |                         <font-awesome-icon icon="times" /> | ||||||
|                     </button> |                     </button> | ||||||
|                 </div> |                 </div> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user