Skip to content

Commit 8b293d1

Browse files
authored
Merge pull request #56660 from nextcloud/chore/eslint-config
chore: update `@nextcloud/eslint-config` to v9.0.0-rc.6 and fix issues
2 parents f960afc + 93dadb3 commit 8b293d1

File tree

217 files changed

+664
-606
lines changed

Some content is hidden

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

217 files changed

+664
-606
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/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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
<NcCheckboxRadioSwitch
1111
v-else
1212
:aria-label="ariaLabel"
13-
:checked="isSelected"
13+
:model-value="isSelected"
1414
data-cy-files-list-row-checkbox
15-
@update:checked="onSelectionChange" />
15+
@update:modelValue="onSelectionChange" />
1616
</td>
1717
</template>
1818

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>

apps/files/src/components/FilesListTableHeader.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77
<th
88
class="files-list__column files-list__row-checkbox"
99
@keyup.esc.exact="resetSelection">
10-
<NcCheckboxRadioSwitch v-bind="selectAllBind" data-cy-files-list-selection-checkbox @update:checked="onToggleAll" />
10+
<NcCheckboxRadioSwitch
11+
v-bind="selectAllBind"
12+
data-cy-files-list-selection-checkbox
13+
@update:modelValue="onToggleAll" />
1114
</th>
1215

1316
<!-- Columns display -->

apps/files/src/components/NewNodeDialog.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@
2525
@submit.prevent="emit('close', localDefaultName)">
2626
<NcTextField
2727
ref="nameInput"
28+
v-model="localDefaultName"
2829
data-cy-files-new-node-dialog-input
2930
:error="validity !== ''"
3031
:helper-text="validity"
31-
:label="label"
32-
:value.sync="localDefaultName" />
32+
:label="label" />
3333

3434
<!-- Hidden file warning -->
3535
<NcNoteCard

0 commit comments

Comments
 (0)