From e29cc9aacba4a73a7291491cc99b5d876e62e674 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Tue, 11 Aug 2020 10:41:35 +0200 Subject: Fix eslint checks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- src/EditorFactory.js | 8 ++++---- src/components/EditorWrapper.vue | 8 ++++---- src/components/GuestNameDialog.vue | 2 +- src/components/MenuBar.vue | 2 +- src/components/SessionList.vue | 4 ++-- src/helpers/files.js | 8 ++++---- src/services/SyncService.js | 2 +- src/views/DirectEditing.vue | 2 +- src/views/RichWorkspace.vue | 4 ++-- 9 files changed, 20 insertions(+), 20 deletions(-) (limited to 'src') diff --git a/src/EditorFactory.js b/src/EditorFactory.js index 0b0d1b793..ff87f087e 100644 --- a/src/EditorFactory.js +++ b/src/EditorFactory.js @@ -98,9 +98,9 @@ const createEditor = ({ content, onInit, onUpdate, extensions, enableRichEditing } extensions = extensions || [] return new Editor({ - content: content, - onInit: onInit, - onUpdate: onUpdate, + content, + onInit, + onUpdate, extensions: [ ...richEditingExtensions, new History(), @@ -137,7 +137,7 @@ const createMarkdownSerializer = (_nodes, _marks) => { { ...defaultMarkdownSerializer.nodes, ...nodes }, { ...defaultMarkdownSerializer.marks, ...marks } ), - serialize: function(content, options) { + serialize(content, options) { return this.serializer.serialize(content, { ...options, tightLists: true }) .split('\\[').join('[') .split('\\]').join(']') diff --git a/src/components/EditorWrapper.vue b/src/components/EditorWrapper.vue index a51031bd9..ad5c89d0f 100644 --- a/src/components/EditorWrapper.vue +++ b/src/components/EditorWrapper.vue @@ -35,7 +35,7 @@ @@ -217,7 +217,7 @@ export default { }, }, watch: { - lastSavedStatus: function() { + lastSavedStatus() { this.$refs.menubar && this.$refs.menubar.redrawMenuBar() }, }, @@ -347,7 +347,7 @@ export default { try { this.tiptap.extensions.options.collaboration.update({ version: document.currentVersion, - steps: steps, + steps, }) this.syncService.state = this.tiptap.state this.updateLastSavedStatus() @@ -363,7 +363,7 @@ export default { this.initialLoading = true this.syncError = { type: error, - data: data, + data, } } if (error === ERROR_TYPE.CONNECTION_FAILED && !this.hasConnectionIssue) { diff --git a/src/components/GuestNameDialog.vue b/src/components/GuestNameDialog.vue index 130aa4d17..6ed05cb14 100644 --- a/src/components/GuestNameDialog.vue +++ b/src/components/GuestNameDialog.vue @@ -62,7 +62,7 @@ export default { '/avatar/guest/{user}/{size}', { user: this.guestNameBuffered, - size: size, + size, }) return window.location.protocol + '//' + window.location.host + avatarUrl }, diff --git a/src/components/MenuBar.vue b/src/components/MenuBar.vue index 3fe9a2380..745e13bc1 100644 --- a/src/components/MenuBar.vue +++ b/src/components/MenuBar.vue @@ -259,7 +259,7 @@ export default { const src = `${encodedPath}?fileId=${fileInfo.id}#${meta}` _command({ - src: src, + src, alt: fileInfo.name, }) }) diff --git a/src/components/SessionList.vue b/src/components/SessionList.vue index d78e1849f..dd6436b02 100644 --- a/src/components/SessionList.vue +++ b/src/components/SessionList.vue @@ -85,8 +85,8 @@ export default { const avatarUrl = OC.generateUrl( guest ? '/avatar/guest/{user}/{size}' : '/avatar/{user}/{size}', { - user: user, - size: size, + user, + size, }) return window.location.protocol + '//' + window.location.host + avatarUrl } diff --git a/src/helpers/files.js b/src/helpers/files.js index 5cd228ff0..caf8e7c92 100644 --- a/src/helpers/files.js +++ b/src/helpers/files.js @@ -31,7 +31,7 @@ const FILE_ACTION_IDENTIFIER = 'Edit with text app' const registerFileCreate = () => { const newFileMenuPlugin = { - attach: function(menu) { + attach(menu) { const fileList = menu.fileList // only attach to main file list, public view is not supported yet @@ -46,7 +46,7 @@ const registerFileCreate = () => { templateName: t('text', 'New text document') + '.md', iconClass: 'icon-filetype-text', fileType: 'file', - actionHandler: function(name) { + actionHandler(name) { fileList.createFile(name).then(function(status, data) { const fileInfoModel = new OCA.Files.FileInfoModel(data) if (typeof OCA.Viewer !== 'undefined') { @@ -116,7 +116,7 @@ const FilesWorkspacePlugin = { el: null, - attach: function(fileList) { + attach(fileList) { if (fileList.id !== 'files' && fileList.id !== 'files.public') { return } @@ -130,7 +130,7 @@ const FilesWorkspacePlugin = { }) }, - render: function(fileList) { + render(fileList) { if (fileList.id !== 'files' && fileList.id !== 'files.public') { return } diff --git a/src/services/SyncService.js b/src/services/SyncService.js index 0702b2c84..c2b8cf7d2 100644 --- a/src/services/SyncService.js +++ b/src/services/SyncService.js @@ -126,7 +126,7 @@ class SyncService { _openDocument({ fileId, filePath }) { return axios.get(endpointUrl('session/create', !!this.options.shareToken), { params: { - fileId: fileId, + fileId, filePath, token: this.options.shareToken, guestName: this.options.guestName, diff --git a/src/views/DirectEditing.vue b/src/views/DirectEditing.vue index bf9859838..20d8feb2e 100644 --- a/src/views/DirectEditing.vue +++ b/src/views/DirectEditing.vue @@ -92,7 +92,7 @@ export default { return { initial: OCP.InitialState.loadState('text', 'file'), messages: log.messages, - log: log, + log, saving: false, } }, diff --git a/src/views/RichWorkspace.vue b/src/views/RichWorkspace.vue index eef934b2f..1f96a1059 100644 --- a/src/views/RichWorkspace.vue +++ b/src/views/RichWorkspace.vue @@ -88,10 +88,10 @@ export default { }, }, watch: { - path: function() { + path() { this.getFileInfo() }, - focus: function(newValue) { + focus(newValue) { if (!newValue) { document.querySelector('#editor').scrollTo(0, 0) } -- cgit v1.2.3