|
14 | 14 | </div> |
15 | 15 | </div> |
16 | 16 |
|
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"> |
20 | 20 | <li>{{ $t("Open your Google Spreadsheet") }}</li> |
21 | 21 | <li>{{ $t("Go to Extensions → Apps Script") }}</li> |
22 | 22 | <li>{{ $t("Paste the script code (see below)") }}</li> |
|
27 | 27 | </div> |
28 | 28 |
|
29 | 29 | <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"> |
35 | 31 | {{ showScript ? $t("Hide Script Code") : $t("Show Script Code") }} |
36 | 32 | </button> |
37 | 33 | </div> |
38 | 34 |
|
39 | 35 | <div v-if="showScript" class="mb-3"> |
40 | 36 | <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) { |
47 | 39 | var sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet(); |
48 | 40 | var data = JSON.parse(e.postData.contents); |
49 | 41 |
|
|
65 | 57 |
|
66 | 58 | return ContentService.createTextOutput(JSON.stringify({result: 'success'})) |
67 | 59 | .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 |
73 | 61 | > |
| 62 | + <button type="button" class="btn btn-outline-secondary btn-sm mt-2" @click="copyScript"> |
74 | 63 | {{ $t("Copy to Clipboard") }} |
75 | 64 | </button> |
76 | 65 | </div> |
|
80 | 69 | export default { |
81 | 70 | data() { |
82 | 71 | return { |
83 | | - showScript: false |
| 72 | + showScript: false, |
84 | 73 | }; |
85 | 74 | }, |
86 | 75 | methods: { |
@@ -110,7 +99,7 @@ export default { |
110 | 99 | }`; |
111 | 100 | navigator.clipboard.writeText(scriptCode); |
112 | 101 | alert(this.$t("Copied to clipboard!")); |
113 | | - } |
114 | | - } |
| 102 | + }, |
| 103 | + }, |
115 | 104 | }; |
116 | 105 | </script> |
0 commit comments