Skip to content

Commit 42112c8

Browse files
committed
chore: auto fix ESLint issues
Signed-off-by: Ferdinand Thiessen <[email protected]>
1 parent 63b401d commit 42112c8

File tree

80 files changed

+266
-267
lines changed

Some content is hidden

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

80 files changed

+266
-267
lines changed

apps/comments/src/components/Comment.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
:contenteditable="!loading"
7373
:label="editor ? t('comments', 'New comment') : t('comments', 'Edit comment')"
7474
:placeholder="t('comments', 'Write a comment …')"
75-
:value="localMessage"
75+
:model-value="localMessage"
7676
:user-data="userData"
7777
aria-describedby="tab-comments__editor-description"
7878
@update:value="updateLocalMessage"

apps/dashboard/src/main.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,11 @@
55

66
import { getCSPNonce } from '@nextcloud/auth'
77
import { t } from '@nextcloud/l10n'
8-
import VTooltip from '@nextcloud/vue/directives/Tooltip'
98
import Vue from 'vue'
109
import DashboardApp from './DashboardApp.vue'
1110

1211
__webpack_nonce__ = getCSPNonce()
1312

14-
Vue.directive('Tooltip', VTooltip)
15-
1613
Vue.prototype.t = t
1714

1815
const Dashboard = Vue.extend(DashboardApp)

