diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-11-09 18:46:28 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-11-09 18:46:28 +0300 |
commit | 3ae4647e37b35cece452be96e514a4caac2aef41 (patch) | |
tree | 3ecebb71492abf2ed469eaf1a5460569780ca0a1 | |
parent | fbe2e1034f98e8df12ec788628f8cc4664d17bf4 (diff) |
Adjust to eslint rule updates
Signed-off-by: Julius Härtl <jus@bitgrid.net>
-rw-r--r-- | src/EditorFactory.js | 8 | ||||
-rw-r--r-- | src/components/EditorWrapper.vue | 6 | ||||
-rw-r--r-- | src/components/GuestNameDialog.vue | 2 | ||||
-rw-r--r-- | src/components/MenuBar.vue | 2 | ||||
-rw-r--r-- | src/components/SessionList.vue | 4 | ||||
-rw-r--r-- | src/helpers/files.js | 8 | ||||
-rw-r--r-- | src/services/SyncService.js | 2 | ||||
-rw-r--r-- | src/views/DirectEditing.vue | 2 | ||||
-rw-r--r-- | src/views/RichWorkspace.vue | 4 |
9 files changed, 19 insertions, 19 deletions
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 fc522ad9d..5aeb6e7a6 100644 --- a/src/components/EditorWrapper.vue +++ b/src/components/EditorWrapper.vue @@ -215,7 +215,7 @@ export default { }, }, watch: { - lastSavedStatus: function() { + lastSavedStatus() { this.$refs.menubar && this.$refs.menubar.redrawMenuBar() }, }, @@ -343,7 +343,7 @@ export default { try { this.tiptap.extensions.options.collaboration.update({ version: document.currentVersion, - steps: steps, + steps, }) this.syncService.state = this.tiptap.state this.updateLastSavedStatus() @@ -359,7 +359,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 c27e7e5f4..4d4f25aef 100644 --- a/src/components/MenuBar.vue +++ b/src/components/MenuBar.vue @@ -252,7 +252,7 @@ export default { + Object.entries(appendMeta).map(([key, val]) => `${key}=${encodeURIComponent(val)}`).join('&') _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 76d27617b..adb4d87ba 100644 --- a/src/helpers/files.js +++ b/src/helpers/files.js @@ -74,7 +74,7 @@ const fetchFileInfo = async function(user, path) { 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 @@ -89,7 +89,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') { @@ -159,7 +159,7 @@ const FilesWorkspacePlugin = { el: null, - attach: function(fileList) { + attach(fileList) { if (fileList.id !== 'files' && fileList.id !== 'files.public') { return } @@ -173,7 +173,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 9d16680af..961f3c8f4 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) } |