diff options
author | Varun Patil <varunpatil@ucla.edu> | 2023-05-17 09:56:50 -0700 |
---|---|---|
committer | Daniel Kesselberg <mail@danielkesselberg.de> | 2023-05-23 22:34:15 +0200 |
commit | ace6df86d8b25cdc337ecec8ca67ea42a277fc88 (patch) | |
tree | 9c4961e5eed738c82627ea72b3c07fc78f16e935 /apps | |
parent | 48e1a5834585703e435fc562629e48113e3e2485 (diff) | |
download | nextcloud-server-ace6df86d8b25cdc337ecec8ca67ea42a277fc88.tar.gz nextcloud-server-ace6df86d8b25cdc337ecec8ca67ea42a277fc88.zip |
Fix lint errors
Signed-off-by: Varun Patil <varunpatil@ucla.edu>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/comments/src/components/Comment.vue | 4 | ||||
-rw-r--r-- | apps/comments/src/services/CommentsInstance.js | 4 | ||||
-rw-r--r-- | apps/files_sharing/src/files_sharing_tab.js | 4 | ||||
-rw-r--r-- | apps/settings/src/components/AdminTwoFactor.vue | 6 | ||||
-rw-r--r-- | apps/settings/src/components/UserList/UserRow.vue | 8 |
5 files changed, 18 insertions, 8 deletions
diff --git a/apps/comments/src/components/Comment.vue b/apps/comments/src/components/Comment.vue index 7ccf6204aa1..29469dcf9e9 100644 --- a/apps/comments/src/components/Comment.vue +++ b/apps/comments/src/components/Comment.vue @@ -110,13 +110,15 @@ import NcActions from '@nextcloud/vue/dist/Components/NcActions.js' import NcActionSeparator from '@nextcloud/vue/dist/Components/NcActionSeparator.js' import NcAvatar from '@nextcloud/vue/dist/Components/NcAvatar.js' import NcButton from '@nextcloud/vue/dist/Components/NcButton.js' -const NcRichContenteditable = () => import('@nextcloud/vue/dist/Components/NcRichContenteditable') import RichEditorMixin from '@nextcloud/vue/dist/Mixins/richEditor.js' import ArrowRight from 'vue-material-design-icons/ArrowRight.vue' import Moment from './Moment.vue' import CommentMixin from '../mixins/CommentMixin.js' +// Dynamic loading +const NcRichContenteditable = () => import('@nextcloud/vue/dist/Components/NcRichContenteditable.js') + export default { name: 'Comment', diff --git a/apps/comments/src/services/CommentsInstance.js b/apps/comments/src/services/CommentsInstance.js index 82f1b77e15e..838305a00e9 100644 --- a/apps/comments/src/services/CommentsInstance.js +++ b/apps/comments/src/services/CommentsInstance.js @@ -22,9 +22,13 @@ import { getLoggerBuilder } from '@nextcloud/logger' import { translate as t, translatePlural as n } from '@nextcloud/l10n' +import { getRequestToken } from '@nextcloud/auth' import CommentsApp from '../views/Comments.vue' import Vue from 'vue' +// eslint-disable-next-line camelcase +__webpack_nonce__ = btoa(getRequestToken()) + const logger = getLoggerBuilder() .setApp('comments') .detectUser() diff --git a/apps/files_sharing/src/files_sharing_tab.js b/apps/files_sharing/src/files_sharing_tab.js index bdce38304b1..602992320d1 100644 --- a/apps/files_sharing/src/files_sharing_tab.js +++ b/apps/files_sharing/src/files_sharing_tab.js @@ -23,6 +23,7 @@ import Vue from 'vue' import { translate as t, translatePlural as n } from '@nextcloud/l10n' +import { getRequestToken } from '@nextcloud/auth' import ShareSearch from './services/ShareSearch.js' import ExternalLinkActions from './services/ExternalLinkActions.js' @@ -32,6 +33,9 @@ import TabSections from './services/TabSections.js' // eslint-disable-next-line n/no-missing-import, import/no-unresolved import ShareVariant from '@mdi/svg/svg/share-variant.svg?raw' +// eslint-disable-next-line camelcase +__webpack_nonce__ = btoa(getRequestToken()) + // Init Sharing Tab Service if (!window.OCA.Sharing) { window.OCA.Sharing = {} diff --git a/apps/settings/src/components/AdminTwoFactor.vue b/apps/settings/src/components/AdminTwoFactor.vue index a8ade52694d..27e1b2f4e84 100644 --- a/apps/settings/src/components/AdminTwoFactor.vue +++ b/apps/settings/src/components/AdminTwoFactor.vue @@ -73,9 +73,9 @@ import NcCheckboxRadioSwitch from '@nextcloud/vue/dist/Components/NcCheckboxRadi import NcSettingsSection from '@nextcloud/vue/dist/Components/NcSettingsSection.js' import { loadState } from '@nextcloud/initial-state' -import sortedUniq from 'lodash/sortedUniq' -import uniq from 'lodash/uniq' -import debounce from 'lodash/debounce' +import sortedUniq from 'lodash/sortedUniq.js' +import uniq from 'lodash/uniq.js' +import debounce from 'lodash/debounce.js' import { generateUrl, generateOcsUrl } from '@nextcloud/router' export default { diff --git a/apps/settings/src/components/UserList/UserRow.vue b/apps/settings/src/components/UserList/UserRow.vue index f511ff3e0e9..a0be68e3521 100644 --- a/apps/settings/src/components/UserList/UserRow.vue +++ b/apps/settings/src/components/UserList/UserRow.vue @@ -270,10 +270,10 @@ <script> import ClickOutside from 'vue-click-outside' -import NcPopoverMenu from '@nextcloud/vue/dist/Components/NcPopoverMenu' -import NcMultiselect from '@nextcloud/vue/dist/Components/NcMultiselect' -import NcActions from '@nextcloud/vue/dist/Components/NcActions' -import NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton' +import NcPopoverMenu from '@nextcloud/vue/dist/Components/NcPopoverMenu.js' +import NcMultiselect from '@nextcloud/vue/dist/Components/NcMultiselect.js' +import NcActions from '@nextcloud/vue/dist/Components/NcActions.js' +import NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton.js' import UserRowSimple from './UserRowSimple.vue' import UserRowMixin from '../../mixins/UserRowMixin.js' |