Skip to content

Commit 57e329e

Browse files
committed
chore: update deps and adjust code to new prettier rules
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
1 parent afe9be7 commit 57e329e

20 files changed

Lines changed: 873 additions & 519 deletions

composer.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 753 additions & 423 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

playwright/support/sections/FormSection.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ export class FormSection {
5656
private getFormUpdatedPromise(): Promise<Response> {
5757
return this.page.waitForResponse(
5858
(response) =>
59-
response.request().method() === 'PATCH' &&
60-
response
59+
response.request().method() === 'PATCH'
60+
&& response
6161
.request()
6262
.url()
6363
.includes('/ocs/v2.php/apps/forms/api/v3/forms/'),

src/components/Questions/QuestionFile.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,8 @@ export default {
257257
})
258258
259259
this.maxFileSizeValue =
260-
this.extraSettings.maxFileSize /
261-
FILE_SIZE_UNITS[this.maxFileSizeUnit]
260+
this.extraSettings.maxFileSize
261+
/ FILE_SIZE_UNITS[this.maxFileSizeUnit]
262262
}
263263
},
264264
@@ -276,8 +276,8 @@ export default {
276276
formData.append('files[]', file)
277277
278278
if (
279-
this.extraSettings.maxFileSize > 0 &&
280-
file.size > this.extraSettings.maxFileSize
279+
this.extraSettings.maxFileSize > 0
280+
&& file.size > this.extraSettings.maxFileSize
281281
) {
282282
showError(
283283
t(

src/components/Questions/QuestionMultiple.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -465,8 +465,8 @@ export default {
465465
this.onExtraSettingsChange({ optionsLimitMin: undefined })
466466
} else if (min) {
467467
if (
468-
this.extraSettings.optionsLimitMax &&
469-
min > this.extraSettings.optionsLimitMax
468+
this.extraSettings.optionsLimitMax
469+
&& min > this.extraSettings.optionsLimitMax
470470
) {
471471
showError(
472472
t(

src/components/Questions/QuestionShort.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,13 @@ export default {
122122
submissionInputPlaceholder() {
123123
if (!this.readOnly) {
124124
return (
125-
this.validationObject.createPlaceholder ||
126-
this.answerType.createPlaceholder
125+
this.validationObject.createPlaceholder
126+
|| this.answerType.createPlaceholder
127127
)
128128
}
129129
return (
130-
this.validationObject.submitPlaceholder ||
131-
this.answerType.submitPlaceholder
130+
this.validationObject.submitPlaceholder
131+
|| this.answerType.submitPlaceholder
132132
)
133133
},
134134
/**
@@ -172,8 +172,8 @@ export default {
172172
// If the browsers validation succeeds either the browser does not implement a validation
173173
// or it is valid, so we double check by running our custom validation.
174174
if (
175-
!input.checkValidity() ||
176-
!this.validationObject.validate(
175+
!input.checkValidity()
176+
|| !this.validationObject.validate(
177177
value,
178178
splitRegex(this.validationRegex),
179179
)

src/components/Results/ResultsSummary.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -221,11 +221,11 @@ export default {
221221
answersModels.unshift({
222222
id: 0,
223223
text:
224-
noResponseCount +
225-
' (' +
226-
noResponsePercentage +
227-
'%): ' +
228-
t('forms', 'No response'),
224+
noResponseCount
225+
+ ' ('
226+
+ noResponsePercentage
227+
+ '%): '
228+
+ t('forms', 'No response'),
229229
})
230230
231231
return answersModels

src/components/SidebarTabs/SettingsSidebarTab.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,8 @@ export default {
199199
*/
200200
hasCustomSubmissionMessage() {
201201
return (
202-
this.form?.submissionMessage !== undefined &&
203-
this.form?.submissionMessage !== null
202+
this.form?.submissionMessage !== undefined
203+
&& this.form?.submissionMessage !== null
204204
)
205205
},
206206
@@ -209,9 +209,9 @@ export default {
209209
*/
210210
disableSubmitMultiple() {
211211
return (
212-
this.hasPublicLink ||
213-
this.form.access.legacyLink ||
214-
this.form.isAnonymous
212+
this.hasPublicLink
213+
|| this.form.access.legacyLink
214+
|| this.form.isAnonymous
215215
)
216216
},
217217
disableSubmitMultipleExplanation() {

src/components/SidebarTabs/SharingSearchDiv.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ export default {
7979
(item) =>
8080
!this.currentShares.find(
8181
(share) =>
82-
share.shareWith === item.shareWith &&
83-
share.shareType === item.shareType,
82+
share.shareWith === item.shareWith
83+
&& share.shareType === item.shareType,
8484
),
8585
)
8686
}
@@ -89,8 +89,8 @@ export default {
8989
(item) =>
9090
!this.currentShares.find(
9191
(share) =>
92-
share.shareWith === item.shareWith &&
93-
share.shareType === item.shareType,
92+
share.shareWith === item.shareWith
93+
&& share.shareType === item.shareType,
9494
),
9595
)
9696
},

src/components/TopBar.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ export default {
136136
},
137137
canEdit() {
138138
return (
139-
this.permissions.includes(this.PERMISSION_TYPES.PERMISSION_EDIT) &&
140-
!this.archived
139+
this.permissions.includes(this.PERMISSION_TYPES.PERMISSION_EDIT)
140+
&& !this.archived
141141
)
142142
},
143143
canSeeResults() {
@@ -151,8 +151,8 @@ export default {
151151
},
152152
canOnlySubmit() {
153153
return (
154-
this.permissions.length === 1 &&
155-
this.permissions.includes(this.PERMISSION_TYPES.PERMISSION_SUBMIT)
154+
this.permissions.length === 1
155+
&& this.permissions.includes(this.PERMISSION_TYPES.PERMISSION_SUBMIT)
156156
)
157157
},
158158
},

0 commit comments

Comments
 (0)