Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-08-11 11:41:35 +0300
committerJulius Härtl <jus@bitgrid.net>2020-08-11 11:41:55 +0300
commite29cc9aacba4a73a7291491cc99b5d876e62e674 (patch)
tree01103e10a2d15c3ef0293ec5e9a5f196f04eb644 /src
parent76ec079b98e1e7b940635bca0e41e31834da1c1b (diff)
Fix eslint checks
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'src')
-rw-r--r--src/EditorFactory.js8
-rw-r--r--src/components/EditorWrapper.vue8
-rw-r--r--src/components/GuestNameDialog.vue2
-rw-r--r--src/components/MenuBar.vue2
-rw-r--r--src/components/SessionList.vue4
-rw-r--r--src/helpers/files.js8
-rw-r--r--src/services/SyncService.js2
-rw-r--r--src/views/DirectEditing.vue2
-rw-r--r--src/views/RichWorkspace.vue4
9 files changed, 20 insertions, 20 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 a51031bd9..ad5c89d0f 100644
--- a/src/components/EditorWrapper.vue
+++ b/src/components/EditorWrapper.vue
@@ -35,7 +35,7 @@
<MenuBar v-if="!syncError && !readOnly"
ref="menubar"
:editor="tiptap"
- :filePath="relativePath"
+ :file-path="relativePath"
:is-rich-editor="isRichEditor"
:is-public="isPublic"
:autohide="autohide">
@@ -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)
}