Skip to content

Commit 2bd8b95

Browse files
committed
chore: fix ESLint rule vue/attribute-hyphenation
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
1 parent 67d7d32 commit 2bd8b95

File tree

47 files changed

+176
-177
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+176
-177
lines changed

src/components/NcActionInput/NcActionInput.vue

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -160,49 +160,49 @@ For the `NcSelect` component, all events will be passed through. Please see the
160160
<NcDateTimePicker
161161
v-if="datePickerType"
162162
ref="datetimepicker"
163-
:model-value="modelValue"
163+
:modelValue="modelValue"
164164
style="z-index: 99999999999;"
165165
:placeholder="text"
166166
:disabled="disabled"
167167
:type="datePickerType"
168-
:input-class="['mx-input', { focusable: isFocusable }]"
168+
:inputClass="['mx-input', { focusable: isFocusable }]"
169169
class="action-input__datetimepicker"
170-
append-to-body
170+
appendToBody
171171
v-bind="$attrs"
172172
@update:model-value="onUpdateModelValue" />
173173

174174
<NcDateTimePickerNative
175175
v-else-if="isNativePicker"
176176
:id="idNativeDateTimePicker"
177-
:model-value="modelValue"
177+
:modelValue="modelValue"
178178
:label="label"
179179
:type="nativeDatePickerType"
180-
:input-class="{ focusable: isFocusable }"
180+
:inputClass="{ focusable: isFocusable }"
181181
class="action-input__datetimepicker"
182182
v-bind="$attrs"
183183
@update:model-value="onUpdateModelValue" />
184184

185185
<NcSelect
186186
v-else-if="isMultiselectType"
187-
:model-value="modelValue"
187+
:modelValue="modelValue"
188188
:placeholder="text"
189189
:disabled="disabled"
190-
:append-to-body="false"
191-
:input-class="{ focusable: isFocusable }"
190+
:appendToBody="false"
191+
:inputClass="{ focusable: isFocusable }"
192192
class="action-input__multi"
193193
v-bind="$attrs"
194194
@update:model-value="onUpdateModelValue" />
195195

196196
<NcPasswordField
197197
v-else-if="type === 'password'"
198198
:id="inputId"
199-
:model-value="modelValue"
199+
:modelValue="modelValue"
200200
:label="label"
201-
:label-outside="!label || labelOutside"
201+
:labelOutside="!label || labelOutside"
202202
:placeholder="text"
203203
:disabled="disabled"
204-
:input-class="{ focusable: isFocusable }"
205-
:show-trailing-button="showTrailingButton && !disabled"
204+
:inputClass="{ focusable: isFocusable }"
205+
:showTrailingButton="showTrailingButton && !disabled"
206206
v-bind="$attrs"
207207
@update:model-value="onUpdateModelValue" />
208208

@@ -217,7 +217,7 @@ For the `NcSelect` component, all events will be passed through. Please see the
217217
<div class="action-input__input-container">
218218
<NcColorPicker
219219
id="inputId"
220-
:model-value="modelValue"
220+
:modelValue="modelValue"
221221
class="colorpicker__trigger"
222222
v-bind="$attrs"
223223
@update:model-value="onUpdateModelValue"
@@ -233,16 +233,16 @@ For the `NcSelect` component, all events will be passed through. Please see the
233233
<NcTextField
234234
v-else
235235
:id="inputId"
236-
:model-value="modelValue"
236+
:modelValue="modelValue"
237237
:label="label"
238-
:label-outside="!label || labelOutside"
238+
:labelOutside="!label || labelOutside"
239239
:placeholder="text"
240240
:disabled="disabled"
241-
:input-class="{ focusable: isFocusable }"
241+
:inputClass="{ focusable: isFocusable }"
242242
:type="type"
243-
trailing-button-icon="arrowRight"
244-
:trailing-button-label="trailingButtonLabel"
245-
:show-trailing-button="showTrailingButton && !disabled"
243+
trailingButtonIcon="arrowRight"
244+
:trailingButtonLabel="trailingButtonLabel"
245+
:showTrailingButton="showTrailingButton && !disabled"
246246
v-bind="$attrs"
247247
@trailing-button-click="$refs.form.requestSubmit()"
248248
@update:model-value="onUpdateModelValue" />

