Skip to content

Commit

Permalink
style: Fix styleint errors
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliushaertl committed Dec 27, 2023
1 parent b0ca720 commit 5bee06c
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 19 deletions.
6 changes: 3 additions & 3 deletions src/components/AdminSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ import SettingsExternalApps from './SettingsExternalApps.vue'
import SettingsInputFile from './SettingsInputFile.vue'
import SettingsFontList from './SettingsFontList.vue'
import '@nextcloud/dialogs/dist/index.css'
import '@nextcloud/dialogs/style.css'
import { getCallbackBaseUrl } from '../helpers/url.js'
const SERVER_STATE_OK = 0
Expand Down Expand Up @@ -520,7 +520,7 @@ export default {
},
fontHint() {
return t('richdocuments', 'Make sure to set this URL: {url} in the coolwsd.xml file of your Collabora Online server to ensure the added fonts get loaded automatically.',
{ url: this.fontHintUrl }
{ url: this.fontHintUrl },
)
},
fontXmlHint() {
Expand Down Expand Up @@ -719,7 +719,7 @@ export default {
try {
const result = await axios.post(
generateFilePath('richdocuments', 'ajax', 'admin.php'),
data
data,
)
this.updating = false
Expand Down
2 changes: 1 addition & 1 deletion src/components/SettingsSelectGroup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export default {
}
}
return this.groups[id]
}
},
)
},
update() {
Expand Down
2 changes: 1 addition & 1 deletion src/components/SettingsSelectTag.vue
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export default {
},
getValueObject() {
return this.value.filter((tag) => tag !== '').map(
(id) => this.tags.find((tag) => tag.id === id)
(id) => this.tags.find((tag) => tag.id === id),
)
},
update() {
Expand Down
12 changes: 6 additions & 6 deletions src/document.js
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ const documentsMain = {
title += `_${version}`
}
documentsMain.UI.showViewer(
fileId, title
fileId, title,
)
}
break
Expand Down Expand Up @@ -463,7 +463,7 @@ const documentsMain = {
case 'rev-history':
documentsMain.UI.loadRevViewerContainer()
documentsMain.UI.showViewer(
documentsMain.fileId, documentsMain.title
documentsMain.fileId, documentsMain.title,
)
break
case 'RD_Version_Restored':
Expand Down Expand Up @@ -516,7 +516,7 @@ const documentsMain = {
},
true,
t('richdocuments', 'New filename'),
false
false,
).then(function() {
const $dialog = $('.oc-dialog:visible')
const $buttons = $dialog.find('.oc-dialog-buttonrow button')
Expand Down Expand Up @@ -575,7 +575,7 @@ const documentsMain = {
}
documentsMain.openingLocally = true
PostMessages.sendWOPIPostMessage('loolframe', 'Get_Views')
}
},
)
},

Expand Down Expand Up @@ -606,7 +606,7 @@ const documentsMain = {

axios.post(
OC.linkToOCS('apps/files/api/v1', 2) + 'openlocaleditor?format=json',
{ path: documentsMain.fullPath }
{ path: documentsMain.fullPath },
).then((result) => {
const url = 'nc://open/'
+ Config.get('userId') + '@' + getNextcloudUrl()
Expand All @@ -633,7 +633,7 @@ const documentsMain = {
_window.location = url
this.showOpenLocalConfirmation(url, _window)
}
}
},
)
},

Expand Down
4 changes: 2 additions & 2 deletions src/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const odfViewer = {
timeout: 0,
})
}
}
},
)
return
}
Expand Down Expand Up @@ -293,7 +293,7 @@ addEventListener('DOMContentLoaded', () => {
})
odfViewer.onClose()
OC.Notification.showTemporary(t('richdocuments', 'Failed to connect to {productName}. Please try again later or contact your server administrator.',
{ productName: OC.getCapabilities().richdocuments.productName }
{ productName: OC.getCapabilities().richdocuments.productName },
))
}
break
Expand Down
1 change: 0 additions & 1 deletion src/helpers/types.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/*
* @copyright Copyright (c) 2019 Julius Härtl <[email protected]>
*
Expand Down
4 changes: 2 additions & 2 deletions src/helpers/url.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const getDocumentUrlFromTemplate = (templateId, fileName, fileDir, fillWithTempl
fileName,
dir: fileDir,
requesttoken: OC.requestToken,
}
},
)
}

Expand All @@ -83,7 +83,7 @@ const getDocumentUrlForPublicFile = (fileName, fileId) => {
fileName,
fileId,
requesttoken: OC.requestToken,
}
},
)
}

Expand Down
2 changes: 1 addition & 1 deletion src/mixins/saveAs.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default {
},
true,
t('richdocuments', 'New filename'),
false
false,
).then(() => {
const $dialog = $('.oc-dialog:visible')
const $buttons = $dialog.find('.oc-dialog-buttonrow button')
Expand Down
4 changes: 2 additions & 2 deletions src/view/FilesAppIntegration.js
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ export default {
},
true,
t('richdocuments', 'New filename'),
false
false,
).then(function() {
const $dialog = parent.$('.oc-dialog:visible')
const $buttons = $dialog.find('button')
Expand Down Expand Up @@ -565,7 +565,7 @@ export default {
OCP.Files.Router.name,
{ ...OCP.Files.Router.params, fileid: fileId },
OCP.Files.Router.query,
true
true,
)
},

Expand Down

0 comments on commit 5bee06c

Please sign in to comment.