apps/dav/src/components/AbsenceForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ export default {
205205
/**
206206
* Debounce getSuggestions
207207
*
208-
* @param {...*} args the arguments
208+
* @param {[string]} args - The arguments
209209
*/
210210
debounceGetSuggestions: debounce(function(...args) {
211211
this.getSuggestions(...args)

apps/dav/src/components/ExampleContactSettings.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<template>
77
<div class="example-contact-settings">
88
<NcCheckboxRadioSwitch
9-
:checked="enableDefaultContact"
9+
:model-value="enableDefaultContact"
1010
type="switch"
1111
@update:model-value="updateEnableDefaultContact">
1212
{{ t('dav', "Add example contact to user's address book when they first log in") }}

apps/dav/src/components/ExampleEventSettings.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<template>
77
<div class="example-event-settings">
88
<NcCheckboxRadioSwitch
9-
:checked="createExampleEvent"
9+
:model-value="createExampleEvent"
1010
:disabled="savingConfig"
1111
type="switch"
1212
@update:model-value="updateCreateExampleEvent">

apps/federatedfilesharing/src/components/AdminSettings.vue

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,32 +8,32 @@
88
:description="t('federatedfilesharing', 'Adjust how people can share between servers. This includes shares between people on this server as well if they are using federated sharing.')"
99
:doc-url="sharingFederatedDocUrl">
1010
<NcCheckboxRadioSwitch
11+
v-model="outgoingServer2serverShareEnabled"
1112
type="switch"
12-
:checked.sync="outgoingServer2serverShareEnabled"
13-
@update:checked="update('outgoing_server2server_share_enabled', outgoingServer2serverShareEnabled)">
13+
@update:modelValue="update('outgoing_server2server_share_enabled', outgoingServer2serverShareEnabled)">
1414
{{ t('federatedfilesharing', 'Allow people on this server to send shares to other servers (this option also allows WebDAV access to public shares)') }}
1515
</NcCheckboxRadioSwitch>
1616

1717
<NcCheckboxRadioSwitch
18+
v-model="incomingServer2serverShareEnabled"
1819
type="switch"
19-
:checked.sync="incomingServer2serverShareEnabled"
20-
@update:checked="update('incoming_server2server_share_enabled', incomingServer2serverShareEnabled)">
20+
@update:modelValue="update('incoming_server2server_share_enabled', incomingServer2serverShareEnabled)">
2121
{{ t('federatedfilesharing', 'Allow people on this server to receive shares from other servers') }}
2222
</NcCheckboxRadioSwitch>
2323

2424
<NcCheckboxRadioSwitch
2525
v-if="federatedGroupSharingSupported"
26+
v-model="outgoingServer2serverGroupShareEnabled"
2627
type="switch"
27-
:checked.sync="outgoingServer2serverGroupShareEnabled"
28-
@update:checked="update('outgoing_server2server_group_share_enabled', outgoingServer2serverGroupShareEnabled)">
28+
@update:modelValue="update('outgoing_server2server_group_share_enabled', outgoingServer2serverGroupShareEnabled)">
2929
{{ t('federatedfilesharing', 'Allow people on this server to send shares to groups on other servers') }}
3030
</NcCheckboxRadioSwitch>
3131

3232
<NcCheckboxRadioSwitch
3333
v-if="federatedGroupSharingSupported"
34+
v-model="incomingServer2serverGroupShareEnabled"
3435
type="switch"
35-
:checked.sync="incomingServer2serverGroupShareEnabled"
36-
@update:checked="update('incoming_server2server_group_share_enabled', incomingServer2serverGroupShareEnabled)">
36+
@update:modelValue="update('incoming_server2server_group_share_enabled', incomingServer2serverGroupShareEnabled)">
3737
{{ t('federatedfilesharing', 'Allow people on this server to receive group shares from other servers') }}
3838
</NcCheckboxRadioSwitch>
3939

@@ -42,17 +42,17 @@
4242

4343
<NcCheckboxRadioSwitch
4444
type="switch"
45-
:checked="lookupServerEnabled"
45+
:model-value="lookupServerEnabled"
4646
disabled
47-
@update:checked="showLookupServerConfirmation">
47+
@update:modelValue="showLookupServerConfirmation">
4848
{{ t('federatedfilesharing', 'Search global and public address book for people') }}
4949
</NcCheckboxRadioSwitch>
5050

5151
<NcCheckboxRadioSwitch
5252
type="switch"
53-
:checked="lookupServerUploadEnabled"
53+
:model-value="lookupServerUploadEnabled"
5454
disabled
55-
@update:checked="showLookupServerUploadConfirmation">
55+
@update:modelValue="showLookupServerUploadConfirmation">
5656
{{ t('federatedfilesharing', 'Allow people to publish their data to a global and public address book') }}
5757
</NcCheckboxRadioSwitch>
5858
</fieldset>
@@ -63,9 +63,9 @@
6363
{{ t('federatedfilesharing', 'Trusted federation') }}
6464
</h3>
6565
<NcCheckboxRadioSwitch
66+
v-model="federatedTrustedShareAutoAccept"
6667
type="switch"
67-
:checked.sync="federatedTrustedShareAutoAccept"
68-
@update:checked="update('federatedTrustedShareAutoAccept', federatedTrustedShareAutoAccept)">
68+
@update:modelValue="update('federatedTrustedShareAutoAccept', federatedTrustedShareAutoAccept)">
6969
{{ t('federatedfilesharing', 'Automatically accept shares from trusted federated accounts and groups by default') }}
7070
</NcCheckboxRadioSwitch>
7171
</div>

apps/federatedfilesharing/src/components/PersonalSettings.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
class="federated-cloud__cloud-id"
1313
readonly
1414
:label="t('federatedfilesharing', 'Your Federated Cloud ID')"
15-
:value="cloudId"
15+
:model-value="cloudId"
1616
:success="isCopied"
1717
show-trailing-button
1818
:trailing-button-label="copyLinkTooltip"

apps/federatedfilesharing/src/components/RemoteShareDialog.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ const buttons = computed(() => [
5353
</p>
5454
<NcPasswordField
5555
v-if="passwordRequired"
56+
v-model="password"
5657
class="remote-share-dialog__password"
57-
:label="t('federatedfilesharing', 'Remote share password')"
58-
:value.sync="password" />
58+
:label="t('federatedfilesharing', 'Remote share password')" />
5959
</NcDialog>
6060
</template>
6161

apps/files/src/components/FileEntry/FileEntryCheckbox.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<NcCheckboxRadioSwitch
1111
v-else
1212
:aria-label="ariaLabel"
13-
:checked="isSelected"
13+
:model-value="isSelected"
1414
data-cy-files-list-row-checkbox
1515
@update:checked="onSelectionChange" />
1616
</td>

apps/files/src/components/FileEntry/FileEntryName.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
@submit.prevent.stop="onRename">
1414
<NcTextField
1515
ref="renameInput"
16+
v-model="newName"
1617
:label="renameLabel"
1718
:autofocus="true"
1819
:minlength="1"
1920
:required="true"
20-
:value.sync="newName"
2121
enterkeyhint="done"
2222
@keyup.esc="stopRenaming" />
2323
</form>

0 commit comments

Comments
 (0)