src/components/NcAppContent/NcAppContent.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,17 +127,17 @@ export default {
127127
<Pane
128128
class="splitpanes__pane-list"
129129
:size="listPaneSize || paneDefaults.list.size"
130-
:min-size="paneDefaults.list.min"
131-
:max-size="paneDefaults.list.max">
130+
:minSize="paneDefaults.list.min"
131+
:maxSize="paneDefaults.list.max">
132132
<!-- @slot Provide a list to the app content -->
133133
<slot name="list" />
134134
</Pane>
135135

136136
<Pane
137137
class="splitpanes__pane-details"
138138
:size="detailsPaneSize"
139-
:min-size="paneDefaults.details.min"
140-
:max-size="paneDefaults.details.max">
139+
:minSize="paneDefaults.details.min"
140+
:maxSize="paneDefaults.details.max">
141141
<!-- @slot Provide the main content to the app content -->
142142
<slot />
143143
</Pane>

src/components/NcAppNavigationItem/NcAppNavigationItem.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -385,12 +385,12 @@ Just set the `pinned` prop.
385385
ref="actions"
386386
class="app-navigation-entry__actions"
387387
container="#app-navigation-vue"
388-
:boundaries-element="actionsBoundariesElement"
388+
:boundariesElement="actionsBoundariesElement"
389389
:inline="inlineActions"
390390
:placement="menuPlacement"
391391
:open="menuOpen"
392-
:force-menu="forceMenu"
393-
:default-icon="menuIcon"
392+
:forceMenu="forceMenu"
393+
:defaultIcon="menuIcon"
394394
:variant="(to && isActive) || active ? 'tertiary-on-primary' : 'tertiary'"
395395
@update:open="onMenuToggle">
396396
<template #icon>

src/components/NcAppNavigationSearch/NcAppNavigationSearch.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,10 @@ export default {
131131
v-model="model"
132132
:aria-label="label"
133133
class="app-navigation-search__input"
134-
label-outside
134+
labelOutside
135135
:placeholder="placeholder ?? label"
136-
show-trailing-button
137-
:trailing-button-label="t('Clear search')"
136+
showTrailingButton
137+
:trailingButtonLabel="t('Clear search')"
138138
type="search"
139139
@trailing-button-click="onCloseSearch">
140140
<template #trailing-button-icon>

src/components/NcAppNavigationSettings/NcAppNavigationSettings.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ onClickOutside(container, () => {
7474
</NcButton>
7575
</div>
7676
<Transition
77-
:enter-active-class="$style.animationActive"
78-
:leave-active-class="$style.animationActive"
79-
:enter-from-class="$style.animationStop"
80-
:leave-to-class="$style.animationStop">
77+
:enterActiveClass="$style.animationActive"
78+
:leaveActiveClass="$style.animationActive"
79+
:enterFromClass="$style.animationStop"
80+
:leaveToClass="$style.animationStop">
8181
<div
8282
v-show="open"
8383
:id="contentId"

src/components/NcAppSettingsDialog/NcAppSettingsDialog.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,11 +215,11 @@ function unregisterSection(id: string) {
215215
<NcDialog
216216
v-if="open"
217217
class="app-settings"
218-
content-classes="app-settings__content"
219-
navigation-classes="app-settings__navigation"
220-
:additional-trap-elements
218+
contentClasses="app-settings__content"
219+
navigationClasses="app-settings__navigation"
220+
:additionalTrapElements
221221
:container
222-
close-on-click-outside
222+
closeOnClickOutside
223223
:navigation-aria-label="t('Settings navigation')"
224224
size="large"
225225
:name

src/components/NcAppSidebar/NcAppSidebar.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,7 @@ If the sidebar should be shown conditionally without any explicit toggle button,
869869
<NcActions
870870
v-if="isSlotPopulated($slots['secondary-actions']?.())"
871871
class="app-sidebar-header__menu"
872-
:force-menu="forceMenu">
872+
:forceMenu="forceMenu">
873873
<slot name="secondary-actions" />
874874
</NcActions>
875875
</div>
@@ -915,7 +915,7 @@ If the sidebar should be shown conditionally without any explicit toggle button,
915915
v-show="!loading"
916916
ref="tabs"
917917
:active="active"
918-
:force-tabs="forceTabs"
918+
:forceTabs="forceTabs"
919919
@update:active="onUpdateActive">
920920
<slot />
921921
</NcAppSidebarTabs>

src/components/NcAvatar/NcAvatar.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,8 @@ export default {
228228
v-model:open="contactsMenuOpenState"
229229
:aria-label="avatarAriaLabel"
230230
:container="menuContainer"
231-
force-menu
232-
manual-open
231+
forceMenu
232+
manualOpen
233233
variant="tertiary-no-background"
234234
@click="toggleMenu">
235235
<component

src/components/NcBlurHash/NcBlurHash.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,10 +227,10 @@ function drawBlurHash() {
227227
<template>
228228
<Transition
229229
:css="src ? undefined : false"
230-
:enter-active-class="$style.fadeTransition"
231-
:leave-active-class="$style.fadeTransition"
232-
:enter-class="$style.fadeTransitionActive"
233-
:leave-to-class="$style.fadeTransitionActive">
230+
:enterActiveClass="$style.fadeTransition"
231+
:leaveActiveClass="$style.fadeTransition"
232+
:enterClass="$style.fadeTransitionActive"
233+
:leaveToClass="$style.fadeTransitionActive">
234234
<canvas
235235
v-if="!imageLoaded"
236236
ref="canvas"

src/components/NcBreadcrumb/NcBreadcrumb.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ Renders a button element when given no redirection props, otherwise, renders <a/
4343
v-if="$slots.default"
4444
ref="actions"
4545
:container="actionsContainer"
46-
:force-menu="forceMenu"
47-
force-name
48-
:menu-name="name"
46+
:forceMenu="forceMenu"
47+
forceName
48+
:menuName="name"
4949
:open="open"
5050
:title
5151
variant="tertiary"

0 commit comments

Comments
 (0)