Skip to content

Commit e4f3e7d

Browse files
[autofix.ci] apply automated fixes
1 parent 491741b commit e4f3e7d

File tree

2 files changed

+15
-26
lines changed

2 files changed

+15
-26
lines changed

server/notification-providers/google-sheets.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ class GoogleSheets extends NotificationProvider {
3333

3434
// Send data to Google Apps Script webhook
3535
const webhookUrl = notification.googleSheetsWebhookUrl;
36-
36+
3737
const config = this.getAxiosConfigWithProxy({
3838
headers: {
39-
"Content-Type": "application/json"
40-
}
39+
"Content-Type": "application/json",
40+
},
4141
});
4242

4343
const data = {
@@ -47,7 +47,7 @@ class GoogleSheets extends NotificationProvider {
4747
monitorUrl: monitorUrl,
4848
message: msg,
4949
responseTime: responseTime,
50-
statusCode: statusCode
50+
statusCode: statusCode,
5151
};
5252

5353
await axios.post(webhookUrl, data, config);

src/components/notifications/GoogleSheets.vue

Lines changed: 11 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
</div>
1515
</div>
1616

17-
<div class="alert alert-info" style="border-radius: 8px;">
18-
<h6 style="margin-bottom: 12px; font-weight: 600;">{{ $t("Quick Setup Guide") }}:</h6>
19-
<ol style="margin-bottom: 0; padding-left: 20px; line-height: 1.8;">
17+
<div class="alert alert-info" style="border-radius: 8px">
18+
<h6 style="margin-bottom: 12px; font-weight: 600">{{ $t("Quick Setup Guide") }}:</h6>
19+
<ol style="margin-bottom: 0; padding-left: 20px; line-height: 1.8">
2020
<li>{{ $t("Open your Google Spreadsheet") }}</li>
2121
<li>{{ $t("Go to Extensions → Apps Script") }}</li>
2222
<li>{{ $t("Paste the script code (see below)") }}</li>
@@ -27,23 +27,15 @@
2727
</div>
2828

2929
<div class="mb-3">
30-
<button
31-
type="button"
32-
class="btn btn-secondary btn-sm"
33-
@click="showScript = !showScript"
34-
>
30+
<button type="button" class="btn btn-secondary btn-sm" @click="showScript = !showScript">
3531
{{ showScript ? $t("Hide Script Code") : $t("Show Script Code") }}
3632
</button>
3733
</div>
3834

3935
<div v-if="showScript" class="mb-3">
4036
<label class="form-label">{{ $t("Google Apps Script Code") }}:</label>
41-
<textarea
42-
readonly
43-
class="form-control"
44-
rows="15"
45-
style="font-family: monospace; font-size: 12px;"
46-
>function doPost(e) {
37+
<textarea readonly class="form-control" rows="15" style="font-family: monospace; font-size: 12px">
38+
function doPost(e) {
4739
var sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
4840
var data = JSON.parse(e.postData.contents);
4941

@@ -65,12 +57,9 @@
6557

6658
return ContentService.createTextOutput(JSON.stringify({result: 'success'}))
6759
.setMimeType(ContentService.MimeType.JSON);
68-
}</textarea>
69-
<button
70-
type="button"
71-
class="btn btn-outline-secondary btn-sm mt-2"
72-
@click="copyScript"
60+
}</textarea
7361
>
62+
<button type="button" class="btn btn-outline-secondary btn-sm mt-2" @click="copyScript">
7463
{{ $t("Copy to Clipboard") }}
7564
</button>
7665
</div>
@@ -80,7 +69,7 @@
8069
export default {
8170
data() {
8271
return {
83-
showScript: false
72+
showScript: false,
8473
};
8574
},
8675
methods: {
@@ -110,7 +99,7 @@ export default {
11099
}`;
111100
navigator.clipboard.writeText(scriptCode);
112101
alert(this.$t("Copied to clipboard!"));
113-
}
114-
}
102+
},
103+
},
115104
};
116105
</script>

0 commit comments

Comments
 (0)