mirror of
https://github.com/nextcloud/server.git
synced 2026-05-19 08:25:56 -04:00
chore: fix ESLint issues reported because of config update
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
parent
6db75dca92
commit
0dc7add400
7 changed files with 18 additions and 24 deletions
|
|
@ -428,8 +428,7 @@ export default defineComponent({
|
|||
}
|
||||
|
||||
if (event.key !== 'ArrowUp' && event.key !== 'ArrowDown'
|
||||
&& (!this.userConfig.grid_view || (event.key !== 'ArrowLeft' && event.key !== 'ArrowRight'))
|
||||
) {
|
||||
&& (!this.userConfig.grid_view || (event.key !== 'ArrowLeft' && event.key !== 'ArrowRight'))) {
|
||||
// not an arrow key we handle
|
||||
return
|
||||
}
|
||||
|
|
|
|||
|
|
@ -141,7 +141,7 @@ export default {
|
|||
allow-collapse
|
||||
:loading="isLoading"
|
||||
:data-cy-files-navigation-item="view.id"
|
||||
:exact="hasChildViews /* eslint-disable-line @nextcloud/vue/no-deprecated-props */"
|
||||
:exact="hasChildViews"
|
||||
:name="view.name"
|
||||
:open="isExpanded"
|
||||
:pinned="view.sticky"
|
||||
|
|
|
|||
|
|
@ -38,8 +38,7 @@ export function usePreviewImage(
|
|||
const fallback = toValue(options).fallback ?? true
|
||||
if (source.attributes['has-preview'] !== true
|
||||
&& source.mime !== undefined
|
||||
&& source.mime !== 'application/octet-stream'
|
||||
) {
|
||||
&& source.mime !== 'application/octet-stream') {
|
||||
if (!fallback) {
|
||||
return
|
||||
}
|
||||
|
|
|
|||
|
|
@ -66,8 +66,7 @@ export const useRenamingStore = defineStore('renaming', () => {
|
|||
// Check for extension change for files
|
||||
if (node.type === FileType.File
|
||||
&& oldExtension !== newExtension
|
||||
&& !(await showFileExtensionDialog(oldExtension, newExtension))
|
||||
) {
|
||||
&& !(await showFileExtensionDialog(oldExtension, newExtension))) {
|
||||
// user selected to use the old extension
|
||||
newName = basename(newName, newExtension) + oldExtension
|
||||
if (oldName === newName) {
|
||||
|
|
@ -78,8 +77,7 @@ export const useRenamingStore = defineStore('renaming', () => {
|
|||
if (!userConfig.userConfig.show_hidden
|
||||
&& newName.startsWith('.')
|
||||
&& !oldName.startsWith('.')
|
||||
&& !(await showHiddenFileDialog(newName))
|
||||
) {
|
||||
&& !(await showHiddenFileDialog(newName))) {
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,8 +21,7 @@ export function isDownloadable(node: INode): boolean {
|
|||
|
||||
// check hide-download property of shares
|
||||
if (node.attributes['hide-download'] === true
|
||||
|| node.attributes['hide-download'] === 'true'
|
||||
) {
|
||||
|| node.attributes['hide-download'] === 'true') {
|
||||
return false
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
{
|
||||
"apps/files/src/components/FilesNavigationItem.vue": {
|
||||
"@nextcloud/vue/no-deprecated-props": {
|
||||
"apps/files/src/components/FilesNavigationListItem.vue": {
|
||||
"@nextcloud/no-deprecated-library-props": {
|
||||
"count": 1
|
||||
}
|
||||
},
|
||||
"apps/files/src/components/TransferOwnershipDialogue.vue": {
|
||||
"@nextcloud/vue/no-deprecated-props": {
|
||||
"@nextcloud/no-deprecated-library-props": {
|
||||
"count": 1
|
||||
}
|
||||
},
|
||||
|
|
@ -15,7 +15,7 @@
|
|||
}
|
||||
},
|
||||
"apps/files_sharing/src/components/SharingInput.vue": {
|
||||
"@nextcloud/vue/no-deprecated-props": {
|
||||
"@nextcloud/no-deprecated-library-props": {
|
||||
"count": 1
|
||||
}
|
||||
},
|
||||
|
|
@ -30,12 +30,12 @@
|
|||
}
|
||||
},
|
||||
"apps/settings/src/components/GroupListItem.vue": {
|
||||
"@nextcloud/vue/no-deprecated-props": {
|
||||
"@nextcloud/no-deprecated-library-props": {
|
||||
"count": 1
|
||||
}
|
||||
},
|
||||
"apps/settings/src/components/Users/NewUserDialog.vue": {
|
||||
"@nextcloud/vue/no-deprecated-props": {
|
||||
"@nextcloud/no-deprecated-library-props": {
|
||||
"count": 1
|
||||
},
|
||||
"vue/no-mutating-props": {
|
||||
|
|
@ -43,7 +43,7 @@
|
|||
}
|
||||
},
|
||||
"apps/settings/src/views/UserManagementNavigation.vue": {
|
||||
"@nextcloud/vue/no-deprecated-props": {
|
||||
"@nextcloud/no-deprecated-library-props": {
|
||||
"count": 4
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
/**
|
||||
/* eslint-disable @nextcloud/no-deprecated-globals */
|
||||
/*!
|
||||
* SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
|
||||
* SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
*/
|
||||
|
||||
/* eslint-disable @nextcloud/no-deprecations */
|
||||
import ClipboardJS from 'clipboard'
|
||||
import { dav } from 'davclient.js'
|
||||
import Handlebars from 'handlebars'
|
||||
|
|
@ -26,10 +26,9 @@ function warnIfNotTesting() {
|
|||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param global
|
||||
* @param cb
|
||||
* @param msg
|
||||
* @param {string|string[]} global - a string or array of strings with the name of the global variable(s) to deprecate
|
||||
* @param {function} cb - a callback that returns the value of the global variable when accessed
|
||||
* @param {string} msg - an optional message to show in the warning
|
||||
*/
|
||||
function setDeprecatedProp(global, cb, msg) {
|
||||
(Array.isArray(global) ? global : [global]).forEach((global) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue