mirror of
https://github.com/koichixD/uptime-kuma.git
synced 2026-09-01 17:01:22 +00:00
chore: enable formatting over the entire codebase in CI (#6655)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -10,7 +10,14 @@
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="my-3 form-check">
|
||||
<input id="show-clickable-link" v-model="monitor.isClickAble" class="form-check-input" type="checkbox" data-testid="show-clickable-link" @click="toggleLink(monitor.group_index, monitor.monitor_index)" />
|
||||
<input
|
||||
id="show-clickable-link"
|
||||
v-model="monitor.isClickAble"
|
||||
class="form-check-input"
|
||||
type="checkbox"
|
||||
data-testid="show-clickable-link"
|
||||
@click="toggleLink(monitor.group_index, monitor.monitor_index)"
|
||||
/>
|
||||
<label class="form-check-label" for="show-clickable-link">
|
||||
{{ $t("Show Clickable Link") }}
|
||||
</label>
|
||||
@@ -22,7 +29,14 @@
|
||||
<!-- Custom URL -->
|
||||
<template v-if="monitor.isClickAble">
|
||||
<label for="customUrl" class="form-label">{{ $t("Custom URL") }}</label>
|
||||
<input id="customUrl" :value="monitor.url" type="url" class="form-control" data-testid="custom-url-input" @input="e => changeUrl(monitor.group_index, monitor.monitor_index, e.target!.value)">
|
||||
<input
|
||||
id="customUrl"
|
||||
:value="monitor.url"
|
||||
type="url"
|
||||
class="form-control"
|
||||
data-testid="custom-url-input"
|
||||
@input="(e) => changeUrl(monitor.group_index, monitor.monitor_index, e.target!.value)"
|
||||
/>
|
||||
|
||||
<div class="form-text mb-3">
|
||||
{{ $t("customUrlDescription") }}
|
||||
@@ -39,7 +53,12 @@
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
<button type="submit" class="btn btn-danger" data-bs-dismiss="modal" data-testid="monitor-settings-close">
|
||||
<button
|
||||
type="submit"
|
||||
class="btn btn-danger"
|
||||
data-bs-dismiss="modal"
|
||||
data-testid="monitor-settings-close"
|
||||
>
|
||||
{{ $t("Close") }}
|
||||
</button>
|
||||
</div>
|
||||
@@ -55,7 +74,7 @@ import BadgeLinkGeneratorDialog from "./BadgeLinkGeneratorDialog.vue";
|
||||
|
||||
export default {
|
||||
components: {
|
||||
BadgeLinkGeneratorDialog
|
||||
BadgeLinkGeneratorDialog,
|
||||
},
|
||||
props: {},
|
||||
emits: [],
|
||||
@@ -101,7 +120,8 @@ export default {
|
||||
* @returns {void}
|
||||
*/
|
||||
toggleLink(groupIndex, index) {
|
||||
this.$root.publicGroupList[groupIndex].monitorList[index].sendUrl = !this.$root.publicGroupList[groupIndex].monitorList[index].sendUrl;
|
||||
this.$root.publicGroupList[groupIndex].monitorList[index].sendUrl =
|
||||
!this.$root.publicGroupList[groupIndex].monitorList[index].sendUrl;
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -117,9 +137,15 @@ export default {
|
||||
// We must check if there are any elements in monitorList to
|
||||
// prevent undefined errors if it hasn't been loaded yet
|
||||
if (this.$parent.editMode && ignoreSendUrl && Object.keys(this.$root.monitorList).length) {
|
||||
return this.$root.monitorList[monitor.element.id].type === "http" || this.$root.monitorList[monitor.element.id].type === "keyword" || this.$root.monitorList[monitor.element.id].type === "json-query";
|
||||
return (
|
||||
this.$root.monitorList[monitor.element.id].type === "http" ||
|
||||
this.$root.monitorList[monitor.element.id].type === "keyword" ||
|
||||
this.$root.monitorList[monitor.element.id].type === "json-query"
|
||||
);
|
||||
}
|
||||
return monitor.element.sendUrl && monitor.element.url && monitor.element.url !== "https://" && !this.editMode;
|
||||
return (
|
||||
monitor.element.sendUrl && monitor.element.url && monitor.element.url !== "https://" && !this.editMode
|
||||
);
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -140,7 +166,8 @@ export default {
|
||||
@import "../assets/vars.scss";
|
||||
|
||||
.dark {
|
||||
.modal-dialog .form-text, .modal-dialog p {
|
||||
.modal-dialog .form-text,
|
||||
.modal-dialog p {
|
||||
color: $dark-font-color;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user