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/comments | |
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/comments')
-rw-r--r-- | apps/comments/src/components/Comment.vue | 4 | ||||
-rw-r--r-- | apps/comments/src/services/CommentsInstance.js | 4 |
2 files changed, 7 insertions, 1 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() |